/* Coopy website. V3 "phantom" palette, dark only: night canvas, sun gold for actions, live blue for state,
   phantom white for text. Same tokens as the app (docs/PROJECT_CONTEXT.md, Design direction). */

@font-face { font-family: "Reddit Sans"; src: url("/assets/fonts/reddit-sans.woff2") format("woff2"); font-weight: 200 900; font-display: swap; }
@font-face { font-family: "Reddit Mono"; src: url("/assets/fonts/reddit-mono.woff2") format("woff2"); font-weight: 200 900; font-display: swap; }
@font-face { font-family: "Unbounded"; src: url("/assets/fonts/unbounded-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
  --night: #0B0E14;
  --night-2: #0F131C;
  --card: #131824;
  --card-2: #1A2030;
  --card-3: #222A3D;
  --line: rgba(247, 245, 238, .10);
  --line-2: rgba(247, 245, 238, .18);
  --ink: #F7F5EE;
  --mute: #A9B0BF;
  --gold: #F5B82E;
  --gold-soft: rgba(245, 184, 46, .14);
  --blue: #2E9BFF;
  --blue-soft: rgba(46, 155, 255, .14);
  --ember: #FF7A3D;
  --danger: #FF6B6B;
  --radius: 16px;
  --sans: "Reddit Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Reddit Mono", ui-monospace, Menlo, monospace;
  --display: "Unbounded", "Reddit Sans", system-ui, sans-serif;
  --wrap: 1160px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; overflow-x: clip; }
body { margin: 0; background: var(--night); color: var(--ink); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: #6CB8FF; }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -.02em; }
h1, h2 { font-family: var(--display); font-weight: 800; }
h3 { font-weight: 700; font-size: 19px; letter-spacing: 0; }
p { margin: 0 0 1em; }
.gold { color: var(--gold); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
svg use, .sprite symbol { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.skip-link { position: absolute; left: 12px; top: -60px; background: var(--gold); color: var(--night); padding: 8px 14px; border-radius: 999px; font-weight: 700; z-index: 20; }
.skip-link:focus { top: 12px; }

/* --- Brand ----------------------------------------------------------------------------------------- */
.mark { width: 36px; height: 36px; flex: none; }
.mark-c { fill: none; stroke: var(--gold); stroke-width: 14; stroke-linecap: round; }
.mark-dot { fill: var(--blue); }
.wordmark { font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: -.03em; color: var(--ink); line-height: 1; }

/* --- Header ---------------------------------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 14px max(20px, calc((100% - var(--wrap)) / 2)); background: rgba(11, 14, 20, .82); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.site-header nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.site-header nav a { color: var(--mute); text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 999px; }
.site-header nav a:hover { color: var(--ink); background: var(--card); }
.site-header nav .nav-cta { color: var(--night); background: var(--gold); }
.site-header nav .nav-cta:hover { color: var(--night); background: #FFC94F; }

/* --- Buttons --------------------------------------------------------------------------------------- */
.button-gold, .button-quiet, .button-danger, .button-google, .store-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; font: 700 16px/1 var(--sans); text-decoration: none; cursor: pointer; border: 0; }
.button-gold { background: var(--gold); color: var(--night); box-shadow: 0 6px 24px rgba(245, 184, 46, .25); }
.button-gold:hover { background: #FFC94F; color: var(--night); }
.button-quiet { background: var(--card-2); color: var(--ink); border: 1px solid var(--line-2); }
.button-quiet:hover { background: var(--card-3); color: var(--ink); }
.button-danger { background: transparent; color: var(--danger); border: 1px solid rgba(255, 107, 107, .45); }
.button-danger:hover { background: rgba(255, 107, 107, .1); }
.button-google { background: var(--ink); color: #1F1F1F; width: 100%; }
.button-wide { width: 100%; }
button:disabled { opacity: .5; cursor: not-allowed; }
.is-busy { position: relative; color: transparent !important; }
.is-busy::after { content: ""; position: absolute; width: 18px; height: 18px; border: 2px solid var(--night); border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.button-quiet.is-busy::after, .button-danger.is-busy::after { border-color: var(--ink); border-right-color: transparent; }
@keyframes spin { to { transform: rotate(360deg); } }

.store-links { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.store-badge { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; border-radius: 10px; }
.store-badge img { height: 53px; width: auto; }
.store-badge.is-soon img { opacity: .55; }
.store-badge small { font-size: 12px; color: var(--mute); }
.store-button { background: #000; color: var(--ink); border: 1px solid var(--line-2); border-radius: 10px; min-height: 53px; }
.store-button:hover { color: var(--ink); border-color: var(--mute); }
.store-button.is-soon { color: var(--mute); cursor: default; }

/* --- Sections -------------------------------------------------------------------------------------- */
main { display: block; }
.section { max-width: var(--wrap); margin: 0 auto; padding: 96px 20px; }
.section + .section { border-top: 1px solid var(--line); }
.section-title { font-size: clamp(30px, 4.2vw, 46px); margin-bottom: 18px; max-width: 820px; }
.eyebrow { display: block; font: 700 13px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin-bottom: 14px; }
.section-lead { color: var(--mute); font-size: 19px; max-width: 720px; }
.lead { color: var(--mute); font-size: 20px; max-width: 560px; }
.fine { color: var(--mute); font-size: 14px; }

/* --- Hero ------------------------------------------------------------------------------------------ */
.hero { position: relative; max-width: var(--wrap); margin: 0 auto; padding: 88px 20px 96px; display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; }
.hero-glow { position: absolute; inset: -120px -20% auto auto; width: 720px; height: 720px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(245, 184, 46, .16), transparent 70%), radial-gradient(closest-side at 70% 60%, rgba(46, 155, 255, .14), transparent 70%); filter: blur(10px); }
.hero h1 { font-size: clamp(40px, 6vw, 72px); margin-bottom: 22px; }
.hero-text { position: relative; }
.download { margin-top: 34px; }
.download-note { margin-top: 14px; color: var(--mute); font-size: 15px; }

/* --- Request cards (live feed, overlay preview) ------------------------------------------------------ */
.live { position: relative; background: linear-gradient(180deg, var(--card), var(--night-2)); border: 1px solid var(--line); border-radius: 24px; padding: 20px; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.live-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.live-head h2 { font-size: 18px; display: flex; align-items: center; gap: 10px; }
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 0 rgba(46, 155, 255, .6); animation: ping 2s infinite; }
.live-status { margin: 0; color: var(--mute); font-size: 13px; text-align: right; }
.live-foot { margin: 14px 0 0; color: var(--mute); font-size: 13px; }
.live-list, .ov-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.live.is-live .req { animation: rise .5s both; }
.live.is-live .req:nth-child(2) { animation-delay: .08s; } .live.is-live .req:nth-child(3) { animation-delay: .16s; } .live.is-live .req:nth-child(4) { animation-delay: .24s; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(46, 155, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(46, 155, 255, 0); } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }

.req { background: var(--card-2); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: grid; gap: 7px; font-size: 14px; }
.req.is-host { border-color: rgba(245, 184, 46, .55); box-shadow: 0 0 0 1px rgba(245, 184, 46, .2), 0 0 24px rgba(245, 184, 46, .12); }
.req-top, .req-mid, .req-bot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.req-name { font-weight: 700; color: var(--ink); }
.req-game { color: var(--mute); font-weight: 600; }
.req-plat { font: 700 11px/1 var(--mono); color: var(--mute); border: 1px solid var(--line-2); border-radius: 5px; padding: 3px 4px; }
.req-status, .req-host { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: var(--card-3); border-radius: 999px; padding: 4px 9px; }
.req-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 8px var(--blue); }
.req-host { color: var(--night); background: var(--gold); }
.req-mid strong { font-size: 16px; font-weight: 700; overflow-wrap: anywhere; }
.req-type { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 4px 10px 4px 7px; white-space: nowrap; }
.req-type svg { width: 15px; height: 15px; }
.is-boss { color: var(--gold); background: var(--gold-soft); }
.is-area { color: var(--blue); background: var(--blue-soft); }
.is-pvp { color: var(--ember); background: rgba(255, 122, 61, .14); }
.req-bot { color: var(--mute); font-size: 13px; }
.req-offers { display: inline-flex; align-items: center; gap: 5px; }
.req-offers svg { width: 15px; height: 15px; }
.req-time { margin-left: auto; font-variant-numeric: tabular-nums; }
.req-time.is-soon { color: var(--ember); }
.code-chip { display: inline-flex; align-items: center; gap: 6px; font: 600 14px/1 var(--mono); color: var(--gold); border: 1.5px dashed rgba(245, 184, 46, .7); border-radius: 999px; padding: 5px 11px 5px 8px; }
.code-chip svg { width: 15px; height: 15px; }
.code-chip.big { font-size: 22px; padding: 10px 18px 10px 14px; }
.code-chip.big svg { width: 22px; height: 22px; }

/* --- Closed test ---------------------------------------------------------------------------------- */
.platform-note { color: var(--mute); font-size: 15px; font-weight: 600; }
.beta-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin: 36px 0 22px; }
.beta-card { background: linear-gradient(180deg, var(--card), var(--night-2)); border: 1px solid var(--line); border-radius: 22px; padding: 28px; display: flex; flex-direction: column; align-items: flex-start; }
.beta-platform { margin: 0 0 6px; font: 700 13px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--blue); }
.beta-card h3 { font-size: 22px; margin-bottom: 14px; }
.beta-card ol { color: var(--mute); padding-left: 20px; margin: 0 0 24px; flex: 1; }
.beta-card li { margin-bottom: 8px; }
.beta-card strong { color: var(--ink); }
.beta-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.button-quiet.is-soon { color: var(--mute); cursor: default; }

/* --- Modes ----------------------------------------------------------------------------------------- */
.mode-list { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.mode-list li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.mode-list p { color: var(--mute); margin: 8px 0 0; }
.mode-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px; }
.mode-icon svg { width: 26px; height: 26px; }

/* --- Tour ------------------------------------------------------------------------------------------ */
.tour { margin-top: 44px; display: grid; grid-template-columns: 1fr 340px; gap: 56px; align-items: center; }
.tour-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.tour-step { width: 100%; text-align: left; display: grid; grid-template-columns: 44px 1fr; gap: 16px; position: relative; overflow: hidden;
  background: transparent; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; color: var(--mute); font: inherit; cursor: pointer; transition: background .3s, border-color .3s, color .3s; }
.tour-step:hover { border-color: var(--line-2); }
.step-num { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font: 800 18px/1 var(--display); color: var(--mute); background: var(--card); border: 1px solid var(--line-2); transition: .3s; }
.step-text strong { display: block; color: var(--ink); font-size: 19px; margin-bottom: 4px; }
.step-text span { font-size: 15px; }
.step-bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; }
.tour-step.is-active { background: var(--card); border-color: rgba(245, 184, 46, .4); color: var(--ink); }
.tour-step.is-active .step-num { background: var(--gold); color: var(--night); border-color: var(--gold); }
.tour-step.is-active .step-bar { animation: fill var(--step-ms, 7s) linear both; }
.tour.is-paused .step-bar, .tour.is-paused .scene * { animation-play-state: paused !important; }
@keyframes fill { to { transform: scaleX(1); } }

.phone { position: relative; width: 320px; aspect-ratio: 9 / 18.5; border-radius: 44px; padding: 12px; background: #05070B; border: 1px solid var(--line-2);
  box-shadow: 0 40px 90px rgba(0, 0, 0, .6), 0 0 0 6px #121622, 0 0 80px rgba(46, 155, 255, .10); justify-self: center; }
.phone::before { content: ""; position: absolute; top: 22px; left: 50%; width: 84px; height: 22px; border-radius: 999px; background: #000; transform: translateX(-50%); z-index: 3; }
.phone-screen { position: relative; height: 100%; border-radius: 34px; overflow: hidden; background: radial-gradient(120% 60% at 80% 0%, rgba(46, 155, 255, .10), transparent 60%), var(--night); }
.scene { position: absolute; inset: 0; padding: 58px 16px 16px; font-size: 12px; }
.tour.is-ready .scene { visibility: hidden; }
.tour.is-ready .scene.is-active { visibility: visible; }
.tour:not(.is-ready) .scene ~ .scene { display: none; }
.scene * { animation-duration: var(--step-ms, 7s); animation-fill-mode: both; animation-timing-function: cubic-bezier(.3, .7, .3, 1); }
.tour.is-ready .scene:not(.is-active) * { animation: none !important; }

.app-title { display: flex; align-items: center; gap: 6px; font: 800 18px/1 var(--display); margin: 0 0 14px; }
.app-title .mini-mark { width: 20px; height: 20px; }
.app-title .bell { margin-left: auto; color: var(--mute); }
.app-title .bell svg { width: 20px; height: 20px; display: block; }
.app-label { margin: 10px 0 6px; color: var(--mute); font-size: 11px; font-weight: 600; }
.pill-row, .chip-row, .btn-row { display: flex; gap: 6px; }
.pill { flex: 1; text-align: center; padding: 7px 0; border-radius: 999px; background: var(--card-2); color: var(--mute); font-weight: 700; font-size: 11px; }
.field { position: relative; background: var(--card); border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; font-weight: 600; }
.chev { position: absolute; right: 12px; top: 50%; width: 7px; height: 7px; border: solid var(--mute); border-width: 0 2px 2px 0; transform: translateY(-70%) rotate(45deg); }
.field-boss { height: 38px; }
.field-boss span { position: absolute; left: 12px; top: 10px; }
.field-boss .ph { color: var(--mute); opacity: 0; }
.menu { position: absolute; left: 16px; right: 16px; top: 306px; list-style: none; margin: 0; padding: 6px; background: var(--card-3); border: 1px solid var(--line-2); border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .55); opacity: 0; z-index: 2; }
.menu li { padding: 9px 10px; border-radius: 8px; font-weight: 600; }
.code-row { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.code-row .code-chip { font-size: 12px; padding: 4px 9px 4px 6px; }
.code-row .hint { color: var(--mute); font-size: 10px; }
.btn-gold, .btn-outline, .btn-text { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 999px; font-weight: 800; font-size: 13px; padding: 10px 14px; }
.btn-gold { background: var(--gold); color: var(--night); }
.btn-gold svg, .btn-outline svg { width: 15px; height: 15px; }
.btn-outline { border: 1px solid var(--line-2); color: var(--ink); }
.btn-text { color: var(--mute); }
.btn-post { position: absolute; left: 16px; right: 16px; bottom: 26px; }
.toast { position: absolute; left: 16px; right: 16px; bottom: 82px; background: var(--ink); color: var(--night); font-weight: 700; padding: 10px 14px; border-radius: 10px; }
.callout { position: absolute; z-index: 4; background: var(--blue); color: #fff; font: 800 11px/1 var(--sans); padding: 7px 11px; border-radius: 999px; transform: rotate(-4deg); box-shadow: 0 8px 20px rgba(46, 155, 255, .35); white-space: nowrap; }
.c-post { right: 10px; top: 282px; }
.c-offer { left: 12px; bottom: 92px; transform: rotate(-5deg); }
.c-play { right: 12px; top: 282px; transform: rotate(4deg); }

/* post: pick a type, open the boss list, pick, get a code, post */
.p-boss { background: var(--gold); color: var(--night); animation-name: pill-pick; }
.field-boss .ph { animation-name: ph-out; }
.field-boss .val { animation-name: val-in; }
.scene-post .menu { animation-name: menu-show; }
.menu .pick { animation-name: row-pick; }
.scene-post .code-row { animation-name: code-in; }
.scene-post .code-chip { animation-name: glow; }
.btn-post { animation-name: press-70; }
.toast { animation-name: toast-in; }
.c-post { animation-name: callout-20; }
@keyframes pill-pick { 0%, 9% { background: var(--card-2); color: var(--mute); transform: scale(1); } 11% { transform: scale(.94); } 14%, 100% { background: var(--gold); color: var(--night); transform: scale(1); } }
@keyframes ph-out { 0%, 42% { opacity: 1; } 44%, 100% { opacity: 0; } }
@keyframes val-in { 0%, 42% { opacity: 0; transform: translateY(4px); } 46%, 100% { opacity: 1; transform: none; } }
@keyframes menu-show { 0%, 18% { opacity: 0; transform: translateY(-6px) scale(.97); } 22%, 40% { opacity: 1; transform: none; } 44%, 100% { opacity: 0; transform: translateY(-6px) scale(.97); } }
@keyframes row-pick { 0%, 30% { background: transparent; } 33%, 100% { background: var(--gold-soft); color: var(--gold); } }
@keyframes code-in { 0%, 50% { opacity: 0; transform: translateY(6px); } 56%, 100% { opacity: 1; transform: none; } }
@keyframes glow { 0%, 54% { box-shadow: none; } 62% { box-shadow: 0 0 22px rgba(255, 122, 61, .7); } 100% { box-shadow: 0 0 10px rgba(255, 122, 61, .35); } }
@keyframes press-70 { 0%, 68% { transform: scale(1); } 71% { transform: scale(.94); filter: brightness(1.15); } 75%, 100% { transform: scale(1); } }
@keyframes toast-in { 0%, 74% { opacity: 0; transform: translateY(10px); } 79%, 100% { opacity: 1; transform: none; } }
@keyframes callout-20 { 0%, 18% { opacity: 0; transform: rotate(-4deg) scale(.6); } 22%, 46% { opacity: 1; transform: rotate(-4deg) scale(1); } 50%, 100% { opacity: 0; transform: rotate(-4deg) scale(.9); } }

/* offer: a new card arrives, then one tap on Offer help */
.gchip { padding: 6px 10px; border-radius: 999px; background: var(--card-2); color: var(--mute); font-weight: 700; font-size: 10px; white-space: nowrap; }
.gchip.on { background: var(--blue-soft); color: var(--blue); }
.chip-row { margin-bottom: 10px; overflow: hidden; }
.mcard { background: var(--card-2); border: 1px solid var(--line); border-radius: 14px; padding: 11px 12px; margin-top: 10px; display: grid; gap: 6px; }
.mc-who { display: flex; align-items: center; gap: 7px; }
.mc-who .open { margin-left: auto; font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.mc-what { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 12px; flex-wrap: wrap; }
.mc-what .req-type { font-size: 10px; padding: 3px 8px 3px 5px; }
.mc-what .req-type svg { width: 12px; height: 12px; }
.mc-meta { color: var(--mute); font-size: 11px; }
.mc-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.mc-chips span { font-size: 10px; background: var(--card-3); border-radius: 6px; padding: 4px 7px; }
.ava { width: 22px; height: 22px; border-radius: 50%; flex: none; background: radial-gradient(circle at 50% 45%, var(--gold) 0 30%, transparent 32%), var(--card-3); box-shadow: 0 0 0 2px var(--card-3); }
.ava.big { width: 64px; height: 64px; box-shadow: 0 0 0 4px var(--gold); }
.mcard-new { overflow: hidden; animation-name: card-arrive; }
.btn-offer { position: relative; height: 38px; margin-top: 4px; animation-name: offer-morph; }
.btn-offer .t1, .btn-offer .t2, .btn-award .t1, .btn-award .t2 { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 6px; }
.btn-offer .t1 { opacity: 0; animation-name: t1-out-48; }
.btn-offer .t2 { animation-name: t2-in-50; }
.c-offer { animation-name: callout-30; }
@keyframes card-arrive { 0%, 8% { max-height: 0; opacity: 0; padding-top: 0; padding-bottom: 0; margin-top: 0; border-width: 0; } 16%, 100% { max-height: 90px; opacity: 1; } }
@keyframes offer-morph { 0%, 44% { background: var(--gold); color: var(--night); transform: scale(1); } 46% { transform: scale(.94); } 50%, 100% { background: transparent; color: var(--gold); box-shadow: inset 0 0 0 1.5px var(--gold); transform: scale(1); } }
@keyframes t1-out-48 { 0%, 47% { opacity: 1; } 49%, 100% { opacity: 0; } }
@keyframes t2-in-50 { 0%, 49% { opacity: 0; transform: scale(.8); } 53%, 100% { opacity: 1; transform: none; } }
@keyframes callout-30 { 0%, 26% { opacity: 0; transform: rotate(-5deg) scale(.6); } 30%, 52% { opacity: 1; transform: rotate(-5deg) scale(1); } 56%, 100% { opacity: 0; transform: rotate(-5deg) scale(.9); } }

/* play: players who offered pop in with their in-game IDs */
.seg { display: flex; background: var(--card); border-radius: 999px; padding: 3px; margin-bottom: 4px; }
.seg span { flex: 1; text-align: center; padding: 7px 0; border-radius: 999px; font-weight: 700; font-size: 11px; color: var(--mute); }
.seg .on { background: var(--gold); color: var(--night); }
.players { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pl { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 12px; border: 1px solid rgba(245, 184, 46, .5); background: var(--gold-soft); box-shadow: 0 0 14px rgba(245, 184, 46, .15); }
.pl b { display: block; font-size: 12px; }
.pl small { color: var(--mute); font: 500 10px/1.2 var(--mono); }
.pl1 { animation-name: pop-15; } .pl2 { animation-name: pop-35; } .pl3 { animation-name: pop-55; }
.breathe { animation: breathe 2.4s ease-in-out infinite !important; }
.c-play { animation-name: callout-65; }
@keyframes pop-15 { 0%, 14% { opacity: 0; transform: scale(.7); } 19% { opacity: 1; transform: scale(1.04); } 23%, 100% { opacity: 1; transform: none; } }
@keyframes pop-35 { 0%, 34% { opacity: 0; transform: scale(.7); } 39% { opacity: 1; transform: scale(1.04); } 43%, 100% { opacity: 1; transform: none; } }
@keyframes pop-55 { 0%, 54% { opacity: 0; transform: scale(.7); } 59% { opacity: 1; transform: scale(1.04); } 63%, 100% { opacity: 1; transform: none; } }
@keyframes breathe { 50% { box-shadow: 0 0 18px rgba(255, 122, 61, .6); } }
@keyframes callout-65 { 0%, 62% { opacity: 0; transform: rotate(4deg) scale(.6); } 67%, 100% { opacity: 1; transform: rotate(4deg) scale(1); } }

/* award: conclude, then the Trusted Ally popup */
.btn-row { justify-content: flex-end; margin-top: 6px; }
.btn-conclude { animation-name: press-15; }
.award { position: absolute; inset: 110px 12px 18px; background: var(--card); border: 1px solid var(--line-2); border-radius: 22px; padding: 18px 14px; text-align: center;
  box-shadow: 0 0 0 999px rgba(5, 7, 11, .6), 0 20px 50px rgba(0, 0, 0, .6); animation-name: award-in; }
.burst { position: relative; width: 150px; height: 150px; margin: 0 auto 6px; display: grid; place-items: center; }
.burst::before { content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: repeating-conic-gradient(rgba(245, 184, 46, .35) 0 8deg, transparent 8deg 22deg); -webkit-mask: radial-gradient(circle, #000 30%, transparent 70%); mask: radial-gradient(circle, #000 30%, transparent 70%);
  animation: turn 14s linear infinite; }
.medal { position: absolute; right: 26px; bottom: 26px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: #fff; box-shadow: 0 0 0 3px var(--card), 0 6px 16px rgba(46, 155, 255, .5); animation-name: medal-pop; }
.medal svg { width: 22px; height: 22px; }
.award-name { font: 800 20px/1.1 var(--display); color: var(--gold); margin: 0 0 6px; }
.award-who { margin: 0 0 4px; font-size: 12px; }
.award-where { color: var(--mute); font-size: 11px; margin: 0 0 14px; }
.award .btn-row { justify-content: center; }
.btn-award { position: relative; min-width: 160px; height: 38px; animation-name: offer-morph-70; }
.btn-award .t1 { opacity: 0; animation-name: t1-out-70; }
.btn-award .t2 { animation-name: t2-in-72; }
@keyframes turn { to { transform: rotate(360deg); } }
@keyframes press-15 { 0%, 13% { transform: scale(1); } 16% { transform: scale(.92); } 20%, 100% { transform: scale(1); } }
@keyframes award-in { 0%, 22% { opacity: 0; transform: scale(.85); } 28%, 100% { opacity: 1; transform: none; } }
@keyframes medal-pop { 0%, 32% { opacity: 0; transform: scale(0) rotate(-30deg); } 37% { opacity: 1; transform: scale(1.25) rotate(8deg); } 42%, 100% { opacity: 1; transform: none; } }
@keyframes offer-morph-70 { 0%, 66% { background: var(--gold); color: var(--night); transform: scale(1); } 68% { transform: scale(.94); } 72%, 100% { background: transparent; color: var(--gold); box-shadow: inset 0 0 0 1.5px var(--gold); transform: scale(1); } }
@keyframes t1-out-70 { 0%, 69% { opacity: 1; } 71%, 100% { opacity: 0; } }
@keyframes t2-in-72 { 0%, 71% { opacity: 0; transform: scale(.8); } 75%, 100% { opacity: 1; transform: none; } }

/* --- Screens --------------------------------------------------------------------------------------- */
.screens { list-style: none; margin: 36px -20px 0; padding: 4px 20px 18px; display: grid; grid-auto-flow: column; grid-auto-columns: 230px; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-color: var(--card-3) transparent; }
.screens li { scroll-snap-align: start; }
.screens img { border-radius: 18px; border: 1px solid var(--line); }

/* --- Streamers ------------------------------------------------------------------------------------- */
.streamers { display: grid; grid-template-columns: .95fr 1.05fr; gap: 56px; align-items: center; }
.streamers-text p { color: var(--mute); font-size: 18px; }
.ticks { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 32px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--gold-soft);
  box-shadow: inset 0 0 0 1.5px var(--gold); }
.ticks li::after { content: ""; position: absolute; left: 7px; top: 8px; width: 5px; height: 9px; border: solid var(--gold); border-width: 0 2px 2px 0; transform: rotate(45deg); }

.stream-frame { position: relative; aspect-ratio: 16 / 10; border-radius: 18px; overflow: hidden; border: 1px solid var(--line-2); box-shadow: 0 40px 90px rgba(0, 0, 0, .55); background: #0A0C12; }
.stream-scene { position: absolute; inset: 0; background: linear-gradient(180deg, #2A1B3D 0%, #6B3A3A 46%, #C9783A 62%, #1B1420 63%); }
.stream-scene .sun { position: absolute; left: 30%; top: 30%; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, #FFE3A3, #F5B82E 55%, transparent 72%); filter: blur(2px); opacity: .9; }
.stream-scene .ridge { position: absolute; left: -10%; right: -10%; bottom: 0; background: #120E18; }
.stream-scene .r1 { height: 42%; clip-path: polygon(0 60%, 12% 40%, 24% 55%, 38% 25%, 52% 50%, 66% 30%, 80% 52%, 92% 38%, 100% 50%, 100% 100%, 0 100%); opacity: .7; }
.stream-scene .r2 { height: 30%; background: #0A080E; clip-path: polygon(0 50%, 18% 30%, 30% 46%, 46% 20%, 62% 44%, 78% 28%, 100% 46%, 100% 100%, 0 100%); }
.stream-scene .figure { position: absolute; left: 36%; bottom: 20%; width: 14px; height: 40px; border-radius: 7px 7px 2px 2px; background: #0A080E; box-shadow: 0 0 22px rgba(245, 184, 46, .5); }
.rec { position: absolute; left: 14px; top: 14px; display: flex; align-items: center; gap: 6px; font: 800 11px/1 var(--sans); letter-spacing: .1em; background: #E5243B; color: #fff; padding: 5px 9px; border-radius: 6px; }
.rec i { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.ov { position: absolute; right: 12px; top: 12px; width: 46%; display: grid; gap: 6px; }
.ov-head { display: flex; align-items: center; gap: 8px; background: rgba(11, 14, 20, .86); border: 1px solid var(--line-2); border-radius: 12px; padding: 7px 10px; font-size: 11px; }
.ov-head .mini-mark { width: 20px; height: 20px; }
.ov-head b { display: block; font-size: 12px; }
.ov-head small { color: var(--mute); }
.ov-head em { font: normal 600 11px var(--mono); color: var(--gold); }
.ov-card { display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; column-gap: 8px; row-gap: 2px; align-items: center; background: rgba(19, 24, 36, .9); border: 1px solid var(--line); border-radius: 12px; padding: 7px 10px; font-size: 11px; animation: ov-in 9s infinite both; }
.ov-card b { grid-column: 1 / 3; }
.ov-card .req-type { font-size: 9px; padding: 2px 7px 2px 4px; }
.ov-card .req-type svg { width: 11px; height: 11px; }
.ov-target { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ov-join { grid-row: 1 / 3; grid-column: 3; color: var(--blue); font-weight: 800; font-size: 10px; }
.o1 { border-color: rgba(245, 184, 46, .6); }
.o2 { animation-delay: .6s; } .o3 { animation-delay: 3.2s; }
@keyframes ov-in { 0% { opacity: 0; transform: translateX(16px); } 6%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.chat { position: absolute; left: 12px; bottom: 12px; width: 44%; display: grid; gap: 4px; font-size: 11px; }
.chat p { margin: 0; background: rgba(0, 0, 0, .55); border-radius: 8px; padding: 5px 8px; animation: ov-in 9s infinite both; }
.chat b { color: var(--blue); }
.chat .m1 { animation-delay: 1.4s; } .chat .m2 { animation-delay: 3.6s; } .chat .m3 { animation-delay: 5.4s; }

/* --- Trust and games ------------------------------------------------------------------------------- */
.trust-grid { margin: 36px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.trust-grid div { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.trust-grid dt { font-weight: 800; margin-bottom: 6px; }
.trust-grid dd { margin: 0; color: var(--mute); font-size: 15px; }
.game-list { list-style: none; padding: 0; margin: 32px 0 26px; display: flex; flex-wrap: wrap; gap: 10px; }
.game-list li { background: var(--blue-soft); color: #BFE0FF; border: 1px solid rgba(46, 155, 255, .3); border-radius: 999px; padding: 9px 16px; font-weight: 700; font-size: 15px; }
.game-list small { color: var(--mute); font-weight: 500; margin-left: 4px; }

.final-cta { text-align: center; padding-bottom: 120px; }
.final-cta h2 { font-size: clamp(32px, 5vw, 56px); margin-bottom: 32px; }
.final-cta .store-links { justify-content: center; margin-bottom: 26px; }
.final-cta .fine { max-width: 620px; margin: 0 auto; }

/* --- Text pages ------------------------------------------------------------------------------------ */
.page-title { padding: 80px max(20px, calc((100% - var(--wrap)) / 2)) 48px; border-bottom: 1px solid var(--line);
  background: radial-gradient(60% 120% at 100% 0%, rgba(46, 155, 255, .10), transparent 60%), radial-gradient(50% 120% at 0% 0%, rgba(245, 184, 46, .08), transparent 60%); }
.page-title h1 { font-size: clamp(32px, 5vw, 54px); }
.page-title .lead { margin-top: 18px; }
.text-page { padding: 0 max(20px, calc((100% - var(--wrap)) / 2)) 60px; }
.text-intro { padding: 40px 0 8px; color: var(--mute); max-width: 780px; }
.text-intro strong { color: var(--ink); }
.text-section { display: grid; grid-template-columns: 280px 1fr; gap: 40px; padding: 40px 0; border-bottom: 1px solid var(--line); }
.text-section h2 { font-size: 22px; line-height: 1.25; }
.text-body { max-width: 780px; }
.text-body h3 { margin: 26px 0 10px; font-size: 18px; }
.text-body ul, .text-body ol { padding-left: 22px; }
.text-body li { margin-bottom: 8px; }
.table-scroll { overflow-x: auto; margin: 0 0 1em; border: 1px solid var(--line); border-radius: 12px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--line); }
th { background: var(--card); }

/* --- Streamer page --------------------------------------------------------------------------------- */
.streamer-title .eyebrow { margin-bottom: 14px; }
.streamer-app { max-width: var(--wrap); margin: 0 auto; padding: 48px 20px 24px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 28px; }
.panel h2 { font-family: var(--sans); font-weight: 800; letter-spacing: -.01em; font-size: 24px; margin-bottom: 10px; }
.panel > p { color: var(--mute); }
.sign-in { max-width: 460px; margin: 0 auto; }
.or { display: flex; align-items: center; gap: 12px; color: var(--mute); font-size: 13px; margin: 18px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.form { display: grid; gap: 14px; }
.form label, .overlay-options label { display: grid; gap: 6px; font-weight: 600; font-size: 14px; }
input, select { font: 500 16px var(--sans); color: var(--ink); background: var(--night); border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 14px; min-height: 48px; width: 100%; }
input:focus, select:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: transparent; }
input:disabled { opacity: .55; }
.form-error { color: var(--danger); font-size: 14px; margin: 0; min-height: 1px; }
.form-error:empty { display: none; }
.form-hint { color: var(--mute); font-size: 13px; margin: 0; }
.inline-form { grid-template-columns: 1fr auto; align-items: end; }
.inline-form .form-hint, .inline-form .form-error { grid-column: 1 / -1; }
.notice { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px; text-align: center; color: var(--mute); }
.account-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.account-bar p { margin: 0; color: var(--mute); }
.account-bar strong { color: var(--ink); }
.room-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 20px; align-items: start; }
.room-head { display: flex; align-items: center; gap: 12px; justify-content: space-between; }
.room-head h2 { font-family: var(--display); font-size: 26px; margin: 0; overflow-wrap: anywhere; }
.state-pill { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; background: var(--card-3); color: var(--mute); }
.state-pill.is-open { background: var(--blue-soft); color: var(--blue); box-shadow: 0 0 16px rgba(46, 155, 255, .3); }
.room-status { color: var(--mute); margin: 12px 0 16px; }
[data-toggle-room].is-close { background: var(--card-3); color: var(--ink); box-shadow: none; border: 1px solid var(--line-2); }
.room-code { margin: 26px 0; padding: 20px 0; border-block: 1px solid var(--line); display: grid; gap: 10px; justify-items: start; }
.label { margin: 0; font-weight: 700; font-size: 14px; color: var(--mute); }
.room-panel [data-rename] { margin-bottom: 26px; }
.overlay-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 18px 0; }
.overlay-options .check { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; font-weight: 600; }
.overlay-options .check input { width: 20px; height: 20px; min-height: 0; accent-color: var(--gold); }
.copy-row { display: flex; gap: 8px; }
.copy-row input { font: 500 14px var(--mono); }
.obs-steps { color: var(--mute); padding-left: 20px; margin: 18px 0 22px; }
.obs-steps li { margin-bottom: 6px; }
.obs-steps strong { color: var(--ink); }
.overlay-preview { margin-top: 10px; min-height: 160px; padding: 16px; border-radius: 16px; border: 1px dashed var(--line-2);
  background: repeating-conic-gradient(#151a26 0 25%, #10141e 0 50%) 0 0 / 22px 22px; }
.dialog { background: var(--card); color: var(--ink); border: 1px solid var(--line-2); border-radius: 20px; padding: 26px; max-width: 420px; }
.dialog::backdrop { background: rgba(5, 7, 11, .7); }
.dialog h2 { font-family: var(--sans); font-size: 22px; margin-bottom: 10px; }
.dialog p { color: var(--mute); }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.streamer-how .section-title { font-size: 30px; }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 26px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps li { counter-increment: step; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--gold); color: var(--night); font: 800 16px/1 var(--display); margin-bottom: 14px; }
.steps p { color: var(--mute); margin: 8px 0 0; font-size: 15px; }

/* Overlay preview (same rules as overlay.css, scoped) */
.overlay-preview .ov-head { display: flex; align-items: center; gap: 10px; background: rgba(11, 14, 20, .9); border: 1px solid var(--line-2); border-radius: 14px; padding: 10px 12px; margin-bottom: 8px; font-size: 13px; }
.overlay-preview .ov-head .mark { width: 28px; height: 28px; }
.overlay-preview .ov-titles { display: grid; min-width: 0; flex: 1; }
.overlay-preview .ov-room { font-size: 16px; }
.overlay-preview .ov-sub { color: var(--mute); font-size: 11px; }
.overlay-preview .ov-empty { margin: 0; background: rgba(11, 14, 20, .9); border-radius: 12px; padding: 14px; color: var(--mute); text-align: center; }
.overlay-preview.style-clear .ov-head, .overlay-preview.style-clear .req, .overlay-preview.style-clear .ov-empty { background: transparent; border-color: transparent; text-shadow: 0 1px 3px #000, 0 0 8px #000; }

/* --- Footer ---------------------------------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); padding: 48px max(20px, calc((100% - var(--wrap)) / 2)) 56px; color: var(--mute); font-size: 15px; background: var(--night-2); }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.footer-brand .mark { width: 28px; height: 28px; }
.footer-brand .wordmark { font-size: 20px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 20px; }
.site-footer nav a { color: var(--ink); text-decoration: none; }
.site-footer nav a:hover { color: var(--gold); }
.site-footer .fine { max-width: 820px; font-size: 13px; }

/* --- Responsive ------------------------------------------------------------------------------------ */
@media (max-width: 980px) {
  .hero, .streamers, .room-grid, .beta-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 56px; gap: 40px; }
  .tour { grid-template-columns: 1fr; gap: 32px; }
  .tour .phone { order: -1; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .text-section { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .site-header { flex-wrap: wrap; gap: 10px; }
  .site-header nav { justify-content: flex-start; margin: 0 -12px; }
  .site-header nav a { padding: 6px 10px; font-size: 14px; }
  .section { padding: 64px 20px; }
  .mode-list, .steps { grid-template-columns: 1fr; }
  .phone { width: 290px; }
  .tour-step { padding: 14px; grid-template-columns: 36px 1fr; gap: 12px; }
  .step-num { width: 36px; height: 36px; font-size: 15px; }
  .step-text span { display: none; }
  .tour-step.is-active .step-text span { display: block; }
  .overlay-options, .inline-form { grid-template-columns: 1fr; }
  .ov { width: 58%; }
  .chat { display: none; }
}
@media (max-width: 460px) {
  .trust-grid { grid-template-columns: 1fr; }
  .site-header nav a:not(.nav-cta) { display: none; }
  .site-header { flex-wrap: nowrap; }
  .site-header nav { margin: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
