/* DIDU coming soon — world-class terminal gate */

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

:root {
  --bg: #0b0f0c;
  --ink: #f4efe4;
  --muted: #8b958e;
  --accent: #c8fa2c;
  --accent-dim: rgba(200, 250, 44, 0.12);
  --accent-line: rgba(200, 250, 44, 0.32);
  --panel: #0f1412;
  --panel-highlight: #141a17;
  --line: #1c2420;
  --serif: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
}

html {
  height: 100%;
}

html,
body {
  margin: 0;
  min-height: 100%;
  height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
  overflow: hidden;
  background:
    radial-gradient(ellipse 100% 70% at 0% 0%, rgba(200, 255, 0, 0.09), transparent 50%),
    radial-gradient(ellipse 60% 50% at 100% 100%, rgba(200, 255, 0, 0.05), transparent 45%),
    var(--bg);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

/* terminal frame with corner brackets */
.cs-frame {
  position: fixed;
  inset: clamp(12px, 2.5vmin, 24px);
  border: 1px solid var(--accent-line);
  border-radius: 3px;
  pointer-events: none;
  z-index: 0;
}

.cs-frame::before,
.cs-frame::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: var(--accent);
  border-style: solid;
}

.cs-frame::before {
  top: -1px;
  left: -1px;
  border-width: 2px 0 0 2px;
}

.cs-frame::after {
  bottom: -1px;
  right: -1px;
  border-width: 0 2px 2px 0;
}

/* page container */
.cs-page {
  position: relative;
  z-index: 1;
  height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: clamp(1rem, 2.4vh, 1.75rem) clamp(1.5rem, 5vw, 4rem);
  gap: 0;
  overflow: hidden;
}

/* header */
.cs-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding-bottom: clamp(0.45rem, 1vh, 0.75rem);
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(0.35rem, 0.8vh, 0.65rem);
}

.cs-header-left {
  justify-self: start;
}

.cs-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-size: clamp(0.68rem, 1vmin, 0.82rem);
  letter-spacing: 0.14em;
  text-transform: lowercase;
  color: var(--muted);
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(15, 20, 18, 0.9);
}

.cs-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px rgba(200, 255, 0, 0.7);
  animation: cs-pulse 2.4s ease-in-out infinite;
}

@keyframes cs-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.cs-tagline {
  margin: 0;
  text-align: center;
  font-size: clamp(0.75rem, 1.2vmin, 0.95rem);
  letter-spacing: 0.12em;
  text-transform: lowercase;
  color: var(--ink);
  opacity: 0.9;
}

.cs-books {
  justify-self: end;
  display: flex;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cs-books li {
  font-size: clamp(0.72rem, 1vmin, 0.85rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  padding: 0.38rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
}

/* main two-column layout */
.cs-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4rem);
  min-height: 0;
  align-items: stretch;
  padding-top: clamp(0.15rem, 0.5vh, 0.45rem);
  overflow: hidden;
}

/* left: thesis — the question is the hero, the mark is the byline */
.cs-left {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-width: 0;
  padding-top: 0;
}

.cs-mark {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: 0 0 clamp(0.35rem, 0.9vh, 0.55rem);
  padding-top: 0;
  border-top: none;
}

.cs-logo {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.4rem, 6vmin, 4.2rem);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.04em;
}

.cs-logo-dot {
  color: var(--accent);
}

.cs-kicker {
  margin: 0;
  width: fit-content;
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  background: var(--accent);
  color: #0b0f0c;
  font-size: clamp(0.6rem, 0.95vmin, 0.74rem);
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: lowercase;
  box-shadow: 0 0 24px rgba(200, 255, 0, 0.2);
}

/* countdown — hero readout above the wordmark */
.cs-countdown {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem 0;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 clamp(1.1rem, 2.8vh, 1.75rem);
  padding: clamp(0.4rem, 1vh, 0.65rem) 0 clamp(0.55rem, 1.2vh, 0.85rem);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.cs-countdown-label {
  font-size: clamp(0.62rem, 1.05vmin, 0.78rem);
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: lowercase;
  color: var(--accent);
  opacity: 0.9;
}

.cs-countdown-value {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: clamp(0.45rem, 1.2vmin, 0.85rem);
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.65rem, 4.8vmin, 3.15rem);
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.cs-cd-seg {
  display: inline-flex;
  align-items: baseline;
  gap: 0.1em;
}

.cs-cd-seg b {
  font-weight: 500;
  min-width: 2ch;
  text-align: right;
}

.cs-cd-seg i {
  font-style: normal;
  font-size: 0.45em;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.cs-cd-sec b {
  color: var(--accent);
}

.cs-countdown.is-open .cs-countdown-value {
  color: var(--accent);
  letter-spacing: 0.06em;
  font-size: clamp(1.5rem, 4vmin, 2.5rem);
}

.cs-countdown-note {
  font-size: clamp(0.72rem, 1.15vmin, 0.88rem);
  letter-spacing: 0.1em;
  text-transform: lowercase;
  color: var(--muted);
  white-space: nowrap;
}

/* live dot — play footer */
.cs-live-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(200, 250, 44, 0.75);
  animation: cs-live-pulse 2.2s ease-in-out infinite;
}

@keyframes cs-live-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.55;
    transform: scale(0.88);
  }
}

.cs-question {
  margin: 0 0 clamp(0.55rem, 1.2vh, 0.85rem);
  font-family: var(--serif);
  font-size: clamp(2.3rem, 6vmin, 4.6rem);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: -0.035em;
  color: var(--ink);
  max-width: 16ch;
}

.cs-question em {
  font-style: normal;
  color: var(--accent);
}

.cs-thesis {
  margin-top: clamp(0.6rem, 1.4vh, 1rem);
  max-width: 52ch;
}

.cs-pattern {
  margin: 0;
  font-size: clamp(0.8rem, 1.3vmin, 0.98rem);
  line-height: 1.45;
  color: var(--muted);
}

.cs-stand {
  margin: clamp(0.4rem, 1vh, 0.65rem) 0 0;
  font-family: var(--serif);
  font-size: clamp(1rem, 1.9vmin, 1.4rem);
  line-height: 1.22;
  color: var(--ink);
}

.cs-stand strong {
  color: var(--accent);
  font-weight: 600;
}

/* publish rules — small readouts, not pills that shout */
.cs-rules {
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem 0.32rem;
  margin: clamp(0.5rem, 1.2vh, 0.8rem) 0 0;
  padding: 0;
  list-style: none;
}

.cs-rules li {
  font-size: clamp(0.62rem, 0.95vmin, 0.74rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  padding: 0.26rem 0.55rem;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
}

.cs-cell-link {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid var(--accent-line);
}

.cs-cell-link:hover {
  border-bottom-color: var(--accent);
}

.cs-rules li strong {
  color: var(--accent);
  font-weight: 800;
}

.cs-for {
  margin: clamp(0.5rem, 1.2vh, 0.8rem) 0 0;
  font-size: clamp(0.76rem, 1.2vmin, 0.9rem);
  line-height: 1.4;
  color: var(--muted);
  max-width: 52ch;
}

.cs-hook {
  margin: clamp(0.5rem, 1.2vh, 0.8rem) 0 0;
  padding-top: clamp(0.5rem, 1.2vh, 0.8rem);
  border-top: 1px solid var(--line);
  font-size: clamp(0.76rem, 1.2vmin, 0.9rem);
  line-height: 1.4;
  color: var(--muted);
  max-width: 52ch;
}

.cs-hook strong {
  color: var(--ink);
  font-weight: 700;
}

/* founder — a few dry lines, left rule, no portrait */
.cs-founder {
  margin-top: clamp(0.5rem, 1.2vh, 0.8rem);
  padding: clamp(0.4rem, 0.9vh, 0.6rem) 0.85rem;
  border-left: 2px solid var(--accent);
  background: rgba(200, 255, 0, 0.03);
  border-radius: 0 8px 8px 0;
  max-width: 50ch;
}

.cs-founder-label {
  display: block;
  margin-bottom: 0.15rem;
  font-size: clamp(0.6rem, 0.95vmin, 0.72rem);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: lowercase;
  color: var(--accent);
}

.cs-founder p {
  margin: 0;
  font-size: clamp(0.72rem, 1.15vmin, 0.86rem);
  line-height: 1.4;
  color: var(--muted);
}

.cs-founder a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid var(--accent-line);
}

.cs-founder a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.cs-ask {
  margin: clamp(0.55rem, 1.2vh, 0.85rem) 0 0;
  font-family: var(--serif);
  font-size: clamp(1.3rem, 3vmin, 2.1rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--accent);
}

.cs-rule-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--accent-line);
}

.cs-rule-link:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* desk loop spine — lives in the panel now */
.cs-spine {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem 0.45rem;
  margin-bottom: clamp(0.5rem, 1.2vh, 0.8rem);
}

.cs-spine span:not(.cs-spine-arrow) {
  font-size: clamp(0.68rem, 1.1vmin, 0.84rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  padding: 0.28rem 0.55rem;
  border-radius: 6px;
  background: rgba(11, 15, 12, 0.6);
  border: 1px solid var(--line);
}

.cs-spine-arrow {
  color: var(--accent);
  font-size: 0.82rem;
  opacity: 0.85;
}

/* right: panel with grid */
.cs-right {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  height: 100%;
}

.cs-panel {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  padding: clamp(0.9rem, 1.9vh, 1.35rem) clamp(1.1rem, 1.8vw, 1.4rem);
  border-radius: clamp(14px, 2vmin, 20px);
  border: 1px solid var(--accent-line);
  background:
    linear-gradient(160deg, var(--panel-highlight) 0%, var(--panel) 40%, rgba(11, 15, 12, 0.95) 100%);
  box-shadow:
    0 1px 0 rgba(200, 255, 0, 0.08) inset,
    0 32px 80px rgba(0, 0, 0, 0.45);
}

/* one card: the shell owns the frame, the panel and the play row sit inside it */
.cs-panel-shell {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  border-radius: clamp(14px, 2vmin, 20px);
  border: 1px solid var(--accent-line);
  background:
    linear-gradient(160deg, var(--panel-highlight) 0%, var(--panel) 40%, rgba(11, 15, 12, 0.95) 100%);
  box-shadow:
    0 1px 0 rgba(200, 255, 0, 0.08) inset,
    0 32px 80px rgba(0, 0, 0, 0.45);
}

.cs-panel-shell > .cs-panel {
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

/* play row — the card's footer, full bleed under a lime hairline */
.cs-panel-play {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: clamp(0.8rem, 1.6vw, 1.3rem);
  flex-shrink: 0;
  padding: clamp(0.6rem, 1.3vh, 0.85rem) clamp(1.1rem, 1.8vw, 1.4rem);
  border-top: 1px solid var(--accent-line);
  background: rgba(200, 250, 44, 0.035);
  color: var(--ink);
  text-decoration: none;
  transition: background 0.14s ease;
}

.cs-panel-play:hover {
  background: rgba(200, 250, 44, 0.08);
}

.cs-panel-play:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.cs-panel-play-main {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.cs-panel-play-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: clamp(0.58rem, 0.9vmin, 0.7rem);
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: lowercase;
  color: var(--accent);
  opacity: 0.85;
}

.cs-panel-play-title {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2vmin, 1.45rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cs-panel-play-cta {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  font-family: var(--mono);
  font-size: clamp(0.74rem, 1.15vmin, 0.88rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent);
  white-space: nowrap;
}

.cs-panel-play-arrow {
  display: inline-block;
  transition: transform 0.14s ease;
}

.cs-panel-play:hover .cs-panel-play-arrow {
  transform: translateX(3px);
}

.cs-panel-play-tag {
  padding-left: clamp(0.8rem, 1.6vw, 1.3rem);
  border-left: 1px solid var(--line);
  font-family: var(--serif);
  font-size: clamp(0.9rem, 1.5vmin, 1.1rem);
  line-height: 1;
  color: var(--muted);
  white-space: nowrap;
}

.cs-panel-play:hover .cs-panel-play-tag {
  color: var(--ink);
}

.cs-panel-header {
  margin-bottom: clamp(0.5rem, 1.2vh, 0.8rem);
}

.cs-panel-kicker {
  display: block;
  margin-bottom: 0.35rem;
  font-size: clamp(0.58rem, 0.9vmin, 0.7rem);
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: lowercase;
  color: var(--accent);
  opacity: 0.8;
}

.cs-panel-header h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.4vmin, 1.75rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.cs-panel-header h2 em {
  font-style: normal;
  color: var(--accent);
}

.cs-panel-header p {
  margin: 0.3rem 0 0;
  font-size: clamp(0.72rem, 1.1vmin, 0.85rem);
  color: var(--muted);
  letter-spacing: 0.03em;
}

/* 2×3 grid of surfaces */
.cs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: clamp(0.4rem, 0.9vh, 0.6rem);
  flex: 1;
  min-height: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cs-cell {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 0;
  overflow: hidden;
  padding: clamp(0.5rem, 1.1vh, 0.8rem) clamp(0.65rem, 1.2vw, 0.9rem);
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(11, 15, 12, 0.6);
  transition: border-color 0.12s ease, background 0.12s ease;
}

.cs-cell:hover {
  border-color: var(--accent-line);
  background: rgba(200, 255, 0, 0.03);
}

/* 03 play — the only cell with a live surface behind it */
.cs-cell--live {
  border-color: rgba(200, 250, 44, 0.2);
}

.cs-cell--live .cs-cell-num {
  opacity: 1;
}

.cs-cell-num {
  display: block;
  font-size: clamp(0.55rem, 0.9vmin, 0.68rem);
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--accent);
  opacity: 0.7;
  margin-bottom: 0.2rem;
}

.cs-cell h3 {
  margin: 0 0 0.25rem;
  font-size: clamp(0.92rem, 1.5vmin, 1.18rem);
  font-weight: 700;
  text-transform: lowercase;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.cs-cell p {
  margin: 0;
  font-size: clamp(0.68rem, 1.08vmin, 0.9rem);
  line-height: 1.38;
  color: var(--muted);
}

/* proof teaser — editorial list under the grid, lime kicker only, no stats */
.cs-proof-teaser {
  margin: clamp(0.6rem, 1.4vh, 0.9rem) 0 0;
  padding: clamp(0.55rem, 1.3vh, 0.8rem) 0 0;
  border-top: 1px solid var(--line);
}

.cs-proof-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.2rem 0.9rem;
  margin-bottom: 0.4rem;
}

.cs-proof-kicker {
  margin: 0;
  font-size: clamp(0.58rem, 0.9vmin, 0.7rem);
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: lowercase;
  color: var(--accent);
  opacity: 0.85;
}

.cs-proof-foot {
  margin: 0;
  font-size: clamp(0.64rem, 0.98vmin, 0.76rem);
  line-height: 1.35;
  color: var(--muted);
  opacity: 0.85;
}

.cs-proof-list {
  column-count: 2;
  column-gap: 1.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cs-proof-list li {
  position: relative;
  break-inside: avoid;
  margin-bottom: 0.28rem;
  padding-left: 0.85rem;
  font-size: clamp(0.66rem, 1.02vmin, 0.8rem);
  line-height: 1.38;
  color: var(--muted);
}

.cs-proof-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 1px;
  background: var(--accent);
  opacity: 0.8;
}

.cs-proof-list li strong {
  font-weight: 700;
  color: var(--ink);
}

/* live testnet proof widget (polls /api/launch/*) */
.cs-live-engine {
  margin: clamp(0.75rem, 1.6vh, 1rem) 0 0;
  padding: clamp(0.65rem, 1.4vh, 0.9rem);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.22);
}

.cs-live-engine-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 1rem;
  margin-bottom: 0.55rem;
}

.cs-live-engine-status {
  margin: 0;
  flex: 1 1 12rem;
  font-size: clamp(0.62rem, 0.95vmin, 0.74rem);
  color: var(--muted);
}

.cs-live-engine-full {
  font-size: clamp(0.62rem, 0.95vmin, 0.74rem);
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.04em;
}

.cs-live-engine-full:hover {
  text-decoration: underline;
}

.cs-live-engine-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.55rem;
}

.cs-engine-tab {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: clamp(0.62rem, 0.92vmin, 0.72rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.28rem 0.55rem;
  border-radius: 4px;
  cursor: pointer;
}

.cs-engine-tab.is-on {
  border-color: var(--accent);
  color: var(--ink);
  background: rgba(180, 255, 80, 0.08);
}

.cs-live-engine-grid {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.cs-engine-hero {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  gap: 0.1rem 0.65rem;
  padding: 0.45rem 0.55rem;
  border-radius: 4px;
  border: 1px solid var(--line);
}

.cs-engine-hero.is-ok {
  border-color: rgba(120, 220, 140, 0.45);
}

.cs-engine-hero.is-warn {
  border-color: rgba(220, 180, 80, 0.45);
}

.cs-engine-hero.is-bad {
  border-color: rgba(220, 90, 90, 0.5);
}

.cs-engine-hero-k {
  grid-column: 1;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.cs-engine-hero-v {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  font-size: clamp(1.1rem, 2.4vmin, 1.45rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.cs-engine-hero-s {
  grid-column: 1;
  font-size: 0.58rem;
  color: var(--muted);
  max-width: 9rem;
  line-height: 1.3;
}

.cs-engine-books {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.35rem;
}

.cs-engine-cell {
  padding: 0.35rem 0.4rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.cs-engine-cell-k {
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.cs-engine-cell-v {
  font-size: clamp(0.68rem, 1.05vmin, 0.82rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.cs-engine-cell-s {
  font-size: 0.55rem;
  color: var(--muted);
}

.cs-engine-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: clamp(0.64rem, 0.98vmin, 0.76rem);
  line-height: 1.35;
}

.cs-engine-row-k {
  color: var(--muted);
}

.cs-engine-row-v {
  font-weight: 700;
  color: var(--ink);
  text-align: right;
}

.cs-engine-row-v-sm {
  font-weight: 600;
  font-size: 0.62rem;
  max-width: 55%;
}

.cs-engine-feed {
  margin: 0.15rem 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px dashed var(--line);
  padding-top: 0.35rem;
}

.cs-engine-feed li {
  font-size: clamp(0.6rem, 0.92vmin, 0.72rem);
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.cs-engine-feed li span {
  color: var(--accent);
  font-weight: 700;
  margin-right: 0.35rem;
}

.cs-engine-muted {
  opacity: 0.75;
}

.cs-live-engine-note {
  margin: 0.55rem 0 0;
  font-size: clamp(0.58rem, 0.88vmin, 0.68rem);
  line-height: 1.4;
  color: var(--muted);
}

.cs-live-engine-note a {
  color: var(--accent);
}

/* footer */
.cs-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-shrink: 0;
  padding-top: clamp(0.55rem, 1.2vh, 0.85rem);
  border-top: 1px solid var(--line);
  margin-top: clamp(0.35rem, 0.8vh, 0.65rem);
}

.cs-footer-copy {
  margin: 0;
  font-size: clamp(0.72rem, 1vmin, 0.85rem);
  color: var(--muted);
}

.cs-footer-brand {
  color: var(--ink);
  font-weight: 700;
  margin-right: 0.3rem;
}

.cs-footer-proof {
  font-weight: 700;
  color: var(--accent) !important;
  margin-right: 0.15rem;
}

.cs-footer a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.cs-footer a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.cs-key-btn {
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.38rem 0.75rem;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: clamp(0.68rem, 1vmin, 0.8rem);
  letter-spacing: 0.1em;
  text-transform: lowercase;
  cursor: pointer;
  opacity: 0.65;
  transition: opacity 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.cs-key-btn:hover {
  opacity: 1;
  border-color: var(--accent-line);
  color: var(--accent);
}

/* drawer */
.cs-drawer {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: end center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.cs-drawer.is-open {
  opacity: 1;
  pointer-events: auto;
}

.cs-drawer-card {
  width: min(100%, 22rem);
  padding: 1.25rem;
  border-radius: 16px;
  border: 1px solid var(--accent-line);
  background: var(--panel);
  transform: translateY(10px);
  transition: transform 0.2s ease;
}

.cs-drawer.is-open .cs-drawer-card {
  transform: translateY(0);
}

.cs-drawer h2 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 700;
}

.cs-drawer p {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.cs-drawer input {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  margin-bottom: 0.75rem;
}

.cs-drawer input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.cs-drawer-actions {
  display: flex;
  gap: 0.5rem;
}

.cs-drawer-actions button {
  flex: 1;
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}

.cs-drawer-actions .cs-primary {
  background: var(--accent);
  color: #0b0f0c;
  border-color: var(--accent);
  font-weight: 700;
}

.cs-err {
  min-height: 1.25rem;
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  color: #ff7b72;
}

/* responsive: mobile stacks */
@media (max-width: 900px) {
  body {
    overflow: auto;
  }

  .cs-page {
    height: auto;
    max-height: none;
    min-height: 100dvh;
    overflow: visible;
    padding-bottom: 2rem;
  }

  .cs-main {
    grid-template-columns: 1fr;
    gap: clamp(2rem, 5vh, 3rem);
    align-items: start;
  }

  .cs-header {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 0.65rem;
  }

  .cs-header-left {
    justify-self: center;
  }

  .cs-books {
    justify-self: center;
  }

  .cs-left {
    text-align: center;
    align-items: center;
  }

  .cs-mark {
    justify-content: center;
  }

  .cs-question {
    max-width: none;
  }

  .cs-rules {
    justify-content: center;
  }

  .cs-thesis,
  .cs-for,
  .cs-hook {
    max-width: none;
    text-align: center;
  }

  .cs-founder {
    text-align: left;
    width: 100%;
    max-width: 28rem;
  }

  .cs-spine {
    justify-content: center;
  }

  .cs-grid {
    grid-template-rows: auto;
  }

  .cs-panel {
    height: auto;
  }

  .cs-panel-play {
    grid-template-columns: minmax(0, 1fr) auto;
    row-gap: 0.55rem;
    text-align: left;
  }

  .cs-panel-play-main {
    grid-column: 1 / -1;
  }

  .cs-panel-play-tag {
    padding-left: 0;
    border-left: 0;
    justify-self: end;
  }

  .cs-countdown {
    align-items: center;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .cs-countdown-value {
    justify-content: center;
  }

  .cs-proof-list {
    column-count: 1;
    text-align: left;
  }

  .cs-proof-head {
    flex-direction: column;
    gap: 0.2rem;
    text-align: left;
  }
}

@media (max-width: 560px) {
  .cs-countdown {
    justify-content: center;
    gap: 0.3rem 0.75rem;
  }

  .cs-countdown-label {
    flex-basis: 100%;
    text-align: center;
  }

  .cs-countdown-note {
    flex-basis: 100%;
    text-align: center;
  }
}

/* short viewports — two tiers, so the whole gate stays on one screen */
@media (max-height: 920px) and (min-width: 901px) {
  .cs-hook {
    display: none;
  }

  .cs-for {
    display: none;
  }
}

@media (max-height: 840px) and (min-width: 901px) {
  .cs-hook {
    display: none;
  }

  .cs-for {
    display: none;
  }

  .cs-panel-header p {
    display: none;
  }

  .cs-founder p {
    font-size: clamp(0.7rem, 1.1vmin, 0.8rem);
  }

  .cs-proof-foot {
    display: none;
  }
}

@media (max-height: 740px) and (min-width: 901px) {
  .cs-logo {
    font-size: clamp(2.1rem, 5.2vmin, 3.2rem);
  }

  .cs-question {
    font-size: clamp(1.9rem, 5.4vmin, 3.6rem);
  }

  .cs-stand {
    font-size: clamp(0.95rem, 1.8vmin, 1.25rem);
  }

  .cs-ask {
    font-size: clamp(1.2rem, 2.8vmin, 1.8rem);
  }

  .cs-founder {
    max-width: 60ch;
  }

  .cs-cell {
    padding: 0.45rem 0.55rem;
  }

  .cs-cell h3 {
    font-size: clamp(0.82rem, 1.3vmin, 0.95rem);
  }

  .cs-cell p {
    font-size: clamp(0.66rem, 1vmin, 0.76rem);
    line-height: 1.3;
  }

  .cs-spine {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cs-status-dot {
    animation: none;
  }

  .cs-live-dot,
  .cs-panel-play-arrow {
    animation: none;
    transition: none;
  }

  .cs-drawer,
  .cs-drawer-card,
  .cs-cell {
    transition: none;
  }
}
