:root {
  --bg: #080c11;
  --bg-2: #0d1218;
  --panel: rgba(18, 20, 21, 0.86);
  --panel-strong: #151718;
  --panel-warm: #1d170e;
  --text: #fffaf0;
  --muted: #aeb3b8;
  --muted-strong: #d5d3cd;
  --gold: #f5aa24;
  --gold-2: #ffd25b;
  --amber: #d77c12;
  --copper: #8a4314;
  --brown: #4f2109;
  --green: #81d456;
  --line: rgba(255, 191, 72, 0.18);
  --line-strong: rgba(255, 191, 72, 0.36);
  --shadow: 0 24px 80px rgba(0,0,0,.42);
  --radius: 24px;
  --container: 1220px;
  --header-height: 86px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; color-scheme: dark; max-width: 100%; }
body { margin: 0; width: 100%; max-width: 100%; background: var(--bg); color: var(--text); font-family: var(--font); line-height: 1.55; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { border: 0; color: inherit; }
img, svg { display: block; max-width: 100%; }
::selection { background: rgba(245,170,36,.35); color: #fff; }
:focus-visible { outline: 3px solid rgba(245,170,36,.64); outline-offset: 3px; }

.skip-link { position: fixed; top: 12px; left: 12px; z-index: 999; transform: translateY(-160%); background: var(--gold); color: #171008; padding: 10px 14px; border-radius: 12px; font-weight: 900; }
.skip-link:focus { transform: translateY(0); }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }

.site-header { position: sticky; inset: 0 0 auto; z-index: 100; height: var(--header-height); background: rgba(8,12,17,.72); backdrop-filter: blur(22px); border-bottom: 1px solid transparent; transition: .2s ease; }
.site-header.scrolled { background: rgba(8,12,17,.94); border-color: var(--line); }
.nav-wrap { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 8px; min-width: 228px; }
.brand-mascot { width: 82px; height: 61px; object-fit: contain; filter: drop-shadow(0 9px 12px rgba(0,0,0,.32)); }
.brand-wordmark { display: grid; line-height: .86; letter-spacing: -.055em; }
.brand-wordmark span { font-size: .88rem; font-weight: 950; color: #fff; }
.brand-wordmark strong { font-size: 1.58rem; color: var(--gold); font-weight: 1000; }
.brand-wordmark small { margin-top: 6px; font-size: .55rem; letter-spacing: .02em; color: var(--muted); font-weight: 750; }
.nav-links { margin-left: auto; display: flex; align-items: center; justify-content: flex-end; gap: 5px; }
.nav-links > a:not(.button) { padding: 11px 12px; border-radius: 12px; color: var(--muted-strong); font-weight: 750; font-size: .92rem; transition: .16s ease; }
.nav-links > a:not(.button):hover, .nav-links > a[aria-current="page"] { color: #fff; background: rgba(255,255,255,.055); }
.menu-toggle { display: none; width: 46px; height: 46px; margin-left: auto; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.05); cursor: pointer; }
.menu-toggle span, .menu-toggle::before, .menu-toggle::after { content: ""; display: block; width: 21px; height: 2px; background: currentColor; border-radius: 10px; margin: 4px auto; transition: .18s ease; }
.menu-open .menu-toggle span { opacity: 0; }
.menu-open .menu-toggle::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-toggle::after { transform: translateY(-6px) rotate(-45deg); }

.button { min-height: 48px; padding: 12px 19px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-weight: 900; letter-spacing: -.015em; cursor: pointer; transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #1d1205; background: linear-gradient(135deg, var(--gold-2), var(--gold) 58%, #ed8f18); box-shadow: 0 14px 36px rgba(245,170,36,.22); }
.button-primary:hover { box-shadow: 0 18px 44px rgba(245,170,36,.32); }
.button-secondary { background: rgba(255,255,255,.055); border: 1px solid var(--line-strong); color: #fff; }
.button-secondary:hover { border-color: rgba(245,170,36,.68); }
.button-compact { min-height: 43px; padding: 9px 16px; font-size: .9rem; }
.button-large { min-height: 56px; padding: 15px 23px; border-radius: 17px; }
.button-icon { width: 18px; height: 18px; flex: 0 0 auto; }
.play-dot { width: 25px; height: 25px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--gold); font-size: .68rem; padding-left: 2px; }

.hero { position: relative; isolation: isolate; overflow: hidden; padding: 78px 0 92px; background:
  radial-gradient(circle at 77% 42%, rgba(213,119,18,.18), transparent 28%),
  radial-gradient(circle at 18% 16%, rgba(245,170,36,.08), transparent 24%),
  linear-gradient(180deg, #080c11 0%, #0a0e13 100%); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; opacity: .36; background-image: linear-gradient(rgba(255,255,255,.026) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.026) 1px, transparent 1px); background-size: 58px 58px; mask-image: linear-gradient(to bottom, black, transparent 92%); }
.hero::after { content: ""; position: absolute; width: 640px; height: 150px; right: 4%; bottom: 5%; z-index: -1; background: radial-gradient(ellipse, rgba(245,170,36,.18), transparent 68%); filter: blur(30px); }
.hero-orb { position: absolute; border-radius: 50%; filter: blur(4px); opacity: .6; pointer-events: none; }
.hero-orb-one { width: 9px; height: 9px; background: var(--gold); right: 8%; top: 22%; box-shadow: -92px 190px 0 3px rgba(245,170,36,.25), -330px 60px 0 1px rgba(245,170,36,.35), 70px 245px 0 2px rgba(245,170,36,.2); }
.hero-orb-two { width: 5px; height: 5px; background: #fff4cc; right: 32%; top: 18%; box-shadow: 180px 110px 0 1px rgba(255,244,204,.2), 305px 330px 0 1px rgba(255,244,204,.25); }
.hero-grid { display: grid; grid-template-columns: .86fr 1.14fr; align-items: center; gap: 56px; min-height: 640px; }
.hero-copy-wrap { position: relative; z-index: 4; }
.eyebrow, .section-kicker { display: inline-flex; align-items: center; gap: 8px; text-transform: uppercase; letter-spacing: .11em; font-size: .75rem; font-weight: 950; color: var(--gold-2); }
.eyebrow { padding: 7px 10px; border: 1px solid var(--line-strong); border-radius: 999px; background: rgba(245,170,36,.055); }
.eyebrow span { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 16px rgba(245,170,36,.9); }
.hero h1 { max-width: 660px; margin: 22px 0 24px; font-size: clamp(3.4rem, 6vw, 6.25rem); line-height: .92; letter-spacing: -.07em; font-weight: 1000; }
.hero h1 em { font-style: normal; color: var(--gold); text-shadow: 0 0 38px rgba(245,170,36,.12); }
.hero-copy { max-width: 630px; margin: 0; font-size: 1.15rem; color: var(--muted-strong); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 27px; color: var(--muted); font-size: .9rem; font-weight: 750; }

.hero-stage { position: relative; min-height: 660px; }
.hero-mascot { position: absolute; width: 610px; right: -70px; bottom: -25px; opacity: .26; filter: sepia(.15) saturate(1.15) drop-shadow(0 40px 30px rgba(0,0,0,.45)); }
.phone-shell { position: absolute; z-index: 3; width: 345px; height: 650px; left: 20%; top: 0; border-radius: 52px; padding: 11px; background: linear-gradient(145deg, #66543f 0%, #131518 14%, #3c2e1f 65%, #08090b 100%); box-shadow: 0 45px 90px rgba(0,0,0,.62), -10px 10px 0 rgba(255,255,255,.04) inset, 0 0 0 1px rgba(255,208,105,.36); transform: perspective(1100px) rotateY(-7deg) rotateZ(2deg); }
.phone-notch { position: absolute; z-index: 4; width: 112px; height: 25px; left: 50%; top: 17px; transform: translateX(-50%); border-radius: 20px; background: #020304; }
.phone-screen { position: relative; height: 100%; overflow: hidden; border-radius: 43px; padding: 22px 17px 17px; background: radial-gradient(circle at 50% 25%, rgba(245,170,36,.15), transparent 28%), linear-gradient(180deg, #0e1012, #090b0d); border: 1px solid rgba(255,255,255,.07); }
.phone-top { display: flex; justify-content: space-between; padding: 0 10px 20px; color: #fff; font-size: .68rem; font-weight: 900; }
.app-brand-mini { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 9px; padding: 9px 8px; }
.app-brand-mini img { width: 38px; height: 38px; object-fit: contain; border-radius: 11px; background: rgba(245,170,36,.1); }
.app-brand-mini strong, .app-brand-mini small { display: block; }
.app-brand-mini strong { font-size: .88rem; }
.app-brand-mini small { color: var(--muted); font-size: .64rem; }
.live-pill { padding: 5px 7px; border-radius: 8px; color: #1f1304; background: var(--gold); font-size: .58rem; font-weight: 1000; }
.score-card { margin: 13px 4px 17px; padding: 24px 20px 18px; text-align: center; border: 1px solid var(--line-strong); border-radius: 25px; background: linear-gradient(180deg, rgba(245,170,36,.105), rgba(255,255,255,.018)); box-shadow: inset 0 1px rgba(255,255,255,.05); }
.score-card small { color: var(--muted-strong); }
.score-card strong { display: block; margin: 10px 0 4px; font-size: 3rem; line-height: 1; letter-spacing: -.065em; }
.score-card strong span { color: var(--gold); font-size: 1.25rem; }
.score-card em { display: inline-flex; padding: 5px 9px; border-radius: 999px; background: rgba(245,170,36,.12); color: var(--gold-2); font-size: .68rem; font-style: normal; font-weight: 900; }
.score-line { margin-top: 16px; height: 6px; border-radius: 20px; background: rgba(255,255,255,.08); overflow: hidden; }
.score-line i { display: block; width: 67%; height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--amber),var(--gold-2)); box-shadow: 0 0 16px rgba(245,170,36,.55); }
.mini-title { display: flex; align-items: center; justify-content: space-between; margin: 0 5px 8px; }
.mini-title strong { font-size: .8rem; }
.mini-title button { color: var(--gold); background: transparent; font-size: .67rem; font-weight: 900; }
.drink-row { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 9px; margin: 7px 4px; padding: 10px; border: 1px solid rgba(255,255,255,.06); border-radius: 15px; background: rgba(255,255,255,.03); }
.drink-symbol { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; background: rgba(245,170,36,.14); }
.drink-row strong, .drink-row small { display: block; }
.drink-row strong { font-size: .76rem; }
.drink-row small { color: var(--muted); font-size: .61rem; }
.drink-row b { color: var(--gold); font-size: .66rem; }
.phone-nav { position: absolute; inset: auto 0 0; height: 76px; padding: 11px 16px 9px; display: grid; grid-template-columns: 1fr 1fr 58px 1fr 1fr; align-items: end; background: rgba(7,9,11,.96); border-top: 1px solid rgba(255,255,255,.06); }
.phone-nav span { display: grid; place-items: center; color: #7d7f80; font-size: .95rem; }
.phone-nav span.active { color: var(--gold); }
.phone-nav small { margin-top: 3px; font-size: .48rem; }
.phone-nav button { align-self: center; width: 52px; height: 52px; border-radius: 50%; color: #1b1003; background: linear-gradient(135deg,var(--gold-2),var(--gold)); font-size: 1.65rem; }
.float-card { position: absolute; z-index: 5; border: 1px solid var(--line-strong); border-radius: 19px; background: rgba(14,16,18,.9); backdrop-filter: blur(18px); box-shadow: var(--shadow); }
.room-float { right: -20px; top: 72px; width: 240px; padding: 18px; }
.room-float > div:first-child { display: flex; align-items: center; gap: 8px; }
.room-float p { margin: 8px 0 12px; color: var(--muted); font-size: .82rem; }
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px rgba(129,212,86,.7); }
.avatar-stack { display: flex; align-items: center; }
.avatar-stack span, .avatar-stack b { width: 34px; height: 34px; margin-left: -7px; display: grid; place-items: center; border: 2px solid #17191b; border-radius: 50%; background: linear-gradient(145deg,#8b4717,#e0a45d); color: #fff8e8; font-size: .6rem; font-weight: 950; }
.avatar-stack span:first-child { margin-left: 0; }
.avatar-stack b { background: #252729; color: var(--muted-strong); }
.rank-float { width: 235px; right: 0; bottom: 52px; padding: 16px; }
.rank-float > small { display: block; margin-bottom: 8px; color: var(--gold); font-weight: 900; }
.rank-float > div { display: grid; grid-template-columns: 24px 1fr auto; gap: 8px; align-items: center; padding: 7px 6px; border-radius: 10px; font-size: .76rem; }
.rank-float > div.me { background: rgba(245,170,36,.10); color: var(--gold-2); }
.rank-float b { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.08); }

.quick-strip { border-block: 1px solid var(--line); background: linear-gradient(90deg, rgba(245,170,36,.04), rgba(255,255,255,.018), rgba(245,170,36,.04)); }
.quick-grid { display: grid; grid-template-columns: repeat(4,1fr); }
.quick-grid > div { padding: 22px 28px; border-right: 1px solid var(--line); }
.quick-grid > div:last-child { border-right: 0; }
.quick-grid strong, .quick-grid span { display: block; }
.quick-grid strong { color: var(--gold); text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; }
.quick-grid span { margin-top: 4px; font-weight: 820; }

.section { position: relative; padding: 108px 0; }
.section:nth-of-type(even) { background: rgba(255,255,255,.012); }
.section-heading { max-width: 780px; margin-bottom: 45px; }
.section-heading h2, .ranking-copy h2, .demo-copy h2, .games-copy h2, .cta-panel h2 { margin: 12px 0 13px; font-size: clamp(2.3rem,4vw,4.15rem); line-height: 1; letter-spacing: -.055em; }
.section-heading p, .ranking-copy > p, .demo-copy > p, .games-copy > p { margin: 0; color: var(--muted-strong); font-size: 1.06rem; }
.split-heading { max-width: none; display: grid; grid-template-columns: 1.15fr .85fr; gap: 60px; align-items: end; }
.split-heading p { padding-bottom: 7px; }
.feature-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 17px; }
.feature-card { position: relative; min-height: 255px; padding: 28px; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(145deg, rgba(255,255,255,.04), rgba(255,255,255,.015)); transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.feature-card::after { content: ""; position: absolute; right: -55px; bottom: -70px; width: 155px; height: 155px; border-radius: 50%; background: radial-gradient(circle, rgba(245,170,36,.13), transparent 69%); }
.feature-card:hover { transform: translateY(-5px); border-color: var(--line-strong); background: linear-gradient(145deg, rgba(245,170,36,.065), rgba(255,255,255,.02)); }
.feature-icon { width: 55px; height: 55px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 17px; background: rgba(245,170,36,.1); font-size: 1.55rem; }
.feature-number { position: absolute; top: 28px; right: 26px; color: rgba(255,255,255,.13); font-size: 1.55rem; font-weight: 1000; }
.feature-card h3 { margin: 28px 0 9px; font-size: 1.22rem; letter-spacing: -.03em; }
.feature-card p { margin: 0; color: var(--muted); }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(27,25,20,.88), rgba(14,17,20,.94)); box-shadow: var(--shadow); }
.section-social { background: radial-gradient(circle at 75% 35%, rgba(245,170,36,.08), transparent 30%), #0a0e13 !important; }
.social-demo-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 20px; }
.room-demo, .party-feed { padding: 27px; }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.panel-head h3 { margin: 7px 0 0; font-size: 1.55rem; }
.room-code { padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); font-size: .7rem; }
.room-code strong { display: block; color: var(--gold-2); font-size: .95rem; letter-spacing: .08em; }
.room-summary { display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; margin: 22px 0 18px; }
.room-summary > div { padding: 13px; border: 1px solid rgba(255,255,255,.06); border-radius: 15px; background: rgba(255,255,255,.026); }
.room-summary strong, .room-summary span { display: block; }
.room-summary strong { color: var(--gold-2); font-size: 1.28rem; }
.room-summary span { color: var(--muted); font-size: .69rem; }
.member-list { display: grid; gap: 7px; }
.member-row { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 15px; border: 1px solid rgba(255,255,255,.055); background: rgba(255,255,255,.022); }
.member-row.me { border-color: var(--line-strong); background: rgba(245,170,36,.07); }
.avatar { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(145deg,#d9963e,#70330e); border: 2px solid rgba(255,255,255,.12); font-size: .68rem; font-weight: 950; }
.member-row strong, .member-row small { display: block; }
.member-row strong { font-size: .86rem; }
.member-row strong em { margin-left: 5px; padding: 3px 5px; border-radius: 5px; color: #251604; background: var(--gold); font-size: .52rem; font-style: normal; }
.member-row small { color: var(--muted); font-size: .68rem; }
.member-row b { color: var(--gold-2); font-size: .8rem; }
.activity-ticker { display: grid; grid-template-columns: 42px 1fr; gap: 11px; align-items: center; margin-top: 14px; padding: 12px; border-radius: 15px; background: rgba(245,170,36,.09); }
.activity-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: rgba(245,170,36,.16); }
.activity-ticker strong, .activity-ticker small { display: block; }
.activity-ticker strong { font-size: .78rem; }
.activity-ticker small { color: var(--muted); font-size: .66rem; }
.panel-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.party-feed { display: flex; flex-direction: column; }
.timeline { list-style: none; margin: 22px 0 0; padding: 0; }
.timeline li { position: relative; display: grid; grid-template-columns: 52px 1fr; gap: 13px; padding: 0 0 21px; }
.timeline li:not(:last-child)::after { content: ""; position: absolute; left: 22px; top: 24px; width: 1px; height: calc(100% - 6px); background: var(--line); }
.timeline > li > span { width: 45px; height: 27px; display: grid; place-items: center; z-index: 1; border-radius: 999px; color: var(--gold-2); background: #242018; border: 1px solid var(--line); font-size: .62rem; font-weight: 900; }
.timeline strong, .timeline small { display: block; }
.timeline strong { font-size: .84rem; }
.timeline small { margin-top: 3px; color: var(--muted); font-size: .68rem; }
.feed-foot { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; }
.feed-foot span { padding: 7px 9px; border-radius: 10px; background: rgba(255,255,255,.04); color: var(--muted-strong); font-size: .66rem; }

.ranking-layout { display: grid; grid-template-columns: .78fr 1.22fr; gap: 54px; align-items: center; }
.ranking-copy { max-width: 485px; }
.ranking-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 25px; }
.ranking-tabs button { padding: 9px 12px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.035); color: var(--muted-strong); cursor: pointer; font-size: .8rem; font-weight: 850; }
.ranking-tabs button.active { color: #1c1103; background: var(--gold); border-color: var(--gold); }
.ranking-note { margin-top: 20px; padding: 14px; border-left: 3px solid var(--gold); background: rgba(245,170,36,.06); color: var(--muted); font-size: .82rem; }
.leaderboard { padding: 28px; }
.leader-podium { display: grid; grid-template-columns: repeat(3,1fr); align-items: end; gap: 10px; min-height: 245px; }
.podium { position: relative; display: grid; justify-items: center; align-content: start; padding: 18px 10px; border: 1px solid var(--line); border-radius: 18px 18px 6px 6px; background: linear-gradient(180deg, rgba(245,170,36,.11), rgba(255,255,255,.02)); }
.podium.first { min-height: 225px; padding-top: 32px; border-color: rgba(255,210,91,.5); }
.podium.second { min-height: 185px; }
.podium.third { min-height: 160px; }
.podium .avatar { width: 58px; height: 58px; font-size: .85rem; }
.podium b { position: absolute; top: 8px; left: 10px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.09); }
.podium strong { margin-top: 11px; }
.podium small { color: var(--gold-2); }
.crown { position: absolute; top: 4px; color: var(--gold-2); font-size: 1.35rem; }
.ranking-list { display: grid; gap: 7px; margin-top: 14px; }
.ranking-row { display: grid; grid-template-columns: 34px 42px 1fr auto; align-items: center; gap: 9px; padding: 9px 11px; border: 1px solid rgba(255,255,255,.055); border-radius: 13px; background: rgba(255,255,255,.02); }
.ranking-row.me { border-color: var(--line-strong); background: rgba(245,170,36,.075); }
.ranking-row > b:first-child { color: var(--muted); text-align: center; }
.ranking-row strong, .ranking-row small { display: block; }
.ranking-row small { color: var(--muted); font-size: .65rem; }
.ranking-row > b:last-child { color: var(--gold-2); }
.ranking-cta { width: 100%; margin-top: 16px; }

.section-demo { background: linear-gradient(180deg, rgba(245,170,36,.035), transparent), #0a0d11 !important; }
.demo-grid { display: grid; grid-template-columns: .78fr 1.22fr; gap: 55px; align-items: center; }
.demo-copy { max-width: 510px; }
.steps { list-style: none; display: grid; gap: 11px; margin: 28px 0 20px; padding: 0; }
.steps li { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: center; font-weight: 820; }
.steps b { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; color: #211403; background: var(--gold); }
.demo-disclaimer { padding: 13px 15px; border: 1px solid rgba(255,255,255,.08); border-radius: 13px; background: rgba(255,255,255,.025); color: var(--muted) !important; font-size: .76rem !important; }
.drink-demo { padding: 27px; }
.demo-head { display: flex; justify-content: space-between; align-items: flex-start; }
.demo-head h3 { margin: 6px 0 0; font-size: 1.5rem; }
.icon-button { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.04); cursor: pointer; font-size: 1.35rem; }
.demo-comparison { display: grid; grid-template-columns: 1fr 58px 1fr; align-items: center; gap: 10px; margin: 24px 0; }
.demo-gauge { min-height: 170px; display: grid; place-items: center; align-content: center; padding: 18px; border: 1px solid var(--line); border-radius: 20px; background: radial-gradient(circle, rgba(245,170,36,.07), rgba(255,255,255,.018)); }
.demo-gauge.active { border-color: var(--line-strong); box-shadow: inset 0 0 35px rgba(245,170,36,.07); }
.demo-gauge small { color: var(--muted); }
.demo-gauge strong { margin: 10px 0 4px; font-size: 2.4rem; line-height: 1; letter-spacing: -.06em; }
.demo-gauge strong span { color: var(--gold); font-size: 1rem; }
.demo-gauge em { color: var(--gold-2); font-size: .72rem; font-style: normal; font-weight: 900; }
.demo-arrow { color: var(--gold); font-size: 2rem; text-align: center; }
.demo-controls { display: grid; grid-template-columns: 1fr .65fr 1fr; gap: 10px; align-items: end; }
.demo-controls label, .form-grid label { display: grid; gap: 7px; }
.demo-controls label > span, .form-grid label > span { color: var(--muted-strong); font-size: .72rem; font-weight: 850; }
select, input, textarea { width: 100%; border: 1px solid var(--line); border-radius: 13px; background: #111419; color: #fff; padding: 12px 13px; outline: 0; }
select:focus, input:focus, textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(245,170,36,.1); }
.demo-result { display: grid; grid-template-columns: 42px 1fr; gap: 11px; align-items: center; margin-top: 14px; padding: 12px; border-radius: 15px; background: rgba(245,170,36,.08); }
.demo-result > span { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: rgba(245,170,36,.14); }
.demo-result strong, .demo-result small { display: block; }
.demo-result strong { font-size: .8rem; }
.demo-result small { color: var(--muted); font-size: .67rem; }
.demo-gauge.pulse { animation: pulseGold .35s ease; }
@keyframes pulseGold { 50% { transform: scale(1.025); box-shadow: 0 0 38px rgba(245,170,36,.22); } }

.games-section { padding-top: 40px; }
.games-panel { position: relative; min-height: 430px; display: grid; grid-template-columns: 1fr .9fr; align-items: center; gap: 20px; overflow: hidden; padding: 55px; border: 1px solid var(--line-strong); border-radius: 32px; background: radial-gradient(circle at 75% 42%, rgba(245,170,36,.18), transparent 28%), linear-gradient(135deg,#17130d,#0e1217 58%,#17110a); box-shadow: var(--shadow); }
.games-panel::before { content: ""; position: absolute; inset: 0; opacity: .17; background-image: radial-gradient(circle, rgba(255,255,255,.5) 1px, transparent 1px); background-size: 26px 26px; mask-image: linear-gradient(90deg, transparent, black); }
.games-copy { position: relative; z-index: 2; }
.game-tags { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; }
.game-tags span { padding: 9px 11px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.035); font-size: .75rem; font-weight: 800; }
.game-orbit { position: relative; min-height: 330px; }
.game-orbit img { position: absolute; width: 430px; right: -40px; bottom: -50px; filter: drop-shadow(0 28px 30px rgba(0,0,0,.45)); }
.orbit-card { position: absolute; z-index: 2; padding: 9px 12px; border: 1px solid var(--line-strong); border-radius: 12px; background: rgba(12,14,17,.88); color: var(--gold-2); font-size: .68rem; font-weight: 1000; letter-spacing: .08em; box-shadow: var(--shadow); }
.orbit-card.one { right: 35px; top: 20px; transform: rotate(5deg); }
.orbit-card.two { left: 30px; top: 105px; transform: rotate(-6deg); }
.orbit-card.three { right: 5px; bottom: 45px; transform: rotate(7deg); }

.faq-layout { display: grid; grid-template-columns: .7fr 1.3fr; gap: 55px; align-items: start; }
.faq-list { display: grid; gap: 9px; }
details { border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.024); overflow: hidden; }
summary { list-style: none; position: relative; cursor: pointer; padding: 18px 54px 18px 19px; font-weight: 860; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); color: var(--gold); font-size: 1.3rem; }
details[open] summary::after { content: "−"; }
details p { margin: 0; padding: 0 19px 18px; color: var(--muted); }

.cta-section { padding: 12px 0 95px; }
.cta-panel { position: relative; min-height: 250px; overflow: hidden; display: grid; grid-template-columns: 1fr auto; gap: 35px; align-items: center; padding: 48px 330px 48px 48px; border: 1px solid rgba(255,210,91,.42); border-radius: 29px; background: linear-gradient(110deg,#33200b,#18130d 45%,#11161b); box-shadow: var(--shadow); }
.cta-panel::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 75% 100%, rgba(245,170,36,.2), transparent 33%); }
.cta-panel > * { position: relative; z-index: 2; }
.cta-panel h2 { margin-bottom: 8px; }
.cta-panel p { margin: 0; color: var(--muted-strong); }
.cta-panel > img { position: absolute; z-index: 1; width: 360px; right: -15px; bottom: -115px; opacity: .92; }

.site-footer { padding: 65px 0 25px; border-top: 1px solid var(--line); background: #070a0e; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3,.65fr); gap: 45px; }
.footer-brand .brand { margin-left: -12px; }
.footer-brand p { max-width: 410px; margin: 18px 0 0; color: var(--muted); }
.footer-column { display: grid; align-content: start; gap: 9px; }
.footer-column strong { margin-bottom: 6px; color: var(--gold-2); }
.footer-column a { color: var(--muted); font-size: .88rem; }
.footer-column a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 30px; margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.06); color: #70767c; font-size: .75rem; }

/* Legal and contact pages */
.legal-hero { padding: 82px 0 54px; background: radial-gradient(circle at 80% 0%,rgba(245,170,36,.12),transparent 28%); }
.legal-hero h1 { margin: 12px 0 12px; font-size: clamp(2.8rem,6vw,5.3rem); line-height: .95; letter-spacing: -.065em; overflow-wrap: anywhere; hyphens: auto; }
.legal-hero p { max-width: 760px; margin: 0; color: var(--muted-strong); font-size: 1.08rem; }
.legal-layout { display: grid; grid-template-columns: 250px minmax(0,1fr); gap: 50px; padding-bottom: 100px; }
.legal-toc { position: sticky; top: calc(var(--header-height) + 20px); height: fit-content; display: grid; gap: 4px; padding: 12px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.025); }
.legal-toc a { padding: 9px 10px; border-radius: 10px; color: var(--muted); font-size: .82rem; }
.legal-toc a:hover { color: #fff; background: rgba(245,170,36,.08); }
.legal-content { min-width: 0; }
.legal-block { scroll-margin-top: 110px; padding: 28px 0; border-bottom: 1px solid rgba(255,255,255,.07); }
.legal-block:first-child { padding-top: 0; }
.legal-block h2 { margin: 0 0 15px; font-size: 1.7rem; letter-spacing: -.035em; }
.legal-block h3 { margin: 22px 0 8px; font-size: 1.05rem; }
.legal-block p, .legal-block li { color: var(--muted-strong); }
.legal-block a { color: var(--gold-2); text-decoration: underline; text-underline-offset: 3px; }
.contact-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: 22px; padding-bottom: 100px; }
.contact-card { position: relative; padding: 31px; overflow: hidden; }
.contact-card h2 { margin: 8px 0 12px; font-size: 1.75rem; }
.contact-card > p { color: var(--muted); }
.contact-mascot { width: 280px; margin: -55px auto -18px; }
.contact-line { display: grid; grid-template-columns: 42px 1fr; gap: 11px; align-items: start; margin-top: 15px; padding: 13px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.025); }
.contact-line > span { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: rgba(245,170,36,.12); color: var(--gold); }
.contact-line strong, .contact-line a, .contact-line p { display: block; }
.contact-line a, .contact-line p { margin: 3px 0 0; color: var(--muted); font-size: .82rem; }
.form-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }
.field-full { grid-column: 1 / -1; }
textarea { min-height: 180px; resize: vertical; }
.form-hint { color: var(--muted); font-size: .74rem; }
.not-found { min-height: 100vh; display: grid; place-items: center; padding: 25px; background: radial-gradient(circle at 50% 50%,rgba(245,170,36,.13),transparent 36%); }
.not-found-inner { max-width: 680px; text-align: center; }
.not-found-inner img { width: 420px; margin: -90px auto -55px; }
.not-found-code { display: block; color: var(--gold); font-size: clamp(5rem,16vw,10rem); line-height: .8; font-weight: 1000; letter-spacing: -.09em; opacity: .7; }
.not-found h1 { margin: 25px 0 10px; font-size: clamp(2rem,7vw,4rem); letter-spacing: -.055em; }
.not-found p { margin: 0 0 25px; color: var(--muted); }

.reveal { opacity: 1; transform: none; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *,*::before,*::after { animation-duration: .001ms !important; transition-duration: .001ms !important; } .reveal { opacity: 1; transform: none; } }

@media (max-width: 1100px) {
  .nav-links > a:not(.button) { padding-inline: 8px; font-size: .84rem; }
  .brand { min-width: 200px; }
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 25px; }
  .hero h1 { font-size: clamp(3.3rem,7vw,5.6rem); }
  .phone-shell { left: 8%; }
  .room-float { right: -30px; }
  .rank-float { right: -15px; }
  .cta-panel { padding-right: 285px; }
}

@media (max-width: 920px) {
  :root { --header-height: 76px; }
  .container { width: min(calc(100% - 28px),var(--container)); }
  .brand { min-width: auto; }
  .brand-mascot { width: 70px; height: 53px; }
  .brand-wordmark span { font-size: .74rem; }
  .brand-wordmark strong { font-size: 1.36rem; }
  .menu-toggle { display: block; }
  .nav-links { position: fixed; top: var(--header-height); left: 14px; right: 14px; display: grid; gap: 4px; padding: 14px; border: 1px solid var(--line); border-radius: 18px; background: rgba(9,13,18,.98); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(-10px); transition: .18s ease; }
  .menu-open .nav-links { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav-links a { width: 100%; justify-content: flex-start; }
  .hero { padding-top: 50px; }
  .hero-grid { grid-template-columns: 1fr; min-height: auto; }
  .hero-copy-wrap { text-align: center; }
  .hero h1, .hero-copy { margin-inline: auto; }
  .hero-actions, .hero-meta { justify-content: center; }
  .hero-stage { min-height: 670px; width: min(100%,700px); margin: 20px auto 0; }
  .phone-shell { left: 50%; transform: translateX(-50%) perspective(1100px) rotateY(-5deg) rotateZ(1deg); }
  .hero-mascot { right: -70px; }
  .room-float { right: 0; }
  .rank-float { left: 0; right: auto; }
  .quick-grid { grid-template-columns: repeat(2,1fr); }
  .quick-grid > div:nth-child(2) { border-right: 0; }
  .quick-grid > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .feature-grid { grid-template-columns: repeat(2,1fr); }
  .split-heading, .social-demo-grid, .ranking-layout, .demo-grid, .games-panel, .faq-layout, .contact-grid { grid-template-columns: 1fr; }
  .split-heading { gap: 15px; }
  .ranking-copy, .demo-copy { max-width: none; }
  .games-panel { padding: 42px; }
  .game-orbit { min-height: 370px; }
  .game-orbit img { left: 50%; right: auto; transform: translateX(-50%); }
  .cta-panel { grid-template-columns: 1fr; padding: 45px 245px 45px 38px; }
  .footer-grid { grid-template-columns: 1.4fr repeat(3,.7fr); gap: 25px; }
  .legal-layout { grid-template-columns: 1fr; gap: 22px; }
  .legal-toc { position: static; display: flex; flex-wrap: wrap; }
}

@media (max-width: 680px) {
  .section { padding: 78px 0; }
  .site-header .brand-mascot { width: 58px; height: 46px; }
  .site-header .brand-wordmark span { font-size: .62rem; }
  .site-header .brand-wordmark strong { font-size: 1.12rem; }
  .site-header .brand-wordmark small { display: none; }
  .hero { padding: 38px 0 62px; }
  .hero h1 { margin-top: 18px; font-size: clamp(3rem,15vw,4.8rem); }
  .hero-copy { font-size: 1rem; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .hero-actions .button { width: 100%; }
  .hero-meta { gap: 12px; font-size: .78rem; }
  .hero-stage { min-height: 595px; margin-top: 10px; }
  .phone-shell { width: 286px; height: 540px; border-radius: 43px; }
  .phone-screen { border-radius: 35px; padding-inline: 13px; }
  .phone-notch { width: 90px; height: 21px; }
  .score-card { padding: 18px 14px 15px; }
  .score-card strong { font-size: 2.45rem; }
  .drink-row { padding: 8px; }
  .hero-mascot { width: 500px; right: -170px; bottom: -10px; }
  .room-float { width: 180px; top: 40px; right: -7px; padding: 12px; }
  .room-float p { font-size: .68rem; }
  .avatar-stack span, .avatar-stack b { width: 27px; height: 27px; }
  .rank-float { width: 180px; left: -5px; bottom: 25px; padding: 11px; }
  .rank-float > div { font-size: .63rem; grid-template-columns: 20px 1fr auto; }
  .quick-grid { grid-template-columns: 1fr; }
  .quick-grid > div { padding: 15px 18px; border-right: 0; border-bottom: 1px solid var(--line); }
  .quick-grid > div:last-child { border-bottom: 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 220px; }
  .section-heading h2, .ranking-copy h2, .demo-copy h2, .games-copy h2, .cta-panel h2 { font-size: clamp(2.2rem,12vw,3.5rem); }
  .room-demo, .party-feed, .leaderboard, .drink-demo { padding: 18px; }
  .room-summary { grid-template-columns: 1fr 1fr; }
  .room-summary > div:last-child { grid-column: 1/-1; }
  .panel-actions { display: grid; }
  .panel-actions .button { width: 100%; }
  .leader-podium { min-height: 215px; }
  .podium { padding-inline: 5px; }
  .podium.first { min-height: 195px; }
  .podium.second { min-height: 160px; }
  .podium.third { min-height: 140px; }
  .podium .avatar { width: 46px; height: 46px; }
  .podium small { font-size: .65rem; }
  .demo-comparison { grid-template-columns: 1fr 30px 1fr; gap: 4px; }
  .demo-gauge { min-height: 140px; padding: 10px; }
  .demo-gauge strong { font-size: 1.75rem; }
  .demo-controls { grid-template-columns: 1fr; }
  .games-panel { padding: 31px 22px 10px; min-height: 680px; }
  .game-orbit { min-height: 380px; }
  .game-orbit img { width: 370px; bottom: -25px; }
  .orbit-card.one { right: 5px; }
  .orbit-card.two { left: 0; }
  .cta-panel { min-height: 420px; padding: 35px 28px 225px; text-align: center; }
  .cta-panel .button { width: 100%; }
  .cta-panel > img { width: 330px; right: 50%; transform: translateX(50%); bottom: -110px; }
  .footer-grid { grid-template-columns: repeat(2,1fr); }
  .footer-brand { grid-column: 1/-1; }
  .footer-bottom { flex-direction: column; }
  .contact-card { padding: 22px; }
  .form-grid { grid-template-columns: 1fr; }
  .field-full { grid-column: auto; }
  .not-found-inner img { width: 320px; }
}

@media (max-width: 390px) {
  .container { width: min(calc(100% - 22px),var(--container)); }
  .brand { gap: 2px; }
  .site-header .brand-mascot { width: 54px; }
  .hero-stage { transform: scale(.94); transform-origin: top center; margin-bottom: -35px; }
  .rank-float { left: 1px; }
  .room-float { right: 1px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
}

/* =========================================================
   Motion, scroll storytelling and modern interaction layer
   ========================================================= */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: 3px;
  pointer-events: none;
  background: rgba(255,255,255,.025);
}
.scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--amber), var(--gold-2), #fff0ad);
  box-shadow: 0 0 16px rgba(245,170,36,.65);
}
.cursor-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .44;
  background: radial-gradient(420px circle at var(--cursor-x,50vw) var(--cursor-y,50vh), rgba(245,170,36,.055), transparent 65%);
}
body > *:not(.cursor-glow):not(.ambient-particles):not(.scroll-progress) { position: relative; z-index: 1; }
.ambient-particles { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.ambient-particles i {
  position: absolute;
  left: var(--x);
  bottom: -20px;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: rgba(255,199,81,.38);
  box-shadow: 0 0 13px rgba(245,170,36,.44);
  animation: particleRise var(--duration) linear var(--delay) infinite;
}
@keyframes particleRise {
  0% { translate: 0 0; opacity: 0; }
  10% { opacity: .65; }
  82% { opacity: .25; }
  100% { translate: var(--drift) -115vh; opacity: 0; }
}

.site-header { transition: height .28s ease, background .28s ease, border-color .28s ease, box-shadow .28s ease; }
.site-header.scrolled { box-shadow: 0 14px 45px rgba(0,0,0,.24); }
.nav-links > a:not(.button) { position: relative; }
.nav-links > a:not(.button)::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 5px;
  height: 2px;
  border-radius: 4px;
  background: var(--gold);
  scale: 0 1;
  transform-origin: center;
  transition: scale .22s ease;
}
.nav-links > a:not(.button):hover::after,
.nav-links > a.active-section::after { scale: 1 1; }
.nav-links > a.active-section { color: #fff; }

.button, button { -webkit-tap-highlight-color: transparent; }
.button, .icon-button, .ranking-tabs button, .demo-presets button, .experience-dots button, .mini-title button, .phone-nav button {
  position: relative;
  overflow: hidden;
}
.control-ripple {
  position: absolute;
  z-index: 8;
  width: 14px;
  height: 14px;
  margin: -7px;
  border-radius: 50%;
  pointer-events: none;
  background: rgba(255,255,255,.55);
  animation: controlRipple .62s ease-out forwards;
}
@keyframes controlRipple { to { scale: 18; opacity: 0; } }
.button-icon { transition: translate .2s ease; }
.button:hover .button-icon { translate: 4px 0; }

/* Proper reveal states are enabled only when JavaScript is available. */
.js .reveal {
  opacity: 0;
  translate: 0 38px;
  scale: .985;
  filter: blur(8px);
  transition:
    opacity .82s cubic-bezier(.2,.75,.15,1),
    translate .82s cubic-bezier(.2,.75,.15,1),
    scale .82s cubic-bezier(.2,.75,.15,1),
    filter .82s cubic-bezier(.2,.75,.15,1);
  transition-delay: var(--reveal-delay,0ms);
}
.js .reveal[data-reveal="left"] { translate: -46px 12px; }
.js .reveal[data-reveal="right"] { translate: 46px 12px; }
.js .reveal[data-reveal="scale"] { translate: 0 18px; scale: .93; }
.js .reveal.is-visible { opacity: 1; translate: 0 0; scale: 1; filter: blur(0); }

.hero-stage { translate: 0 var(--hero-scroll,0px); transition: translate .12s linear; }
[data-parallax-depth] {
  translate: var(--parallax-x,0px) var(--parallax-y,0px);
  transition: translate .45s cubic-bezier(.2,.75,.2,1);
}
.phone-shell { animation: phoneEnter 1.05s .12s cubic-bezier(.17,.8,.18,1) both; }
.room-float { animation: floatCardA 5.2s ease-in-out 1s infinite; }
.rank-float { animation: floatCardB 5.8s ease-in-out .4s infinite; }
.hero-mascot { animation: mascotBreath 6s ease-in-out infinite; transform-origin: center bottom; }
@keyframes phoneEnter { from { opacity: 0; transform: perspective(1100px) rotateY(-18deg) rotateZ(5deg) translateY(35px) scale(.9); } }
@keyframes floatCardA { 50% { margin-top: -9px; } }
@keyframes floatCardB { 50% { margin-bottom: 10px; } }
@keyframes mascotBreath { 50% { scale: 1.018; filter: sepia(.15) saturate(1.2) drop-shadow(0 48px 34px rgba(0,0,0,.48)); } }
.score-line i { transition: width .72s cubic-bezier(.2,.8,.2,1); }
.drink-row.new { animation: drinkRowIn .55s cubic-bezier(.15,.85,.15,1); }
@keyframes drinkRowIn { from { opacity: 0; translate: 0 -12px; scale: .96; background: rgba(245,170,36,.2); } }
.hero-toast {
  position: absolute;
  z-index: 8;
  left: 4%;
  bottom: 12px;
  min-width: 280px;
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 11px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: rgba(10,13,16,.92);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  opacity: 0;
  translate: 0 18px;
  visibility: hidden;
  transition: .32s cubic-bezier(.2,.8,.2,1);
}
.hero-toast.show { opacity: 1; translate: 0 0; visibility: visible; }
.hero-toast > span { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: rgba(245,170,36,.14); }
.hero-toast strong, .hero-toast small { display: block; }
.hero-toast strong { font-size: .78rem; }
.hero-toast small { color: var(--muted); font-size: .65rem; }

.interactive-card { position: relative; isolation: isolate; transform: perspective(1100px) rotateX(var(--tilt-x,0deg)) rotateY(var(--tilt-y,0deg)); transition: transform .28s cubic-bezier(.2,.8,.2,1), border-color .25s ease, box-shadow .25s ease; }
.interactive-card:not(.games-panel):not(.cta-panel)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(430px circle at var(--mx,50%) var(--my,50%), rgba(255,196,72,.13), transparent 62%);
  transition: opacity .28s ease;
}
.interactive-card:hover::before { opacity: 1; }
.interactive-card:hover { border-color: rgba(255,198,77,.43); box-shadow: 0 30px 90px rgba(0,0,0,.48), 0 0 0 1px rgba(245,170,36,.05) inset; }
.games-panel::before { background: radial-gradient(430px circle at var(--mx,72%) var(--my,42%), rgba(255,196,72,.16), transparent 62%), radial-gradient(circle at 75% 42%, rgba(245,170,36,.18), transparent 28%); opacity: 1; }
.cta-panel::before { background: radial-gradient(420px circle at var(--mx,75%) var(--my,100%), rgba(255,200,84,.17), transparent 62%), radial-gradient(circle at 75% 100%, rgba(245,170,36,.2), transparent 33%); }

/* Scroll-driven product story */
.experience-section {
  overflow: clip;
  background:
    radial-gradient(circle at 18% 35%, rgba(245,170,36,.08), transparent 25%),
    linear-gradient(180deg,#080c11,#0b1016 50%,#080c11) !important;
}
.experience-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 78px; align-items: start; }
.experience-visual-wrap { position: sticky; top: calc(var(--header-height) + 38px); min-width: 0; }
.experience-visual { overflow: hidden; min-height: 610px; padding: 18px; background: linear-gradient(145deg,rgba(31,25,16,.95),rgba(10,14,19,.97)); }
.experience-visual::after {
  content: "";
  position: absolute;
  width: 410px;
  height: 410px;
  right: -180px;
  top: -190px;
  border-radius: 50%;
  background: radial-gradient(circle,rgba(245,170,36,.19),transparent 68%);
  pointer-events: none;
}
.experience-topbar { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 8px 8px 18px; color: var(--muted); font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; }
.experience-topbar > span { text-align: center; }
.experience-topbar > b { justify-self: end; color: var(--gold-2); }
.experience-window-dots { display: flex; gap: 6px; }
.experience-window-dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.15); }
.experience-window-dots i:first-child { background: #dc6b43; }
.experience-window-dots i:nth-child(2) { background: var(--gold); }
.experience-window-dots i:nth-child(3) { background: var(--green); }
.experience-screen {
  position: relative;
  z-index: 1;
  min-height: 490px;
  display: flex;
  flex-direction: column;
  padding: 38px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 23px;
  background:
    linear-gradient(rgba(255,255,255,.025) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.025) 1px,transparent 1px),
    radial-gradient(circle at 72% 20%,rgba(245,170,36,.11),transparent 30%),
    #0b0f14;
  background-size: 42px 42px,42px 42px,auto,auto;
  transition: opacity .18s ease, translate .18s ease;
}
.experience-visual.changing .experience-screen { opacity: .25; translate: 0 8px; }
.experience-badge { display: flex; align-items: center; gap: 8px; color: var(--gold-2); font-size: .69rem; font-weight: 950; letter-spacing: .1em; }
.experience-screen h3 { margin: 22px 0 9px; max-width: 520px; font-size: clamp(2.2rem,4vw,3.65rem); line-height: .95; letter-spacing: -.055em; }
.experience-screen > p { max-width: 490px; margin: 0; color: var(--muted-strong); }
.experience-metric { margin: 32px 0 22px; padding: 21px; border: 1px solid var(--line-strong); border-radius: 20px; background: linear-gradient(135deg,rgba(245,170,36,.12),rgba(255,255,255,.018)); }
.experience-metric span, .experience-metric strong, .experience-metric small { display: block; }
.experience-metric span { color: var(--muted); font-size: .7rem; text-transform: uppercase; letter-spacing: .09em; font-weight: 850; }
.experience-metric strong { margin: 7px 0 3px; color: var(--gold-2); font-size: 2.25rem; letter-spacing: -.04em; }
.experience-metric small { color: var(--muted-strong); }
.experience-live-list { display: grid; gap: 7px; margin-top: auto; }
.experience-live-list > div { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 10px; padding: 9px 10px; border: 1px solid rgba(255,255,255,.055); border-radius: 13px; background: rgba(255,255,255,.025); animation: experienceRow .48s both; }
.experience-live-list > div:nth-child(2) { animation-delay: .07s; }
.experience-live-list > div:nth-child(3) { animation-delay: .14s; }
.experience-live-list .avatar { width: 36px; height: 36px; }
.experience-live-list b { color: var(--gold-2); font-size: .68rem; }
@keyframes experienceRow { from { opacity: 0; translate: 15px 0; } }
.experience-progress { height: 3px; margin: 15px 7px 0; border-radius: 4px; overflow: hidden; background: rgba(255,255,255,.07); }
.experience-progress span { display: block; width: 25%; height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--amber),var(--gold-2)); transition: width .55s cubic-bezier(.2,.8,.2,1); }
.experience-dots { display: flex; justify-content: center; gap: 8px; padding-top: 14px; }
.experience-dots button { width: 8px; height: 8px; padding: 0; border-radius: 999px; background: rgba(255,255,255,.19); cursor: pointer; transition: width .24s ease, background .24s ease; }
.experience-dots button.active { width: 30px; background: var(--gold); }
.experience-steps { min-width: 0; }
.experience-steps > .section-heading { margin-bottom: 18vh; }
.experience-step {
  min-height: 62vh;
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 22px;
  align-content: center;
  padding: 30px 0;
  opacity: .32;
  translate: 24px 0;
  transition: opacity .45s ease, translate .45s ease;
}
.experience-step > span { color: var(--gold); font-size: 1rem; font-weight: 1000; letter-spacing: .09em; }
.experience-step h3 { margin: 0 0 10px; font-size: clamp(1.8rem,3vw,2.8rem); line-height: 1; letter-spacing: -.045em; }
.experience-step p { max-width: 490px; margin: 0; color: var(--muted); font-size: 1.02rem; }
.experience-step.active { opacity: 1; translate: 0 0; }
.experience-step.active > span { text-shadow: 0 0 22px rgba(245,170,36,.55); }

/* Live modules */
.activity-ticker { position: relative; overflow: hidden; }
.activity-ticker > *:not(.activity-progress) { position: relative; z-index: 1; }
.activity-progress { position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: linear-gradient(90deg,var(--amber),var(--gold-2)); }
.activity-progress.running { animation: activityTimer 5s linear; }
@keyframes activityTimer { from { width: 0; } to { width: 100%; } }
.timeline li { transition: opacity .3s ease, translate .3s ease, background .3s ease; border-radius: 12px; }
.timeline li:not(.active) { opacity: .48; }
.timeline li.active { translate: 6px 0; background: linear-gradient(90deg,rgba(245,170,36,.09),transparent); }
.timeline li.active > span { box-shadow: 0 0 20px rgba(245,170,36,.22); }

.ranking-row { position: relative; overflow: hidden; animation: rankingRowIn .45s var(--row-delay,0ms) both; }
.ranking-row > * { position: relative; z-index: 1; }
.ranking-row > i { position: absolute; z-index: 0; inset: auto 0 0; height: 2px; width: var(--score-width,50%); background: linear-gradient(90deg,var(--amber),var(--gold-2)); opacity: .48; }
@keyframes rankingRowIn { from { opacity: 0; translate: 14px 0; } }
.ranking-tabs button { transition: color .2s ease, background .2s ease, translate .2s ease; }
.ranking-tabs button:hover { translate: 0 -2px; }
.podium { transition: transform .28s ease, border-color .28s ease; }
.podium:hover { transform: translateY(-7px); border-color: var(--line-strong); }
.podium.first { animation: podiumGlow 3.2s ease-in-out infinite; }
@keyframes podiumGlow { 50% { box-shadow: 0 0 34px rgba(245,170,36,.11); } }

/* Drink demo micro interactions */
.demo-presets { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 11px; }
.demo-presets button { padding: 8px 11px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.035); color: var(--muted-strong); cursor: pointer; font-size: .73rem; font-weight: 820; transition: .2s ease; }
.demo-presets button:hover, .demo-presets button.active { color: #201302; background: var(--gold); border-color: var(--gold); translate: 0 -2px; }
.demo-history { min-height: 30px; display: flex; gap: 7px; overflow-x: auto; padding: 12px 0 2px; scrollbar-width: none; }
.demo-history::-webkit-scrollbar { display: none; }
.demo-history span { flex: 0 0 auto; padding: 7px 9px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.025); color: var(--muted-strong); font-size: .67rem; animation: chipIn .35s ease both; }
.demo-history b { color: var(--gold-2); }
@keyframes chipIn { from { opacity: 0; translate: -8px 0; scale: .92; } }
.demo-gauge.active::before { content: ""; position: absolute; width: 75%; aspect-ratio: 1; border: 1px solid rgba(245,170,36,.17); border-radius: 50%; animation: gaugeOrbit 8s linear infinite; }
.demo-gauge { position: relative; overflow: hidden; }
.demo-gauge > * { position: relative; z-index: 1; }
@keyframes gaugeOrbit { to { rotate: 360deg; } }

/* Game teaser */
.games-copy { max-width: 650px; }
.game-preview { max-width: 520px; margin-top: 24px; padding: 18px; border: 1px solid var(--line-strong); border-radius: 18px; background: rgba(7,10,13,.55); backdrop-filter: blur(12px); }
.game-preview small, .game-preview strong, .game-preview p { display: block; }
.game-preview small { color: var(--gold); text-transform: uppercase; letter-spacing: .1em; font-size: .64rem; font-weight: 950; }
.game-preview strong { margin: 7px 0 4px; font-size: 1.25rem; }
.game-preview p { margin: 0 0 14px; color: var(--muted); }
.game-preview .button { min-height: 43px; }
.game-pop .game-preview { animation: gamePreviewPop .55s cubic-bezier(.2,.8,.2,1); }
.game-pop .orbit-card { animation: orbitCardPop .55s cubic-bezier(.2,.8,.2,1); }
.game-pop .game-orbit img { animation: guruWiggle .55s ease; }
@keyframes gamePreviewPop { 40% { scale: 1.025; border-color: var(--gold); } }
@keyframes orbitCardPop { 45% { scale: 1.13; color: #fff; } }
@keyframes guruWiggle { 35% { rotate: -2deg; } 70% { rotate: 2deg; } }
.orbit-card { animation: orbitIdle 4.5s ease-in-out infinite; }
.orbit-card.two { animation-delay: -.8s; }
.orbit-card.three { animation-delay: -1.6s; }
@keyframes orbitIdle { 50% { translate: 0 -8px; } }

.faq-list details { transition: border-color .24s ease, background .24s ease, transform .24s ease; }
.faq-list details[open] { border-color: var(--line-strong); background: rgba(245,170,36,.045); transform: translateX(5px); }
.faq-list details[open] p { animation: faqContent .35s ease both; }
@keyframes faqContent { from { opacity: 0; translate: 0 -7px; } }

@media (max-width: 920px) {
  .cursor-glow { display: none; }
  .experience-grid { grid-template-columns: 1fr; gap: 35px; }
  .experience-visual-wrap { top: calc(var(--header-height) + 12px); z-index: 3; }
  .experience-visual { min-height: 480px; }
  .experience-screen { min-height: 365px; padding: 27px; }
  .experience-screen h3 { font-size: 2.45rem; }
  .experience-metric { margin: 20px 0 15px; padding: 15px; }
  .experience-metric strong { font-size: 1.8rem; }
  .experience-steps > .section-heading { margin-bottom: 30px; }
  .experience-step { min-height: 52vh; padding: 45px 5px; }
  .interactive-card { transform: none; }
}

@media (max-width: 680px) {
  .hero-toast { left: 50%; bottom: 0; min-width: min(92%,310px); transform: translateX(-50%); }
  .hero-toast.show { transform: translateX(-50%); }
  .experience-visual-wrap { position: relative; top: auto; }
  .experience-visual { min-height: auto; padding: 11px; border-radius: 22px; }
  .experience-screen { min-height: 430px; padding: 22px 17px; }
  .experience-screen h3 { margin-top: 16px; font-size: 2.15rem; }
  .experience-screen > p { font-size: .9rem; }
  .experience-metric { margin: 17px 0 12px; }
  .experience-live-list > div { grid-template-columns: 36px 1fr auto; }
  .experience-step { min-height: auto; grid-template-columns: 50px 1fr; gap: 10px; padding: 38px 0; opacity: .5; translate: 0 16px; }
  .experience-step.active { translate: 0 0; }
  .demo-presets { display: grid; grid-template-columns: repeat(3,1fr); }
  .demo-presets button { padding-inline: 5px; }
  .game-preview .button { width: 100%; }
  .ambient-particles { opacity: .6; }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-progress span { transition: none; }
  .ambient-particles, .cursor-glow { display: none; }
  .phone-shell, .room-float, .rank-float, .hero-mascot, .podium.first, .orbit-card, .demo-gauge.active::before { animation: none !important; }
  .js .reveal { opacity: 1; translate: 0; scale: 1; filter: none; }
  .experience-step { opacity: 1; translate: 0; }
}

/* Ensure spotlight overlays sit above the card background but below content. */
.interactive-card:not(.games-panel):not(.cta-panel)::before { z-index: 0; }
.interactive-card:not(.games-panel):not(.cta-panel) > * { position: relative; z-index: 1; }
.feature-card .feature-number { position: absolute; z-index: 1; }

/* Keep the scroll story dynamic without making the page unnecessarily long. */
@media (min-width: 921px) {
  .experience-steps > .section-heading { margin-bottom: 8vh; }
  .experience-step { min-height: 46vh; }
}


/* ==========================================================================\n   CINEMATIC SCROLLYTELLING – pinned product presentation\n   ========================================================================== */
.cinematic-scroll {
  --cine-p: 0;
  --cine-local: 0;
  position: relative;
  height: 610vh;
  min-height: 3900px;
  isolation: isolate;
  background: #070a0e;
}
.cinematic-sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  min-height: 700px;
  overflow: hidden;
  display: grid;
  align-items: center;
  background:
    radial-gradient(circle at var(--cine-bg-x,68%) 48%, rgba(245,170,36,.18), transparent 28%),
    radial-gradient(circle at 15% 80%, rgba(123,58,9,.18), transparent 32%),
    linear-gradient(180deg,#070a0e 0%,#090d12 100%);
}
.cinematic-grid { position:absolute; inset:0; opacity:.2; pointer-events:none; background-image:linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px); background-size:64px 64px; mask-image:linear-gradient(to bottom,transparent 0,black 18%,black 82%,transparent); }
.cinematic-glow { position:absolute; border-radius:50%; filter:blur(70px); pointer-events:none; opacity:.4; }
.cinematic-glow-a { width:420px; height:420px; right:13%; top:18%; background:rgba(245,170,36,.18); transform:translate3d(var(--cine-glow-a-x,0px),var(--cine-glow-a-y,0px),0); }
.cinematic-glow-b { width:300px; height:300px; left:8%; bottom:4%; background:rgba(125,57,10,.18); transform:translate3d(var(--cine-glow-b-x,0px),var(--cine-glow-b-y,0px),0); }
.cinematic-layout { position:relative; z-index:2; display:grid; grid-template-columns:.78fr 1.22fr; align-items:center; gap:42px; height:100%; padding-top:calc(var(--header-height) * .45); }
.cinematic-copy-zone { position:relative; z-index:8; min-width:0; }
.cinematic-kicker { display:flex; align-items:center; gap:9px; margin-bottom:24px; color:var(--gold-2); font-size:.72rem; font-weight:1000; letter-spacing:.12em; }
.cinematic-kicker span { width:8px; height:8px; border-radius:50%; background:var(--gold); box-shadow:0 0 22px rgba(245,170,36,.9); }
.cinematic-copy-stack { position:relative; height:min(390px,43vh); }
.cinematic-copy { position:absolute; inset:0; display:flex; flex-direction:column; justify-content:center; opacity:0; visibility:hidden; transform:translate3d(0,34px,0); filter:blur(7px); transition:opacity .5s ease,transform .65s cubic-bezier(.2,.8,.2,1),filter .5s ease,visibility .5s; pointer-events:none; }
.cinematic-copy.active { opacity:1; visibility:visible; transform:translate3d(0,0,0); filter:blur(0); }
.cinematic-copy small { color:var(--gold); font-weight:1000; letter-spacing:.12em; }
.cinematic-copy h2 { margin:15px 0 19px; max-width:600px; font-size:clamp(3.15rem,5.7vw,6.55rem); line-height:.88; letter-spacing:-.075em; }
.cinematic-copy p { max-width:570px; margin:0; color:var(--muted-strong); font-size:clamp(1rem,1.35vw,1.18rem); }
.cinematic-controls { display:flex; align-items:center; gap:18px; margin-top:20px; }
.cinematic-progress { width:min(300px,48vw); height:3px; overflow:hidden; border-radius:10px; background:rgba(255,255,255,.09); }
.cinematic-progress i { display:block; width:100%; height:100%; transform-origin:left; transform:scaleX(var(--cine-p)); background:linear-gradient(90deg,var(--amber),var(--gold-2)); box-shadow:0 0 15px rgba(245,170,36,.6); }
.cinematic-dots { display:flex; gap:7px; }
.cinematic-dots button { width:8px; height:8px; padding:0; border-radius:999px; background:rgba(255,255,255,.22); cursor:pointer; transition:width .25s ease,background .25s ease,box-shadow .25s ease; }
.cinematic-dots button.active { width:30px; background:var(--gold); box-shadow:0 0 16px rgba(245,170,36,.65); }
.cinematic-scroll-hint { display:flex; align-items:center; gap:9px; color:var(--muted); font-size:.72rem; text-transform:uppercase; letter-spacing:.09em; }
.cinematic-scroll-hint i { position:relative; width:20px; height:32px; border:1px solid var(--line-strong); border-radius:13px; }
.cinematic-scroll-hint i::after { content:""; position:absolute; left:50%; top:6px; width:3px; height:7px; border-radius:3px; background:var(--gold); transform:translateX(-50%); animation:cineScrollHint 1.6s ease-in-out infinite; }
@keyframes cineScrollHint { 0%,100%{opacity:.3;transform:translate(-50%,0)} 45%{opacity:1} 75%{opacity:0;transform:translate(-50%,11px)} }

.cinematic-stage { position:relative; min-width:0; height:min(720px,78vh); perspective:1400px; }
.cinematic-aura { position:absolute; z-index:0; left:50%; top:50%; width:620px; height:620px; border-radius:50%; transform:translate(-48%,-50%) scale(var(--cine-aura-scale,.76)); background:radial-gradient(circle,rgba(245,170,36,.22),rgba(245,170,36,.06) 35%,transparent 67%); filter:blur(7px); opacity:var(--cine-aura-opacity,.65); }
.cinematic-mascot { position:absolute; z-index:0; width:min(620px,64vw); right:-160px; bottom:-120px; opacity:var(--cine-mascot-opacity,.14); filter:sepia(.16) saturate(1.2) drop-shadow(0 30px 40px rgba(0,0,0,.6)); transform:translate3d(var(--cine-mascot-x,0px),var(--cine-mascot-y,0px),0) scale(var(--cine-mascot-scale,.88)); }

.cinematic-phone { --phone-x:40px; --phone-y:20px; --phone-scale:.9; --phone-rot:-6deg; position:absolute; z-index:5; left:50%; top:50%; width:330px; height:640px; padding:10px; border-radius:52px; background:linear-gradient(145deg,#6a5943,#131518 14%,#44321e 65%,#070809); box-shadow:0 55px 100px rgba(0,0,0,.66),0 0 0 1px rgba(255,210,106,.34),inset -8px 0 18px rgba(0,0,0,.55); transform:translate3d(calc(-50% + var(--phone-x)) ,calc(-50% + var(--phone-y)),0) scale(var(--phone-scale)) rotateZ(var(--phone-rot)); transform-origin:center; transition:box-shadow .35s ease; will-change:transform,opacity; }
.cinematic-phone-notch { position:absolute; z-index:20; left:50%; top:16px; width:110px; height:25px; transform:translateX(-50%); border-radius:20px; background:#020304; }
.cinematic-phone-screen { position:relative; height:100%; overflow:hidden; padding:21px 16px 16px; border:1px solid rgba(255,255,255,.07); border-radius:43px; background:radial-gradient(circle at 50% 21%,rgba(245,170,36,.12),transparent 28%),linear-gradient(180deg,#101214,#080a0c); }
.cine-phone-status { display:flex; justify-content:space-between; padding:0 9px 17px; font-size:.66rem; font-weight:900; }
.cine-phone-brand { display:grid; grid-template-columns:38px 1fr auto; align-items:center; gap:9px; padding:8px 6px; }
.cine-phone-brand img { width:38px; height:38px; object-fit:contain; border-radius:11px; background:rgba(245,170,36,.08); }
.cine-phone-brand strong,.cine-phone-brand small { display:block; }
.cine-phone-brand strong { font-size:.86rem; }
.cine-phone-brand small { color:var(--muted); font-size:.62rem; }
.cine-phone-brand b { padding:5px 7px; border-radius:8px; color:#201302; background:var(--gold); font-size:.55rem; }
.cine-screen { position:absolute; z-index:2; inset:96px 16px 67px; overflow:hidden; opacity:0; visibility:hidden; transform:translate3d(22px,0,0) scale(.985); filter:blur(5px); transition:opacity .42s ease,transform .55s cubic-bezier(.2,.8,.2,1),filter .42s ease,visibility .42s; }
.cine-screen.active { opacity:1; visibility:visible; transform:translate3d(0,0,0) scale(1); filter:blur(0); }
.cine-phone-nav { position:absolute; z-index:7; left:12px; right:12px; bottom:11px; display:grid; grid-template-columns:repeat(5,1fr); align-items:end; padding:8px 5px 3px; border-top:1px solid rgba(255,255,255,.06); background:linear-gradient(180deg,rgba(8,10,12,.2),rgba(8,10,12,.97) 35%); }
.cine-phone-nav span { display:grid; justify-items:center; gap:2px; color:var(--muted); font-size:.83rem; }
.cine-phone-nav span.active { color:var(--gold); }
.cine-phone-nav small { font-size:.49rem; }
.cine-phone-nav button { width:48px; height:48px; margin:auto; border-radius:50%; color:#231503; background:linear-gradient(145deg,var(--gold-2),var(--gold)); font-size:1.45rem; font-weight:1000; box-shadow:0 10px 24px rgba(245,170,36,.24); cursor:pointer; }
.cine-overview-score { padding:22px 18px 17px; text-align:center; border:1px solid var(--line-strong); border-radius:24px; background:linear-gradient(180deg,rgba(245,170,36,.11),rgba(255,255,255,.015)); }
.cine-overview-score small { color:var(--muted-strong); }
.cine-overview-score strong { display:block; margin:8px 0 4px; font-size:2.8rem; line-height:1; }
.cine-overview-score strong span { color:var(--gold); font-size:1.4rem; }
.cine-overview-score em { display:block; color:var(--gold-2); font-size:.69rem; font-style:normal; font-weight:900; }
.cine-overview-score i { display:block; width:58%; height:4px; margin:14px auto 0; border-radius:8px; background:linear-gradient(90deg,var(--amber),var(--gold-2)); box-shadow:0 0 13px rgba(245,170,36,.45); }
.cine-section-title { display:flex; justify-content:space-between; margin:18px 4px 8px; font-size:.69rem; }
.cine-section-title span { color:var(--muted); }
.cine-drink { display:grid; grid-template-columns:38px 1fr auto; align-items:center; gap:8px; padding:9px 8px; border-bottom:1px solid rgba(255,255,255,.055); }
.cine-drink > b { width:35px; height:35px; display:grid; place-items:center; border-radius:10px; background:rgba(245,170,36,.1); }
.cine-drink strong,.cine-drink small { display:block; }
.cine-drink strong { font-size:.76rem; }
.cine-drink small { color:var(--muted); font-size:.58rem; }
.cine-drink em { color:var(--gold-2); font-size:.66rem; font-style:normal; font-weight:900; }
.cine-add-head { text-align:center; padding-top:5px; }
.cine-add-head small,.cine-add-head strong,.cine-add-head span { display:block; }
.cine-add-head small { color:var(--gold); font-size:.6rem; font-weight:1000; letter-spacing:.1em; }
.cine-add-head strong { margin:7px 0 0; font-size:1.7rem; }
.cine-add-head span { color:var(--muted); font-size:.68rem; }
.cine-bottle { position:relative; display:grid; place-items:center; width:170px; height:170px; margin:14px auto 7px; border-radius:50%; background:radial-gradient(circle,rgba(245,170,36,.18),rgba(245,170,36,.025) 62%,transparent 64%); }
.cine-bottle::before,.cine-bottle::after { content:""; position:absolute; inset:11px; border:1px solid rgba(245,170,36,.18); border-radius:50%; animation:cinePulse 2s ease-out infinite; }
.cine-bottle::after { animation-delay:1s; }
.cine-bottle span { position:relative; z-index:2; font-size:4rem; filter:drop-shadow(0 12px 24px rgba(0,0,0,.4)); }
.cine-bottle i { position:absolute; width:70%; height:70%; border-radius:50%; background:radial-gradient(circle,rgba(255,210,91,.16),transparent 65%); }
@keyframes cinePulse { from{transform:scale(.78);opacity:.75} to{transform:scale(1.18);opacity:0} }
.cine-value-change { display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:10px; margin:4px 0 15px; }
.cine-value-change div { padding:10px 7px; text-align:center; border:1px solid rgba(255,255,255,.07); border-radius:13px; background:rgba(255,255,255,.025); }
.cine-value-change small,.cine-value-change strong { display:block; }
.cine-value-change small { color:var(--muted); font-size:.57rem; }
.cine-value-change strong { margin-top:3px; font-size:.8rem; }
.cine-value-change b { color:var(--gold); }
.cine-add-button { width:100%; min-height:46px; border-radius:14px; color:#211403; background:linear-gradient(135deg,var(--gold-2),var(--gold)); font-size:.76rem; font-weight:950; cursor:pointer; box-shadow:0 12px 24px rgba(245,170,36,.2); }
.cine-room-head div { display:flex; align-items:center; gap:7px; color:var(--gold); font-size:.62rem; font-weight:950; }
.cine-room-head div span { width:7px; height:7px; border-radius:50%; background:var(--green); box-shadow:0 0 12px rgba(129,212,86,.8); }
.cine-room-head strong { display:block; margin:9px 0 2px; font-size:1.45rem; }
.cine-room-head em { color:var(--muted); font-size:.64rem; font-style:normal; }
.cine-room-stats { display:grid; grid-template-columns:repeat(3,1fr); gap:6px; margin:14px 0; }
.cine-room-stats div { padding:10px 4px; text-align:center; border:1px solid rgba(255,255,255,.06); border-radius:12px; background:rgba(255,255,255,.025); }
.cine-room-stats strong,.cine-room-stats small { display:block; }
.cine-room-stats strong { color:var(--gold-2); font-size:.85rem; }
.cine-room-stats small { color:var(--muted); font-size:.52rem; }
.cine-room-members { display:flex; margin:8px 0 16px; }
.cine-room-members span { width:38px; height:38px; display:grid; place-items:center; margin-left:-6px; border:2px solid #101214; border-radius:50%; background:linear-gradient(145deg,#6b3714,#20150c); font-size:.58rem; font-weight:950; }
.cine-room-members span:first-child { margin-left:0; }
.cine-room-members span:last-child { background:#25282a; color:var(--muted); }
.cine-room-feed { display:grid; gap:7px; }
.cine-room-feed > div { display:grid; grid-template-columns:32px 1fr; gap:8px; align-items:center; padding:8px; border:1px solid rgba(255,255,255,.055); border-radius:12px; background:rgba(255,255,255,.02); }
.cine-room-feed > div > b { width:30px; height:30px; display:grid; place-items:center; border-radius:9px; background:rgba(245,170,36,.09); }
.cine-room-feed strong,.cine-room-feed small { display:block; }
.cine-room-feed strong { font-size:.65rem; }
.cine-room-feed small { color:var(--muted); font-size:.54rem; }
.cine-rank-head small,.cine-rank-head strong { display:block; text-align:center; }
.cine-rank-head small { color:var(--gold); font-size:.59rem; letter-spacing:.1em; font-weight:1000; }
.cine-rank-head strong { margin:7px 0 13px; font-size:1rem; }
.cine-podium { display:grid; grid-template-columns:repeat(3,1fr); align-items:end; gap:5px; height:200px; }
.cine-podium > div { position:relative; display:grid; justify-items:center; align-content:end; min-height:130px; padding:10px 3px 12px; border:1px solid rgba(255,255,255,.065); border-radius:18px 18px 9px 9px; background:linear-gradient(180deg,rgba(255,255,255,.035),rgba(255,255,255,.012)); }
.cine-podium > div.winner { min-height:178px; border-color:var(--line-strong); background:linear-gradient(180deg,rgba(245,170,36,.15),rgba(245,170,36,.025)); }
.cine-podium em { position:absolute; top:-22px; color:var(--gold-2); font-size:1.35rem; font-style:normal; }
.cine-podium span { width:46px; height:46px; display:grid; place-items:center; border-radius:50%; background:linear-gradient(145deg,#713a14,#21160c); font-size:.66rem; font-weight:950; }
.cine-podium b { width:24px; height:24px; display:grid; place-items:center; margin-top:-7px; border-radius:50%; color:#1b1003; background:var(--gold); font-size:.64rem; }
.cine-podium strong { margin-top:5px; font-size:.7rem; }
.cine-podium small { color:var(--gold-2); font-size:.58rem; }
.cine-rank-list { display:grid; gap:5px; margin-top:9px; }
.cine-rank-list div { display:grid; grid-template-columns:25px 1fr auto; align-items:center; padding:7px 9px; border-radius:10px; background:rgba(255,255,255,.025); font-size:.62rem; }
.cine-rank-list div > b { color:var(--muted); }
.cine-rank-list div > strong { color:var(--gold-2); }
.cine-cast-icon { width:95px; height:95px; display:grid; place-items:center; margin:45px auto 15px; border:1px solid var(--line-strong); border-radius:30px; background:rgba(245,170,36,.1); font-size:2.5rem; box-shadow:0 0 45px rgba(245,170,36,.12); }
.cine-cast-label { display:block; text-align:center; color:var(--gold); font-size:.62rem; letter-spacing:.12em; font-weight:1000; }
.cine-cast-title { display:block; margin:9px auto 10px; text-align:center; font-size:1.5rem; line-height:1; }
.cine-screen[data-cine-screen="4"] p { margin:0 auto; max-width:245px; text-align:center; color:var(--muted); font-size:.69rem; }
.cine-cast-status { display:flex; justify-content:center; align-items:center; gap:7px; margin-top:22px; color:var(--muted-strong); font-size:.64rem; }
.cine-cast-status i { width:7px; height:7px; border-radius:50%; background:var(--green); box-shadow:0 0 12px rgba(129,212,86,.8); }

.cinematic-notification,.cinematic-room-card,.cinematic-rank-card { position:absolute; z-index:7; border:1px solid rgba(255,196,75,.24); background:linear-gradient(145deg,rgba(25,25,24,.96),rgba(9,12,15,.96)); box-shadow:0 30px 75px rgba(0,0,0,.5),inset 0 1px rgba(255,255,255,.04); backdrop-filter:blur(18px); will-change:transform,opacity; }
.cinematic-notification { left:3%; top:13%; display:grid; grid-template-columns:46px 1fr; align-items:center; gap:11px; width:270px; padding:13px; border-radius:18px; opacity:0; transform:translate3d(-30px,20px,0) scale(.9); }
.cinematic-notification > span { width:44px; height:44px; display:grid; place-items:center; border-radius:13px; background:rgba(245,170,36,.1); }
.cinematic-notification strong,.cinematic-notification small { display:block; }
.cinematic-notification strong { font-size:.8rem; }
.cinematic-notification small { color:var(--muted); font-size:.61rem; }
.cinematic-room-card { right:-1%; top:12%; width:300px; padding:18px; border-radius:22px; opacity:0; transform:translate3d(60px,10px,0) scale(.9); }
.cine-card-head { display:flex; justify-content:space-between; align-items:center; color:var(--gold); font-size:.6rem; font-weight:950; letter-spacing:.07em; }
.cine-card-head span { display:flex; align-items:center; gap:6px; }
.cine-card-head i { width:7px; height:7px; border-radius:50%; background:var(--green); box-shadow:0 0 11px rgba(129,212,86,.75); }
.cine-card-head > b { padding:4px 6px; border-radius:7px; background:rgba(245,170,36,.1); }
.cinematic-room-card h3 { margin:14px 0 0; font-size:1.35rem; }
.cinematic-room-card > p { margin:1px 0 12px; color:var(--muted); font-size:.7rem; }
.cine-card-avatars { display:flex; }
.cine-card-avatars span,.cine-card-avatars b { width:38px; height:38px; display:grid; place-items:center; margin-left:-6px; border:2px solid #101214; border-radius:50%; background:linear-gradient(145deg,#6c3714,#21160c); font-size:.56rem; }
.cine-card-avatars span:first-child { margin-left:0; }
.cine-card-avatars b { background:#25282a; color:var(--muted); }
.cine-card-event { display:grid; grid-template-columns:34px 1fr; gap:8px; align-items:center; margin-top:13px; padding:9px; border-radius:12px; background:rgba(255,255,255,.03); }
.cine-card-event > b { width:32px; height:32px; display:grid; place-items:center; border-radius:9px; background:rgba(245,170,36,.1); }
.cine-card-event strong,.cine-card-event small { display:block; }
.cine-card-event strong { font-size:.66rem; }
.cine-card-event small { color:var(--muted); font-size:.55rem; }
.cinematic-rank-card { right:-1%; bottom:10%; width:310px; padding:18px; border-radius:22px; opacity:0; transform:translate3d(65px,35px,0) scale(.9); }
.cine-rank-row { display:grid; grid-template-columns:30px 1fr auto; align-items:center; gap:7px; padding:9px 8px; border-bottom:1px solid rgba(255,255,255,.055); font-size:.71rem; }
.cine-rank-row > b { width:27px; height:27px; display:grid; place-items:center; border-radius:50%; color:var(--muted); background:rgba(255,255,255,.05); }
.cine-rank-row > strong { color:var(--gold-2); }
.cine-rank-row.winner { margin-top:10px; border:1px solid var(--line-strong); border-radius:12px; background:rgba(245,170,36,.08); }
.cine-rank-row.winner > b { color:#1c1103; background:var(--gold); }
.cinematic-rank-card > small { display:block; margin-top:10px; color:var(--gold); font-size:.62rem; font-weight:900; }

.cinematic-tv { position:absolute; z-index:3; left:50%; top:50%; width:760px; opacity:0; transform:translate3d(-50%,-42%,0) scale(.58); transform-origin:center; will-change:transform,opacity; }
.tv-frame { padding:15px; border:1px solid rgba(255,209,102,.35); border-radius:26px; background:linear-gradient(145deg,#4b3d2c,#0c0e10 12%,#171819 86%,#49351c); box-shadow:0 60px 120px rgba(0,0,0,.68),inset 0 0 0 2px rgba(0,0,0,.7); }
.tv-toolbar { display:flex; justify-content:space-between; align-items:center; padding:10px 15px 13px; color:var(--muted); font-size:.68rem; }
.tv-toolbar span { display:flex; align-items:center; gap:8px; color:var(--gold); font-weight:950; }
.tv-toolbar i { width:7px; height:7px; border-radius:50%; background:var(--green); box-shadow:0 0 12px rgba(129,212,86,.8); }
.tv-dashboard { display:grid; grid-template-columns:1.05fr .95fr; gap:11px; padding:12px; border-radius:16px; background:radial-gradient(circle at 28% 15%,rgba(245,170,36,.12),transparent 30%),#090b0d; }
.tv-dashboard > div { padding:18px; border:1px solid rgba(255,255,255,.065); border-radius:16px; background:rgba(255,255,255,.024); }
.tv-dashboard small { color:var(--gold); font-size:.6rem; font-weight:1000; letter-spacing:.09em; }
.tv-main-score { display:grid; place-items:center; grid-row:span 2; min-height:300px; text-align:center; }
.tv-main-score strong { display:block; color:var(--gold-2); font-size:4.2rem; line-height:1; }
.tv-main-score span { color:var(--muted); font-size:.76rem; }
.tv-ranking > div { display:grid; grid-template-columns:26px 1fr auto; gap:7px; align-items:center; margin-top:8px; padding:8px; border-radius:10px; background:rgba(255,255,255,.025); font-size:.7rem; }
.tv-ranking > div > b { width:25px; height:25px; display:grid; place-items:center; border-radius:50%; color:#1d1103; background:var(--gold); }
.tv-ranking > div > strong { color:var(--gold-2); }
.tv-feed p { margin:8px 0 0; font-size:.69rem; }
.tv-game strong,.tv-game span { display:block; }
.tv-game strong { margin-top:10px; font-size:1.15rem; }
.tv-game span { color:var(--muted); font-size:.67rem; }
.tv-stand { width:180px; height:22px; margin:0 auto; border-radius:0 0 50% 50%; background:linear-gradient(180deg,#403426,#111315); box-shadow:0 15px 28px rgba(0,0,0,.5); }

.cinematic-stage[data-scene="1"] .cinematic-notification { opacity:1; }
.cinematic-stage[data-scene="2"] .cinematic-room-card { opacity:1; }
.cinematic-stage[data-scene="3"] .cinematic-rank-card { opacity:1; }
.cinematic-stage[data-scene="4"] .cinematic-tv { opacity:1; }

@media (max-width: 1050px) {
  .cinematic-layout { grid-template-columns:.88fr 1.12fr; gap:12px; }
  .cinematic-copy h2 { font-size:clamp(2.8rem,5.6vw,5rem); }
  .cinematic-room-card,.cinematic-rank-card { right:-8%; width:270px; }
  .cinematic-phone { width:305px; height:590px; }
  .cinematic-tv { width:650px; }
}
@media (max-width: 820px) {
  .cinematic-scroll { height:540vh; min-height:3300px; }
  .cinematic-sticky { min-height:620px; }
  .cinematic-layout { grid-template-columns:1fr; align-content:start; gap:0; padding-top:calc(var(--header-height) + 18px); }
  .cinematic-copy-zone { height:230px; }
  .cinematic-kicker { margin-bottom:8px; }
  .cinematic-copy-stack { height:145px; }
  .cinematic-copy { justify-content:flex-start; }
  .cinematic-copy small { font-size:.62rem; }
  .cinematic-copy h2 { margin:7px 0 9px; max-width:620px; font-size:clamp(2.15rem,8.5vw,3.65rem); line-height:.91; }
  .cinematic-copy p { max-width:650px; font-size:.88rem; line-height:1.4; }
  .cinematic-controls { margin-top:4px; }
  .cinematic-scroll-hint { display:none; }
  .cinematic-stage { height:calc(100svh - 265px); min-height:430px; }
  .cinematic-phone { width:280px; height:540px; }
  .cinematic-room-card,.cinematic-rank-card { width:245px; }
  .cinematic-tv { width:min(650px,96vw); }
  .cinematic-mascot { right:-110px; bottom:-150px; width:520px; }
}
@media (max-width: 560px) {
  .cinematic-scroll { height:510vh; min-height:3000px; }
  .cinematic-sticky { min-height:580px; }
  .cinematic-layout { width:min(calc(100% - 24px),var(--container)); padding-top:calc(var(--header-height) + 8px); }
  .cinematic-copy-zone { height:226px; }
  .cinematic-copy-stack { height:154px; }
  .cinematic-kicker { font-size:.58rem; }
  .cinematic-copy h2 { font-size:clamp(2rem,10vw,2.8rem); }
  .cinematic-copy p { font-size:.78rem; }
  .cinematic-progress { width:125px; }
  .cinematic-stage { height:calc(100svh - 245px); min-height:390px; }
  .cinematic-phone { width:238px; height:466px; border-radius:40px; padding:8px; }
  .cinematic-phone-screen { border-radius:33px; padding:17px 12px 12px; }
  .cinematic-phone-notch { width:86px; height:19px; top:13px; }
  .cine-phone-status { padding-bottom:10px; font-size:.52rem; }
  .cine-phone-brand { grid-template-columns:31px 1fr auto; padding:5px 4px; }
  .cine-phone-brand img { width:31px; height:31px; }
  .cine-phone-brand strong { font-size:.69rem; }
  .cine-phone-brand small { font-size:.5rem; }
  .cine-screen { inset:75px 12px 55px; }
  .cine-overview-score { padding:15px 11px 12px; }
  .cine-overview-score strong { font-size:2.15rem; }
  .cine-drink { grid-template-columns:31px 1fr auto; padding:6px 5px; }
  .cine-drink > b { width:29px; height:29px; }
  .cine-bottle { width:130px; height:130px; margin:8px auto 4px; }
  .cine-bottle span { font-size:3.1rem; }
  .cine-value-change { gap:5px; margin-bottom:8px; }
  .cine-add-button { min-height:39px; }
  .cine-room-stats { margin:8px 0; }
  .cine-room-members { margin-bottom:8px; }
  .cine-room-members span { width:30px; height:30px; }
  .cine-room-feed { gap:4px; }
  .cine-room-feed > div { padding:5px; }
  .cine-podium { height:155px; }
  .cine-podium > div { min-height:105px; }
  .cine-podium > div.winner { min-height:140px; }
  .cine-podium span { width:36px; height:36px; }
  .cine-cast-icon { width:76px; height:76px; margin-top:28px; }
  .cine-phone-nav button { width:40px; height:40px; }
  .cinematic-notification { left:-4%; top:2%; width:205px; grid-template-columns:36px 1fr; padding:9px; }
  .cinematic-notification > span { width:34px; height:34px; }
  .cinematic-notification strong { font-size:.63rem; }
  .cinematic-notification small { font-size:.49rem; }
  .cinematic-room-card { right:-7%; top:4%; width:205px; padding:12px; }
  .cinematic-room-card h3 { font-size:1rem; }
  .cine-card-avatars span,.cine-card-avatars b { width:31px; height:31px; }
  .cinematic-rank-card { right:-7%; bottom:3%; width:215px; padding:12px; }
  .cine-rank-row { padding:6px 5px; font-size:.6rem; }
  .cinematic-tv { width:94vw; }
  .tv-frame { padding:8px; border-radius:18px; }
  .tv-dashboard { padding:7px; gap:6px; }
  .tv-dashboard > div { padding:10px; border-radius:11px; }
  .tv-main-score { min-height:220px; }
  .tv-main-score strong { font-size:2.65rem; }
  .tv-ranking > div { padding:5px; font-size:.56rem; }
  .tv-feed p { font-size:.54rem; }
  .cinematic-mascot { width:420px; right:-150px; bottom:-120px; }
}

/* Keep horizontal overflow clipped without creating a scrolling ancestor; required for pinned scrollytelling. */
html, body { overflow-x: clip; }


/* ==========================================================================
   MOBILE CINEMATIC PINNING FIX
   Robust on iOS Safari, Chrome Android and browsers with dynamic toolbars.
   The fixed-pin state is controlled by assets/app.js while desktop keeps CSS sticky.
   ========================================================================== */
html, body { overflow-x: clip; }
.cinematic-scroll { touch-action: pan-y; }
.cinematic-sticky { position: -webkit-sticky; position: sticky; }

@media (max-width: 820px), (pointer: coarse) {
  .cinematic-scroll {
    height: var(--cine-scroll-height, 4300px);
    min-height: 0;
    contain: none;
  }
  .cinematic-scroll.mobile-js-pin .cinematic-sticky {
    position: absolute;
    inset: 0 0 auto 0;
    width: 100%;
    height: var(--cine-vh, 100svh);
    min-height: 0;
    max-height: none;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
  }
  .cinematic-scroll.mobile-js-pin[data-pin-state="active"] .cinematic-sticky {
    position: fixed;
    inset: 0 0 auto 0;
  }
  .cinematic-scroll.mobile-js-pin[data-pin-state="after"] .cinematic-sticky {
    position: absolute;
    inset: auto 0 0 0;
  }
  .cinematic-layout {
    height: var(--cine-vh, 100svh);
    max-height: var(--cine-vh, 100svh);
    min-height: 0;
    overflow: hidden;
  }
  .cinematic-copy-zone { height: clamp(180px, 28svh, 226px); }
  .cinematic-copy-stack { height: clamp(122px, 19svh, 154px); }
  .cinematic-stage {
    height: calc(var(--cine-vh, 100svh) - var(--header-height) - clamp(180px, 28svh, 226px) - 10px);
    min-height: 0;
    max-height: none;
    contain: layout paint;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
  }
  .cinematic-phone,
  .cinematic-notification,
  .cinematic-room-card,
  .cinematic-rank-card,
  .cinematic-tv,
  .cinematic-mascot,
  .cinematic-aura {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
  }
  .cinematic-notification,
  .cinematic-room-card,
  .cinematic-rank-card { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .cinematic-grid { opacity: .12; }
  .cinematic-glow { filter: blur(42px); }
  .cinematic-scroll-hint { display: none; }
  .cinematic-controls { position: relative; z-index: 20; }
  .cinematic-dots button { min-width: 12px; min-height: 12px; }
  body.cinematic-mobile-active { overscroll-behavior-y: none; }
}

@media (max-width: 560px) {
  .cinematic-layout { padding-top: calc(var(--header-height) + env(safe-area-inset-top, 0px) + 3px); }
  .cinematic-copy-zone { height: clamp(168px, 26svh, 214px); }
  .cinematic-copy-stack { height: clamp(116px, 18svh, 148px); }
  .cinematic-copy h2 { margin-top: 5px; margin-bottom: 7px; font-size: clamp(1.82rem, 9.2vw, 2.55rem); }
  .cinematic-copy p { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 3; -webkit-box-orient: vertical; font-size: .75rem; line-height: 1.34; }
  .cinematic-stage {
    height: calc(var(--cine-vh, 100svh) - var(--header-height) - clamp(168px, 26svh, 214px) - 5px);
  }
}

@media (max-width: 820px) and (max-height: 720px) {
  .cinematic-layout { padding-top: calc(var(--header-height) + 2px); }
  .cinematic-copy-zone { height: 154px; }
  .cinematic-copy-stack { height: 104px; }
  .cinematic-kicker { margin-bottom: 2px; }
  .cinematic-copy h2 { margin: 3px 0 5px; font-size: clamp(1.65rem, 8vw, 2.2rem); }
  .cinematic-copy p { font-size: .69rem; -webkit-line-clamp: 2; }
  .cinematic-controls { margin-top: 1px; }
  .cinematic-stage { height: calc(var(--cine-vh, 100svh) - var(--header-height) - 158px); }
  .cinematic-phone { width: 216px; height: 423px; }
  .cinematic-room-card { width: 188px; }
  .cinematic-rank-card { width: 196px; }
}

@supports not (overflow: clip) {
  html, body { overflow-x: visible; }
}


/* Final mobile presentation polish */
.site-header { position: -webkit-sticky; position: sticky; top: 0; z-index: 100; }
@media (max-width: 560px) {
  .cinematic-notification { left: 0; }
  .cinematic-room-card { right: 0; width: min(205px, 54vw); }
  .cinematic-rank-card { right: 0; width: min(210px, 55vw); }
}
@media (max-width: 820px) and (max-height: 720px) {
  .cinematic-copy-zone { height: 188px; }
  .cinematic-copy-stack { height: 132px; }
  .cinematic-copy h2 { margin: 3px 0 5px; font-size: clamp(1.65rem, 7.6vw, 1.95rem); line-height: .93; }
  .cinematic-copy p { font-size: .65rem; line-height: 1.25; -webkit-line-clamp: 2; }
  .cinematic-controls { margin-top: 3px; }
  .cinematic-stage { height: calc(var(--cine-vh, 100svh) - var(--header-height) - 192px); }
  .cinematic-phone { width: 210px; height: 411px; }
  .cinematic-room-card { width: min(190px, 51vw); }
  .cinematic-rank-card { width: min(196px, 52vw); }
}

/* The generic motion-layer stacking selector must not downgrade the header. */
body > header.site-header {
  position: -webkit-sticky !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 100 !important;
}

/* ========================================================================== 
   MOBILE MARKER STORIES V3
   Mobile uses body-level fixed overlays plus full-height scroll markers.
   This deliberately avoids sticky positioning and fixed descendants inside
   long transformed sections, which are unreliable in some mobile browsers.
   ========================================================================== */
.mobile-story-track,
.mobile-performance-track { display:none; }

/* Second pinned presentation: feed -> stats -> achievements -> games. */
.performance-scroll {
  --perf-p: 0;
  position:relative;
  height:440vh;
  min-height:3000px;
  isolation:isolate;
  background:
    radial-gradient(circle at 72% 42%,rgba(245,170,36,.15),transparent 30%),
    linear-gradient(180deg,#090d12,#07090c 70%,#090d12);
}
.performance-sticky {
  position:-webkit-sticky;
  position:sticky;
  top:0;
  height:100svh;
  min-height:680px;
  overflow:hidden;
  display:grid;
  align-items:center;
}
.performance-noise {
  position:absolute;
  inset:0;
  pointer-events:none;
  opacity:.22;
  background-image:
    linear-gradient(rgba(255,255,255,.026) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.026) 1px,transparent 1px);
  background-size:54px 54px;
  mask-image:linear-gradient(to bottom,transparent,black 14%,black 86%,transparent);
}
.performance-layout {
  position:relative;
  z-index:2;
  display:grid;
  grid-template-columns:.76fr 1.24fr;
  align-items:center;
  gap:56px;
  height:100%;
  padding-top:calc(var(--header-height) * .35);
}
.performance-copy-stack { position:relative; min-width:0; height:min(430px,48vh); }
.performance-copy {
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  justify-content:center;
  opacity:0;
  visibility:hidden;
  transform:translate3d(0,38px,0);
  filter:blur(8px);
  transition:opacity .42s ease,transform .62s cubic-bezier(.2,.8,.2,1),filter .42s ease,visibility .42s;
}
.performance-copy.active { opacity:1; visibility:visible; transform:none; filter:none; }
.performance-copy small { color:var(--gold); font-weight:1000; letter-spacing:.13em; }
.performance-copy h2 { margin:14px 0 18px; max-width:610px; font-size:clamp(3rem,5.4vw,6.2rem); line-height:.9; letter-spacing:-.068em; }
.performance-copy p { max-width:560px; margin:0; color:var(--muted-strong); font-size:clamp(1rem,1.25vw,1.16rem); }
.performance-dots { position:absolute; left:0; bottom:0; display:flex; gap:8px; }
.performance-dots button { width:9px; height:9px; padding:0; border-radius:99px; background:rgba(255,255,255,.2); cursor:pointer; transition:.25s ease; }
.performance-dots button.active { width:34px; background:var(--gold); box-shadow:0 0 18px rgba(245,170,36,.5); }
.performance-stage { position:relative; height:min(720px,78vh); min-width:0; perspective:1300px; }
.performance-ring { position:absolute; left:50%; top:50%; width:610px; height:610px; border-radius:50%; transform:translate(-50%,-50%) scale(calc(.78 + var(--perf-p) * .18)); opacity:calc(.52 - var(--perf-p) * .08); background:radial-gradient(circle,rgba(245,170,36,.2),rgba(245,170,36,.045) 43%,transparent 69%); filter:blur(5px); }
.performance-mascot { position:absolute; right:-125px; bottom:-125px; width:560px; opacity:.105; filter:sepia(.15) saturate(1.15); transform:translate3d(calc(var(--perf-p) * -46px),calc(var(--perf-p) * -28px),0) rotate(calc(var(--perf-p) * -3deg)); }
.performance-device {
  position:absolute;
  z-index:4;
  left:50%;
  top:50%;
  width:min(610px,86%);
  height:490px;
  padding:18px;
  border:1px solid rgba(255,200,83,.28);
  border-radius:38px;
  background:linear-gradient(145deg,rgba(255,255,255,.055),rgba(255,255,255,.015)),#0b0e12;
  box-shadow:0 50px 110px rgba(0,0,0,.58),0 0 90px rgba(245,170,36,.08);
  transform:translate(-50%,-50%) rotateY(calc(-7deg + var(--perf-p) * 8deg)) rotateX(calc(2deg - var(--perf-p) * 3deg));
  transform-style:preserve-3d;
}
.performance-device-top { display:grid; grid-template-columns:38px 1fr auto; align-items:center; gap:10px; height:48px; padding:0 4px 12px; border-bottom:1px solid rgba(255,255,255,.07); }
.performance-device-top img { width:36px; height:36px; object-fit:contain; }
.performance-device-top span { padding:5px 8px; border-radius:8px; color:#241502; background:var(--gold); font-size:.58rem; font-weight:1000; }
.performance-screen { position:absolute; inset:80px 18px 18px; opacity:0; visibility:hidden; transform:translate3d(34px,0,0) scale(.98); filter:blur(5px); transition:opacity .42s ease,transform .58s cubic-bezier(.2,.8,.2,1),filter .42s ease,visibility .42s; }
.performance-screen.active { opacity:1; visibility:visible; transform:none; filter:none; }
.feed-title small,.feed-title strong { display:block; }
.feed-title small { color:var(--gold); font-weight:900; letter-spacing:.1em; }
.feed-title strong { margin-top:5px; font-size:1.7rem; }
.feed-event { display:grid; grid-template-columns:55px 42px 1fr; align-items:center; gap:12px; margin-top:12px; padding:13px; border:1px solid rgba(255,255,255,.07); border-radius:17px; background:rgba(255,255,255,.025); }
.feed-event.hot { border-color:rgba(245,170,36,.38); background:linear-gradient(90deg,rgba(245,170,36,.12),rgba(255,255,255,.02)); }
.feed-event > b { color:var(--gold); font-size:.72rem; }
.feed-event > span { font-size:1.45rem; }
.feed-event strong,.feed-event small { display:block; }
.feed-event small { color:var(--muted); }
.stats-head { display:grid; grid-template-columns:1fr auto; align-items:end; }
.stats-head small,.stats-head strong { display:block; grid-column:1; }
.stats-head small { color:var(--gold); font-weight:900; letter-spacing:.1em; }
.stats-head strong { margin-top:5px; font-size:1.8rem; }
.stats-head em { grid-column:2; grid-row:1/3; align-self:center; padding:8px 10px; border-radius:12px; color:#251600; background:var(--gold); font-style:normal; font-weight:1000; }
.stats-chart { height:190px; margin:28px 0 20px; display:flex; align-items:end; gap:12px; padding:20px 18px 0; border:1px solid rgba(255,255,255,.06); border-radius:20px; background:linear-gradient(180deg,rgba(245,170,36,.05),transparent); }
.stats-chart i { flex:1; height:var(--h); min-width:18px; border-radius:10px 10px 3px 3px; background:linear-gradient(180deg,var(--gold-2),var(--amber)); box-shadow:0 0 20px rgba(245,170,36,.15); transform-origin:bottom; animation:perfBar 1.1s cubic-bezier(.2,.8,.2,1) both; }
@keyframes perfBar { from { transform:scaleY(.08); opacity:.25; } to { transform:scaleY(1); opacity:1; } }
.stats-kpis { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
.stats-kpis div { padding:12px; text-align:center; border:1px solid rgba(255,255,255,.06); border-radius:15px; background:rgba(255,255,255,.02); }
.stats-kpis strong,.stats-kpis small { display:block; }
.stats-kpis strong { font-size:1.28rem; }
.stats-kpis small { color:var(--muted); }
.performance-screen[data-performance-screen="2"] { text-align:center; padding-top:12px; }
.achievement-burst { width:116px; height:116px; margin:0 auto 16px; display:grid; place-items:center; border-radius:50%; font-size:3.7rem; background:radial-gradient(circle,var(--gold-2),var(--amber) 55%,rgba(245,170,36,.12) 57%,transparent 71%); box-shadow:0 0 70px rgba(245,170,36,.32); }
.achievement-label { color:var(--gold); font-weight:1000; letter-spacing:.12em; }
.achievement-title { display:block; margin:8px 0 5px; font-size:2.1rem; }
.performance-screen[data-performance-screen="2"] p { max-width:410px; margin:0 auto; color:var(--muted-strong); }
.achievement-xp { width:min(360px,80%); margin:24px auto 0; }
.achievement-xp span { display:block; margin-bottom:7px; color:var(--gold-2); font-weight:1000; }
.achievement-xp i { display:block; height:7px; border-radius:9px; background:linear-gradient(90deg,var(--gold-2) 0 78%,rgba(255,255,255,.08) 78%); box-shadow:0 0 18px rgba(245,170,36,.25); }
.game-ready { height:100%; display:flex; flex-direction:column; justify-content:center; align-items:center; text-align:center; }
.game-ready > small { color:var(--gold); font-weight:1000; letter-spacing:.12em; }
.game-ready > strong { margin:9px 0; font-size:2.2rem; }
.game-ready > p { max-width:400px; margin:0; color:var(--muted-strong); }
.game-team-row { width:min(430px,90%); margin:24px 0; display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:12px; }
.game-team-row span { padding:14px 9px; border:1px solid rgba(245,170,36,.25); border-radius:15px; color:var(--gold-2); background:rgba(245,170,36,.06); font-weight:900; }
.game-team-row b { color:var(--muted); }
.game-ready button { padding:12px 18px; border-radius:13px; color:#211302; background:linear-gradient(135deg,var(--gold-2),var(--gold)); font-weight:1000; cursor:pointer; }
.performance-float { position:absolute; z-index:6; padding:12px 14px; border:1px solid rgba(255,198,78,.24); border-radius:16px; background:rgba(11,14,18,.88); box-shadow:0 18px 45px rgba(0,0,0,.35); transition:.5s cubic-bezier(.2,.8,.2,1); }
.performance-float small,.performance-float strong { display:block; }
.performance-float small { color:var(--gold); font-size:.55rem; letter-spacing:.1em; }
.performance-float-a { left:2%; top:18%; transform:translate3d(calc(var(--perf-p) * 24px),calc(var(--perf-p) * -20px),0); }
.performance-float-b { right:0; bottom:15%; transform:translate3d(calc(var(--perf-p) * -35px),calc(var(--perf-p) * 18px),0); }

@media (max-width:920px) {
  .performance-layout { grid-template-columns:1fr; align-content:start; gap:0; padding-top:calc(var(--header-height) + 14px); }
  .performance-copy-stack { height:220px; }
  .performance-copy h2 { font-size:clamp(2rem,7vw,3.5rem); }
  .performance-stage { height:calc(100svh - var(--header-height) - 245px); min-height:430px; }
}

@media (max-width:820px), (pointer:coarse) {
  /* Disable the previous JS pin implementation completely. */
  .cinematic-scroll.mobile-marker-mode,
  .performance-scroll.mobile-marker-mode {
    height:auto !important;
    min-height:0 !important;
    contain:none !important;
    overflow:visible !important;
  }
  .mobile-story-track,
  .mobile-performance-track {
    position:relative;
    display:block;
    z-index:1;
    background:#070a0e;
  }
  .mobile-story-marker,
  .mobile-performance-marker {
    position:relative;
    height:max(92svh,620px);
    min-height:620px;
  }
  .mobile-story-marker span,
  .mobile-performance-marker span {
    position:absolute;
    left:20px;
    bottom:18px;
    color:rgba(255,255,255,.2);
    font-size:.65rem;
    font-weight:900;
    letter-spacing:.12em;
    text-transform:uppercase;
  }
  .mobile-cinematic-overlay,
  .mobile-performance-overlay {
    position:fixed !important;
    z-index:88;
    top:var(--header-height) !important;
    right:0 !important;
    bottom:auto !important;
    left:0 !important;
    width:100% !important;
    height:calc(100dvh - var(--header-height)) !important;
    min-height:0 !important;
    max-height:none !important;
    overflow:hidden !important;
    opacity:0;
    visibility:hidden;
    pointer-events:none;
    transform:none !important;
    transition:opacity .18s linear,visibility .18s linear;
    background:#070a0e;
    contain:layout paint;
    isolation:isolate;
  }
  @supports not (height:100dvh) {
    .mobile-cinematic-overlay,
    .mobile-performance-overlay { height:calc(100vh - var(--header-height)) !important; }
  }
  .mobile-cinematic-overlay.is-mobile-story-active,
  .mobile-performance-overlay.is-mobile-story-active {
    opacity:1;
    visibility:visible;
    pointer-events:auto;
  }
  body.mobile-story-active { overscroll-behavior-y:auto; }
  .mobile-cinematic-overlay .cinematic-layout,
  .mobile-performance-overlay .performance-layout {
    width:min(calc(100% - 22px),var(--container));
    height:100% !important;
    max-height:none !important;
    min-height:0 !important;
    margin:auto;
    padding-top:7px !important;
    overflow:hidden;
  }
  .mobile-cinematic-overlay .cinematic-copy-zone { height:clamp(170px,28%,215px) !important; }
  .mobile-cinematic-overlay .cinematic-copy-stack { height:clamp(116px,19%,150px) !important; }
  .mobile-cinematic-overlay .cinematic-stage {
    height:calc(100% - clamp(170px,28%,215px) - 8px) !important;
    min-height:0 !important;
    max-height:none !important;
    contain:layout paint;
  }
  .mobile-cinematic-overlay .cinematic-copy h2 { margin:4px 0 6px; font-size:clamp(1.75rem,8.6vw,2.55rem); line-height:.91; }
  .mobile-cinematic-overlay .cinematic-copy p { display:-webkit-box; overflow:hidden; -webkit-line-clamp:3; -webkit-box-orient:vertical; font-size:.74rem; line-height:1.32; }
  .mobile-cinematic-overlay .cinematic-kicker { margin-bottom:3px; }
  .mobile-cinematic-overlay .cinematic-controls { margin-top:3px; }
  .mobile-cinematic-overlay .cinematic-scroll-hint { display:none; }
  .mobile-cinematic-overlay .cinematic-glow { filter:blur(38px); }
  .mobile-cinematic-overlay .cinematic-notification,
  .mobile-cinematic-overlay .cinematic-room-card,
  .mobile-cinematic-overlay .cinematic-rank-card { backdrop-filter:none; -webkit-backdrop-filter:none; }

  .mobile-performance-overlay .performance-layout { display:grid; grid-template-columns:1fr; align-content:start; gap:0; }
  .mobile-performance-overlay .performance-copy-stack { height:clamp(175px,30%,225px); }
  .mobile-performance-overlay .performance-copy h2 { margin:5px 0 7px; font-size:clamp(1.75rem,8.8vw,2.55rem); line-height:.92; }
  .mobile-performance-overlay .performance-copy p { display:-webkit-box; overflow:hidden; -webkit-line-clamp:3; -webkit-box-orient:vertical; font-size:.75rem; line-height:1.32; }
  .mobile-performance-overlay .performance-dots { bottom:4px; }
  .mobile-performance-overlay .performance-stage { height:calc(100% - clamp(175px,30%,225px)); min-height:0; }
  .mobile-performance-overlay .performance-device { width:min(94%,500px); height:min(440px,92%); padding:13px; border-radius:28px; transform:translate(-50%,-50%) rotateY(0deg) !important; }
  .mobile-performance-overlay .performance-device-top { height:42px; }
  .mobile-performance-overlay .performance-screen { inset:65px 13px 13px; }
  .mobile-performance-overlay .performance-mascot { width:390px; right:-150px; bottom:-120px; }
  .mobile-performance-overlay .performance-ring { width:470px; height:470px; }
  .mobile-performance-overlay .performance-float { padding:8px 10px; font-size:.7rem; }
  .mobile-performance-overlay .performance-float-a { left:0; top:8%; }
  .mobile-performance-overlay .performance-float-b { right:0; bottom:7%; }
  .mobile-performance-overlay .feed-event { grid-template-columns:43px 34px 1fr; gap:8px; margin-top:8px; padding:9px; }
  .mobile-performance-overlay .stats-chart { height:150px; margin:17px 0 13px; padding:15px 10px 0; gap:7px; }
  .mobile-performance-overlay .achievement-burst { width:92px; height:92px; font-size:2.8rem; }
  .mobile-performance-overlay .achievement-title { font-size:1.65rem; }
  .mobile-performance-overlay .game-ready > strong { font-size:1.7rem; }
  .mobile-performance-overlay .game-team-row { margin:15px 0; }
}

@media (max-width:420px) {
  .mobile-story-marker,
  .mobile-performance-marker { height:max(96svh,590px); min-height:590px; }
  .mobile-cinematic-overlay .cinematic-copy-zone { height:174px !important; }
  .mobile-cinematic-overlay .cinematic-copy-stack { height:122px !important; }
  .mobile-cinematic-overlay .cinematic-stage { height:calc(100% - 182px) !important; }
  .mobile-cinematic-overlay .cinematic-copy h2 { font-size:clamp(1.55rem,8.1vw,2.05rem); }
  .mobile-cinematic-overlay .cinematic-copy p { font-size:.68rem; -webkit-line-clamp:2; }
  .mobile-performance-overlay .performance-copy-stack { height:184px; }
  .mobile-performance-overlay .performance-stage { height:calc(100% - 184px); }
  .mobile-performance-overlay .performance-copy h2 { font-size:clamp(1.52rem,8.2vw,2.08rem); }
  .mobile-performance-overlay .performance-copy p { font-size:.69rem; -webkit-line-clamp:2; }
  .mobile-performance-overlay .performance-device { height:min(410px,94%); }
  .mobile-performance-overlay .feed-title strong,.mobile-performance-overlay .stats-head strong { font-size:1.35rem; }
  .mobile-performance-overlay .feed-event small { font-size:.58rem; }
}

/* Reduced-motion only suppresses autonomous decoration. It must never alter
   story layout, visibility, marker height or the selected information scene. */
@media (prefers-reduced-motion:reduce) {
  .cinematic-scroll-hint i::after,
  .ambient-particles i,
  .hero-orb,
  .performance-ring,
  .game-orbit .orbit-card { animation:none !important; }
  .cinematic-copy,
  .cine-screen,
  .performance-copy,
  .performance-screen,
  .mobile-cinematic-overlay,
  .mobile-performance-overlay { transition-duration:.01ms !important; }
}

/* Portal overlays must outrank the generic body child stacking rule. */
@media (max-width:820px), (pointer:coarse) {
  body > .mobile-cinematic-overlay,
  body > .mobile-performance-overlay {
    position:fixed !important;
    z-index:88 !important;
  }
  .mobile-cinematic-overlay .cinematic-layout {
    grid-template-rows:clamp(170px,28%,215px) minmax(0,1fr) !important;
  }
  .mobile-cinematic-overlay .cinematic-copy-zone { height:auto !important; min-height:0 !important; }
  .mobile-cinematic-overlay .cinematic-stage {
    align-self:stretch;
    height:auto !important;
    min-height:0 !important;
  }
  .mobile-performance-overlay .performance-layout {
    grid-template-rows:clamp(175px,30%,225px) minmax(0,1fr) !important;
  }
  .mobile-performance-overlay .performance-copy-stack { height:auto !important; min-height:0 !important; }
  .mobile-performance-overlay .performance-stage {
    align-self:stretch;
    height:auto !important;
    min-height:0 !important;
  }
}
@media (max-width:420px) {
  .mobile-cinematic-overlay .cinematic-layout { grid-template-rows:174px minmax(0,1fr) !important; }
  .mobile-performance-overlay .performance-layout { grid-template-rows:184px minmax(0,1fr) !important; }
}
@media (max-width:820px), (pointer:coarse) {
  .mobile-performance-overlay .performance-copy-stack { height:100% !important; }
}
@media (max-width:820px) and (max-height:700px) {
  .mobile-performance-overlay .performance-float { display:none; }
  .mobile-performance-overlay .performance-device { height:96%; }
  .mobile-performance-overlay .performance-screen { inset:60px 11px 10px; }
  .mobile-performance-overlay .achievement-burst { width:70px; height:70px; margin-bottom:8px; font-size:2.15rem; }
  .mobile-performance-overlay .achievement-label { font-size:.58rem; }
  .mobile-performance-overlay .achievement-title { margin:5px 0 3px; font-size:1.42rem; }
  .mobile-performance-overlay .performance-screen[data-performance-screen="2"] p { font-size:.72rem; line-height:1.3; }
  .mobile-performance-overlay .achievement-xp { margin-top:10px; }
  .mobile-performance-overlay .achievement-xp span { margin-bottom:3px; font-size:.72rem; }
  .mobile-performance-overlay .stats-chart { height:100px; margin:10px 0 8px; }
  .mobile-performance-overlay .stats-kpis div { padding:7px; }
  .mobile-performance-overlay .feed-title strong { font-size:1.18rem; }
  .mobile-performance-overlay .feed-event { margin-top:6px; padding:7px; }
  .mobile-performance-overlay .game-ready > strong { margin:5px 0; font-size:1.4rem; }
  .mobile-performance-overlay .game-ready > p { font-size:.72rem; }
  .mobile-performance-overlay .game-team-row { margin:10px 0; }
  .mobile-performance-overlay .game-team-row span { padding:9px 5px; font-size:.7rem; }
  .mobile-performance-overlay .game-ready button { padding:9px 12px; font-size:.75rem; }
}


/* ========================================================================== 
   S24 / REAL TOUCH DEVICE FIX V4
   Two real-device differences are handled here:
   1. A full-screen fixed overlay must not consume the finger swipe.
   2. Android's "Animationen entfernen" must not remove the story structure.
   The story remains user-driven; autonomous decorative motion stays reduced.
   ========================================================================== */
:root { --pg-story-vh: 100dvh; }

@media (max-width:960px), (pointer:coarse) {
  html.story-engine-ready .cinematic-scroll.mobile-marker-mode,
  html.story-engine-ready .performance-scroll.mobile-marker-mode {
    height:auto !important;
    min-height:0 !important;
    contain:none !important;
    overflow:visible !important;
  }

  html.story-engine-ready .mobile-story-track,
  html.story-engine-ready .mobile-performance-track {
    display:block !important;
    position:relative !important;
    z-index:1 !important;
    background:#070a0e !important;
  }

  html.story-engine-ready .mobile-story-marker,
  html.story-engine-ready .mobile-performance-marker {
    display:block !important;
    height:max(92svh,620px) !important;
    min-height:620px !important;
  }

  html.story-engine-ready body > .mobile-cinematic-overlay,
  html.story-engine-ready body > .mobile-performance-overlay {
    position:fixed !important;
    top:var(--header-height) !important;
    right:0 !important;
    bottom:auto !important;
    left:0 !important;
    width:100% !important;
    height:calc(var(--pg-story-vh, 100dvh) - var(--header-height)) !important;
    min-height:0 !important;
    overflow:hidden !important;
    z-index:88 !important;
    touch-action:pan-y !important;
    overscroll-behavior:contain;
    pointer-events:none !important;
  }

  /* Keep controls usable without letting the full-screen layer swallow swipes. */
  html.story-engine-ready body > .mobile-cinematic-overlay button,
  html.story-engine-ready body > .mobile-cinematic-overlay a,
  html.story-engine-ready body > .mobile-performance-overlay button,
  html.story-engine-ready body > .mobile-performance-overlay a {
    pointer-events:auto !important;
    touch-action:manipulation !important;
  }

  html.story-engine-ready body > .mobile-cinematic-overlay.is-mobile-story-active,
  html.story-engine-ready body > .mobile-performance-overlay.is-mobile-story-active {
    opacity:1 !important;
    visibility:visible !important;
  }
}

/* Android can expose "Animationen entfernen" as prefers-reduced-motion.
   It may reduce decorative transitions, but it must never delete the scroll
   markers or deactivate the information-bearing scene changes. */
@media (prefers-reduced-motion:reduce) {
  html.story-engine-ready .cinematic-scroll.mobile-marker-mode,
  html.story-engine-ready .performance-scroll.mobile-marker-mode {
    height:auto !important;
    min-height:0 !important;
    padding:0 !important;
  }

  html.story-engine-ready .mobile-story-track,
  html.story-engine-ready .mobile-performance-track {
    display:block !important;
  }

  html.story-engine-ready .mobile-story-marker,
  html.story-engine-ready .mobile-performance-marker {
    display:block !important;
  }

  html.story-engine-ready body > .mobile-cinematic-overlay,
  html.story-engine-ready body > .mobile-performance-overlay {
    position:fixed !important;
    top:var(--header-height) !important;
    height:calc(var(--pg-story-vh, 100dvh) - var(--header-height)) !important;
    min-height:0 !important;
    overflow:hidden !important;
    pointer-events:none !important;
  }

  html.story-engine-ready body > .mobile-cinematic-overlay button,
  html.story-engine-ready body > .mobile-cinematic-overlay a,
  html.story-engine-ready body > .mobile-performance-overlay button,
  html.story-engine-ready body > .mobile-performance-overlay a {
    pointer-events:auto !important;
  }
}

.pg-story-debug {
  position:fixed;
  right:8px;
  bottom:8px;
  z-index:9999;
  width:min(310px,calc(100vw - 16px));
  padding:10px 12px;
  border:1px solid rgba(255,194,73,.55);
  border-radius:12px;
  color:#fff3d2;
  background:rgba(4,6,9,.94);
  box-shadow:0 12px 35px rgba(0,0,0,.5);
  font:700 11px/1.45 ui-monospace,SFMono-Regular,Consolas,monospace;
  white-space:pre-wrap;
  pointer-events:none;
}


/* ========================================================================== 
   REAL DEVICE VISIBILITY FAIL-SAFE V5
   A mobile story is invisible unless JavaScript explicitly marks that exact
   story active. This rule intentionally comes last and also applies when
   Android exposes "Remove animations" as prefers-reduced-motion.
   ========================================================================== */
@media (max-width:960px), (pointer:coarse) {
  html.story-engine-ready body > .mobile-cinematic-overlay,
  html.story-engine-ready body > .mobile-performance-overlay {
    display:block !important;
    opacity:0 !important;
    visibility:hidden !important;
    pointer-events:none !important;
  }

  html.story-engine-ready body > .mobile-cinematic-overlay.is-mobile-story-active,
  html.story-engine-ready body > .mobile-performance-overlay.is-mobile-story-active {
    opacity:1 !important;
    visibility:visible !important;
  }

  html.story-engine-ready body > .mobile-cinematic-overlay.is-mobile-story-active button,
  html.story-engine-ready body > .mobile-cinematic-overlay.is-mobile-story-active a,
  html.story-engine-ready body > .mobile-performance-overlay.is-mobile-story-active button,
  html.story-engine-ready body > .mobile-performance-overlay.is-mobile-story-active a {
    pointer-events:auto !important;
  }

  /* Never allow stale desktop/reduced-motion declarations to force one
     performance screen permanently visible. */
  html.story-engine-ready .mobile-performance-overlay .performance-copy-stack,
  html.story-engine-ready .mobile-performance-overlay .performance-screen,
  html.story-engine-ready .mobile-cinematic-overlay .cinematic-copy-stack,
  html.story-engine-ready .mobile-cinematic-overlay .cine-screen {
    display:block !important;
  }

  html.story-engine-ready .mobile-performance-overlay .performance-screen:not(.active),
  html.story-engine-ready .mobile-cinematic-overlay .cine-screen:not(.active) {
    opacity:0 !important;
    visibility:hidden !important;
  }

  html.story-engine-ready .mobile-performance-overlay .performance-screen.active,
  html.story-engine-ready .mobile-cinematic-overlay .cine-screen.active {
    opacity:1 !important;
    visibility:visible !important;
  }
}

/* ========================================================================== 
   NATIVE MOBILE STICKY STORY V5
   The real-device version deliberately keeps both story stages inside their
   own sections. There are no body-level fixed overlays and no portal nodes.
   ========================================================================== */
@media (max-width:960px), (pointer:coarse) {
  html.story-engine-ready .cinematic-scroll.mobile-native-story,
  html.story-engine-ready .performance-scroll.mobile-native-story {
    position:relative !important;
    overflow:visible !important;
    contain:none !important;
  }

  html.story-engine-ready .cinematic-scroll.mobile-native-story {
    --cine-vh:var(--pg-story-vh,100svh);
    height:max(510svh,3000px) !important;
    min-height:3000px !important;
  }

  html.story-engine-ready .performance-scroll.mobile-native-story {
    height:max(440svh,2700px) !important;
    min-height:2700px !important;
  }

  html.story-engine-ready .mobile-native-story > .cinematic-sticky,
  html.story-engine-ready .mobile-native-story > .performance-sticky {
    position:-webkit-sticky !important;
    position:sticky !important;
    inset:auto !important;
    top:0 !important;
    width:100% !important;
    height:var(--pg-story-vh,100svh) !important;
    min-height:0 !important;
    max-height:none !important;
    overflow:hidden !important;
    opacity:1 !important;
    visibility:visible !important;
    pointer-events:auto !important;
    touch-action:pan-y !important;
    overscroll-behavior-y:auto !important;
    transform:none !important;
  }

  html.story-engine-ready .mobile-native-story .mobile-story-track,
  html.story-engine-ready .mobile-native-story .mobile-performance-track {
    display:none !important;
  }

  html.story-engine-ready .mobile-native-story .cinematic-layout,
  html.story-engine-ready .mobile-native-story .performance-layout {
    height:100% !important;
    max-height:100% !important;
    min-height:0 !important;
    overflow:hidden !important;
  }

  html.story-engine-ready .mobile-native-story .cinematic-layout {
    padding-top:calc(var(--header-height) + env(safe-area-inset-top,0px) + 4px) !important;
  }

  html.story-engine-ready .mobile-native-story .performance-layout {
    padding-top:calc(var(--header-height) + env(safe-area-inset-top,0px) + 8px) !important;
  }

  html.story-engine-ready .mobile-native-story .performance-stage {
    height:calc(100% - 230px) !important;
    min-height:0 !important;
  }
}

@media (max-width:420px) {
  html.story-engine-ready .mobile-native-story .performance-stage {
    height:calc(100% - 194px) !important;
  }
}


/* ========================================================================== 
   S24 MOBILE PERFORMANCE COPY FIX V6
   The copy above the second scroll presentation is a real, isolated grid row.
   Only one chapter exists in layout at a time; no absolute text layers can
   overlap, bleed behind the header or remain visible after a scene change.
   ========================================================================== */
@media (max-width:960px), (pointer:coarse) {
  html.story-engine-ready .performance-scroll.mobile-native-story .performance-layout {
    display:grid !important;
    grid-template-columns:minmax(0,1fr) !important;
    grid-template-rows:minmax(172px,24svh) minmax(0,1fr) !important;
    align-content:stretch !important;
    align-items:stretch !important;
    gap:8px !important;
    width:min(calc(100% - 24px),var(--container)) !important;
    height:100% !important;
    margin-inline:auto !important;
    padding:
      calc(var(--header-height) + env(safe-area-inset-top,0px) + 8px)
      0
      max(10px,env(safe-area-inset-bottom,0px)) !important;
    overflow:hidden !important;
  }

  html.story-engine-ready .performance-scroll.mobile-native-story .performance-copy-stack {
    position:relative !important;
    z-index:12 !important;
    width:100% !important;
    height:auto !important;
    min-height:0 !important;
    overflow:hidden !important;
    padding:14px 15px 32px !important;
    border:1px solid rgba(255,194,73,.16);
    border-radius:18px;
    background:linear-gradient(145deg,rgba(20,23,28,.98),rgba(10,13,17,.94));
    box-shadow:0 15px 36px rgba(0,0,0,.24);
    isolation:isolate;
  }

  html.story-engine-ready .performance-scroll.mobile-native-story .performance-copy {
    position:relative !important;
    inset:auto !important;
    display:none !important;
    width:100% !important;
    height:100% !important;
    min-height:0 !important;
    justify-content:flex-start !important;
    opacity:0 !important;
    visibility:hidden !important;
    transform:none !important;
    filter:none !important;
    overflow:hidden !important;
  }

  html.story-engine-ready .performance-scroll.mobile-native-story .performance-copy[hidden] {
    display:none !important;
  }

  html.story-engine-ready .performance-scroll.mobile-native-story .performance-copy.active:not([hidden]) {
    display:flex !important;
    opacity:1 !important;
    visibility:visible !important;
    animation:pgPerformanceCopyIn .34s cubic-bezier(.2,.8,.2,1) both;
  }

  html.story-engine-ready .performance-scroll.mobile-native-story .performance-copy small {
    flex:0 0 auto;
    font-size:.63rem !important;
    line-height:1.2 !important;
  }

  html.story-engine-ready .performance-scroll.mobile-native-story .performance-copy h2 {
    flex:0 0 auto;
    max-width:none !important;
    margin:6px 0 7px !important;
    font-size:clamp(1.48rem,6.7vw,2.12rem) !important;
    line-height:.98 !important;
    letter-spacing:-.045em !important;
    text-wrap:balance;
  }

  html.story-engine-ready .performance-scroll.mobile-native-story .performance-copy p {
    display:-webkit-box !important;
    overflow:hidden !important;
    max-width:none !important;
    margin:0 !important;
    color:var(--muted-strong) !important;
    font-size:clamp(.72rem,2.7vw,.84rem) !important;
    line-height:1.32 !important;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:3;
  }

  html.story-engine-ready .performance-scroll.mobile-native-story .performance-dots {
    z-index:15 !important;
    left:15px !important;
    bottom:13px !important;
  }

  html.story-engine-ready .performance-scroll.mobile-native-story .performance-stage {
    align-self:stretch !important;
    width:100% !important;
    height:auto !important;
    min-height:0 !important;
    max-height:none !important;
    overflow:visible !important;
  }
}

@keyframes pgPerformanceCopyIn {
  from { opacity:0; transform:translate3d(0,10px,0); }
  to { opacity:1; transform:translate3d(0,0,0); }
}

@media (max-width:420px) {
  html.story-engine-ready .performance-scroll.mobile-native-story .performance-layout {
    grid-template-rows:166px minmax(0,1fr) !important;
    gap:6px !important;
  }
  html.story-engine-ready .performance-scroll.mobile-native-story .performance-copy-stack {
    padding:12px 13px 29px !important;
  }
  html.story-engine-ready .performance-scroll.mobile-native-story .performance-copy h2 {
    font-size:clamp(1.36rem,6.55vw,1.86rem) !important;
  }
  html.story-engine-ready .performance-scroll.mobile-native-story .performance-copy p {
    font-size:clamp(.68rem,2.55vw,.78rem) !important;
    -webkit-line-clamp:2;
  }
  html.story-engine-ready .performance-scroll.mobile-native-story .performance-dots {
    left:13px !important;
    bottom:11px !important;
  }
}

@media (max-width:960px) and (max-height:700px), (pointer:coarse) and (max-height:700px) {
  html.story-engine-ready .performance-scroll.mobile-native-story .performance-layout {
    grid-template-rows:142px minmax(0,1fr) !important;
    padding-top:calc(var(--header-height) + env(safe-area-inset-top,0px) + 4px) !important;
  }
  html.story-engine-ready .performance-scroll.mobile-native-story .performance-copy-stack {
    padding:10px 12px 27px !important;
  }
  html.story-engine-ready .performance-scroll.mobile-native-story .performance-copy h2 {
    margin:4px 0 5px !important;
    font-size:clamp(1.22rem,5.8vw,1.62rem) !important;
  }
  html.story-engine-ready .performance-scroll.mobile-native-story .performance-copy p {
    font-size:.66rem !important;
    -webkit-line-clamp:2;
  }
}

@media (prefers-reduced-motion:reduce) {
  html.story-engine-ready .performance-scroll.mobile-native-story .performance-copy.active:not([hidden]) {
    animation:none !important;
  }
}


/* ========================================================================== 
   S24 SECOND STORY BOTTOM-DOCK FIX V7
   The second presentation is docked to the lower viewport edge on touch
   devices. Its stage is clipped and the device is bottom-aligned, so no part
   of the animation can rise into or cover the chapter copy above it.
   ========================================================================== */
@media (max-width:960px), (pointer:coarse) {
  html.story-engine-ready .performance-scroll.mobile-native-story .performance-layout {
    grid-template-rows:clamp(188px,26svh,226px) minmax(0,1fr) !important;
    gap:12px !important;
    padding-bottom:env(safe-area-inset-bottom,0px) !important;
  }

  html.story-engine-ready .performance-scroll.mobile-native-story .performance-copy-stack {
    position:relative !important;
    z-index:30 !important;
    height:100% !important;
    overflow:hidden !important;
    background:linear-gradient(145deg,#15181d 0%,#0a0d11 100%) !important;
    box-shadow:0 16px 38px rgba(0,0,0,.34) !important;
  }

  html.story-engine-ready .performance-scroll.mobile-native-story .performance-stage {
    position:relative !important;
    z-index:2 !important;
    align-self:end !important;
    width:100% !important;
    height:100% !important;
    min-height:0 !important;
    margin:0 !important;
    overflow:hidden !important;
    transform:none !important;
    contain:layout paint !important;
  }

  html.story-engine-ready .performance-scroll.mobile-native-story .performance-device {
    top:auto !important;
    bottom:max(2px,env(safe-area-inset-bottom,0px)) !important;
    left:50% !important;
    width:min(94%,500px) !important;
    height:min(430px,calc(100% - 4px)) !important;
    max-height:calc(100% - 4px) !important;
    padding:13px !important;
    border-radius:28px !important;
    transform:translateX(-50%) rotateY(0deg) rotateX(0deg) !important;
  }

  html.story-engine-ready .performance-scroll.mobile-native-story .performance-ring {
    top:auto !important;
    bottom:-34% !important;
    transform:translateX(-50%) scale(calc(.76 + var(--perf-p) * .12)) !important;
  }

  html.story-engine-ready .performance-scroll.mobile-native-story .performance-mascot {
    right:-145px !important;
    bottom:-155px !important;
  }

  html.story-engine-ready .performance-scroll.mobile-native-story .performance-float {
    display:none !important;
  }
}

@media (max-width:420px) {
  html.story-engine-ready .performance-scroll.mobile-native-story .performance-layout {
    grid-template-rows:clamp(180px,25svh,210px) minmax(0,1fr) !important;
    gap:10px !important;
  }

  html.story-engine-ready .performance-scroll.mobile-native-story .performance-device {
    width:min(96%,440px) !important;
    height:min(405px,calc(100% - 2px)) !important;
    max-height:calc(100% - 2px) !important;
  }
}

@media (max-width:960px) and (max-height:700px), (pointer:coarse) and (max-height:700px) {
  html.story-engine-ready .performance-scroll.mobile-native-story .performance-layout {
    grid-template-rows:156px minmax(0,1fr) !important;
    gap:8px !important;
  }

  html.story-engine-ready .performance-scroll.mobile-native-story .performance-device {
    height:min(350px,calc(100% - 2px)) !important;
  }
}
