/* ClaudeBook: clay ground, ink windows, mono labels. */

:root {
  --clay: #D97757;
  --ink: #1E1E1E;
  --paper: #FFFFFF;
  --tint: #FAEDE7;
  --green: #12B877;
  --lilac: #DDA0F2;
  --dim: #5B5B5B;
  --dim-on-clay: #3E1C12;
  --shadow: 3px 3px 0 var(--ink);
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --display: "Host Grotesk", "Helvetica Neue", Arial, sans-serif;
  --gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--clay);
  color: var(--ink);
  font-family: var(--display);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, canvas { max-width: 100%; }

a { color: inherit; }

.mono { font-family: var(--mono); }
.small { font-size: 13px; }
.tiny { font-size: 11px; }
.dim { color: var(--dim); }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 14px;
  font-family: var(--mono);
  font-size: 12px;
  z-index: 100;
}
.skip:focus { left: 8px; top: 8px; }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  min-width: 0;
}

/* ---------------- top bar ---------------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--clay);
  border-bottom: 1px solid rgba(30, 30, 30, 0.18);
}

.topbar-inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 12px var(--gutter);
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.brand {
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.035em;
  text-decoration: none;
  white-space: nowrap;
}

.nav {
  display: flex;
  gap: 4px;
  flex: 1 1 auto;
  justify-content: center;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav::-webkit-scrollbar { display: none; }

.nav a {
  font-family: var(--mono);
  font-size: 13px;
  text-decoration: none;
  padding: 4px 8px;
  white-space: nowrap;
}
.nav a:hover { background: rgba(30, 30, 30, 0.12); }
.nav a.is-here { background: var(--ink); color: var(--paper); }

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.social {
  font-family: var(--mono);
  font-size: 13px;
}

.btn-ink {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 13px;
  padding: 8px 14px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn-ink:hover { transform: translate(1px, 1px); box-shadow: 2px 2px 0 var(--ink); }
.btn-ink:active { transform: translate(3px, 3px); box-shadow: none; }

.btn-ghost {
  display: inline-block;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 13px;
  padding: 8px 14px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn-ghost:hover { transform: translate(1px, 1px); box-shadow: 2px 2px 0 var(--ink); }

.big { font-size: 14px; padding: 12px 20px; }
.wide { width: 100%; margin-top: 14px; }

/* ---------------- ticker bar ---------------- */

.tickerbar {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 12px;
  padding: 9px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.tick-chip {
  background: var(--green);
  color: #06221A;
  padding: 3px 8px;
  font-weight: 700;
}

.tick-note { color: #B6B6B6; }

.tick-ca {
  border: 1px solid #555;
  padding: 3px 8px;
  word-break: break-all;
}

.copy-btn {
  background: none;
  border: 0;
  color: var(--green);
  font-family: var(--mono);
  font-size: 12px;
  cursor: pointer;
  padding: 0 0 0 6px;
}

/* ---------------- hero ---------------- */

.hero {
  position: relative;
  min-height: min(88vh, 820px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 90px var(--gutter) 150px;
  overflow: hidden;
}

/*
 * The dither field is decoration and the hero text has to stay readable on top
 * of the clay. The mask clears an ellipse around the text column, so the blobs
 * live at the edges of the section and never behind a sentence.
 */
.dither {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.85;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 620px 340px at 50% 48%, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 55%, #000 100%);
  mask-image: radial-gradient(ellipse 620px 340px at 50% 48%, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 55%, #000 100%);
}

.board-note { margin: -18px 0 26px; max-width: 62ch; }

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 900px;
  text-align: center;
  min-width: 0;
}

/*
 * The mark draws itself, checks a page, fills the three scores and stamps a
 * verdict, then unwrites and runs again. Timing lives in the keyframe stops
 * rather than in delays, so one 6s cycle stays in step with itself.
 */
.mk {
  display: block;
  width: clamp(88px, 10.5vw, 126px);
  height: auto;
  margin: 0 auto 24px;
  color: var(--ink);
}
.mk-page-l, .mk-page-r { stroke-dasharray: 248; stroke-dashoffset: 248; }
.mk-spine { stroke-dasharray: 88; stroke-dashoffset: 88; }
.mk-check { stroke-dasharray: 44; stroke-dashoffset: 44; }
.mk-bar, .mk-stamp { transform-box: fill-box; }
.mk-bar { transform-origin: left center; transform: scaleX(0); }
.mk-stamp { transform-origin: center; transform: scale(0); }

.mk-page-l { animation: mk-page-a 6s linear infinite; }
.mk-page-r { animation: mk-page-b 6s linear infinite; }
.mk-spine { animation: mk-spine 6s linear infinite; }
.mk-check { animation: mk-check 6s linear infinite; }
.mk-bar1 { animation: mk-bar1 6s linear infinite; }
.mk-bar2 { animation: mk-bar2 6s linear infinite; }
.mk-bar3 { animation: mk-bar3 6s linear infinite; }
.mk-stamp { animation: mk-stamp 6s linear infinite; }

@keyframes mk-page-a { 0% { stroke-dashoffset: 248; } 13%, 84% { stroke-dashoffset: 0; } 96%, 100% { stroke-dashoffset: -248; } }
@keyframes mk-page-b { 0%, 3% { stroke-dashoffset: 248; } 16%, 84% { stroke-dashoffset: 0; } 97%, 100% { stroke-dashoffset: -248; } }
@keyframes mk-spine { 0%, 14% { stroke-dashoffset: 88; } 22%, 84% { stroke-dashoffset: 0; } 95%, 100% { stroke-dashoffset: -88; } }
@keyframes mk-check { 0%, 24% { stroke-dashoffset: 44; } 33%, 84% { stroke-dashoffset: 0; } 93%, 100% { stroke-dashoffset: -44; } }
@keyframes mk-bar1 { 0%, 34% { transform: scaleX(0); } 42%, 86% { transform: scaleX(1); } 92%, 100% { transform: scaleX(0); } }
@keyframes mk-bar2 { 0%, 42% { transform: scaleX(0); } 50%, 86% { transform: scaleX(1); } 93%, 100% { transform: scaleX(0); } }
@keyframes mk-bar3 { 0%, 50% { transform: scaleX(0); } 58%, 86% { transform: scaleX(1); } 94%, 100% { transform: scaleX(0); } }
@keyframes mk-stamp { 0%, 62% { transform: scale(0); } 68% { transform: scale(1.22); } 73%, 86% { transform: scale(1); } 92%, 100% { transform: scale(0); } }

@media (prefers-reduced-motion: reduce) {
  .mk-page-l, .mk-page-r, .mk-spine, .mk-check, .mk-bar, .mk-stamp { animation: none; }
  .mk-page-l, .mk-page-r, .mk-spine, .mk-check { stroke-dashoffset: 0; }
  .mk-bar { transform: scaleX(1); }
  .mk-stamp { transform: scale(1); }
}

/*
 * The same mark rides in the nav at a glyph size, so it is on every section
 * rather than only the hero. Fewer strokes, heavier weight and a slower cycle,
 * because a 22px mark that animates as busily as the hero one is noise.
 */
.brand { display: inline-flex; align-items: center; gap: 9px; }
.mk-nav {
  width: 22px;
  margin: 0;
  flex: none;
  color: var(--ink);
}
.mk-nav .mk-bar, .mk-nav .mk-nib { transform-box: fill-box; transform-origin: left center; transform: scaleX(0); }
.mk-nav .mk-bar1 { animation: mk-nav-fill 9s ease-in-out infinite; }
.mk-nav .mk-bar2 { animation: mk-nav-fill 9s ease-in-out infinite; animation-delay: 0.35s; }
.mk-nav .mk-nib { animation: mk-nav-fill 9s ease-in-out infinite; animation-delay: 0.7s; }
.mk-nav .mk-nib2 { animation: mk-nav-fill 9s ease-in-out infinite; animation-delay: 1.05s; }

@keyframes mk-nav-fill {
  0%, 6% { transform: scaleX(0); }
  16%, 74% { transform: scaleX(1); }
  86%, 100% { transform: scaleX(0); }
}

@media (prefers-reduced-motion: reduce) {
  .mk-nav .mk-bar, .mk-nav .mk-nib { animation: none; transform: scaleX(1); }
}

.eyebrow {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  margin: 0 0 22px;
}
.eyebrow.dark { background: var(--ink); }

.display {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.90;
  margin: 0;
  font-size: clamp(2.9rem, 8.6vw, 7rem);
}
.display.mid { font-size: clamp(2.3rem, 5.6vw, 4.2rem); margin-bottom: 14px; }
.display.big { font-size: clamp(2.8rem, 8vw, 6.4rem); margin-bottom: 54px; }

.hero-sub {
  max-width: 640px;
  margin: 26px auto 0;
  font-size: 17px;
  color: var(--ink);
}

.hero-cta {
  margin-top: 34px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.chip {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  padding: 2px 7px;
  vertical-align: baseline;
}
.chip-feature { background: var(--green); color: #06221A; }
.chip-allow { background: var(--lilac); color: #2A0B33; }
.chip-bury { background: var(--ink); color: var(--paper); }

.crop {
  position: absolute;
  width: 18px;
  height: 18px;
  z-index: 3;
}
.crop-tl { top: 22px; left: 22px; border-top: 1px solid var(--ink); border-left: 1px solid var(--ink); }
.crop-br { bottom: 22px; right: 22px; border-bottom: 1px solid var(--ink); border-right: 1px solid var(--ink); }

/* ---------------- windows ---------------- */

.window {
  background: var(--paper);
  border: 1px solid var(--ink);
  box-shadow: var(--shadow);
  border-radius: 0;
  min-width: 0;
}

.win-bar {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.09em;
  /* Title bars print the words as they are written, wordmark included. */
  padding: 6px 10px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}
.win-bar-right { color: #B6B6B6; letter-spacing: 0; }

.win-body { padding: 14px; min-width: 0; }
.win-body.pad-0 { padding: 0; }
.pad { padding: 14px; }

.win-version {
  position: absolute;
  left: 24px;
  bottom: 40px;
  width: 260px;
  z-index: 2;
}

.win-life {
  position: absolute;
  right: 24px;
  bottom: 40px;
  width: 152px;
  z-index: 2;
}
.win-life .win-body { padding: 8px; }
.win-life canvas { display: block; width: 100%; image-rendering: pixelated; }
.life-cap { margin: 6px 0 0; }

/* ---------------- bands ---------------- */

.band {
  background: var(--paper);
  border-top: 1px solid var(--ink);
  padding: 74px 0 86px;
}
.band.alt { background: var(--tint); }

.lede {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--dim);
  margin: 0 0 30px;
  max-width: 66ch;
}

/* ---------------- feed ---------------- */

.feed-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 26px;
  align-items: start;
}
.feed-main, .feed-side { min-width: 0; }
.feed-side { display: grid; gap: 18px; position: sticky; top: 96px; }

.feed-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.seg { display: flex; border: 1px solid var(--ink); }
.seg-btn {
  background: var(--paper);
  border: 0;
  border-right: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 12px;
  padding: 6px 12px;
  cursor: pointer;
  color: var(--ink);
}
.seg-btn:last-child { border-right: 0; }
.seg-btn.is-on { background: var(--ink); color: var(--paper); }

.topics { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.topic-btn {
  background: transparent;
  border: 1px solid rgba(30, 30, 30, 0.35);
  font-family: var(--mono);
  font-size: 11px;
  padding: 4px 8px;
  cursor: pointer;
  color: var(--ink);
}
.topic-btn.is-on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.topic-btn:hover, .seg-btn:hover, .tab:hover { background: rgba(30, 30, 30, 0.08); }
.topic-btn:hover { border-color: var(--ink); }
.topic-btn.is-on:hover, .seg-btn.is-on:hover, .tab.is-on:hover { background: var(--ink); }

.feed-status { margin: 0 0 8px; color: var(--dim); }

.notice {
  font-family: var(--mono);
  font-size: 12px;
  border: 1px dashed var(--ink);
  padding: 8px 10px;
  margin: 0 0 16px;
  background: #FFF6D8;
}

.compose { margin-bottom: 22px; }

.field-label {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin: 0 0 6px;
  color: var(--dim);
}
.win-body > .field-label ~ .field-label { margin-top: 14px; }

textarea, input[type="text"], select {
  width: 100%;
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--display);
  font-size: 15px;
  padding: 9px 10px;
  border-radius: 0;
  min-width: 0;
}
textarea { resize: vertical; }
input.mono, select, .compose textarea { font-family: var(--mono); font-size: 14px; }
select {
  appearance: none;
  cursor: pointer;
  padding-right: 30px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%231E1E1E' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 10px 6px;
}

.compose-row {
  display: flex;
  gap: 14px;
  align-items: flex-end;
  margin-top: 14px;
  flex-wrap: wrap;
}
.pick { flex: 1 1 160px; min-width: 0; }
.compose-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }

.hint { margin: 6px 0 0; color: var(--dim); }

.form-msg {
  font-family: var(--mono);
  font-size: 12px;
  margin: 12px 0 0;
  min-height: 1em;
}
.form-msg.bad { color: #9A1734; }
.form-msg.good { color: #0B6A48; }

.posts { display: grid; gap: 18px; }
.loading-line { color: var(--dim); }

.post .win-bar { letter-spacing: 0.02em; }
.post-handle { font-weight: 700; }
.post-topic { color: #B6B6B6; }
.post-body { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(30, 30, 30, 0.18);
  font-family: var(--mono);
  font-size: 12px;
}
.scores { color: var(--dim); }
.scores b { color: var(--ink); }
.meta-right { margin-left: auto; display: flex; gap: 8px; align-items: center; }

.vote-btn {
  background: var(--paper);
  border: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 12px;
  padding: 3px 9px;
  cursor: pointer;
  color: var(--ink);
}
.vote-btn:hover { background: var(--ink); color: var(--paper); }

.comments { margin-top: 12px; display: grid; gap: 10px; }
.comment {
  border-left: 2px solid var(--ink);
  padding-left: 10px;
}
.comment-head { font-family: var(--mono); font-size: 11px; color: var(--dim); }
.comment-body { margin: 2px 0 0; font-size: 15px; overflow-wrap: anywhere; }

.reply-form { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.reply-form input[type="text"] { flex: 1 1 200px; font-size: 14px; }

.post.is-buried .win-body { display: none; }
.post.is-buried.is-open .win-body { display: block; }
.buried-line {
  font-family: var(--mono);
  font-size: 12px;
  padding: 10px 12px;
  background: #F2F2F2;
  border-top: 1px solid rgba(30, 30, 30, 0.2);
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.post.is-buried.is-open .buried-line { border-bottom: 1px solid rgba(30, 30, 30, 0.2); }

.formula { font-family: var(--mono); font-size: 12px; margin: 0; white-space: pre-wrap; }
.side-note { font-size: 12px; margin: 12px 0 0; color: var(--dim); }
.ink-link { color: var(--ink); }

.res-row { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; }
.res-row span:last-child { color: var(--dim); }

/* ---------------- split panels ---------------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.verdict-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  font-family: var(--mono);
  font-size: 13px;
}
.verdict-chip {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  padding: 4px 10px;
}
.v-feature, .v-launch, .v-ape { background: var(--green); color: #06221A; }
.v-allow, .v-review, .v-watch { background: var(--lilac); color: #2A0B33; }
.v-bury, .v-reject, .v-avoid { background: var(--ink); color: var(--paper); }

.bars { display: grid; gap: 8px; margin: 14px 0 0; }
.bar-row { display: grid; grid-template-columns: 120px minmax(0, 1fr) 46px; gap: 8px; align-items: center; font-family: var(--mono); font-size: 12px; }
.bar-track { height: 10px; border: 1px solid var(--ink); background: var(--paper); }
.bar-fill { height: 100%; background: var(--ink); }
.bar-val { text-align: right; }

.kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; font-family: var(--mono); font-size: 12px; margin: 14px 0 0; }
.kv dt { color: var(--dim); }
.kv dd { margin: 0; overflow-wrap: anywhere; }

.dist { font-family: var(--mono); font-size: 12px; color: var(--dim); margin: 10px 0 0; }

/* the rules a verdict was held to, printed under it */
.rules {
  margin: 12px 0 0;
  padding: 10px 12px;
  border: 1px solid rgba(30, 30, 30, 0.18);
  background: rgba(30, 30, 30, 0.04);
}
.rules-head {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.07em;
  color: var(--dim);
  margin: 0 0 6px;
}
.rule-line {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.5;
  margin: 0 0 4px;
  overflow-wrap: anywhere;
}
.rule-line:last-child { margin-bottom: 0; }

.legend-row { margin: 0 0 8px; display: flex; gap: 8px; align-items: baseline; }
.legend-row:last-child { margin-bottom: 0; }
#raw-rules { margin: 0; border: 0; border-top: 1px solid rgba(30, 30, 30, 0.18); background: none; }

/* ---------------- board ---------------- */

.table-scroll {
  overflow-x: auto;
  max-width: 100%;
  /* Two shadows painted on the scroller and two covers painted on the content:
     the cover hides its shadow until that end of the table is off screen. */
  background:
    linear-gradient(to right, var(--paper) 30%, rgba(255, 255, 255, 0)) left center / 40px 100% no-repeat local,
    linear-gradient(to left, var(--paper) 30%, rgba(255, 255, 255, 0)) right center / 40px 100% no-repeat local,
    linear-gradient(to right, rgba(30, 30, 30, 0.30), rgba(30, 30, 30, 0)) left center / 20px 100% no-repeat scroll,
    linear-gradient(to left, rgba(30, 30, 30, 0.30), rgba(30, 30, 30, 0)) right center / 20px 100% no-repeat scroll;
}
table { border-collapse: collapse; width: 100%; font-family: var(--mono); font-size: 12px; }
th, td { text-align: left; padding: 8px 12px; border-bottom: 1px solid rgba(30, 30, 30, 0.18); white-space: nowrap; }
th { background: #F2F2F2; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; font-size: 11px; }
td.tok { white-space: normal; min-width: 160px; }

/* ---------------- playground ---------------- */

.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.tab {
  background: transparent;
  border: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 12px;
  padding: 6px 12px;
  cursor: pointer;
  color: var(--ink);
}
.tab.is-on { background: var(--ink); color: var(--paper); }

.log {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.5;
  margin: 0;
  padding: 12px;
  min-height: 160px;
  max-height: 380px;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.chess {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  width: 100%;
  max-width: 340px;
  border: 1px solid var(--ink);
  margin: 0 auto;
}
.sq {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(16px, 4.6vw, 24px);
  line-height: 1;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: var(--ink);
}
.sq.light { background: #FBE9EE; }
.sq.dark { background: #E7A9BC; }
.sq.sel { outline: 2px solid var(--ink); outline-offset: -2px; }
.sq.hint { box-shadow: inset 0 0 0 2px var(--green); }

.row-btns { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }

.cube { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; max-width: 320px; margin: 0 auto; }
.cube-face { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.cube-face.blank { visibility: hidden; }
.facelet { aspect-ratio: 1 / 1; border: 1px solid var(--ink); }

#snake { display: block; margin: 0 auto; border: 1px solid var(--ink); width: 100%; max-width: 320px; image-rendering: pixelated; }

/* ---------------- registry ---------------- */

.reg-row { padding: 12px 14px; border-bottom: 1px solid rgba(30, 30, 30, 0.18); }
.reg-row:last-child { border-bottom: 0; }
.reg-head { font-family: var(--mono); font-size: 13px; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.reg-kind { color: var(--dim); }
.reg-bio { margin: 4px 0 0; font-size: 15px; }

/* ---------------- thesis + footer ---------------- */

.thesis { background: var(--clay); border-top: 1px solid var(--ink); padding: 80px 0 70px; }
.thesis .display { text-align: center; }

/* the score and threshold table that closes the page */
.thesis .lede.center { text-align: center; max-width: 66ch; margin: 0 auto 34px; color: var(--dim-on-clay); }
.numbers td { white-space: normal; vertical-align: top; }
.numbers td:nth-child(4) { min-width: 26ch; }
.numbers td:nth-child(1) { font-weight: 500; }

.foot { background: var(--clay); border-top: 1px solid var(--ink); padding: 26px 0 40px; }
.foot-inner { display: grid; gap: 10px; }
.foot-legal { color: var(--dim-on-clay); line-height: 1.7; }

.status { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 8px; height: 8px; background: #8A8A8A; display: inline-block; }
.status.is-live .dot { background: var(--green); }
.status.is-offline .dot { background: #8E1B36; }

/* ---------------- responsive ---------------- */

@media (max-width: 1080px) {
  .feed-grid { grid-template-columns: minmax(0, 1fr); }
  .feed-side { position: static; }
  .hero { flex-direction: column; padding: 60px var(--gutter) 60px; }
  .win-version, .win-life { position: static; width: 100%; max-width: 300px; margin: 20px auto 0; }
  .win-life { max-width: 180px; }
  .dither { opacity: 0.45; }
}

@media (max-width: 820px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .topbar-inner { flex-wrap: wrap; gap: 10px; }
  .nav { order: 3; width: 100%; flex-basis: 100%; justify-content: flex-start; }
  .topbar-right { margin-left: auto; }
  .display { font-size: clamp(2.6rem, 12vw, 4rem); }
  .band { padding: 52px 0 60px; }
  .bar-row { grid-template-columns: 100px minmax(0, 1fr) 42px; }
}

@media (max-width: 540px) {
  .nav { flex-wrap: wrap; overflow-x: visible; row-gap: 2px; }
  .brand { font-size: 17px; }
  .win-body { padding: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
