/** Shared CT page design system — terminal degen, matches game tokens. */
:root {
  --ct-rug: #f87171;
  --ct-omega: #a78bfa;
  --ct-dim: #64748b;
  --ct-surface-2: #0f172a;
  --ct-radius: 10px;
  --ct-radius-sm: 6px;
  --ct-text-xs: 0.68rem;
  --ct-text-sm: 0.78rem;
  --ct-text-base: 0.85rem;
  --ct-text-lg: 1.1rem;
  --ct-text-hero: clamp(1.4rem, 5vw, 2.4rem);
  --ct-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --ct-display: "Boldpixels", var(--ct-mono);
  --ct-page-pad: 20px;
  --ct-max-w: 1080px;
}

@font-face {
  font-family: "Boldpixels";
  src: url("/assets/fonts/boldpixels.woff2") format("woff2"),
    url("/assets/fonts/boldpixels.woff") format("woff");
  font-display: swap;
}

body.ct-page {
  max-width: var(--ct-max-w);
  margin: 0 auto;
  padding: var(--ct-page-pad);
  padding-top: calc(var(--ct-shell-h) + var(--ct-page-pad));
  font-variant-numeric: tabular-nums;
  line-height: 1.45;
}

.ct-display {
  font-family: var(--ct-display);
  letter-spacing: 0.04em;
}

.ct-page h1 {
  font-size: var(--ct-text-lg);
  color: var(--ct-green);
  margin: 0 0 4px;
  font-weight: 700;
}

.ct-page h2 {
  font-size: 0.82rem;
  color: var(--ct-gold);
  margin: 1.2rem 0 0.5rem;
}

.ct-muted { opacity: 0.72; font-size: var(--ct-text-base); color: var(--ct-muted); }
.ct-peak { color: var(--ct-gold); font-weight: 700; }
.ct-live { color: var(--ct-green); font-weight: 700; }
.ct-omega { color: var(--ct-omega); font-weight: 700; }
.ct-rug { color: var(--ct-rug); font-weight: 700; }
.ct-page a { color: var(--ct-green); }

.ct-chip {
  display: inline-block;
  margin: 4px 6px 0 0;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--ct-border);
  font-size: var(--ct-text-xs);
  background: var(--ct-surface-2);
  text-decoration: none;
  color: inherit;
}

.ct-chip--live {
  border-color: rgba(52, 211, 153, 0.5);
  color: #6ee7b7;
  animation: ct-pulse-live 2s ease-in-out infinite;
}

.ct-chip--rug {
  border-color: rgba(248, 113, 113, 0.45);
  color: #fca5a5;
}

.ct-chip--omega {
  border-color: rgba(167, 139, 250, 0.45);
  color: var(--ct-omega);
}

.ct-chip--gold {
  border-color: rgba(251, 191, 36, 0.4);
  color: var(--ct-gold);
}

.ct-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin: 14px 0;
}

.ct-card {
  border: 1px solid var(--ct-border);
  border-radius: var(--ct-radius);
  padding: 14px;
  background: var(--ct-surface);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ct-card:hover {
  border-color: rgba(52, 211, 153, 0.45);
  box-shadow: 0 0 0 1px rgba(52, 211, 153, 0.08);
}

.ct-card--omega:hover {
  border-color: rgba(167, 139, 250, 0.5);
  box-shadow: 0 0 20px rgba(167, 139, 250, 0.12);
}

.ct-card--link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.ct-card strong.ct-live,
.ct-card > strong:first-child {
  font-size: var(--ct-text-sm);
  color: var(--ct-green);
}

.ct-btn {
  display: inline-block;
  padding: 8px 12px;
  border-radius: var(--ct-radius-sm);
  background: var(--ct-green);
  color: var(--ct-bg);
  font-weight: 700;
  text-decoration: none;
  font-size: var(--ct-text-sm);
  margin: 6px 6px 0 0;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.ct-btn--ghost {
  background: transparent;
  border: 1px solid var(--ct-border);
  color: var(--ct-text);
}

.ct-btn--omega {
  background: linear-gradient(135deg, #7c3aed 0%, var(--ct-omega) 100%);
  color: #0a0e14;
}

.ct-btn--rug {
  background: var(--ct-rug);
  color: #0a0e14;
}

.ct-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
}

.ct-input {
  font: inherit;
  padding: 8px 10px;
  border-radius: var(--ct-radius-sm);
  border: 1px solid #334155;
  background: var(--ct-surface-2);
  color: var(--ct-text);
  min-width: 140px;
}

.ct-pre {
  font-size: var(--ct-text-xs);
  background: var(--ct-surface-2);
  border: 1px solid var(--ct-border);
  border-radius: var(--ct-radius);
  padding: 12px;
  overflow: auto;
  max-height: 320px;
  margin: 0;
}

.ct-terminal-block {
  font-size: var(--ct-text-sm);
  background: var(--ct-surface-2);
  border-left: 3px solid var(--ct-green);
  border-radius: 0 var(--ct-radius-sm) var(--ct-radius-sm) 0;
  padding: 12px 14px;
  margin: 10px 0;
}

.ct-terminal-block .line {
  display: flex;
  gap: 12px;
  margin: 4px 0;
}

.ct-terminal-block .key {
  color: var(--ct-dim);
  min-width: 72px;
  text-transform: uppercase;
  font-size: var(--ct-text-xs);
}

.ct-terminal-block .val {
  color: var(--ct-gold);
  font-weight: 700;
}

.ct-tape {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--ct-text-sm);
  max-height: 280px;
  overflow: hidden;
}

.ct-tape li {
  padding: 6px 10px;
  border-left: 2px solid transparent;
  animation: ct-tape-in 0.35s ease-out;
}

.ct-tape li:first-child {
  border-left-color: var(--ct-green);
  background: rgba(52, 211, 153, 0.06);
}

.ct-pager {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 12px 0;
}

.ct-pager button {
  font: inherit;
  padding: 8px 12px;
  border-radius: var(--ct-radius-sm);
  border: 1px solid var(--ct-border);
  background: var(--ct-surface-2);
  color: var(--ct-text);
  cursor: pointer;
}

.ct-pager button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.ct-view-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0;
}

.ct-view-tabs button {
  font: inherit;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--ct-border);
  background: var(--ct-surface-2);
  color: var(--ct-muted);
  cursor: pointer;
  font-size: var(--ct-text-xs);
}

.ct-view-tabs button.is-active {
  border-color: var(--ct-green);
  color: var(--ct-green);
  font-weight: 700;
}

.ct-heatmap {
  display: flex;
  gap: 2px;
  height: 8px;
  margin: 12px 0 4px;
  border-radius: 4px;
  overflow: hidden;
}

.ct-heatmap span {
  flex: 1;
  min-width: 2px;
}

.ct-tape-row {
  display: grid;
  grid-template-columns: minmax(80px, 1fr) 2fr auto auto;
  gap: 8px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--ct-border);
  font-size: var(--ct-text-xs);
  text-decoration: none;
  color: inherit;
}

.ct-tape-row:hover {
  background: rgba(52, 211, 153, 0.05);
}

.ct-tape-row .id { color: var(--ct-green); font-weight: 700; }
.ct-tape-row .ver { color: var(--ct-dim); }

.ct-hero-singularity {
  text-align: center;
  padding: 28px 16px 20px;
  position: relative;
  overflow: hidden;
  border-radius: var(--ct-radius);
  border: 1px solid var(--ct-border);
  background: radial-gradient(ellipse at 50% 30%, rgba(167, 139, 250, 0.18) 0%, transparent 55%),
    var(--ct-surface);
  margin: 16px 0;
}

.ct-hero-singularity::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(10, 14, 20, 0.4) 100%);
  pointer-events: none;
}

.ct-monument {
  font-family: var(--ct-display);
  font-size: clamp(1rem, 4.5vw, 1.75rem);
  color: var(--ct-gold);
  letter-spacing: 0.06em;
  text-shadow: 0 0 32px rgba(251, 191, 36, 0.25);
  margin: 12px 0;
  word-break: break-all;
}

.ct-glow-title {
  font-family: var(--ct-display);
  font-size: var(--ct-text-hero);
  color: var(--ct-omega);
  text-shadow: 0 0 28px rgba(167, 139, 250, 0.35);
  margin: 8px 0;
}

.ct-roulette-wheel {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 12px auto;
  border: 3px solid var(--ct-border);
  background: conic-gradient(
    var(--ct-green) 0deg 45deg,
    var(--ct-gold) 45deg 90deg,
    var(--ct-omega) 90deg 135deg,
    var(--ct-surface-2) 135deg 180deg,
    var(--ct-green) 180deg 225deg,
    var(--ct-gold) 225deg 270deg,
    var(--ct-omega) 270deg 315deg,
    var(--ct-surface-2) 315deg 360deg
  );
  transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.3, 1);
}

.ct-roulette-wheel.is-spinning {
  animation: ct-roulette-spin 0.45s ease-out;
}

.ct-scanline-once::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(180deg, transparent, rgba(167, 139, 250, 0.08), transparent);
  animation: ct-scanline 1.2s ease-out 1;
  pointer-events: none;
}

.ct-stat-reveal {
  animation: ct-stat-reveal 0.5s ease-out;
}

@keyframes ct-pulse-live {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

@keyframes ct-tape-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes ct-roulette-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(720deg); }
}

@keyframes ct-scanline {
  from { top: -40%; }
  to { top: 100%; }
}

@keyframes ct-stat-reveal {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.ct-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.ct-stat-card {
  border: 1px solid var(--ct-border);
  border-radius: var(--ct-radius);
  padding: 12px;
  background: var(--ct-surface);
}

.ct-stat-card > strong {
  display: block;
  font-size: var(--ct-text-xs);
  color: var(--ct-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ct-stat-card .ct-big {
  font-size: 1.35rem;
  font-weight: 700;
}

.ct-line-box {
  margin: 10px 0;
  padding: 10px 12px;
  border-left: 2px solid var(--ct-green);
  background: var(--ct-surface-2);
  font-size: var(--ct-text-sm);
  border-radius: 0 var(--ct-radius-sm) var(--ct-radius-sm) 0;
}

.ct-nav-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.ct-nav-pills a,
.ct-pill {
  border: 1px solid var(--ct-border);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: var(--ct-text-sm);
  background: var(--ct-surface-2);
  text-decoration: none;
  color: inherit;
}

.ct-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--ct-text-sm);
}

.ct-table th,
.ct-table td {
  padding: 8px 6px;
  border-bottom: 1px solid var(--ct-border);
  text-align: left;
}

.ct-textarea {
  font: inherit;
  width: 100%;
  padding: 10px;
  border-radius: var(--ct-radius-sm);
  border: 1px solid var(--ct-border);
  background: var(--ct-surface-2);
  color: var(--ct-text);
  resize: vertical;
  min-height: 100px;
}

.ct-chip-btn {
  display: inline-block;
  margin: 4px 6px 0 0;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--ct-border);
  font-size: var(--ct-text-xs);
  cursor: pointer;
  background: var(--ct-surface-2);
  color: inherit;
  font-family: inherit;
}

.ct-chip-btn:hover {
  border-color: var(--ct-green);
}

.ct-spark {
  margin: 12px 0;
  border-radius: var(--ct-radius);
  border: 1px solid var(--ct-border);
  max-width: 100%;
}

.ct-og-thumb {
  width: 100%;
  max-width: 480px;
  border-radius: var(--ct-radius);
  border: 1px solid var(--ct-border);
  background: var(--ct-surface-2);
}

/* Legacy aliases — community pages still emit .muted / .card / .btn in JS */
body.ct-page .muted { opacity: 0.72; font-size: var(--ct-text-base); color: var(--ct-muted); }
body.ct-page .peak { color: var(--ct-gold); font-weight: 700; }
body.ct-page .live { color: var(--ct-green); font-weight: 700; }
body.ct-page .headline { color: var(--ct-gold); font-weight: 700; font-size: 0.95rem; margin: 0 0 8px; }
body.ct-page .big { font-size: 1.35rem; font-weight: 700; }

body.ct-page .card {
  border: 1px solid var(--ct-border);
  border-radius: var(--ct-radius);
  padding: 14px;
  background: var(--ct-surface);
  margin: 10px 0;
}

body.ct-page .card--live { border-color: rgba(52, 211, 153, 0.35); }
body.ct-page .card strong { color: var(--ct-green); }

body.ct-page .chip {
  display: inline-block;
  margin: 4px 6px 0 0;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--ct-border);
  font-size: var(--ct-text-xs);
  background: var(--ct-surface-2);
  cursor: default;
}

body.ct-page .chip--live { border-color: rgba(52, 211, 153, 0.5); color: #6ee7b7; }
body.ct-page .chip--rug { border-color: rgba(248, 113, 113, 0.45); color: #fca5a5; }
body.ct-page .chip--sse { border-color: rgba(52, 211, 153, 0.35); color: #6ee7b7; }
body.ct-page button.chip,
body.ct-page .chip[role="button"] { cursor: pointer; }
body.ct-page button.chip:hover { border-color: var(--ct-green); }

body.ct-page .btn,
body.ct-page a.btn,
body.ct-page button.btn {
  display: inline-block;
  padding: 8px 12px;
  border-radius: var(--ct-radius-sm);
  background: var(--ct-green);
  color: var(--ct-bg);
  font-weight: 700;
  text-decoration: none;
  font-size: var(--ct-text-sm);
  border: none;
  cursor: pointer;
  font-family: inherit;
}

body.ct-page a.ghost,
body.ct-page button.ghost {
  background: transparent;
  border: 1px solid var(--ct-border);
  color: var(--ct-text);
  font-weight: 400;
}

body.ct-page .row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
}

body.ct-page .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  margin: 14px 0;
}

body.ct-page .line-box {
  margin: 10px 0;
  padding: 10px 12px;
  border-left: 2px solid var(--ct-green);
  background: var(--ct-surface-2);
  font-size: var(--ct-text-sm);
  line-height: 1.45;
  border-radius: 0 var(--ct-radius-sm) var(--ct-radius-sm) 0;
}

body.ct-page .slot {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

body.ct-page .pill {
  border: 1px solid var(--ct-border);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: var(--ct-text-sm);
  background: var(--ct-surface-2);
  text-decoration: none;
  color: inherit;
}

body.ct-page .nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

body.ct-page .spark {
  margin: 12px 0;
  border-radius: var(--ct-radius);
  border: 1px solid var(--ct-border);
  max-width: 100%;
}

body.ct-page table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--ct-text-sm);
}

body.ct-page th,
body.ct-page td {
  padding: 8px 6px;
  border-bottom: 1px solid var(--ct-border);
  text-align: left;
}

body.ct-page input,
body.ct-page select,
body.ct-page textarea {
  font: inherit;
  padding: 8px 10px;
  border-radius: var(--ct-radius-sm);
  border: 1px solid #334155;
  background: var(--ct-surface-2);
  color: var(--ct-text);
}

body.ct-page button:not(.btn):not(.ghost):not(.chip):not(.ct-btn):not(.ct-chip-btn) {
  font: inherit;
  padding: 8px 12px;
  border-radius: var(--ct-radius-sm);
  border: none;
  background: var(--ct-green);
  color: var(--ct-bg);
  font-weight: 700;
  cursor: pointer;
}

body.ct-page .ct-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

body.ct-page .ct-list li {
  margin: 10px 0;
  padding: 10px 12px;
  border: 1px solid var(--ct-border);
  border-radius: var(--ct-radius);
  background: var(--ct-surface-2);
  font-size: var(--ct-text-sm);
}

body.ct-page .ct-lines {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
}

body.ct-page .ct-lines li {
  margin: 6px 0;
  padding: 8px 10px;
  border: 1px solid var(--ct-border);
  border-radius: var(--ct-radius-sm);
  background: var(--ct-surface-2);
  font-size: var(--ct-text-xs);
}

body.ct-page .tweet {
  white-space: pre-wrap;
  line-height: 1.45;
  font-size: 0.88rem;
}

body.ct-page details { margin: 10px 0; }
body.ct-page summary { cursor: pointer; color: var(--ct-green); }
body.ct-page .pager { margin: 12px 0; }

body.ct-page code {
  background: var(--ct-surface-2);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}

body.ct-page textarea[readonly] {
  width: 100%;
  min-height: 72px;
  margin-top: 8px;
  resize: vertical;
}

.ct-card--nested { margin: 8px 0; }

.ct-embed-preview {
  margin: 10px 0;
  border: 1px solid var(--ct-border);
  border-radius: var(--ct-radius);
  overflow: hidden;
  background: var(--ct-surface-2);
}

.ct-embed-preview iframe,
.ct-embed-preview img {
  display: block;
  max-width: 100%;
  border: 0;
}

.ct-progress {
  height: 8px;
  background: var(--ct-surface-2);
  border-radius: 4px;
  overflow: hidden;
  margin: 8px 0 4px;
  border: 1px solid var(--ct-border);
}

.ct-progress > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--ct-green), #6ee7b7);
  min-width: 2px;
  transition: width 0.3s ease;
}

.ct-hero-dare {
  text-align: center;
  padding: 24px 16px;
  margin: 12px 0 18px;
  border-radius: var(--ct-radius);
  border: 1px solid rgba(248, 113, 113, 0.35);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(248, 113, 113, 0.14) 0%, transparent 55%),
    var(--ct-surface);
  position: relative;
  overflow: hidden;
}

.ct-hero-dare .ct-display {
  font-size: clamp(1.2rem, 4vw, 2rem);
  color: #fca5a5;
  text-shadow: 0 0 28px rgba(248, 113, 113, 0.25);
}

.ct-covenant {
  font-size: var(--ct-text-sm);
  background: var(--ct-surface-2);
  border-left: 3px solid var(--ct-rug);
  border-radius: 0 var(--ct-radius) var(--ct-radius) 0;
  padding: 14px 16px;
  margin: 12px 0;
  line-height: 1.5;
}

.ct-covenant--omega {
  border-left-color: var(--ct-omega);
  box-shadow: 0 0 24px rgba(167, 139, 250, 0.12);
}

.ct-covenant .sig {
  color: var(--ct-gold);
  font-weight: 700;
  margin-top: 10px;
}

.ct-tape--dare li:first-child {
  border-left-color: var(--ct-rug);
  background: rgba(248, 113, 113, 0.07);
}

.ct-grave { color: #94a3b8; font-weight: 700; }

.ct-chip--grave {
  border-color: rgba(148, 163, 184, 0.45);
  color: #cbd5e1;
  background: rgba(100, 116, 139, 0.12);
}

.ct-btn--grave {
  background: #64748b;
  color: #0a0e14;
}

.ct-hero-burial {
  text-align: center;
  padding: 24px 16px;
  margin: 12px 0 18px;
  background: linear-gradient(180deg, rgba(100, 116, 139, 0.08) 0%, transparent 100%);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: var(--ct-radius, 8px);
}

.ct-hero-burial .ct-display {
  font-size: clamp(1.2rem, 4vw, 2rem);
  color: #cbd5e1;
  text-shadow: 0 0 28px rgba(148, 163, 184, 0.2);
}

.ct-tombstone {
  font-size: var(--ct-text-sm);
  background: var(--ct-surface-2);
  border-left: 3px solid #64748b;
  padding: 14px 16px;
  border-radius: var(--ct-radius, 8px);
  margin-top: 12px;
}

.ct-tombstone--omega {
  border-left-color: var(--ct-omega);
  box-shadow: 0 0 24px rgba(167, 139, 250, 0.1);
}

.ct-tombstone .epitaph {
  font-style: italic;
  color: var(--ct-muted);
  margin: 8px 0;
}

.ct-tombstone .sig {
  color: var(--ct-gold);
  font-weight: 700;
  margin-top: 10px;
}

.ct-tape--burial li:first-child {
  border-left-color: #64748b;
  background: rgba(100, 116, 139, 0.08);
}

.ct-hero-reckoning {
  text-align: center;
  padding: 24px 16px;
  margin: 12px 0 18px;
  background: linear-gradient(180deg, rgba(248, 113, 113, 0.08) 0%, rgba(100, 116, 139, 0.05) 100%);
  border: 1px solid rgba(248, 113, 113, 0.2);
  border-radius: var(--ct-radius, 8px);
}

.ct-hero-reckoning .ct-display {
  font-size: clamp(1.2rem, 4vw, 2rem);
  color: #fca5a5;
}

.ct-tape--reckoning li:first-child {
  border-left-color: #f87171;
  background: rgba(248, 113, 113, 0.07);
}

.ct-btn--sm {
  font-size: 0.68rem;
  padding: 4px 8px;
}

.ct-gold { color: #fbbf24; font-weight: 700; }
.ct-news { color: #fca5a5; font-weight: 700; }

.ct-chip--gold {
  border-color: rgba(251, 191, 36, 0.45);
  color: #fde68a;
  background: rgba(251, 191, 36, 0.1);
}

.ct-chip--news {
  border-color: rgba(248, 113, 113, 0.4);
  color: #fecaca;
  background: rgba(127, 29, 29, 0.2);
}

.ct-btn--gold {
  background: #fbbf24;
  color: #0a0e14;
}

.ct-hero-haunt {
  text-align: center;
  padding: 24px 16px;
  margin: 12px 0 18px;
  background: linear-gradient(180deg, rgba(251, 191, 36, 0.08) 0%, transparent 100%);
  border: 1px solid rgba(251, 191, 36, 0.2);
  border-radius: var(--ct-radius, 8px);
}

.ct-hero-haunt .ct-display {
  color: #fde68a;
  text-shadow: 0 0 24px rgba(251, 191, 36, 0.2);
}

.ct-hero-obit {
  text-align: center;
  padding: 24px 16px;
  margin: 12px 0 18px;
  background: linear-gradient(180deg, rgba(127, 29, 29, 0.15) 0%, transparent 100%);
  border: 1px solid rgba(248, 113, 113, 0.2);
  border-radius: var(--ct-radius, 8px);
}

.ct-hero-obit .ct-display {
  color: #fecaca;
}

.ct-tape--haunt li:first-child {
  border-left-color: #fbbf24;
  background: rgba(251, 191, 36, 0.07);
}

.ct-obit {
  background: var(--ct-surface-2);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-left: 3px solid #f87171;
  padding: 16px;
  margin: 0 0 14px;
  border-radius: var(--ct-radius, 8px);
}

.ct-obit__headline {
  color: #f87171;
  font-weight: 800;
  font-size: var(--ct-text-sm);
  letter-spacing: 0.04em;
  margin: 0 0 10px;
}

.ct-obit__body {
  font-size: var(--ct-text-sm);
  line-height: 1.55;
  margin: 0 0 10px;
}

.ct-obit__byline {
  font-size: 0.72rem;
  margin: 0 0 12px;
}

.ct-chain { color: #34d399; font-weight: 700; }

.ct-chip--chain {
  border-color: rgba(52, 211, 153, 0.45);
  color: #6ee7b7;
  background: rgba(52, 211, 153, 0.1);
}

.ct-hero-ledger {
  text-align: center;
  padding: 24px 16px;
  margin: 12px 0 18px;
  background: linear-gradient(180deg, rgba(52, 211, 153, 0.1) 0%, transparent 100%);
  border: 1px solid rgba(52, 211, 153, 0.25);
  border-radius: var(--ct-radius, 8px);
}

.ct-hero-ledger .ct-display {
  color: #6ee7b7;
  text-shadow: 0 0 24px rgba(52, 211, 153, 0.2);
}

.ct-tape--ledger li:first-child {
  border-left-color: #34d399;
  background: rgba(52, 211, 153, 0.08);
}

.ct-card--chain {
  border-color: rgba(34, 211, 238, 0.3);
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.06) 0%, transparent 100%);
}

.ct-ledger {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(52, 211, 153, 0.25);
  border-radius: var(--ct-radius-sm, 6px);
  background: rgba(7, 12, 18, 0.6);
}

.ct-ledger--done {
  border-color: rgba(52, 211, 153, 0.45);
}

.ct-ledger-inline .ct-ledger {
  margin-top: 6px;
}

.ct-btn--chain {
  border-color: rgba(52, 211, 153, 0.5);
  color: #6ee7b7;
  background: rgba(52, 211, 153, 0.12);
}

.ct-ledger__status {
  margin: 6px 0 0;
  font-size: var(--ct-text-xs);
}

.ct-hero-testament {
  text-align: center;
  padding: 24px 16px;
  margin: 12px 0 18px;
  background: linear-gradient(180deg, rgba(167, 139, 250, 0.12) 0%, transparent 100%);
  border: 1px solid rgba(167, 139, 250, 0.28);
  border-radius: var(--ct-radius, 8px);
}

.ct-hero-testament .ct-display { color: #c4b5fd; }

.ct-hero-apostles {
  text-align: center;
  padding: 24px 16px;
  margin: 12px 0 18px;
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.1) 0%, transparent 100%);
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-radius: var(--ct-radius, 8px);
}

.ct-hero-apostles .ct-display { color: #67e8f9; }

.ct-tape--testament li:first-child,
.ct-tape--apostles li:first-child {
  border-left-color: #a78bfa;
  background: rgba(167, 139, 250, 0.08);
}

.ct-chip--pyre {
  border-color: rgba(249, 115, 22, 0.5);
  color: #fdba74;
  background: rgba(249, 115, 22, 0.12);
}

.ct-hero-pyre {
  text-align: center;
  padding: 24px 16px;
  margin: 12px 0 18px;
  background: linear-gradient(180deg, rgba(249, 115, 22, 0.14) 0%, transparent 100%);
  border: 1px solid rgba(249, 115, 22, 0.3);
  border-radius: var(--ct-radius, 8px);
}

.ct-hero-pyre .ct-display { color: #fdba74; }

.ct-card--pyre {
  border-color: rgba(249, 115, 22, 0.35);
  background: linear-gradient(180deg, rgba(249, 115, 22, 0.06) 0%, transparent 100%);
}

.ct-btn--pyre {
  border-color: rgba(249, 115, 22, 0.55);
  color: #fdba74;
  background: rgba(249, 115, 22, 0.15);
}

.ct-pyre { margin-top: 10px; }

.ct-tape--pyre li:first-child {
  border-left-color: #f97316;
  background: rgba(249, 115, 22, 0.08);
}

.ct-chip--ascension {
  border-color: rgba(251, 191, 36, 0.5);
  color: #fde68a;
  background: rgba(251, 191, 36, 0.1);
}

.ct-hero-ascension {
  text-align: center;
  padding: 24px 16px;
  margin: 12px 0 18px;
  background: linear-gradient(180deg, rgba(251, 191, 36, 0.1) 0%, rgba(34, 211, 238, 0.05) 50%, transparent 100%);
  border: 1px solid rgba(251, 191, 36, 0.28);
  border-radius: var(--ct-radius, 8px);
}

.ct-hero-ascension .ct-display { color: #fde68a; }
.ct-ascension { color: #fde68a; }

.ct-card--ascension {
  border-color: rgba(251, 191, 36, 0.3);
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.05) 0%, rgba(34, 211, 238, 0.04) 100%);
}

.ct-btn--ascension {
  border-color: rgba(251, 191, 36, 0.55);
  color: #fde68a;
  background: rgba(251, 191, 36, 0.12);
}

.ct-ascension-score {
  font-size: 0.85em;
  margin-left: 4px;
}

.ct-tape--ascension li:first-child {
  border-left-color: #fbbf24;
  background: rgba(251, 191, 36, 0.08);
}

.ct-chip--flex {
  border-color: rgba(52, 211, 153, 0.5);
  color: #6ee7b7;
  background: rgba(52, 211, 153, 0.1);
}

.ct-hero-flex {
  text-align: center;
  padding: 24px 16px;
  margin: 12px 0 18px;
  background: linear-gradient(180deg, rgba(52, 211, 153, 0.12) 0%, rgba(248, 113, 113, 0.06) 50%, transparent 100%);
  border: 1px solid rgba(52, 211, 153, 0.28);
  border-radius: var(--ct-radius, 8px);
}

.ct-hero-flex .ct-display { color: #6ee7b7; }
.ct-flex { color: #6ee7b7; }
.ct-oracle { color: #fde68a; font-size: 1.05rem; line-height: 1.5; margin: 0 0 8px; }

.ct-card--flex {
  border-color: rgba(52, 211, 153, 0.3);
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.06) 0%, rgba(251, 191, 36, 0.04) 100%);
}

.ct-btn--flex {
  border-color: rgba(52, 211, 153, 0.55);
  color: #6ee7b7;
  background: rgba(52, 211, 153, 0.12);
}

.ct-flex-out { white-space: pre-wrap; }

.ct-wagmi-meter { margin: 12px 0; }
.ct-wagmi-bar {
  height: 10px;
  background: #1e293b;
  border-radius: 6px;
  overflow: hidden;
}
.ct-wagmi-fill {
  height: 100%;
  border-radius: 6px;
  transition: width 0.4s ease;
}
.ct-wagmi-label {
  margin: 8px 0 0;
  font-size: 0.9rem;
  color: #94a3b8;
}

.ct-tape--flex li:first-child {
  border-left-color: #34d399;
  background: rgba(52, 211, 153, 0.08);
}

@media (max-width: 640px) {
  .ct-tape-row {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}