:root { color-scheme: dark; --bg: #07101c; --fg: #e6f1ff; --accent: #ff4fd8; --accent2: #35e1ff; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--fg); font: 16px/1.4 system-ui, sans-serif; overflow: hidden; }
#bevy { display: block; width: 100vw; height: 100vh; outline: none; touch-action: none; }
.screen { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: radial-gradient(circle at 50% 30%, #17283f, var(--bg) 70%); text-align: center; padding: 24px; }
.screen[hidden] { display: none; }
h1 { margin: 0; font-size: clamp(36px, 8vw, 72px); letter-spacing: .08em; background: linear-gradient(90deg, var(--accent), var(--accent2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bar { width: min(420px, 80vw); height: 8px; background: #1b2b44; border-radius: 4px; overflow: hidden; }
.bar[hidden] { display: none; }
#bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent2)); transition: width .15s; }
button, .button { font: inherit; font-weight: 600; color: #07101c; background: linear-gradient(90deg, var(--accent), var(--accent2)); border: 0; border-radius: 8px; padding: 12px 32px; cursor: pointer; text-decoration: none; }
button[hidden], .button[hidden] { display: none; }
.hint { color: #8aa2c4; max-width: 46ch; min-height: 1.4em; margin: 0; }
.error { position: fixed; inset: 0; z-index: 10; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px; background: rgba(7, 16, 28, .96); }
.error[hidden] { display: none; }
.error pre { max-width: min(760px, 92vw); max-height: 50vh; overflow: auto; white-space: pre-wrap; background: #101c30; padding: 14px; border-radius: 8px; font-size: 13px; }
