/* Dome Duel ONLY — approved 8-slot rack artwork by the VIEWER'S seat.
   Keep the existing panel, tile grid, drag handlers, tile colors and layout.
   PNGs are 2048x686 with transparent padding. The previous 200%-height
   background stretch caused the painted slots to be nearly twice as tall
   as the interactive square tiles. Render at 130% height so the illustrated
   wells are square at the existing rack-panel width and height. */
body:not(.wd-gate)[data-wd-game-type="duel"][data-wd-player-seat="0"]:has(#game:not([hidden])) .center-panel .rack-panel::before{
 background-image:url("/Dome_Duel_Player_1_Red_Rack.png?v=seat-racks-20261027")!important;
 background-position:center center!important;
 background-size:100% 130%!important;
 background-repeat:no-repeat!important;
}
body:not(.wd-gate)[data-wd-game-type="duel"][data-wd-player-seat="1"]:has(#game:not([hidden])) .center-panel .rack-panel::before{
 background-image:url("/Dome_Duel_Player_2_Blue_Rack.png?v=seat-racks-20261027")!important;
 background-position:center center!important;
 background-size:100% 130%!important;
 background-repeat:no-repeat!important;
}

/* Measured from both approved 2048x686 assets:
   blue/red wells center at x = 342,537,730,923,1119,1312,1506,1701,
   and y = ~386 px. Map to their true eight-column positions instead of
   legacy 70%-width lane and per-slot ad hoc offsets.
   Previously: (76% / 8) * 82.894736842% = 7.875% panel.
   Refined:    (76% / 8) * 96% = 9.12% panel, full grid-row height.
   Keep slot centers and eight-column spacing unchanged.
   The illustrated well center at y=386 corresponds to 58.0% of the panel
   at background-size:100% 130%; match its ~26% painted well height
   and keep the old 58.05% vertical center (45.05% + 26% / 2).
   The same art lift applies to the rack and tiles. */
body:not(.wd-gate)[data-wd-game-type="duel"]:has(#game:not([hidden])) .center-panel .rack-panel #rack{
 left:12%!important;
 width:76%!important;
 top:45.05%!important;
 height:26%!important;
}
/* Keep the approved rack grid unchanged. Grow both blue and red letter tiles
   1% vertically (100% to 101%) and center that extra height in each well. */
body:not(.wd-gate)[data-wd-game-type="duel"]:has(#game:not([hidden])) .center-panel .rack-panel #rack .tile{
 width:96%!important;
 height:101%!important;
 min-height:0!important;
 max-height:none!important;
 aspect-ratio:auto!important;
 align-self:center!important;
}
/* Remove historic individual slot nudges; realign all eight uniformly. */
body:not(.wd-gate)[data-wd-game-type="duel"]:has(#game:not([hidden])) .center-panel .rack-panel #rack .tile[data-slot-index]{
 left:0!important;
}

/* Dome Duel rack polish: the approved red/blue PNGs already contain the
   complete gold well frames. Do not draw a second gold border or shadow
   around the interactive blue/red tile faces. Selection and keyboard-focus
   outlines remain available via the existing selected/focus styles. */
body:not(.wd-gate)[data-wd-game-type="duel"]:has(#game:not([hidden])) .center-panel .rack-panel #rack .tile.player-0,
body:not(.wd-gate)[data-wd-game-type="duel"]:has(#game:not([hidden])) .center-panel .rack-panel #rack .tile.player-1{
 border:0!important;
 box-shadow:none!important;
}
/* Desktop/tablet landscape: the previous 120%-wide frame pushed Corinthian
   columns over the adjacent gold score/bonus panels. Scale artwork AND the
   eight-position grid together to 108%, retaining their relative alignment.
   Smaller stacked layouts retain their existing rack sizing. */
@media(min-width:821px){
 body:not(.wd-gate)[data-wd-game-type="duel"]:has(#game:not([hidden])) .center-panel .rack-panel{
  width:108%!important;
 }
}
