/* Reference video 6(1).mp4: 10 actual places, receiver gift totals and clear chat.
   Scope is strictly the existing LIVE room when sceneMode=game10. */
html body.in-live-room #lov-studio-v2[data-scene-mode="game10"] #lov-main-stage #lov-scene-tiles{
 display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;
 grid-template-rows:minmax(0,1.16fr) minmax(0,1fr)!important;
 gap:3px!important;padding:2px!important;min-width:0;min-height:0;
 align-items:stretch!important;overflow:hidden!important;
}
html body.in-live-room #lov-studio-v2[data-scene-mode="game10"] #lov-main-stage :is(#lov-seats-slot,#lov-seats-slot>.card,#room-tiles,#speaker-grid){
 display:contents!important;
}
html body.in-live-room #lov-studio-v2[data-scene-mode="game10"] #lov-main-stage #speaker-grid > :is(.room-tile,.lov-mode-vacancy){
 position:relative!important;grid-column:var(--lov-slot-col)/span var(--lov-slot-col-span,1)!important;
 grid-row:var(--lov-slot-row)/span var(--lov-slot-row-span,1)!important;
 order:var(--lov-slot-order)!important;display:block!important;
 width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;
 max-width:none!important;max-height:none!important;
 padding:0!important;margin:0!important;overflow:hidden!important;
 border-radius:5px!important;border:1px solid #ffffff38!important;
 box-shadow:inset 0 0 0 1px #ffffff16!important;background:#0d203bcc!important;
}
html body.in-live-room #lov-studio-v2[data-scene-mode="game10"] #speaker-grid>.lov-host-tile{
 border:2px solid #ebc567!important;box-shadow:inset 0 0 0 1px #f5da9f88,0 0 16px #f5c36844!important;
 background:#152a40!important;
}
html body.in-live-room #lov-studio-v2[data-scene-mode="game10"] #speaker-grid>.lov-mode-vacancy{
 display:flex!important;flex-direction:column!important;align-items:center!important;
 justify-content:center!important;gap:2px!important;font-size:clamp(9px,2.3vw,12px)!important;
 color:#dbeaf9!important;white-space:normal!important;text-align:center!important;
 background:#13294f9e!important;
}
html body.in-live-room #lov-studio-v2[data-scene-mode="game10"] #speaker-grid>.lov-mode-vacancy[hidden]{display:none!important}
html body.in-live-room #lov-studio-v2[data-scene-mode="game10"] #speaker-grid>.room-tile .person,
html body.in-live-room #lov-studio-v2[data-scene-mode="game10"] #speaker-grid>.room-tile video{
 position:absolute!important;inset:0!important;width:100%!important;height:100%!important;
 max-width:none!important;max-height:none!important;object-fit:cover!important;
}
html body.in-live-room #lov-studio-v2[data-scene-mode="game10"] #speaker-grid>.room-tile .person .avatar{
 width:clamp(26px,7vw,55px)!important;height:clamp(26px,7vw,55px)!important;
 max-width:65%!important;max-height:65%!important;border-radius:50%!important;
}
html body.in-live-room #lov-studio-v2[data-scene-mode="game10"] #speaker-grid>.room-tile>.role{
 position:absolute!important;z-index:7!important;top:3px!important;left:3px!important;
 max-width:calc(100% - 7px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
 padding:2px 3px!important;font-size:clamp(7px,1.55vw,10px)!important;
 color:#f5f8ff!important;background:#071524bd!important;border:0!important;
}
html body.in-live-room #lov-studio-v2[data-scene-mode="game10"] #speaker-grid>.lov-host-tile>.role{
 background:#8b6623da!important;color:#fff0c0!important;
}
html body.in-live-room #lov-studio-v2[data-scene-mode="game10"] #speaker-grid>.room-tile .name{
 position:absolute!important;z-index:7!important;bottom:3px!important;left:2px!important;right:2px!important;
 max-width:none!important;width:auto!important;min-height:0!important;display:flex!important;
 align-items:center!important;justify-content:center!important;gap:2px!important;flex-wrap:wrap!important;
 padding:3px 2px!important;border:0!important;border-radius:4px!important;
 background:linear-gradient(transparent,#051222ed)!important;
 overflow:hidden!important;font-size:clamp(8px,1.75vw,11px)!important;
}
html body.in-live-room #lov-studio-v2[data-scene-mode="game10"] #speaker-grid>.room-tile .name :is(.user-inline,.lov-pause-gifts){
 font-size:clamp(8px,1.75vw,11px)!important;white-space:nowrap!important;max-width:100%!important;
 text-overflow:ellipsis!important;overflow:hidden!important;
}
html body.in-live-room #lov-studio-v2[data-scene-mode="game10"] #speaker-grid>.room-tile .lov-pause-gifts{
 background:#071528b5!important;border:0!important;border-radius:3px!important;padding:1px 2px!important;
}
html body.in-live-room #lov-studio-v2[data-scene-mode="game10"] #speaker-grid>.room-tile .lov-slot-tools{
 position:absolute!important;top:26px!important;right:1px!important;z-index:8!important;
 display:flex!important;flex-direction:column!important;gap:2px!important;
}
html body.in-live-room #lov-studio-v2[data-scene-mode="game10"] #speaker-grid>.room-tile .lov-slot-tools button{
 min-width:20px!important;min-height:20px!important;padding:1px!important;border-radius:5px!important;
 font-size:11px!important;background:#08182dbe!important;
}
html body.in-live-room #lov-studio-v2[data-scene-mode="game10"] #speaker-grid>.room-tile>.lov-game10-mic-indicator{
 position:absolute;top:28px;left:3px;z-index:7;color:#fff;
 font-size:11px;line-height:1;padding:2px;background:#0513209e;border-radius:4px;
}
html body.in-live-room #lov-studio-v2[data-scene-mode="game10"] #speaker-grid>.lov-host-tile>.lov-game10-follow{
 position:absolute;top:49px;left:3px;z-index:8;max-width:calc(100% - 6px);
 font-size:clamp(7px,1.6vw,10px);line-height:1.15;font-weight:800;
 border-radius:10px;padding:3px 4px;background:#df4264;color:white;border:0;
}
html body.in-live-room #lov-studio-v2[data-scene-mode="game10"] #lov-main-stage #lov-game-board,
html body.in-live-room #lov-studio-v2[data-scene-mode="game10"] #lov-main-stage #lov-ludo-grid,
html body.in-live-room #lov-studio-v2[data-scene-mode="game10"] #lov-main-stage #lov-ludo-status,
html body.in-live-room #lov-studio-v2[data-scene-mode="game10"] #lov-main-stage #lov-ludo-actions{
 display:none!important;
}
/* Transparent comments over the stage, no rectangles around rows. */
html body.in-live-room #lov-studio-v2[data-scene-mode="game10"] #lov-chat,
html body.in-live-room #lov-studio-v2[data-scene-mode="game10"] #lov-chat :is(.room-chat,#lov-chat-slot,#room-lines){
 border:0!important;box-shadow:none!important;background:transparent!important;
}
html body.in-live-room #lov-studio-v2[data-scene-mode="game10"] #room-lines>.line{
 border:0!important;outline:0!important;box-shadow:none!important;
 background:transparent!important;padding:2px 0!important;margin:0!important;
 font-size:clamp(10px,2.65vw,13px)!important;color:#fff!important;
 text-shadow:0 1px 3px #000e;
}
html body.in-live-room #lov-studio-v2[data-scene-mode="game10"] #room-lines .lov-chat-diamond{vertical-align:middle}
/* Existing modal root is outside the room DOM: use class added only for game10 points. */
#modal-root .modal-backdrop.lov-game10-points-backdrop{
 align-items:flex-end!important;justify-content:center!important;padding:0!important;
 background:#050c19a6!important;z-index:9999!important;
}
#modal-root .lov-game10-points-sheet{
 width:min(100%,520px)!important;max-width:100vw!important;
 max-height:min(72dvh,620px)!important;overflow:auto!important;
 border-radius:19px 19px 0 0!important;margin:0!important;
 background:#18191d!important;border:1px solid #3a3e47!important;
 box-shadow:0 -18px 65px #0009!important;color:#f8f8f8!important;
}
#modal-root .lov-game10-points-sheet .lov-supporter-card{
 display:grid;gap:12px;min-height:0;max-height:none;
}
#modal-root .lov-game10-points-sheet .lov-supporter-total{
 font-size:27px;text-align:center;color:#f4f4f7;
}
#modal-root .lov-game10-points-sheet .lov-game10-supporter-titles{
 display:flex;justify-content:space-between;gap:8px;border-bottom:1px solid #ffffff28;
 padding:8px 0;color:#d7d7dd;
}
#modal-root .lov-game10-points-sheet .lov-game10-supporter-titles h4{margin:0;font-size:14px}
#modal-root .lov-game10-points-sheet .lov-supporter-row{
 display:grid;grid-template-columns:20px minmax(0,1fr) auto;
 gap:8px;align-items:center;padding:7px 0;border-bottom:1px solid #ffffff12;
}
#modal-root .lov-game10-points-sheet .lov-supporter-row .user-inline{min-width:0;text-align:left}
#modal-root .lov-game10-points-sheet .lov-supporter-row strong{font-variant-numeric:tabular-nums}
/* PK end-only center panel, populated from last server PK snapshot. */
#modal-root .lov-grand-winner{
 display:flex;flex-direction:column;align-items:center;gap:10px;
 text-align:center;min-width:0;padding:16px 8px;
}
#modal-root .lov-winner-crown{
 font-size:58px;line-height:1;color:#ffce66;text-shadow:0 0 25px #ffda7555;
}
#modal-root .lov-winner-avatar{
 width:78px;height:78px;display:grid;place-items:center;object-fit:cover;
 border-radius:50%;border:3px solid #dcb84e;box-shadow:0 0 19px #dab14b88;
}
#modal-root .lov-winner-fallback{background:#25213b;color:#dabb71;font-size:30px}
#modal-root .lov-grand-winner>strong{font-size:22px;color:#f3ce6b}
#modal-root .lov-grand-winner>p{max-width:340px;font-size:11px;opacity:.75}
#modal-root .lov-winner-donor{
 display:flex;justify-content:space-between;gap:12px;
 width:100%;padding:6px 8px;border-bottom:1px solid #ffffff20;
}
@media(max-width:767px){
 html body.in-live-room #lov-studio-v2[data-scene-mode="game10"] #lov-main-stage #lov-scene-tiles{
  gap:2px!important;padding:0 2px!important;
 }
 html body.in-live-room #lov-studio-v2[data-scene-mode="game10"] #speaker-grid>.room-tile .name{
  font-size:8px!important;line-height:1.1!important;
 }
 html body.in-live-room #lov-studio-v2[data-scene-mode="game10"] #speaker-grid>.room-tile .lov-slot-tools button{
  min-height:18px!important;min-width:18px!important;
 }
}

/* SADBOT E1: LIVE-only responsive trio/quartet, official winner and follow controls. */
html body.in-live-room #lov-studio-v2[data-scene-mode="game10"] #speaker-grid>.lov-host-tile>.lov-game10-follow{
 background:linear-gradient(135deg,#00D2FF,#10B981);color:#061d27;border:0;
}
html body.in-live-room #lov-studio-v2 #speaker-grid>.room-tile .lov-victory-label{
 position:absolute;z-index:20;top:4px;right:4px;display:flex;align-items:center;gap:4px;
 border:1px solid #e9d18c;border-radius:10px;padding:3px 5px;color:#fff;
 background:#122636e8;font-size:11px;font-weight:800;pointer-events:none;
}
html body.in-live-room #lov-studio-v2 #speaker-grid>.room-tile .lov-victory-win{color:#ffdf82}
html body.in-live-room #lov-studio-v2 #speaker-grid>.room-tile .lov-victory-lose{color:#b5bfd0;border-color:#536c79}
html body.in-live-room #lov-studio-v2 #speaker-grid>.room-tile .lov-victory-label small{color:#74e9ec;font-size:10px}
@media(max-width:767px){
 html body.in-live-room #lov-studio-v2[data-scene-mode="multiguest"][data-guest-count="3"] #lov-main-stage #speaker-grid{
  display:grid!important;grid-template-columns:2fr 1fr!important;grid-template-rows:repeat(2,minmax(0,1fr))!important;
 }
 html body.in-live-room #lov-studio-v2[data-scene-mode="multiguest"][data-guest-count="3"] #speaker-grid>.room-tile:first-child{
  grid-column:1!important;grid-row:1/span 2!important;
 }
 html body.in-live-room #lov-studio-v2[data-scene-mode="multiguest"][data-guest-count="3"] #speaker-grid>.room-tile:nth-child(2){
  grid-column:2!important;grid-row:1!important;
 }
 html body.in-live-room #lov-studio-v2[data-scene-mode="multiguest"][data-guest-count="3"] #speaker-grid>.room-tile:nth-child(3){
  grid-column:2!important;grid-row:2!important;
 }
 html body.in-live-room #lov-studio-v2[data-scene-mode="multiguest"][data-guest-count="4"] #lov-main-stage #speaker-grid{
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-template-rows:repeat(2,minmax(0,1fr))!important;
 }
 html body.in-live-room #lov-studio-v2[data-scene-mode="multiguest"][data-guest-count="4"] #speaker-grid>.room-tile{
  grid-column:auto!important;grid-row:auto!important;
 }
 html body.in-live-room #lov-studio-v2[data-scene-mode="multiguest"] #speaker-grid>.room-tile .lov-room-rank{
  position:absolute;z-index:9;left:4px;top:5px;border-radius:8px;padding:3px 5px;
  color:#e0fbff;background:#09283dce;font-size:10px;font-weight:700;
 }
}

/* Desktop LIVE navigation shares the existing liveOVER icons and titles. */
@media(min-width:768px){
 html body.in-live-room{--lov-live-nav-width:clamp(72px,18vw,220px)}
 html body.in-live-room .lov-live-only-nav{
  display:flex!important;flex-direction:column!important;position:fixed!important;
  z-index:1200!important;left:0!important;top:0!important;bottom:0!important;
  height:100dvh!important;width:var(--lov-live-nav-width)!important;
  max-width:var(--lov-live-nav-width)!important;overflow-y:auto!important;
  background:var(--bg)!important;visibility:visible!important;
 }
 html body.in-live-room #main #lov-studio-v2[data-live-viewport="desktop"]{
  left:calc(var(--lov-live-nav-width) + var(--live-gap,12px))!important;
 }
 html body.in-live-room #main #lov-studio-v2[data-live-viewport="desktop"] #lov-main-stage{
  min-width:0!important;
 }
 html body.in-live-room #lov-studio-v2[data-live-viewport="desktop"] #lov-pk-scorebar{
  border-radius:10px;box-shadow:none;
 }
}
@media(max-width:767px){
 html body.in-live-room .lov-live-only-nav{display:none!important}
}
