:root {
  --bg: #0e0d0b;
  --bg2: #14120f;
  --panel: #191612;
  --ink: #efe9dd;
  --muted: #9b9384;
  --line: rgba(239,233,221,0.10);
  --acc: oklch(0.88 0.21 128);
  --acc-dim: oklch(0.88 0.21 128 / 0.18);
  --acc-glow: oklch(0.88 0.21 128 / 0.55);
  --blue: #6fb3ff;
  --blue-dim: rgba(111,179,255,0.18);
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Instrument Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body { font-family: var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--acc); }
h1, h2, h3, p { margin: 0; }
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }
.mono { font-family: var(--mono); }
.wrap { width: min(1200px, calc(100% - 64px)); margin: 0 auto; }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--acc); }
.lede { font-size: clamp(17px, 1.3vw, 20px); line-height: 1.55; color: var(--muted); text-wrap: pretty; }
.btn { display: inline-flex; align-items: center; gap: 12px; height: 56px; padding: 0 26px; border-radius: 999px; background: var(--acc); color: #0e0d0b; font-weight: 600; font-size: 16px; box-shadow: 0 0 0 0 var(--acc-glow); transition: transform .25s ease, box-shadow .25s ease; }
.btn:hover { color: #0e0d0b; transform: translateY(-2px); box-shadow: 0 12px 40px -8px var(--acc-glow); }
.btn-ghost { display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 8px; color: var(--ink); font-weight: 500; font-size: 16px; border-bottom: 1px solid transparent; }
.btn-ghost:hover { color: var(--acc); }
.grain { position: fixed; inset: 0; pointer-events: none; opacity: .06; mix-blend-mode: screen; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='160' height='160' filter='url(%23n)' opacity='0.8'/></svg>"); z-index: 5; }

/* ---------- reveal on load + on scroll ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.rise { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
.d1 { animation-delay: .05s } .d2 { animation-delay: .18s } .d3 { animation-delay: .32s } .d4 { animation-delay: .46s } .d5 { animation-delay: .6s }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
html { scroll-behavior: smooth; }

/* ---------- hero board ---------- */
.board { position: relative; width: 400px; height: 400px; border-radius: 6px; overflow: hidden;
  background: conic-gradient(#3b3630 25%, #221f1b 0 50%, #3b3630 0 75%, #221f1b 0) 0 0 / 100px 100px;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.06); }
.pc { position: absolute; width: 50px; height: 50px; }
.pc.w path { fill: #f1ebdf; } .pc.b path { fill: #100f0d; stroke: #4a443c; stroke-width: 2; }
.ghost path { fill: var(--acc) !important; stroke: none !important; opacity: .85; }
.ov { position: absolute; inset: 0; width: 100%; height: 100%; }
.arrow { stroke: var(--acc); stroke-width: 9; stroke-linecap: round; fill: none; filter: drop-shadow(0 0 8px var(--acc-glow)); stroke-dasharray: 400; stroke-dashoffset: 400; opacity: 0; }
.arrow.a1 { animation: draw1 9s ease-in-out infinite; }
.arrow.a2 { animation: draw2 9s ease-in-out infinite; }
@keyframes draw1 { 0%,5% { stroke-dashoffset: 400; opacity: 0 } 6% { opacity: 1 } 13% { stroke-dashoffset: 0; opacity: 1 } 25% { stroke-dashoffset: 0; opacity: 1 } 30%,100% { stroke-dashoffset: 0; opacity: 0 } }
@keyframes draw2 { 0%,52% { stroke-dashoffset: 400; opacity: 0 } 53% { opacity: 1 } 60% { stroke-dashoffset: 0; opacity: 1 } 72% { stroke-dashoffset: 0; opacity: 1 } 77%,100% { stroke-dashoffset: 0; opacity: 0 } }
.g1 { animation: ghost1 9s ease infinite; opacity: 0 } .g2 { animation: ghost2 9s ease infinite; opacity: 0 }
@keyframes ghost1 { 0%,8% { opacity: 0; transform: scale(.7) } 13%,22% { opacity: .85; transform: scale(1) } 26%,100% { opacity: 0; transform: scale(1) } }
@keyframes ghost2 { 0%,55% { opacity: 0; transform: scale(.7) } 60%,68% { opacity: .85; transform: scale(1) } 73%,100% { opacity: 0; transform: scale(1) } }
.m-knight { animation: mv1 9s cubic-bezier(.4,0,.2,1) infinite; }
.m-pawn { animation: mv2 9s cubic-bezier(.4,0,.2,1) infinite; }
.m-bishop { animation: mv3 9s cubic-bezier(.4,0,.2,1) infinite; }
@keyframes mv1 { 0%,22% { transform: translate(0,0) } 30%,96% { transform: translate(-50px,-100px) } 100% { transform: translate(0,0) } }
@keyframes mv2 { 0%,38% { transform: translate(0,0) } 45%,96% { transform: translate(0,100px) } 100% { transform: translate(0,0) } }
@keyframes mv3 { 0%,69% { transform: translate(0,0) } 77%,96% { transform: translate(-150px,-150px) } 100% { transform: translate(0,0) } }
.scan { position: absolute; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--acc), transparent); opacity: .7; animation: scan 9s linear infinite; }
@keyframes scan { 0% { top: -2px; opacity: .7 } 5% { top: 100%; opacity: .7 } 6%,100% { opacity: 0; top: 100% } }
.evalbar { width: 14px; height: 400px; border-radius: 4px; background: #100f0d; overflow: hidden; position: relative; box-shadow: 0 0 0 1px rgba(255,255,255,.06); }
.evalfill { position: absolute; left: 0; right: 0; bottom: 0; background: #f1ebdf; animation: evalf 9s ease-in-out infinite; }
@keyframes evalf { 0%,20% { height: 51% } 32%,40% { height: 54% } 47%,68% { height: 52% } 80%,100% { height: 57% } }
.float { animation: float 7s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0) rotate(-1.2deg) } 50% { transform: translateY(-10px) rotate(-1.2deg) } }
.halo { position: absolute; width: 640px; height: 640px; border-radius: 50%; background: radial-gradient(closest-side, oklch(0.88 0.21 128 / 0.16), transparent 70%); filter: blur(10px); animation: halo 7s ease-in-out infinite; }
@keyframes halo { 0%,100% { transform: scale(1); opacity: .8 } 50% { transform: scale(1.12); opacity: 1 } }

/* ---------- marquee ---------- */
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.track { display: flex; gap: 0; width: max-content; animation: slide 38s linear infinite; }
.track span { display: inline-flex; align-items: center; gap: 28px; padding: 18px 28px 18px 0; font-family: var(--mono); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.track i { width: 6px; height: 6px; border-radius: 50%; background: var(--acc); display: inline-block; }
@keyframes slide { from { transform: translateX(0) } to { transform: translateX(-50%) } }

/* ---------- typewriter ---------- */
.type { display: inline-block; overflow: hidden; white-space: nowrap; border-right: 2px solid var(--acc); max-width: 100%; animation: typing 5.5s steps(120) infinite, caret .8s step-end infinite; }
@keyframes typing { 0% { width: 0 } 60% { width: 100% } 92% { width: 100% } 100% { width: 0 } }
@keyframes caret { 50% { border-color: transparent } }

/* ---------- softmax bars ---------- */
.bar { height: 30px; border-radius: 3px; background: linear-gradient(90deg, var(--acc-dim), var(--acc)); animation: grow 7s cubic-bezier(.2,.7,.2,1) infinite; width: 0; }
@keyframes grow { 0% { width: 0 } 18% { width: var(--w) } 85% { width: var(--w) } 100% { width: 0 } }
.b2 { animation-delay: .08s } .b3 { animation-delay: .16s } .b4 { animation-delay: .24s } .b5 { animation-delay: .32s }
.pick { animation: pick 7s ease infinite; opacity: 0 }
@keyframes pick { 0%,30% { opacity: 0; transform: translateX(-6px) } 38%,80% { opacity: 1; transform: none } 88%,100% { opacity: 0 } }

/* ---------- adaptation dial ---------- */
.needle-eff { animation: drift 8s ease-in-out infinite; }
@keyframes drift { 0% { left: 50% } 35% { left: 61% } 55% { left: 59% } 75% { left: 62% } 100% { left: 50% } }
.needle-opp { animation: oppin 8s ease-in-out infinite; }
@keyframes oppin { 0% { opacity: 0; transform: translateY(6px) } 12% { opacity: 1; transform: none } 90% { opacity: 1 } 100% { opacity: 0 } }
.conf { animation: conf 8s linear infinite; }
@keyframes conf { 0% { width: 0 } 50%,100% { width: 100% } }

/* ---------- governor trace ---------- */
.trace { stroke: var(--acc); stroke-width: 2.5; fill: none; stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: tracein 10s linear infinite; filter: drop-shadow(0 0 6px var(--acc-glow)); }
@keyframes tracein { 0% { stroke-dashoffset: 1400 } 70% { stroke-dashoffset: 0 } 92% { stroke-dashoffset: 0; opacity: 1 } 100% { stroke-dashoffset: 0; opacity: 0 } }
.band { animation: band 10s ease-in-out infinite; }
@keyframes band { 0%,100% { opacity: .55 } 50% { opacity: .9 } }

/* ---------- cards ---------- */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 30px; transition: transform .3s ease, border-color .3s ease; }
.card:hover { transform: translateY(-4px); border-color: rgba(239,233,221,.22); }
.num { font-family: var(--serif); font-size: clamp(44px, 4.6vw, 68px); line-height: 1; letter-spacing: -0.02em; }
.stage { position: relative; }
.stage:not(:last-child)::after { content: ""; position: absolute; top: 22px; right: -14px; width: 28px; height: 1px; background: var(--line); }

/* ---------- pricing shimmer ---------- */
.price { position: relative; border-radius: 26px; padding: 2px; background: linear-gradient(120deg, rgba(239,233,221,.08), var(--acc), rgba(239,233,221,.08), var(--acc)); background-size: 300% 300%; animation: shimmer 8s linear infinite; }
@keyframes shimmer { from { background-position: 0% 50% } to { background-position: 300% 50% } }
.price-in { background: #121009; border-radius: 24px; padding: 48px; }
.check { width: 18px; height: 18px; flex: none; }
.check path { stroke: var(--acc); stroke-width: 2.4; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.ph { background: var(--acc-dim); color: var(--acc); padding: 0 .18em; border-radius: 6px; border: 1px dashed oklch(0.88 0.21 128 / 0.6); }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .wrap { width: calc(100% - 40px); }
  .hero-grid { grid-template-columns: 1fr !important; gap: 48px !important; }
  .hero-art { justify-content: center !important; }
  .scale { transform: scale(.74); transform-origin: top center; }
  .hero-art { min-height: 360px !important; }
  .halo { width: 420px; height: 420px; }
  .cols-2, .cols-3, .cols-4, .cols-5 { grid-template-columns: 1fr !important; }
  .stage:not(:last-child)::after { display: none; }
  .nav-links { display: none !important; }
  .price-in { padding: 32px 24px; }
}
  

/* ---- account page ---- */
.auth-card { width: min(460px, 100%); background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 34px 34px 30px; display: flex; flex-direction: column; gap: 18px; }
.auth-h { font-size: clamp(30px, 3.4vw, 40px); line-height: 1.05; letter-spacing: -0.02em; margin: 6px 0 4px; }
.tabs { display: flex; gap: 6px; padding: 4px; border-radius: 999px; border: 1px solid var(--line); background: rgba(0,0,0,.25); align-self: flex-start; }
.tab { appearance: none; border: 0; background: transparent; color: var(--muted); font: 500 14px var(--sans); padding: 8px 16px; border-radius: 999px; cursor: pointer; }
.tab.on { background: var(--ink); color: var(--bg); }
.stack { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.field input { height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid rgba(239,233,221,.16); background: #0e0d0b; color: var(--ink); font: 400 15px var(--sans); outline: none; transition: border-color .2s ease; }
.field input:focus { border-color: var(--acc); }
.field input:disabled, .btn:disabled { opacity: .6; }
.link { appearance: none; border: 0; background: transparent; padding: 0; color: var(--muted); font: 500 14px var(--sans); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link:hover { color: var(--acc); }
.fine { font-size: 12px; color: var(--muted); line-height: 1.5; }
.msg { font-size: 14px; line-height: 1.45; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); }
.msg.err { color: #ffb4a8; border-color: rgba(255,120,100,.35); background: rgba(255,120,100,.08); }
.msg.ok { color: var(--acc); border-color: var(--acc-dim); background: var(--acc-dim); }
.status { font-family: var(--mono); font-size: 13px; letter-spacing: .04em; color: var(--muted); }
.status.ok { color: var(--acc); }
.status.off { color: #ffb4a8; }
.status.friend { color: var(--blue); }

/* ---- signed-in nav chip + dashboard ---- */
.chip { display: inline-flex; align-items: center; gap: 10px; height: 42px; padding: 0 16px 0 6px; border-radius: 999px; border: 1px solid rgba(239,233,221,.18); font-size: 14px; font-weight: 500; color: var(--ink); max-width: 260px; }
.chip:hover { border-color: var(--acc); color: var(--ink); }
.nav-links a.on { color: var(--acc); }
.avatar.friend { background: var(--blue); }
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 999px; background: var(--acc); color: var(--bg); font-weight: 600; font-size: 14px; flex: none; }
.chip-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; padding: 24px 0 36px; border-bottom: 1px solid var(--line); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 36px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.stat .k { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.stat .v { font-family: var(--serif); font-size: 52px; line-height: 1; letter-spacing: -0.02em; }
.stat .v.dim { color: var(--muted); }
.sub-card { margin-top: 36px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 16px; }
.sub-card .bar { height: 8px; border-radius: 999px; background: rgba(239,233,221,.08); overflow: hidden; width: 100%; animation: none; }
.sub-card .bar > i { display: block; height: 100%; background: var(--acc); border-radius: 999px; transition: width .4s ease; }
.sub-card .bar > i.friend { background: var(--blue); }
@media (max-width: 860px) { .stats { grid-template-columns: 1fr 1fr; } .sub-card { grid-template-columns: 1fr; } .chip-text { display: none; } .chip { padding-right: 6px; } }

/* ---- admin accounts page ---- */
.search { height: 48px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(239,233,221,.18); background: var(--bg); color: var(--ink); font: 400 14px var(--sans); outline: none; width: 240px; }
.search:focus { border-color: var(--acc); }
.counts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 36px; }
.count { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 20px 24px; display: flex; flex-direction: column; gap: 8px; }
.count .k { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.count .v { font-family: var(--serif); font-size: 40px; line-height: 1; letter-spacing: -0.02em; }
.count .v.ok { color: var(--acc); } .count .v.friend { color: var(--blue); }
.tablewrap { margin-top: 24px; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; overflow-x: auto; }
.accounts { width: 100%; border-collapse: collapse; font-size: 14px; }
.accounts th { text-align: left; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 400; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.accounts td { padding: 12px 18px; border-bottom: 1px solid var(--line); white-space: nowrap; vertical-align: middle; }
.accounts tr:last-child td { border-bottom: 0; }
.accounts tr.friend td.email { color: var(--blue); }
.accounts .you { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--acc); border: 1px solid var(--acc-dim); border-radius: 999px; padding: 2px 7px; margin-left: 8px; }
.accounts .dim { color: var(--muted); font-size: 12px; }
.accounts .empty { color: var(--muted); font-family: var(--mono); font-size: 13px; text-align: center; padding: 36px; }
.accounts select, .accounts input[type="date"] { height: 36px; padding: 0 10px; border-radius: 10px; border: 1px solid rgba(239,233,221,.16); background: var(--bg); color: var(--ink); font: 400 13px var(--mono); outline: none; color-scheme: dark; }
.accounts select:focus, .accounts input[type="date"]:focus { border-color: var(--acc); }
.accounts select:disabled, .accounts input:disabled { opacity: .35; }
.accounts input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--acc); }
.accounts td.exp { display: flex; gap: 8px; align-items: center; }
.accounts button { height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(239,233,221,.18); background: transparent; color: var(--ink); font: 500 13px var(--sans); cursor: pointer; }
.accounts button.save { background: var(--acc); color: var(--bg); border-color: var(--acc); font-weight: 600; }
.accounts button:hover { border-color: var(--acc); }
.accounts button:disabled { opacity: .6; cursor: default; }
@media (max-width: 860px) { .counts { grid-template-columns: 1fr 1fr; } .search { width: 100%; } }

/* ---- dashboard: play summary + recent games ---- */
.play-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 18px; }
.play-grid div { display: flex; flex-direction: column; gap: 4px; border-top: 1px solid var(--line); padding-top: 10px; }
.play-grid b { font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1; letter-spacing: -0.02em; }
.play-grid span { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.games-card { margin-top: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.games-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.games-head .k { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.games { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 12.5px; }
.games th { text-align: left; color: var(--muted); font-weight: 400; padding: 8px 10px; border-bottom: 1px solid var(--line); letter-spacing: .04em; white-space: nowrap; }
.games td { padding: 9px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.games tr:last-child td { border-bottom: 0; }
.games td.w { color: var(--acc); } .games td.d { color: #f0b64a; } .games td.l { color: #ffb4a8; } .games td.dim { color: var(--muted); }
.games td.empty { color: var(--muted); text-align: center; padding: 28px; }
.games button.pgn { height: 26px; padding: 0 10px; border-radius: 999px; border: 1px solid rgba(239,233,221,.18); background: transparent; color: var(--ink); font: 500 11px var(--sans); cursor: pointer; }
.games button.pgn:hover { border-color: var(--acc); }
@media (max-width: 860px) { .play-grid { grid-template-columns: 1fr 1fr; } }

/* ---- paywall ---- */
.paywall { margin-top: 36px; display: grid; grid-template-columns: 1.3fr .7fr; gap: 16px; }
.paywall-copy { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.paywall-copy h2 { font-size: clamp(28px, 3vw, 40px); line-height: 1.05; letter-spacing: -0.02em; margin: 0; }
.paywall-list { margin: 4px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 15px; color: var(--ink); }
.paywall-list li { position: relative; padding-left: 26px; }
.paywall-list li::before { content: ""; position: absolute; left: 0; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--acc-dim); box-shadow: inset 0 0 0 1px var(--acc); }
.paywall-buy { position: relative; border-radius: 18px; padding: 28px; background: var(--panel); border: 1px solid var(--acc); box-shadow: 0 0 0 1px var(--acc-dim), 0 24px 70px -30px var(--acc-glow); display: flex; flex-direction: column; gap: 14px; }
.paywall-price { display: flex; align-items: baseline; gap: 8px; }
.paywall-price .serif { font-size: 56px; line-height: 1; letter-spacing: -0.03em; }
.member { transition: filter .4s ease, opacity .4s ease; }
.member.locked { filter: blur(6px) saturate(.6); opacity: .45; pointer-events: none; user-select: none; }
@media (max-width: 860px) { .paywall { grid-template-columns: 1fr; } }

/* ---- unsubscribed dashboard: locked pill, unlock grid, steps, preview overlay ---- */
.lock-pill { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 18px; border-radius: 999px; border: 1px dashed rgba(239,233,221,.22); color: var(--muted); font-family: var(--mono); font-size: 13px; letter-spacing: .04em; }
.lock-pill svg, .unlock-card .lock svg, .member-overlay > svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.unlock-grid { margin-top: 16px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.unlock-card { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 12px; transition: border-color .25s ease, transform .25s ease; }
.unlock-card:hover { border-color: var(--acc); transform: translateY(-2px); }
.unlock-card .lock { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 999px; background: var(--acc-dim); color: var(--acc); }
.unlock-card .k { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.unlock-card p { font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.steps { margin-top: 16px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 20px 24px; border-radius: 18px; border: 1px solid var(--line); background: var(--bg2); color: var(--muted); }
.step .n { font-family: var(--serif); font-size: 32px; line-height: 1; letter-spacing: -0.02em; color: var(--muted); }
.step .t { font-size: 16px; font-weight: 500; color: var(--ink); }
.step.on { border-color: var(--acc); box-shadow: 0 0 0 1px var(--acc-dim); }
.step.on .n { color: var(--acc); }
.step:not(.on) .t { color: var(--muted); }
.preview-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.preview-head .k { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--acc); }
.member-wrap { position: relative; }
.member-overlay { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 24px; color: var(--ink); }
.member-overlay > svg { width: 28px; height: 28px; color: var(--acc); }
.member-overlay .serif { font-size: 34px; letter-spacing: -0.02em; }
.member-overlay .btn { margin-top: 8px; }
.member.locked { filter: blur(7px) saturate(.5); opacity: .35; }
@media (max-width: 860px) { .unlock-grid, .steps { grid-template-columns: 1fr; } .member-overlay .serif { font-size: 26px; } }

/* Downloads without a file yet (releases.js has null for the platform) */
.btn.soon { background: transparent; color: var(--muted); border: 1px dashed rgba(239,233,221,.25); box-shadow: none; cursor: default; }
.btn.soon:hover { transform: none; box-shadow: none; color: var(--muted); }
/* changelog.html */
.current { display: flex; align-items: center; gap: 36px; flex-wrap: wrap; margin-top: 10px; padding: 18px 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.current > div { display: flex; flex-direction: column; gap: 4px; }
.current .lbl { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.current b { font-weight: 500; font-size: 15px; }
.current .btn { margin-left: auto; }
.release { display: grid; grid-template-columns: 200px 1fr; gap: 48px; padding: 44px 0; border-top: 1px solid var(--line); }
.release:last-child { border-bottom: 1px solid var(--line); }
.release-side { position: sticky; top: 24px; align-self: start; }
.release-ver { font-size: 36px; line-height: 1; letter-spacing: -0.02em; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.release-ver .latest { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #0e0d0b; background: var(--acc); padding: 4px 8px; border-radius: 999px; }
.release-date { margin-top: 10px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.release-avail { display: flex; flex-direction: column; gap: 6px; margin-top: 18px; }
.avail { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.avail.on { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.avail.on:hover { color: var(--acc); }
.release-notes { display: flex; flex-direction: column; gap: 26px; }
.note { display: grid; grid-template-columns: 84px 1fr; gap: 18px; align-items: start; }
.note .kind { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; padding: 5px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); text-align: center; margin-top: 3px; }
.note .kind.new { color: var(--acc); border-color: var(--acc-dim); background: var(--acc-dim); }
.note .kind.improved { color: var(--blue); border-color: var(--blue-dim); background: var(--blue-dim); }
.note .kind.fixed { color: #ffb4a8; border-color: rgba(255,180,168,.2); background: rgba(255,180,168,.12); }
.note h3 { font-size: 19px; font-weight: 500; line-height: 1.3; }
.note p { margin-top: 6px; font-size: 15.5px; line-height: 1.6; color: var(--muted); max-width: 60ch; }
@media (max-width: 860px) {
  .release { grid-template-columns: 1fr; gap: 20px; }
  .release-side { position: static; }
  .note { grid-template-columns: 1fr; gap: 8px; }
  .note .kind { justify-self: start; }
  .current .btn { margin-left: 0; }
}

/* subscription tile links (manage on Stripe, support) */
#sub-links { display: flex; gap: 14px; }
#sub-links a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
#sub-links a:hover { color: var(--acc); }
#sub-links:not(:has(a:not([hidden]))) { display: none; }

/* ---------------------------------------------------------------- threads */
.th-wrap { display: flex; flex-direction: column; gap: 14px; }
.th-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.th-cats { display: flex; gap: 6px; flex-wrap: wrap; }
.th-chip { appearance: none; height: 32px; padding: 0 13px; border-radius: 999px; border: 1px solid transparent; background: transparent; color: var(--muted); font: 500 13px var(--sans); cursor: pointer; display: inline-flex; align-items: center; gap: 7px; transition: color .2s ease, background .2s ease; }
.th-chip .th-n { font-family: var(--mono); font-size: 11px; opacity: .6; }
.th-chip:hover { color: var(--ink); background: rgba(239,233,221,.05); }
.th-chip.on { color: var(--ink); background: rgba(239,233,221,.08); border-color: var(--line); }
.th-card { padding: 22px 24px; display: flex; flex-direction: column; gap: 12px; }
.th-form { display: flex; flex-direction: column; gap: 10px; }
.th-form input, .th-form textarea, .th-form select, .th-inline input {
  padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(239,233,221,.14); background: #0e0d0b; color: var(--ink);
  font: 400 15px var(--sans); outline: none; transition: border-color .2s ease; resize: vertical; width: 100%; box-sizing: border-box; }
.th-form input:focus, .th-form textarea:focus, .th-form select:focus, .th-inline input:focus { border-color: var(--acc); }
.th-form select { appearance: none; cursor: pointer; }
.th-inline { display: flex; gap: 10px; align-items: center; }
.th-inline input { flex: 1; }
.th-ghost { appearance: none; height: 46px; padding: 0 18px; border-radius: 999px; border: 1px solid rgba(239,233,221,.18); background: transparent; color: var(--ink); font: 500 15px var(--sans); cursor: pointer; }
.th-ghost:hover { border-color: var(--acc); }

/* The list: quiet rows separated by hairlines, no boxes. */
.th-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); margin-top: 4px; }
.th-row { display: grid; grid-template-columns: 48px 1fr; gap: 14px; padding: 20px 10px 20px 2px; border-bottom: 1px solid var(--line); border-radius: 0; transition: background .2s ease; }
.th-row:hover { background: rgba(239,233,221,.025); }
.th-row.pinned { background: linear-gradient(90deg, rgba(185,242,74,.05), transparent 45%); }
.th-main { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.th-vote { display: flex; flex-direction: column; align-items: center; gap: 0; padding-top: 2px; }
.th-vote button { appearance: none; border: 0; background: transparent; color: rgba(155,147,132,.6); font-size: 10px; line-height: 1; width: 30px; height: 22px; border-radius: 7px; cursor: pointer; transition: color .15s ease, background .15s ease; }
.th-vote button:hover { background: rgba(239,233,221,.07); color: var(--ink); }
.th-vote .up.on { color: var(--acc); }
.th-vote .down.on { color: #ef6b5a; }
.th-score { font-family: var(--mono); font-size: 13px; font-weight: 500; color: var(--ink); line-height: 18px; }
.th-tags { display: flex; gap: 8px; align-items: center; }
.th-cat { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; padding: 2px 7px; border-radius: 6px; color: var(--muted); background: rgba(239,233,221,.06); }
.th-cat.announcement { color: var(--acc); background: rgba(185,242,74,.12); }
.th-cat.bug { color: #ef8a7c; background: rgba(239,107,90,.14); }
.th-cat.idea { color: #f0c46b; background: rgba(240,182,74,.14); }
.th-cat.help { color: #8ec2ff; background: rgba(111,179,255,.14); }
.th-pin { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--acc); opacity: .85; }
.th-title { font: 500 17.5px/1.3 var(--sans); letter-spacing: -0.005em; color: var(--ink); text-wrap: pretty; }
.th-title:hover { color: var(--acc); }
.th-snippet { color: var(--muted); font-size: 14px; line-height: 1.5; opacity: .9; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.th-meta { display: flex; gap: 7px; align-items: center; flex-wrap: wrap; font-size: 12.5px; color: rgba(155,147,132,.85); margin-top: 2px; }
.th-meta a { color: inherit; } .th-meta a:hover { color: var(--acc); }
.th-author { color: var(--ink); opacity: .85; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.th-team, .th-friend { font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; padding: 2px 6px; border-radius: 5px; }
.th-team { background: rgba(185,242,74,.16); color: var(--acc); }
.th-friend { background: rgba(111,179,255,.14); color: #8ec2ff; }
.th-del { appearance: none; border: 0; background: transparent; color: inherit; font: 400 12.5px var(--sans); cursor: pointer; padding: 0; }
.th-del:hover { color: #ef6b5a; }
.th-empty { padding: 32px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 16px; margin-top: 12px; }

/* Thread page */
.th-thread { display: flex; flex-direction: column; gap: 12px; }
.th-h1 { font-size: clamp(30px, 4vw, 42px); line-height: 1.08; letter-spacing: -0.02em; margin: 2px 0 0; }
.th-post { display: grid; grid-template-columns: 48px 1fr; gap: 14px; padding: 22px 22px 22px 6px; margin-top: 6px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.th-reply { display: grid; grid-template-columns: 48px 1fr; gap: 14px; padding: 18px 10px 18px 2px; border-bottom: 1px solid var(--line); }
.th-reply:target { background: linear-gradient(90deg, rgba(185,242,74,.06), transparent 50%); }
.th-body { font-size: 16px; line-height: 1.65; color: var(--ink); min-width: 0; overflow-wrap: anywhere; text-wrap: pretty; }
.th-reply .th-body { font-size: 15px; }
.th-body p { margin: 0 0 12px; } .th-body p:last-child { margin-bottom: 0; }
.th-body ul { margin: 0 0 12px; padding-left: 20px; } .th-body li { margin: 4px 0; }
.th-body a { color: var(--acc); text-decoration: underline; text-underline-offset: 3px; }
.th-tools { display: flex; gap: 8px; }
.th-tools button { appearance: none; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(239,233,221,.18); background: transparent; color: var(--ink); font: 500 13px var(--sans); cursor: pointer; }
.th-tools button:hover { border-color: var(--acc); }
.th-tools button.danger:hover { border-color: #ef6b5a; color: #ef6b5a; }
.th-back { color: var(--muted); font-size: 13px; }
.msg.ok { border-color: var(--acc-dim); color: var(--acc); }
.msg.bad { border-color: rgba(239,107,90,.4); color: #ef6b5a; }

/* Notifications */
.th-notif { display: flex; gap: 14px; align-items: flex-start; padding: 16px 10px 16px 4px; border-bottom: 1px solid var(--line); }
.th-notif.unread { background: linear-gradient(90deg, rgba(185,242,74,.06), transparent 45%); }
.th-notif .ico { width: 30px; height: 30px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: rgba(239,233,221,.06); color: var(--acc); flex: none; font-size: 12px; }
.th-notif .txt { display: flex; flex-direction: column; gap: 3px; font-size: 14.5px; line-height: 1.45; color: var(--muted); }
.th-notif .txt b { color: var(--ink); font-weight: 500; }
.th-notif .txt a { color: var(--ink); font: 500 16px var(--sans); } .th-notif .txt a:hover { color: var(--acc); }
@media (max-width: 640px) { .th-row, .th-reply, .th-post { grid-template-columns: 40px 1fr; gap: 10px; } .th-title { font-size: 16.5px; } }

.bell { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; margin-right: 10px; border-radius: 999px; border: 1px solid rgba(239,233,221,.18); color: var(--muted); vertical-align: middle; }
.bell:hover { color: var(--ink); border-color: var(--acc); }
.bell b { position: absolute; top: -5px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--acc); color: var(--bg); font: 600 11px var(--mono); display: inline-flex; align-items: center; justify-content: center; }

/* ------------------------------------------------------------------ legal */
.foot-links a { color: var(--muted); } .foot-links a:hover { color: var(--acc); }
.legal-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 6px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); font-size: 14px; }
.legal-meta .lbl { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.legal-toc { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 12px; padding: 18px 0 6px; }
.legal-toc a { color: var(--muted); } .legal-toc a:hover { color: var(--acc); }
.legal-sec { display: grid; grid-template-columns: 64px 1fr; gap: 24px; padding: 36px 0; border-top: 1px solid var(--line); }
.legal-sec:first-of-type { margin-top: 14px; }
.legal-n { color: var(--acc); font-size: 13px; letter-spacing: .1em; padding-top: 8px; }
.legal-sec h2 { font-size: 30px; line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 14px; }
.legal-sec p, .legal-sec li { font-size: 16px; line-height: 1.65; color: var(--ink); text-wrap: pretty; }
.legal-sec p { margin: 0 0 12px; } .legal-sec p:last-child { margin-bottom: 0; }
.legal-sec ul { margin: 6px 0 0; padding-left: 20px; } .legal-sec li { margin: 6px 0; }
.legal-sec li b { color: var(--acc); font-weight: 600; }
.legal-foot { padding: 30px 0 0; border-top: 1px solid var(--line); }
.legal-foot a { font-family: var(--serif); font-size: 22px; } .legal-foot a:hover { color: var(--acc); }
@media (max-width: 640px) { .legal-sec { grid-template-columns: 1fr; gap: 6px; padding: 28px 0; } }

/* ------------------------------------------------------------ game review */
.games tr.game-row { cursor: pointer; transition: background .15s ease; }
.games tr.game-row:hover td { background: rgba(239,233,221,.035); }
.games tr.game-row.busy td { opacity: .6; }
.an-overlay { position: fixed; inset: 0; z-index: 50; background: rgba(8,7,5,.72); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 24px; }
.an-win { width: min(1060px, 100%); max-height: calc(100vh - 48px); overflow: auto; background: var(--panel); border: 1px solid rgba(239,233,221,.14); border-radius: 22px; padding: 26px 28px 24px; box-shadow: 0 40px 120px -30px rgba(0,0,0,.9); }
.an-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.an-title { font-size: 30px; line-height: 1.05; letter-spacing: -0.02em; margin-top: 8px; }
.an-vs { color: var(--muted); }
.an-sub { font-size: 12px; color: var(--muted); margin-top: 8px; letter-spacing: .02em; }
.an-close { appearance: none; border: 1px solid rgba(239,233,221,.16); background: transparent; color: var(--muted); width: 38px; height: 38px; border-radius: 999px; font-size: 22px; line-height: 1; cursor: pointer; flex: none; }
.an-close:hover { color: var(--ink); border-color: var(--acc); }
.an-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 20px 0 18px; }
.an-stats > div { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: rgba(0,0,0,.2); }
.an-stats b { font-family: var(--serif); font-size: 26px; font-weight: 400; letter-spacing: -0.01em; }
.an-stats span { font-size: 12px; color: var(--muted); }
.an-body { display: grid; grid-template-columns: 380px 1fr; gap: 26px; align-items: start; }
.an-boardwrap { border-radius: 10px; overflow: hidden; border: 1px solid rgba(255,255,255,.06); line-height: 0; }
.an-board { width: 100%; height: auto; display: block; }
.an-nav { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 12px; }
.an-nav button { appearance: none; border: 1px solid rgba(239,233,221,.16); background: transparent; color: var(--ink); width: 38px; height: 34px; border-radius: 10px; font-size: 16px; cursor: pointer; }
.an-nav button:hover { border-color: var(--acc); color: var(--acc); }
.an-pos { min-width: 120px; text-align: center; font-size: 13px; }
.an-note { margin-top: 12px; font-size: 14px; line-height: 1.55; color: var(--muted); min-height: 44px; display: flex; flex-wrap: wrap; gap: 6px 4px; }
.an-note b { color: var(--ink); font-weight: 600; }
.an-dot { opacity: .5; }
.an-inacc { color: #f0c46b; } .an-mist { color: #f0a06b; } .an-blun { color: #ef8a7c; }
.an-chart { position: relative; margin-bottom: 14px; }
.an-chart-svg { width: 100%; height: 132px; display: block; cursor: crosshair; }
.an-chart-empty { padding: 20px; text-align: center; color: var(--muted); font-size: 12px; border: 1px dashed var(--line); border-radius: 12px; }
.an-tip { position: absolute; top: 4px; padding: 5px 9px; border-radius: 8px; background: #0e0d0b; border: 1px solid var(--line); font-size: 12px; color: var(--muted); pointer-events: none; white-space: nowrap; }
.an-tip b { color: var(--ink); margin-right: 6px; }
.an-moves { max-height: 300px; overflow: auto; border: 1px solid var(--line); border-radius: 14px; padding: 6px 0; }
.an-row { display: grid; grid-template-columns: 44px 1fr 1fr; align-items: center; }
.an-n { text-align: right; padding-right: 10px; font-size: 12px; color: var(--muted); }
.an-mv { appearance: none; border: 0; background: transparent; color: var(--ink); text-align: left; font: 500 14px var(--sans); padding: 6px 10px; border-radius: 8px; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; margin: 1px 4px; }
.an-mv:hover { background: rgba(239,233,221,.06); }
.an-mv.on { background: rgba(185,242,74,.14); color: var(--ink); }
.an-tag { font-style: normal; font-family: var(--mono); font-size: 10px; letter-spacing: .06em; padding: 1px 5px; border-radius: 5px; }
.an-tag.ok { color: var(--acc); background: rgba(185,242,74,.14); }
.an-tag.alt { color: #f0c46b; background: rgba(240,182,74,.14); }
.an-tag.book { color: var(--muted); background: rgba(239,233,221,.07); }
.an-loss { font-style: normal; font-family: var(--mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.an-loss.inacc { color: #f0c46b; } .an-loss.mist { color: #f0a06b; } .an-loss.blun { color: #ef8a7c; }
.an-foot { margin-top: 12px; font-size: 11.5px; color: var(--muted); line-height: 1.5; }
@media (max-width: 860px) { .an-body { grid-template-columns: 1fr; } .an-stats { grid-template-columns: 1fr 1fr; } .an-win { padding: 20px 16px; } .an-overlay { padding: 10px; } }
