body.live-quiz-page {
    overflow: auto;
    background: #f1f5f9;
    color: #18243a;
    font-family: 'Noto Sans Thai', system-ui, sans-serif;
}
.live-quiz { max-width: 960px; margin: 0 auto; padding: 78px 20px 36px; }
.live-quiz [hidden] { display: none !important; }
.live-quiz h1 { margin: 4px 0 24px; font-size: clamp(1.8rem, 5vw, 3rem); line-height: 1.2; overflow-wrap: anywhere; }
.live-quiz h2 { font-size: 1.3rem; overflow-wrap: anywhere; }
.live-quiz header p, #quizProgress { color: #475569; }
.quiz-panel {
    background: #fff;
    border: 1px solid #dbe3ef;
    border-radius: 16px;
    display: grid;
    gap: 14px;
    align-content: start;
    padding: clamp(16px, 4vw, 28px);
    min-width: 0;
}
#quizLobby { max-width: 460px; }
.live-quiz label { font-weight: 650; }
.live-quiz input, .live-quiz button {
    min-height: 44px;
    font: inherit;
    border-radius: 9px;
    padding: 8px 12px;
}
.live-quiz input { width: 100%; min-width: 0; border: 1px solid #8491a5; color: inherit; }
.live-quiz button { border: 1px solid transparent; color: white; background: #2049b8; font-weight: 650; cursor: pointer; }
.live-quiz button:disabled { opacity: .68; cursor: default; }
.live-quiz .quiz-secondary { border-color: #8491a5; color: #18243a; background: white; }
.live-quiz :focus-visible { outline: 3px solid #245ce1; outline-offset: 2px; }
.quiz-actions { display: flex; gap: 8px; }
.quiz-layout { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr) minmax(230px, 35%); }
.live-quiz .race-frame { width: 100%; height: max(440px, 75dvh); margin-top: 16px; border-radius: 16px; background: #141a27; }
.shared-race-stage { margin-top: 16px; }
.shared-race-track { aspect-ratio: 2 / 1; width: 100%; overflow: hidden; border-radius: 12px; background: #16332b; }
.shared-race-controls { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.shared-race-controls button { touch-action: none; padding-inline: 4px; }
.shared-race-controls button:active { background: #173785; }
.shared-race-results { margin-inline-start: 24px; }
.quiz-choices { display: grid; gap: 8px; }
.quiz-choices button { background: #edf2fc; border-color: #b9c9ea; color: #18243a; text-align: start; overflow-wrap: anywhere; }
.quiz-choices button[aria-pressed="true"] { border-color: #2049b8; background: #dce7fe; }
.quiz-choices button[data-correct="true"] { background: #daefe4; border-color: #3e815f; color: #163d2b; opacity: 1; }
#quizPlayers { list-style: none; display: grid; gap: 8px; }
#quizPlayers li { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; overflow-wrap: anywhere; }
#quizStatus { padding: 10px 12px; margin-bottom: 12px; border-radius: 9px; background: #e1e8f4; }
@media (max-width: 680px) { .quiz-layout { grid-template-columns: 1fr; } }
