/* Critter Party shared mini-game visual contract, 2026-11-10.
   Late-loaded and stage-scoped so specialised game arenas retain their look.
   Never conceal content to meet an artificial one-screen height. */
#r20MiniGame.r20-mg-tv {
 --ccc-shared-gold:#ffe7a3;
 --ccc-shared-text:#e4f4ff;
 --ccc-shared-edge:#7899bc;
 --ccc-shared-surface:linear-gradient(135deg,#203c5e,#213756);
}
#r20MiniGame.r20-mg-tv .r20-mg-layout,
#r20MiniGame.r20-mg-tv .r20-mg-center,
#r20MiniGame.r20-mg-tv .r20-mg-stage-main {
 min-width:0;
 box-sizing:border-box;
}
#r20MiniGame.r20-mg-tv .r20-mg-head {width:100%;max-width:100%;min-width:0}
#r20MiniGame.r20-mg-tv :is(.r20-mg-title,.r20-mg-subtitle,.r20-mg-instruction,.r20-mg-spotlight){
 overflow-wrap:anywhere;
 text-wrap:balance;
}
#r20MiniGame.r20-mg-tv .r20-mg-status-row{
 min-width:0;
 display:flex;
 align-items:center;
 justify-content:center;
 gap:clamp(6px,1.2vw,18px);
 flex-wrap:wrap;
}
#r20MiniGame.r20-mg-tv .r20-mg-timer{
 max-width:100%;white-space:normal;text-align:center;
 font-variant-numeric:tabular-nums;
}
/* Every game gets the same ready-to-start announcement. Countdown content
   has a dedicated, uncluttered composition regardless of the game class. */
#r20MiniGame.r20-mg-tv[data-stage="countdown"] {
 overflow:hidden!important;
}
#r20MiniGame.r20-mg-tv[data-stage="countdown"] .r20-mg-layout{
 height:100dvh!important;min-height:100dvh!important;max-height:100dvh!important;
 width:min(100%,1280px)!important;
 display:flex!important;flex-direction:column!important;
 justify-content:flex-start!important;
 padding:clamp(10px,1.8dvh,22px) clamp(10px,2vw,30px) clamp(16px,2dvh,30px)!important;
 gap:0!important;overflow:hidden!important;transform:none!important;
}
#r20MiniGame.r20-mg-tv[data-stage="countdown"] :is(.r20-mg-eyebrow,.r20-mg-title,.r20-mg-subtitle){
 display:none!important;
}
#r20MiniGame.r20-mg-tv[data-stage="countdown"] .r20-mg-head {
 flex:0 0 auto!important;margin:0!important;padding:0!important;
}
#r20MiniGame.r20-mg-tv[data-stage="countdown"] .r20-mg-center{
 display:flex!important;flex:1 1 auto!important;flex-direction:column!important;
 align-items:center!important;justify-content:center!important;
 width:100%!important;height:auto!important;min-height:0!important;
 overflow:visible!important;margin:0!important;padding:0!important;
}
#r20MiniGame.r20-mg-tv[data-stage="countdown"] .r20-mg-stage-main{
 display:flex!important;flex-direction:column!important;
 flex:0 1 auto!important;align-items:center!important;justify-content:center!important;
 width:min(100%,1020px)!important;height:auto!important;min-height:0!important;
 max-height:100%!important;margin:0 auto!important;
 padding:clamp(6px,1.5dvh,20px)!important;gap:clamp(10px,2dvh,24px)!important;
 background:transparent!important;border:0!important;border-radius:0!important;
 box-shadow:none!important;transform:none!important;overflow:visible!important;
 text-align:center!important;
}
#r20MiniGame.r20-mg-tv[data-stage="countdown"] .r20-mg-stage-main > .r20-mg-glyph{
 display:block!important;flex:none!important;margin:0 auto!important;
 width:auto!important;height:auto!important;
 font-size:clamp(58px,11dvh,115px)!important;line-height:1.1!important;
}
#r20MiniGame.r20-mg-tv[data-stage="countdown"] .r20-mg-stage-main > .r20-mg-spotlight{
 display:block!important;width:100%!important;margin:0!important;
 font-size:clamp(30px,6.3dvh,68px)!important;line-height:1.08!important;
 color:var(--ccc-shared-gold)!important;text-align:center!important;
 white-space:normal!important;
}
#r20MiniGame.r20-mg-tv[data-stage="countdown"] .r20-mg-stage-main > .r20-mg-instruction{
 display:block!important;width:100%!important;margin:0!important;
 font-size:clamp(17px,3.1dvh,30px)!important;line-height:1.22!important;
 color:var(--ccc-shared-text)!important;text-align:center!important;
 white-space:normal!important;
}
#r20MiniGame.r20-mg-tv[data-stage="countdown"] :is(.r20-mg-scores,.r20-mg-footer,.r20-mg-runner-up){
 display:none!important;
}
/* Player results must never be cropped by a short viewport or a stale
   game-specific fixed height; keep natural content height, with scrolling
   on the outer TV container only when necessary. */
#r20MiniGame.r20-mg-tv:is([data-stage="reveal"],[data-stage="results"],[data-stage="round_leaderboard"]){
 overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior-y:contain;
}
#r20MiniGame.r20-mg-tv:is([data-stage="reveal"],[data-stage="results"],[data-stage="round_leaderboard"]) .r20-mg-layout{
 height:auto!important;min-height:100%!important;max-height:none!important;
 overflow:visible!important;transform:none;
 padding-bottom:clamp(18px,3dvh,42px)!important;
}
#r20MiniGame.r20-mg-tv:is([data-stage="reveal"],[data-stage="results"],[data-stage="round_leaderboard"]) .r20-mg-center{
 min-height:0!important;max-height:none!important;
 height:auto!important;overflow:visible!important;
}
#r20MiniGame.r20-mg-tv:is([data-stage="reveal"],[data-stage="results"],[data-stage="round_leaderboard"]) :is(.r20-mg-scores,.r20-mg-round-standings,.ccc-between-rounds){
 max-height:none!important;min-width:0;max-width:100%;box-sizing:border-box;
}
#r20MiniGame.r20-mg-tv :is(.r20-mg-score-row,.ccc-between-rounds-row,.ccc-round-player,.ccc-champ-row){
 min-width:0;max-width:100%;box-sizing:border-box;
}
#r20MiniGame.r20-mg-tv :is(.r20-mg-player-name,.ccc-between-rounds-name,.ccc-round-player-name){
 min-width:0;overflow-wrap:anywhere;
}
/* Tighten only the shared chrome on short TVs, never game board controls. */
@media(max-height:620px){
 #r20MiniGame.r20-mg-tv :is([data-stage="play"],[data-stage="preview"]) .r20-mg-title{line-height:1.08}
 #r20MiniGame.r20-mg-tv[data-stage="countdown"] .r20-mg-stage-main{gap:7px!important;padding:5px!important}
 #r20MiniGame.r20-mg-tv[data-stage="countdown"] .r20-mg-stage-main > .r20-mg-glyph{font-size:clamp(44px,9dvh,70px)!important}
 #r20MiniGame.r20-mg-tv[data-stage="countdown"] .r20-mg-stage-main > .r20-mg-spotlight{font-size:clamp(27px,6dvh,42px)!important}
 #r20MiniGame.r20-mg-tv[data-stage="countdown"] .r20-mg-stage-main > .r20-mg-instruction{font-size:clamp(15px,3dvh,22px)!important}
}
@media(max-width:760px){
 #r20MiniGame.r20-mg-tv .r20-mg-status-row{gap:5px;flex-wrap:wrap}
 #r20MiniGame.r20-mg-tv[data-stage="countdown"] .r20-mg-layout{padding-inline:9px!important}
 #r20MiniGame.r20-mg-tv[data-stage="round_leaderboard"] .ccc-between-rounds-grid{grid-template-columns:minmax(0,1fr)}
}
/* Player phones: protect controls and text from horizontal clipping without
   imposing TV layout rules or changing game-specific tap/choice designs. */
#r20MiniGame.r20-mg-phone{overflow-x:hidden}
#r20MiniGame.r20-mg-phone .r20-mg-layout{max-width:100%;min-width:0;box-sizing:border-box}
#r20MiniGame.r20-mg-phone :is(.r20-mg-head,.r20-mg-center,.r20-mg-stage-main,.r20-mg-phone-controls){
 min-width:0;max-width:100%;
}
#r20MiniGame.r20-mg-phone :is(.r20-mg-title,.r20-mg-subtitle,.r20-mg-instruction){
 overflow-wrap:anywhere;
}
#r20MiniGame.r20-mg-phone .r20-mg-ready-dock .r20-mg-ready-button{
 max-width:100%;
}

/* Bomb Pass Trivia: robust TV/phone gameplay regardless of optional bundle. */
#r20MiniGame[data-game="bomb_pass_trivia"] .r20-mg-stage-main:has(.ccc-bomb-pass-screen){
 width:min(1100px,98%)!important;max-width:1100px!important;
}
#r20MiniGame .ccc-bomb-pass-screen{
 display:flex;flex-direction:column;align-items:center;
 width:100%;max-width:100%;min-width:0;
 gap:clamp(7px,1.2dvh,15px);
 text-align:center;
}
#r20MiniGame .ccc-bomb-pass-round{font-size:clamp(13px,1.8dvh,20px);font-weight:900;color:#b9eaff;letter-spacing:.07em}
#r20MiniGame .ccc-bomb-pass-hero{
 display:flex;flex-wrap:wrap;align-items:center;justify-content:center;
 gap:clamp(9px,1.4vw,20px);max-width:100%;
}
#r20MiniGame .ccc-bomb-pass-icon{font-size:clamp(40px,8dvh,84px);line-height:1}
#r20MiniGame .ccc-bomb-pass-holder{font-weight:950;font-size:clamp(22px,3.8dvh,40px);line-height:1.14;color:#ffdf8f;overflow-wrap:anywhere}
#r20MiniGame .ccc-bomb-pass-question{
 font-size:clamp(22px,3.6dvh,38px);font-weight:900;
 line-height:1.2;color:#f2f9ff;text-wrap:balance;overflow-wrap:anywhere;
 width:min(100%,960px);margin:0;
}
#r20MiniGame .ccc-bomb-pass-choices{
 display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
 gap:clamp(7px,1.1dvh,13px);width:min(100%,980px);
}
#r20MiniGame .ccc-bomb-pass-choice{
 display:flex;gap:clamp(8px,1vw,16px);align-items:center;
 padding:clamp(11px,1.5dvh,17px);min-width:0;
 background:linear-gradient(130deg,#274b73,#26375e);
 border:2px solid #91bada;border-radius:15px;
 font:800 clamp(16px,2.2dvh,25px)/1.2 system-ui;
 color:#fff;text-align:left;
}
#r20MiniGame .ccc-bomb-pass-choice-letter{
 display:grid;place-items:center;flex:0 0 35px;width:35px;height:35px;
 background:#ffe19b;border-radius:8px;color:#243454;font-weight:1000;
}
#r20MiniGame .ccc-bomb-pass-choice-label{min-width:0;overflow-wrap:anywhere}
#r20MiniGame .ccc-bomb-pass-event{margin:0;font-size:clamp(14px,1.8dvh,19px);color:#c7e8ff;font-weight:700}
#r20MiniGame .ccc-bomb-pass-feedback{
 display:grid;gap:5px;width:min(100%,950px);padding:10px 15px;
 background:#244b55;border:2px solid #9de6c6;border-radius:12px;
 color:#e7fff7;font-size:clamp(15px,2dvh,22px);
}
#r20MiniGame .ccc-bomb-pass-feedback p{margin:0}
#r20MiniGame .ccc-bomb-pass-final-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:min(100%,820px)}
#r20MiniGame .ccc-bomb-pass-final-row{
 display:flex;justify-content:space-between;gap:10px;
 padding:10px 15px;border:1px solid #82b5d7;border-radius:10px;background:#254265;
}
#r20MiniGame.r20-mg-phone .ccc-bomb-pass-choices,
#r20MiniGame.r20-mg-phone .ccc-bomb-pass-final-grid{grid-template-columns:minmax(0,1fr)}
#r20MiniGame.r20-mg-phone .ccc-bomb-pass-icon{font-size:44px}
#r20MiniGame.r20-mg-phone .ccc-bomb-pass-holder{font-size:23px}
#r20MiniGame.r20-mg-phone .ccc-bomb-pass-question{font-size:22px}
#r20MiniGame.r20-mg-phone .ccc-bomb-pass-choice{min-height:61px;font-size:18px;cursor:pointer}
#r20MiniGame.r20-mg-phone .ccc-bomb-pass-choice:disabled{opacity:.65;cursor:default}
#r20MiniGame.r20-mg-phone .ccc-bomb-pass-choice:not(:disabled):active{background:#38658b}
@media(max-height:680px){
 #r20MiniGame.r20-mg-tv .ccc-bomb-pass-screen{gap:5px}
 #r20MiniGame.r20-mg-tv .ccc-bomb-pass-icon{font-size:42px}
 #r20MiniGame.r20-mg-tv .ccc-bomb-pass-question{font-size:clamp(19px,3.2dvh,28px)}
 #r20MiniGame.r20-mg-tv .ccc-bomb-pass-choice{padding:7px 10px}
}


/* Shared TV mini-game backdrop — match Critter Cascade's blue spotlight rays.
   Presentation-only: no changes to game components, layout or phone controls.
   Critter Cascade keeps its own existing, precisely tuned background. */
#r20MiniGame.r20-mg-tv:not([data-game="critter_cascade"]){
 background:
  repeating-conic-gradient(from 10deg at 50% 6%,#76d2ff0c 0deg 10deg,transparent 11deg 24deg),
  radial-gradient(ellipse at 51% 13%,#2575df 0%,transparent 48%),
  radial-gradient(circle at 9% 86%,#1a4db2 0%,transparent 34%),
  radial-gradient(circle at 90% 76%,#1d50b8 0%,transparent 39%),
  linear-gradient(145deg,#071943,#1047aa 49%,#081b55)!important;
}


/* Shared navy panel depth: leave bespoke game artwork and coloured option cards intact.
   Low-specificity fallback upgrades the default TV question/ready card only; game-specific
   background rules continue to win. */
:where(#r20MiniGame.r20-mg-tv) .r20-mg-stage-main{
 background:linear-gradient(165deg,#2a4771 0%,#192e52 50%,#101d3d 100%);
}

/* Cascade's lobby preview previously had its own brighter royal-blue outer canvas.
   Match other game previews' restrained navy treatment; preserve all its inner
   arcade board, bright four-step cards, typography, spacing and controls. */
#cccLobbyModePreview.ccc-cascade-mode-preview{
 background:linear-gradient(165deg,#294773 0%,#1b3156 48%,#0d1c3d 100%)!important;
}

/* Phone mini-games: match the TV's blue spotlight-ray canvas.
   Background only. Preserve every existing phone layout, artwork,
   button, answer, instruction and gameplay component. */
#r20MiniGame.r20-mg-phone{
 background:
  repeating-conic-gradient(from 10deg at 50% 6%,#76d2ff0c 0deg 10deg,transparent 11deg 24deg),
  radial-gradient(ellipse at 51% 13%,#2575df 0%,transparent 48%),
  radial-gradient(circle at 9% 86%,#1a4db2 0%,transparent 34%),
  radial-gradient(circle at 90% 76%,#1d50b8 0%,transparent 39%),
  linear-gradient(145deg,#071943,#1047aa 49%,#081b55)!important;
 background-attachment:fixed!important;
}

/* November 2026 Party QA — 960x540 host/TV result contract.
   Small television windows must show the final results and the entire action
   row together. Compress empty margins, not player names or score data. */
@media (min-width:761px) and (max-height:620px){
 #r20MiniGame.r20-mg-tv.r20-mg-champ-results:has(.ccc-party-encore) .r20-mg-layout{
  box-sizing:border-box!important;
  padding:clamp(42px,7.5dvh,50px) 8px 5px!important;
  gap:clamp(1px,.3dvh,4px)!important;
  min-height:100dvh!important;height:auto!important;max-height:none!important;
  justify-content:flex-start!important;
 }
 #r20MiniGame.r20-mg-tv.r20-mg-champ-results:has(.ccc-party-encore) .r20-mg-head{
  min-height:0!important;flex:0 0 auto!important;
  margin:0!important;padding:0!important;gap:1px!important;
 }
 #r20MiniGame.r20-mg-tv.r20-mg-champ-results:has(.ccc-party-encore) .r20-mg-center{
  flex:0 0 auto!important;min-height:0!important;height:auto!important;
  padding:0!important;margin:0!important;overflow:visible!important;
 }
 #r20MiniGame.r20-mg-tv.r20-mg-champ-results:has(.ccc-party-encore) .r20-mg-stage-main{
  box-sizing:border-box!important;flex:0 0 auto!important;
  min-height:0!important;height:auto!important;max-height:none!important;
  padding:3px 7px!important;margin:0 auto!important;
  gap:clamp(2px,.4dvh,5px)!important;
 }
 #r20MiniGame.r20-mg-tv.r20-mg-champ-results:has(.ccc-party-encore) .ccc-round-spotlight{
  min-height:38px!important;padding:3px 9px!important;gap:5px!important;
 }
 #r20MiniGame.r20-mg-tv.r20-mg-champ-results:has(.ccc-party-encore) .ccc-round-player{
  min-height:26px!important;padding:2px 6px!important;
  gap:5px!important;
 }
 #r20MiniGame.r20-mg-tv.r20-mg-champ-results:has(.ccc-party-encore) .ccc-round-players{
  gap:3px!important;
 }
 #r20MiniGame.r20-mg-tv.r20-mg-champ-results:has(.ccc-party-encore) .ccc-round-board{
  margin:0!important;gap:2px!important;
 }
 /* One compact, complete choice panel: title, optional game settings,
    then replay, selection, start and main menu on one readable row. */
 #r20MiniGame.r20-mg-tv .ccc-party-encore{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(0,1.15fr) minmax(0,1.35fr) minmax(0,1.2fr)!important;
  align-items:center!important;gap:3px 5px!important;
  width:min(100%,900px)!important;max-width:100%!important;
  padding:4px 7px!important;margin:3px auto 0!important;
  border-width:1px!important;
 }
 #r20MiniGame.r20-mg-tv .ccc-party-encore>h3{
  grid-column:1/-1!important;font-size:clamp(11px,1.8dvh,14px)!important;
  line-height:1.05!important;margin:0!important;
 }
 #r20MiniGame.r20-mg-tv .ccc-party-encore>.ccc-party-round-label:not([hidden]){
  grid-column:span 2!important;min-height:0!important;
  justify-content:center!important;font-size:11px!important;
 }
 #r20MiniGame.r20-mg-tv .ccc-party-encore>.ccc-party-again,
 #r20MiniGame.r20-mg-tv .ccc-party-encore>.ccc-party-menu{
  grid-column:auto!important;
 }
 #r20MiniGame.r20-mg-tv .ccc-party-encore :is(.r20-mg-button,.ccc-party-encore-select){
  box-sizing:border-box!important;
  min-height:30px!important;height:auto!important;
  padding:4px 5px!important;margin:0!important;
  font-size:clamp(10px,1.2vw,12px)!important;line-height:1.12!important;
  white-space:normal!important;
 }
 #r20MiniGame.r20-mg-tv .ccc-party-encore .ccc-party-menu{
  min-height:30px!important;padding:4px 5px!important;
  font-size:clamp(10px,1.2vw,12px)!important;
 }
 #r20MiniGame.r20-mg-tv[data-game="clue_camouflage"] .ccc-camo-final-summary{
  gap:1px!important;padding:3px 8px!important;
  font-size:clamp(11px,1.5dvh,13px)!important;
 }
 #r20MiniGame.r20-mg-tv[data-game="clue_camouflage"] .ccc-round-spotlight{
  grid-template-columns:31px minmax(0,1fr) auto!important;
  min-height:38px!important;padding:3px 6px!important;
 }
 #r20MiniGame.r20-mg-tv[data-game="clue_camouflage"] .ccc-round-lead-emoji{
  width:30px!important;height:30px!important;min-width:30px!important;font-size:23px!important;
 }
 #r20MiniGame.r20-mg-tv[data-game="clue_camouflage"] .ccc-round-player{
  min-height:29px!important;padding:3px 6px!important;
 }
 /* A 5-column gallery allows all ten drawings in two rows. Keep each
    drawing visible while leaving space for replay and return-to-menu. */
 #r20MiniGame.r20-mg-tv[data-game="picture_this"][data-stage="results"] .r20-mg-layout{
  padding:clamp(43px,7.5dvh,48px) 8px 6px!important;
 }
 #r20MiniGame.r20-mg-tv[data-game="picture_this"][data-stage="results"] .ccc-picture-gallery{
  gap:3px!important;margin:3px 0 0!important;padding:3px 0 0!important;
 }
 #r20MiniGame.r20-mg-tv[data-game="picture_this"][data-stage="results"] .ccc-picture-gallery-grid{
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  gap:3px 6px!important;
 }
 #r20MiniGame.r20-mg-tv[data-game="picture_this"][data-stage="results"] .ccc-picture-gallery-grid:has(>.ccc-picture-gallery-tile:nth-child(3):last-child){
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
 }
 #r20MiniGame.r20-mg-tv[data-game="picture_this"][data-stage="results"] .ccc-picture-gallery-grid:has(>.ccc-picture-gallery-tile:nth-child(4):last-child){
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
 }
 #r20MiniGame.r20-mg-tv[data-game="picture_this"][data-stage="results"] .ccc-picture-gallery-tile{
  padding:3px!important;gap:1px!important;
 }
 #r20MiniGame.r20-mg-tv[data-game="picture_this"][data-stage="results"] .ccc-picture-gallery-art{
  aspect-ratio:auto!important;height:clamp(58px,11dvh,70px)!important;
  min-height:0!important;
 }
 #r20MiniGame.r20-mg-tv[data-game="picture_this"][data-stage="results"] .ccc-picture-gallery-heading{
  font-size:clamp(15px,2.3dvh,20px)!important;margin:0!important;
 }
 #r20MiniGame.r20-mg-tv[data-game="picture_this"][data-stage="results"] .ccc-picture-gallery-player{
  font-size:clamp(10px,1.5dvh,13px)!important;min-height:0!important;
 }
 #r20MiniGame.r20-mg-tv[data-game="picture_this"][data-stage="results"] .ccc-picture-gallery-prompt{
  font-size:clamp(9px,1.3dvh,12px)!important;line-height:1.12!important;
 }
 #r20MiniGame.r20-mg-tv[data-game="picture_this"][data-stage="results"] .r20-mg-center>.ccc-party-encore{
  margin:4px auto 5px!important;
 }
}

/* Picture This Party finale on 720p/1080p hosts: use the available canvas,
   not an unbounded art gallery pushing replay controls off the television. */
@media (min-width:761px) and (min-height:621px){
 #r20MiniGame.r20-mg-tv[data-game="picture_this"][data-stage="results"] .r20-mg-layout{
  padding:clamp(49px,6.7dvh,72px) clamp(8px,1vw,16px) 7px!important;
  gap:clamp(3px,.6dvh,8px)!important;
  min-height:100dvh!important;height:auto!important;max-height:none!important;
 }
 #r20MiniGame.r20-mg-tv[data-game="picture_this"][data-stage="results"] .r20-mg-center,
 #r20MiniGame.r20-mg-tv[data-game="picture_this"][data-stage="results"] .r20-mg-stage-main.ccc-champ-round-screen{
  min-height:0!important;height:auto!important;max-height:none!important;
  flex:0 0 auto!important;gap:clamp(3px,.5dvh,7px)!important;
  margin:0 auto!important;
 }
 #r20MiniGame.r20-mg-tv[data-game="picture_this"][data-stage="results"] .r20-mg-head{
  margin:0!important;gap:2px!important;
 }
 #r20MiniGame.r20-mg-tv[data-game="picture_this"][data-stage="results"] .ccc-round-spotlight{
  min-height:clamp(38px,5dvh,57px)!important;padding:4px 10px!important;
 }
 #r20MiniGame.r20-mg-tv[data-game="picture_this"][data-stage="results"] .ccc-round-players{
  gap:clamp(3px,.5dvh,6px)!important;
 }
 #r20MiniGame.r20-mg-tv[data-game="picture_this"][data-stage="results"] .ccc-round-player{
  min-height:clamp(32px,5dvh,48px)!important;padding:3px 8px!important;
 }
 #r20MiniGame.r20-mg-tv[data-game="picture_this"][data-stage="results"] .ccc-picture-gallery{
  margin:clamp(4px,.7dvh,8px) 0 0!important;
  padding:clamp(4px,.7dvh,8px) 0 0!important;
  gap:clamp(3px,.6dvh,7px)!important;
 }
 #r20MiniGame.r20-mg-tv[data-game="picture_this"][data-stage="results"] .ccc-picture-gallery-heading{
  font-size:clamp(20px,2.9dvh,30px)!important;line-height:1.1!important;
  margin:0!important;
 }
 #r20MiniGame.r20-mg-tv[data-game="picture_this"][data-stage="results"] .ccc-picture-gallery-grid{
  gap:clamp(5px,.8vw,11px)!important;
 }
 #r20MiniGame.r20-mg-tv[data-game="picture_this"][data-stage="results"] .ccc-picture-gallery-tile{
  gap:3px!important;padding:clamp(4px,.6dvh,7px)!important;
 }
 #r20MiniGame.r20-mg-tv[data-game="picture_this"][data-stage="results"] .ccc-picture-gallery-art{
  height:clamp(85px,17dvh,160px)!important;
  aspect-ratio:auto!important;min-height:0!important;
 }
 #r20MiniGame.r20-mg-tv[data-game="picture_this"][data-stage="results"] .ccc-picture-gallery-grid:has(>.ccc-picture-gallery-tile:nth-child(6)) .ccc-picture-gallery-art{
  height:clamp(62px,10dvh,110px)!important;
 }
 #r20MiniGame.r20-mg-tv[data-game="picture_this"][data-stage="results"] .ccc-picture-gallery-player{
  font-size:clamp(12px,1.7dvh,17px)!important;
 }
 #r20MiniGame.r20-mg-tv[data-game="picture_this"][data-stage="results"] .ccc-picture-gallery-prompt{
  font-size:clamp(11px,1.4dvh,14px)!important;line-height:1.14!important;
 }
 #r20MiniGame.r20-mg-tv[data-game="picture_this"][data-stage="results"] .r20-mg-center>.ccc-party-encore{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(0,1.15fr) minmax(0,1.35fr) minmax(0,1.2fr)!important;
  gap:4px 7px!important;
  width:min(100%,1040px)!important;max-width:100%!important;
  margin:clamp(4px,.7dvh,8px) auto 5px!important;padding:6px 8px!important;
 }
 #r20MiniGame.r20-mg-tv[data-game="picture_this"][data-stage="results"] .ccc-party-encore>h3{
  grid-column:1/-1!important;font-size:clamp(13px,2dvh,19px)!important;margin:0!important;
 }
 #r20MiniGame.r20-mg-tv[data-game="picture_this"][data-stage="results"] .ccc-party-encore>.ccc-party-again,
 #r20MiniGame.r20-mg-tv[data-game="picture_this"][data-stage="results"] .ccc-party-encore>.ccc-party-menu{
  grid-column:auto!important;
 }
 #r20MiniGame.r20-mg-tv[data-game="picture_this"][data-stage="results"] .ccc-party-encore :is(.r20-mg-button,.ccc-party-encore-select){
  box-sizing:border-box!important;min-height:clamp(32px,4.5dvh,43px)!important;
  height:auto!important;padding:5px 7px!important;margin:0!important;
  font-size:clamp(11px,1.15vw,15px)!important;line-height:1.1!important;white-space:normal!important;
 }
}

/* Critical Party TV layout repair: Picture This result components MUST share
   one centered vertical column. No gallery or action card may become a
   side-by-side flex sibling. Applies to normal host and native fullscreen. */
#r20MiniGame.r20-mg-tv[data-game="picture_this"][data-stage="results"] .r20-mg-center.ccc-picture-final-center{
 box-sizing:border-box!important;
 display:flex!important;flex-direction:column!important;
 align-items:center!important;justify-content:flex-start!important;
 width:100%!important;min-width:0!important;max-width:100%!important;
 margin:0 auto!important;padding:0!important;
 height:auto!important;max-height:none!important;overflow:visible!important;
 transform:none!important;left:auto!important;right:auto!important;
}
#r20MiniGame.r20-mg-tv[data-game="picture_this"][data-stage="results"] .r20-mg-stage-main.ccc-picture-final-stack{
 box-sizing:border-box!important;position:relative!important;
 display:flex!important;flex-direction:column!important;
 align-items:stretch!important;justify-content:flex-start!important;
 width:100%!important;min-width:0!important;max-width:100%!important;
 height:auto!important;max-height:none!important;min-height:0!important;
 margin:0 auto!important;padding:clamp(3px,.5dvh,8px)!important;
 overflow:visible!important;transform:none!important;left:auto!important;right:auto!important;
}
#r20MiniGame.r20-mg-tv[data-game="picture_this"][data-stage="results"] .ccc-picture-final-stack > :is(.ccc-round-heading,.ccc-round-spotlight,.ccc-round-board,.ccc-picture-gallery,.ccc-party-encore){
 position:relative!important;left:auto!important;right:auto!important;
 transform:none!important;box-sizing:border-box!important;
 min-width:0!important;max-width:100%!important;
}
#r20MiniGame.r20-mg-tv[data-game="picture_this"][data-stage="results"] .ccc-picture-final-stack .ccc-round-board,
#r20MiniGame.r20-mg-tv[data-game="picture_this"][data-stage="results"] .ccc-picture-final-stack .ccc-picture-gallery{
 align-self:center!important;width:100%!important;max-width:100%!important;
 margin-left:auto!important;margin-right:auto!important;
}
#r20MiniGame.r20-mg-tv[data-game="picture_this"][data-stage="results"] .ccc-picture-gallery-grid{
 width:100%!important;max-width:100%!important;min-width:0!important;
 margin:0 auto!important;justify-content:center!important;
}
#r20MiniGame.r20-mg-tv[data-game="picture_this"][data-stage="results"] .ccc-picture-gallery-grid:has(>.ccc-picture-gallery-tile:nth-child(2):last-child){
 grid-template-columns:repeat(2,minmax(0,1fr))!important;
 max-width:min(100%,620px)!important;
}
#r20MiniGame.r20-mg-tv[data-game="picture_this"][data-stage="results"] .ccc-picture-gallery-grid:has(>.ccc-picture-gallery-tile:nth-child(3):last-child){
 grid-template-columns:repeat(3,minmax(0,1fr))!important;
 max-width:min(100%,930px)!important;
}
#r20MiniGame.r20-mg-tv[data-game="picture_this"][data-stage="results"] .ccc-picture-gallery-grid:has(>.ccc-picture-gallery-tile:nth-child(4):last-child){
 grid-template-columns:repeat(4,minmax(0,1fr))!important;
 max-width:min(100%,1200px)!important;
}
#r20MiniGame.r20-mg-tv[data-game="picture_this"][data-stage="results"] .ccc-picture-final-stack > .ccc-party-encore{
 position:relative!important;inset:auto!important;
 display:grid!important;align-self:center!important;
 width:min(100%,1040px)!important;max-width:100%!important;
 margin:clamp(5px,.8dvh,12px) auto 5px!important;
 padding:clamp(5px,.7dvh,9px)!important;
 flex:0 0 auto!important;float:none!important;clear:both!important;
}
@media(min-width:761px) and (max-height:820px){
 #r20MiniGame.r20-mg-tv[data-game="picture_this"][data-stage="results"] .ccc-picture-final-stack .ccc-picture-gallery-art{
  height:clamp(58px,10dvh,100px)!important;aspect-ratio:auto!important;
 }
 #r20MiniGame.r20-mg-tv[data-game="picture_this"][data-stage="results"] .ccc-picture-final-stack .ccc-picture-gallery{
  padding-top:2px!important;margin-top:2px!important;gap:3px!important;
 }
 #r20MiniGame.r20-mg-tv[data-game="picture_this"][data-stage="results"] .ccc-picture-final-stack .ccc-party-encore{
  margin-top:3px!important;margin-bottom:3px!important;
 }
}

/* Ten-player Picture This 720p finale. Show all ten names, points, art
   and replay actions without a hidden bottom row or sideways columns. */
@media(min-width:761px) and (min-height:621px) and (max-height:820px){
 #r20MiniGame.r20-mg-tv[data-game="picture_this"][data-stage="results"]:has(.ccc-picture-gallery-tile:nth-child(6)) .r20-mg-layout{
  padding:clamp(27px,4dvh,34px) clamp(7px,1vw,13px) 4px!important;
  gap:2px!important;
 }
 #r20MiniGame.r20-mg-tv[data-game="picture_this"][data-stage="results"]:has(.ccc-picture-gallery-tile:nth-child(6)) .ccc-picture-final-stack{
  gap:3px!important;padding:2px 7px!important;
 }
 #r20MiniGame.r20-mg-tv[data-game="picture_this"][data-stage="results"]:has(.ccc-picture-gallery-tile:nth-child(6)) .ccc-round-heading{
  gap:1px!important;margin:0!important;
 }
 #r20MiniGame.r20-mg-tv[data-game="picture_this"][data-stage="results"]:has(.ccc-picture-gallery-tile:nth-child(6)) .ccc-round-title{
  font-size:clamp(22px,3.4dvh,28px)!important;line-height:1.06!important;
 }
 #r20MiniGame.r20-mg-tv[data-game="picture_this"][data-stage="results"]:has(.ccc-picture-gallery-tile:nth-child(6)) .ccc-round-kicker{
  font-size:clamp(12px,1.8dvh,16px)!important;line-height:1.05!important;
 }
 #r20MiniGame.r20-mg-tv[data-game="picture_this"][data-stage="results"]:has(.ccc-picture-gallery-tile:nth-child(6)) .ccc-round-spotlight{
  min-height:35px!important;padding:3px 8px!important;border-width:1px!important;
 }
 #r20MiniGame.r20-mg-tv[data-game="picture_this"][data-stage="results"]:has(.ccc-picture-gallery-tile:nth-child(6)) .ccc-round-lead-emoji{
  font-size:24px!important;
 }
 #r20MiniGame.r20-mg-tv[data-game="picture_this"][data-stage="results"]:has(.ccc-picture-gallery-tile:nth-child(6)) .ccc-round-lead-name,
 #r20MiniGame.r20-mg-tv[data-game="picture_this"][data-stage="results"]:has(.ccc-picture-gallery-tile:nth-child(6)) .ccc-round-lead-bonus{
  font-size:clamp(16px,2.3dvh,21px)!important;
 }
 #r20MiniGame.r20-mg-tv[data-game="picture_this"][data-stage="results"]:has(.ccc-picture-gallery-tile:nth-child(6)) .ccc-round-board{
  gap:2px!important;
 }
 #r20MiniGame.r20-mg-tv[data-game="picture_this"][data-stage="results"]:has(.ccc-picture-gallery-tile:nth-child(6)) .ccc-round-board-title{
  font-size:clamp(15px,2.1dvh,20px)!important;line-height:1.05!important;
 }
 #r20MiniGame.r20-mg-tv[data-game="picture_this"][data-stage="results"]:has(.ccc-picture-gallery-tile:nth-child(6)) .ccc-round-players{
  gap:2px 6px!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
 }
 #r20MiniGame.r20-mg-tv[data-game="picture_this"][data-stage="results"]:has(.ccc-picture-gallery-tile:nth-child(6)) .ccc-round-player{
  min-height:27px!important;padding:2px 6px!important;gap:5px!important;
  border-radius:7px!important;
 }
 #r20MiniGame.r20-mg-tv[data-game="picture_this"][data-stage="results"]:has(.ccc-picture-gallery-tile:nth-child(6)) .ccc-round-avatar{
  width:22px!important;height:22px!important;flex-basis:22px!important;
  font-size:20px!important;max-width:22px!important;max-height:22px!important;
 }
 #r20MiniGame.r20-mg-tv[data-game="picture_this"][data-stage="results"]:has(.ccc-picture-gallery-tile:nth-child(6)) .ccc-round-place{
  font-size:16px!important;
 }
 #r20MiniGame.r20-mg-tv[data-game="picture_this"][data-stage="results"]:has(.ccc-picture-gallery-tile:nth-child(6)) .ccc-round-player-name{
  font-size:clamp(13px,1.8dvh,16px)!important;line-height:1.06!important;
 }
 #r20MiniGame.r20-mg-tv[data-game="picture_this"][data-stage="results"]:has(.ccc-picture-gallery-tile:nth-child(6)) .ccc-round-critter-label{
  display:none!important;
 }
 #r20MiniGame.r20-mg-tv[data-game="picture_this"][data-stage="results"]:has(.ccc-picture-gallery-tile:nth-child(6)) .ccc-round-total{
  font-size:clamp(14px,1.9dvh,17px)!important;
 }
 #r20MiniGame.r20-mg-tv[data-game="picture_this"][data-stage="results"]:has(.ccc-picture-gallery-tile:nth-child(6)) .ccc-round-gained{
  font-size:11px!important;
 }
 #r20MiniGame.r20-mg-tv[data-game="picture_this"][data-stage="results"]:has(.ccc-picture-gallery-tile:nth-child(6)) .ccc-picture-gallery{
  gap:2px!important;margin:2px 0 0!important;padding:2px 0 0!important;
 }
 #r20MiniGame.r20-mg-tv[data-game="picture_this"][data-stage="results"]:has(.ccc-picture-gallery-tile:nth-child(6)) .ccc-picture-gallery-heading{
  font-size:clamp(16px,2.2dvh,21px)!important;line-height:1.06!important;
 }
 #r20MiniGame.r20-mg-tv[data-game="picture_this"][data-stage="results"]:has(.ccc-picture-gallery-tile:nth-child(6)) .ccc-picture-gallery-grid{
  gap:3px 6px!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;
 }
 #r20MiniGame.r20-mg-tv[data-game="picture_this"][data-stage="results"]:has(.ccc-picture-gallery-tile:nth-child(6)) .ccc-picture-gallery-tile{
  padding:3px!important;gap:2px!important;border-radius:7px!important;
 }
 #r20MiniGame.r20-mg-tv[data-game="picture_this"][data-stage="results"]:has(.ccc-picture-gallery-tile:nth-child(6)) .ccc-picture-gallery-art{
  height:clamp(42px,7dvh,59px)!important;min-height:0!important;
  aspect-ratio:auto!important;
 }
 #r20MiniGame.r20-mg-tv[data-game="picture_this"][data-stage="results"]:has(.ccc-picture-gallery-tile:nth-child(6)) .ccc-picture-gallery-player{
  font-size:clamp(11px,1.55dvh,13px)!important;line-height:1.05!important;
 }
 #r20MiniGame.r20-mg-tv[data-game="picture_this"][data-stage="results"]:has(.ccc-picture-gallery-tile:nth-child(6)) .ccc-picture-gallery-prompt{
  font-size:clamp(10px,1.35dvh,12px)!important;line-height:1.1!important;
 }
 #r20MiniGame.r20-mg-tv[data-game="picture_this"][data-stage="results"]:has(.ccc-picture-gallery-tile:nth-child(6)) .ccc-picture-final-stack>.ccc-party-encore{
  gap:2px 4px!important;margin:3px auto 3px!important;padding:3px 6px!important;
 }
 #r20MiniGame.r20-mg-tv[data-game="picture_this"][data-stage="results"]:has(.ccc-picture-gallery-tile:nth-child(6)) .ccc-party-encore>h3{
  font-size:clamp(12px,1.6dvh,15px)!important;
 }
 #r20MiniGame.r20-mg-tv[data-game="picture_this"][data-stage="results"]:has(.ccc-picture-gallery-tile:nth-child(6)) .ccc-party-encore :is(.r20-mg-button,.ccc-party-encore-select){
  min-height:28px!important;padding:3px 5px!important;
  font-size:clamp(10px,1.3dvh,12px)!important;line-height:1.08!important;
 }
}


/* Short television results: keep the game title unobstructed by the fixed
   Fullscreen / Exit Party / Host Controls toolbar. The decorative eyebrow
   previously sat directly behind those controls at 960×540. */
@media (min-width:850px) and (max-height:620px){
 #r20MiniGame.r20-mg-tv[data-stage="results"]:not([data-game="temple_trouble"]) .r20-mg-eyebrow{
  display:none!important;
 }
 #r20MiniGame.r20-mg-tv[data-stage="results"]:not([data-game="temple_trouble"]) .r20-mg-head{
  padding-top:clamp(12px,2.8dvh,20px)!important;
 }
}


/* Short-TV Party finals: the score gallery may require scrolling when ten
   people play, but replay / next-game / exit must NEVER disappear below it.
   Keep one compact, reachable footer while the results content scrolls. */
@media (min-width:850px) and (max-height:620px){
 #r20MiniGame.r20-mg-tv.r20-mg-champ-results[data-stage="results"] .ccc-party-encore{
  position:fixed!important;
  left:50%!important;right:auto!important;bottom:7px!important;top:auto!important;
  transform:translateX(-50%)!important;
  width:min(940px,calc(100vw - 18px))!important;
  max-height:min(125px,34dvh)!important;
  margin:0!important;padding:5px 8px!important;
  box-sizing:border-box!important;overflow-y:auto!important;
  border:1px solid #81bde5!important;border-radius:12px!important;
  background:linear-gradient(145deg,#162e4af8,#122641fa)!important;
  box-shadow:0 5px 24px #04142dbb!important;
  z-index:400!important;
  gap:3px 5px!important;
 }
 #r20MiniGame.r20-mg-tv.r20-mg-champ-results[data-stage="results"] .ccc-party-encore>h3{
  margin:0!important;font-size:11px!important;line-height:1.1!important;
 }
 #r20MiniGame.r20-mg-tv.r20-mg-champ-results[data-stage="results"] .ccc-party-encore :is(button,select){
  min-height:28px!important;padding:3px 6px!important;
  font-size:clamp(10px,1.2dvh,12px)!important;
 }
 #r20MiniGame.r20-mg-tv.r20-mg-champ-results[data-stage="results"] .r20-mg-layout{
  padding-bottom:135px!important;
 }
}

/* Picture This previously forced the finale actions back into normal flow.
   On 540px TVs a ten-person art gallery makes those actions unreachable. */
@media (min-width:850px) and (max-height:620px){
 #r20MiniGame.r20-mg-tv.r20-mg-champ-results[data-game="picture_this"][data-stage="results"] .r20-mg-center > .ccc-party-encore{
  position:fixed!important;
  top:auto!important;right:auto!important;bottom:7px!important;left:50%!important;
  inset:auto auto 7px 50%!important;
  transform:translateX(-50%)!important;
  margin:0!important;
  width:min(940px,calc(100vw - 18px))!important;
  z-index:450!important;
 }
}


/* Shared responsive composition pass — 18 November 2026.
   Defensive sizing on all mini-game stage modes. Avoid universal overflow:hidden:
   it can conceal answers or required lock-in controls. */
#r20MiniGame:not([hidden]) {
  max-width:100dvw;
  box-sizing:border-box;
}
#r20MiniGame:not([hidden]) :is(
  .r20-mg-layout,.r20-mg-head,.r20-mg-center,.r20-mg-stage-main,
  .r20-mg-scores,.r20-mg-footer,.r20-mg-status-row
) {
  min-width:0;
  box-sizing:border-box;
}
#r20MiniGame:not([hidden]) :is(
  .r20-mg-layout,.r20-mg-head,.r20-mg-center,.r20-mg-stage-main
) {
  margin-inline:auto;
}
#r20MiniGame:not([hidden]) :is(
  .r20-mg-question,.r20-trivia-prompt,.r20-mg-spotlight,
  .r20-mg-instruction,.r20-mg-subtitle
) {
  max-width:100%;
  overflow-wrap:anywhere;
  text-wrap:balance;
}
#r20MiniGame:not([hidden]) :is(
  .r20-mg-center,.r20-mg-stage-main,.r20-mg-scores
) > :is(.r20-mg-score-row,.r20-mg-result-row) {
  box-sizing:border-box;
  min-width:0;
  max-width:100%;
}
#r20MiniGame.r20-mg-tv:not([hidden]) .r20-mg-layout {
  width:min(100%,1280px);
  max-width:calc(100dvw - 20px);
}
#r20MiniGame.r20-mg-tv:not([hidden]) .r20-mg-center {
  width:100%;
  justify-items:center;
}
/* Results and competitors: choose balanced columns based on actual child
   count rather than displaying empty slots for ten players in a small room. */
#r20MiniGame.r20-mg-tv:not([hidden]) :is(
  .ccc-round-players,.r20-party-leaderboard
) {
  min-width:0;
  max-width:100%;
  margin-inline:auto;
}
#r20MiniGame.r20-mg-tv:not([hidden]) .ccc-round-players {
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:clamp(4px,.7vw,10px);
  width:min(100%,1200px);
  justify-content:center;
}
#r20MiniGame.r20-mg-tv:not([hidden]) .ccc-round-players:not(:has(>:nth-child(9))) {
  grid-template-columns:repeat(4,minmax(0,1fr));
}
#r20MiniGame.r20-mg-tv:not([hidden]) .ccc-round-players:not(:has(>:nth-child(7))) {
  grid-template-columns:repeat(3,minmax(0,1fr));
  width:min(100%,960px);
}
#r20MiniGame.r20-mg-tv:not([hidden]) .ccc-round-players:not(:has(>:nth-child(5))) {
  grid-template-columns:repeat(2,minmax(0,1fr));
  width:min(100%,740px);
}
#r20MiniGame.r20-mg-tv:not([hidden]) .ccc-round-players:not(:has(>:nth-child(3))) {
  grid-template-columns:repeat(2,minmax(0,1fr));
  width:min(100%,620px);
}
#r20MiniGame.r20-mg-tv:not([hidden]) .ccc-round-players:not(:has(>:nth-child(2))) {
  grid-template-columns:minmax(0,1fr);
  width:min(100%,350px);
}
#r20MiniGame.r20-mg-tv:not([hidden]) .ccc-round-players > * {
  min-width:0;
  max-width:100%;
  box-sizing:border-box;
}
/* A tall phone and a short laptop cannot use identical columns. Keep
   all content available rather than cropping it beyond the viewport. */
@media(max-width:800px) {
 #r20MiniGame:not([hidden]) .r20-mg-layout {
   width:100%;
   max-width:100%;
   box-sizing:border-box;
 }
 #r20MiniGame:not([hidden]) :is(
   .r20-mg-center,.r20-mg-stage-main,.r20-mg-scores,.r20-mg-footer
 ) {
   min-width:0;
   max-width:100%;
 }
 #r20MiniGame.r20-mg-tv:not([hidden]) .ccc-round-players {
   grid-template-columns:repeat(2,minmax(0,1fr));
   width:100%;
 }
 #r20MiniGame.r20-mg-tv:not([hidden]) .ccc-round-players:not(:has(>:nth-child(2))) {
   grid-template-columns:minmax(0,1fr);
 }
}
@media (max-width:450px) {
 #r20MiniGame:not([hidden]) :is(button,[role="button"],input,select) {
   max-width:100%;
   box-sizing:border-box;
 }
 #r20MiniGame:not([hidden]) .r20-mg-title {
   max-width:100%;
   overflow-wrap:anywhere;
 }
}
