:root {
  font-family: ui-serif, Georgia, serif;
  color: #f6f0dc;
  background: #14251f;
  --ink: #f6f0dc;
  --muted: #d5d6bd;
  --soft: #b6d281;
  --line: #69825d;
  --panel: rgba(32, 56, 43, .92);
  --panel-deep: #1a3025;
  --accent: #d7e995;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 25% 5%, #345e44, #14251f 60%); }
.site-header, .page-grid, .site-footer { max-width: 1240px; margin: auto; padding: 24px; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner { display: grid; gap: 18px; }
.eyebrow, .section-kicker, .surface-label, .read-only-badge, .closed-label { font: 700 11px ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow, .section-kicker, .surface-label, .closed-label { color: var(--soft); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); gap: 28px; align-items: end; }
.surface-label { margin: 0 0 8px; }
h1 { max-width: 760px; font-size: clamp(2.6rem, 7vw, 5.4rem); line-height: .95; letter-spacing: -.045em; margin: 0 0 18px; }
h2 { font-size: 1.2rem; line-height: 1.1; margin: 4px 0 0; }
.lede { max-width: 700px; color: var(--muted); font-size: 1.08rem; line-height: 1.55; margin: 0; }
.live-summary { border-left: 3px solid var(--accent); color: var(--ink); line-height: 1.45; margin: 0; padding: 10px 14px; max-width: 980px; }
.pilot-card { background: linear-gradient(145deg, rgba(24, 47, 35, .98), rgba(57, 78, 47, .8)); border: 1px solid #a0b871; border-radius: 14px; padding: 18px; box-shadow: 0 12px 30px rgba(0, 0, 0, .16); }
.status-line { display: flex; gap: 9px; align-items: center; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: #e2b15f; box-shadow: 0 0 0 4px rgba(226, 177, 95, .14); }
.pilot-card h2 { font-size: 2rem; margin: 12px 0 4px; }
.pilot-card p { margin: 0 0 10px; color: #fff1c9; font-weight: 700; }
.pilot-card small { display: block; color: var(--muted); line-height: 1.45; }
.page-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(300px, .85fr); gap: 20px; align-items: start; }
.side-column { display: grid; gap: 20px; min-width: 0; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px; box-shadow: 0 12px 30px rgba(0, 0, 0, .12); }
.scene-panel { padding: 20px; }
.section-heading { display: flex; gap: 16px; justify-content: space-between; align-items: start; }
.section-intro, .note { color: var(--muted); line-height: 1.5; }
.section-intro { font-size: .9rem; margin: 12px 0 16px; }
.read-only-badge { color: #213729; background: var(--accent); border-radius: 999px; padding: 6px 9px; letter-spacing: .08em; white-space: nowrap; }
#game { width: 100%; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 10px; background: #1e5870; box-shadow: inset 0 0 0 1px #9ec9c1, 0 8px 24px rgba(0, 0, 0, .2); cursor: crosshair; }
canvas { display: block; width: 100% !important; height: auto !important; image-rendering: pixelated; }
.map-footer { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; flex-wrap: wrap; }
.map-help { margin: 11px 2px 0; color: var(--soft); font: 700 11px ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .04em; }
.map-note { margin: 11px 2px 0; color: var(--muted); font-size: .82rem; }
dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 16px 0 0; }
dt { color: var(--soft); font-size: .88rem; }
dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.note { font-size: .86rem; }
.receipts-panel ol { max-height: 330px; overflow: auto; margin: 12px 0 0; padding-left: 24px; }
.receipts-panel li { padding: 7px 0 7px 4px; border-bottom: 1px solid rgba(105, 130, 93, .45); line-height: 1.45; }
.receipt-mark { color: var(--accent); font-size: 1.4rem; line-height: 1; }
.developer-panel { background: rgba(26, 48, 37, .74); }
.developer-panel summary { display: flex; justify-content: space-between; gap: 14px; align-items: center; cursor: pointer; list-style: none; }
.developer-panel summary::-webkit-details-marker { display: none; }
.developer-panel summary > span:first-child { display: grid; gap: 5px; }
.developer-panel summary strong { font-size: 1.05rem; }
.closed-label { color: #e2b15f; letter-spacing: .05em; text-align: right; }
.developer-panel[open] summary { padding-bottom: 4px; }
.actions { display: grid; gap: 9px; }
.actions label { display: grid; gap: 5px; color: var(--soft); font-size: .85rem; }
.button-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.actions button, .actions select { font: inherit; border: 1px solid #93ae70; border-radius: 6px; padding: 8px; background: #f0e7c9; color: #1b3326; }
.actions button { cursor: pointer; background: #b7d47f; font-weight: 700; }
.actions button:hover { background: #d4e99c; }
.actions button:disabled { cursor: wait; opacity: .6; }
.site-footer { padding-top: 0; padding-bottom: 36px; }
.site-footer p { border-top: 1px solid rgba(105, 130, 93, .55); color: var(--muted); font-size: .85rem; line-height: 1.5; margin: 0; padding-top: 18px; }
.site-footer strong { color: var(--soft); }
@media (max-width: 860px) { .hero-grid, .page-grid { grid-template-columns: 1fr; } .pilot-card { max-width: 520px; } }
@media (max-width: 520px) { .site-header, .page-grid, .site-footer { padding: 18px; } .scene-panel, .panel { padding: 14px; } .section-heading { gap: 10px; } .closed-label { font-size: 9px; } }
