:root { color-scheme: dark; --ink: #e8ecf3; --dim: #9aa4b2; --plate: #171b22; --accent: #5ac8fa; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #0d1117; color: var(--ink); font: 14px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif; }
#stage { display: flex; flex-direction: column; height: 100%; }
#bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 12px; background: var(--plate); border-bottom: 1px solid #232a35; font-size: 12px; }
#bar #stamp { color: var(--dim); }
#panel { margin: auto; width: min(520px, 92vw); padding: 24px; background: var(--plate); border: 1px solid #232a35; border-radius: 10px; }
#panel h1 { margin: 0 0 4px; font-size: 20px; }
#game-meta { margin: 0 0 18px; color: var(--dim); font-size: 12px; }
#progress { height: 8px; background: #0b0e14; border-radius: 99px; overflow: hidden; margin-bottom: 10px; }
#progress-fill { height: 100%; width: 0; background: var(--accent); transition: width .15s linear; }
#message { margin: 0 0 6px; color: var(--ink); min-height: 1.4em; }
#message.error { color: #ff7b72; }
#actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
button { font: inherit; padding: 8px 14px; border-radius: 8px; border: 1px solid #2b3442; background: #1d232c; color: var(--ink); cursor: pointer; }
button:hover { border-color: var(--accent); }
button[disabled] { opacity: .5; cursor: default; }
#player { flex: 1; display: flex; align-items: center; justify-content: center; background: #000; }
#player canvas { max-width: 100%; max-height: 100%; }
