:root { color-scheme: dark; font-family: system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 50% 20%, #263340, #101619 60%); color: #f4f0df; }
a { color: inherit; }
.home { width: min(900px, calc(100% - 36px)); margin: 0 auto; padding: min(11vh, 92px) 0 64px; }
.eyebrow { color: #d0ac5b; letter-spacing: .22em; font-size: .78rem; font-weight: 700; }
h1 { margin: .2em 0 .35em; font-family: Georgia, "Songti SC", serif; font-size: clamp(3rem, 9vw, 6.8rem); line-height: 1.05; letter-spacing: .04em; }
h1 span { color: #ba3a28; font-style: italic; margin-left: .1em; }
.lead { max-width: 650px; color: #bcc5c2; line-height: 1.8; font-size: 1.08rem; }
.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 38px; }
.choice { display: flex; flex-direction: column; gap: 10px; min-height: 190px; padding: 26px; border: 1px solid #596467; border-radius: 16px; text-decoration: none; background: #1d272bbd; transition: transform .18s, border-color .18s; }
.choice:hover, .choice:focus-visible { transform: translateY(-4px); border-color: #e1b963; outline: none; }
.choice.primary { border-color: #c3a256; background: linear-gradient(145deg, #41402c, #222821); }
.choice-icon { color: #e3bb68; font-size: 1.45rem; }
.choice strong { font-size: 1.45rem; }
.choice small { color: #b6c1bb; line-height: 1.6; }
.note { color: #94a09c; font-size: .88rem; margin-top: 30px; line-height: 1.7; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px min(4vw, 48px); border-bottom: 1px solid #46504b; }
.topbar a { color: #d3b46c; text-decoration: none; }
.topbar strong { font-family: Georgia, "Songti SC", serif; font-size: 1.2rem; }
.game-layout { width: min(1080px, calc(100% - 32px)); margin: 32px auto; display: grid; grid-template-columns: minmax(0, 780px) minmax(230px, 1fr); gap: 28px; align-items: start; }
.screen-wrap { padding: 14px; background: #080909; border: 1px solid #54605a; box-shadow: 0 24px 60px #0008; }
.pixel-screen { width: 100%; aspect-ratio: 256/240; image-rendering: pixelated; display: block; background: #101010; }
.panel { padding: 20px; background: #1d272bc9; border: 1px solid #46514e; border-radius: 12px; }
.panel h2 { margin: 0 0 12px; font-size: 1.1rem; }
.panel p, .panel li { color: #bdc8c3; line-height: 1.6; font-size: .9rem; }
.panel ul { padding-left: 1.2em; }
.panel button { margin: 4px 6px 4px 0; min-width: 48px; padding: 9px 12px; border: 1px solid #9b916f; border-radius: 8px; background: #313832; color: #fff8de; cursor: pointer; }
.panel button:hover { background: #4a5347; }
.panel button:disabled { opacity: .45; cursor: not-allowed; }
.status { min-height: 50px; color: #eac678 !important; }
#play h3 { color: #e9d39c; margin: 14px 0 5px; font-size: 1rem; }
#play p { margin: 6px 0; }
#play button.active { background: #795b30; border-color: #e8cb84; }
.game-toolbar,.action-row { display: flex; flex-wrap: wrap; gap: 4px; margin: 8px 0; }
.game-toolbar button,.action-row button,#game-actions>button { min-width: auto; margin: 2px; padding: 7px 9px; }
.field { display: flex; flex-direction: column; gap: 4px; margin: 7px 0; font-size: .8rem; color: #d2d9ce; }
.field select,.field input { width: 100%; padding: 8px; background: #101b19; border: 1px solid #748179; border-radius: 5px; color: #f4f0df; font: inherit; }
.command-form,.battle-panel { padding: 10px; margin-top: 10px; border: 1px solid #5a655e; border-radius: 8px; background: #141d1a; }
.sortie-list { margin: 8px 0; padding: 8px; border: 1px solid #5a655e; border-radius: 5px; }
.sortie-list legend { padding: 0 4px; color: #d2d9ce; font-size: .8rem; }
.sortie-officer { display: block; margin: 5px 0; color: #f4f0df; font-size: .85rem; }
.sortie-officer input { margin-right: 8px; }
.command-form button[type=submit] { width: 100%; background: #71552b; }
.file-button { display: inline-flex; align-items: center; padding: 7px 9px; margin: 2px; border: 1px solid #9b916f; border-radius: 8px; background: #313832; cursor: pointer; font-size: .85rem; }
.file-button input { display: none; }
#game-log { margin-top: 16px; border-top: 1px solid #4b5651; padding-top: 10px; font-size: .8rem; color: #bbc8ba; }
#game-log ol { padding-left: 18px; margin: 6px 0 0; }
#game-log li { margin: 4px 0; }
#game { width: 100%; height: min(72vh, 720px); background: #000; }
@media (max-width: 700px) { .choices, .game-layout { grid-template-columns: 1fr; } .game-layout { margin-top: 20px; } .choice { min-height: 150px; } }
