/* ==========================================================================
   Home — "liquid glass" (iPhone-style frosted panels)
   Loaded by Views/Home/Index.cshtml on top of site.css + home.css.
   Glass only reads as glass when there is colour behind it, so soft gold /
   violet / cyan light sits behind the content (.stage background); the panels
   blur and brighten what is behind them, with a bright top edge and a sheen.
   ========================================================================== */
:root {
  --gl-tint: rgba(255, 255, 255, .075);
  --gl-tint-2: rgba(255, 255, 255, .025);
  --gl-edge: rgba(255, 255, 255, .15);
  --gl-hi: rgba(255, 255, 255, .34);
  --gl-blur: blur(24px) saturate(175%);
  --gl-sheen: radial-gradient(120% 70% at 0% 0%, rgba(255, 255, 255, .13), transparent 46%);
  --gl-shadow: inset 0 1px 0 var(--gl-hi), inset 0 -1px 0 rgba(255, 255, 255, .05), inset 1px 0 0 rgba(255, 255, 255, .06), 0 1.5rem 3.5rem -1.75rem rgba(0, 0, 0, .9);
}
@media (max-width: 767.98px) { :root { --gl-blur: blur(16px) saturate(165%); } }

/* ---- the light behind the glass ----
   The content scrolls inside .stage (it slides over the pinned hero), so the light is part of the stage's own
   background, fixed to the screen: it stays behind the panels while the page moves. (Browsers that ignore
   background-attachment: fixed — iOS Safari — scroll it with the page instead, which still lights the panels.) */
.stage {
  background:
    radial-gradient(38vmax 34vmax at 8% 12%, rgba(245, 197, 24, .26), transparent 70%) fixed,
    radial-gradient(40vmax 36vmax at 94% 46%, rgba(139, 92, 246, .3), transparent 70%) fixed,
    radial-gradient(42vmax 32vmax at 30% 104%, rgba(34, 211, 238, .2), transparent 70%) fixed,
    var(--bg);
}

/* ---- the glass panels ---- */
.card, .tile, .ticket, .rv, .poll, .hs-box, .cat-count, .sub, .scene-step, .pchoice {
  -webkit-backdrop-filter: var(--gl-blur); backdrop-filter: var(--gl-blur);
}
.card {
  background: var(--gl-sheen), linear-gradient(165deg, var(--gl-tint), var(--gl-tint-2) 60%, rgba(255, 255, 255, .045));
  border-color: var(--gl-edge); box-shadow: var(--gl-shadow);
}
.card:hover, .card:focus-within { border-color: rgba(245, 197, 24, .45); }
.tile {
  background:
    var(--gl-sheen),
    radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--c, #8b5cf6) 22%, transparent), transparent 55%),
    linear-gradient(160deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .02) 60%);
  border-color: var(--gl-edge); box-shadow: var(--gl-shadow);
}
.tile:hover { box-shadow: var(--gl-shadow), 0 0 60px -30px var(--c, #8b5cf6); }
.ticket {
  background: var(--gl-sheen), radial-gradient(120% 80% at 50% 0%, rgba(245, 197, 24, .16), transparent 60%), linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .025));
  box-shadow: inset 0 1px 0 var(--gl-hi);
}
.poll {
  background: var(--gl-sheen), radial-gradient(80% 60% at 50% 0%, rgba(245, 197, 24, .12), transparent 70%), linear-gradient(165deg, rgba(255, 255, 255, .085), rgba(255, 255, 255, .02));
  border-color: rgba(245, 197, 24, .3); box-shadow: var(--gl-shadow), 0 0 5rem -2.5rem rgba(245, 197, 24, .35);
}
.pchoice { background: rgba(255, 255, 255, .05); border-color: var(--gl-edge); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14); }
.hs-box { background: linear-gradient(165deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .04)); border-color: rgba(255, 255, 255, .22); box-shadow: inset 0 1px 0 var(--gl-hi), 0 1.5rem 4rem -1.5rem rgba(0, 0, 0, .85); }
.cat-count, .sub, .scene-step { background: rgba(255, 255, 255, .07); border-color: var(--gl-edge); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16); }
.cast-panel { border-color: rgba(255, 255, 255, .16); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 3rem 6rem -3rem rgba(0, 0, 0, .9); }

/* browsers without backdrop-filter: keep the panels readable */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .card, .rv, .poll, .ticket, .tile { background-color: rgba(20, 18, 16, .92); }
}
/* visitors who asked their phone / computer for less transparency: solid panels, no blur */
@media (prefers-reduced-transparency: reduce) {
  .card, .tile, .ticket, .rv, .poll, .hs-box, .cat-count, .sub, .scene-step, .pchoice {
    -webkit-backdrop-filter: none; backdrop-filter: none; background-color: rgba(20, 18, 16, .96);
  }
}
