/* BIG BANG website. The game's colors (game/app.gd GOLD, PALE, DIM; replays_ui.gd GREEN), a
   living starfield behind everything (site.js), glass panels over it. */
@font-face {
  font-family: "Inter";
  src: url("/assets/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #04020f;
  --bg-2: #0b0624;
  --glass: rgba(18, 12, 46, 0.55);
  --glass-hi: rgba(36, 24, 84, 0.55);
  --line: rgba(255, 255, 255, 0.09);
  --line-hi: rgba(255, 255, 255, 0.18);
  --gold: #ffc759;
  --gold-2: #ff9a3c;
  --pale: #ebebf2;
  --dim: #a8adbd;
  --green: #73ff99;
  --cyan: #5ee7ff;
  --violet: #a77bff;
  --magenta: #ff5bd8;
  --radius: 20px;
  --max: 1160px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; }
main { overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--pale);
  font: 400 17px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* The sky: nebula washes (CSS) under the stars (canvas, site.js). */
.sky {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 600px at 15% 10%, rgba(120, 60, 255, 0.18), transparent 60%),
    radial-gradient(800px 600px at 85% 30%, rgba(255, 80, 200, 0.10), transparent 60%),
    radial-gradient(1000px 700px at 50% 100%, rgba(40, 140, 255, 0.10), transparent 60%),
    linear-gradient(180deg, var(--bg-2), var(--bg) 60%);
}
#stars { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }

a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: #ffe0a0; }
img { max-width: 100%; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
@media (max-width: 480px) { .wrap { padding: 0 16px; } }

/* --- Top bar ------------------------------------------------------------------------------ */
header.top {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 20;
  transition: background 0.3s, backdrop-filter 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
header.top.solid {
  background: rgba(6, 3, 20, 0.72);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
header.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--gold); font-weight: 800; letter-spacing: 0.16em; font-size: 15px; }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 0 18px rgba(255, 170, 80, 0.35); }
.brand:hover { color: #ffe0a0; }
nav.links { display: flex; align-items: center; gap: 22px; }
nav.links a { color: var(--dim); text-decoration: none; font-size: 15px; font-weight: 500; }
nav.links a:hover { color: var(--pale); }
@media (max-width: 640px) { nav.links .wide { display: none; } }

main { flex: 1; }

/* --- Buttons ------------------------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 14px;
  border: 1px solid var(--line-hi);
  background: rgba(255, 255, 255, 0.05);
  color: var(--pale);
  font-family: inherit;
  font-size: 16px;
  font-weight: 650;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s, background 0.2s, border-color 0.2s;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.btn:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, 0.35); color: #fff; background: rgba(255, 255, 255, 0.09); }
.btn:active { transform: translateY(0); }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn small { display: block; font-size: 11px; font-weight: 500; opacity: 0.75; letter-spacing: 0.02em; margin-bottom: 3px; }
.btn .two { text-align: left; line-height: 1.05; }
.btn.primary {
  background: linear-gradient(135deg, #ffd27a, var(--gold-2));
  border-color: transparent;
  color: #1a0d00;
  box-shadow: 0 8px 30px rgba(255, 160, 60, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.btn.primary:hover { color: #1a0d00; background: linear-gradient(135deg, #ffe09c, #ffab55); box-shadow: 0 12px 40px rgba(255, 160, 60, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.btn.green { background: linear-gradient(135deg, #9dffb8, #3fe07a); border-color: transparent; color: #03170a; box-shadow: 0 8px 30px rgba(80, 255, 140, 0.3); }
.btn.green:hover { color: #03170a; box-shadow: 0 12px 40px rgba(80, 255, 140, 0.45); }
.btn[hidden] { display: none; }

.stores { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* --- Hero --------------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 96px 0 72px;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  /* the battle, far below the title */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("/assets/hero.webp") center bottom / cover no-repeat;
  opacity: 0.3;
  transform: scale(1.08);
  -webkit-mask-image: linear-gradient(180deg, transparent 22%, rgba(0, 0, 0, 0.5) 55%, #000 85%), radial-gradient(ellipse 90% 80% at 50% 100%, #000, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(180deg, transparent 22%, rgba(0, 0, 0, 0.5) 55%, #000 85%), radial-gradient(ellipse 90% 80% at 50% 100%, #000, transparent);
  mask-composite: intersect;
  animation: drift 40s ease-in-out infinite alternate;
}
.hero::after {
  /* the flash at the start of time */
  content: "";
  position: absolute;
  left: 50%; top: 42%;
  width: 900px; height: 900px;
  margin: -450px 0 0 -450px;
  z-index: -1;
  background: radial-gradient(circle, rgba(255, 220, 160, 0.35), rgba(255, 140, 60, 0.12) 25%, rgba(140, 70, 255, 0.06) 45%, transparent 65%);
  animation: breathe 7s ease-in-out infinite;
  pointer-events: none;
}
@keyframes drift { from { transform: scale(1.08) translate3d(-1.5%, 0, 0); } to { transform: scale(1.14) translate3d(1.5%, -1%, 0); } }
@keyframes breathe { 0%, 100% { opacity: 0.75; transform: scale(1); } 50% { opacity: 1; transform: scale(1.06); } }

.logo {
  width: min(860px, 92vw);
  height: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 0 30px rgba(255, 150, 60, 0.45));
  animation: bang 1.6s var(--ease) both;
}
@keyframes bang {
  0% { opacity: 0; transform: scale(0.2); filter: brightness(4) blur(12px) drop-shadow(0 0 60px #fff); }
  45% { opacity: 1; filter: brightness(1.8) blur(0) drop-shadow(0 0 50px rgba(255, 200, 120, 0.9)); }
  100% { opacity: 1; transform: scale(1); filter: drop-shadow(0 0 30px rgba(255, 150, 60, 0.45)); }
}
.tagline {
  margin: 10px 0 0;
  font-weight: 800;
  font-size: clamp(13px, 2.2vw, 18px);
  letter-spacing: 0.42em;
  padding-left: 0.42em;
  color: var(--pale);
  animation: rise 1s 0.7s var(--ease) both;
}
.tagline span { color: var(--gold); }
.lead {
  color: #c9cbe0;
  max-width: 660px;
  margin: 22px auto 0;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.55;
  animation: rise 1s 0.9s var(--ease) both;
}
.hero .stores { margin-top: 34px; animation: rise 1s 1.1s var(--ease) both; }
.hero .soon { margin-top: 16px; color: var(--dim); font-size: 14px; animation: rise 1s 1.2s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.scroll-cue {
  position: absolute;
  bottom: 22px; left: 50%;
  width: 26px; height: 42px;
  margin-left: -13px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 14px;
  animation: rise 1s 1.6s var(--ease) both;
}
.scroll-cue::after {
  content: "";
  position: absolute;
  left: 50%; top: 8px;
  width: 4px; height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--gold);
  animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* --- Stats -------------------------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: -36px;
  position: relative;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.stat { background: var(--glass); padding: 26px 18px; text-align: center; }
.stat b {
  display: block;
  font-size: clamp(30px, 4.6vw, 44px);
  font-weight: 850;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff3d6, var(--gold) 55%, var(--gold-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat span { color: var(--dim); font-size: 14px; }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* --- Sections ----------------------------------------------------------------------------- */
section.block { padding: 110px 0 0; }
.eyebrow { color: var(--cyan); font-weight: 700; font-size: 13px; letter-spacing: 0.22em; margin: 0 0 12px; }
.title {
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
  font-weight: 850;
}
.title em {
  font-style: normal;
  background: linear-gradient(90deg, var(--gold), var(--magenta) 60%, var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.sub { color: var(--dim); font-size: 18px; max-width: 620px; margin: 16px 0 0; }
.center { text-align: center; }
.center .sub { margin-left: auto; margin-right: auto; }

/* Trailer */
.screen {
  position: relative;
  margin: 46px auto 0;
  border-radius: 24px;
  padding: 10px;
  background: linear-gradient(140deg, rgba(255, 199, 89, 0.5), rgba(167, 123, 255, 0.35) 40%, rgba(94, 231, 255, 0.4));
  box-shadow: 0 30px 120px rgba(120, 70, 255, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.screen::before {
  content: "";
  position: absolute;
  inset: -40px;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(255, 150, 80, 0.25), transparent);
  filter: blur(30px);
}
.screen video, .screen img { display: block; width: 100%; height: auto; border-radius: 16px; background: #000; aspect-ratio: 1920 / 886; object-fit: cover; }

/* The Arrow of Time */
.timeline-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.rail-nav { display: flex; gap: 10px; }
.rail-nav button {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line-hi);
  background: var(--glass);
  color: var(--pale);
  font-size: 20px;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.rail-nav button:hover { background: var(--glass-hi); transform: scale(1.06); }
.rail {
  position: relative;
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 40px max(20px, calc((100vw - var(--max)) / 2 + 20px)) 30px;
  margin: 10px calc(50% - 50vw) 0;
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.era {
  position: relative;
  flex: 0 0 280px;
  scroll-snap-align: center;
  border-radius: var(--radius);
  padding: 22px 22px 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}
.era:hover { transform: translateY(-6px); border-color: var(--era, var(--line-hi)); box-shadow: 0 20px 60px -20px var(--era, transparent); }
.era::before {
  /* the arrow of time running through the cards */
  content: "";
  position: absolute;
  top: 112px; left: -19px;
  width: 18px; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 199, 89, 0.6));
}
.era:first-child::before { display: none; }
.orb {
  width: 180px; height: 180px;
  margin: -6px auto 14px;
  display: block;
  border-radius: 50%;
  filter: drop-shadow(0 0 26px var(--era, rgba(255, 199, 89, 0.4)));
  animation: float 6s ease-in-out infinite;
}
.era:nth-child(2n) .orb { animation-delay: -2s; }
.era:nth-child(3n) .orb { animation-delay: -4s; }
img.orb { object-fit: contain; }
.orb.singularity {
  background: radial-gradient(circle, #fff 0 3%, #ffe9ff 5%, rgba(220, 160, 255, 0.85) 9%, rgba(130, 70, 255, 0.35) 22%, rgba(60, 20, 160, 0.12) 40%, transparent 62%);
  position: relative;
}
.orb.singularity::after {
  content: "";
  position: absolute;
  inset: 20%;
  border-radius: 50%;
  border: 1px dashed rgba(220, 180, 255, 0.35);
  animation: spin 18s linear infinite;
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes spin { to { transform: rotate(360deg); } }
.era .num { color: var(--era, var(--gold)); font-weight: 800; font-size: 13px; letter-spacing: 0.16em; }
.era h3 { margin: 4px 0 8px; font-size: 22px; line-height: 1.2; }
.era p { margin: 0; color: var(--dim); font-size: 15px; line-height: 1.5; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.chip { font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); color: #d6d8e6; }
.chip.boss { background: rgba(255, 91, 120, 0.12); border-color: rgba(255, 91, 120, 0.35); color: #ffb3c0; }

/* Feature rows */
.feature {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 56px;
  align-items: center;
  padding-top: 110px;
}
.feature.flip { grid-template-columns: 1fr 1.25fr; }
.feature.flip .shot { order: 2; }
.feature h3 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.1; letter-spacing: -0.015em; margin: 0 0 14px; font-weight: 850; }
.feature p { color: var(--dim); margin: 0; font-size: 17px; }
.feature ul { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.feature li { display: flex; gap: 12px; color: #d3d5e4; font-size: 16px; }
.feature li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 9px; border-radius: 50%; background: var(--accent, var(--gold)); box-shadow: 0 0 12px var(--accent, var(--gold)); }
.shot {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line-hi);
  box-shadow: 0 40px 100px -30px var(--accent, rgba(255, 199, 89, 0.5)), 0 0 0 1px rgba(0, 0, 0, 0.4);
  transform: perspective(1400px) rotateY(-6deg) rotateX(2deg);
  transition: transform 0.6s var(--ease);
}
.feature.flip .shot { transform: perspective(1400px) rotateY(6deg) rotateX(2deg); }
.shot:hover, .feature.flip .shot:hover { transform: perspective(1400px) rotateY(0) rotateX(0) scale(1.01); }
.shot img { display: block; width: 100%; height: auto; }
.shot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.12), transparent 35%);
  pointer-events: none;
}
@media (max-width: 860px) {
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 28px; padding-top: 80px; }
  .feature.flip .shot { order: 0; }
  .shot, .feature.flip .shot { transform: none; }
}

/* Share and co-op cards */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 46px; }
.panel {
  position: relative;
  border-radius: 24px;
  padding: 34px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line);
  overflow: hidden;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.panel::before {
  content: "";
  position: absolute;
  width: 420px; height: 420px;
  right: -160px; top: -200px;
  background: radial-gradient(closest-side, var(--accent, rgba(115, 255, 153, 0.25)), transparent);
  pointer-events: none;
}
.panel h3 { font-size: 26px; margin: 0 0 10px; line-height: 1.15; }
.panel p { color: var(--dim); margin: 0; }
.share-demo { display: flex; gap: 22px; align-items: center; margin-top: 26px; flex-wrap: wrap; }
.qr { width: 132px; height: 132px; padding: 10px; background: #fff; border-radius: 14px; box-shadow: 0 0 40px rgba(115, 255, 153, 0.35); flex: none; }
.qr svg { display: block; width: 100%; height: 100%; }
.linkpill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 12px 10px 16px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line-hi);
  color: var(--green);
  font-weight: 600;
  font-size: 15px;
  max-width: 100%;
}
.linkpill span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.linkpill i { white-space: nowrap; font-style: normal; color: #03170a; background: var(--green); border-radius: 8px; padding: 6px 10px; font-size: 13px; font-weight: 700; }
.apps { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.apps span { font-size: 13px; padding: 7px 12px; border-radius: 10px; border: 1px solid var(--line-hi); color: var(--pale); background: rgba(255, 255, 255, 0.04); }
.voice { display: flex; align-items: center; gap: 4px; height: 44px; margin-top: 26px; }
.voice i { display: block; width: 6px; border-radius: 3px; background: linear-gradient(180deg, var(--cyan), var(--violet)); animation: eq 1.2s ease-in-out infinite; }
@keyframes eq { 0%, 100% { height: 18%; } 50% { height: 100%; } }
.duo .players { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 18px; }
.roomcode { display: flex; align-items: center; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.roomcode .digits { display: flex; gap: 6px; }
.roomcode .digits b { width: 40px; height: 48px; display: grid; place-items: center; border-radius: 10px; background: rgba(0, 0, 0, 0.35); border: 1px solid rgba(94, 231, 255, 0.35); color: var(--cyan); font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.roomcode span { color: var(--dim); font-size: 14px; }
.finale .orb { width: 120px; height: 120px; margin: -10px auto 12px; }
.duo .players b { text-align: center; padding: 12px 4px; white-space: nowrap; border-radius: 12px; background: rgba(94, 231, 255, 0.08); border: 1px solid rgba(94, 231, 255, 0.25); color: var(--cyan); font-size: 14px; }
@media (max-width: 860px) { .duo { grid-template-columns: 1fr; } .panel { padding: 26px; } }
@media (max-width: 480px) { .linkpill { font-size: 12.5px; } .qr { width: 112px; height: 112px; } }

/* Final call */
.finale {
  position: relative;
  margin: 120px 0 90px;
  padding: 80px 24px;
  text-align: center;
  border-radius: 32px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: radial-gradient(ellipse at 50% 120%, rgba(255, 150, 60, 0.35), transparent 60%), radial-gradient(ellipse at 50% -20%, rgba(120, 70, 255, 0.35), transparent 60%), rgba(10, 6, 30, 0.6);
}
.finale h2 { margin: 0 auto; max-width: 760px; }
.finale .sub { margin: 16px auto 34px; }

/* Scroll reveal (site.js adds .in; without script everything just shows) */
.js .reveal { opacity: 0; transform: translateY(36px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* --- The replay page ---------------------------------------------------------------------- */
.replay-wrap { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding-top: 100px; padding-bottom: 60px; }
.replay {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  padding: 0 0 34px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
  border: 1px solid var(--line-hi);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: 0 40px 120px -40px var(--era, rgba(115, 255, 153, 0.4));
  overflow: hidden;
}
.replay .banner {
  height: 150px;
  background: var(--era-bg, url("/assets/hero.webp")) center / cover;
  opacity: 0.55;
  -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent);
  mask-image: linear-gradient(180deg, #000 30%, transparent);
}
.replay .orb { width: 150px; height: 150px; margin: -110px auto 0; position: relative; }
.replay .kicker { margin: 10px 0 0; color: var(--green); font-weight: 700; letter-spacing: 0.2em; font-size: 12px; }
.replay h1 { font-size: clamp(26px, 5vw, 34px); margin: 6px 24px 0; line-height: 1.15; letter-spacing: -0.01em; }
.code {
  font-variant-numeric: tabular-nums;
  font-weight: 850;
  font-size: clamp(42px, 9vw, 60px);
  letter-spacing: 0.08em;
  margin: 8px 0 0;
  line-height: 1.1;
  background: linear-gradient(180deg, #d8ffe4, var(--green));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 22px rgba(115, 255, 153, 0.35));
}
.facts { margin: 14px 24px 0; color: var(--dim); min-height: 1.6em; }
.facts .by { margin-top: 10px; font-size: 15px; }
.facts .by b { color: var(--pale); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(72px, 112px)); justify-content: center; gap: 8px; margin-top: 14px; }
.tile { padding: 10px 8px; border-radius: 14px; background: rgba(0, 0, 0, 0.3); border: 1px solid var(--line); }
.tile b { display: block; font-size: 20px; color: var(--pale); font-variant-numeric: tabular-nums; }
.tile span { font-size: 12px; color: var(--dim); }
.tile.won b { color: var(--green); }
.tile.lost b { color: #ff9a8f; }
.skeleton { display: inline-block; width: 220px; height: 14px; border-radius: 7px; background: linear-gradient(90deg, rgba(255,255,255,0.06), rgba(255,255,255,0.14), rgba(255,255,255,0.06)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.actions { display: flex; flex-direction: column; gap: 12px; margin: 26px 24px 0; }
.actions .row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.steps { text-align: left; margin: 26px 24px 0; padding: 18px 20px; border-radius: 16px; background: rgba(0, 0, 0, 0.25); border: 1px solid var(--line); }
.steps ol { margin: 8px 0 0; padding-left: 22px; color: var(--dim); }
.steps li { margin: 4px 0; }
.steps li strong { color: var(--pale); }
.note { color: var(--dim); font-size: 14px; }
@media (max-width: 480px) { .tile b { font-size: 17px; } .replay .banner { height: 120px; } .replay .orb { width: 128px; height: 128px; margin-top: -92px; } }

/* --- Text pages (privacy) ----------------------------------------------------------------- */
.doc-wrap { display: grid; grid-template-columns: 230px 1fr; gap: 40px; padding: 110px 0 80px; align-items: start; }
.toc { position: sticky; top: 90px; font-size: 14px; }
.toc b { display: block; color: var(--pale); margin-bottom: 10px; letter-spacing: 0.04em; }
.toc a { display: block; color: var(--dim); text-decoration: none; padding: 6px 0 6px 14px; border-left: 2px solid var(--line); }
.toc a:hover, .toc a.on { color: var(--gold); border-left-color: var(--gold); }
.doc {
  padding: 44px clamp(22px, 5vw, 56px);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.doc h1 { font-size: clamp(34px, 5vw, 48px); margin: 0 0 6px; letter-spacing: -0.02em; line-height: 1.1; }
.doc h2 { font-size: 22px; margin: 42px 0 10px; color: var(--gold); scroll-margin-top: 90px; }
.doc p, .doc li { color: #cfd1dc; }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc .updated { color: var(--dim); margin-top: 0; }
.doc .tldr { margin-top: 26px; padding: 20px 22px; border-radius: 18px; background: rgba(115, 255, 153, 0.06); border: 1px solid rgba(115, 255, 153, 0.25); }
.doc .tldr h2 { margin-top: 0; color: var(--green); }
.doc .tldr ul { margin-bottom: 0; }
.doc-wrap.single { grid-template-columns: minmax(0, 860px); justify-content: center; }
.contact-card {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  margin-top: 26px; padding: 22px 24px; border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 199, 89, 0.10), rgba(167, 123, 255, 0.08));
  border: 1px solid rgba(255, 199, 89, 0.3);
}
.contact-card h2 { margin: 0 0 6px; }
.contact-card p { margin: 0; max-width: 460px; }
.faq { display: grid; gap: 10px; }
.faq details { border-radius: 14px; background: rgba(0, 0, 0, 0.22); border: 1px solid var(--line); transition: border-color 0.2s, background 0.2s; }
.faq details[open] { border-color: rgba(94, 231, 255, 0.35); background: rgba(94, 231, 255, 0.05); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 48px 16px 18px; font-weight: 650; color: var(--pale); position: relative; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); color: var(--cyan); font-size: 22px; font-weight: 400; transition: transform 0.2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0; padding: 0 18px 18px; }
@media (max-width: 900px) { .doc-wrap { grid-template-columns: 1fr; padding-top: 90px; } .toc { display: none; } }

/* --- Footer ------------------------------------------------------------------------------- */
footer.bottom { border-top: 1px solid var(--line); color: var(--dim); font-size: 14px; padding: 30px 0 36px; background: rgba(4, 2, 15, 0.6); }
footer.bottom .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; }
footer.bottom .brand { font-size: 13px; }
footer.bottom nav { display: flex; gap: 20px; }
footer.bottom a { color: var(--dim); text-decoration: none; }
footer.bottom a:hover { color: var(--pale); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* --- A clip on the replay page ------------------------------------------------------------ */
.replay.has-clip .banner, .replay.has-clip .orb { display: none; }
.clipbox {
  width: min(100%, 340px);
  aspect-ratio: 9 / 16;
  margin: 22px auto 4px;
  border-radius: 18px;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--line-hi);
  box-shadow: 0 24px 70px -20px var(--era, rgba(115, 255, 153, 0.5));
}
.clipbox video { display: block; width: 100%; height: 100%; object-fit: cover; }

/* --- The feed (/watch) -------------------------------------------------------------------- */
body.watch { overflow: hidden; height: 100vh; height: 100svh; }
.tabs { display: inline-flex; padding: 3px; border-radius: 12px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); }
.tabs button {
  min-height: 36px; padding: 0 16px; border: 0; border-radius: 9px; background: transparent;
  color: var(--dim); font: inherit; font-size: 14px; font-weight: 650; cursor: pointer;
}
.tabs button.on { background: rgba(255, 255, 255, 0.12); color: var(--pale); }
.feed {
  position: fixed;
  top: 64px; left: 0; right: 0; bottom: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
}
.feed::-webkit-scrollbar { display: none; }
.feed-status { margin: 30vh auto 0; max-width: 420px; padding: 0 20px; text-align: center; color: var(--dim); }
.reel {
  height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: grid;
  place-items: center;
  padding: 12px 16px;
}
.reel-stage {
  position: relative;
  width: min(100%, calc((100svh - 64px - 24px) * 9 / 16));
  aspect-ratio: 9 / 16;
  max-height: 100%;
  border-radius: 20px;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--line-hi);
  box-shadow: 0 30px 90px -30px var(--era, rgba(255, 199, 89, 0.5));
}
.reel video { display: block; width: 100%; height: 100%; object-fit: cover; cursor: pointer; }
.reel-info {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 70px 84px 18px 18px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.75));
  pointer-events: none;
}
.reel-era { margin: 0; font-weight: 800; font-size: 18px; color: var(--era, var(--gold)); text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6); }
.reel-line { margin: 4px 0 0; font-size: 14px; color: #e6e7f0; }
.reel-by { margin: 2px 0 0; font-size: 14px; color: var(--dim); }
.reel-by b { color: var(--pale); }
.reel-side { position: absolute; right: 10px; bottom: 18px; display: flex; flex-direction: column; gap: 14px; align-items: center; }
.reel-btn {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  min-width: 56px; padding: 0; border: 0; background: none;
  color: #fff; font: inherit; font-size: 12px; font-weight: 650; text-decoration: none; cursor: pointer;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
}
.reel-btn svg {
  width: 46px; height: 46px; padding: 12px; border-radius: 50%;
  background: rgba(0, 0, 0, 0.45); border: 1px solid rgba(255, 255, 255, 0.2);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: transform 0.15s;
}
a.reel-btn svg { background: var(--green); color: #03170a; border-color: transparent; padding-left: 14px; }
.reel-btn:hover { color: #fff; }
.reel-btn:hover svg { transform: scale(1.08); }
.reel-btn.static { cursor: default; }
.reel-btn.static svg { color: #ff8fa3; }
@media (max-width: 520px) {
  .reel { padding: 0; }
  .reel-stage { width: 100%; height: 100%; max-height: none; aspect-ratio: auto; border-radius: 0; border: 0; }
  .watch nav.links .wide { display: none; }
}
