/* Critter Coin Chase release presentation safeguards.
   One result at a time; permanent player labels remain visible. */

/* The board-only player panel is a live scoreboard, not a transient toast.
   Make names legible beside every animal even at 720p and high zoom. */
body.tv.board-only #raceShowcaseScore .scoreIdentity{
 display:flex!important;align-items:center;flex:1 1 auto;min-width:0;
}
body.tv.board-only #raceShowcaseScore .scoreName{
 display:block!important;visibility:visible!important;opacity:1!important;
 color:#fffdf5!important;font-weight:1000!important;
 font-size:clamp(17px,1.4vw,23px)!important;line-height:1.17;
 min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
 text-shadow:0 1px 3px #07172f;
}
body.tv.board-only #raceShowcaseScore .scoreCoins{
 color:#ffe49b!important;font-weight:1000!important;
 font-variant-numeric:tabular-nums;
}

/* Dedicated result notices own the screen for their short reveal window.
   Suppress stale turn, activity and card toasts behind the ONE result. */
body.tv.ccc-space-result-active #raceTurnIntro,
body.tv.ccc-space-result-active #partyMoment,
body.tv.ccc-space-result-active #tvLandingBanner,
body.tv.ccc-space-result-active #cccPublicHeadline{
 opacity:0!important;visibility:hidden!important;
 pointer-events:none!important;
}

/* The reward/result is readable from a living room sofa, even on 720p. */
body.tv .ccc-space-tv-event{
 z-index:400!important;width:min(770px,89vw)!important;
 max-height:82dvh;overflow:hidden;
 border-width:3px;
 padding:clamp(15px,2.1vh,25px) clamp(16px,2vw,29px);
 background:linear-gradient(145deg,#203b61f5,#293d6bf7);
}
body.tv .ccc-space-tv-event .ccc-space-tv-title{
 font-size:clamp(25px,3.7vh,45px);line-height:1.13;
 text-wrap:balance;
}
body.tv .ccc-space-tv-event .ccc-space-tv-description{
 font-size:clamp(20px,2.8vh,32px);line-height:1.25;
}
body.tv .ccc-space-tv-event .ccc-space-tv-result-die{
 font-size:clamp(17px,2.2vh,26px);
}

/* Keep the dice outcome one clear panel, even after the pending command ends. */
body.tv .ccc-space-odd-dice-overlay{
 z-index:400!important;max-height:85dvh;overflow:hidden;
 width:min(650px,86vw);padding:clamp(14px,2vh,24px);
}
body.tv .ccc-space-odd-dice-overlay .ccc-space-odd-result{
 font-size:clamp(21px,3vh,32px);line-height:1.22;
}

/* Narrow TV/laptop browsers must not hide the names or coins. */
@media(max-width:820px){
 body.tv.board-only #raceShowcaseScore{width:min(335px,51vw)!important}
 body.tv.board-only #raceShowcaseScore .scoreName{
  font-size:clamp(14px,2.25vw,19px)!important;
 }
 body.tv.board-only #raceShowcaseScore .scoreCoins{
  font-size:clamp(13px,2.1vw,19px)!important;
 }
}
@media(prefers-reduced-motion:reduce){
 body.tv .ccc-space-tv-event{transition:none!important}
}


/* Detective Dash: sofa-readable evidence and suspect line-up, TV and fullscreen. */
#r20MiniGame.r20-mg-tv:has(.detectiveCase) .r20-mg-layout{
 justify-content:flex-start;
}
#r20MiniGame.r20-mg-tv:has(.detectiveCase) .r20-mg-center{
 margin-top:clamp(12px,3dvh,32px)!important;
 margin-bottom:auto!important;
 min-height:0!important;
 flex:0 1 auto!important;
}
#r20MiniGame.r20-mg-tv .detectiveCase{
 width:min(100%,1100px);
 margin-inline:auto;
}
#r20MiniGame.r20-mg-tv .detectiveCase .r20-trivia-prompt{
 font-size:clamp(29px,4.5vw,60px);
 line-height:1.06;
 margin:6px auto 7px;
}
#r20MiniGame.r20-mg-tv .detectiveCase .r20-sort-note{
 font-size:clamp(16px,1.65vw,23px);
 margin:2px auto 10px;
}
#r20MiniGame .detectiveClues{
 display:flex;justify-content:center;flex-wrap:wrap;
 gap:clamp(7px,1vw,14px);margin:9px auto 13px;
}
#r20MiniGame .detectiveClue{
 display:inline-flex;align-items:center;justify-content:center;
 min-height:38px;gap:6px;padding:7px 13px;
 border:1px solid #c5a26a;border-radius:100px;
 background:#142844;color:#ffe2a2;
 font-size:clamp(14px,1.6vw,23px);font-weight:850;
 box-shadow:0 3px 10px #0003;
}
#r20MiniGame.r20-mg-tv .detectiveCards{
 width:min(100%,1070px);
 gap:clamp(8px,1.3vw,17px);margin:10px auto;
}
#r20MiniGame .detectiveCard{
 border-radius:15px!important;
 padding:clamp(9px,1.1vw,16px)!important;
 gap:7px!important;
}
#r20MiniGame.r20-mg-tv .detectiveCard img{
 width:clamp(54px,6.9vw,96px);max-height:12dvh;
}
#r20MiniGame .detectiveCard strong{
 font-size:clamp(16px,1.9vw,26px);
 line-height:1.1;
}
#r20MiniGame .detectiveTraits{
 display:grid;justify-items:center;gap:4px;width:100%;
}
#r20MiniGame .detectiveTrait{
 color:#dceafa;font-weight:750;
 font-size:clamp(12px,1.25vw,19px);
 line-height:1.2;text-align:center;
}
#r20MiniGame .detectiveLockedCount{
 text-align:center;font-size:clamp(14px,1.5vw,21px);
 color:#b8d8ee;font-weight:800;margin:12px auto 0;
}
#r20MiniGame.r20-mg-tv:has(.detectiveCase) .r20-mg-timer{
 font-size:clamp(16px,2.1vw,26px)!important;
 font-weight:900!important;
 border:1px solid #f9d786;
}
@media(max-width:750px){
 #r20MiniGame .detectiveCards{grid-template-columns:repeat(2,minmax(0,1fr));}
 #r20MiniGame .detectiveCard img{width:50px;max-height:70px;}
 #r20MiniGame .detectiveCard strong{font-size:16px;}
 #r20MiniGame .detectiveTrait{font-size:13px;}
 #r20MiniGame.r20-mg-tv .detectiveCase .r20-trivia-prompt{font-size:clamp(24px,5vw,36px);}
}
@media(max-height:700px) and (min-width:751px){
 #r20MiniGame.r20-mg-tv:has(.detectiveCase) .r20-mg-center{margin-top:4px!important;}
 #r20MiniGame.r20-mg-tv .detectiveCard img{width:clamp(42px,5vw,68px);}
 #r20MiniGame .detectiveCard{padding:7px!important;gap:4px!important;}
 #r20MiniGame .detectiveClues{margin:4px auto 7px;}
}
