/* The Sweet design's stylesheet: a copy of gp-frontend's app/site.css (keep the two in step). The play hub's own
   sections are in hub.css. */
/* Layout concept: the art does the talking. Two full-bleed rows of key art drift in opposite directions under the nav; everything below is quiet, dark and structured, so the games and the numbers carry the page. Dark by choice. */
:root {
  --ink: #0f0c1a;
  --ink-2: #16122a;
  --panel: #1d1833;
  --panel-2: #262043;
  --line: #2f2850;
  --line-2: #443a6e;
  --cream: #f5f1ea;
  --muted: #b3aacb;
  --dim: #857ca3;
  --pink: #ff2d9e;
  --pink-deep: #c9127a;
  --teal: #4fe3c1;
  --gold: #f2c14e;
  --violet: #9a7bff;
  --lime: #c8f55a;
  --orange: #ff8a5b;
  --sky: #5ec8ff;
  --display: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
  --body: 'Barlow', Arial, sans-serif;
  --radius: 14px;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--cream); font: 400 17px/1.5 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--ink); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); text-wrap: balance; line-height: 0.95; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1320px; margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }

/* ---------- nav ---------- */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(15, 12, 26, 0.88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); }
.nav .wrap { display: flex; align-items: center; gap: 22px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; flex: none; }
.logo img { height: 32px; width: auto; }
.nav-links { display: flex; gap: 2px; font-family: var(--display); font-size: 21px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.02em; }
.nav-links a { padding: 8px 12px; border-radius: 10px; color: var(--muted); }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--cream); background: var(--panel); }

/* Play nav item: a small pink play mark with a glow; brightens on hover and when it is the current page. */
.nav-links a.nav-play { display: inline-flex; align-items: center; gap: 8px; }
.nav-play .play-ic { width: 13px; height: 13px; flex: none; fill: var(--pink); filter: drop-shadow(0 0 5px rgba(255, 45, 158, 0.7)); transition: transform 0.2s ease, filter 0.2s ease; }
.nav-links a.nav-play:hover .play-ic, .nav-links a.nav-play[aria-current] .play-ic { transform: scale(1.18); filter: drop-shadow(0 0 9px rgba(255, 45, 158, 1)); }
.nav-links a.nav-play[aria-current] { color: var(--pink); }
.nav-search { margin-left: auto; display: flex; align-items: center; gap: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px 6px 14px; flex: 0 1 278px; min-width: 0; color: var(--muted); }
.nav-search input { background: none; border: 0; color: var(--cream); font: inherit; width: 100%; min-width: 0; outline: none; text-overflow: ellipsis; }
/* Where the browser supports it, the box sizes itself to the placeholder exactly: no slack, no cropping. */
@supports (field-sizing: content) {
  .nav-search { flex: 0 0 auto; }
  .nav-search input { field-sizing: content; width: auto; min-width: 10ch; }
}
.nav-search input::placeholder { color: var(--dim); }
.nav-cta { margin-left: auto; }
.nav-burger { display: none; flex: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--panel); cursor: pointer; padding: 0; position: relative; }
.nav-burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--cream); border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease; }
.nav-burger span:nth-child(1) { top: 13px; }
.nav-burger span:nth-child(2) { top: 20px; }
.nav-burger span:nth-child(3) { top: 27px; }
.nav.open .nav-burger span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.nav.open .nav-burger span:nth-child(2) { opacity: 0; }
.nav.open .nav-burger span:nth-child(3) { top: 20px; transform: rotate(-45deg); }
.nav-search + .nav-cta { margin-left: 0; }
.btn { cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 12px 20px; font-family: var(--display); font-weight: 700; font-size: 20px; text-transform: uppercase; letter-spacing: 0.03em; line-height: 1; transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn.pink { background: var(--pink); color: var(--ink); }
.btn.pink:hover { background: #ff54b0; }
.btn.ghost { background: transparent; border: 2px solid var(--line-2); color: var(--cream); }
.btn.ghost:hover { border-color: var(--cream); }
.btn.sm { padding: 9px 14px; font-size: 17px; }
.btn.lg { padding: 18px 30px; font-size: 25px; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(55% 60% at 68% 12%, rgba(154, 123, 255, 0.28), transparent 70%), radial-gradient(45% 45% at 10% 88%, rgba(255, 45, 158, 0.16), transparent 70%); pointer-events: none; }
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: center; padding-block: 44px 40px; }
.hero .term-wrap { max-width: 600px; width: 100%; justify-self: start; }
.hero .term { height: 560px; }
.hero .term-body { padding: 24px 26px 18px; gap: 20px; }
.hero .term-prompt { font-size: clamp(20px, 1.6vw, 26px); min-height: 3.6em; }
.hero .term-sweet { min-height: 140px; }
.hero h1 { font-size: clamp(60px, 7.6vw, 108px); font-weight: 800; text-transform: uppercase; line-height: 0.88; }
.hero h1 .on { color: var(--pink); font-style: normal; }
.hero .lede { color: var(--muted); font-size: 19px; max-width: 50ch; margin-top: 16px; }
.hero .acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hstats { display: grid; gap: 8px; }
.hstat { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; display: flex; align-items: baseline; gap: 14px; min-width: 0; }
.hstat b { font-family: var(--display); font-size: 40px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; flex: none; }
.hstat.hi b { color: var(--teal); }
.hstat small { color: var(--muted); font-size: 15px; }

/* ---------- top rows ---------- */
.rows { padding-block: 30px 32px; background: var(--ink-2); }
.rowhead .hint { color: var(--dim); font-size: 14px; margin-left: auto; margin-right: 18px; }
.rowhead { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 10px; }
.rowhead h2 { font-size: 30px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; }
.rowhead a { color: var(--dim); font-size: 15px; font-weight: 600; }
.rowhead a:hover { color: var(--cream); }
.marquee { overflow: hidden; padding-block: 4px 10px; position: relative; }
.marquee + .marquee { padding-top: 0; }
.marquee::before, .marquee::after { content: ""; position: absolute; top: 0; bottom: 0; width: 70px; z-index: 2; pointer-events: none; }
.marquee::before { left: 0; background: linear-gradient(90deg, var(--ink-2), transparent); }
.marquee::after { right: 0; background: linear-gradient(270deg, var(--ink-2), transparent); }
.marquee { touch-action: pan-y; cursor: grab; }
.marquee:active { cursor: grabbing; }
.track { display: flex; gap: 14px; width: max-content; will-change: transform; user-select: none; -webkit-user-select: none; -webkit-user-drag: none; }
.track img { pointer-events: none; }
.track .gcard { width: 440px; }
/* a row with too few games to drift (games.tsx useMarquee) stands still: each game once, centered, and it
   scrolls if it's a little wider than the screen */
.marquee .track { margin-inline: auto; }
.marquee.still { cursor: auto; overflow-x: auto; touch-action: auto; scrollbar-width: thin; }
.marquee.still::before, .marquee.still::after { content: none; }

/* ---------- game card ---------- */
.gcard { position: relative; display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--panel); border: 1px solid var(--line); cursor: pointer; flex: none; transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
.gimg { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.gimg img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.35s ease; }
.gimg img.ready { opacity: 1; }
.gcard:hover, .gcard:focus-visible { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5); border-color: var(--line-2); }
.gcard .badge { position: absolute; top: 12px; left: 12px; font: 700 12px/1 var(--body); letter-spacing: 0.06em; text-transform: uppercase; padding: 7px 10px; border-radius: 999px; background: rgba(15, 12, 26, 0.78); color: var(--cream); border: 1px solid rgba(255, 255, 255, 0.18); backdrop-filter: blur(6px); }
.gcard .play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -40%); opacity: 0; background: var(--pink); color: var(--ink); font-family: var(--display); font-weight: 700; font-size: 22px; text-transform: uppercase; letter-spacing: 0.04em; padding: 12px 26px; border-radius: 999px; transition: opacity 0.18s ease, transform 0.18s ease; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45); }
.gcard:hover .play, .gcard:focus-visible .play { opacity: 1; transform: translate(-50%, -50%); }
.gbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px 11px; background: var(--panel); border-top: 1px solid var(--line); font-size: 14px; }
.gbar .genre { flex: none; }
.gtxt { min-width: 0; flex: 1; }
.gtxt h3 { font-size: 23px; font-weight: 700; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gtxt p { color: var(--muted); font-size: 13px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.time { flex: none; display: inline-flex; align-items: center; gap: 6px; font: 600 13px/1 var(--body); color: var(--cream); background: var(--ink); border: 1px solid var(--line); padding: 7px 10px; border-radius: 999px; }
.time i { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }
.who { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; color: var(--cream); min-width: 0; }
.who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who:hover { color: var(--pink); }
.av { display: inline-block; border-radius: 50%; background-size: cover; background-repeat: no-repeat; flex: none; border: 1px solid rgba(255, 255, 255, 0.28); background-color: var(--panel-2); }
.genre { font: 600 12px/1 var(--body); padding: 6px 9px; border-radius: 999px; background: rgba(15, 12, 26, 0.6); color: var(--g, var(--cream)); border: 1px solid var(--g, var(--line)); white-space: nowrap; }
.genre.top { position: absolute; top: 12px; right: 12px; background: rgba(15, 12, 26, 0.78); backdrop-filter: blur(6px); }
.gtxt p b { color: var(--cream); font-weight: 600; }

/* ---------- sections ---------- */
.section { padding-block: 56px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 20px; }
.section-head h2 { font-size: clamp(36px, 4.6vw, 54px); font-weight: 800; text-transform: uppercase; }
.section-head .count { color: var(--dim); font-size: 16px; }
.section-head .more { font-family: var(--display); font-size: 20px; font-weight: 600; text-transform: uppercase; color: var(--pink); }

/* ---------- build ---------- */
.build { background: var(--ink); }
/* Sections alternate tone instead of using rules: ink, ink-2, ink, ink-2 ... */
.build .wrap { padding-block: 72px; }
.build-head { display: grid; gap: 22px; }
.build h2 { font-size: clamp(46px, 5.6vw, 78px); font-weight: 800; text-transform: uppercase; line-height: 0.92; }
.build h2 span { display: block; }
.build h2 .on { color: var(--pink); font-style: normal; }
.build .lead { color: var(--muted); font-size: 19px; max-width: 72ch; }
.eq-card .bw-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 8px; }
.eq-card .bw-logos img { display: block; height: 16px; width: auto; opacity: 0.55; }
.equation { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.1fr) auto minmax(0, 1.15fr); gap: 14px; align-items: stretch; margin-top: 40px; }
.eq-card { border: 1px solid var(--line-2); border-radius: 16px; padding: 22px 24px; background: var(--panel); min-width: 0; display: flex; flex-direction: column; }
.eq-card.you { border-color: var(--sky); box-shadow: 0 0 0 1px rgba(94, 200, 255, 0.22); }
.eq-card.sweet { border-color: var(--pink); box-shadow: 0 0 0 1px rgba(255, 45, 158, 0.22); }
.eq-card.result { background: linear-gradient(160deg, rgba(79, 227, 193, 0.12), var(--panel) 55%); border-color: var(--teal); box-shadow: 0 0 0 1px rgba(79, 227, 193, 0.22); }
.eq-label { display: flex; align-items: center; gap: 12px; font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace; font-size: 16px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); margin-bottom: 16px; }
.eq-icon { flex: none; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; border: 1px solid; }
.eq-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.eq-card.you .eq-icon { background: rgba(94, 200, 255, 0.12); border-color: rgba(94, 200, 255, 0.4); box-shadow: 0 0 18px rgba(94, 200, 255, 0.18); }
.eq-card.sweet .eq-icon { background: rgba(255, 45, 158, 0.12); border-color: rgba(255, 45, 158, 0.4); box-shadow: 0 0 18px rgba(255, 45, 158, 0.18); }
.eq-card.result .eq-icon { background: rgba(79, 227, 193, 0.12); border-color: rgba(79, 227, 193, 0.4); box-shadow: 0 0 18px rgba(79, 227, 193, 0.18); }
.eq-card.you .eq-label { color: var(--sky); }
.eq-card.sweet .eq-label { color: var(--pink); }
.eq-card.result .eq-label { color: var(--teal); }
.eq-card ul { margin: auto 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.eq-foot { margin-top: 22px; color: var(--dim); font-size: 14px; }
.eq-card li { font-size: 17px; color: var(--cream); padding-left: 22px; position: relative; line-height: 1.35; }
.eq-card.you li { color: var(--muted); }
.eq-card li::before { content: ""; position: absolute; left: 0; top: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--dim); }
.eq-card.sweet li::before { background: var(--pink); }
.eq-card.you li::before { background: var(--sky); }
.eq-op { align-self: center; font-family: var(--display); font-size: 64px; font-weight: 800; line-height: 1; color: var(--pink); padding: 0 2px; }
.live-card { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--line-2); aspect-ratio: 16 / 9; }
.live-card img { width: 100%; height: 100%; object-fit: cover; }
.live-badge { position: absolute; top: 10px; right: 10px; display: inline-flex; align-items: center; gap: 6px; font: 700 12px/1 var(--body); letter-spacing: 0.08em; text-transform: uppercase; padding: 7px 10px; border-radius: 999px; background: rgba(15, 12, 26, 0.82); color: var(--teal); border: 1px solid rgba(79, 227, 193, 0.5); }
.live-badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }
.live-url { margin-top: 12px; font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.live-url b { color: var(--cream); font-weight: 600; }
.live-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.live-stats div { background: rgba(15, 12, 26, 0.5); border: 1px solid var(--line); border-radius: 10px; padding: 10px 10px 9px; min-width: 0; }
.live-stats b { display: block; font-family: var(--display); font-size: 26px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.live-stats b.money { color: var(--teal); }
.live-stats small { display: block; color: var(--dim); font-size: 12px; margin-top: 4px; line-height: 1.25; }
.build .acts { display: grid; justify-items: start; gap: 26px; margin-top: 40px; }
.shot { border-radius: 16px; overflow: hidden; border: 1px solid var(--line-2); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55); background: var(--panel); }
.shot img { width: 100%; height: auto; }
.shot-cap { color: var(--dim); font-size: 14px; margin-top: 12px; text-align: center; }

/* ---------- prompt terminal ---------- */
.term-wrap { display: flex; flex-direction: column; min-width: 0; }
.term { display: flex; flex-direction: column; height: 680px; background: #0a0814; border: 1px solid var(--line-2); border-radius: 16px; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55); font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.term-bar { display: flex; align-items: center; gap: 14px; padding: 13px 18px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--dim); }
.dots { display: inline-flex; gap: 7px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.dots i:nth-child(1) { background: var(--pink); }
.dots i:nth-child(2) { background: var(--gold); }
.dots i:nth-child(3) { background: var(--teal); }
.term-title { font-weight: 600; color: var(--muted); }
.term-via { margin-left: auto; color: var(--teal); white-space: nowrap; }
.term-body { flex: 1; padding: 30px 30px 22px; display: flex; flex-direction: column; justify-content: flex-end; gap: 26px; overflow: hidden; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 90px); mask-image: linear-gradient(to bottom, transparent 0, #000 90px); }
.term-log { display: flex; flex-direction: column; gap: 18px; }
.entry { font-size: 15px; line-height: 1.5; color: #6b6388; }
.entry .e-prompt { font-size: 17px; color: #8d84ad; overflow-wrap: anywhere; }
.entry .e-prompt span { color: var(--pink-deep); margin-right: 0.5em; }
.entry .e-res { margin-top: 3px; overflow-wrap: anywhere; }
.entry .e-res b { font-weight: 500; color: #a8488a; }
.term-live { display: flex; flex-direction: column; gap: 20px; }
.term-who { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }
.term-prompt { font-size: clamp(22px, 2vw, 32px); line-height: 1.4; color: var(--cream); min-height: 4.2em; font-weight: 500; overflow-wrap: anywhere; }
.caret { color: var(--pink); margin-right: 0.5em; }
.typed.sel { background: rgba(255, 45, 158, 0.38); border-radius: 3px; }
.cursor { display: inline-block; width: 0.55em; height: 1.05em; background: var(--pink); vertical-align: -0.12em; margin-left: 3px; animation: blink 1s steps(1) infinite; }
.cursor.on { animation: none; }
@keyframes blink { 50% { opacity: 0; } }
.term-sweet { display: flex; flex-direction: column; gap: 14px; min-height: 160px; opacity: 0; transition: opacity 0.3s ease; }
.term-sweet.show { opacity: 1; }
.mods { display: flex; flex-wrap: wrap; gap: 8px; }
.mod { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 500; color: var(--teal); border: 1px solid rgba(79, 227, 193, 0.4); background: rgba(79, 227, 193, 0.08); padding: 8px 11px; border-radius: 8px; animation: pop 0.25s ease; }
.mod svg { width: 13px; height: 13px; }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.pub { font-size: 15px; color: var(--muted); opacity: 0; transition: opacity 0.3s ease; min-height: 1.5em; overflow-wrap: anywhere; }
.pub.show { opacity: 1; }
.pub b { color: var(--pink); font-weight: 600; }
.term-foot { padding: 12px 18px; border-top: 1px solid var(--line); font: 400 13px/1.4 var(--body); color: var(--dim); }

/* ---------- publisher pages ---------- */
.land { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 20px; align-items: stretch; }
.land-text { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 34px; display: flex; flex-direction: column; gap: 16px; }
.land-text h2 { font-size: clamp(40px, 4.4vw, 60px); font-weight: 800; text-transform: uppercase; }
.land-text p { color: var(--muted); font-size: 17px; max-width: 56ch; }
.land-text code { font: 600 15px/1.6 var(--body); color: var(--teal); background: var(--ink); border: 1px solid var(--line); padding: 2px 8px; border-radius: 6px; white-space: nowrap; }
.land-text .acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.profile-card { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.profile-card:hover { border-color: var(--line-2); }
.pc-cover { aspect-ratio: 21 / 9; overflow: hidden; }
.pc-cover img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.pc-body { padding: 0 24px 24px; display: flex; flex-direction: column; gap: 6px; }
.pc-body .av { margin-top: -28px; border: 3px solid var(--panel); }
.pc-body h3 { font-size: 34px; font-weight: 800; text-transform: uppercase; margin-top: 6px; }
.pc-body p { color: var(--muted); font-size: 15px; }
.pc-body .btn { align-self: flex-start; margin-top: 12px; }

/* ---------- paid ---------- */
.pricing { background: var(--ink-2); }
.pricing .wrap { padding-block: 72px 56px; }
.pricing-head { max-width: 60ch; }
.pricing h2 { font-size: clamp(44px, 5.6vw, 80px); font-weight: 800; text-transform: uppercase; line-height: 0.92; }
.pricing h2 b { color: var(--pink); font-weight: 800; }
.pricing .lead { color: var(--muted); font-size: 19px; margin-top: 18px; }
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 36px; }
.plan { background: var(--panel); border: 1px solid var(--line-2); border-radius: 16px; padding: 24px 24px 26px; display: flex; flex-direction: column; min-width: 0; }
.plan.top { border-color: var(--pink); box-shadow: 0 0 0 1px rgba(255, 45, 158, 0.25), 0 24px 60px rgba(0, 0, 0, 0.35); }
.plan-name { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 24px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; }
.plan-name svg { width: 22px; height: 22px; fill: none; stroke: var(--teal); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.plan.top .plan-name svg { stroke: var(--pink); }
.plan-price { display: flex; align-items: baseline; gap: 6px; margin-top: 18px; }
.plan-price b { font-family: var(--display); font-size: 64px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.plan-price span { color: var(--dim); font-size: 15px; font-weight: 600; }
.plan-for { color: var(--pink); font-weight: 600; font-size: 15px; margin-top: 14px; }
.plan.top .plan-for { color: var(--pink); }
.plan-tag { color: var(--muted); font-size: 15px; margin-top: 2px; padding-bottom: 6px; }
.plan-games { font-family: var(--display); font-size: 30px; font-weight: 700; text-transform: uppercase; margin-top: 18px; line-height: 1; }
.plan-games small { display: block; font-family: var(--body); font-size: 13px; font-weight: 500; text-transform: none; color: var(--dim); margin-top: 6px; }
.plan li b { color: var(--teal); font-weight: 700; }
.plan.top li b { color: var(--pink); }
.plans-all { display: flex; align-items: center; gap: 10px; margin-top: 16px; color: var(--muted); font-size: 15px; }
.plans-all .tick { width: 8px; height: 13px; border: solid var(--teal); border-width: 0 2px 2px 0; transform: rotate(40deg); margin: 0 6px 4px 4px; }
.usage-fine { color: var(--dim); font-size: 13px; line-height: 1.5; margin-top: 18px; max-width: 110ch; }
.plan ul { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.plan li { font-size: 15px; color: var(--cream); padding-left: 24px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 2px; top: 5px; width: 8px; height: 13px; border: solid var(--teal); border-width: 0 2px 2px 0; transform: rotate(40deg); }
.plan.top li::before { border-color: var(--pink); }
.pricing-cta { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; background: linear-gradient(135deg, var(--panel-2), var(--panel)); border: 1px solid var(--line-2); border-radius: 18px; padding: 26px 30px; }
.pricing-cta h3 { font-size: clamp(30px, 3.4vw, 44px); font-weight: 800; text-transform: uppercase; }
.pricing-cta p { color: var(--muted); font-size: 16px; max-width: 46ch; margin-top: 6px; }
.pricing-note { color: var(--dim); font-size: 13px; margin-top: 16px; }

/* ---------- closing band ---------- */
.cta-band { background: var(--ink); }
.foot { background: var(--ink-2); }
.cta-band .wrap { padding-block: 72px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); align-items: center; gap: 32px 72px; }
.cta-band h2 { font-size: clamp(40px, 4.6vw, 60px); font-weight: 800; text-transform: uppercase; line-height: .98; }
.cta-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 26px; }
.cta-band p { color: var(--cream); opacity: .86; font-size: 18.5px; line-height: 1.6; max-width: 58ch; }
@media (max-width: 860px) {
  .cta-band .wrap { grid-template-columns: minmax(0, 1fr); padding-block: 56px; }
  .cta-band p { font-size: 17px; }
}

/* ---------- find ---------- */
.find { background: var(--ink-2); }
#hot-sec { background: var(--ink); }
#publishers { background: var(--ink); }
#pages { background: var(--ink-2); }
.controls { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); margin-bottom: 22px; }
.controls > *, .filters, .row { min-width: 0; }
.search { display: flex; align-items: center; gap: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.search svg { width: 20px; height: 20px; color: var(--dim); flex: none; }
.search input { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: var(--cream); font: 500 18px/1.3 var(--body); }
.search input::placeholder { color: var(--dim); }
.search .hint { font-size: 13px; color: var(--dim); white-space: nowrap; background: none; border: 0; padding: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.row .lbl { font: 600 13px/1 var(--body); color: var(--dim); text-transform: uppercase; letter-spacing: 0.06em; margin-right: 4px; }
.chip { border: 1px solid var(--line); background: var(--panel); color: var(--muted); border-radius: 999px; padding: 8px 13px; font: 600 15px/1 var(--body); display: inline-flex; align-items: center; gap: 7px; transition: border-color 0.12s ease, color 0.12s ease; }
.chip i { width: 9px; height: 9px; border-radius: 50%; background: var(--g, var(--cream)); display: inline-block; }
.chip:hover { border-color: var(--line-2); color: var(--cream); }
.chip[aria-pressed="true"] { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.chip[aria-pressed="true"] i { outline: 2px solid var(--ink); outline-offset: -1px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--panel); }
.seg button { border: 0; background: none; padding: 8px 13px; font: 600 15px/1 var(--body); color: var(--muted); }
.seg button + button { border-left: 1px solid var(--line); }
.seg button[aria-pressed="true"] { background: var(--cream); color: var(--ink); }
.pubsel { display: flex; align-items: center; gap: 8px; color: var(--dim); font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.pubsel select { background: var(--panel); color: var(--cream); border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; font: 600 15px/1 var(--body); letter-spacing: 0; text-transform: none; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.tabs button { border: 1px solid var(--line); background: var(--panel); color: var(--muted); border-radius: 999px; padding: 10px 16px; font: 700 15px/1 var(--body); }
.tabs button[aria-pressed="true"] { background: var(--pink); border-color: var(--pink); color: var(--ink); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.grid .gcard { width: auto; }
.grid-more { display: flex; justify-content: center; margin-top: 22px; }
.grid-more button[hidden] { display: none; }
.empty { grid-column: 1 / -1; padding: 40px; text-align: center; color: var(--muted); border: 1px dashed var(--line-2); border-radius: var(--radius); }
.empty b { color: var(--cream); }

/* ---------- hot list ---------- */
.hot { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 28px; }
.hot-row { display: grid; grid-template-columns: 40px 112px 1fr auto; align-items: center; gap: 14px; padding: 10px 12px 10px 6px; border-radius: 12px; cursor: pointer; border: 1px solid transparent; }
.hot-row:hover { background: var(--panel); border-color: var(--line); }
a.hot-row { color: inherit; text-decoration: none; }
.hot-row.still { cursor: default; }
.hot-row.still:hover { background: transparent; border-color: transparent; }
.hot-row .players { font-variant-numeric: tabular-nums; }
.hot-row > div { min-width: 0; }
.hot-row .rank { font-family: var(--display); font-size: 40px; font-weight: 800; color: var(--gold); text-align: center; line-height: 1; }
.hot-row .thumb { width: 112px; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: var(--panel); border: 1px solid var(--line); }
.hot-row .thumb img { width: 100%; height: 100%; object-fit: cover; }
.hot-row h3 { font-size: 26px; font-weight: 700; text-transform: uppercase; overflow-wrap: anywhere; }
.hot-row .who { color: var(--muted); font-size: 14px; font-weight: 500; display: block; white-space: normal; }
.sep { display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: var(--dim); vertical-align: middle; margin: 0 2px; }
.hot-row .trend { font: 700 13px/1 var(--body); color: var(--lime); background: rgba(200, 245, 90, 0.1); border: 1px solid rgba(200, 245, 90, 0.32); padding: 7px 10px; border-radius: 999px; white-space: nowrap; }
.hot-row .players { color: var(--dim); font-size: 13px; text-align: right; margin-top: 6px; }

/* ---------- publishers ---------- */
.pubs { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.pubcard { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: grid; grid-template-columns: 60px 1fr; gap: 14px; align-items: start; }
.pubmain { min-width: 0; }
.pubcard h3 { font-size: 26px; font-weight: 700; text-transform: uppercase; }
.pubcard .handle { color: var(--pink); font-weight: 600; font-size: 15px; }
.pubcard .blurb { color: var(--muted); font-size: 15px; margin-top: 6px; }
.pubcard .stats { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; color: var(--dim); font-size: 14px; }
.pubcard .stats b { color: var(--cream); font-weight: 600; }
.pubcard .acts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-top: 2px; }
.follow { border: 2px solid var(--pink); background: transparent; color: var(--pink); border-radius: 999px; padding: 8px 14px; font: 700 15px/1 var(--body); transition: background 0.12s ease, color 0.12s ease; }
.follow[aria-pressed="true"] { background: var(--pink); color: var(--ink); }
.page-link { color: var(--muted); font-size: 14px; }
a.page-link:hover { color: var(--cream); }

/* ---------- footer ---------- */
.foot { padding-block: 48px 40px; color: var(--dim); font-size: 15px; }
.foot .wrap { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 32px 40px; align-items: start; }
.foot .brand { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.foot .brand span { color: var(--muted); max-width: 30ch; }
.foot .col h4 { font: 600 12px/1 'JetBrains Mono', ui-monospace, Menlo, monospace; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); margin: 6px 0 14px; }
.foot .col a { display: block; color: var(--muted); padding: 4px 0; }
.foot .col a[aria-current] { color: var(--cream); }
.foot a:hover { color: var(--cream); }
.foot .legal-line { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; margin-top: 10px; font-size: 13px; color: var(--dim); }
.foot sup { font-size: 0.6em; vertical-align: super; }
@media (max-width: 860px) {
  .foot .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; }
  .foot .brand { grid-column: 1 / -1; }
  .foot .legal-line { flex-direction: column; }
}

/* ---------- modal + toast ---------- */
.overlay { position: fixed; inset: 0; background: rgba(6, 4, 14, 0.78); z-index: 80; display: grid; place-items: center; padding: 20px; overflow: auto; }
.modal { width: min(820px, 100%); max-height: calc(100% - 20px); overflow: auto; background: var(--ink-2); border: 1px solid var(--line-2); border-radius: 18px; }
/* Cover: a wider crop than the 16:9 cards (2.2:1) so the title and the Play row land inside the first screen on a laptop. */
.mhero { position: relative; aspect-ratio: 2.2 / 1; }
.mhero img { width: 100%; height: 100%; object-fit: cover; }
.close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(15, 12, 26, 0.75); color: var(--cream); font-size: 24px; display: grid; place-items: center; }
.mbody { padding: 22px 26px 26px; display: flex; flex-direction: column; gap: 16px; }
.mtop { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.mtop .genre { display: inline-block; margin-bottom: 10px; }
.modal h2 { font-size: 46px; font-weight: 800; text-transform: uppercase; }
.modal .mtag { color: var(--muted); font-size: 17px; margin-top: 4px; }
.who.big span { display: flex; flex-direction: column; line-height: 1.2; }
.who.big small { color: var(--dim); font-weight: 500; }
.modal .desc { color: var(--muted); font-size: 17px; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.fact { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; min-width: 0; }
.fact small { display: block; color: var(--dim); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
.fact b { font-family: var(--display); font-size: 24px; font-weight: 700; }
.fine { color: var(--dim); font-size: 14px; }
.mfoot { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-top: -2px; }
.share { display: flex; align-items: center; gap: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 6px 6px 6px 14px; min-width: 0; flex: 1 1 320px; }
.share code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 15px/1.4 var(--body); color: var(--teal); }
.mfoot .acts { display: flex; gap: 10px; }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--cream); color: var(--ink); padding: 12px 18px; border-radius: 999px; font-weight: 600; z-index: 90; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); max-width: calc(100% - 32px); }

/* ---------- publisher page ---------- */
.urlbar { background: var(--ink-2); }
.urlbar .wrap { display: flex; align-items: center; gap: 12px; height: 46px; font-size: 14px; color: var(--dim); }
.pill-url { display: inline-flex; align-items: center; gap: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; color: var(--cream); font-weight: 600; }
.pill-url svg { width: 14px; height: 14px; color: var(--teal); }
.urlbar .copy { margin-left: auto; }
.phead { padding-block: 40px 28px; display: grid; grid-template-columns: 140px 1fr auto; gap: 26px; align-items: center; }
.phead .av { border: 4px solid var(--pink); }
.phead h1 { font-size: clamp(48px, 7vw, 84px); font-weight: 800; text-transform: uppercase; line-height: 0.9; }
.phead .handle { color: var(--pink); font-weight: 700; font-size: 20px; margin-top: 6px; }
.phead .bio { color: var(--muted); font-size: 18px; max-width: 60ch; margin-top: 10px; }
.phead .plinks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; align-items: center; }
.phead .plinks a, .phead .plinks span { font: 600 14px/1 var(--body); padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); }
.phead .plinks a:hover { color: var(--cream); border-color: var(--cream); }
.pacts { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.pacts .follow { font-size: 18px; padding: 12px 22px; }
.pstats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.pstat { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.pstat b { display: block; font-family: var(--display); font-size: 40px; font-weight: 800; line-height: 1; }
.pstat small { color: var(--dim); font-size: 14px; }
.today { display: grid; grid-template-columns: 480px 1fr; gap: 26px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 20px; }
.today .cover { aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; }
.today .cover img { width: 100%; height: 100%; object-fit: cover; }
.today .kicker { font: 700 13px/1 var(--body); letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold); }
.today h2 { font-size: clamp(40px, 4.6vw, 64px); font-weight: 800; text-transform: uppercase; margin-top: 8px; }
.today p { color: var(--muted); font-size: 17px; margin-top: 12px; max-width: 52ch; }
.clock { display: flex; gap: 10px; margin-top: 18px; }
.clock div { background: var(--ink); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; min-width: 76px; text-align: center; }
.clock b { display: block; font-family: var(--display); font-size: 34px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.clock small { color: var(--dim); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
.today .acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.lb { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.lb-list { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.lb-list h3 { font-size: 26px; font-weight: 700; text-transform: uppercase; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.lb-row { display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: center; padding: 11px 18px; border-bottom: 1px solid var(--line); }
.lb-row:last-child { border-bottom: 0; }
.lb-row .r { font-family: var(--display); font-size: 24px; font-weight: 800; color: var(--gold); }
.lb-row .n { font-weight: 600; }
.lb-row .n small { display: block; color: var(--dim); font-weight: 400; font-size: 13px; }
.lb-row .pts { font-variant-numeric: tabular-nums; color: var(--muted); }
.about { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; color: var(--muted); font-size: 17px; }
.about h3 { font-size: 26px; font-weight: 700; text-transform: uppercase; color: var(--cream); margin-bottom: 8px; }
.about p + p { margin-top: 10px; }
.made { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.made h3 { font-size: 30px; font-weight: 800; text-transform: uppercase; }
.made p { color: var(--muted); margin-top: 4px; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .nav-burger { display: inline-flex; }
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 4px; padding: 10px 16px 18px; background: var(--ink-2); box-shadow: 0 24px 40px rgba(0, 0, 0, 0.45); font-size: 26px; }
  .nav.open .nav-links { display: flex; }
  .nav-links a { padding: 12px 14px; color: var(--cream); }
  .nav-links a[aria-current] { color: var(--pink); background: transparent; }
  .hot { grid-template-columns: 1fr; }
  .build .wrap { grid-template-columns: 1fr; gap: 32px; }
  .term, .hero .term { height: 520px; }
  .term-body { padding: 22px 20px 18px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 24px; }
  .land { grid-template-columns: 1fr; }
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .equation { grid-template-columns: 1fr; }
  .eq-op { justify-self: center; font-size: 44px; }
  .today { grid-template-columns: 1fr; }
  .lb { grid-template-columns: 1fr; }
  .phead { grid-template-columns: 110px 1fr; }
  .phead .pacts { grid-column: 1 / -1; flex-direction: row; }
  .pstats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav .wrap { height: 60px; gap: 12px; }
  .nav-search { display: none; }
  .track .gcard { width: 300px; }
  .gbar { padding: 10px 10px 10px; font-size: 13px; }
  .grid { grid-template-columns: 1fr; }
  /* Creator rows become a tight chart list: rank, art, name over handle + players, lime pill at right. */
  .hot { gap: 4px; }
  .hot-row { grid-template-columns: 20px 72px minmax(0, 1fr) auto; gap: 10px; padding: 8px 6px 8px 2px; }
  .hot-row .rank { font-size: 20px; }
  .hot-row .thumb { width: 72px; }
  .hot-row h3 { font-size: 18px; line-height: 1.05; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .hot-row .who { font-size: 12px; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .hot-row .who .games { display: none; }
  .hot-row .trend { font-size: 12px; padding: 5px 8px; }
  .hot-row .trend .tw, .hot-row .players { display: none; }
  .nav-cta.btn.sm { padding: 8px 12px; font-size: 16px; }
  .land { grid-template-columns: minmax(0, 1fr); }
  .land-text { padding: 26px 22px; }
  .land-text code { white-space: normal; overflow-wrap: anywhere; }
  .mhero { aspect-ratio: 16 / 9; }
  .modal h2 { font-size: 34px; }
  .mbody { padding: 18px 18px 20px; }
  .facts { grid-template-columns: 1fr 1fr; }
  /* Lean facts stack as label/value rows on phones so long values like "Sweet workspace" never wrap. */
  .facts.lean { grid-template-columns: 1fr; gap: 6px; }
  .facts.lean .fact { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 14px; }
  .facts.lean .fact b { font-size: 20px; white-space: nowrap; }
  .plans { grid-template-columns: 1fr; }
  .live-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .btn.lg { font-size: 22px; padding: 14px 22px; white-space: normal; text-align: center; }
  .urlbar .wrap { height: auto; flex-wrap: wrap; padding-block: 8px; }
  .urlbar .wrap > span:first-child { display: none; }
  .phead { grid-template-columns: 1fr; }
  .phead .pacts { flex-direction: column; }
  .rowhead .hint { display: none; }
  .gtxt h3 { font-size: 20px; }
  .seg { display: flex; flex-wrap: wrap; gap: 6px; border: 0; background: none; border-radius: 0; }
  .seg button, .seg button + button { border: 1px solid var(--line); border-radius: 999px; background: var(--panel); }
  .seg button[aria-pressed="true"], .seg button + button[aria-pressed="true"] { background: var(--cream); color: var(--ink); border-color: var(--cream); }
}
@media (max-width: 400px) {
  /* Narrow phones: handle and player count on their own lines instead of truncating. */
  .hot-row .who { white-space: normal; }
  .hot-row .who .handle { display: block; }
  .hot-row .who .games + .sep { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cursor, .mod { animation: none; }
  .gcard, .btn { transition: none; }
  .gcard:hover { transform: none; }
}

/* ---------- wide screens: hero stats as a compact scoreboard ---------- */
@media (min-width: 1001px) {
  .hstat { flex-direction: column; align-items: flex-start; gap: 4px; padding: 18px 22px; }
  .hstat b { font-size: 56px; }
  .hstat small { font-size: 15px; }
}

/* ---------- legal pages (terms.html, privacy.html) ---------- */
.legal { padding-block: 28px 80px; }
.crumb { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--dim); }
.crumb a { color: var(--muted); font-weight: 600; }
.crumb a:hover { color: var(--cream); }
.legal-head { margin-top: 26px; max-width: 72ch; }
.legal-head .kicker { font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--pink); }
.legal-head h1 { font-size: clamp(52px, 7vw, 96px); font-weight: 800; text-transform: uppercase; line-height: 0.9; margin-top: 12px; }
.legal-head .lead { color: var(--muted); font-size: 19px; margin-top: 18px; }
.legal-head .jump { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.legal-head .jump .alt { color: var(--muted); }
.legal-head .effective { color: var(--dim); font-size: 14px; margin-top: 18px; }
.legal-grid { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 56px; margin-top: 44px; align-items: start; }
.toc { position: sticky; top: calc(68px + env(safe-area-inset-top, 0px) + 24px); max-height: calc(100vh - 120px); overflow: auto; padding-right: 8px; }
.toc-title { font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); margin-bottom: 12px; }
.toc ul, .toc ol { list-style: none; margin: 0; padding: 0; }
.toc > ul > li.part { margin-bottom: 18px; }
.toc > ul > li.part > a { display: block; font-family: var(--display); font-size: 22px; font-weight: 700; text-transform: uppercase; color: var(--cream); margin-bottom: 6px; }
.toc ol li a { display: flex; gap: 8px; padding: 4px 0; font-size: 14px; color: var(--muted); line-height: 1.35; }
.toc ol li a:hover, .toc ol li a.on { color: var(--cream); }
.toc ol li a.on { color: var(--pink); }
.toc .n { color: var(--dim); font-variant-numeric: tabular-nums; min-width: 1.6em; }
.toc-home { display: inline-block; margin-top: 8px; font-size: 14px; font-weight: 600; color: var(--muted); }
.toc-home:hover { color: var(--cream); }
.legal-body { max-width: 76ch; font-size: 17px; line-height: 1.6; }
.legal-part + .legal-part { margin-top: 72px; }
.part-head { margin-bottom: 26px; }
.part-kicker { font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal); }
.part-head h2 { font-size: clamp(36px, 4.6vw, 56px); font-weight: 800; text-transform: uppercase; line-height: 0.95; margin-top: 10px; }
.part-head + p { font-size: 18px; color: var(--muted); }
.legal-body h3 { display: flex; gap: 14px; align-items: baseline; font-size: 28px; font-weight: 700; text-transform: uppercase; margin: 38px 0 10px; scroll-margin-top: 110px; }
.legal-body h3 .n { color: var(--pink); font-variant-numeric: tabular-nums; }
.legal-body p { margin: 0 0 12px; }
.legal-body p strong { color: var(--cream); font-weight: 700; }
.legal-body ul { margin: 0 0 14px; padding-left: 22px; }
.legal-body li { margin: 0 0 8px; color: var(--muted); }
.legal-body li strong { color: var(--cream); }
.legal-body p { color: var(--muted); }
.legal-body a { color: var(--teal); font-weight: 600; }
.legal-body a:hover { color: var(--cream); }
.short { background: var(--panel); border: 1px solid var(--line-2); border-radius: 16px; padding: 20px 24px 12px; margin: 0 0 8px; }
.short h3 { margin: 0 0 12px; font-size: 24px; color: var(--teal); }
.short ul { padding-left: 0; list-style: none; }
.short li { padding-left: 22px; position: relative; color: var(--cream); }
.short li::before { content: ""; position: absolute; left: 0; top: 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--pink); }
.short li strong { color: var(--cream); }
.short-note { color: var(--dim) !important; font-size: 14px; margin: 4px 0 8px !important; }
mark.todo { background: rgba(242, 193, 78, 0.18); color: var(--gold); border-radius: 4px; padding: 0 4px; }
.legal-end { margin-top: 48px; color: var(--dim); font-size: 15px; }
.nav .btn.ghost.sm.nav-cta { border-color: var(--line-2); }
@media (max-width: 1000px) {
  .legal-grid { grid-template-columns: 1fr; gap: 28px; }
  .toc { position: static; max-height: none; }
  .toc > ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .toc ol { display: none; }
}
