/* PromptArcade, "Arcade Cabinet" design system */

:root {
  --ink: #0E0E12;
  --paper: #FAF6EE;
  --paper-2: #F2EDDF;
  --soot: #3A3A42;
  --muted: #6E6E78;
  --line: #1A1A22;

  --coral: #FF5B3A;
  --coral-soft: #FFE4DC;
  --lime: #C7F25C;
  --lime-soft: #EEF9D0;
  --uv: #5B47FF;
  --uv-soft: #E2DDFF;

  --shadow-hard: 4px 4px 0 var(--ink);
  --shadow-soft: 2px 2px 0 var(--ink);

  --radius: 14px;
  --radius-sm: 8px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(14,14,18,0.06) 1px, transparent 0);
  background-size: 22px 22px;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }

/* ---- Typography ---- */
.mono, h1, h2, .ticker, .badge, .star, .score-num, .level-num {
  font-family: 'Geist Mono', 'JetBrains Mono', 'Courier New', monospace;
  letter-spacing: -0.01em;
}
.handwrit {
  font-family: 'Caveat', 'Comic Sans MS', cursive;
  font-weight: 600;
}

h1 { font-size: clamp(40px, 6vw, 72px); font-weight: 800; line-height: 1.02; letter-spacing: -0.04em; }
h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; line-height: 1.1; letter-spacing: -0.025em; }
h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
p { line-height: 1.65; }

/* ---- Layout ---- */
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-tight { padding: 48px 0; }

/* ---- Top nav ---- */
.topbar {
  position: sticky; top: 0; z-index: 100;
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
}
.topbar-inner {
  max-width: 1140px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; gap: 20px;
}
.brand {
  font-family: 'Geist Mono', monospace;
  font-weight: 800; font-size: 18px;
  display: inline-flex; align-items: center; gap: 8px;
}
.brand-dot {
  width: 14px; height: 14px; background: var(--coral);
  border: 2px solid var(--ink); border-radius: 3px;
  transform: rotate(-8deg);
}
.nav-links { display: flex; gap: 4px; margin-left: auto; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.nav-links::-webkit-scrollbar { display: none; }
.nav-link {
  padding: 8px 14px; font-size: 14px; font-weight: 600;
  border: 2px solid transparent; border-radius: var(--radius-sm);
  transition: all 0.12s ease;
  white-space: nowrap;
}
.nav-link:hover { border-color: var(--ink); background: var(--paper-2); }
.nav-link.active { background: var(--ink); color: var(--paper); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; font-size: 15px; font-weight: 700;
  background: var(--ink); color: var(--paper);
  border: 2px solid var(--ink); border-radius: var(--radius-sm);
  cursor: pointer; transition: transform 0.08s ease, box-shadow 0.08s ease;
  box-shadow: var(--shadow-hard);
  font-family: inherit;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.btn-coral { background: var(--coral); }
.btn-lime  { background: var(--lime); color: var(--ink); }
.btn-uv    { background: var(--uv); color: var(--paper); }
.btn-ghost { background: var(--paper); color: var(--ink); }
.btn-sm    { padding: 8px 14px; font-size: 13px; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: var(--shadow-soft); }

/* ---- Cards ---- */
.card {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-hard);
}
.card-coral { background: var(--coral-soft); }
.card-lime  { background: var(--lime-soft); }
.card-uv    { background: var(--uv-soft); }

.tag {
  display: inline-block;
  font-family: 'Geist Mono', monospace;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 4px 10px;
  border: 2px solid var(--ink);
  border-radius: 100px;
  background: var(--paper);
}
.tag-coral { background: var(--coral); color: var(--paper); }
.tag-lime  { background: var(--lime); color: var(--ink); }
.tag-uv    { background: var(--uv); color: var(--paper); }

/* ---- Hero ---- */
.hero {
  padding: 90px 0 60px;
  position: relative;
}
.hero h1 .squig {
  display: inline-block; transform: rotate(-3deg);
  background: var(--lime); padding: 0 12px; border: 2px solid var(--ink);
  border-radius: 8px; box-shadow: var(--shadow-soft);
}
.hero-sub {
  font-size: 18px; max-width: 620px; margin-top: 22px; color: var(--soot);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.hero-stamp {
  position: absolute; top: 90px; right: 24px;
  background: var(--coral); border: 2px solid var(--ink);
  padding: 12px 18px; border-radius: 12px;
  transform: rotate(6deg); box-shadow: var(--shadow-hard);
  font-family: 'Caveat', cursive; font-weight: 700; font-size: 22px;
  max-width: 220px; line-height: 1.1;
}
@media (max-width: 820px) { .hero-stamp { display: none; } }

/* ---- Live ticker (hero impact widget) ---- */
.ticker-card {
  margin-top: 56px;
  background: var(--ink); color: var(--paper);
  border: 2px solid var(--ink); border-radius: var(--radius);
  box-shadow: var(--shadow-hard);
  padding: 28px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
.ticker-side h4 {
  font-family: 'Geist Mono', monospace; font-size: 12px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.6;
  margin-bottom: 12px;
}
.ticker-prompt {
  font-family: 'Geist Mono', monospace; font-size: 14px;
  background: rgba(255,255,255,0.06); padding: 14px 16px;
  border-radius: var(--radius-sm); line-height: 1.55; margin-bottom: 14px;
  border: 1px dashed rgba(255,255,255,0.2);
}
.ticker-stat { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; }
.ticker-stat span:last-child { font-family: 'Geist Mono', monospace; font-weight: 700; }
.ticker-side.bad .ticker-stat span:last-child { color: var(--coral); }
.ticker-side.good .ticker-stat span:last-child { color: var(--lime); }
@media (max-width: 720px) { .ticker-card { grid-template-columns: 1fr; } }

/* ---- "How is this calculated?" disclosure ---- */
.how-calc { margin-top: 14px; }
.how-calc summary {
  cursor: pointer;
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--soot);
  padding: 6px 12px;
  display: inline-block;
  border: 2px solid var(--ink);
  border-radius: 100px;
  background: var(--paper);
  list-style: none;
  user-select: none;
}
.how-calc summary::-webkit-details-marker { display: none; }
.how-calc summary::before { content: '＋ '; font-weight: 800; }
.how-calc[open] summary::before { content: '− '; }
.how-calc[open] summary { background: var(--ink); color: var(--paper); }
.how-calc > div {
  margin-top: 12px;
  padding: 16px 18px;
  border: 2px dashed var(--ink);
  border-radius: var(--radius-sm);
  background: var(--paper-2);
  font-size: 13px;
  color: var(--soot);
  line-height: 1.65;
}
.how-calc > div p { margin-bottom: 10px; }
.how-calc > div p:last-child { margin-bottom: 0; }
.how-calc > div a { text-decoration: underline; }

/* ---- Track cards ---- */
.tracks-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
  margin-top: 36px;
}
.track-card {
  background: var(--paper); border: 2px solid var(--ink);
  border-radius: var(--radius); padding: 26px;
  box-shadow: var(--shadow-hard);
  position: relative; transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: flex; flex-direction: column; min-height: 320px;
}
.track-card:hover { transform: translate(-3px, -3px); box-shadow: 7px 7px 0 var(--ink); }
.track-card.locked { opacity: 0.7; }
.track-card.locked:hover { transform: none; box-shadow: var(--shadow-hard); }
.track-card.coral { background: var(--coral-soft); }
.track-card.lime { background: var(--lime-soft); }
.track-card.uv { background: var(--uv-soft); }
.track-emoji { font-size: 36px; line-height: 1; margin-bottom: 14px; }
.track-card h3 { font-family: 'Geist Mono', monospace; font-size: 22px; margin-bottom: 6px; }
.track-card .who { font-size: 13px; color: var(--soot); margin-bottom: 14px; font-style: italic; }
.track-card .desc { font-size: 14px; color: var(--soot); margin-bottom: 18px; flex: 1; }
.track-card .lock-badge {
  position: absolute; top: 18px; right: 18px;
  font-family: 'Geist Mono', monospace; font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  background: var(--ink); color: var(--paper);
  padding: 4px 8px; border-radius: 100px;
}
@media (max-width: 820px) { .tracks-grid { grid-template-columns: 1fr; } }

/* ---- Section header ---- */
.section-eyebrow {
  font-family: 'Geist Mono', monospace; font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em; color: var(--coral);
  margin-bottom: 8px;
}
.section-eyebrow.lime { color: var(--ink); background: var(--lime); display: inline-block; padding: 2px 8px; border: 2px solid var(--ink); border-radius: 4px; }
.section-eyebrow.uv { color: var(--uv); }

/* ---- Why card grid ---- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 30px; }
.why-card { padding: 22px; border: 2px solid var(--ink); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow-soft); }
.why-card .num { font-family: 'Geist Mono', monospace; font-size: 28px; font-weight: 800; }
.why-card h3 { margin: 6px 0 8px; }
.why-card p { font-size: 14px; color: var(--soot); }
@media (max-width: 820px) { .why-grid { grid-template-columns: 1fr; } }

/* ---- Level page ---- */
.level-shell { display: grid; grid-template-columns: 1fr 320px; gap: 26px; margin-top: 30px; align-items: start; }
@media (max-width: 980px) { .level-shell { grid-template-columns: 1fr; } }

.level-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.crumb { font-size: 13px; color: var(--muted); }
.crumb a { text-decoration: underline; }

.scenario {
  background: var(--paper); border: 2px solid var(--ink);
  border-radius: var(--radius); padding: 26px;
  box-shadow: var(--shadow-hard);
}
.scenario h2 { font-family: 'Geist Mono', monospace; }
.scenario .who-line {
  font-family: 'Caveat', cursive; font-size: 19px; color: var(--soot);
  margin: 10px 0 18px;
}
.scenario .body p { font-size: 15px; color: var(--soot); margin-bottom: 14px; }

.bad-prompt {
  margin-top: 22px;
  background: rgba(255,91,58,0.08); border: 2px dashed var(--coral);
  border-radius: var(--radius-sm); padding: 16px 18px;
  font-family: 'Geist Mono', monospace; font-size: 14px;
  color: var(--soot); position: relative;
}
.bad-prompt-label {
  position: absolute; top: -12px; left: 14px;
  background: var(--coral); color: var(--paper);
  font-family: 'Geist Mono', monospace; font-size: 10px; font-weight: 800;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 3px 9px; border: 2px solid var(--ink); border-radius: 100px;
}

.prompt-area-wrap { margin-top: 24px; }
.prompt-area-wrap label {
  display: block; font-family: 'Geist Mono', monospace;
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; margin-bottom: 8px; color: var(--soot);
}
.prompt-area {
  width: 100%; min-height: 160px; resize: vertical;
  font-family: 'Geist Mono', monospace; font-size: 14px; line-height: 1.7;
  padding: 16px; border: 2px solid var(--ink); border-radius: var(--radius-sm);
  background: var(--paper); color: var(--ink);
  transition: box-shadow 0.12s ease;
}
.prompt-area:focus { outline: none; box-shadow: var(--shadow-soft); }

.action-row { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }

/* ---- Side panel: token meter, hints ---- */
.side-stack { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 84px; }
.meter-card {
  background: var(--ink); color: var(--paper);
  border: 2px solid var(--ink); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow-hard);
}
.meter-card h4 {
  font-family: 'Geist Mono', monospace; font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.55;
  margin-bottom: 14px;
}
.meter-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 8px 0; border-bottom: 1px dashed rgba(255,255,255,0.12);
  font-size: 13px;
}
.meter-row:last-child { border-bottom: none; }
.meter-row .num {
  font-family: 'Geist Mono', monospace; font-weight: 700; font-size: 16px;
  color: var(--lime);
}
.meter-row.warn .num { color: var(--coral); }
.meter-foot {
  font-size: 11px; opacity: 0.55; line-height: 1.55; margin-top: 12px;
}
.meter-foot a { text-decoration: underline; }

.hints-card { padding: 20px; }
.hints-card h4 { font-family: 'Geist Mono', monospace; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 12px; color: var(--coral); }
.hints-card ul { list-style: none; }
.hints-card li {
  font-size: 13px; padding: 8px 0; border-bottom: 1px dashed rgba(14,14,18,0.12);
  color: var(--soot);
}
.hints-card li:last-child { border-bottom: none; }
.hints-card li strong { color: var(--ink); display: block; font-size: 13px; }

/* ---- Feedback / score ---- */
.feedback {
  display: none;
  margin-top: 24px;
  background: var(--paper); border: 2px solid var(--ink);
  border-radius: var(--radius); padding: 26px;
  box-shadow: var(--shadow-hard);
}
.feedback.vis { display: block; animation: pop 0.4s ease; }
@keyframes pop {
  from { transform: scale(0.96); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.score-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 18px; }
.stars { font-family: 'Geist Mono', monospace; font-size: 28px; letter-spacing: 4px; }
.star-on { color: var(--coral); }
.star-off { color: rgba(14,14,18,0.15); }
.score-num { font-size: 36px; font-weight: 800; }
.score-lbl { font-size: 13px; color: var(--muted); }

.dim-row { margin-bottom: 14px; }
.dim-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.dim-name { font-family: 'Geist Mono', monospace; font-size: 13px; font-weight: 700; }
.dim-pts { font-family: 'Geist Mono', monospace; font-size: 13px; font-weight: 700; }
.dim-bar { height: 6px; background: rgba(14,14,18,0.08); border-radius: 3px; overflow: hidden; }
.dim-fill { height: 100%; border-radius: 3px; transition: width 0.5s ease; }
.dim-fill.full { background: var(--lime); }
.dim-fill.partial { background: var(--coral); }
.dim-fill.empty { background: rgba(14,14,18,0.2); }
.dim-tips { font-size: 12px; color: var(--muted); margin-top: 4px; line-height: 1.5; }
.dim-tips .tip { display: block; padding: 2px 0; }

/* ---- Cost card (before/after) ---- */
.cost-card {
  margin-top: 20px;
  background: var(--ink); color: var(--paper);
  border: 2px solid var(--ink); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow-hard);
}
.cost-card h4 { font-family: 'Geist Mono', monospace; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.6; margin-bottom: 14px; }
.cost-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.cost-cell { background: rgba(255,255,255,0.05); padding: 14px; border-radius: var(--radius-sm); border: 1px dashed rgba(255,255,255,0.15); }
.cost-cell .label { font-size: 11px; opacity: 0.6; text-transform: uppercase; letter-spacing: 0.08em; }
.cost-cell .value { font-family: 'Geist Mono', monospace; font-size: 22px; font-weight: 800; margin-top: 6px; }
.cost-cell.bad .value { color: var(--coral); }
.cost-cell.good .value { color: var(--lime); }
.cost-cell.diff .value { color: var(--paper); }
.cost-quip { margin-top: 14px; font-family: 'Caveat', cursive; font-size: 20px; color: var(--lime); }
@media (max-width: 720px) { .cost-grid { grid-template-columns: 1fr; } }

/* ---- Reveal split ---- */
.reveal {
  margin-top: 20px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.reveal-pane {
  background: var(--paper); border: 2px solid var(--ink);
  border-radius: var(--radius); padding: 18px; min-height: 200px;
  box-shadow: var(--shadow-soft);
}
.reveal-pane.bad { background: var(--coral-soft); }
.reveal-pane.good { background: var(--lime-soft); }
.reveal-pane h5 { font-family: 'Geist Mono', monospace; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 10px; }
.reveal-pane .out { font-size: 13px; line-height: 1.65; color: var(--soot); white-space: pre-wrap; }
@media (max-width: 720px) { .reveal { grid-template-columns: 1fr; } }

/* ---- Level pager ---- */
.level-pager {
  display: flex; gap: 10px; margin-top: 28px; flex-wrap: wrap; align-items: center;
}
.lp-btn {
  width: 44px; height: 44px; border: 2px solid var(--ink); border-radius: var(--radius-sm);
  background: var(--paper); cursor: pointer;
  font-family: 'Geist Mono', monospace; font-weight: 700; font-size: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-soft);
  transition: transform 0.08s ease;
}
.lp-btn:hover { transform: translate(-1px, -1px); }
.lp-btn.active { background: var(--ink); color: var(--paper); }
.lp-btn.done { background: var(--lime); }

/* ---- Impact page ---- */
.impact-totals {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin-top: 28px;
}
.impact-stat {
  background: var(--ink); color: var(--paper);
  border: 2px solid var(--ink); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow-hard);
}
.impact-stat .lbl { font-size: 11px; opacity: 0.6; letter-spacing: 0.1em; text-transform: uppercase; }
.impact-stat .val { font-family: 'Geist Mono', monospace; font-size: 32px; font-weight: 800; margin-top: 6px; line-height: 1; }
.impact-stat .sub { font-size: 12px; opacity: 0.6; margin-top: 6px; }
.impact-stat.lime { background: var(--lime); color: var(--ink); }
.impact-stat.lime .lbl, .impact-stat.lime .sub { opacity: 0.7; }
@media (max-width: 980px) { .impact-totals { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .impact-totals { grid-template-columns: 1fr; } }

.case-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 28px; }
.case-card {
  background: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow-soft);
  display: flex; flex-direction: column;
}
.case-card .case-tag {
  display: inline-block; align-self: flex-start;
  font-family: 'Geist Mono', monospace; font-size: 10px; font-weight: 800;
  letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--uv); color: var(--paper); border: 2px solid var(--ink);
  padding: 3px 8px; border-radius: 100px; margin-bottom: 12px;
}
.case-card h3 { font-size: 17px; margin-bottom: 8px; line-height: 1.25; }
.case-card .body { font-size: 14px; color: var(--soot); margin-bottom: 12px; }
.case-card .lesson {
  background: var(--lime-soft); border: 1px dashed var(--ink);
  padding: 10px 12px; border-radius: var(--radius-sm);
  font-size: 13px; margin-top: auto;
}
.case-card .lesson strong { font-family: 'Geist Mono', monospace; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.case-card .src { font-size: 11px; color: var(--muted); margin-top: 10px; }
.case-card .src a { text-decoration: underline; }
@media (max-width: 820px) { .case-grid { grid-template-columns: 1fr; } }

/* ---- Footer ---- */
.foot {
  margin-top: 60px; padding: 36px 24px;
  border-top: 2px solid var(--ink);
  text-align: center; font-size: 13px; color: var(--muted);
  background: var(--paper-2);
}
.foot a { text-decoration: underline; }

/* ---- Utility ---- */
.spacer-32 { height: 32px; }
.spacer-48 { height: 48px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.divider { height: 2px; background: var(--ink); margin: 24px 0; }

/* ---- Mobile cleanup ---- */
@media (max-width: 640px) {
  .section { padding: 56px 0; }
  .hero { padding: 56px 0 32px; }
  .topbar-inner { padding: 12px 16px; }
  .nav-links { gap: 0; }
  .nav-link { padding: 6px 10px; font-size: 13px; }
}

/* ============================================ */
/* v2 additions: tier badges, subdomain picker, */
/* scenario picker, hints disclosure            */
/* ============================================ */

/* Make track-card without locked state clickable */
.track-card.coral, .track-card.lime { cursor: pointer; }

/* ---- Sub-domain picker (tracks.html step 2) ---- */
.picker-step { margin-top: 12px; }
.back-btn { margin-bottom: 18px; }

.subdomain-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 22px; margin-top: 24px;
}
@media (max-width: 980px) { .subdomain-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .subdomain-grid { grid-template-columns: 1fr; } }

.sub-card {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-hard);
  cursor: pointer;
  transition: transform .12s ease;
  display: block;
}
.sub-card:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.sub-card.sub-coral { border-top: 8px solid var(--coral); }
.sub-card.sub-lime  { border-top: 8px solid var(--lime); }
.sub-card .sub-emoji { font-size: 32px; }
.sub-card h3 { margin-top: 8px; font-family: 'Geist Mono', monospace; }
.sub-card p { margin-top: 6px; font-size: 14px; color: var(--soot); }
.sub-card .sub-foot {
  margin-top: 14px; display: flex; gap: 8px; flex-wrap: wrap;
}

/* ---- Scenario grid (tracks.html step 3) ---- */
.scenario-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 18px; margin-top: 24px;
}
@media (max-width: 980px) { .scenario-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .scenario-grid { grid-template-columns: 1fr; } }

.scenario-card {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-soft);
  display: block;
  transition: transform .12s ease;
}
.scenario-card:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }
.scenario-card.done { background: var(--lime-soft); }
.sc-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sc-num {
  font-family: 'Geist Mono', monospace; font-weight: 800;
  background: var(--ink); color: var(--paper);
  width: 28px; height: 28px; display: inline-flex;
  align-items: center; justify-content: center;
  border-radius: 6px; font-size: 14px;
}
.sc-tier {
  font-family: 'Geist Mono', monospace; font-size: 11px; font-weight: 700;
  padding: 3px 8px; border-radius: 999px; border: 1.5px solid var(--ink);
  text-transform: uppercase; letter-spacing: 0.04em;
}
.sc-tier.tier-empty { background: var(--paper-2); color: var(--muted); border-color: var(--muted); }
.sc-tier.tier-draft { background: var(--paper-2); color: var(--ink); }
.sc-tier.tier-solid { background: var(--coral-soft); color: var(--ink); }
.sc-tier.tier-sharp { background: var(--lime-soft); color: var(--ink); }
.sc-tier.tier-surgical { background: var(--uv-soft); color: var(--ink); }
.scenario-card h3 { margin-top: 12px; font-size: 17px; line-height: 1.3; }
.sc-foot {
  margin-top: 14px; display: flex; gap: 6px; flex-wrap: wrap;
}
.meta-pill {
  font-family: 'Geist Mono', monospace;
  font-size: 11px; font-weight: 600;
  padding: 3px 8px; border-radius: 999px;
  background: var(--paper-2); border: 1px solid var(--ink);
  letter-spacing: 0.02em;
}

/* ---- Scenario picker on level page ---- */
.scenario-picker {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 10px; margin-top: 12px;
}
@media (max-width: 980px) { .scenario-picker { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .scenario-picker { grid-template-columns: repeat(2, 1fr); } }

.sp-card {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  display: flex; flex-direction: column; gap: 4px;
  font-size: 12px;
  box-shadow: 2px 2px 0 var(--ink);
  transition: transform .12s ease;
}
.sp-card:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--ink); }
.sp-card.active { background: var(--coral-soft); border-width: 2.5px; }
.sp-card.done { background: var(--lime-soft); }
.sp-num {
  font-family: 'Geist Mono', monospace; font-weight: 800; font-size: 13px;
  background: var(--ink); color: var(--paper);
  width: 22px; height: 22px; display: inline-flex;
  align-items: center; justify-content: center;
  border-radius: 5px;
}
.sp-title { font-weight: 600; line-height: 1.25; font-size: 13px; }
.sp-brand { color: var(--muted); font-size: 11px; }

/* ---- Level meta pills ---- */
.level-meta {
  display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px;
}

/* ---- Tier badge (replaces stars) ---- */
.tier-badge {
  display: inline-flex; flex-direction: column; gap: 2px;
  padding: 10px 16px;
  border: 2px solid var(--ink);
  border-radius: var(--radius-sm);
  background: var(--paper-2);
  min-width: 180px;
  box-shadow: var(--shadow-soft);
}
.tier-badge .tier-name {
  font-family: 'Geist Mono', monospace;
  font-weight: 800; font-size: 18px; letter-spacing: 0.02em;
  text-transform: uppercase;
}
.tier-badge .tier-blurb {
  font-size: 12px; color: var(--soot); line-height: 1.35;
}
.tier-badge.tier-draft    { background: var(--paper-2); }
.tier-badge.tier-solid    { background: var(--coral-soft); }
.tier-badge.tier-sharp    { background: var(--lime-soft); }
.tier-badge.tier-surgical { background: var(--uv-soft); }
.tier-badge.tier-surgical .tier-name { color: var(--uv); }

/* Tier rail (how-it-works) */
.tier-rail {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 14px; margin-top: 20px;
}
@media (max-width: 980px) { .tier-rail { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .tier-rail { grid-template-columns: 1fr; } }
.tier-cell {
  border: 2px solid var(--ink); border-radius: var(--radius-sm);
  padding: 14px; box-shadow: var(--shadow-soft);
}
.tier-cell .t {
  font-family: 'Geist Mono', monospace;
  font-weight: 800; font-size: 16px; letter-spacing: 0.02em;
  text-transform: uppercase;
}
.tier-cell .d { font-size: 13px; color: var(--soot); margin-top: 6px; }
.tier-cell.tier-draft    { background: var(--paper-2); }
.tier-cell.tier-solid    { background: var(--coral-soft); }
.tier-cell.tier-sharp    { background: var(--lime-soft); }
.tier-cell.tier-surgical { background: var(--uv-soft); }

/* ---- Hints disclosure ---- */
.hints-disclosure {
  margin-top: 14px;
  border: 2px dashed var(--ink);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  background: var(--paper);
}
.hints-disclosure summary {
  cursor: pointer;
  font-family: 'Geist Mono', monospace;
  font-weight: 700; font-size: 13px; letter-spacing: 0.02em;
  list-style: none;
  display: flex; align-items: center; gap: 8px;
  text-transform: uppercase;
}
.hints-disclosure summary::-webkit-details-marker { display: none; }
.hints-disclosure summary::before {
  content: "🧭"; font-size: 16px;
}
.hints-disclosure[open] summary { margin-bottom: 10px; color: var(--coral); }
.hints-disclosure ul { list-style: none; padding: 0; margin: 0; }
.hints-disclosure li {
  padding: 8px 0; border-top: 1px solid var(--paper-2);
  font-size: 14px; line-height: 1.45;
}
.hints-disclosure li:first-child { border-top: 0; }
.hints-disclosure li strong {
  display: block; font-family: 'Geist Mono', monospace;
  font-size: 12px; letter-spacing: 0.02em;
  text-transform: uppercase; margin-bottom: 4px;
}
.hints-disclosure li span { color: var(--soot); }
.hints-disclosure li.hint-locked {
  opacity: 0.7;
  background: var(--paper-2);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-top: 8px;
  border-top: 0;
}
.hints-disclosure li.hint-locked strong { color: var(--soot); }
.hints-disclosure li.hint-locked #hint-countdown {
  font-family: 'Geist Mono', monospace;
  background: var(--ink); color: var(--paper);
  padding: 1px 6px; border-radius: 4px;
}

/* ---- Gold reference-prompt panel ---- */
.gold-panel {
  margin-top: 22px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #FFF6D8 0%, #FFEAA7 100%);
  box-shadow: 4px 4px 0 var(--ink);
  padding: 22px 24px;
}
.gold-head { margin-bottom: 14px; }
.gold-tag {
  display: inline-block;
  font-family: 'Geist Mono', monospace;
  font-weight: 700; font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--ink); color: #FFD86B;
  padding: 4px 10px; border-radius: 999px;
  margin-bottom: 10px;
}
.gold-head h4 {
  font-family: 'Geist Mono', monospace;
  font-size: 18px; font-weight: 700;
  color: var(--ink); margin: 0;
}
.gold-prompt {
  font-family: 'Geist Mono', monospace;
  font-size: 13.5px; line-height: 1.6;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  white-space: pre-wrap;
  word-wrap: break-word;
  color: var(--ink);
  margin: 0;
}
.gold-foot {
  display: flex; gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

/* ---- Cost grid 2-cell ---- */
.cost-grid-2 { grid-template-columns: 1fr 1fr; }

/* ---- Strong dimension fix ---- */
.tip-strong {
  color: var(--ink) !important;
  font-weight: 600;
  background: var(--lime-soft);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1.5px solid var(--ink);
  display: inline-block;
}

/* ---- How section (level + tracks) ---- */
.how-section { margin-top: 24px; }

