:root {
  color-scheme: dark;
  --bg: #18140f;
  --card: #241d16;
  --ink: #f4e8d0;
  --muted: #c5ae8b;
  --line: #4a3928;
  --gold: #d8a84d;
  --blue: #84b5c6;
  --red: #d06f56;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 10% 0%, rgba(216,168,77,.22), transparent 32rem),
    linear-gradient(135deg, #17110c, var(--bg));
  color: var(--ink);
}
.shell { width: min(1100px, calc(100% - 32px)); margin: 0 auto; padding: 32px 0 48px; }
.card {
  background: color-mix(in srgb, var(--card) 92%, black);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 24px 80px rgba(0,0,0,.28);
}
.intro { margin-bottom: 20px; }
.eyebrow { margin: 0 0 8px; color: var(--gold); text-transform: uppercase; letter-spacing: .12em; font-size: .76rem; font-weight: 800; }
h1, h2 { margin: 0; line-height: 1.05; }
h1 { font-size: clamp(2.6rem, 7vw, 5.8rem); letter-spacing: -.07em; }
h2 { font-size: clamp(1.4rem, 3vw, 2.2rem); }
p { line-height: 1.55; }
.byline { color: var(--muted); }
blockquote { margin: 20px 0; padding-left: 18px; border-left: 4px solid var(--gold); font-size: clamp(1.3rem, 2.6vw, 2rem); line-height: 1.25; }
.game-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr); gap: 20px; align-items: start; }
.section-head { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.pill { margin: 0; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }
.plate {
  display: block;
  width: min(100%, 420px);
  max-width: 420px;
  aspect-ratio: 1;
  margin: 24px auto 10px;
  border: 2px solid #6a5138;
  border-radius: 14px;
  background: #1a140f;
  image-rendering: pixelated;
  box-shadow: inset 0 0 0 8px rgba(216,168,77,.08);
}
.trace, .share { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.trace { border-top: 1px solid var(--line); padding-top: 16px; color: var(--muted); font-size: 1.1rem; }
.pressure { min-height: 3.1em; color: #eadabf; font-size: 1.08rem; }
.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 20px 0; }
button {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #302417;
  color: var(--ink);
  padding: 14px;
  cursor: pointer;
  font: inherit;
}
button:hover:not(:disabled), button:focus-visible { border-color: var(--gold); transform: translateY(-1px); }
button:disabled { opacity: .45; cursor: not-allowed; }
.choices button { display: flex; flex-direction: column; gap: 6px; align-items: start; text-align: left; }
.choices b { font-size: 2rem; line-height: 1; }
.note { color: var(--muted); font-size: .95rem; }
.result { margin-top: 20px; }
.hidden { display: none; }
.ledger { display: inline-block; margin: 0 0 12px; }
.constructor-read { border: 1px solid var(--line); border-radius: 16px; padding: 16px; background: #1a130e; margin: 16px 0; }
.constructor-read h3 { margin: 0 0 8px; }
.constructor-read ol { margin: 12px 0 0; padding-left: 1.3rem; color: var(--muted); }
.constructor-read li { margin: 6px 0; }
.trace-line { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 2rem; margin: 0; letter-spacing: .12em; }
.share { white-space: pre-wrap; background: #140f0b; border: 1px solid var(--line); border-radius: 16px; padding: 16px; overflow: auto; }
@media (max-width: 760px) {
  .game-grid { grid-template-columns: 1fr; }
  .choices { grid-template-columns: 1fr; }
  .shell { width: min(100% - 20px, 700px); padding-top: 16px; }
}
