* { box-sizing: border-box }
html, body { width: 100%; height: 100%; margin: 0; }
body { display: grid; place-items: center; overflow: hidden; padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px); background: #17252e; color: #eee8d7; font: 16px system-ui, "Microsoft YaHei", sans-serif; }
#stage { position: relative; width: min(100%, 60vh); height: 100vh; max-height: 100%; }
@supports (height: 100dvh) { #stage { width: min(100%, 60dvh); height: 100dvh; } }
#game { display: block; width: 100%; height: 100%; touch-action: none; }
#insets { position: absolute; top: 0; left: 0; visibility: hidden; pointer-events: none; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
#loading { position: absolute; inset: 0; display: grid; place-items: center; background: #1b2933; }
#loading[hidden] { display: none; }
.loadbox { width: min(72%, 265px); }
h1 { color: #f0e9d8; font: 700 clamp(28px, 7vw, 40px) "Microsoft YaHei", system-ui, sans-serif; margin: 0 0 31px; }
p { color: #becbc8; margin: 0 0 13px; line-height: 1.55; }
progress { display: block; width: 100%; height: 5px; border: 0; border-radius: 2px; overflow: hidden; background: #44515b; accent-color: #bca978; }
progress::-webkit-progress-bar { background: #44515b; }
progress::-webkit-progress-value { background: #bca978; }
#retry { display: inline-block; color: #ddd0a6; padding: 12px 0; margin-top: 8px; text-underline-offset: 4px; }
#retry[hidden] { display: none; }
