/* =========================================================
   GOONIFY WRAPPED — glass over fluted light
   Colours are overridden at runtime from js/config.js
   ========================================================= */

/* Variable-font axes as animatable custom properties */
@property --wght { syntax: "<number>"; inherits: true; initial-value: 420; }
@property --wdth { syntax: "<number>"; inherits: true; initial-value: 100; }
@property --rond { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --slnt { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --grad { syntax: "<number>"; inherits: true; initial-value: 0; }

:root {
  --bg: #050102;
  --deep: #2a0604;
  --ember: #ff4f00;
  --orange: #ff8a00;
  --amber: #ffb547;
  --cream: #fff1de;
  --ink: #fff;
  --muted: #a89c8e;
  --line: rgba(255, 255, 255, .14);

  --ease: cubic-bezier(.16, 1, .3, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --font: "Google Sans Flex", "Google Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
/* evaluated per element so every element reads its own (inherited) axis vars */
*, *::before, *::after { font-variation-settings: "wght" var(--wght), "wdth" var(--wdth), "ROND" var(--rond), "slnt" var(--slnt), "GRAD" var(--grad); }
html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  overscroll-behavior: none;
  display: grid;
  place-items: center;
  height: 100dvh;
}
button, input, select { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
em { font-style: normal; --slnt: -10; --wght: 380; }

/* ---------- Background canvas ---------- */
.bg-canvas {
  position: fixed; inset: 0; width: 100vw; height: 100dvh;
  z-index: -2; display: block;
  background: radial-gradient(60% 50% at 50% 50%, var(--deep), var(--bg));
}

/* ---------- Film grain ---------- */
.grain {
  position: fixed; inset: 0; z-index: 100; pointer-events: none;
  background-size: 128px 128px;
  mix-blend-mode: overlay;
  opacity: .05;
}

/* ---------- Stage ---------- */
.stage {
  position: relative;
  width: 100vw;
  height: 100dvh;
  overflow: hidden;
  container-type: size;
  isolation: isolate;
}
@media (min-width: 700px) and (min-aspect-ratio: 3/4) {
  .stage {
    height: min(94dvh, 980px);
    width: calc(min(94dvh, 980px) * 9 / 16);
    border-radius: 34px;
    box-shadow:
      0 0 0 100vmax rgba(3, 0, 1, .62),
      inset 0 0 0 1px rgba(255, 255, 255, .16),
      inset 0 1px 0 rgba(255, 255, 255, .3),
      0 0 60px rgba(255, 138, 0, .25);
  }
}

/* =========================================================
   Glass
   ========================================================= */
/* Rim: one even-width outline on every glass shape. The light lives only
   inside that thin ring, as a top-to-bottom gradient (bright top, fading down). */
:where(.glass, .glass-hot, .btn-glow, .pill-tag, .seg span) { position: relative; }
.glass::after, .glass-hot::after, .btn-glow::after, .pill-tag::after, .seg span::after, .ring-wrap::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  padding: var(--rim-w, 1.5px);
  background: var(--rim);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.glass, .seg span {
  --rim: linear-gradient(180deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, .16) 45%, rgba(255, 255, 255, .05));
}
.glass-hot, .btn-glow, .pill-tag, .seg input:checked + span, .ring-wrap {
  --rim: linear-gradient(180deg, rgba(255, 247, 235, 1), rgba(255, 200, 140, .6) 45%, rgba(255, 150, 80, .18));
}

.glass {
  background: linear-gradient(180deg, rgba(255, 255, 255, .11), rgba(255, 255, 255, .035));
  box-shadow: 0 14px 40px -14px rgba(0, 0, 0, .7);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
          backdrop-filter: blur(20px) saturate(1.5);
}
.glass-hot {
  background:
    radial-gradient(120% 100% at 50% 125%, rgba(255, 138, 0, .7), rgba(255, 110, 0, .18) 55%, transparent 80%),
    linear-gradient(180deg, rgba(255, 220, 180, .16), rgba(255, 255, 255, .03));
  box-shadow:
    inset 0 -16px 32px -12px rgba(255, 96, 0, .6),
    0 0 26px rgba(255, 138, 0, .45),
    0 0 70px -12px rgba(255, 79, 0, .6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
          backdrop-filter: blur(20px) saturate(1.6);
}
.glow-text {
  color: var(--cream);
  text-shadow: 0 0 .22em rgba(255, 138, 0, .85), 0 0 .7em rgba(255, 79, 0, .5);
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  border: 0; border-radius: 999px; cursor: pointer;
  font-size: 4.6cqw; --wght: 650; --wdth: 105; --rond: 100;
  padding: 1em 1.4em;
  transition: transform .3s var(--spring), --wdth .4s var(--ease), --wght .4s var(--ease), filter .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { --wdth: 125; --wght: 800; }
.btn:active { transform: scale(.96); }
.btn-glow {
  color: #fff;
  text-shadow: 0 0 12px rgba(255, 140, 0, .9);
  background:
    radial-gradient(120% 140% at 50% 130%, rgba(255, 140, 0, .95), rgba(255, 100, 0, .35) 55%, rgba(255, 255, 255, .06) 85%),
    linear-gradient(180deg, rgba(255, 230, 200, .28), rgba(255, 255, 255, .02));
  box-shadow:
    inset 0 -18px 30px -10px rgba(255, 79, 0, .75),
    0 0 24px rgba(255, 138, 0, .6),
    0 0 80px -8px rgba(255, 79, 0, .7);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.btn-ghost { color: #fff; }
.btn .arrow { display: inline-block; transition: transform .3s var(--spring); }
.btn:hover .arrow { transform: translateX(.25em); }

.icon-btn {
  width: 9.4cqw; height: 9.4cqw; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 3.6cqw; cursor: pointer; color: #fff;
}
.logo { height: 6.4cqw; width: auto; filter: drop-shadow(0 0 10px rgba(255, 138, 0, .35)); }
.logo-sm { height: 4.8cqw; }

/* =========================================================
   Variable-font motion
   ========================================================= */
[data-wave] { display: block; white-space: nowrap; }
.wl { display: inline-block; animation: breathe 3.4s ease-in-out infinite; animation-delay: calc(var(--i) * -.11s); }
@keyframes breathe {
  0%, 100% { --wght: 260; --rond: 0; }
  50% { --wght: 980; --rond: 100; }
}
@keyframes vf-in {
  from { opacity: 0; --wght: 60; --wdth: 25; filter: blur(10px); }
  to { opacity: 1; filter: none; }
}
@keyframes vf-slam {
  0% { opacity: 0; --wght: 1000; --wdth: 151; transform: scale(1.5); filter: blur(6px); }
  60% { opacity: 1; filter: none; }
  100% { opacity: 1; transform: none; }
}
@keyframes vf-pulse {
  0%, 100% { --wght: 900; --rond: 0; --grad: 0; }
  50% { --wght: 1000; --rond: 100; --grad: 100; }
}
@keyframes vf-tilt {
  0%, 100% { --slnt: 0; --wght: 900; }
  50% { --slnt: -10; --wght: 600; }
}

/* =========================================================
   Landing
   ========================================================= */
.landing {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  padding: calc(6cqw + env(safe-area-inset-top)) 6cqw calc(5cqw + env(safe-area-inset-bottom));
}
.landing-top { display: flex; align-items: center; justify-content: space-between; animation: fade 1s var(--ease) both; }
.top-r { display: flex; align-items: center; gap: 3cqw; }
/* language switch: quiet text, the active one lit */
.lang { display: flex; align-items: center; }
.lang button {
  font: inherit; font-size: 2.6cqw; --wght: 600; --wdth: 120; letter-spacing: .18em;
  background: none; border: 0; padding: 1.4cqw 1cqw; cursor: pointer;
  color: rgba(255, 255, 255, .38); transition: color .25s, text-shadow .25s;
}
.lang button + button::before { content: "/"; margin-right: 2cqw; color: rgba(255, 255, 255, .2); text-shadow: none; }
.lang button:hover { color: rgba(255, 255, 255, .75); }
.lang button[aria-pressed="true"] { color: var(--cream); --wght: 800; text-shadow: 0 0 10px rgba(255, 138, 0, .7); cursor: default; }
.lang button:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; border-radius: 4px; }
.pill-tag {
  font-size: 2.8cqw; --wght: 650; --wdth: 125; text-transform: uppercase; letter-spacing: .2em;
  padding: .7em 1.1em; border-radius: 999px; color: #fff;
  background: radial-gradient(120% 140% at 50% 130%, rgba(255, 140, 0, .8), rgba(255, 255, 255, .05) 80%);
  box-shadow: 0 0 22px rgba(255, 138, 0, .45);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.landing-body { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 6cqw; }
.hero { font-size: 14cqw; line-height: 1.04; letter-spacing: -.035em; --wght: 800; }
.hero > span { animation: vf-in 1.2s var(--ease) both; }
.hero-l2 { animation-delay: .12s !important; --slnt: -10; }
/* sized so the line still fits the frame when every letter peaks at weight 980 (measured: 0.9em ≈ 96% of width) */
.hero-l3 { animation-delay: .24s !important; --wdth: 135; font-size: .9em; white-space: nowrap; }
/* Polish line 2 ("w goonowaniu.") is ~20% longer: narrower width axis + a touch smaller, so it fits at peak weight */
html[lang="pl"] .hero-l2 { --wdth: 72; font-size: .88em; white-space: nowrap; }

.form { display: grid; gap: 4cqw; padding: 5cqw; border-radius: 7cqw; animation: up 1s var(--ease) .35s both; }
.field { display: flex; flex-direction: column; gap: 1.8cqw; border: 0; min-width: 0; }
.field-k { font-size: 2.8cqw; --wght: 600; --wdth: 120; text-transform: uppercase; letter-spacing: .22em; color: var(--muted); }
/* a <legend> sits outside the fieldset's flex flow, so the column gap doesn't reach it: give it the same space */
legend.field-k { padding: 0; margin-bottom: 1.8cqw; }
.field-k em { text-transform: none; letter-spacing: 0; color: rgba(255, 255, 255, .45); --wdth: 100; }
.field input[type="text"], .field input:not([type]), .field input[type="date"] {
  width: 100%; min-height: 13cqw; font-size: 4.8cqw; --wght: 600;
  padding: 0 4cqw; border-radius: 4cqw;
  background: rgba(0, 0, 0, .28); border: 1px solid var(--line); outline: none;
  box-shadow: inset 0 1px 6px rgba(0, 0, 0, .35);
  transition: border-color .25s, box-shadow .25s;
  color-scheme: dark;
  -webkit-appearance: none; appearance: none;
}
.field input::placeholder { color: rgba(255, 255, 255, .3); }
.field input:focus { border-color: rgba(255, 170, 90, .8); box-shadow: inset 0 1px 6px rgba(0, 0, 0, .35), 0 0 0 4px rgba(255, 138, 0, .18), 0 0 24px rgba(255, 138, 0, .3); }
.field input[type="date"]::-webkit-date-and-time-value { text-align: left; }
.field input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(.8) sepia(1) saturate(4) hue-rotate(-10deg); opacity: .8; }

.seg { display: grid; grid-template-columns: repeat(4, auto); gap: 1.6cqw; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span {
  display: grid; place-items: center; text-align: center; height: 100%;
  min-height: 11cqw; padding: 1.6cqw 2.4cqw; border-radius: 999px;
  font-size: 3.3cqw; line-height: 1.05; --wght: 550; --wdth: 90;
  background: rgba(0, 0, 0, .25);
  cursor: pointer; transition: all .35s var(--ease);
}
.seg input:checked + span {
  --wght: 800; --wdth: 105; color: #fff;
  background: radial-gradient(120% 140% at 50% 130%, rgba(255, 140, 0, .85), rgba(255, 110, 0, .2) 60%, rgba(255, 255, 255, .05));
  box-shadow: 0 0 18px rgba(255, 138, 0, .5);
}
.seg input:focus-visible + span { outline: 2px solid var(--amber); outline-offset: 2px; }

.form .btn { margin-top: 1cqw; }
/* while the result is being worked out (hidden-result check takes a moment) */
.btn.working { pointer-events: none; animation: working 1s ease-in-out infinite; }
.btn.working .arrow { animation: nudge .6s ease-in-out infinite alternate; }
@keyframes working { 50% { filter: brightness(1.25); } }
@keyframes nudge { to { transform: translateX(.35em); } }
.error { min-height: 1.2em; font-size: 3.5cqw; --wght: 650; color: var(--amber); text-align: center; }
.error.shake { animation: shake .45s; }
.fine { font-size: 2.7cqw; line-height: 1.45; color: rgba(255, 255, 255, .5); text-align: center; animation: fade 1s var(--ease) .6s both; }
.fine em { color: #fff; }

.ready { display: flex; flex-direction: column; gap: 5cqw; padding: 6cqw; border-radius: 7cqw; animation: up .9s var(--ease) .35s both; }
.ready-text { font-size: 6cqw; --wght: 600; line-height: 1.15; letter-spacing: -.02em; }
.ready-text b { --wght: 900; }

/* =========================================================
   Story
   ========================================================= */
.story {
  position: absolute; inset: 0;
  /* none: a resting finger must not turn into a scroll/zoom gesture (that cancels the press and un-pauses) */
  touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
  cursor: pointer;
}
.top-btns { display: flex; align-items: center; gap: 2cqw; }
/* pause: quiet until paused, then lit */
.icon-quiet { background: none; border: 0; color: rgba(255, 255, 255, .55); transition: color .25s, background .25s; }
.icon-quiet:hover { color: #fff; }
.icon-quiet svg { width: 46%; height: 46%; fill: currentColor; }
.icon-quiet .i-play { display: none; }
.story.paused .icon-quiet { color: #fff; background: rgba(255, 138, 0, .22); box-shadow: 0 0 18px rgba(255, 138, 0, .45); }
.story.paused .icon-quiet .i-play { display: block; }
.story.paused .icon-quiet .i-pause { display: none; }
.progress {
  position: absolute; z-index: 20; left: 4cqw; right: 4cqw; top: calc(3cqw + env(safe-area-inset-top));
  display: flex; gap: 1.2cqw;
}
.progress .bar { flex: 1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .18); overflow: hidden; }
.progress .bar i { display: block; height: 100%; width: 100%; background: var(--cream); box-shadow: 0 0 8px var(--orange); transform: scaleX(0); transform-origin: left; }
.progress .bar.done i { transform: scaleX(1); }
.progress .bar.run i { animation: fill var(--dur, 6s) linear forwards; }
.story.paused .progress .bar.run i { animation-play-state: paused; }
@keyframes fill { to { transform: scaleX(1); } }

.story-top {
  position: absolute; z-index: 20; left: 4cqw; right: 4cqw; top: calc(7cqw + env(safe-area-inset-top));
  display: flex; align-items: center; justify-content: space-between;
}
.hint {
  position: absolute; z-index: 20; left: 0; right: 0; bottom: calc(4cqw + env(safe-area-inset-bottom));
  text-align: center; font-size: 2.7cqw; --wght: 500; --wdth: 115; letter-spacing: .08em; color: rgba(255, 255, 255, .45);
  transition: opacity .4s;
}
.hint.gone { opacity: 0; }

.slides { position: absolute; inset: 0; }
.slide {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(20cqw + env(safe-area-inset-top)) 6.5cqw calc(13cqw + env(safe-area-inset-bottom));
  visibility: hidden; opacity: 0;
  isolation: isolate;
}
.slide.is-active { visibility: visible; opacity: 1; }
/* soft dark halo behind content so type stays legible over bright light */
.slide::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(85% 45% at 45% 52%, rgba(5, 1, 2, .62), rgba(5, 1, 2, .25) 60%, transparent 85%);
}
.body, .lede, .mid, .eyebrow { text-shadow: 0 1px 18px rgba(5, 1, 2, .7); }
.story.paused .slide *, .story.paused .slide *::before { animation-play-state: paused !important; }

/* ---------- Typography ---------- */
.eyebrow {
  font-size: 3cqw; --wght: 650; --wdth: 125; text-transform: uppercase; letter-spacing: .3em;
  color: var(--amber); text-shadow: 0 0 14px rgba(255, 138, 0, .55);
  margin-bottom: 4.5cqw;
}
.mega { font-size: 24cqw; line-height: 1; letter-spacing: -.045em; --wght: 900; --wdth: 85; }
.big { font-size: 13cqw; line-height: 1.02; letter-spacing: -.035em; --wght: 850; }
.mid { font-size: 7cqw; line-height: 1.08; letter-spacing: -.02em; --wght: 750; }
.body { font-size: 4.7cqw; line-height: 1.32; --wght: 430; color: rgba(255, 255, 255, .84); max-width: 32ch; }
.body b { color: #fff; --wght: 800; }
.num { font-variant-numeric: tabular-nums; }

.chip {
  display: inline-flex; align-items: center; gap: .5em; align-self: flex-start; max-width: 100%;
  font-size: 3.9cqw; --wght: 700; line-height: 1.2;
  padding: .8em 1.2em; border-radius: 999px; color: #fff;
}
.sticker {
  display: inline-block; align-self: flex-start;
  font-size: 3.1cqw; --wght: 750; --wdth: 115; text-transform: uppercase; letter-spacing: .08em;
  padding: .7em 1.1em; border-radius: 999px; color: var(--cream);
  transform: rotate(-4deg);
}
.card { border-radius: 6cqw; padding: 5cqw; }
.card .k { font-size: 2.8cqw; --wght: 650; --wdth: 125; text-transform: uppercase; letter-spacing: .24em; color: var(--muted); margin-bottom: 1.8cqw; }
.card .v { font-size: 5.6cqw; --wght: 750; line-height: 1.15; }

/* ---------- Entry animation system ----------
   .fx + one of: up, pop, left, right, fade, blur, vf, drop
   delay: style="--d:.4s"                                        */
.slide .fx { opacity: 0; }
.slide.is-active .fx { animation: up .9s var(--ease) var(--d, 0s) both; }
.slide.is-active .fx.pop { animation-name: pop; animation-timing-function: var(--spring); }
.slide.is-active .fx.left { animation-name: left; }
.slide.is-active .fx.right { animation-name: right; }
.slide.is-active .fx.fade { animation-name: fade; animation-duration: 1.2s; }
.slide.is-active .fx.blur { animation-name: blur; animation-duration: 1.1s; }
.slide.is-active .fx.vf { animation-name: vf-in; animation-duration: 1.4s; }
.slide.is-active .fx.drop { animation-name: drop; animation-timing-function: var(--spring); }

/* word reveal with variable-font stretch */
.slide .rise { display: block; padding-bottom: .06em; white-space: nowrap; }
.slide .rise > span { display: inline-block; opacity: 0; }
.slide.is-active .rise > span { animation: rise-vf 1.15s var(--ease) var(--d, 0s) both; }
.measuring, .measuring * { animation: none !important; transition: none !important; }
@keyframes rise-vf {
  from { opacity: 0; transform: translateY(80%); --wght: 80; --wdth: 25; }
  to { opacity: 1; transform: none; }
}

@keyframes up { from { opacity: 0; transform: translateY(12cqw); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.3) rotate(-10deg); } to { opacity: 1; transform: none; } }
@keyframes left { from { opacity: 0; transform: translateX(-50cqw); } to { opacity: 1; transform: none; } }
@keyframes right { from { opacity: 0; transform: translateX(50cqw); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes blur { from { opacity: 0; filter: blur(18px); transform: scale(1.3); } to { opacity: 1; filter: none; transform: none; } }
@keyframes drop { from { opacity: 0; transform: translateY(-40cqw) rotate(10deg); } to { opacity: 1; transform: none; } }
@keyframes shake { 20%, 60% { transform: translateX(-2cqw); } 40%, 80% { transform: translateX(2cqw); } }
@keyframes wobble { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(3deg) scale(1.04); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2.5cqw); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Intro ---------- */
.s-intro .mega { font-size: 26cqw; }
.s-intro .name { --wdth: 120; }
.s-intro .lede { font-size: 7.6cqw; line-height: 1.08; letter-spacing: -.03em; --wght: 350; color: var(--cream); }
.s-intro .lede + .lede { --slnt: -10; color: rgba(255, 241, 222, .75); }
.s-intro .sticker { margin-top: 8cqw; }
.slide.is-active.s-intro .sticker { animation: pop .8s var(--spring) var(--d) both, wobble 3s ease-in-out calc(var(--d) + .8s) infinite; }

/* ---------- Minutes ---------- */
.s-minutes .mega { font-size: 25cqw; }
.s-minutes .unit { font-size: 9cqw; --wght: 300; --wdth: 151; letter-spacing: .02em; text-transform: lowercase; margin-top: 1cqw; }
.s-minutes .body { margin-top: 6cqw; }
.s-minutes .chip { margin-top: 6cqw; }

/* ---------- Peak ---------- */
.s-peak .clock { font-size: 27cqw; white-space: nowrap; line-height: .85; letter-spacing: -.05em; --wght: 900; --wdth: 70; }
.slide.is-active.s-peak .clock { animation: vf-in 1.4s var(--ease) .15s both, vf-tilt 4s ease-in-out 1.6s infinite; }
.s-peak .clock small { font-size: .3em; letter-spacing: .1em; --wdth: 151; --wght: 500; margin-left: .2em; color: var(--amber); }
.s-peak .body { margin-top: 5cqw; }
.s-peak .card { margin-top: 6cqw; }
.s-peak .card .v { color: var(--cream); }

/* ---------- Drumroll ---------- */
.bg-marquee {
  position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  display: flex; flex-direction: column; justify-content: center; gap: 1cqh;
  transform: rotate(-90deg) scale(1.9);
  opacity: 0; transition: opacity 1s var(--ease);
}
.s-drum.landed .bg-marquee { opacity: 1; }
.bg-marquee .row { display: flex; width: max-content; animation: marquee 16s linear infinite; }
.bg-marquee .row.rev { animation-direction: reverse; animation-duration: 20s; }
.bg-marquee span {
  font-size: 15cqw; line-height: .95; white-space: nowrap; text-transform: uppercase;
  --wght: 900; --wdth: 25;
  color: #fff; filter: url(#ol-faint);
}
.s-drum .slot {
  font-size: 17cqw; line-height: 1; letter-spacing: -.04em;
  min-height: 2.1em; display: flex; align-items: center;
}
.s-drum .slot b { display: block; font-weight: normal; --wght: 220; --wdth: 40; --slnt: -10; color: rgba(255, 255, 255, .7); filter: blur(.6px); }
.s-drum.landed .slot b {
  --wght: 950; --wdth: 100; --slnt: 0; filter: none; animation: vf-slam .9s var(--ease) both;
  color: var(--cream); text-shadow: 0 0 .2em rgba(255, 138, 0, .9), 0 0 .6em rgba(255, 79, 0, .55);
}
/* animate the glass card itself: an animated-opacity parent would cut off its backdrop blur */
.s-drum .after .card { opacity: 0; }
.s-drum.landed .after .card { animation: up .8s var(--ease) .35s both; }
.s-drum .after .card { display: flex; align-items: center; gap: 4cqw; }
.s-drum .after .body { margin: 0; }
.s-drum .rank {
  position: absolute; right: 6cqw; top: 22cqw;
  font-size: 30cqw; line-height: 1; --wght: 900; --wdth: 25;
  opacity: 0;
}
.s-drum .rank i { font-style: normal; color: #fff; filter: url(#ol-hot); }
.s-drum.landed .rank { animation: vf-in 1.2s var(--ease) .1s both; }
.big-ico { font-size: 16cqw; line-height: 1; display: inline-block; flex: none; }
img.big-ico { width: 18cqw; height: 18cqw; object-fit: contain; }
.s-drum.landed .big-ico { animation: float 3s ease-in-out 1s infinite; }

/* ---------- Top 5 ---------- */
.list { list-style: none; display: flex; flex-direction: column; gap: 2.6cqw; }
.list li { position: relative; }
.list .row {
  display: grid; grid-template-columns: 8cqw 10cqw 1fr; align-items: center; gap: 2.6cqw;
  padding: 3.4cqw 4cqw; border-radius: 5cqw; position: relative;
}
.list .n { font-size: 7.5cqw; --wght: 300; --wdth: 60; color: var(--amber); }
.list li:first-child .n { --wght: 900; color: #fff; }
.list .ico { font-size: 7.6cqw; line-height: 1; text-align: center; }
.list img.ico { width: 9cqw; height: 9cqw; object-fit: contain; }
.list .name { font-size: 6cqw; --wght: 780; --wdth: 95; letter-spacing: -.02em; line-height: 1; }
.list li:first-child .name { --wght: 950; text-shadow: 0 0 14px rgba(255, 138, 0, .8); }
/* sticker is a sibling of the glass row (not inside it), so its own backdrop-filter blurs the rows under it */
.list .sticker { position: absolute; z-index: 2; right: -1cqw; top: -3.4cqw; font-size: 2.4cqw; transform: rotate(5deg); }
.slide.is-active .list .sticker.fx { animation-name: tag; animation-timing-function: var(--spring); }
@keyframes tag { from { opacity: 0; transform: scale(1.8) rotate(-12deg); } to { opacity: 1; transform: rotate(5deg); } }

/* ---------- Performer ---------- */
.s-performer { align-items: center; text-align: center; }
.ring-wrap { position: relative; width: 68cqw; height: 68cqw; display: grid; place-items: center; margin-bottom: 6cqw; }
.ring-wrap::before {
  content: ""; position: absolute; inset: 7cqw; border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .02));
  box-shadow: 0 0 40px rgba(255, 138, 0, .45);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.ring-wrap::after { inset: 7cqw; border-radius: 50%; }
.ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 18s linear infinite; overflow: visible; }
.ring text { font-family: var(--font); font-size: 11px; font-variation-settings: "wght" 650, "wdth" 125; fill: var(--cream); text-transform: uppercase; }
.avatar { position: relative; width: 46cqw; height: 46cqw; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px rgba(255, 220, 180, .6), 0 0 30px rgba(255, 138, 0, .5); }
div.avatar {
  display: grid; place-items: center;
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 241, 222, .9), transparent 45%),
    radial-gradient(circle at 50% 110%, hsl(calc(var(--h, 20) * 1deg) 100% 50%), hsl(calc((var(--h, 20) - 20) * 1deg) 100% 22%));
}
div.avatar span { font-size: 15cqw; --wght: 900; --wdth: 70; letter-spacing: -.04em; color: rgba(40, 6, 0, .8); }
.s-performer .big { font-size: 12cqw; }
.s-performer .body { margin: 4cqw auto 0; }

/* ---------- Search ---------- */
.searchbar {
  display: flex; align-items: center; gap: 3cqw;
  padding: 4.6cqw 5cqw; border-radius: 999px;
  font-size: 5cqw; --wght: 600;
}
.searchbar svg { flex: none; width: 5.4cqw; height: 5.4cqw; color: var(--amber); }
.searchbar .typed { flex: 1; min-height: 1.2em; line-height: 1.2; word-break: break-word; }
.caret { display: inline-block; width: .07em; height: 1.05em; background: var(--amber); box-shadow: 0 0 8px var(--orange); vertical-align: -.15em; margin-left: .04em; animation: blink .8s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.suggest { list-style: none; margin-top: 3cqw; border-radius: 6cqw; overflow: hidden; }
.suggest li { padding: 3.6cqw 5cqw; font-size: 4.1cqw; --wght: 500; color: rgba(255, 255, 255, .82); border-top: 1px solid var(--line); opacity: 0; transform: translateY(-2cqw); transition: opacity .35s, transform .45s var(--ease); }
.suggest li:first-child { border-top: 0; }
.suggest li::before { content: "↗ "; color: var(--amber); }
.suggest li.on { opacity: 1; transform: none; }
.s-search .body { margin-top: 7cqw; }

/* ---------- Stats ---------- */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 3cqw; }
.tile {
  border-radius: 6cqw; padding: 4.6cqw;
  min-height: 36cqw; display: flex; flex-direction: column; justify-content: space-between; gap: 3cqw;
}
.tile .v { font-size: 12cqw; line-height: .9; letter-spacing: -.04em; --wght: 900; --wdth: 75; }
.tile .k { font-size: 3.4cqw; --wght: 500; line-height: 1.25; color: rgba(255, 255, 255, .8); }
.s-stats .body { margin-top: 6cqw; }

/* ---------- Personality ---------- */
.s-person .pwrap { position: relative; }
.s-person .stamp {
  z-index: 2;
  background: linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .04));
  -webkit-backdrop-filter: blur(10px) saturate(1.4); backdrop-filter: blur(10px) saturate(1.4);
}
.s-person .pcard { position: relative; border-radius: 8cqw; padding: 8cqw 6cqw 7cqw; }
.s-person .big-ico { font-size: 22cqw; animation: float 3.2s ease-in-out infinite; margin-bottom: 4cqw; }
.s-person .big { font-size: 13.5cqw; }
.s-person .big { --wght: 900; } /* = vf-pulse start, so the pulse kicks in without a jump */
.slide.is-active.s-person .big { animation: vf-pulse 3s ease-in-out 1.6s infinite; }
.s-person .body { margin-top: 4cqw; }
.s-person .zodiac { margin-top: 5cqw; }
.s-person .stamp {
  position: absolute; right: -2cqw; top: -6cqw; width: 26cqw; height: 26cqw; border-radius: 50%;
  display: grid; place-items: center; text-align: center;
  font-size: 2.6cqw; --wght: 800; --wdth: 120; text-transform: uppercase; letter-spacing: .12em; line-height: 1.35; color: #fff;
  transform: rotate(12deg);
}
.slide.is-active .stamp.fx { animation-name: stamp; animation-timing-function: var(--spring); }
@keyframes stamp { from { opacity: 0; transform: scale(2.2) rotate(-20deg); } to { opacity: 1; transform: rotate(12deg); } }

/* ---------- Goon age ---------- */
.s-age { text-align: center; align-items: center; }
.s-age .mega { font-size: 64cqw; line-height: .8; --wdth: 75; }
.slide.is-active.s-age .mega { animation: blur 1.1s var(--ease) .2s both, vf-pulse 2.6s ease-in-out 1.5s infinite; }
.s-age .mid { margin-top: 4cqw; max-width: 24ch; }
.s-age .body { margin: 4cqw auto 0; }

/* ---------- Summary ---------- */
.s-summary { justify-content: flex-start; padding-top: calc(17cqw + env(safe-area-inset-top)); cursor: default; }
.s-summary .eyebrow { text-align: center; margin-bottom: 3cqw; }
.preview { flex: 1; min-height: 0; position: relative; display: grid; place-items: center; }
.preview img { position: absolute; inset: 0; margin: auto; max-height: 100%; max-width: 100%; border-radius: 4cqw; box-shadow: 0 0 0 1px rgba(255, 220, 180, .35), 0 0 50px rgba(255, 138, 0, .35); }
.preview .loading { font-size: 4cqw; color: var(--muted); }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 2.6cqw; margin-top: 4cqw; }
.actions .btn { font-size: 3.9cqw; padding: .95em 1em; }
/* buttons animate themselves (keeps their backdrop blur); once in, release transform so :active can press */
.slide.is-active .actions .btn.fx { opacity: 1; animation-fill-mode: backwards; }
.actions .btn-glow { grid-column: 1 / -1; font-size: 4.8cqw; }
.actions .btn-text { grid-column: 1 / -1; background: none; border: 0; color: rgba(255, 255, 255, .6); padding: .5em 1em; font-size: 3.5cqw; text-decoration: underline; text-underline-offset: .3em; text-decoration-color: rgba(255, 255, 255, .25); }
.actions .btn-text:hover { color: #fff; }
.actions .btn:disabled { opacity: .85; cursor: progress; --wght: 600; }
/* live video render inside the summary preview */
.preview .rec-canvas { position: absolute; inset: 0; margin: auto; max-height: 100%; max-width: 100%; border-radius: 4cqw; box-shadow: 0 0 0 1px rgba(255, 220, 180, .35), 0 0 50px rgba(255, 138, 0, .35); }
.preview .rec-bar { position: absolute; left: 18%; right: 18%; bottom: 3cqw; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .2); overflow: hidden; }
.preview .rec-bar i { display: block; height: 100%; background: var(--cream); box-shadow: 0 0 8px var(--orange); transform: scaleX(0); transform-origin: left; }
.preview .rec-note { position: absolute; bottom: 5.5cqw; left: 0; right: 0; text-align: center; font-size: 2.6cqw; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .7); text-shadow: 0 1px 8px #000; }

/* ---------- Toast ---------- */
.toast {
  position: absolute; z-index: 60; left: 50%; bottom: calc(8cqw + env(safe-area-inset-bottom));
  transform: translate(-50%, 30cqw); opacity: 0;
  padding: .9em 1.3em; border-radius: 999px;
  font-size: 3.7cqw; --wght: 700; white-space: nowrap;
  transition: transform .45s var(--spring), opacity .3s;
}
.toast.on { transform: translate(-50%, 0); opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .wl, .ring, .bg-marquee .row { animation: none !important; }
}
