:root { color-scheme: dark; --accent: #ffb020; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: #14121f; color: #f4f2ff; font: 17px/1.4 system-ui, sans-serif; }
main { max-width: 440px; margin: 0 auto; padding: 16px; text-align: center; }
h1 { font-size: 1.4rem; margin: 4px 0 16px; }
label { display: block; text-align: left; margin-bottom: 10px; }
input { display: block; width: 100%; margin-top: 4px; padding: 12px; font: inherit; color: inherit; background: #221f33; border: 1px solid #4a4568; border-radius: 10px; }
button { width: 100%; margin: 5px 0; padding: 13px; font: inherit; font-weight: 600; color: #1b1300; background: var(--accent); border: 0; border-radius: 10px; cursor: pointer; }
button.secondary { color: inherit; background: #332e4d; }
button.link { color: #aaa4cc; background: none; font-weight: 400; margin-top: 20px; }
button:disabled { opacity: .35; cursor: default; }
.buzz { width: 220px; height: 220px; margin: 12px auto; display: block; border-radius: 50%; font-size: 2.4rem; color: #fff; background: #e02d4b; box-shadow: 0 8px 0 #8f1a2e; touch-action: manipulation; user-select: none; }
.buzz:active:not(:disabled) { transform: translateY(6px); box-shadow: 0 2px 0 #8f1a2e; }
.code strong { font-size: 2rem; letter-spacing: .2em; color: var(--accent); }
#qr { width: 220px; height: 220px; background: #fff; border-radius: 10px; image-rendering: pixelated; }
.small { color: #aaa4cc; font-size: .85rem; overflow-wrap: anywhere; }
h2 { font-size: 1.1rem; margin: 20px 0 4px; }
select { display: block; width: 100%; margin-top: 4px; padding: 12px; font: inherit; color: inherit; background: #221f33; border: 1px solid #4a4568; border-radius: 10px; }
fieldset { border: 0; padding: 0; margin: 12px 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
legend { width: 100%; margin-bottom: 6px; font-weight: 600; }
fieldset button { width: auto; margin: 0; padding: 8px 12px; font-weight: 400; color: inherit; background: #221f33; border: 1px solid #4a4568; border-radius: 999px; }
fieldset button[aria-pressed="true"] { color: #1b1300; background: var(--accent); border-color: var(--accent); }
.timer { display: flex; align-items: center; gap: 10px; margin: 8px 0; }
.timer progress { flex: 1; height: 12px; accent-color: var(--accent); }
.timer strong { min-width: 3.2em; text-align: right; font-variant-numeric: tabular-nums; }
.found p { margin: 4px 0; }
.status { min-height: 2.8em; font-weight: 600; }
.countdown { font-size: 3rem; margin: 0; color: var(--accent); font-variant-numeric: tabular-nums; }
.heard { min-height: 1.4em; font-style: italic; }
.error { padding: 10px; background: #5a1a28; border-radius: 10px; }
#scores { list-style: none; padding: 0; text-align: left; }
#scores li { display: flex; justify-content: space-between; padding: 8px 12px; margin-bottom: 4px; background: #221f33; border-radius: 8px; }
#scores li.me { border: 1px solid var(--accent); }
#scores li.off { opacity: .45; }
