/* Focused play surfaces. Colours and game mechanics remain in the existing theme. */
.creative-game{max-width:550px;margin-inline:auto;min-width:0}
.creative-game .game-badge,.creative-game .remote-turn{max-width:100%;overflow-wrap:anywhere;line-height:1.5}
.creative-game .progress-row{gap:10px;margin-bottom:16px}
.creative-game h3{margin:10px 0 16px}
.creative-game .prompt-card{overflow-wrap:anywhere}
.creative-game .creative-actions{display:flex;flex-wrap:nowrap;align-items:stretch;gap:12px;width:100%;margin-top:20px;padding-bottom:4px}
.creative-game .creative-actions>button{flex:1;min-width:0;min-height:50px;padding:12px 14px;overflow-wrap:anywhere}
.creative-game .creative-secondary-actions{gap:12px;margin-top:12px}
.creative-game .creative-secondary-actions>button{min-height:44px}
.creative-game .creative-cue,.creative-game .creative-round-score{font-size:13px;line-height:1.6;margin:10px auto 12px}
.creative-game .field-group{margin:12px auto 6px;max-width:none}
.creative-game form>.primary{width:100%;min-height:50px}
.creative-game .feedback{margin:0;min-height:28px;padding:4px 0;font-size:12px;line-height:1.5}
.creative-game .feedback:empty{min-height:8px;padding:0}
.creative-game :is(input,textarea){scroll-margin-block:18px;font-size:16px}
.creative-game :is(button,summary):focus-visible{outline:3px solid var(--dark);outline-offset:3px}
.scramble-workspace{max-width:500px;margin-inline:auto}
.scramble-stage .word-scramble{margin:12px 0;font-size:clamp(24px,6.5vw,35px);padding:16px 12px;letter-spacing:4px}
.scramble-stage .timer-panel{max-width:none;margin:8px 0 12px;padding:8px 12px 10px}
.scramble-stage .timer-panel .timer{font-size:26px}
.scramble-stage .timer-caption{margin:1px 0 6px;font-size:9px}
.scramble-stage .timer-track{height:5px}
.scramble-stage .creative-secondary-actions{justify-content:space-between;flex-wrap:nowrap}
.scramble-stage .creative-secondary-actions>button{font-size:12px;padding:10px 9px;min-width:0;flex:1}
.charades-stage,.dare-stage{display:flex;flex-direction:column;align-items:center;min-height:min(540px,calc(100dvh - 190px))}
.charades-stage>.timer-panel{width:min(100%,320px);margin:12px auto}
.charades-stage>.prompt-card{display:grid;place-items:center;width:100%;min-height:150px;margin:4px 0 10px}
.charades-stage>.creative-actions,.dare-stage>.creative-actions{margin-top:auto;padding-top:18px}
.charades-stage .creative-round-score{margin:4px auto 12px}
.dare-stage>.progress-row{align-self:stretch}
.dare-stage>.dare-wheel{flex:none;margin:24px auto}
.dare-stage>.creative-cue{margin:14px auto 20px}
.dare-prompt-stage>.prompt-card{display:grid;place-items:center;width:100%;min-height:190px;margin:24px 0 10px}
.creative-game .creative-spin-status,.creative-game .creative-copy-status{font-size:12px;line-height:1.6;margin:10px auto 0;min-height:20px}
.story-stage .story-recent{margin-top:12px}
.story-stage .story-line{line-height:1.6}
.story-stage .story-earlier{text-align:left;margin:8px 0;border-bottom:1px solid var(--line)}
.story-earlier>summary{cursor:pointer;min-height:44px;padding:12px 2px;color:var(--muted);font-size:12px}
.story-stage textarea{min-height:76px;height:76px;resize:vertical;line-height:1.5}
.story-stage .creative-secondary-actions{margin-top:8px}
.story-stage #inspiration:empty{display:none}
.creative-result .story-output{user-select:text;-webkit-user-select:text}
.creative-result .creative-actions{margin-top:16px}
.creative-result .date-summary>div{min-width:0;overflow-wrap:anywhere}
.date-stage .date-so-far{text-align:left;background:var(--cream);border:1px solid var(--line);border-radius:9px;padding:10px 12px;margin:12px 0;font-size:13px;line-height:1.5;overflow-wrap:anywhere}
.date-so-far small{display:block;font-size:9px;color:var(--muted);margin-bottom:3px}
.date-stage .choice-grid{margin:16px auto}
.date-stage .choice{overflow-wrap:anywhere}
.date-stage .creative-secondary-actions>button{width:100%}
@media(max-width:600px){
 .creative-game .progress-row{font-size:10px;margin-bottom:12px}
 .creative-game h3{font-size:24px;line-height:1.3;margin:8px 0 14px}
 .creative-game .creative-actions{gap:10px}
 .creative-game .creative-actions>button{font-size:13px;padding:12px 10px}
 .charades-stage .prompt-card,.dare-stage .prompt-card{font-size:23px;padding:22px 18px}
 .date-stage .choice-grid{grid-template-columns:1fr;gap:10px}
 .date-stage .choice{min-height:54px;padding:14px 16px;font-size:15px;text-align:left}
 .creative-result .date-summary{grid-template-columns:1fr;gap:10px;margin:18px 0}
 .creative-result .date-summary>div{display:block;text-align:center;padding:14px}
 .creative-result .date-summary small{display:block;margin-bottom:7px}
 .creative-result .date-summary b{font-size:18px}
}
@media(max-height:620px) and (max-width:900px){
 .creative-game .progress-row{margin-bottom:8px}
 .creative-game h3{font-size:22px;margin:6px 0 10px}
 .scramble-stage .word-scramble{padding:10px;margin:8px 0;font-size:26px}
 .scramble-stage .timer-panel{padding:5px 10px 7px;margin:5px 0 8px}
 .scramble-stage .timer-panel .timer{font-size:23px}
 .scramble-stage .timer-caption{display:none}
 .scramble-stage .timer-track{margin-top:4px}
 .creative-game .field-group{margin-top:8px}
 .charades-stage,.dare-stage{min-height:0}
 .charades-stage>.prompt-card,.dare-prompt-stage>.prompt-card{min-height:110px;padding:16px;margin:8px 0}
 .charades-stage>.creative-actions,.dare-stage>.creative-actions{padding-top:8px}
 .dare-stage>.dare-wheel{margin:16px auto}
}
/* The same focused surfaces on two devices retain the authoritative room clock. */
.scramble-stage .scramble-hint{display:block;color:var(--muted);margin-top:4px}
.scramble-stage .remote-countdown{margin:8px 0 12px;width:100%;max-width:none;padding:8px 12px}
.scramble-stage .remote-countdown .clock-orbit{display:none}
.scramble-stage .remote-countdown .clock-value{font-size:26px}
.charades-stage>.remote-countdown{width:min(100%,320px);margin:12px auto}

@media (max-width: 600px) and (max-height: 660px) {
 .game-content:has(.story-stage,.date-stage) { padding:8px 12px 10px; }
 .story-stage .progress-row,.date-stage .progress-row { margin:0 0 5px; }
 .story-stage .game-badge,.date-stage .game-badge { margin:0; padding:3px 8px; }
 .story-stage h3,.date-stage h3 { margin:5px 0 6px; font-size:21px; line-height:1.2; }
 .story-stage .story-earlier { margin:3px 0; }
 .story-stage .story-recent { margin-top:3px; }
 .story-stage .story-line { margin:4px 0; padding:6px 8px; font-size:13px; line-height:1.35; }
 .story-stage textarea { min-height:54px; height:54px; }
 .story-stage form>.primary { min-height:44px; padding:7px 12px; }
 .story-stage .creative-secondary-actions { margin-top:4px; }
 .story-stage .creative-cue,.date-stage .creative-cue { margin:4px auto; font-size:12px; line-height:1.4; }
 .date-stage .date-so-far { margin:5px 0; padding:5px 8px; }
 .date-stage .choice-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; margin:8px auto; }
 .date-stage .choice { min-height:44px; padding:7px 8px; font-size:13px; line-height:1.35; }
 .date-stage .creative-secondary-actions { margin-top:6px; }
}
