/* Active games fill one mobile viewport. Lobby and gameroom remain scrollable. */
.round-summary{display:flex;align-items:center;gap:12px;margin:0 0 14px;padding:12px 14px;border:2px solid var(--ink);border-radius:18px;background:var(--lime);color:var(--ink);box-shadow:4px 5px 0 var(--ink)}
.round-summary-icon{font-size:2.4rem;line-height:1}.round-summary div{min-width:0}.round-summary .eyebrow{margin:0;font-size:10px}.round-summary strong,.round-summary small{display:block}.round-summary strong{font-size:clamp(17px,3vw,24px);line-height:1.1}.round-summary small{margin-top:3px;font-weight:750;line-height:1.2}
@media(max-width:720px){
body.in-game:not([data-stage="lobby"]):not([data-stage="gameRoom"]){height:100dvh;min-height:0;overflow:hidden}
body.in-game:not([data-stage="lobby"]):not([data-stage="gameRoom"]) .shell{display:flex;flex-direction:column;width:100%;height:100dvh;padding:6px 8px 8px}
body.in-game:not([data-stage="lobby"]):not([data-stage="gameRoom"]) .topbar{flex:0 0 42px;min-height:42px;padding:0 4px}
body.in-game:not([data-stage="lobby"]):not([data-stage="gameRoom"]) .topbar img{width:34px;height:34px}
body.in-game:not([data-stage="lobby"]):not([data-stage="gameRoom"]) .game-panel{display:flex;flex:1 1 auto;min-height:0;flex-direction:column;margin-top:5px;padding:10px 12px;border-width:2px;border-radius:17px;box-shadow:none;overflow:hidden}
body.in-game:not([data-stage="lobby"]):not([data-stage="gameRoom"]) .game-meta{flex:0 0 auto;gap:6px;margin-bottom:8px;padding-bottom:7px;font-size:11px;white-space:nowrap}
body.in-game:not([data-stage="lobby"]):not([data-stage="gameRoom"]) .game-panel>[id$="View"]:not([hidden]){display:flex;flex:1 1 auto;min-height:0;flex-direction:column;overflow:hidden}
body.in-game:not([data-stage="lobby"]):not([data-stage="gameRoom"]) .game-panel>.error:empty{display:none}
body.in-game:not([data-stage="lobby"]):not([data-stage="gameRoom"]) h1{font-size:clamp(24px,8vw,38px);line-height:1.03;margin:.08em 0 .18em}
body.in-game:not([data-stage="lobby"]):not([data-stage="gameRoom"]) h2{font-size:clamp(22px,7vw,34px);margin:6px 0 10px}
body.in-game:not([data-stage="lobby"]):not([data-stage="gameRoom"]) .lead{font-size:14px;line-height:1.25;margin:4px 0}
body.in-game:not([data-stage="lobby"]):not([data-stage="gameRoom"]) .eyebrow{margin-bottom:5px;font-size:11px}
body.in-game:not([data-stage="lobby"]):not([data-stage="gameRoom"]) .host-controls{margin-top:8px}
body.in-game:not([data-stage="lobby"]):not([data-stage="gameRoom"]) button{padding:10px 13px;font-size:14px;box-shadow:3px 4px 0 var(--ink)}
.round-summary{display:flex;flex:0 0 auto;align-items:center;gap:10px;margin:0 0 8px;padding:9px 11px;border:2px solid var(--ink);border-radius:15px;background:var(--lime);color:var(--ink);box-shadow:3px 4px 0 var(--ink)}
.round-summary-icon{font-size:2rem;line-height:1}.round-summary div{min-width:0}.round-summary .eyebrow{margin:0;font-size:9px}.round-summary strong,.round-summary small{display:block}.round-summary strong{font-size:clamp(15px,4.5vw,20px);line-height:1.1}.round-summary small{margin-top:2px;font-weight:750;line-height:1.15}
body.in-game[data-stage^="countdown-"] .countdown-head h1{font-size:25px}
body.in-game[data-stage^="countdown-"] .countdown-clock{display:flex;flex:1;min-height:0;flex-direction:column;justify-content:center;margin-top:4px;padding:8px}
body.in-game[data-stage^="countdown-"] .countdown-digits{min-height:0;flex:1;font-size:clamp(3.2rem,19vw,5.5rem)}
body.in-game[data-stage^="countdown-"] .countdown-stop{min-height:58px;font-size:1.65rem}
body.in-game[data-stage^="countdown-"] .countdown-lists{display:none}
body.in-game[data-stage^="dilemma-"] .dilemma-head .lead,body.in-game[data-stage^="dilemma-"] .dilemma-players{display:none}
body.in-game[data-stage^="dilemma-"] .dilemma-progress{margin:5px 0;padding:5px 9px;font-size:12px}
body.in-game[data-stage^="dilemma-"] .dilemma-choices{flex:1;min-height:0;grid-template-columns:1fr 1fr;gap:8px}
body.in-game[data-stage^="dilemma-"] .dilemma-choice{min-height:0;height:100%;padding:10px 7px;border-radius:16px;font-size:clamp(1rem,5vw,1.35rem);box-shadow:3px 4px 0 #191624}
body.in-game[data-stage^="dilemma-"] .dilemma-percent{font-size:2rem;margin-bottom:4px}
body.in-game[data-stage^="keywords-"] .keywords-head .lead,body.in-game[data-stage^="keywords-"] .keywords-players{display:none}
body.in-game[data-stage^="keywords-"] .keywords-turn{margin:4px 0;padding:7px 9px;border-radius:14px}
body.in-game[data-stage^="keywords-"] .keywords-turn strong{font-size:1rem}
body.in-game[data-stage^="keywords-"] .keywords-timer{width:48px;height:48px;font-size:1.35rem}
body.in-game[data-stage^="keywords-"] .keywords-progress{margin-bottom:5px;padding:4px 8px;font-size:11px}
body.in-game[data-stage^="keywords-"] .keywords-terms{flex:1;min-height:0;grid-template-columns:1fr 1fr;grid-auto-rows:1fr;gap:6px}
body.in-game[data-stage^="keywords-"] .keyword-term{min-height:0;padding:5px;border-radius:12px;font-size:.88rem;box-shadow:2px 3px 0 #191624}
body.in-game[data-stage^="friend-"] .friend-head .lead,body.in-game[data-stage^="friend-"] .friend-players{display:none}
body.in-game[data-stage^="friend-"] .friend-central{margin:5px 0;padding:7px 9px}
body.in-game[data-stage^="friend-"] .friend-progress{margin:3px 0;font-size:12px}
body.in-game[data-stage^="friend-"] .friend-options{flex:1;min-height:0;grid-template-columns:1fr 1fr;grid-auto-rows:1fr;gap:7px}
body.in-game[data-stage^="friend-"] .friend-option{min-height:0;padding:7px;font-size:13px}
body.in-game[data-stage^="bomb-"] .bomb-personal,body.in-game[data-stage^="drink-"] .drink-personal{flex:1;min-height:0;padding:10px;border-radius:18px}
body.in-game[data-stage^="bomb-"] .bomb-players,body.in-game[data-stage^="drink-"] .drink-players{display:none}
body.in-game[data-stage^="bomb-"] .bomb-icon,body.in-game[data-stage^="drink-"] .drink-glass{font-size:clamp(4rem,22vw,7rem)}
body.in-game[data-stage^="mostlikely-"] .most-progress{margin:4px 0;font-size:12px}
body.in-game[data-stage^="mostlikely-"] .most-message{margin:3px 0}
body.in-game[data-stage^="mostlikely-"] .most-choices{flex:1;min-height:0;grid-template-columns:1fr 1fr;grid-auto-rows:1fr;gap:7px}
body.in-game[data-stage^="mostlikely-"] .most-choice{min-height:0;padding:8px;border-radius:13px}
body.in-game[data-stage^="mostlikely-"] .most-name{font-size:.95rem}
body.in-game[data-stage^="mostlikely-"] .most-percent{font-size:1.3rem}
body.in-game[data-stage^="fourfinder-"] .four-finder-head .lead{display:none}
body.in-game[data-stage^="fourfinder-"] .four-finder-head{flex:0 0 auto}
body.in-game[data-stage^="fourfinder-"] .four-finder-head h1{font-size:clamp(19px,6vw,28px);margin:0}
body.in-game[data-stage^="fourfinder-"] .four-finder-head .secondary{position:absolute;right:14px;top:56px;margin:0;padding:6px 9px;font-size:11px}
body.in-game[data-stage^="fourfinder-"] .four-finder-status{display:flex;flex:0 0 auto;margin:5px 0;padding:6px 9px;border-radius:12px;font-size:12px}
body.in-game[data-stage^="fourfinder-"] .four-finder-status span{display:block;margin:0;white-space:nowrap}
body.in-game[data-stage^="fourfinder-"] .four-finder-options{display:grid;flex:1 1 auto;min-height:0;grid-template-columns:1fr 1fr;grid-template-rows:repeat(4,minmax(0,1fr));gap:5px}
body.in-game[data-stage^="fourfinder-"] .four-finder-option{min-height:0;padding:5px 8px;border-radius:11px;box-shadow:2px 3px 0 #1a1930}
body.in-game[data-stage^="fourfinder-"] .four-finder-option strong{font-size:clamp(12px,3.7vw,16px);line-height:1.05}
body.in-game[data-stage^="fourfinder-"] .four-finder-option small{margin-top:2px;font-size:9px;line-height:1}
body.in-game[data-stage="fourfinder-playing"] .four-finder-score{display:none}
body.in-game[data-stage="fourfinder-result"] .four-finder-score{flex:0 0 auto;margin-top:5px}
body.in-game[data-stage="fourfinder-result"] .four-finder-score h2{display:none}
body.in-game[data-stage="fourfinder-result"] .four-finder-score .player-row{padding:3px 7px;font-size:11px}
body.in-game[data-stage="question"] .question-head{margin-bottom:6px;padding-bottom:6px}
body.in-game[data-stage="question"] #questionText{flex:0 0 auto;margin:2px 0 7px;font-size:clamp(19px,6vw,28px);line-height:1.05}
body.in-game[data-stage="question"] .answers{flex:1;min-height:0;grid-template-columns:1fr 1fr;grid-auto-rows:1fr;gap:7px}
body.in-game[data-stage="question"] .answer{min-height:0;padding:7px}
body.in-game[data-stage="question"] .answer .code{flex-basis:30px;width:30px;height:30px;border-radius:8px}
body.in-game[data-stage="question"] #answerStatus{flex:0 0 auto;margin:5px 0 0;font-size:11px;line-height:1.1}
body.in-game[data-stage="question"] #hostQuestionControls{display:flex;flex:0 0 auto;margin:5px 0 0}
body.in-game[data-stage="question"] #hostQuestionControls .primary{width:100%;padding:8px 10px}
body.in-game[data-stage="result"] .scoreboard{display:none}
body.in-game[data-stage="result"] .round-summary{display:none}
body.in-game[data-stage="result"] #resultQuestion{flex:0 0 auto;margin:0 0 6px;font-size:clamp(18px,5.5vw,26px);line-height:1.05}
body.in-game[data-stage="result"] .answers{grid-template-columns:1fr 1fr;gap:6px}
body.in-game[data-stage="result"] .answer{min-height:44px;padding:5px;font-size:12px}
body.in-game[data-stage="result"] .answer .code{flex-basis:28px;width:28px;height:28px;border-radius:7px}
body.in-game[data-stage="result"] .explanation{flex:0 1 auto;margin:6px 0;padding:7px;font-size:11px;line-height:1.15}
body.in-game[data-stage="result"] #hostResultControls{display:flex;flex:0 0 auto;margin:5px 0 0}
body.in-game[data-stage="result"] #hostResultControls .primary{width:100%;padding:8px 10px}
body.in-game[data-stage="final"] #finalScoreList{flex:1;min-height:0;overflow:hidden;margin-top:5px}
body.in-game[data-stage="final"] #hostFinalControls{flex:0 0 auto;margin-top:5px}
body.in-game[data-stage="final"] #hostFinalControls .secondary{width:100%;padding:8px 10px}
}

/* Quisty.Live kleuren en uitslagkolommen */
.answers .answer{background:linear-gradient(135deg,#087e89,#16bdc7);color:#fff}.answers .answer:nth-child(2){background:linear-gradient(135deg,#a91558,#ed3987)}.answers .answer:nth-child(3){background:linear-gradient(135deg,#547b00,#8fc700);color:#101900}.answers .answer:nth-child(4){background:linear-gradient(135deg,#a36f00,#efae05);color:#201500}.result-player-columns{display:grid;grid-template-columns:1fr 1fr;gap:18px}.result-player-columns section{padding:14px;border-radius:18px;background:#ffffff0d}.result-player-columns h3{margin:0 0 10px;color:var(--cyan)}.result-good{border-left:5px solid var(--lime)}.result-bad{border-left:5px solid var(--pink)}
@media(max-width:390px),(max-height:700px){
body.in-game:not([data-stage="lobby"]):not([data-stage="gameRoom"]) .topbar strong{font-size:12px}
body.in-game:not([data-stage="lobby"]):not([data-stage="gameRoom"]) .game-meta span:first-child{display:none}
body.in-game:not([data-stage="lobby"]):not([data-stage="gameRoom"]) h1{font-size:23px}
body.in-game:not([data-stage="lobby"]):not([data-stage="gameRoom"]) .waiting{margin-top:4px;font-size:12px}
body.in-game[data-stage^="fourfinder-"] .four-finder-status{font-size:10px;padding:4px 7px}
body.in-game[data-stage^="fourfinder-"] .four-finder-head .eyebrow{margin-bottom:2px;font-size:9px}
}

.topbar-actions{align-items:center;display:flex;gap:12px;margin-left:auto}
.topbar-actions #connectionStatus{margin-left:0}
.host-room-button{background:var(--lime);border-width:2px;box-shadow:3px 4px 0 var(--ink);color:var(--ink);font-size:14px;padding:9px 14px;white-space:nowrap}
.host-room-button:disabled{background:#e8dfec;box-shadow:none}
@media(max-width:560px){
.topbar{gap:8px}
.topbar-actions{gap:7px}
.host-room-button{font-size:12px;padding:7px 9px}
.topbar-actions #connectionStatus{display:none}
}

.saved-profile{align-items:center;background:#eee8f4;border:2px solid #d8cce1;border-radius:18px;display:flex;gap:12px;margin:22px 0;padding:12px 14px}
.saved-profile .player-avatar{height:48px;flex-basis:48px;width:48px}
.saved-profile span{display:grid;gap:2px;min-width:0}
.saved-profile small{color:#715f7d;font-size:12px;font-weight:800}
.saved-profile strong{font-size:19px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.saved-profile button{background:transparent;border:0;box-shadow:none;color:var(--purple);font-size:13px;margin-left:auto;padding:6px;text-decoration:underline}
.saved-profile button:active{box-shadow:none;transform:none}
