:root {
    color-scheme: dark;
    font-family: system-ui, "Segoe UI", sans-serif;
    background: #121929;
    color: #f6f8ff;
}
* { box-sizing: border-box; }
body { margin: 0; background: #121929; color: #f6f8ff; }
main { width: min(100%, 1600px); margin: auto; padding: clamp(14px, 3vw, 36px); }
.queue-header,.queue-footer,.sound-controls { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.queue-brand { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.queue-brand img { width: 145px; height: auto; }
.queue-brand h1 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.8rem); }
.connection { display: flex; align-items: center; gap: 10px; }
#connection { color: #99ecc4; font-weight: 700; }
#connection.offline { color: #ffd69a; }
#queue-updated,.sound-controls,.next-numbers,.queue-footer { color: #d8e1f2; }
.sound-controls { justify-content: flex-start; border-top: 1px solid #344258; margin-top: 18px; padding-top: 12px; }
.sound-controls button,.sound-controls select {
    font: inherit; color: #f6f8ff; background: #243450; border: 1px solid #7589af; border-radius: 8px; padding: 8px 12px;
}
.sound-controls button { cursor: pointer; }
.sound-controls button:disabled { opacity: .65; }
.counters { display: grid; grid-template-columns: repeat(auto-fit,minmax(205px,1fr)); gap: 16px; margin: 23px 0; }
.counter { background: #202c45; border: 1px solid #44567a; border-radius: 18px; padding: clamp(15px, 2.2vw, 27px); text-align: center; }
.counter h2 { font-size: clamp(1.2rem, 2.3vw, 2rem); margin: 0 0 10px; }
.serving-label { color: #a3efca; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }
.serving-number { display: block; font-size: clamp(3rem, 11vw, 7rem); line-height: 1.14; font-variant-numeric: tabular-nums; }
.next-numbers { margin: 10px 0 0; font-size: clamp(.9rem, 1.6vw, 1.25rem); }
.next-numbers strong { margin-left: 5px; }
.queue-empty { padding: 24px; border-radius: 15px; border: 1px solid #44567a; }
.queue-footer { border-top: 1px solid #344258; padding-top: 12px; }
.queue-footer a { color: #dce7ff; }
.queue-qr { display: inline-flex; align-items: center; gap: 12px; }
.queue-qr img { display: block; background: white; }
@media (min-width: 960px) {
    .tv-view .counters { grid-template-columns: repeat(auto-fit,minmax(255px,1fr)); }
}
