:root { color-scheme: dark; --cyan: #4fd8e6; --red: #ff3333; --grid: #553f64; --gold: #d9a441; --cream: #f1e5c8; }
* { box-sizing: border-box; }
body { margin: 0; background: #050507; color: var(--cream); font-family: Georgia, 'Times New Roman', serif; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .1; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.3'/%3E%3C/svg%3E"); }
.site-header, main, footer { width: min(1180px, calc(100% - 40px)); margin: auto; }
.site-header { display: flex; justify-content: space-between; align-items: end; padding: 56px 0 30px; border-bottom: 1px solid #332c3d; }
.eyebrow, .section-number { color: var(--cyan); font: 700 11px/1.2 Arial, sans-serif; letter-spacing: .2em; }
h1 { margin: 8px 0 6px; font-size: clamp(40px, 8vw, 96px); font-weight: 400; line-height: .9; letter-spacing: .08em; text-shadow: 0 0 24px rgba(79, 216, 230, .45); }
.dek { margin: 14px 0 0; color: #a8a0b8; font-style: italic; }
.year-badge { border: 1px solid var(--cyan); color: var(--cyan); border-radius: 50%; width: 88px; height: 88px; display: grid; place-items: center; transform: rotate(-6deg); font: 700 12px Arial, sans-serif; }
.game-shell { padding: 38px 0; display: flex; justify-content: center; }
.arena { position: relative; width: min(800px, 100%); border: 5px solid #d9d9e6; box-shadow: 0 0 60px rgba(79, 216, 230, .18), 0 25px 70px #0009; background: #000; }
.arena-heading { text-align: center; color: var(--red); display: grid; justify-items: center; gap: 4px; font: 400 12px 'Courier New', monospace; padding: 10px 0 4px; }
#field { display: block; width: 100%; height: auto; aspect-ratio: 800 / 520; background: #000; image-rendering: pixelated; }
.hud { display: flex; align-items: center; justify-content: center; gap: 28px; background: #0a0a0f; border-top: 1px solid #2a2433; padding: 8px 12px; }
.hud-stat { display: flex; align-items: center; gap: 8px; }
.hud-stat output { color: var(--gold); font: 700 16px Georgia, serif; min-width: 2ch; }
#restart { background: none; border: 1px solid #4a4256; padding: 4px 10px; cursor: pointer; display: flex; align-items: center; }
#restart:hover:not(:disabled) { border-color: var(--cyan); }
#restart:disabled { opacity: .4; cursor: not-allowed; }
.controls-hint { text-align: center; color: #6f6880; font: 12px Arial, sans-serif; letter-spacing: .05em; margin: 10px 0 0; }
.touch-controls { display: none; }
@media (max-width: 760px), (pointer: coarse) {
  .controls-hint { display: none; }
  .touch-controls { display: flex; align-items: center; justify-content: center; gap: 28px; padding: 18px 12px 22px; }
  .dpad { display: grid; grid-template-columns: repeat(3, 52px); grid-template-rows: repeat(3, 52px); grid-template-areas: ". up ." "left . right" ". down ."; gap: 6px; }
  .dpad-btn { background: #0a0a0f; border: 1px solid #4a4256; color: var(--cream); font-size: 18px; border-radius: 8px; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
  .dpad-up { grid-area: up; }
  .dpad-left { grid-area: left; }
  .dpad-right { grid-area: right; }
  .dpad-down { grid-area: down; }
  .dpad-btn:active, .jump-btn:active { border-color: var(--cyan); color: var(--cyan); background: #12141a; }
  .jump-btn { width: 84px; height: 84px; border-radius: 50%; background: #0a0a0f; border: 1px solid var(--gold); color: var(--gold); font: 700 13px/1 Arial, sans-serif; letter-spacing: .08em; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
}
.story-grid { display: grid; grid-template-columns: 1fr 1fr .8fr; gap: 36px; padding: 52px 0 72px; border-top: 1px solid #332c3d; }
h2 { font-weight: 400; font-size: 28px; line-height: 1.08; }
.story-grid p, .story-grid li { color: #b6aec4; line-height: 1.65; }
.story-grid ul { padding-left: 18px; }
.archive-card { padding: 24px; background: #17131f; color: var(--cream); border: 1px solid #332c3d; transform: rotate(-1deg); box-shadow: 8px 10px 0 #0006; }
.archive-card p { color: #b6aec4; }
.archive-card a { color: var(--cyan); font-weight: bold; }
footer { padding: 24px 0 46px; border-top: 1px solid #332c3d; display: flex; justify-content: space-between; color: #6f6880; font: 11px Arial, sans-serif; text-transform: uppercase; letter-spacing: .1em; }
@media (max-width: 760px) { .site-header { align-items: start; } .year-badge { width: 66px; height: 66px; } .story-grid { grid-template-columns: 1fr; } footer { display: block; } }
