:root { color-scheme: light; font-family: 'Yu Gothic UI','Meiryo',system-ui,sans-serif; color:#293f35; background:#f3f0e6; }
* { box-sizing:border-box; }
body { margin:0; }
main { max-width:1144px; padding:24px 36px 12px; margin:auto; }
.masthead,.title-row,.toolbar,footer,.sound-controls,.legend { display:flex; align-items:center; justify-content:space-between; gap:20px; }
.masthead { border-bottom:1px solid #d6dac8; padding-bottom:16px; }
.wordmark { font-size:17px; font-weight:850; letter-spacing:.16em; }
.wordmark span { font-size:10px; color:#788373; letter-spacing:.13em; margin-left:18px; font-weight:500; }
.trial-label { font-size:10px; letter-spacing:.12em; border:1px solid #c8cebb; border-radius:20px; padding:7px 12px; }
.title-row { margin:22px 0 18px; }
.eyebrow { font-size:10px; font-weight:750; letter-spacing:.22em; color:#718568; margin:0 0 5px; }
h1 { font-size:32px; letter-spacing:.03em; margin:0; line-height:1.4; }
h1 span { font-size:14px; color:#7c8976; }
.intro { font-size:13px; line-height:1.9; margin:0; }
.intro span { color:#788373; font-size:11px; }
.game-shell { background:#fdfcf6; border:1px solid #cdd6bf; border-radius:16px; padding:0 12px; box-shadow:0 10px 28px #334c3010; overflow:hidden; }
.hud { display:grid; grid-template-columns:1fr 1fr 1fr; align-items:center; min-height:76px; padding:10px 16px; }
.small-label { display:block; font-size:9px; letter-spacing:.16em; color:#7e8a75; font-weight:700; }
.score-block { display:flex; align-items:center; gap:10px; }
.player-chip { background:#eda268; border:1px solid #c98451; border-radius:9px; color:#fff8e8; font-size:20px; font-weight:800; width:34px; height:36px; text-align:center; padding:3px; }
#score { font-size:25px; font-variant-numeric:tabular-nums; }
.clock { text-align:center; }
.clock strong { font-size:32px; line-height:1.1; font-variant-numeric:tabular-nums; }
.clock strong span { font-size:13px; margin-left:3px; }
.clock.urgent strong { color:#b95c36; }
.arm-block { justify-self:end; min-width:92px; }
.arm-block strong { display:block; font-size:14px; margin:2px 0 4px; letter-spacing:.08em; }
.arm-track { height:3px; background:#e2e7d6; border-radius:3px; }
.arm-track i { display:block; width:0%; height:3px; background:#b98c45; }
.field-wrap { position:relative; border-radius:6px; overflow:hidden; background:#416b46; }
canvas { display:block; width:100%; aspect-ratio:5/3; outline:none; }
canvas:focus-visible { outline:3px solid #edbb67; outline-offset:-3px; }
.overlay { position:absolute; inset:0; display:grid; place-items:center; background:#1c372843; padding:16px; }
.overlay[hidden] { display:none; }
.start-card { width:min(440px,94%); background:#faf8edee; backdrop-filter:blur(10px); border:1px solid #fffbe6; border-radius:18px; padding:30px 32px 22px; box-shadow:0 12px 50px #18382a30; text-align:center; }
h2 { margin:10px 0 12px; font-size:29px; }
#overlay-copy { font-size:13px; line-height:1.9; margin:0 0 20px; white-space:pre-line; }
.controls-summary { display:grid; gap:10px; font-size:11px; margin-bottom:23px; }
kbd { font-family:inherit; display:inline-block; font-size:10px; padding:3px 6px; border:1px solid #cbd2bf; border-bottom-width:2px; border-radius:4px; background:#fffdf4; font-weight:650; white-space:nowrap; }
button { font:inherit; cursor:pointer; border:1px solid #cad1bd; border-radius:6px; color:inherit; background:transparent; padding:6px 10px; font-size:11px; }
button:hover { background:#e4ead7; }
button:focus-visible,input:focus-visible { outline:3px solid #bb8543; outline-offset:3px; }
button:disabled { opacity:.4; cursor:default; }
.primary { width:100%; background:#345d46; border:0; color:#fffbea; font-weight:700; font-size:15px; padding:15px 20px; display:flex; justify-content:space-between; align-items:center; border-radius:9px; }
.primary:hover { background:#254b36; }
.quiet { color:#7c8976; font-size:10px; margin:12px 0 0; }
.toolbar { min-height:54px; padding:6px 9px; font-size:11px; }
.toolbar p { margin:0; display:flex; gap:8px; align-items:center; }
.divider { color:#b6c0aa; padding:0 5px; }
.sound-controls { gap:8px; }
.sound-controls label { font-size:10px; }
input[type=range] { width:75px; accent-color:#52734a; }
footer { font-size:10px; margin-top:15px; color:#7a8772; }
.legend { gap:16px; justify-content:flex-start; }
.legend span { display:flex; align-items:center; gap:5px; }
.grass-dot { width:7px; height:7px; background:#71a158; border-radius:50%; }
.gold-dot { font-style:normal; color:#af8927; }
footer p { margin:0; font-variant-numeric:tabular-nums; }
.status { font-size:10px; color:#828c78; margin:12px 0 0; }
@media (max-width:800px) { main { padding:14px; } .wordmark span,.intro { display:none; } .title-row { margin:14px 0; } h1 { font-size:26px; } .toolbar,footer { flex-wrap:wrap; gap:8px; } .toolbar p { font-size:10px; } .start-card { padding:20px; } h2 { font-size:24px; } }
@media (max-height:850px) and (min-width:900px) { main { max-width:min(990px, calc((100dvh - 320px) * 1.6667 + 74px)); padding-top:14px; } .masthead { padding-bottom:10px; } .title-row { margin:14px 0; } .hud { min-height:65px; } .intro { font-size:11px; } .intro span { font-size:10px; } .toolbar { flex-wrap:wrap; gap:5px; } footer { flex-wrap:wrap; gap:5px; } .start-card { padding:20px 26px 16px; } }
@media (max-width:480px) { .start-card { padding:14px; } .start-card h2 { font-size:20px; margin:4px 0; } #overlay-copy { font-size:10px; margin-bottom:8px; } .controls-summary { font-size:9px; gap:4px; margin-bottom:9px; } .primary { padding:9px 12px; } .quiet { font-size:9px; } .overlay { padding:5px; } }
