:root { color-scheme: dark; font-family: "Microsoft YaHei UI", "PingFang SC", sans-serif; background: #050b07; }
* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; }
body { display: grid; place-items: center; background: radial-gradient(ellipse at center, #19321f, #050b07 75%); }
#stage { position: relative; width: min(100vw, calc(100dvh * 2 / 3)); height: min(100dvh, 150vw); aspect-ratio: 2 / 3; background: #142e18; overflow: hidden; }
canvas { width: 100%; height: 100%; display: block; touch-action: none; outline: none; }
#controls { position: absolute; inset: 0; pointer-events: none; }
.game-control { position: absolute; padding: 0; margin: 0; border: 0; background: transparent; color: transparent; pointer-events: auto; touch-action: manipulation; cursor: pointer; border-radius: 20%; }
.game-control:focus-visible { outline: 3px solid #fff4a7; outline-offset: -3px; background: #fff1a422; }
#loading { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: #173c22; color: #fff5cb; text-align: center; padding: 24px; }
#loading[hidden] { display: none; }
#loading h1 { margin: 5px 0 0; font-size: clamp(24px, 6vw, 36px); }
#loading p { margin: 0; line-height: 1.6; }
progress { width: min(80%, 300px); accent-color: #f6b839; height: 12px; }
#reload { border: 2px solid #d69c39; border-radius: 8px; padding: 12px 30px; background: #207c31; color: white; cursor: pointer; font: inherit; }
noscript { position: absolute; background: #173c22; padding: 40px; }
