/* Approved hero mockup fidelity — 2026-08-22.
   Visual-only override. Existing DOM, navigation, handlers, plan data and typography remain intact. */

:root{
  --hero-mockup-copy-width:min(56%,228px);
  --hero-mockup-action-width:min(56%,228px);
  --hero-mockup-left:18px;
}

/* The hero becomes milkier on the copy side and progressively clearer toward
   the player/stadium side, matching the approved reference image. */
html[data-ui="liquid-glass-v2"] body #today .mockup-home,
html[data-ui="liquid-glass-v2"] body #today .mockup-main-card{
  overflow:visible!important;
}

html[data-ui="liquid-glass-v2"] body #today .mockup-main-card{
  position:relative!important;
}

html[data-ui="liquid-glass-v2"] body #today .next-card{
  overflow:visible!important;
  background:
    radial-gradient(circle at 8% -12%,rgba(255,255,255,.50) 0 9%,rgba(255,255,255,.19) 27%,transparent 49%),
    linear-gradient(90deg,
      rgba(255,255,255,.31) 0%,
      rgba(255,255,255,.25) 24%,
      rgba(255,255,255,.16) 43%,
      rgba(255,255,255,.075) 59%,
      rgba(255,255,255,.026) 74%,
      rgba(255,255,255,.008) 88%,
      rgba(255,255,255,0) 100%)!important;
  backdrop-filter:blur(9px) saturate(1.14)!important;
  -webkit-backdrop-filter:blur(9px) saturate(1.14)!important;
  box-shadow:
    0 22px 48px rgba(12,0,4,.30),
    0 0 24px rgba(238,27,58,.10),
    0 0 0 .5px rgba(255,255,255,.34),
    inset 0 1.5px 0 rgba(255,255,255,.94),
    inset 0 -1px 0 rgba(255,255,255,.16)!important;
}

html[data-ui="liquid-glass-v2"] body #today .next-card::before{
  background:
    linear-gradient(90deg,rgba(255,255,255,.26) 0%,rgba(255,255,255,.10) 34%,rgba(255,255,255,.025) 58%,transparent 78%),
    radial-gradient(circle at 90% 6%,rgba(255,255,255,.10),transparent 18%)!important;
  opacity:.90!important;
}

/* Keep every text/data element in a protected left column. */
html[data-ui="liquid-glass-v2"] body #today .next-label,
html[data-ui="liquid-glass-v2"] body #today .next-date-nav,
html[data-ui="liquid-glass-v2"] body #today .session-title,
html[data-ui="liquid-glass-v2"] body #today .next-meta{
  max-width:var(--hero-mockup-copy-width)!important;
}

html[data-ui="liquid-glass-v2"] body #today .next-date-nav,
html[data-ui="liquid-glass-v2"] body #today .session-title,
html[data-ui="liquid-glass-v2"] body #today .next-meta{
  width:var(--hero-mockup-copy-width)!important;
}

/* Oversized alpha player: right-aligned, slightly outside the card at the
   bottom/right, with no text or CTA crossing into her silhouette. */
html[data-ui="liquid-glass-v2"] body #today .next-card::after{
  z-index:6!important;
  top:6px!important;
  right:26px!important;
  bottom:-46px!important;
  width:68%!important;
  background-position:right bottom!important;
  background-size:contain!important;
  filter:
    drop-shadow(-11px 16px 18px rgba(20,0,6,.34))
    drop-shadow(0 0 6px rgba(255,255,255,.14))!important;
}

html[data-ui="liquid-glass-v2"] body #today .next-card>*{
  z-index:7!important;
}

html[data-ui="liquid-glass-v2"] body #today .hero-view{
  z-index:10!important;
}

/* Compact CTAs. Both begin on the exact same left edge and both terminate
   before the day-navigation's right arrow. */
html[data-ui="liquid-glass-v2"] body #today .hero-start,
html[data-ui="liquid-glass-v2"] body #today .hero-complete{
  left:var(--hero-mockup-left)!important;
  width:var(--hero-mockup-action-width)!important;
  height:42px!important;
  min-height:42px!important;
  bottom:76px!important;
  border-radius:22px!important;
}

html[data-ui="liquid-glass-v2"] body #today .hero-start{
  padding:0 30px 0 46px!important;
}

html[data-ui="liquid-glass-v2"] body #today .hero-start::before{
  width:28px!important;
  height:28px!important;
  left:7px!important;
}

html[data-ui="liquid-glass-v2"] body #today .hero-start::after{
  left:17px!important;
  border-top-width:5px!important;
  border-bottom-width:5px!important;
  border-left-width:8px!important;
}

html[data-ui="liquid-glass-v2"] body #today .mockup-section-head .text-link{
  left:var(--hero-mockup-left)!important;
  top:-62px!important;
  width:var(--hero-mockup-action-width)!important;
  height:40px!important;
  min-height:40px!important;
  padding:0 30px 0 42px!important;
  justify-content:flex-start!important;
  border-radius:21px!important;
  text-align:left!important;
}

/* Decorative calendar mark only; the existing button, target and handler stay unchanged. */
html[data-ui="liquid-glass-v2"] body #today .mockup-section-head .text-link::before{
  content:""!important;
  position:absolute!important;
  left:10px!important;
  top:50%!important;
  width:22px!important;
  height:22px!important;
  transform:translateY(-50%)!important;
  border-radius:8px!important;
  background:
    rgba(255,255,255,.16)
    no-repeat center/15px 15px
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='5' width='16' height='15' rx='2'/%3E%3Cpath d='M4 10h16M9 3v4M15 3v4'/%3E%3C/svg%3E")!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.30)!important;
}

/* Keep the approved geometry stable on normal phone widths. */
@media(max-width:430px){
  :root{
    --hero-mockup-copy-width:min(55%,222px);
    --hero-mockup-action-width:min(55%,222px);
    --hero-mockup-left:16px;
  }

  html[data-ui="liquid-glass-v2"] body #today .next-card::after{
    right:26px!important;
    bottom:-42px!important;
    width:69%!important;
  }
}

/* Compact-home exceptions: the CTAs stay smaller, but the player remains the
   dominant right-side depth layer and never enters the text column. */
@media(max-height:780px){
  html[data-ui="liquid-glass-v2"] body #today .hero-start,
  html[data-ui="liquid-glass-v2"] body #today .hero-complete{
    height:40px!important;
    min-height:40px!important;
    bottom:70px!important;
  }

  html[data-ui="liquid-glass-v2"] body #today .mockup-section-head .text-link{
    height:38px!important;
    min-height:38px!important;
    top:-56px!important;
  }

  html[data-ui="liquid-glass-v2"] body #today .next-card::after{
    top:4px!important;
    bottom:-38px!important;
  }
}

@media(max-height:700px){
  :root{
    --hero-mockup-copy-width:min(54%,210px);
    --hero-mockup-action-width:min(54%,210px);
  }

  html[data-ui="liquid-glass-v2"] body #today .hero-start,
  html[data-ui="liquid-glass-v2"] body #today .hero-complete{
    height:38px!important;
    min-height:38px!important;
    bottom:65px!important;
  }

  html[data-ui="liquid-glass-v2"] body #today .mockup-section-head .text-link{
    height:36px!important;
    min-height:36px!important;
    top:-52px!important;
  }

  html[data-ui="liquid-glass-v2"] body #today .next-card::after{
    top:3px!important;
    right:29px!important;
    bottom:-36px!important;
    width:67%!important;
  }
}

/* Runtime stabilization after the first real-device check.
   iOS/PWA must not resize/reposition the stadium by painting the same photo on
   both the body and a fixed layer. The fixed DOM atmosphere is the sole owner. */
html[data-ui="liquid-glass-v2"] body{
  background:#080204!important;
}

html[data-ui="liquid-glass-v2"] body .app-atmosphere{
  position:fixed!important;
  inset:0!important;
  width:100vw!important;
  height:100vh!important;
  height:100lvh!important;
  min-height:100vh!important;
  min-height:100lvh!important;
  background-color:#080204!important;
  background-image:url("./stadium-background-exact.webp?v=2")!important;
  background-repeat:no-repeat!important;
  background-position:50% 0!important;
  background-size:cover!important;
  background-attachment:scroll!important;
  opacity:1!important;
  filter:none!important;
  transform:none!important;
  transition:none!important;
  animation:none!important;
  overflow:hidden!important;
}

@media(max-width:600px) and (orientation:portrait){
  html[data-ui="liquid-glass-v2"] body .app-atmosphere{
    background-size:auto 100%!important;
    background-position:50% 0!important;
  }
}

html[data-ui="liquid-glass-v2"] body .app-atmosphere::before{
  content:""!important;
  position:absolute!important;
  inset:0!important;
  background:linear-gradient(180deg,rgba(3,5,12,.10) 0%,rgba(8,2,5,.025) 54%,rgba(4,0,1,.24) 100%)!important;
  opacity:1!important;
  filter:none!important;
  transform:none!important;
  mix-blend-mode:normal!important;
  -webkit-mask-image:none!important;
  mask-image:none!important;
}

html[data-ui="liquid-glass-v2"] body .app-atmosphere::after{
  content:""!important;
  position:absolute!important;
  inset:0!important;
  background:radial-gradient(circle at 82% 13%,rgba(255,255,255,.08),transparent 24%)!important;
  opacity:1!important;
  mix-blend-mode:normal!important;
}

/* Safari can drop a pseudo foreground when the same parent is a backdrop-filter
   compositor. Move the blur to ::before and keep the player on a crisp ::after. */
html[data-ui="liquid-glass-v2"] body #today .next-card{
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
}

html[data-ui="liquid-glass-v2"] body #today .next-card::before{
  content:""!important;
  position:absolute!important;
  inset:0!important;
  z-index:0!important;
  pointer-events:none!important;
  border-radius:inherit!important;
  background:
    radial-gradient(circle at 8% -12%,rgba(255,255,255,.50) 0 9%,rgba(255,255,255,.19) 27%,transparent 49%),
    linear-gradient(90deg,
      rgba(255,255,255,.31) 0%,
      rgba(255,255,255,.25) 24%,
      rgba(255,255,255,.16) 43%,
      rgba(255,255,255,.075) 59%,
      rgba(255,255,255,.026) 74%,
      rgba(255,255,255,.008) 88%,
      rgba(255,255,255,0) 100%)!important;
  backdrop-filter:blur(9px) saturate(1.14)!important;
  -webkit-backdrop-filter:blur(9px) saturate(1.14)!important;
  opacity:1!important;
  mix-blend-mode:normal!important;
}

html[data-ui="liquid-glass-v2"] body #today .next-card::after{
  content:""!important;
  position:absolute!important;
  z-index:2!important;
  pointer-events:none!important;
  background:url("./hero-fina-11-cutout.webp") right bottom/contain no-repeat!important;
  opacity:1!important;
  clip-path:none!important;
  -webkit-clip-path:none!important;
  -webkit-mask-image:none!important;
  mask-image:none!important;
  transform:none!important;
}

/* Only the real text/content children get lifted onto their own stacking
   layer here. The catch-all this replaced also matched .hero-start,
   .hero-complete and .hero-view (direct children of .next-card too) and
   forced position:relative!important on them, overriding their confirmed
   position:absolute placement from overdrive-home-hero.css and shifting the
   hero buttons on real devices. */
html[data-ui="liquid-glass-v2"] body #today .next-label,
html[data-ui="liquid-glass-v2"] body #today .next-date-nav,
html[data-ui="liquid-glass-v2"] body #today .session-title,
html[data-ui="liquid-glass-v2"] body #today .next-meta{
  position:relative!important;
  z-index:4!important;
}

html[data-ui="liquid-glass-v2"] body #today .hero-view{
  z-index:8!important;
}
