/* Dark uses the original palette. Venue themes change appearance only. */
:root[data-theme="party"]{--bg:#5026a6;--panel:#6538b9;--line:#a375dc;--text:#fff;--muted:#ede5ff;--lime:#ffe16a;--coral:#ffb8ac;--progress:#48e5d0;color-scheme:dark}
:root[data-theme="party"] body{background:var(--bg)}
:root[data-theme="party"] .topbar{background:linear-gradient(110deg,#bd168f,#7025b3 55%,#b6189d);border-color:#c65de3}
:root[data-theme="party"] .brandmark{background:#ffe16a;color:#30105a}
:root[data-theme="party"] .score-pill{background:#5026a6;border-color:#c65de3}
:root[data-theme="party"] .answer.selected{background:#7844c9;border-color:#ffe16a}
:root[data-theme="party"] .answer.correct{background:#ffe16a;color:#30105a;border-color:#ffe16a}
:root[data-theme="party"] .letter{background:#48e5d0;color:#30105a}
:root[data-theme="party"] .answer.correct .letter{background:#5026a6;color:#ffe16a}
:root[data-theme="party"] .answer.incorrect{background:#713158;border-color:#ffb8ac}
:root[data-theme="party"] .notice{background:#432080;border-color:#a375dc}
:root[data-theme="party"] .error.notice{background:#713158;border-color:#ffb8ac}
:root[data-theme="party"] .stack input,:root[data-theme="party"] .stack select,:root[data-theme="party"] .stack textarea{background:#432080;border-color:#a375dc}
:root[data-theme="party"] .me{background:#6b319c}
:root[data-theme="party"] .board-row{border-color:#a375dc}
:root[data-theme="party"] .reveal-fact{color:#fff}
:root[data-theme="party"] .intro .orbit{color:#ff4fa3}
:root[data-theme="party"] .progress{background:#8c43c9}
:root[data-theme="party"] .progress>div{background:#48e5d0}
:root[data-theme="party"] .qr{background:#fff}
:root[data-theme="light"]{--bg:#f7f6ef;--panel:#fff;--line:#bdcbc2;--text:#173d32;--muted:#4c6259;--lime:#276b49;--coral:#a7352d;--progress:#276b49;color-scheme:light}
:root[data-theme="bright"]{--bg:#1844bd;--panel:#2459dc;--line:#6685e1;--text:#fff;--muted:#e0e8ff;--lime:#ffe16a;--coral:#ffb8ac;--progress:#4de5df;color-scheme:dark}
:root[data-theme="light"] body,:root[data-theme="bright"] body{background:var(--bg)}
:root[data-theme="light"] .brandmark{background:#d2f65a;color:#173d32}
:root[data-theme="light"] button:not(.secondary):not(.answer),:root[data-theme="light"] .button:not(.secondary){color:#fff}
:root[data-theme="light"] .answer.selected{background:#edf6dc;border-color:#276b49}
:root[data-theme="light"] .answer.correct{background:#d3ee8c;color:#173d32;border-color:#276b49}
:root[data-theme="light"] .letter{background:#e5eee8;color:#173d32}
:root[data-theme="light"] .answer.correct .letter{background:#276b49;color:#fff}
:root[data-theme="light"] .answer.incorrect{background:#ffe5e1;border-color:#a7352d}
:root[data-theme="light"] .notice{background:#eaf1e6;border-color:#a1b6a0}
:root[data-theme="light"] .error.notice{background:#ffe5e1;border-color:#b65a51}
:root[data-theme="light"] .error{color:#a02a25!important}
:root[data-theme="light"] .stack input,:root[data-theme="light"] .stack select,:root[data-theme="light"] .stack textarea{background:#fff;border-color:#93a89a}
:root[data-theme="light"] .me{background:#edf6dc}
:root[data-theme="light"] .board-row{border-color:#cdd8d0}
:root[data-theme="bright"] .brandmark{background:#ffe16a;color:#102858}
:root[data-theme="bright"] .answer.selected{background:#305cd1;border-color:#ffe16a}
:root[data-theme="bright"] .answer.correct{background:#ffe16a;color:#102858;border-color:#ffe16a}
:root[data-theme="bright"] .letter{background:#1745b6;color:#fff}
:root[data-theme="bright"] .answer.correct .letter{background:#102858;color:#ffe16a}
:root[data-theme="bright"] .answer.incorrect{background:#653356;border-color:#ffb8ac}
:root[data-theme="bright"] .notice{background:#1439a1;border-color:#7898ef}
:root[data-theme="bright"] .error.notice{background:#653356;border-color:#ffb8ac}
:root[data-theme="bright"] .stack input,:root[data-theme="bright"] .stack select,:root[data-theme="bright"] .stack textarea{background:#123698;border-color:#7898ef}
:root[data-theme="bright"] .me{background:#1439a1}
:root[data-theme="bright"] .board-row{border-color:#6685e1}
:root[data-theme="bright"] .reveal-fact{color:#fff}
:root[data-theme="bright"] .eyebrow{color:#ffe16a}
:root[data-theme="bright"] .intro .orbit{color:#4de5df}
:root[data-theme="light"] .progress>div,:root[data-theme="bright"] .progress>div{background:var(--progress)}
:root[data-theme="light"] .qr,:root[data-theme="bright"] .qr{background:#fff}
.venue-brand-logo{display:block;width:auto;height:56px;max-width:min(260px,35vw);object-fit:contain}
.venue-appearance>form{margin:18px 0}.venue-appearance>h3{margin:24px 0 14px}
.venue-logo-preview{display:flex;align-items:center;justify-content:center;gap:14px;min-height:100px;background:#edf0ea;border:1px solid var(--line);border-radius:12px;padding:16px;color:#173d32}
.venue-logo-preview img{display:block;max-width:100%;max-height:110px;object-fit:contain}
.venue-appearance input[type=file]{max-width:100%;font-size:13px;padding:10px}
@media(max-width:640px){.venue-brand-logo{height:44px;max-width:min(180px,44vw)}}

/* Apply the venue palette to the phone registration and game views, too. */
:root[data-theme] .player-page{background:var(--bg);color:var(--text)}
.connection-badge{font-size:12px;color:var(--muted);margin-bottom:18px}
.connection-badge[data-connected="false"]{color:var(--coral)}
.personal-results{margin-top:10px}.personal-results p:last-child{margin-bottom:0}
.import-preview{max-height:60vh;overflow:auto;margin:20px 0;padding:20px;border:1px solid var(--line);border-radius:12px}.import-preview label{display:flex;gap:12px;align-items:start;padding:12px 0;border-bottom:1px solid var(--line)}

.import-preview small{display:block;color:var(--muted);margin-top:6px}.import-preview input{margin-top:5px;flex-shrink:0}
.import-preview label{flex-direction:row;font-size:14px;font-weight:400}.import-preview input{width:auto;padding:0}.import-preview small{font-weight:400;line-height:1.5}
