
@font-face { font-family: "Big Shoulders Display"; font-weight: 800; font-style: normal; font-display: swap; src: url(/s/fonts/big-shoulders-display-latin-800-normal.woff2) format("woff2"); }
@font-face { font-family: "Big Shoulders Display"; font-weight: 900; font-style: normal; font-display: swap; src: url(/s/fonts/big-shoulders-display-latin-900-normal.woff2) format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url(/s/fonts/public-sans-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 700; font-style: normal; font-display: swap; src: url(/s/fonts/public-sans-latin-700-normal.woff2) format("woff2"); }
:root {
  --display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --body: "Public Sans", system-ui, "Segoe UI", sans-serif;
  --bg: #d5dbe0;
  --bg-2: #c7cfd6;
  --panel: #eef1f4;
  --panel-2: #e1e6eb;
  --ink: #1a2028;
  --muted: #4d5968;
  --line: #aab4be;
  --flap-bg: #20262e;
  --flap-bg-low: #1a1f26;
  --flap-fg: #f3f5f6;
  --hinge: #0a0d11;
  --accent: #ffb703;
  --accent-ink: #1c1500;
  --btn-edge: #1c1500;
  --link: #124fb8;
  --you: #7a5000;
  --opp: #2f6fe4;
  --maxw: 1080px;
  --readw: 720px;
}
:root[data-theme="dark"] {
  --bg: #0c1016;
  --bg-2: #10151d;
  --panel: #151c26;
  --panel-2: #1b2430;
  --ink: #e7eaef;
  --muted: #9aa5b5;
  --line: #2b3644;
  --flap-bg: #283244;
  --flap-bg-low: #212a39;
  --flap-fg: #ffc23d;
  --hinge: #06080b;
  --btn-edge: #8a5a00;
  --link: #8fb4ff;
  --you: #ffc23d;
  --opp: #6ea2ff;
}
* { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 16px; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}
main { flex: 1 0 auto; }
img, svg { max-width: 100%; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; font-weight: 700; z-index: 10; border-radius: 4px; }
.skip:focus { left: 8px; }
.bar { background: var(--bg); border-bottom: 2px solid var(--line); }
.bar-in { display: flex; align-items: center; gap: 14px 20px; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand-mark {
  display: grid; place-items: center; width: 30px; height: 36px; border-radius: 5px;
  background: linear-gradient(var(--flap-bg) 49%, var(--hinge) 49% 52%, var(--flap-bg-low) 52%);
  color: var(--accent); font: 900 26px/1 var(--display);
}
.brand-name { font: 900 28px/1 var(--display); letter-spacing: 0.04em; }
.nav { display: flex; gap: 4px 22px; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 16px; padding: 8px 2px; border-bottom: 3px solid transparent; }
.nav a:hover, .nav a[aria-current] { border-bottom-color: var(--accent); }
.theme { position: relative; width: 62px; height: 32px; border-radius: 16px; border: 2px solid var(--ink); background: var(--panel); cursor: pointer; padding: 0; flex: none; }
.theme .knob { position: absolute; top: 3px; left: 4px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); transition: left 0.3s cubic-bezier(0.5, 1.6, 0.5, 1), background 0.3s, box-shadow 0.3s; }
:root[data-theme="dark"] .theme .knob { left: 34px; background: #d8e0f0; box-shadow: inset -7px -2px 0 0 var(--panel); }
@media (max-width: 640px) {
  .bar-in { gap: 8px 12px; }
  .nav { order: 5; width: 100%; margin-left: 0; gap: 4px 18px; border-top: 1px solid var(--line); padding-top: 4px; }
  .bar-in .btn { margin-left: auto; }
}
.btn {
  display: inline-block; white-space: nowrap; text-decoration: none; cursor: pointer;
  font: 800 22px/1 var(--display); letter-spacing: 0.04em; text-transform: uppercase;
  padding: 14px 26px; border-radius: 4px; color: var(--accent-ink);
  background: var(--accent); border: 2px solid var(--btn-edge); box-shadow: 0 4px 0 var(--btn-edge);
  transition: transform 0.08s, box-shadow 0.08s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 5px 0 var(--btn-edge); text-decoration: none; }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--btn-edge); }
.btn-sm { font-size: 18px; padding: 9px 18px; box-shadow: 0 3px 0 var(--btn-edge); }
.btn-big { font-size: 30px; padding: 18px 36px; }
.btn-quiet { background: transparent; color: var(--ink); border-color: var(--ink); box-shadow: none; }
.btn-quiet:hover { background: var(--panel-2); box-shadow: none; transform: none; }
.btn-quiet:active { transform: none; }
.word { display: inline-flex; gap: 4px; vertical-align: middle; }
.tl {
  display: grid; place-items: center;
  width: var(--tw, 28px); height: calc(var(--tw, 28px) * 1.35);
  border-radius: 4px; background: linear-gradient(var(--flap-bg) 49%, var(--hinge) 49% 52%, var(--flap-bg-low) 52%);
  color: var(--flap-fg); font: 900 calc(var(--tw, 28px) * 0.95)/1 var(--display);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.25);
}
:root[data-theme="dark"] .tl { text-shadow: 0 0 12px rgba(255, 183, 3, 0.35); }
.hero { padding: 44px 0 40px; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 36px 48px; align-items: center; }
.eyebrow { margin: 0 0 12px; font: 800 20px/1 var(--display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--you); }
h1 { margin: 0 0 18px; font: 900 clamp(46px, 7.4vw, 88px)/0.92 var(--display); text-transform: uppercase; letter-spacing: 0.005em; }
h1 em { font-style: normal; color: var(--you); }
.lede { margin: 0 0 26px; font-size: 20px; line-height: 1.55; max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: center; }
.fine { margin: 14px 0 0; color: var(--muted); font-size: 15px; }
@media (max-width: 520px) {
  .cta-row .btn { flex: 1 1 100%; text-align: center; }
}
@media (max-width: 860px) {
  .hero { padding: 28px 0 28px; }
  .hero-in { grid-template-columns: minmax(0, 1fr); }
  .lede { font-size: 18px; }
}
.demo { background: var(--panel); border: 2px solid var(--line); border-radius: 8px; padding: 20px 20px 18px; box-shadow: 0 6px 0 var(--line); }
.demo-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; min-height: 28px; font-weight: 700; }
.demo-who { font: 800 20px/1 var(--display); letter-spacing: 0.08em; text-transform: uppercase; }
.demo-who.you { color: var(--you); }
.demo-who.opp { color: var(--opp); }
.demo-move { color: var(--muted); font-size: 15px; text-align: right; }
.demo-board { display: flex; justify-content: center; align-items: center; min-height: 128px; padding: 12px 0; --tw: clamp(34px, 9.4vw, 58px); }
.demo-board .word { gap: clamp(4px, 1.2vw, 7px); }
.demo-board .tl.flip { animation: flip 0.5s both; animation-delay: calc(var(--i, 0) * 55ms); }
@keyframes flip { 0% { transform: rotateX(0); } 45% { transform: rotateX(-88deg); } 55% { transform: rotateX(88deg); } 100% { transform: rotateX(0); } }
.demo-trail { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.demo-trail li { font: 800 16px/1 var(--display); letter-spacing: 0.08em; padding: 6px 10px; border-radius: 3px; background: var(--panel-2); border: 1px solid var(--line); }
.demo-trail li.you { border-left: 4px solid var(--you); }
.demo-trail li.opp { border-left: 4px solid var(--opp); }
.demo-trail li.now { background: var(--flap-bg); color: var(--flap-fg); border-color: var(--flap-bg); }
.demo-clock { margin-top: 14px; height: 6px; border-radius: 3px; background: var(--panel-2); overflow: hidden; }
.demo-clock i { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: left; }
.demo-clock i.run { animation: drain var(--turn, 2.4s) linear both; }
@keyframes drain { from { transform: scaleX(1); } to { transform: scaleX(0.35); } }
.sec { padding: 52px 0; }
.sec.alt { background: var(--bg-2); border-top: 2px solid var(--line); border-bottom: 2px solid var(--line); }
h2 { margin: 0 0 14px; font: 900 clamp(34px, 5vw, 48px)/1 var(--display); text-transform: uppercase; letter-spacing: 0.01em; }
h3 { margin: 0 0 6px; font: 800 26px/1.1 var(--display); letter-spacing: 0.02em; text-transform: uppercase; }
.sec-lede { margin: 0 0 28px; max-width: 40em; color: var(--muted); font-size: 18px; }
.grid { display: grid; gap: 18px; }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 860px) { .g3 { grid-template-columns: minmax(0, 1fr); } .g2 { grid-template-columns: minmax(0, 1fr); } .sec { padding: 40px 0; } }
.card { background: var(--panel); border: 2px solid var(--line); border-radius: 8px; padding: 22px; }
.card p { margin: 8px 0 0; }
.card .ex { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 6px 0 14px; --tw: 26px; }
.card .arrow { font: 800 22px/1 var(--display); color: var(--muted); }
.step-n { display: inline-grid; place-items: center; width: 34px; height: 34px; margin-bottom: 10px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font: 900 22px/1 var(--display); }
.rules { margin: 28px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; counter-reset: r; }
.rules li { counter-increment: r; display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 12px; align-items: start; }
.rules li::before { content: counter(r); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 4px; background: var(--flap-bg); color: var(--flap-fg); font: 900 22px/1 var(--display); }
.faq details { background: var(--panel); border: 2px solid var(--line); border-radius: 8px; margin: 0 0 10px; }
.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 800 28px/1 var(--display); color: var(--you); flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0; padding: 0 20px 18px; color: var(--muted); }
.cta-band { text-align: center; padding: 56px 0 64px; }
.cta-band h2 { font-size: clamp(38px, 6vw, 60px); }
.cta-band p { margin: 0 auto 24px; max-width: 32em; color: var(--muted); font-size: 18px; }
.crumbs { max-width: calc(var(--readw) + 40px); margin: 0 auto; padding: 18px max(20px, env(safe-area-inset-left)) 0; font-size: 14px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line); }
.crumbs a { color: var(--muted); }
.doc { max-width: calc(var(--readw) + 40px); margin: 0 auto; padding: 22px 20px 64px; }
.doc h1 { font-size: clamp(44px, 8vw, 72px); margin-bottom: 14px; }
.doc .lede { font-size: 19px; color: var(--ink); }
.doc h2 { margin: 44px 0 12px; font-size: clamp(30px, 5vw, 40px); }
.doc h3 { margin: 26px 0 6px; font-size: 24px; }
.doc p, .doc ul, .doc ol { margin: 0 0 16px; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li { margin: 0 0 6px; }
.doc .updated { color: var(--muted); font-size: 15px; margin: 0 0 22px; }
code { font: 600 0.92em/1 ui-monospace, Consolas, monospace; padding: 2px 6px; border-radius: 3px; background: var(--panel-2); border: 1px solid var(--line); }
.note { padding: 14px 18px; border-left: 5px solid var(--accent); background: var(--panel); border-radius: 0 6px 6px 0; margin: 0 0 18px; }
.note p:last-child { margin-bottom: 0; }
.table-wrap { overflow-x: auto; margin: 0 0 18px; border: 2px solid var(--line); border-radius: 8px; background: var(--panel); }
table { border-collapse: collapse; width: 100%; font-size: 16px; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font: 800 18px/1.2 var(--display); letter-spacing: 0.06em; text-transform: uppercase; background: var(--panel-2); }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; white-space: nowrap; }
.doc .card h3 { margin: 0 0 6px; }
.doc .card p { margin: 8px 0 0; }
.moves { display: grid; gap: 14px; margin: 0 0 18px; }
.moves .ex { margin: 6px 0 4px; }
.toc { margin: 0 0 8px; padding: 14px 18px; background: var(--panel); border: 2px solid var(--line); border-radius: 8px; }
.toc p { margin: 0 0 6px; font: 800 18px/1 var(--display); letter-spacing: 0.08em; text-transform: uppercase; }
.toc ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.mail { font-weight: 700; font-size: 20px; overflow-wrap: anywhere; }
.foot { margin-top: auto; background: var(--flap-bg-low); color: #dfe4ea; border-top: 4px solid var(--accent); }
.foot a { color: #ffd166; }
.foot-in { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 28px; padding-top: 36px; padding-bottom: 24px; }
.foot .brand { color: #fff; }
.foot-about p { margin: 12px 0 0; color: #aab4c2; font-size: 15px; max-width: 26em; }
.foot h2 { margin: 0 0 10px; font: 800 18px/1 var(--display); letter-spacing: 0.12em; color: #aab4c2; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin: 0 0 6px; }
.foot-end { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding-top: 14px; padding-bottom: 22px; border-top: 1px solid #2b3644; font-size: 14px; color: #aab4c2; }
.foot-end p { margin: 0; }
@media (max-width: 760px) { .foot-in { grid-template-columns: repeat(3, minmax(0, 1fr)); } .foot-about { grid-column: 1 / -1; } }
@media (max-width: 420px) { .foot-in { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
