: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); }
button.btn-ghost { background: none; border: 0; font-family: var(--sans); cursor: pointer; }
.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: minmax(0, 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); }
.adm-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 28px; }
.adm-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.adm-chip { appearance: none; display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(239,233,221,.16); background: transparent; color: var(--muted); font: 500 13px var(--sans); cursor: pointer; }
.adm-chip b { font: 400 12px var(--mono); opacity: .7; }
.adm-chip:hover { border-color: var(--acc); color: var(--ink); }
.adm-chip.on { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.adm-sort { display: inline-flex; align-items: center; gap: 10px; font: 400 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.adm-sort select { 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(--sans); outline: none; color-scheme: dark; }
.adm-sort select:focus { border-color: var(--acc); }
.adm-list { margin-top: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
/* one grid for the header and every row, so the columns line up without a table */
.adm-head, .adm-sum { display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, .9fr) minmax(0, 1.2fr) minmax(0, .9fr) 16px; column-gap: 20px; align-items: center; padding: 0 22px; }
.adm-head { height: 46px; border-bottom: 1px solid var(--line); font: 400 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.adm-row + .adm-row { border-top: 1px solid var(--line); }
.adm-sum { min-height: 64px; padding-top: 10px; padding-bottom: 10px; font-size: 14px; cursor: pointer; outline: none; transition: background .15s ease; }
.adm-sum:hover, .adm-sum:focus-visible { background: rgba(239,233,221,.035); }
.adm-row.open { background: var(--bg2); }
.adm-row.open .adm-sum { background: transparent; }
.adm-who { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.adm-l1 { display: flex; align-items: center; gap: 8px; min-width: 0; }
.adm-mail { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-row.friend .adm-mail { color: var(--blue); }
.adm-sub { font: 400 12px var(--mono); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-list .you { flex: none; font: 400 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--acc); border: 1px solid var(--acc-dim); border-radius: 999px; padding: 2px 7px; }
.adm-c { min-width: 0; font: 400 13px var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adm-list .dim { color: var(--muted); }
.adm-list small { font: 400 12px var(--mono); color: var(--muted); margin-left: 8px; }
.adm-clip { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.adm-pill { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; font: 400 13px var(--mono); letter-spacing: .02em; color: var(--muted); white-space: nowrap; }
.adm-pill::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .55; }
.adm-pill.ok { color: var(--acc); } .adm-pill.friend { color: var(--blue); } .adm-pill.warn { color: #f0b64a; } .adm-pill.off { color: #ffb4a8; }
.adm-pill.ok::before, .adm-pill.friend::before, .adm-pill.warn::before, .adm-pill.off::before { opacity: 1; }
.adm-chev { color: var(--muted); transition: transform .2s ease; }
.adm-row.open .adm-chev { transform: rotate(180deg); color: var(--ink); }
.adm-empty { padding: 40px 22px; text-align: center; font: 400 13px var(--mono); color: var(--muted); }

.adm-edit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr) minmax(0, 1.15fr); gap: 14px; padding: 4px 22px 22px; }
.adm-box { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); }
.adm-box h4 { margin: 0; font: 400 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.adm-hint { margin: 0; font-size: 13px; line-height: 1.45; color: var(--muted); }
.adm-seg { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid rgba(239,233,221,.16); border-radius: 999px; }
.adm-seg button { appearance: none; height: 32px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: 500 13px var(--mono); cursor: pointer; }
.adm-seg button:hover { color: var(--ink); }
.adm-seg button.on { background: var(--ink); color: var(--bg); }
.adm-seg button.on[data-role="friend"] { background: var(--blue); }
.adm-seg button.on[data-role="admin"] { background: var(--acc); }
.adm-switch { display: inline-flex; align-items: center; gap: 12px; font-size: 14px; cursor: pointer; }
.adm-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.adm-switch i { position: relative; flex: none; width: 40px; height: 24px; border-radius: 999px; background: rgba(239,233,221,.16); transition: background .2s ease; }
.adm-switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--ink); transition: transform .2s ease, background .2s ease; }
.adm-switch input:checked + i { background: var(--acc); }
.adm-switch input:checked + i::after { transform: translateX(16px); background: var(--bg); }
.adm-switch input:focus-visible + i { outline: 2px solid var(--acc); outline-offset: 2px; }
.adm-when { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.adm-date { position: relative; display: inline-flex; }
.adm-date input { height: 36px; width: 148px; padding: 0 10px; border-radius: 10px; border: 1px solid rgba(239,233,221,.16); background: var(--panel); color: var(--ink); font: 400 13px var(--mono); outline: none; color-scheme: dark; }
.adm-date input:focus { border-color: var(--acc); }
/* An empty date field shows today's date in Safari, which reads as "ends today". Say what empty means instead. */
.adm-noend { display: none; position: absolute; left: 11px; top: 0; line-height: 36px; font: 400 13px/36px var(--mono); color: var(--muted); pointer-events: none; }
.adm-date.unset:not(:focus-within) input { color: transparent; }
.adm-date.unset:not(:focus-within) input::-webkit-datetime-edit { opacity: 0; }
.adm-date.unset:not(:focus-within) .adm-noend { display: block; }
.adm-btn { appearance: none; 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; white-space: nowrap; }
.adm-btn:hover { border-color: var(--acc); }
.adm-box.off .adm-switch, .adm-box.off .adm-when { opacity: .35; pointer-events: none; }
.adm-kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 9px 16px; margin: 0; width: 100%; font-size: 13px; align-items: baseline; }
.adm-kv dt { font: 400 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.adm-kv dd { margin: 0; min-width: 0; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.adm-kv dd small { margin-left: 0; }
.adm-kv .adm-clip { max-width: 170px; }
.adm-link { appearance: none; padding: 0; border: 0; background: none; color: var(--ink); font: 500 13px var(--sans); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.adm-link:hover { color: var(--acc); }
.adm-games { grid-column: 1 / -1; gap: 10px; }
.adm-games h4 { display: flex; gap: 10px; align-items: baseline; }
.adm-games-note { text-transform: none; letter-spacing: 0; }
.adm-games-empty { font: 400 13px var(--mono); padding: 6px 0 2px; }
.adm-games-scroll { width: 100%; overflow-x: auto; }
.adm-games .games { font-size: 12px; }
.adm-games .games td, .adm-games .games th { padding: 7px 9px; }
.adm-foot { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 12px 16px; flex-wrap: wrap; padding-top: 4px; }
.adm-after { display: inline-flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); }
.adm-actions { display: inline-flex; align-items: center; gap: 10px; margin-left: auto; }
.adm-msg { font: 400 13px var(--mono); color: var(--muted); }
.adm-msg.ok { color: var(--acc); } .adm-msg.off { color: #ffb4a8; }
.adm-save { appearance: none; height: 36px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--acc); background: var(--acc); color: var(--bg); font: 600 13px var(--sans); cursor: pointer; white-space: nowrap; }
.adm-save:disabled { background: transparent; border-color: rgba(239,233,221,.18); color: var(--muted); cursor: default; }
.adm-edit button:disabled { cursor: default; }
@media (max-width: 1000px) { .adm-edit { grid-template-columns: 1fr 1fr; } .adm-edit .adm-box:nth-child(3) { grid-column: 1 / -1; } }
@media (max-width: 860px) {
  .counts { grid-template-columns: 1fr 1fr; } .search { width: 100%; }
  /* phones: account + status only; the rest is in the editor */
  .adm-head { display: none; }
  .adm-sum { grid-template-columns: minmax(0, 1fr) 16px; column-gap: 12px; row-gap: 6px; padding: 14px 16px; }
  .adm-x { display: none; }
  .adm-chev { grid-column: 2; grid-row: 1 / span 2; }
  .adm-edit { grid-template-columns: 1fr; padding: 4px 12px 16px; }
  .adm-edit .adm-box:nth-child(3) { grid-column: auto; }
  .adm-foot { padding: 4px 4px 0; }
}

/* ---- 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.hide-unfinished tr.game-row.unfinished { display: none; }
.games-head-right { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; }
.games-toggle { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; color: var(--muted); }
.games-toggle input { appearance: none; width: 15px; height: 15px; margin: 0; border-radius: 4px; border: 1px solid rgba(239,233,221,.28); background: transparent; cursor: pointer; position: relative; transition: border-color .15s ease, background .15s ease; }
.games-toggle input:checked { background: var(--acc); border-color: var(--acc); }
.games-toggle input:checked::after { content: ""; position: absolute; left: 4px; top: 1px; width: 5px; height: 9px; border: solid #0e0d0b; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.games-toggle input:disabled { opacity: .35; cursor: default; }
.games-toggle:has(input:checked) { color: var(--ink); }
.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; } }

/* ---- homepage: conversion sections ---- */
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 44px 48px; border-radius: 24px; border: 1px solid var(--line); background: linear-gradient(135deg, #16140f, #0f0e0b 60%), var(--panel); position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; right: -120px; top: -160px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(closest-side, oklch(0.88 0.21 128 / 0.14), transparent 70%); pointer-events: none; }
.review-mock { background: #0e0d0b; border: 1px solid var(--line); border-radius: 18px; padding: 26px 28px; display: flex; flex-direction: column; gap: 16px; }
.rv-area { fill: oklch(0.88 0.21 128 / 0.10); }
.rv-line { fill: none; stroke: var(--acc); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 900; stroke-dashoffset: 900; animation: tracein 6s cubic-bezier(.2,.7,.2,1) infinite; }
.rv-dot { fill: #ffb4a8; }
.rv-rows { display: flex; flex-direction: column; font-size: 13px; }
.rv-rows > div { display: grid; grid-template-columns: 44px 1fr 1fr 64px; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.rv-rows > div:last-child { border-bottom: 0; }
.rv-rows .rv-h { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.rv-rows span:last-child { text-align: right; }
.rv-rows .ok { color: var(--acc); }
.rv-rows .warn { color: #ffb4a8; }
.rv-rows .rv-miss span:nth-child(2) { color: #ffb4a8; }
.rv-rows .rv-miss span:nth-child(3) { color: var(--acc); }
.perk { display: grid; grid-template-columns: 34px 1fr; gap: 16px; align-items: start; }
.perk h3 { margin-bottom: 6px; }
.perk-n { font-size: 13px; color: var(--muted); padding-top: 4px; }
.community-live { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; font-size: 12.5px; }
.community-live a { display: flex; justify-content: space-between; gap: 14px; color: var(--ink); border-top: 1px solid var(--line); padding-top: 8px; }
.community-live a:hover { color: var(--acc); }
.community-live a span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.community-live a span:last-child { color: var(--muted); flex: none; }
.next-steps { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.next-steps ol { margin: 0; padding: 0; list-style: none; counter-reset: step; display: flex; flex-direction: column; gap: 10px; }
.next-steps li { counter-increment: step; display: grid; grid-template-columns: 28px 1fr; gap: 12px; font-size: 15px; line-height: 1.45; color: var(--muted); }
.next-steps li b { color: var(--ink); font-weight: 500; }
.next-steps li::before { content: counter(step); font-family: var(--mono); font-size: 12px; color: var(--acc); border: 1px solid var(--acc-dim); border-radius: 50%; width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; margin-top: 1px; }
.faq { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-size: 19px; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); font-size: 22px; color: var(--muted); flex: none; transition: transform .25s ease, color .25s ease; }
.faq details[open] summary::after { transform: rotate(45deg); color: var(--acc); }
.faq summary:hover { color: var(--acc); }
.faq p { padding: 0 0 24px; font-size: 15.5px; line-height: 1.6; color: var(--muted); max-width: 640px; }
.final-cta { position: relative; overflow: hidden; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 26px; padding: 88px 32px; border-radius: 28px; border: 1px solid var(--line); background: #0a0908; }
.final-cta > :not(.halo) { position: relative; z-index: 1; }
.final-cta .halo { z-index: 0; }
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: rgba(14,13,11,.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.sticky-cta.on { transform: none; }
.sticky-cta .btn:hover { transform: none; }
@media (max-width: 860px) {
  .cta-band { flex-direction: column; align-items: stretch; padding: 32px 26px; }
  .cta-band .btn { width: 100%; justify-content: center; }
  [data-cols="faq"] { grid-template-columns: 1fr !important; gap: 36px !important; }
  .faq summary { font-size: 17px; }
  .final-cta { padding: 60px 22px; }
  .sticky-sub { display: none; }
  .sticky-cta .btn span:last-child { display: none; }
  .review-mock { padding: 20px 18px; }
  .rv-rows > div { grid-template-columns: 36px 1fr 1fr 56px; gap: 8px; }
}
.cols-2 > *, .perk > div, .community-live a, .community-live a span:first-child, .review-mock { min-width: 0; }

/* dashboard: the computer an account is linked to (one computer per account) */
.device-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.device-row b { color: var(--ink); font-weight: 500; }
.device-row a { color: var(--acc); text-decoration: underline; text-underline-offset: 3px; }
.device-row a:hover { color: var(--ink); }

.accounts td.device { max-width: 220px; }
.accounts td.device .mono { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; max-width: 150px; vertical-align: middle; }
.accounts button.unlink { margin-left: 6px; }

.cancel-row { display: block; margin-top: 8px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.cancel-row a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.cancel-row a:hover { color: var(--acc); }
.cancel-row b { color: var(--ink); font-weight: 500; }

/* ---------- Discord card (community page, dashboard) ---------- */
.discord-card { margin-top: 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 28px; border-radius: 18px; border: 1px solid var(--line); background: var(--panel); transition: border-color .25s ease; }
.discord-card:hover { border-color: var(--acc); }
.discord-card-text { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
@media (max-width: 720px) { .discord-card { flex-direction: column; align-items: stretch; } .discord-card .btn { justify-content: center; } }

/* watch it play (the clip under the hero + the full-game dialog) */
.watch { display: flex; flex-direction: column; gap: 22px; }
.watch-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: #0a0908; box-shadow: 0 40px 90px -50px rgba(0,0,0,.9); }
.watch-video { display: block; width: 100%; height: 100%; object-fit: cover; }
.watch-badge { position: absolute; top: 14px; left: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 6px 11px; border-radius: 999px; background: rgba(14,13,11,.72); border: 1px solid var(--line); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #cfc8ba; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); pointer-events: none; }
.watch-rec { width: 7px; height: 7px; border-radius: 50%; background: #ff5a4e; animation: watch-blink 1.6s ease-in-out infinite; }
@keyframes watch-blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.watch-play { position: absolute; inset: 0; margin: auto; width: 84px; height: 84px; border-radius: 50%; border: 0; background: var(--acc); color: #0e0d0b; cursor: pointer; display: grid; place-items: center; box-shadow: 0 0 0 10px oklch(0.88 0.21 128 / .16), 0 24px 60px -20px var(--acc); transition: transform .25s ease; }
.watch-play:hover { transform: scale(1.06); }
.watch-play svg { margin-left: 4px; }
.watch-bar { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; }
.watch-cap { display: flex; flex-direction: column; gap: 10px; max-width: 700px; }
.watch-cap p { font-size: 15px; line-height: 1.5; color: var(--muted); text-wrap: pretty; }
.watch-full { height: 48px; gap: 12px; flex: none; padding: 0; }
.watch-full .ico { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(239,233,221,.25); display: grid; place-items: center; transition: border-color .25s ease, background .25s ease; }
.watch-full .ico svg { margin-left: 2px; }
.watch-full:hover .ico { border-color: var(--acc); background: var(--acc-dim); }
.watch-dialog { border: 0; padding: 0; margin: auto; background: transparent; width: min(1100px, calc(100vw - 32px)); max-width: none; overflow: visible; color: var(--ink); }
.watch-dialog::backdrop { background: rgba(5,5,4,.88); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.watch-embed { aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #000; border: 1px solid var(--line); }
.watch-embed iframe { display: block; width: 100%; height: 100%; border: 0; }
.watch-close { position: absolute; right: 0; top: -50px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(239,233,221,.25); background: rgba(14,13,11,.7); color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.watch-close:hover { border-color: var(--acc); color: var(--acc); }
@media (max-width: 860px) { .watch-frame { border-radius: 12px; } .watch-badge { top: 8px; left: 8px; font-size: 10px; padding: 5px 9px; } .watch-play { width: 64px; height: 64px; } .watch-dialog { width: calc(100vw - 16px); } .watch-embed { border-radius: 10px; } }
