/* V2 cinematic entry. Baseline: v8.13.0.
 * Inherit V1's pitch palette, card styles and type scale without card overrides.
 * The optional scene ends before the shared matchday feed becomes interactive. */
:root.v2 {
  --v2-night: #061a18;
  --v2-safe-left: env(safe-area-inset-left, 0px);
  --v2-safe-right: env(safe-area-inset-right, 0px);
  --type-intro: clamp(2.1rem, 4.2vw, 3.9rem);
  --scene-height: 100vh;
  --scene-travel: calc(100vh * var(--scroll-screens, 3.2));
  background: var(--v2-night);
  scroll-behavior: auto;
}
.v2 body { overflow-x: clip; }
.v2.v2-cinematic .status-bar-glass { opacity: var(--app-reveal, 0); }
.v2 :focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.v2 button, .v2 a.button-link { min-height: 44px; }
.v2 input, .v2 textarea { font-size: 1rem; }
.v2 dialog { max-height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 2rem); }
.v2-skip-link { position: fixed; top: -100px; left: max(1rem, var(--v2-safe-left)); z-index: 1001; padding: 1rem; background: #e0f2fe; color: #082f49; border-radius: 12px; }
.v2-skip-link:focus { top: max(1rem, env(safe-area-inset-top)); }
.v2-launch { display: none; }
.v2-launching body { overflow: hidden; }
.v2-launching .v2-launch { position: fixed; display: grid; place-items: center; inset: 0; z-index: 10000; opacity: 1; visibility: visible; pointer-events: auto; overflow: hidden; animation: v2-launch-out var(--launch-ms, 2000ms) linear both; }
.v2-launch .launch-intro-word-main, .v2-launch .launch-intro-word-shadow { font-weight: 800; font-size: clamp(2.6rem, 10vw, 6.8rem); }
.v2-launch .launch-intro-word-main { color: #eafff5; text-shadow: 0 0 12px #86efac55, 0 0 38px #38bdf82e; }
@keyframes v2-launch-out { 0%, 85% { opacity: 1; } 100% { opacity: 0; } }
.v2 .hero { padding-right: 0; }
.v2 .chat-launcher { opacity: var(--app-reveal, 1); right: max(1rem, calc(var(--v2-safe-right) + .65rem)); }
.app-hub-header { display: flex; align-items: center; gap: .55rem; width: 100%; margin-bottom: 1rem; }
.app-hub-header .app-hub-tabs { flex: 1 1 auto; min-width: 0; margin: 0; }
.app-hub-header .app-hub-close { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; min-height: 44px; padding: 0; margin-left: auto; border-radius: 50%; font-size: 1.5rem; line-height: 1; }
.app-hub-tabs { display: flex; gap: .35rem; padding: .35rem; margin: 0 0 1rem; border-radius: 18px; background: #061a1870; border: 1px solid #ffffff12; }
.app-hub-tabs button { flex: 1; min-width: 0; padding: .65rem .35rem; border: 0; background: transparent; color: var(--muted); font-size: var(--type-small); border-radius: 14px; }
.app-hub-tabs button[aria-current="true"] { color: var(--text); background: #c2fff018; box-shadow: inset 0 1px 0 #ffffff20; }
.chat-launcher .notification-badge { position: absolute; top: -.15rem; right: -.15rem; }
.v2-revealing) .v2-quick-actions, .v2-launching .v2-quick-actions { visibility: hidden; pointer-events: none; }
.v2 .hero { padding-right: 112px; }
.v2-revealing .soccer-stage { pointer-events: none; }
.soccer-intro { display: none; }
/* Keep travel stable as browser chrome moves, while covering the visible screen. */
@supports (height: 100svh) { :root.v2 { --scene-height: 100svh; --scene-travel: calc(100svh * var(--scroll-screens, 3.2)); } }
@supports (height: 100dvh) { :root.v2 { --scene-height: 100dvh; } }
.v2-cinematic .soccer-intro { display: block; position: relative; height: calc(var(--scene-travel) + var(--scene-height)); }
.soccer-stage { position: sticky; top: 0; height: var(--scene-height); overflow: hidden; isolation: isolate; z-index: 0; }
.scene-content, .soccer-scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.scene-content { background: var(--v2-night); isolation: isolate; }
.scene-backdrop { z-index: 0; }
.scene-content::after { content: ""; position: absolute; z-index: 1; inset: 0; background: linear-gradient(180deg, #061a1840, transparent 50%, #061a1866); pointer-events: none; }
.scene-action { z-index: 3; pointer-events: none; }
.intro-topline { position: absolute; z-index: 4; top: max(1.5rem, env(safe-area-inset-top)); left: max(1.5rem, var(--v2-safe-left)); right: max(1.5rem, var(--v2-safe-right)); display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.v2-wordmark { display: inline-flex; align-items: baseline; gap: .65rem; font-weight: 800; font-size: 1.25rem; letter-spacing: -.05em; text-decoration: none; color: #f0fdfa; }
.v2-wordmark span { color: #8cafa7; font-size: .6rem; font-weight: 500; letter-spacing: .1em; }
#skip-intro { position: fixed; right: max(1.5rem, calc(var(--v2-safe-right) + .75rem)); bottom: max(1.6rem, calc(env(safe-area-inset-bottom) + 1rem)); padding: .5rem .9rem; border: 1px solid #a7f3d029; border-radius: 99px; color: #d1e5df; background: #061a1880; font-size: var(--type-small); font-weight: 500; }
#skip-intro span { margin-left: .7rem; color: #7dd3fc; }
.scene-copy { position: absolute; z-index: 2; left: max(7%, calc(var(--v2-safe-left) + 1rem)); top: 16%; width: min(560px, 48%); padding: clamp(1.25rem, 2.5vw, 2rem); text-shadow: 0 2px 16px #061a18; pointer-events: none; }
.scene-copy .eyebrow { margin-bottom: 1rem; color: #9cc6bd; font-size: .65rem; letter-spacing: .18em; }
#scene-headline { margin: 0; font-size: var(--type-intro); font-weight: 600; letter-spacing: -.065em; line-height: 1.04; color: #f0fdfa; text-shadow: 0 2px 20px #061a18; }
#scene-headline span { display: block; }
#scene-headline span:last-child { color: #b7e5db; }
#scene-description { margin: 1rem 0 0; max-width: 42ch; color: #b9d0c9; font-size: var(--type-small); line-height: 1.6; }
.scene-flash { position: absolute; z-index: 3; inset: 0; background: #cffafe; opacity: 0; pointer-events: none; }
.scene-progress { position: absolute; z-index: 4; left: 0; right: 0; bottom: 0; height: 2px; background: #123b33; }
#scene-progress { display: block; height: 100%; background: #7dd3fc; transform: scaleX(0); transform-origin: left; }
.v2-shell { padding-left: max(clamp(.9rem, 3vw, 1.35rem), var(--v2-safe-left)); padding-right: max(clamp(.9rem, 3vw, 1.35rem), var(--v2-safe-right)); }
.v2-cinematic .v2-shell { margin-top: calc(-1 * var(--scene-height)); min-height: var(--scene-height); opacity: var(--app-reveal, 0); }
.v2-shell[inert] { pointer-events: none; }
.v2-cinematic:not(.v2-app-ready) .chat-launcher { opacity: 0; pointer-events: none; visibility: hidden; }
.v2-static-welcome { font-size: var(--type-small); color: var(--muted); padding-top: max(1rem, env(safe-area-inset-top)); margin-bottom: 0; }

@media (max-width: 700px) {
  :root.v2 { --type-intro: clamp(1.9rem, 8vw, 2.5rem); }
  .v2 .hero h1 { font-size: clamp(1.65rem, 6.6vw, 2.8rem); }
  .v2 .hero .subtitle { font-size: var(--type-small); }
  .v2 .brand-lockup { min-width: 0; }
  .intro-topline { top: max(1rem, env(safe-area-inset-top)); }
  .scene-copy { top: max(14%, calc(env(safe-area-inset-top) + 5rem)); left: max(1rem, calc(var(--v2-safe-left) + .75rem)); right: max(1rem, calc(var(--v2-safe-right) + .75rem)); width: auto; padding: 1.25rem; }
  #scene-description { font-size: .8rem; line-height: 1.5; }
  .scene-copy .eyebrow { margin-bottom: .75rem; }
  .v2 dialog { max-width: calc(100% - env(safe-area-inset-left) - env(safe-area-inset-right) - 1rem); }
}
@media (orientation: landscape) and (max-height: 500px) {
  .intro-topline { top: max(.6rem, env(safe-area-inset-top)); }
  .scene-copy .eyebrow { margin-bottom: .5rem; }
  .scene-copy { top: 21%; width: min(440px, 52%); padding: 1rem 1.25rem; }
  #scene-headline { font-size: 1.8rem; }
  #scene-description { font-size: .72rem; margin-top: .5rem; line-height: 1.4; }
}
@media (prefers-reduced-motion: reduce) {
  .v2 .soccer-intro, .v2 .v2-launch { display: none; }
  .v2 .v2-shell { margin-top: 0; opacity: 1; }
  .v2 .chat-launcher { opacity: 1; visibility: visible; pointer-events: auto; }
  .v2 *, .v2 *::before, .v2 *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
