/* Animal Showdown TV reveal polish, preserving four distinct answer colours. */
#r20MiniGame.r20-mg-tv[data-game="animal_showdown"][data-stage="reveal"] .ccc-quiz-stage{
 width:min(1110px,96%)!important;
 max-width:1110px!important;
 min-height:0!important;max-height:none!important;
 gap:clamp(6px,.85vh,11px)!important;
 padding:clamp(8px,1.2vh,14px)!important;
 box-sizing:border-box!important;
}
#r20MiniGame.r20-mg-tv[data-game="animal_showdown"][data-stage="reveal"] .animalRevealQuestion{
 font-size:clamp(17px,2.25vh,25px);
 line-height:1.2;font-weight:800;color:#d9e9ff;
 text-align:center;text-wrap:balance;max-width:980px;
 margin:0 auto;
}
#r20MiniGame.r20-mg-tv[data-game="animal_showdown"][data-stage="reveal"] .animalRevealAnswer{
 font-size:clamp(25px,3.4vh,41px)!important;line-height:1.15!important;
 margin:0 auto!important;color:#ffe6a6;text-wrap:balance;
}
#r20MiniGame.r20-mg-tv[data-game="animal_showdown"][data-stage="reveal"] .ccc-quiz-tv-options.trueClaims{
 display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;
 gap:clamp(8px,.8vw,14px)!important;width:100%!important;
 max-width:100%!important;margin:3px auto!important;
}
#r20MiniGame.r20-mg-tv[data-game="animal_showdown"][data-stage="reveal"] .ccc-quiz-tv-options.trueClaims>.ccc-quiz-tv-option{
 min-width:0!important;min-height:clamp(138px,22vh,220px)!important;
 height:auto!important;max-height:230px!important;
 padding:clamp(7px,1vh,12px)!important;
 gap:clamp(5px,.65vh,8px)!important;
 display:flex!important;flex-direction:column!important;
 justify-content:center!important;align-items:center!important;
}
#r20MiniGame.r20-mg-tv[data-game="animal_showdown"][data-stage="reveal"] .ccc-quiz-tv-options.trueClaims>.ccc-quiz-tv-option strong{
 font-size:clamp(16px,2.3vh,27px)!important;
 line-height:1.14!important;text-align:center;
 overflow-wrap:anywhere;
}
#r20MiniGame.r20-mg-tv[data-game="animal_showdown"][data-stage="reveal"] .ccc-quiz-explanation{
 font-size:clamp(13px,1.8vh,17px)!important;
 line-height:1.2!important;margin:2px auto!important;
}
#r20MiniGame.r20-mg-tv[data-game="animal_showdown"][data-stage="reveal"] .ccc-quiz-round-scores{
 display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
 gap:7px!important;width:100%!important;max-width:100%!important;
 margin:6px auto 0!important;
}
#r20MiniGame.r20-mg-tv[data-game="animal_showdown"][data-stage="reveal"] .animalRevealPlayer{
 box-sizing:border-box!important;display:grid!important;
 grid-template-columns:minmax(0,1fr) auto!important;
 grid-template-rows:auto auto!important;
 gap:clamp(2px,.3vh,5px) 12px!important;
 min-width:0!important;min-height:67px!important;
 padding:8px 12px!important;align-items:center!important;
 text-align:left!important;border:1px solid #718fb5!important;
 background:linear-gradient(120deg,#234770,#233b63)!important;
 border-radius:12px!important;
}
#r20MiniGame.r20-mg-tv[data-game="animal_showdown"][data-stage="reveal"] .animalRevealIdentity{
 min-width:0!important;display:flex;align-items:center;gap:8px;
}
#r20MiniGame.r20-mg-tv[data-game="animal_showdown"][data-stage="reveal"] .animalRevealName{
 font-size:clamp(14px,1.6vh,19px)!important;font-weight:900;color:#fff!important;
 overflow-wrap:anywhere;
}
#r20MiniGame.r20-mg-tv[data-game="animal_showdown"][data-stage="reveal"] .animalRevealPoints{
 font-size:clamp(16px,1.9vh,21px)!important;color:#8ff0c1!important;
 text-align:right;white-space:nowrap;
}
#r20MiniGame.r20-mg-tv[data-game="animal_showdown"][data-stage="reveal"] .animalRevealPoints.miss{
 color:#c7d2e5!important;
}
#r20MiniGame.r20-mg-tv[data-game="animal_showdown"][data-stage="reveal"] .animalRevealChoice{
 grid-column:1!important;font-size:clamp(12px,1.45vh,17px)!important;
 line-height:1.15!important;color:#d9e6fa!important;
 overflow-wrap:anywhere;
}
#r20MiniGame.r20-mg-tv[data-game="animal_showdown"][data-stage="reveal"] .animalRevealTime{
 grid-column:2!important;font-size:clamp(12px,1.5vh,17px)!important;
 line-height:1.15!important;color:#e7d9ac!important;
 font-variant-numeric:tabular-nums;white-space:nowrap;text-align:right;
}
@media(max-height:760px){
 #r20MiniGame.r20-mg-tv[data-game="animal_showdown"][data-stage="reveal"] .ccc-quiz-stage{gap:4px!important;padding:6px 9px!important}
 #r20MiniGame.r20-mg-tv[data-game="animal_showdown"][data-stage="reveal"] .ccc-quiz-tv-options.trueClaims>.ccc-quiz-tv-option{min-height:105px!important;max-height:155px!important}
 #r20MiniGame.r20-mg-tv[data-game="animal_showdown"][data-stage="reveal"] .animalRevealPlayer{min-height:55px!important;padding:5px 9px!important;gap:2px 8px!important}
}
@media(max-width:850px){
 #r20MiniGame.r20-mg-tv[data-game="animal_showdown"][data-stage="reveal"] .animalRevealPlayer{grid-template-columns:minmax(0,1fr) auto!important}
 #r20MiniGame.r20-mg-tv[data-game="animal_showdown"][data-stage="reveal"] .ccc-quiz-tv-options.trueClaims{gap:5px!important}
}

/* Override the legacy fullscreen 31vh tall answer cards specifically on reveal. */
#app:fullscreen #r20MiniGame.r20-mg-tv[data-game="animal_showdown"][data-stage="reveal"] .ccc-quiz-stage{
 min-height:0!important;max-height:none!important;justify-content:flex-start!important;
}
#app:fullscreen #r20MiniGame.r20-mg-tv[data-game="animal_showdown"][data-stage="reveal"] .ccc-quiz-tv-options.trueClaims>.ccc-quiz-tv-option{
 min-height:clamp(120px,22dvh,215px)!important;
 max-height:230px!important;padding:clamp(7px,1vh,12px)!important;
}
@media(max-height:760px){
 #app:fullscreen #r20MiniGame.r20-mg-tv[data-game="animal_showdown"][data-stage="reveal"] .ccc-quiz-tv-options.trueClaims>.ccc-quiz-tv-option{
 min-height:105px!important;max-height:155px!important;
 }
}


/* 2026-11-10: Never crop result rows behind a short TV viewport.
   The reveal is intrinsically sized; the outer game viewport owns scrolling.
   Applies to the common quiz/result templates, not phone gameplay controls. */
#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;
  justify-content:flex-start!important;
  padding-bottom:clamp(18px,3dvh,42px)!important;
  box-sizing:border-box!important;
}
#r20MiniGame.r20-mg-tv:is([data-stage="reveal"],[data-stage="results"]) :is(.r20-mg-center,.r20-mg-stage-main,.ccc-quiz-stage){
  min-height:0!important;
  height:auto!important;
  max-height:none!important;
  overflow:visible!important;
  flex-shrink:0!important;
  box-sizing:border-box!important;
}
#r20MiniGame.r20-mg-tv:is([data-stage="reveal"],[data-stage="results"]) :is(.ccc-quiz-round-scores,.r20-mg-scores,.r20-mg-round-standings){
  max-height:none!important;
  min-width:0;
  box-sizing:border-box;
}
#r20MiniGame.r20-mg-tv[data-game="animal_showdown"][data-stage="reveal"] .ccc-quiz-round-scores{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
}
#r20MiniGame.r20-mg-tv[data-game="animal_showdown"][data-stage="reveal"] .animalRevealPlayer{
  min-width:0!important;
  max-width:100%!important;
}
#r20MiniGame.r20-mg-tv[data-game="animal_showdown"][data-stage="reveal"] .animalRevealIdentity{
  min-width:0!important;
}
@media(max-width:900px){
 #r20MiniGame.r20-mg-tv[data-game="animal_showdown"][data-stage="reveal"] .ccc-quiz-round-scores{
  grid-template-columns:minmax(0,1fr)!important;
 }
 #r20MiniGame.r20-mg-tv[data-game="animal_showdown"][data-stage="reveal"] .animalRevealPoints{
  font-size:clamp(14px,2.2vw,20px)!important;
 }
}
@media(max-height:600px){
 #r20MiniGame.r20-mg-tv:is([data-stage="reveal"],[data-stage="results"]) .r20-mg-layout{
  gap:4px!important;padding-top:5px!important;padding-bottom:16px!important;
 }
 #r20MiniGame.r20-mg-tv[data-game="animal_showdown"][data-stage="reveal"] .animalRevealPlayer{
  min-height:0!important;padding:5px 9px!important;
 }
}


/* Animal Showdown: centre the shared 3-2-1 opening against the actual
   fullscreen viewport, not the narrower quiz content column. */
#r20MiniGame.r20-mg-tv[data-game="animal_showdown"][data-stage="countdown"] .ccc-party-start-stage{
  position:fixed!important;
  top:clamp(64px,8dvh,90px)!important;
  right:0!important;
  bottom:0!important;
  left:0!important;
  width:100vw!important;
  height:auto!important;
  max-width:none!important;
  margin:0!important;
  padding:clamp(12px,2dvw,30px)!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  box-sizing:border-box!important;
  pointer-events:none;
}
#r20MiniGame.r20-mg-tv[data-game="animal_showdown"][data-stage="countdown"] .ccc-party-start-panel{
  width:min(100%,1260px)!important;
  margin:0 auto!important;
  pointer-events:auto;
}
