:root { color-scheme: dark; font-family: system-ui, sans-serif; color: #fff2d9; background: #0b2029; }
* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; }
[hidden] { display: none !important; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: #fff2d9; background: #21434c; border: 1px solid #51717a; border-radius: 9px; padding: 9px 14px; cursor: pointer; }
button:hover { background: #315962; }
button:disabled { opacity: .45; cursor: default; }
button:focus-visible, a:focus-visible { outline: 3px solid #f5c67d; outline-offset: 3px; }
.toolbar { height: 58px; padding: 8px 18px; display: flex; align-items: center; gap: 22px; background: #112c36; border-bottom: 1px solid #345661; }
.brand { color: #8dd1b5; text-decoration: none; font-weight: 700; white-space: nowrap; }
.game-title { font-weight: 750; font-size: 17px; }
.game-title span { font-size: 12px; color: #bad0cf; font-weight: 400; margin-left: 10px; }
nav { margin-left: auto; display: flex; gap: 8px; }
nav button { font-size: 13px; }
kbd { color: #aecbc7; font-size: 11px; margin-left: 5px; }
#stage { position: absolute; inset: 58px 0 0; overflow: hidden; }
#canvas { display: block; width: 100%; height: 100%; border: 0; outline: none; }
#loading { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; overflow: auto; background: linear-gradient(90deg,rgba(8,28,35,.94),rgba(8,28,35,.58)), url('cover.png') center/cover; }
.welcome { width: min(620px,100%); text-align: center; padding: 34px; background: rgba(13,40,49,.95); border: 1px solid #47655f; border-radius: 28px; box-shadow: 0 24px 90px #0006; }
.eyebrow { color: #91d2b9; letter-spacing: .16em; font-size: 12px; font-weight: 700; }
h1 { font-size: clamp(44px,7vw,78px); line-height: 1.05; margin: 18px 0 8px; color: #f5c67d; letter-spacing: -.04em; }
.subtitle { font-size: 25px; margin: 0 0 28px; }
.welcome > p { line-height: 1.6; }
.primary { margin: 16px 0 6px; background: #f5c67d; color: #193039; font-weight: 750; padding: 16px 28px; border: 0; font-size: 18px; }
.primary:hover { background: #ffdda7; }
#status { font-size: 14px; color: #c4d7d3; min-height: 45px; white-space: pre-line; }
.small { font-size: 12px; color: #a9c4bd; }
progress { width: 100%; height: 12px; accent-color: #8dd1b5; margin-top: 24px; }
#notice { position: absolute; z-index: 3; bottom: 18px; left: 50%; transform: translateX(-50%); max-width: 840px; width: calc(100% - 36px); padding: 14px 20px; border: 1px solid #f5c67d; border-radius: 10px; color: #fff2d9; background: #18343df5; font-size: 14px; text-align: center; }
.noscript { position: absolute; z-index: 4; inset: 50% 20% auto; background: #18343d; padding: 30px; text-align: center; }
@media (max-height: 720px) { .welcome { padding: 18px 30px; } h1 { font-size: 52px; margin-top: 8px; } .subtitle { margin-bottom: 12px; } .welcome > p { margin-top: 10px; margin-bottom: 10px; } }
@media (max-width: 1000px) { .game-title span { display: none; } .toolbar { gap: 12px; padding-inline: 10px; } }
@media (max-width: 680px) { .game-title, kbd { display: none; } nav button { padding: 8px; font-size: 11px; } .toolbar { gap: 5px; } .welcome { padding: 18px; } }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
