:root{color-scheme:dark;font-family:system-ui,-apple-system,"Segoe UI",sans-serif;color:#f4f6f8;background:#07090c}
*{box-sizing:border-box}
body{margin:0;min-height:100dvh;display:grid;place-items:center;background:#07090c}
#game{position:relative;width:min(100vw,177.7778dvh);aspect-ratio:16/9;overflow:hidden;background:#07090c}
#unity-canvas{display:block;width:100%;height:100%;outline:none}
#loading{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:flex-end;z-index:2;transition:opacity .4s ease;
  background:linear-gradient(180deg,transparent 58%,rgba(5,8,12,.82) 100%),url(loading.webp) center/cover no-repeat #1b2430}
@media (max-width:900px){#loading{background-image:linear-gradient(180deg,transparent 55%,rgba(5,8,12,.85) 100%),url(loading-960.webp)}}
#loading.finished{opacity:0;pointer-events:none}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
footer{width:min(620px,74%);margin:0 auto clamp(10px,3.2%,34px);text-align:center;text-shadow:0 1px 3px #000c}
.progress-caption{display:flex;justify-content:space-between;align-items:center;font-size:clamp(10px,1.2vw,16px);font-weight:700;margin-bottom:clamp(5px,.8vw,10px);letter-spacing:.02em}
#percent{font-variant-numeric:tabular-nums;color:#ffd23f}
#progress{height:clamp(6px,.75vw,10px);border-radius:10px;background:#ffffff2e;overflow:hidden;box-shadow:0 0 0 1px #0006}
#fill{height:100%;width:0;background:linear-gradient(90deg,#f7b500,#ffe45c);border-radius:inherit;transition:width .18s ease}
#tip,#first{font-size:clamp(9px,1vw,14px);line-height:1.4;color:#e6ebf0;margin:clamp(5px,.8vw,10px) 0 0;min-height:1.4em}
#first{color:#c3ccd6;font-size:clamp(8px,.85vw,12px)}
button{font:inherit;cursor:pointer;border:0;border-radius:6px;background:#f7b500;color:#111;font-weight:700;padding:10px 18px}
#retry{margin-top:8px}
#fullscreen{position:absolute;right:12px;bottom:12px;background:#0009;color:#fff;font-size:24px;padding:3px 9px;z-index:1}
button:focus-visible{outline:3px solid #ffe45c;outline-offset:3px}
[hidden]{display:none!important}
@media(prefers-reduced-motion:reduce){#loading,#fill{transition:none}}
