.selfie-undercover-secret{background:#223c70;border:2px solid #ffdb81;border-radius:15px;padding:.9rem;margin:.5rem auto;text-align:center;color:white}.selfie-undercover-secret strong{color:#ffe28a;font-size:.9rem;letter-spacing:.08em}.selfie-undercover-secret p{font-size:clamp(1.1rem,5vw,1.5rem);font-weight:900;margin:.5rem 0;line-height:1.25}.selfie-undercover-found{border-color:#ffcc70;box-shadow:0 0 0 3px #e4a73a66}.selfie-undercover-identity{background:#d09321;color:#13274a;font-weight:900;padding:.2rem .5rem;border-radius:8px}.selfie-undercover-reveal{font-size:clamp(1rem,2.5vw,1.5rem);font-weight:900;color:#ffe28a;margin:.5rem}.selfie-undercover-prompts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.6rem;font-weight:700;font-size:clamp(.8rem,1.8vw,1.05rem)}.selfie-undercover-prompts p{background:#21335b;border-radius:12px;padding:.65rem;margin:.1rem}@media(max-width:560px){.selfie-undercover-prompts{grid-template-columns:1fr}.selfie-undercover .face-off-grid{max-height:48vh}.selfie-undercover .face-off-prompt{margin:.2rem 0}} .selfie-undercover-ai-reaction{font-size:clamp(1.5rem,3.5vw,2.3rem);line-height:1.1;display:block}
/* Phone-first camera controls: the lock-in action remains on screen even on
   short iPhones and when the camera preview is showing. */
.r20-mg-phone .selfie-undercover-controls{display:flex;flex-direction:column;gap:7px;margin:6px auto;padding-bottom:calc(92px + env(safe-area-inset-bottom,0px))}
.r20-mg-phone .selfie-undercover-controls .face-off-camera{min-height:45px;padding:9px 12px;font-size:clamp(14px,3.8vw,18px)}
.r20-mg-phone .selfie-undercover-controls .face-off-confirm{
 position:fixed!important;left:50%;transform:translateX(-50%);
 bottom:calc(8px + env(safe-area-inset-bottom,0px));
 width:min(calc(100vw - 28px),590px);max-width:calc(100vw - 28px);
 min-height:clamp(52px,8vh,64px);z-index:10040;
 box-shadow:0 8px 25px #091b37c9;border:3px solid #9af1bc;
 background:#127a57;color:white;font-size:clamp(16px,4.6vw,21px);
}
.r20-mg-phone .selfie-undercover-controls .face-off-confirm:disabled{opacity:1;background:#425a70;border-color:#728ba4;color:#e3f0ff}
.r20-mg-phone .selfie-undercover-controls .face-off-preview{width:min(30vw,118px);height:min(30vw,118px);max-height:118px;object-fit:cover;margin:0 auto}
.r20-mg-phone .selfie-undercover-controls .face-off-skip{min-height:42px;padding:8px;font-size:14px}
.r20-mg-phone .selfie-undercover-secret{padding:9px 11px;margin:3px auto 6px}
.r20-mg-phone .selfie-undercover-secret p{font-size:clamp(16px,4vw,21px);margin:4px 0}
@media(max-height:700px){.r20-mg-phone .selfie-undercover-controls{gap:5px}.r20-mg-phone .selfie-undercover-secret{padding:7px}.r20-mg-phone .selfie-undercover-controls .face-off-preview{width:85px;height:85px}}

/* Selfie Undercover vote: show every participant and the voting buttons on
   mobile. Do not crop the grid to a fixed viewport height. */
#r20MiniGame.r20-mg-phone[data-game="selfie_undercover"][data-stage="vote"]{
 overflow-y:auto!important;-webkit-overflow-scrolling:touch;
}
#r20MiniGame.r20-mg-phone[data-game="selfie_undercover"][data-stage="vote"] .r20-mg-layout{
 height:auto!important;min-height:100dvh!important;max-height:none!important;
 overflow:visible!important;gap:7px!important;
 padding:8px 12px calc(20px + env(safe-area-inset-bottom,0px))!important;
}
#r20MiniGame.r20-mg-phone[data-game="selfie_undercover"][data-stage="vote"] .r20-mg-head{
 margin:0!important;padding:0!important;
}
#r20MiniGame.r20-mg-phone[data-game="selfie_undercover"][data-stage="vote"] .r20-mg-center{
 flex:0 0 auto!important;min-height:0!important;overflow:visible!important;
}
#r20MiniGame.r20-mg-phone[data-game="selfie_undercover"][data-stage="vote"] .r20-mg-stage-main{
 width:100%!important;min-height:0!important;max-height:none!important;
 overflow:visible!important;padding:5px!important;margin:0!important;
}
#r20MiniGame.r20-mg-phone[data-game="selfie_undercover"][data-stage="vote"] .selfie-undercover{
 width:100%!important;margin:0!important;
}
#r20MiniGame.r20-mg-phone[data-game="selfie_undercover"][data-stage="vote"] .face-off-prompt{
 font-size:clamp(18px,5vw,25px)!important;line-height:1.15!important;
 margin:3px 0!important;
}
#r20MiniGame.r20-mg-phone[data-game="selfie_undercover"][data-stage="vote"] .face-off-subtitle{
 font-size:clamp(12px,3.3vw,15px)!important;line-height:1.2!important;
 margin:2px auto 7px!important;
}
#r20MiniGame.r20-mg-phone[data-game="selfie_undercover"][data-stage="vote"] .face-off-grid{
 display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
 gap:7px!important;max-height:none!important;height:auto!important;
 overflow:visible!important;margin:4px auto 8px!important;
}
#r20MiniGame.r20-mg-phone[data-game="selfie_undercover"][data-stage="vote"] .face-off-card{
 min-width:0!important;min-height:0!important;gap:3px!important;
 padding:5px!important;border-radius:13px!important;overflow:hidden!important;
}
#r20MiniGame.r20-mg-phone[data-game="selfie_undercover"][data-stage="vote"] .face-off-photo,
#r20MiniGame.r20-mg-phone[data-game="selfie_undercover"][data-stage="vote"] .face-off-missing{
 display:block!important;width:100%!important;height:auto!important;
 aspect-ratio:1.25!important;max-height:clamp(95px,18dvh,175px)!important;
 object-fit:contain!important;border-radius:9px!important;
 background:#15243f!important;
}
#r20MiniGame.r20-mg-phone[data-game="selfie_undercover"][data-stage="vote"] .face-off-card>strong{
 font-size:clamp(13px,3.5vw,17px)!important;line-height:1.12!important;
 overflow-wrap:anywhere;
}
#r20MiniGame.r20-mg-phone[data-game="selfie_undercover"][data-stage="vote"] .selfie-undercover-ai-reaction{
 font-size:clamp(17px,4.6vw,24px)!important;line-height:1!important;
}
#r20MiniGame.r20-mg-phone[data-game="selfie_undercover"][data-stage="vote"] .r20-mg-phone-info{
 font-size:clamp(12px,3.2vw,15px)!important;line-height:1.3!important;
 margin:1px auto!important;
}
#r20MiniGame.r20-mg-phone[data-game="selfie_undercover"][data-stage="vote"] .r20-mg-phone-controls{
 display:block!important;width:100%!important;margin:0!important;
}
#r20MiniGame.r20-mg-phone[data-game="selfie_undercover"][data-stage="vote"] .face-off-choices{
 display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
 gap:8px!important;margin:5px auto 10px!important;
}
#r20MiniGame.r20-mg-phone[data-game="selfie_undercover"][data-stage="vote"] .face-off-choice{
 min-width:0!important;min-height:50px!important;padding:8px 5px!important;
 font-size:clamp(13px,3.7vw,17px)!important;line-height:1.2!important;
 overflow-wrap:anywhere!important;
}
#r20MiniGame.r20-mg-phone[data-game="selfie_undercover"][data-stage="vote"] .r20-mg-scores{display:none!important}

/* Selfie Undercover: do not crop 10 photos on the TV or the phone.
   Keep voting cards fully tappable; the phone may scroll naturally. */
#r20MiniGame.r20-mg-tv[data-game="selfie_undercover"][data-stage="vote"] .face-off-grid.face-off-many,
#r20MiniGame.r20-mg-tv[data-game="selfie_undercover"][data-stage="reveal"] .face-off-grid.face-off-many{
 grid-template-columns:repeat(5,minmax(0,1fr))!important;
 gap:clamp(5px,.75dvh,9px)!important;max-height:none!important;
 height:auto!important;overflow:visible!important;
}
#r20MiniGame.r20-mg-tv[data-game="selfie_undercover"] .face-off-grid.face-off-many .face-off-card{
 min-height:0!important;padding:clamp(3px,.5dvh,7px)!important;
 gap:3px!important;min-width:0!important;
}
#r20MiniGame.r20-mg-tv[data-game="selfie_undercover"] .face-off-grid.face-off-many .face-off-photo,
#r20MiniGame.r20-mg-tv[data-game="selfie_undercover"] .face-off-grid.face-off-many .face-off-missing{
 height:clamp(65px,13dvh,135px)!important;max-height:none!important;
 width:100%;object-fit:cover
}
#r20MiniGame.r20-mg-tv[data-game="selfie_undercover"] .face-off-grid.face-off-many strong{
 max-width:100%;font-size:clamp(11px,1.25vw,18px);
 white-space:nowrap;text-overflow:ellipsis;overflow:hidden
}
#r20MiniGame.r20-mg-phone[data-game="selfie_undercover"][data-stage="reveal"] .face-off-grid{
 max-height:none!important;height:auto!important;overflow:visible!important;
 grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important
}
@media(max-height:650px){
 #r20MiniGame.r20-mg-tv[data-game="selfie_undercover"] .face-off-grid.face-off-many .face-off-photo,
 #r20MiniGame.r20-mg-tv[data-game="selfie_undercover"] .face-off-grid.face-off-many .face-off-missing{
  height:clamp(54px,10dvh,85px)!important
 }
}


/* Single-surface portrait voting on phones: five compact rows for ten players.
   The TV carries the full gallery; the phone presents one interactive gallery,
   never another copy or a second name-only voting list. */
#r20MiniGame.r20-mg-phone[data-game="selfie_undercover"][data-stage="vote"] .r20-mg-center{
 display:none!important;
}
#r20MiniGame.r20-mg-phone[data-game="selfie_undercover"][data-stage="vote"] .r20-mg-layout{
 min-height:0!important;height:auto!important;max-height:none!important;
 gap:5px!important;padding:7px 10px calc(14px + env(safe-area-inset-bottom,0px))!important;
}
#r20MiniGame.r20-mg-phone[data-game="selfie_undercover"][data-stage="vote"] .r20-mg-phone-controls{
 display:flex!important;flex-direction:column!important;
 width:100%!important;min-width:0!important;gap:5px!important;
 padding:0!important;margin:0!important;overflow:visible!important;
}
#r20MiniGame.r20-mg-phone[data-game="selfie_undercover"][data-stage="vote"] .r20-mg-title{
 font-size:clamp(19px,5.2vw,26px)!important;
 line-height:1.05!important;margin:1px auto!important;text-align:center!important;
}
#r20MiniGame.r20-mg-phone[data-game="selfie_undercover"][data-stage="vote"] .r20-mg-subtitle{
 display:none!important;
}
#r20MiniGame.r20-mg-phone[data-game="selfie_undercover"][data-stage="vote"] .r20-mg-phone-info{
 font-size:clamp(12px,3.1vw,14px)!important;line-height:1.25!important;
 text-align:center!important;margin:1px 0 3px!important;
}
#r20MiniGame.r20-mg-phone[data-game="selfie_undercover"][data-stage="vote"] .selfie-undercover-vote-status{
 font-size:clamp(14px,3.6vw,17px)!important;font-weight:850!important;
 line-height:1.2!important;text-align:center!important;color:#fff0b9!important;
 margin:3px auto 5px!important;padding:0 3px!important;
}
#r20MiniGame.r20-mg-phone[data-game="selfie_undercover"][data-stage="vote"] .selfie-undercover-vote-grid{
 display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
 width:100%!important;gap:7px!important;align-items:stretch!important;
 height:auto!important;max-height:none!important;overflow:visible!important;
 margin:0 auto!important;
}
#r20MiniGame.r20-mg-phone[data-game="selfie_undercover"][data-stage="vote"] .selfie-undercover-vote-card{
 appearance:none;-webkit-appearance:none;box-sizing:border-box!important;
 display:flex!important;flex-direction:column!important;
 align-items:center!important;justify-content:flex-start!important;
 position:relative!important;width:100%!important;min-width:0!important;
 min-height:0!important;height:auto!important;gap:2px!important;
 padding:5px 5px 7px!important;border:2px solid #83b5ec!important;
 border-radius:14px!important;background:#263a69!important;
 color:#fff!important;opacity:1!important;cursor:pointer!important;
 box-shadow:0 3px 0 #132950!important;
 touch-action:manipulation;-webkit-tap-highlight-color:transparent;
}
#r20MiniGame.r20-mg-phone[data-game="selfie_undercover"][data-stage="vote"] .selfie-undercover-vote-card .face-off-photo,
#r20MiniGame.r20-mg-phone[data-game="selfie_undercover"][data-stage="vote"] .selfie-undercover-vote-card .face-off-missing{
 display:block!important;box-sizing:border-box!important;
 width:100%!important;height:clamp(75px,13dvh,115px)!important;
 max-height:115px!important;aspect-ratio:auto!important;
 object-fit:contain!important;border-radius:9px!important;
 background:#172746!important;margin:0!important;
}
#r20MiniGame.r20-mg-phone[data-game="selfie_undercover"][data-stage="vote"] .selfie-undercover-vote-card .selfie-undercover-card-name{
 display:block!important;font-size:clamp(12px,3.5vw,16px)!important;
 font-weight:900!important;line-height:1.15!important;
 width:100%!important;text-align:center!important;
 overflow-wrap:anywhere!important;margin-top:2px!important;
}
#r20MiniGame.r20-mg-phone[data-game="selfie_undercover"][data-stage="vote"] .selfie-undercover-vote-card .selfie-undercover-ai-reaction{
 font-size:17px!important;line-height:1!important;margin:0!important;
}
#r20MiniGame.r20-mg-phone[data-game="selfie_undercover"][data-stage="vote"] .selfie-undercover-vote-card.is-self{
 border-color:#7187a6!important;filter:saturate(.7)!important;
 cursor:not-allowed!important;
}
#r20MiniGame.r20-mg-phone[data-game="selfie_undercover"][data-stage="vote"] .selfie-undercover-card-tag{
 display:block;font-size:10px;line-height:1.15;font-weight:900;
 color:#f3e0af;text-align:center;
}
#r20MiniGame.r20-mg-phone[data-game="selfie_undercover"][data-stage="vote"] .selfie-undercover-vote-card.selfie-undercover-vote-selected{
 border-color:#ffdc77!important;background:#405a88!important;
 box-shadow:0 0 0 3px #ffdc777a,0 3px 0 #132950!important;
}
#r20MiniGame.r20-mg-phone[data-game="selfie_undercover"][data-stage="vote"] .selfie-undercover-vote-card:focus-visible{
 outline:3px solid #fff0a5!important;outline-offset:2px!important;
}
#r20MiniGame.r20-mg-phone[data-game="selfie_undercover"][data-stage="vote"] .r20-mg-scores,
#r20MiniGame.r20-mg-phone[data-game="selfie_undercover"][data-stage="vote"] .r20-mg-footer{
 display:none!important;
}
@media(max-width:360px){
 #r20MiniGame.r20-mg-phone[data-game="selfie_undercover"][data-stage="vote"] .selfie-undercover-vote-grid{gap:5px!important}
 #r20MiniGame.r20-mg-phone[data-game="selfie_undercover"][data-stage="vote"] .selfie-undercover-vote-card{padding:4px!important}
}


/* TV portrait-led voting layout: full ten-player 5x2 grid, with the existing
   shared game title serving as the only title. Keep portraits nearly square. */
#r20MiniGame.r20-mg-tv[data-game="selfie_undercover"][data-stage="vote"] .selfie-undercover{
 width:min(100%,1190px)!important;max-width:1190px!important;
 display:flex!important;flex-direction:column!important;
 align-items:center!important;gap:clamp(3px,.65dvh,8px)!important;
 margin:0 auto!important;
}
#r20MiniGame.r20-mg-tv[data-game="selfie_undercover"][data-stage="vote"] .face-off-prompt{
 font-size:clamp(24px,2.5vw,37px)!important;line-height:1.15!important;
 margin:0 auto clamp(2px,.5dvh,6px)!important;
}
#r20MiniGame.r20-mg-tv[data-game="selfie_undercover"][data-stage="vote"] .face-off-vote-progress{
 width:min(100%,740px)!important;margin:0 auto clamp(3px,.55dvh,7px)!important;
 padding:clamp(4px,.6dvh,8px) 10px!important;
 font-size:clamp(15px,1.4vw,20px)!important;
}
#r20MiniGame.r20-mg-tv[data-game="selfie_undercover"][data-stage="vote"] .face-off-grid{
 width:100%!important;max-width:1190px!important;
 grid-template-columns:repeat(5,minmax(0,1fr))!important;
 gap:clamp(6px,.7vw,11px)!important;
 margin:0 auto!important;max-height:none!important;overflow:visible!important;
 align-items:stretch!important;
}
#r20MiniGame.r20-mg-tv[data-game="selfie_undercover"][data-stage="vote"] .face-off-grid .face-off-card{
 box-sizing:border-box!important;min-width:0!important;min-height:0!important;
 padding:clamp(4px,.55dvh,8px)!important;
 gap:clamp(2px,.3dvh,5px)!important;border-radius:15px!important;
}
#r20MiniGame.r20-mg-tv[data-game="selfie_undercover"][data-stage="vote"] .face-off-grid .face-off-photo,
#r20MiniGame.r20-mg-tv[data-game="selfie_undercover"][data-stage="vote"] .face-off-grid .face-off-missing{
 display:block!important;box-sizing:border-box!important;
 width:100%!important;height:clamp(105px,18.5dvh,195px)!important;
 max-height:none!important;aspect-ratio:auto!important;
 object-fit:contain!important;object-position:center!important;
 margin:0!important;border-radius:11px!important;background:#192b48!important;
}
#r20MiniGame.r20-mg-tv[data-game="selfie_undercover"][data-stage="vote"] .face-off-grid .face-off-card>strong{
 max-width:100%!important;white-space:nowrap!important;
 text-overflow:ellipsis!important;overflow:hidden!important;
 font-size:clamp(13px,1.2vw,18px)!important;line-height:1.15!important;
}
#r20MiniGame.r20-mg-tv[data-game="selfie_undercover"][data-stage="vote"] .selfie-undercover-ai-reaction{
 font-size:clamp(17px,2.3dvh,24px)!important;line-height:1!important;
}
@media(max-height:750px){
 #r20MiniGame.r20-mg-tv[data-game="selfie_undercover"][data-stage="vote"] .face-off-grid .face-off-photo{
  height:clamp(78px,17dvh,135px)!important;
 }
 #r20MiniGame.r20-mg-tv[data-game="selfie_undercover"][data-stage="vote"] .face-off-prompt{
  font-size:clamp(21px,2.25vw,31px)!important;
 }
}
@media(max-height:570px){
 #r20MiniGame.r20-mg-tv[data-game="selfie_undercover"][data-stage="vote"] .face-off-grid .face-off-photo{
  height:clamp(65px,14dvh,100px)!important;
 }
 #r20MiniGame.r20-mg-tv[data-game="selfie_undercover"][data-stage="vote"] .face-off-grid{
  gap:4px!important;
 }
}

/* Selfie Undercover only: locally hosted comedy photos in example cards.
   No external stock portraits and no floating emoji overlays.
   Does not affect the actual photos submitted by players. */
.ccc-visual-party-preview[data-game="selfie_undercover"] .ccc-party-preview-photo-row .ccc-party-preview-photo-frame,
.readyFaceOffExample.ccc-selfie-ready-example .readyFaceOffPhotos .readyFaceOffSnapshot{
 position:relative!important;overflow:hidden!important;
 background-repeat:no-repeat!important;background-position:center 35%!important;
 background-size:cover!important;border-radius:16px!important;
}
.ccc-visual-party-preview[data-game="selfie_undercover"] .ccc-party-preview-photo-row .ccc-party-preview-photo-frame svg,
.readyFaceOffExample.ccc-selfie-ready-example .readyFaceOffPhotos .readyFaceOffSnapshot svg{display:none!important}
.ccc-visual-party-preview[data-game="selfie_undercover"] .ccc-party-preview-photo-row .ccc-party-preview-photo-frame::after,
.readyFaceOffExample.ccc-selfie-ready-example .readyFaceOffPhotos .readyFaceOffSnapshot::after{content:none!important;display:none!important}
.ccc-visual-party-preview[data-game="selfie_undercover"] .ccc-party-preview-photo-row .ccc-party-preview-photo:nth-child(1) .ccc-party-preview-photo-frame,
.readyFaceOffExample.ccc-selfie-ready-example .readyFaceOffPhotos .readyFaceOffPhotoCard:nth-child(1) .readyFaceOffSnapshot{
 background-image:url("/static/selfie-undercover-player-1.jpg")!important;
}
.ccc-visual-party-preview[data-game="selfie_undercover"] .ccc-party-preview-photo-row .ccc-party-preview-photo:nth-child(2) .ccc-party-preview-photo-frame,
.readyFaceOffExample.ccc-selfie-ready-example .readyFaceOffPhotos .readyFaceOffPhotoCard:nth-child(2) .readyFaceOffSnapshot{
 background-image:url("/static/selfie-undercover-player-2.jpg")!important;
}
.ccc-visual-party-preview[data-game="selfie_undercover"] .ccc-party-preview-photo-row .ccc-party-preview-photo:nth-child(3) .ccc-party-preview-photo-frame,
.readyFaceOffExample.ccc-selfie-ready-example .readyFaceOffPhotos .readyFaceOffPhotoCard:nth-child(3) .readyFaceOffSnapshot{
 background-image:url("/static/selfie-undercover-player-3.jpg")!important;
}
.ccc-visual-party-preview[data-game="selfie_undercover"] .ccc-party-preview-photo-row .ccc-party-preview-photo,
.readyFaceOffExample.ccc-selfie-ready-example .readyFaceOffPhotos .readyFaceOffPhotoCard{
 border-radius:19px!important;box-shadow:0 8px 20px #061b42ad;overflow:hidden;
}
.ccc-visual-party-preview[data-game="selfie_undercover"] .ccc-party-preview-photo-row .ccc-party-preview-photo:nth-child(1),
.readyFaceOffExample.ccc-selfie-ready-example .readyFaceOffPhotos .readyFaceOffPhotoCard:nth-child(1){
 border:2px solid #8cddff!important;
}
.ccc-visual-party-preview[data-game="selfie_undercover"] .ccc-party-preview-photo-row .ccc-party-preview-photo:nth-child(2),
.readyFaceOffExample.ccc-selfie-ready-example .readyFaceOffPhotos .readyFaceOffPhotoCard:nth-child(2){
 border:2px solid #c89cfa!important;
}
.ccc-visual-party-preview[data-game="selfie_undercover"] .ccc-party-preview-photo-row .ccc-party-preview-photo:nth-child(3),
.readyFaceOffExample.ccc-selfie-ready-example .readyFaceOffPhotos .readyFaceOffPhotoCard:nth-child(3){
 border:2px dashed #ffc56f!important;
}
.readyFaceOffExample.ccc-selfie-ready-example .readyFaceOffPhotos .readyFaceOffSnapshot{aspect-ratio:1.55;min-height:100px}
.readyFaceOffExample.ccc-selfie-ready-example .readyFaceOffPhotos .readyFaceOffPhotoName{color:#fff!important;text-shadow:0 2px 4px #08203b}
@media(max-width:600px){.readyFaceOffExample.ccc-selfie-ready-example .readyFaceOffPhotos .readyFaceOffSnapshot{min-height:76px}}

/* Centre Selfie Undercover TV portraits for every player count.
   The previous fixed five-column grid left groups of 3–4 aligned left. */
#r20MiniGame.r20-mg-tv[data-game="selfie_undercover"][data-stage="vote"] .face-off-grid,
#r20MiniGame.r20-mg-tv[data-game="selfie_undercover"][data-stage="reveal"] .face-off-grid {
 display:flex!important;
 flex-wrap:wrap!important;
 justify-content:center!important;
 align-content:center!important;
 align-items:stretch!important;
 gap:clamp(6px,.7vw,11px)!important;
 width:100%!important;
 max-width:1190px!important;
 margin-inline:auto!important;
}
#r20MiniGame.r20-mg-tv[data-game="selfie_undercover"][data-stage="vote"] .face-off-grid > .face-off-card,
#r20MiniGame.r20-mg-tv[data-game="selfie_undercover"][data-stage="reveal"] .face-off-grid > .face-off-card {
 flex:0 0 calc((100% - 44px)/5)!important;
 width:calc((100% - 44px)/5)!important;
 max-width:232px!important;
 min-width:0!important;
}
@media(max-width:700px) {
 #r20MiniGame.r20-mg-tv[data-game="selfie_undercover"][data-stage="vote"] .face-off-grid > .face-off-card,
 #r20MiniGame.r20-mg-tv[data-game="selfie_undercover"][data-stage="reveal"] .face-off-grid > .face-off-card {
  flex-basis:calc((100% - 22px)/3)!important;
  width:calc((100% - 22px)/3)!important;
 }
}

/* 2026-11-13: Face-safe photos on the TV vote and reveal boards.
   The old shared "face-off-many" rule used object-fit:cover and cropped
   foreheads/chins. Keep every complete selfie inside its frame, including
   ten-player 5x2 layouts, without expanding the total scoreboard height. */
#r20MiniGame.r20-mg-tv[data-game="selfie_undercover"][data-stage="vote"] .face-off-grid .face-off-card > img.face-off-photo,
#r20MiniGame.r20-mg-tv[data-game="selfie_undercover"][data-stage="reveal"] .face-off-grid .face-off-card > img.face-off-photo{
 display:block!important;
 width:100%!important;
 height:clamp(100px,16.8dvh,176px)!important;
 max-height:none!important;
 min-height:0!important;
 aspect-ratio:auto!important;
 object-fit:contain!important;
 object-position:center center!important;
 background:#192b48!important;
 border-radius:11px!important;
 flex-shrink:1!important;
}
#r20MiniGame.r20-mg-tv[data-game="selfie_undercover"][data-stage="reveal"] .face-off-grid .face-off-card{
 gap:3px!important;
 padding:clamp(4px,.5dvh,7px)!important;
}
@media(max-height:750px){
 #r20MiniGame.r20-mg-tv[data-game="selfie_undercover"][data-stage="vote"] .face-off-grid .face-off-card > img.face-off-photo,
 #r20MiniGame.r20-mg-tv[data-game="selfie_undercover"][data-stage="reveal"] .face-off-grid .face-off-card > img.face-off-photo{
  height:clamp(72px,15.5dvh,126px)!important;
 }
}
@media(max-height:570px){
 #r20MiniGame.r20-mg-tv[data-game="selfie_undercover"][data-stage="vote"] .face-off-grid .face-off-card > img.face-off-photo,
 #r20MiniGame.r20-mg-tv[data-game="selfie_undercover"][data-stage="reveal"] .face-off-grid .face-off-card > img.face-off-photo{
  height:clamp(58px,13.5dvh,90px)!important;
 }
}
