* { box-sizing: border-box; }
html, body { margin: 0; background: #161b21; color: #fff; font: 16px/1.5 Arial, sans-serif; }
.player { max-width: 960px; margin: auto; }
.stage { position: relative; width: 100%; aspect-ratio: 8 / 5; background: #111; overflow: hidden; }
#unityContainer { width: 100%; height: 100%; }
#unityContainer canvas { max-width: 100%; max-height: 100%; }
.overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; text-align: center; background: #161b21; }
.overlay h1 { font-size: clamp(24px, 4vw, 42px); margin: 0 0 12px; }
.overlay p { max-width: 560px; }
button { border: 0; border-radius: 6px; padding: 12px 22px; background: #c82333; color: white; font: inherit; cursor: pointer; }
button:focus-visible { outline: 3px solid white; outline-offset: 4px; }
button:disabled { cursor: default; opacity: .5; }
progress { width: min(320px, 90%); accent-color: #c82333; }
.controls { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px; }
.controls p { margin: 0; font-size: 14px; }
.controls button { white-space: nowrap; }
[hidden] { display: none !important; }
@media (max-width: 600px) { .controls { flex-direction: column; align-items: stretch; } .overlay { padding: 12px; } .overlay p { margin: 8px 0; } }
