/* Dome Blitz customization boundary: selectors apply only to Blitz sessions.
   Add future Blitz-only visual rules here; Dome Duel uses its existing sheets. */
body[data-wd-game-type="blitz"]:has(#game:not([hidden])) #gameTopInfo.top-info > .top-mode{
 background:linear-gradient(145deg,#061a48,#102c66)!important;
 border:2px solid #e5b23f!important;
 border-radius:10px!important;
 box-shadow:0 0 12px #e5b23f77!important;
}
body[data-wd-game-type="blitz"]:has(#game:not([hidden])) #gameTopInfo.top-info > .top-mode #modeDisplay{
 opacity:1!important;
 color:#ffde81!important;
 font-family:Georgia,serif!important;
 font-size:20px!important;
 font-weight:900!important;
 white-space:nowrap!important;
}
body[data-wd-game-type="blitz"]:has(#game:not([hidden])) #gameTopInfo.top-info > .top-mode::after{content:none!important}

/* Blitz-only chess clocks: preserve all Dome Duel timer geometry and appearance. */
body[data-wd-game-type="blitz"]:has(#game:not([hidden])) #clock,
body[data-wd-game-type="blitz"]:has(#game:not([hidden])) #opponentClock{
 box-sizing:border-box!important;
 display:flex!important;
 flex-direction:column!important;
 align-items:center!important;
 justify-content:center!important;
 gap:3px!important;
 min-height:78px!important;
 padding:8px 10px!important;
 border:3px solid #e8b84e!important;
 border-radius:12px!important;
 background:linear-gradient(155deg,#123f89,#061a43)!important;
 color:#fff2c2!important;
 box-shadow:inset 0 0 0 2px #476bb4,0 5px 16px #0007!important;
 text-align:center!important;
 font-family:Georgia,'Times New Roman',serif!important;
 line-height:1.1!important;
}
body[data-wd-game-type="blitz"]:has(#game:not([hidden])) .wd-blitz-clock-label{
 font:800 clamp(10px,1vw,13px)/1.1 Georgia,serif!important;
 letter-spacing:.11em!important;color:#f6ca6e!important;
}
body[data-wd-game-type="blitz"]:has(#game:not([hidden])) .wd-blitz-clock-time{
 font:900 clamp(25px,3vw,38px)/1 Georgia,serif!important;
 font-variant-numeric:tabular-nums!important;
 letter-spacing:.04em!important;color:#fff!important;
 text-shadow:0 2px 3px #000b!important;
}
body[data-wd-game-type="blitz"]:has(#game:not([hidden])) .wd-blitz-clock-status{
 font:700 clamp(9px,.9vw,12px)/1.1 Georgia,serif!important;
 letter-spacing:.06em!important;color:#d4e5ff!important;
}
body[data-wd-game-type="blitz"]:has(#game:not([hidden])) .timer-card.timer-active{
 border-color:#f9dc7b!important;
 box-shadow:inset 0 0 0 2px #719ce4,0 0 18px #f9d46b99!important;
}
body[data-wd-game-type="blitz"]:has(#game:not([hidden])) .timer-card.countdown-danger{
 background:linear-gradient(145deg,#8b111c,#38060e)!important;
 border-color:#ff7c71!important;
 box-shadow:0 0 18px #fc5056aa!important;
}
@media(max-width:650px){
 body[data-wd-game-type="blitz"]:has(#game:not([hidden])) #clock,
 body[data-wd-game-type="blitz"]:has(#game:not([hidden])) #opponentClock{
  min-height:65px!important;padding:6px!important;
 }
}

/* Dome Blitz title uses the same dimensions as Dome Duel.
   Base game-panel-order.css and shared center plaque transform control geometry. */
body[data-wd-game-type="blitz"]:has(#game:not([hidden])) #gameTopInfo.top-info > .top-mode #modeDisplay{
 font-size:clamp(12px,1.6vw,18px)!important;
}

/* Dome Blitz board artwork only. Match the 11x11 interactive grid to the
   11x11 squares in the uploaded full-board PNG; Duel keeps existing tiles. */


/* Keep playable letters and start/star indicators visible on the board image. */


/* Blitz-only eight-slot rack artwork; preserve existing rack/slot geometry and tile handlers. */
body[data-wd-game-type="blitz"]:has(#game:not([hidden])) .center-panel .rack-panel::before{
 background-image:url('/Dome_Blitz_Rack_Option_3_GH_Ready.png?v=approved-20261022')!important;
}

/* Dome Blitz seat 0: approved Ornate Eight-Slot Mahogany Rack PNG.
   The updated eight symmetric gold wells are shared with seat 1.
   Keep the live ivory tiles, eight drop targets and existing rack geometry. */
body[data-wd-game-type="blitz"][data-wd-player-seat="0"]:has(#game:not([hidden])) .center-panel .rack-panel::before{
 background-image:url('/Ornate%20Eight-Slot%20Mahogany%20Rack.png?v=both-seats-approved-20261119')!important;
 background-size:100% 100%!important;
 background-position:center center!important;
}

/* Dome Blitz seat 1: same newly approved rack PNG as seat 0.
   Brown tile styling, selection, drag/drop and slot alignment stay intact. */
body[data-wd-game-type="blitz"][data-wd-player-seat="1"]:has(#game:not([hidden])) .center-panel .rack-panel::before{
 background-image:url('/Ornate%20Eight-Slot%20Mahogany%20Rack.png?v=both-seats-approved-20261119')!important;
 background-size:100% 100%!important;
 background-position:center center!important;
 -webkit-mask-image:none!important;
 mask-image:none!important;
 filter:none!important;
}

body[data-wd-game-type="blitz"]{
 --wd-blitz-ivory-letter-color:#702d20;
}

/* Dome Blitz: Player 1 uses ivory tiles with mahogany letters and retains
   the original tile interaction/selection behavior. Player 2 and Duel are untouched. */
body[data-wd-game-type="blitz"][data-wd-player-seat="0"]:has(#game:not([hidden])) #rack .tile,
body[data-wd-game-type="blitz"]:has(#game:not([hidden])) #board > .sq.locked.tile-blue,
body[data-wd-game-type="blitz"]:has(#game:not([hidden])) #board > .sq.pending-player-0{
 background:linear-gradient(145deg,#fffdf1 0%,#f7eccf 55%,#e4d4ae 100%)!important;
 color:var(--wd-blitz-ivory-letter-color)!important;
 -webkit-text-fill-color:var(--wd-blitz-ivory-letter-color)!important;
 border:2px solid #111!important;
 text-shadow:none!important;
 box-shadow:inset 0 2px 3px #fff9,0 2px 3px #21170e55!important;
}

/* After a Player 1 word is committed, remove only its black tile outline.
   Its ivory face and mahogany lettering remain identical to rack/pending tiles. */
body[data-wd-game-type="blitz"]:has(#game:not([hidden])) #board > .sq.locked.tile-blue{
 border:0!important;
}

/* Single Player 1 tile lifecycle: black edge in rack and until committed. */
body[data-wd-game-type="blitz"][data-wd-player-seat="0"]:has(#game:not([hidden])) #rack .tile{
 border:2px solid #111!important;
 outline:0!important;
 color:var(--wd-blitz-ivory-letter-color)!important;
 -webkit-text-fill-color:var(--wd-blitz-ivory-letter-color)!important;
}
body[data-wd-game-type="blitz"]:has(#game:not([hidden])) #board > .sq.pending-player-0{
 background:linear-gradient(145deg,#fffdf1 0%,#f7eccf 55%,#e4d4ae 100%)!important;
 color:var(--wd-blitz-ivory-letter-color)!important;
 -webkit-text-fill-color:var(--wd-blitz-ivory-letter-color)!important;
 border:2px solid #111!important;
 outline:0!important;
 text-shadow:none!important;
}
body[data-wd-game-type="blitz"]:has(#game:not([hidden])) #board > .sq.locked.tile-blue{
 background:linear-gradient(145deg,#fffdf1 0%,#f7eccf 55%,#e4d4ae 100%)!important;
 color:var(--wd-blitz-ivory-letter-color)!important;
 -webkit-text-fill-color:var(--wd-blitz-ivory-letter-color)!important;
 border:0!important;
 outline:0!important;
 text-shadow:none!important;
}

/* Final Player 1 lifecycle: NO added frame in rack/drag, prominent black
   outline only while a tile is pending on the board; none after commit. */
body[data-wd-game-type="blitz"][data-wd-player-seat="0"]:has(#game:not([hidden])) #rack .tile{
 border:0 solid transparent!important;
 outline:0!important;
 box-shadow:inset 0 2px 3px #fff9,0 2px 3px #21170e55!important;
}
body[data-wd-game-type="blitz"]:has(#game:not([hidden])) #board > .sq.pending-player-0{
 border:4px solid #111!important;
 outline:3px solid #111!important;
 outline-offset:-3px!important;
 box-shadow:inset 0 2px 3px #fff9!important;
}
body[data-wd-game-type="blitz"]:has(#game:not([hidden])) #board > .sq.locked.tile-blue{
 border:0!important;
 outline:0!important;
}

/* Keep all 121 clickable cells registered to the actual illustrated board.
   The global .sq aspect-ratio:1/1 caused square tracks to overflow their
   grid rows, shifting star markers and drop zones away from printed lines. */




/* Dome Blitz title box only: 15% less visible height; preserve width and placement. */
body[data-wd-game-type="blitz"]:has(#game:not([hidden])) #gameTopInfo.top-info > .top-mode{
 transform:scale(1.2,1.67739)!important; /* Existing shared 1.9734 Y scale × 0.85 */
}

/* Align the visible bottom of Blitz title with Goal and Room Code; change no other boxes. */
body[data-wd-game-type="blitz"]:has(#game:not([hidden])) #gameTopInfo.top-info > .top-mode{
 transform:translateY(-15.45px) scale(1.2,1.67739)!important;
}
@media(max-width:699px){
 body[data-wd-game-type="blitz"]:has(#game:not([hidden])) #gameTopInfo.top-info > .top-mode{
  transform:translateY(-8.94px) scale(1.2,1.67739)!important;
 }
}

/* Dome Blitz center plaque: uploaded speed logo, preserving existing box geometry. */
body[data-wd-game-type="blitz"]:has(#game:not([hidden])) #gameTopInfo.top-info > .top-mode{
 position:relative!important;overflow:hidden!important;
}
body[data-wd-game-type="blitz"]:has(#game:not([hidden])) #gameTopInfo.top-info > .top-mode::after{
 content:""!important;display:block!important;position:absolute!important;inset:0!important;
 background:transparent url("/Glossy%20DOME%20BLITZ%20Speed%20Logo.png") center / 50.688% auto no-repeat!important;
 z-index:2!important;pointer-events:none!important;
}
body[data-wd-game-type="blitz"]:has(#game:not([hidden])) #gameTopInfo.top-info > .top-mode > :is(#modeDisplay,#centerRoomHeading){
 opacity:0!important;
}


/* Blitz board-art regression fix: the PNG already contains its grid and stars.
   Preserve all 121 interactive hit cells and all pending/locked tile visuals. */



/* Approved single-piece Gold UI Banner, Blitz only. Keep the live goal and
   room code as real DOM text; never bake sample numbers into the artwork. */
body[data-wd-game-type="blitz"]:has(#game:not([hidden])) #gameTopInfo.top-info{
 position:relative!important;
 isolation:isolate!important;
 background:transparent url("/Dome%20Blitz%20Gold%20UI%20Banner.png?v=20261021") center center / 100% 100% no-repeat!important;
}
body[data-wd-game-type="blitz"]:has(#game:not([hidden])) #gameTopInfo.top-info > :is(.top-goal,.top-mode,.wd-room-info){
 position:relative!important;
 z-index:1!important;
 background:transparent!important;
 background-image:none!important;
 border:0!important;
 border-radius:0!important;
 box-shadow:none!important;
 outline:0!important;
}
body[data-wd-game-type="blitz"]:has(#game:not([hidden])) #gameTopInfo.top-info > .top-mode{
 transform:none!important;
 overflow:visible!important;
}
body[data-wd-game-type="blitz"]:has(#game:not([hidden])) #gameTopInfo.top-info > .top-mode::after{
 content:none!important;display:none!important;
}
body[data-wd-game-type="blitz"]:has(#game:not([hidden])) #gameTopInfo.top-info > :is(.top-goal,.wd-room-info) > span{
 visibility:hidden!important;
}
body[data-wd-game-type="blitz"]:has(#game:not([hidden])) #gameTopInfo.top-info > :is(.top-goal,.wd-room-info) > strong{
 position:relative!important;z-index:2!important;
 color:#09234e!important;
 text-shadow:none!important;
 opacity:1!important;
}

/* Fix #366: the source PNG contains a pale checkerboard OUTSIDE its three
   painted frames. Render it at its native aspect ratio and clip away that
   outer region, without affecting the game board or Dome Duel. */
body[data-wd-game-type="blitz"]:has(#game:not([hidden])) #gameTopInfo.top-info{
 background:none!important;
 min-height:clamp(105px,11.8vw,170px)!important;
 height:clamp(105px,11.8vw,170px)!important;
 overflow:visible!important;
 display:grid!important;
 grid-template-columns:28% 44% 28%!important;
 align-items:center!important;
}
body[data-wd-game-type="blitz"]:has(#game:not([hidden])) #gameTopInfo.top-info::before{
 content:""!important;
 position:absolute!important;
 inset:0!important;
 background:url("/Dome%20Blitz%20Gold%20UI%20Banner.png?v=20261021") center center / 100% 100% no-repeat!important;
 /* Clip to the painted outer frames, excluding the nontransparent backdrop. */
 clip-path:polygon(0.6% 21%,26.8% 21%,28% 16%,72% 16%,73.2% 21%,99.4% 21%,99.4% 73%,73.2% 73%,72% 76%,28% 76%,26.8% 73%,0.6% 73%)!important;
 pointer-events:none!important;
 z-index:0!important;
}
body[data-wd-game-type="blitz"]:has(#game:not([hidden])) #gameTopInfo.top-info > :is(.top-goal,.top-mode,.wd-room-info){
 height:55%!important;
 min-height:0!important;
 max-height:none!important;
 padding:0!important;
 transform:translateY(-2%)!important;
}
body[data-wd-game-type="blitz"]:has(#game:not([hidden])) #gameTopInfo.top-info > .top-goal strong,
body[data-wd-game-type="blitz"]:has(#game:not([hidden])) #gameTopInfo.top-info > .wd-room-info strong{
 font-size:clamp(13px,1.55vw,22px)!important;
 line-height:1.15!important;
}
@media(max-width:699px){
 body[data-wd-game-type="blitz"]:has(#game:not([hidden])) #gameTopInfo.top-info{
  height:clamp(72px,18vw,110px)!important;
  min-height:clamp(72px,18vw,110px)!important;
 }
}

/* Register the 11x11 interactive grid against the printed INNER grid of the
   approved wooden Blitz board (rather than the outer ornamental frame).
   Measured from the screenshot: horizontal inset ~7.5%, vertical ~7%.
   This affects tile hitboxes only, not board art, rack, or Duel. */



/* Correct cumulative vertical drift visible in the 2026-10-21 screenshot:
   upper tiles align but lower rows increasingly fall below the printed
   squares. Preserve horizontal registration and the wooden board image. */


/* Center letters in uncommitted Blitz board tiles exactly as in played tiles.
   Restrict to pending squares; do not alter board cells or committed words. */
body[data-wd-game-type="blitz"]:has(#game:not([hidden])) #game #board > .sq.pending{
 display:grid!important;
 place-items:center!important;
 align-content:center!important;
 justify-content:center!important;
 padding:0!important;
 line-height:1!important;
 text-align:center!important;
 vertical-align:middle!important;
}
body[data-wd-game-type="blitz"]:has(#game:not([hidden])) #game #board > .sq.pending > :is(span,strong,b){
 align-self:center!important;
 justify-self:center!important;
 margin:0!important;
 padding:0!important;
 line-height:1!important;
 transform:none!important;
}

/* Lower all three approved header panels together, without moving the
   opponent rack, board, or changing the banner's dimensions. */
body[data-wd-game-type="blitz"]:has(#game:not([hidden])) #gameTopInfo.top-info{
 transform:translateY(calc(32px + 10%))!important;
}
@media(max-width:699px){
 body[data-wd-game-type="blitz"]:has(#game:not([hidden])) #gameTopInfo.top-info{
  transform:translateY(calc(20px + 10%))!important;
 }
}


/* Preserve the approved LIGHT checkerboard, with each brown gradient stop
   blended 15% toward white (no change to the ivory/white square palette).
   Only .sq siblings count: the opening-card layer must never flip parity.
   An 11x11 grid has all four corners at odd/ivory parity. Both playable
   starting positions and all eight server-owned bonuses also fall on ivory.
   Exclude locked/pending/opponent placements so tile faces never change. */
body[data-wd-game-type="blitz"]:has(#game:not([hidden])) #game #board{
 --wd-blitz-light-brown-square:linear-gradient(145deg,#e4ba99 0%,#ddaf8b 55%,#d1a585 100%);
 --wd-blitz-ivory-square:linear-gradient(145deg,#fffdf6 0%,#fff9ed 55%,#f3e6d2 100%);
}
body[data-wd-game-type="blitz"]:has(#game:not([hidden])) #game #board > .sq:nth-child(even of .sq):not(.star):not(.start):not(.locked):not(.pending):not(.opponent-pending){
 background:var(--wd-blitz-light-brown-square)!important;
}
body[data-wd-game-type="blitz"]:has(#game:not([hidden])) #game #board > .sq:nth-child(odd of .sq):not(.star):not(.start):not(.locked):not(.pending):not(.opponent-pending){
 background:var(--wd-blitz-ivory-square)!important;
}

/* Dome Blitz clocks: omit only the visible clock headings.
   Keep the digits, running/paused status, and clock artwork intact. */
body[data-wd-game-type="blitz"]:has(#game:not([hidden])) #clock > .wd-blitz-clock-label,
body[data-wd-game-type="blitz"]:has(#game:not([hidden])) #opponentClock > .wd-blitz-clock-label{
 display:none!important;
}

/* Dome Blitz generated room code: match the existing dark-navy Goal value.
   The ID-specific selector overrides the legacy shared pale-text rule. */
body[data-wd-game-type="blitz"]:has(#game:not([hidden])) #gameTopInfo.top-info > .wd-room-info > #gameRoomName{
 color:#09234e!important;
 -webkit-text-fill-color:#09234e!important;
 text-shadow:none!important;
}

/* Dome Blitz only: remove the separate Word Dome trophy above the game header.
   Preserve the existing header box geometry, three blue/gold header panels and
   the official observatory backdrop. Duel/Dynasty/home logos are unaffected. */
body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden])) .brand-art::after{
 content:none!important;
 display:none!important;
}

/* Center both live values horizontally and vertically in the ivory portions
   of the approved Goal and Room Code boxes. Do not move the artwork/headers. */
body[data-wd-game-type="blitz"]:has(#game:not([hidden])) #gameTopInfo.top-info > :is(.top-goal,.wd-room-info){
 position:relative!important;
}
body[data-wd-game-type="blitz"]:has(#game:not([hidden])) #gameTopInfo.top-info > .top-goal > #goalDisplay,
body[data-wd-game-type="blitz"]:has(#game:not([hidden])) #gameTopInfo.top-info > .wd-room-info > #gameRoomName{
 position:absolute!important;
 top:63%!important;
 left:50%!important;
 transform:translate(-50%,-50%)!important;
 margin:0!important;
 padding:0!important;
 width:95%!important;
 display:block!important;
 text-align:center!important;
 white-space:nowrap!important;
 line-height:1!important;
}

/* The eight existing +50 bonus locations stay server-authoritative, but
   display 15%-smaller forest-green diamonds on white squares, not gold stars.
   This only paints empty cells; scoring and played/dragged tile art are intact. */
body[data-wd-game-type="blitz"]:has(#game:not([hidden])) #game #board > .sq.star:not(.start):not(.locked):not(.pending):not(.opponent-pending){
 background:var(--wd-blitz-ivory-square)!important;
 border-color:#c5ad86!important;
 box-shadow:inset 0 2px 3px #fff9efaa,inset 0 -2px 3px #c3a57b55!important;
}
body[data-wd-game-type="blitz"]:has(#game:not([hidden])) #game #board > .sq.star:not(.start):not(.locked):not(.pending):not(.opponent-pending):empty::after{
 content:"◆"!important;
 /* Approved forest green (#064B16), reduced another 10% from the current
    1.1322em size. Leave center, placement and bonus square unchanged. */
 color:#064B16!important;
 -webkit-text-fill-color:#064B16!important;
 -webkit-text-stroke:.7px #013109!important;
 font-size:1.01898em!important;
 text-shadow:0 1px 0 #d9e9d9,0 1px 2px #013109!important;
 filter:drop-shadow(0 0 1px #24552b)!important;
}

/* Match the optical centers of the actual painted left and right ivory
   windows. The composite artwork is not centered on the 28/44/28 DOM
   columns, so centering within those columns left the values off-center. */
body[data-wd-game-type="blitz"]:has(#game:not([hidden])) #gameTopInfo.top-info > .top-goal > #goalDisplay{
 left:calc(50% + 24px)!important;
}
body[data-wd-game-type="blitz"]:has(#game:not([hidden])) #gameTopInfo.top-info > .wd-room-info > #gameRoomName{
 left:calc(50% - 12px)!important;
}

/* Dome Blitz only: Player 2's rack, drag image, placed letters and committed
   words use the same polished mahogany tile face and ivory type. Dome Duel is unchanged. */
body[data-wd-game-type="blitz"]:has(#game:not([hidden])) .tile.player-1,
body[data-wd-game-type="blitz"]:has(#game:not([hidden])) #game #board > .sq.pending-player-1,
body[data-wd-game-type="blitz"]:has(#game:not([hidden])) #game #board > .sq.locked.tile-orange{
 background:linear-gradient(145deg,#985037 0%,#702d20 55%,#42160f 100%)!important;
 color:#fff8e9!important;
 -webkit-text-fill-color:#fff8e9!important;
 border:0!important;
 outline:0!important;
 text-shadow:none!important;
 box-shadow:inset 0 2px 3px #ffe0aa29,0 2px 4px #0009!important;
}
/* Show Player 2 where a word is still being arranged, without changing its
   mahogany face or ivory letters; the frame disappears when the word is played. */
body[data-wd-game-type="blitz"]:has(#game:not([hidden])) #game #board > .sq.pending-player-1{
 border:4px solid #4b190f!important;
 outline:3px solid #e8ba64!important;
 outline-offset:-3px!important;
}
/* Server previews contain positions only, never letters. Match each seat's
   unplayed tile framing on the concealed backs: mahogany/gold for Player 2,
   ivory/black for Player 1. On commit, locked tiles show their letters. */
body[data-wd-game-type="blitz"]:has(#game:not([hidden])) #game #board > .sq.opponent-pending.opponent-player-1{
 background:linear-gradient(145deg,#985037 0%,#702d20 55%,#42160f 100%)!important;
 border:4px solid #4b190f!important;
 outline:3px solid #e8ba64!important;
 outline-offset:-3px!important;
 box-shadow:inset 0 2px 3px #ffe0aa29,0 2px 4px #0009!important;
}
body[data-wd-game-type="blitz"]:has(#game:not([hidden])) #game #board > .sq.opponent-pending.opponent-player-0{
 background:linear-gradient(145deg,#fffdf1 0%,#f7eccf 55%,#e4d4ae 100%)!important;
 border:4px solid #111!important;
 outline:3px solid #111!important;
 outline-offset:-3px!important;
 box-shadow:inset 0 2px 3px #fff9,0 2px 3px #21170e55!important;
}
body[data-wd-game-type="blitz"]:has(#game:not([hidden])) #game #board > .sq.opponent-pending{
 color:transparent!important;
 -webkit-text-fill-color:transparent!important;
 text-shadow:none!important;
 outline:none!important;
}
/* Do not draw the underlying bonus/start star on a concealed placement. */
body[data-wd-game-type="blitz"]:has(#game:not([hidden])) #game #board > .sq.opponent-pending::after{
 content:none!important;
}
/* The concealed opponent rack uses the corresponding seat's tile face. */
body[data-wd-game-type="blitz"][data-wd-player-seat="0"]:has(#game:not([hidden])) #opponentRack .opponent-tile{
 background:linear-gradient(145deg,#985037 0%,#702d20 55%,#42160f 100%)!important;
 border:2px solid #e8ba64!important;
 box-shadow:inset 0 2px 3px #ffe0aa29,0 2px 4px #0009!important;
}
body[data-wd-game-type="blitz"][data-wd-player-seat="1"]:has(#game:not([hidden])) #opponentRack .opponent-tile{
 background:linear-gradient(145deg,#fffdf1 0%,#f7eccf 55%,#e4d4ae 100%)!important;
 border:2px solid #111!important;
 box-shadow:inset 0 2px 3px #fff9,0 2px 3px #21170e55!important;
}

/* Dome Blitz host only: show a compact waiting message in the existing
   opponent nameplate until seat 2 joins. Restore normal name styling on join. */
body[data-wd-game-type="blitz"]:has(#game:not([hidden])) #opponentName.wd-waiting-for-player-two{
 font-size:clamp(11px,1.25vw,15px)!important;
 line-height:1.2!important;
 letter-spacing:.1px!important;
 white-space:nowrap!important;
}

/* Dome Blitz board FRAME ONLY: replace the gold frame with a polished,
   carved mahogany finish. Keep board dimensions, padding, cell positions,
   rack artwork, top headers, and all other screen elements unchanged. */
body[data-wd-game-type="blitz"]:has(#game:not([hidden])) #game #board {
 border-color:#6b2c1b!important;
 border-style:ridge!important;
 background:repeating-linear-gradient(96deg,
  #3d160e 0px,#642818 6px,#88432a 12px,#5b2617 19px,#37130d 28px)!important;
 box-shadow:
  0 0 0 2px #2b0e09,
  0 0 0 4px #975032,
  0 0 0 6px #401a11,
  0 6px 17px #160805aa,
  inset 0 0 0 2px #b77850,
  inset 0 0 9px #2b0c08!important;
}


/* Recessed highlights belong to light-brown squares only.
   Ivory, gold diamonds, green starts and occupied tiles retain their faces. */
body[data-wd-game-type="blitz"]:has(#game:not([hidden])) #game #board > .sq:nth-child(even of .sq):not(.star):not(.start):not(.locked):not(.pending):not(.opponent-pending){
 box-shadow:inset 0 2px 3px #fff4e185,inset 0 -2px 4px #8e4b2844!important;
}

/* Dome Blitz score-box dividers only: match the copper-mahogany side frames.
   Change surface colors ONLY. Both original divider lengths, positions,
   thicknesses, end masks and score text remain defined by the shared skin. */
body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden])) .game-grid :is(#turnCard,#opponentTurnCard)::after{
 background:repeating-linear-gradient(0deg,transparent 0px,rgba(39,12,8,.18) 1px,transparent 2px,rgba(224,148,96,.12) 3px,transparent 5px),linear-gradient(to bottom,#bb7751 0%,#985031 22%,#6b2d1a 44%,#873d24 56%,#4e1d13 82%,#804127 100%)!important;
 box-shadow:inset 0 1px 1px #e9aa7980,inset 0 -1px 1px #2c0d09,0 1px 3px #081631,0 0 2px #672a1c!important;
}

/* Dome Blitz only — lower the ENTIRE playable board by 3% of its own height.
   A visual translation moves the board art, all 121 cells, tiles and hit targets
   together without altering size, grid flow, clocks, racks or side panels. */
body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden])) #game #board{
 transform:translateY(3%)!important;
}

/* Dome Blitz only: approved Starlit Mahogany Library Rotunda background.
   Applied to the active Blitz game ONLY; no effect on Dome Duel, home,
   Grand Hall, game components or game-board artwork. */
body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden])){
 background-image:url("/Starlit%20Mahogany%20Library%20Rotunda.png?v=blitz-starlit-mahogany-20261122")!important;
 background-position:center top!important;
 background-size:cover!important;
 background-repeat:no-repeat!important;
}

/* Dome Blitz opponent rack correction: restore original width and make
   only its outer rectangle 5% taller downward toward the board.
   Keep the rack's top edge anchored and counter-scale both interior
   elements so the eight tile backs and label retain their exact sizes. */
body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden])) #game .center-panel > .opponent-rack-panel {
  transform:scaleY(1.05)!important;
  transform-origin:center top!important;
}
body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden])) #game .center-panel > .opponent-rack-panel > :is(h3,#opponentRack) {
  transform:scaleY(0.9523809524)!important;
  transform-origin:center center!important;
}

/* Dome Blitz only: four approved mahogany/blue nameplate artworks.
   Swap only the two existing upper nameplate backgrounds and the two
   matching lower decorative nameplate backgrounds. Their exact geometry,
   live names, turn frame, and Royal Member badge remain untouched. */
@media (min-width:700px){
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden])) .game-grid > :is(.left-panel,.right-panel) > :is(#playerCard,#opponentCard) > .wd-player-name-banner,
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden])) .game-grid > :is(.left-panel,.right-panel)::after {
  background-image:url('/Ornate%20Mahogany%20Blue%20Game%20Banner.png?v=approved-20261023')!important;
 }
}
/* Dome Blitz ONLY: widen the displayed rack letter tiles for BOTH seats by
   a further 1% from 91.35% to 92.2635% of each existing slot. Leave both rack
   artworks, slot grid, tile positions and all other game elements unchanged. */
body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden])) .center-panel .rack-panel #rack .tile{
 width:92.2635%!important;
}


/* Keep the full Paul Blue avatar hat inside Dome Blitz's inset turn frame.
   Scope this to the exact selected portrait on either seat; no change to
   other avatars, the ornate frames, turn indicator or Dome Duel. */
body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden])) .game-grid :is(#playerAvatar,#opponentAvatar).human24-avatar[style*="Paul%20Blue%20avatar.jpg"]{
  background-size:84% auto!important;
  background-position:center center!important;
  background-repeat:no-repeat!important;
  background-color:#25aeed!important;
}

/* Dome Blitz only: retain the finished-game panel framing while clearing a
   departed opponent's live portrait; preserve board and scoreboard layout. */
body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden])) #opponentCard.wd-blitz-opponent-departed #opponentAvatar{
 visibility:hidden!important;
}
body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden])) #opponentName.wd-blitz-departure-notice{
 font-size:clamp(11px,1.25vw,15px)!important;
 line-height:1.2!important;
 letter-spacing:.1px!important;
 white-space:nowrap!important;
}

 
/* Dome Blitz score readouts: 5% smaller text, unchanged score-box geometry.
   Preserve the player/opponent score positions, cards, dividers and other text.
   Desktop: 30px -> 28.5px. Small screens: 95% of the shared 16-20px clamp. */
body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden])) .game-grid #turnCard > #playerScore,
body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden])) .game-grid #opponentTurnCard > #opponentScore{
 font-size:28.5px!important;
}
@media(max-width:699px){
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden])) .game-grid #turnCard > #playerScore,
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden])) .game-grid #opponentTurnCard > #opponentScore{
  font-size:clamp(15.2px,4.275vw,19px)!important;
 }
}

/* Dome Blitz score typography: +20% over the existing 28.5px desktop
   and 15.2–19px compact readouts. Shared score centering and divider
   removal are defined in ornate-dual-panel-integration.css. */
body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden])) .game-grid #turnCard > #playerScore,
body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden])) .game-grid #opponentTurnCard > #opponentScore{
 font-size:34.2px!important;
}
@media(max-width:699px){
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden])) .game-grid #turnCard > #playerScore,
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden])) .game-grid #opponentTurnCard > #opponentScore{
  font-size:clamp(18.24px,5.13vw,22.8px)!important;
 }
}

/* Dome Blitz header uses the approved Gold UI Banner, which already paints
   the original DOME BLITZ emblem. Do not render a second image on top.
   Guard against older pseudo-element rules that add a duplicate logo. */
body[data-wd-game-type="blitz"]:has(#game:not([hidden]))
#gameTopInfo.top-info > .top-mode::after{
 content:none!important;
 display:none!important;
 background-image:none!important;
}


/* These nodes also exist when the shared page runs Dome Duel. Keep them
   out of the Duel grid even before the first Blitz geometry measurement. */
#game .game-grid > .wd-blitz-message-rail{
 display:none!important;position:absolute!important;pointer-events:none!important;
}

/* Dome Blitz: remove the two white message screens from the visible UI.
   Keep the event model and absolute positioning isolated from game flow.
   Former Dynasty-style two-sided message rails, November 2026.
   Absolute overlays: never change the approved board, rack, clock, or panel
   flow. JavaScript measures the live left/right panels and tile row on every
   layout change; the rails are hidden rather than covering tiles if crowded. */
body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
#game .game-grid{position:relative!important}
body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
#game .game-grid > .wd-blitz-message-rail{
 position:absolute!important;
 box-sizing:border-box!important;
 z-index:15!important;
 display:none!important;
 flex-direction:column!important;
 align-items:center!important;
 justify-content:center!important;
 margin:0!important;
 padding:1px 3px!important;
 min-width:0!important;
 min-height:0!important;
 overflow:hidden!important;
 pointer-events:none!important;
 border:5px solid #5a281c!important;
 border-radius:0!important;
 background:linear-gradient(180deg,#fff6de 0%,#f6e9cd 55%,#e7d4af 100%)!important;
 box-shadow:inset 0 0 0 2px #c68c5b,0 0 0 1px #ad7542,0 3px 5px #1f0b0b99!important;
 color:#0b2b61!important;
 text-shadow:none!important;
 text-align:center!important;
 text-wrap:balance;
 overflow-wrap:anywhere;
 white-space:normal!important;
 font:900 clamp(10px,1.05vw,14px)/1.02 Georgia,'Times New Roman',serif!important;
 letter-spacing:-.15px!important;
}
body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
#game .game-grid > .wd-blitz-message-rail[hidden]{display:none!important}
@media (max-width:1100px){
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #game .game-grid > .wd-blitz-message-rail{
  padding:0 2px!important;
  border-width:4px!important;
  font-size:clamp(9px,1.1vw,12px)!important;
 }
}

/* Both playable starting corners remain ivory, with green stars but
   without the previous green cell borders or glow. Preserve positions. */
body[data-wd-game-type="blitz"]:has(#game:not([hidden])) #game #board > .sq.start:not(.locked):not(.pending):not(.opponent-pending){
 background:var(--wd-blitz-ivory-square)!important;
 border-color:#c5ad86!important;
 box-shadow:inset 0 2px 3px #fff9efaa,inset 0 -2px 3px #c3a57b55!important;
}
body[data-wd-game-type="blitz"]:has(#game:not([hidden])) #game #board > .sq.start:not(.locked):not(.pending):not(.opponent-pending):empty::after{
 content:"★"!important;
 color:#2be765!important;
 -webkit-text-fill-color:#2be765!important;
 -webkit-text-stroke:.8px #116b2e;
 font-size:clamp(11px,2.1vw,27px)!important;
 line-height:1!important;
 text-shadow:0 1px 1px #12411c,0 0 3px #b5ff99!important;
 pointer-events:none;
}


/* Dome Blitz only: opponent tile backs are 20% smaller in both dimensions.
   Preserve the eight original slots, colors and all board/player-rack geometry. */
body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden])) #opponentRack .opponent-tile{
 scale:.8!important;
}


/* One Dynasty-style perimeter around the Blitz assembly, in mahogany/copper.
   Measured paint-only layers never affect flow or intercept game input. */
#game .game-grid > :is(.wd-blitz-assembly-backdrop,.wd-blitz-assembly-outline){display:none!important}
@media(min-width:700px){
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden])) #game .game-grid{isolation:isolate!important}
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #game .game-grid > :is(.wd-blitz-assembly-backdrop,.wd-blitz-assembly-outline):not([hidden]){
  display:block!important;position:absolute!important;box-sizing:border-box!important;
  left:var(--blitz-outline-left);top:var(--blitz-outline-top);
  width:var(--blitz-outline-width);height:var(--blitz-outline-height);
  margin:0;padding:0;pointer-events:none!important;border-radius:7px;
 }
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #game .game-grid > .wd-blitz-assembly-backdrop{
  z-index:-2;background:linear-gradient(155deg,#28110d,#64311e 48%,#2c1510);
 }
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #game .game-grid > .wd-blitz-assembly-outline{
  z-index:2;border:4px solid #a96c43;background:none;
  box-shadow:inset 0 0 0 1px #e0aa7980,0 0 0 1px #401a11,0 5px 14px #16080588;
 }
}

/* Dome Blitz only: three forest-green, gold-edged diamonds rise out of a scored square like Dynasty, without adding more particles.\n   Three modest forest-green diamond sparks replace the
   legacy golden shooting-star and gold tile flash at every bonus square.
   Board diamonds, white squares, green starting stars, scoring and tile faces
   are unchanged. These are visual-only, pointer-transparent particles. */
body[data-wd-game-type="blitz"]:has(#game:not([hidden])) #game #board .sq.tile-lock-in.tile-lock-diamond{
 animation:wdBlitzDiamondLock .58s cubic-bezier(.2,.8,.25,1) var(--lock-delay,0ms) both!important;
}
@keyframes wdBlitzDiamondLock{
 0%{scale:.86;filter:brightness(1);box-shadow:0 0 0 #064b1600}
 30%{scale:1.16;filter:brightness(1.55) drop-shadow(0 0 10px #45e488);box-shadow:0 0 12px 3px #e8c56788}
 62%{scale:.96;filter:brightness(1.24) drop-shadow(0 0 6px #ffdf8a);box-shadow:0 0 6px 1px #064b1644}
 100%{scale:1;filter:brightness(1);box-shadow:inherit}
}
body[data-wd-game-type="blitz"] .wd-blitz-bonus-diamond{
 position:fixed;z-index:10030;pointer-events:none;user-select:none;
 transform:translate(-50%,-50%);
 color:#064B16;-webkit-text-fill-color:#064B16;
 /* Metallic outline differentiates the animated sparks from board diamonds. */
 -webkit-text-stroke:1.7px #f7ce62;
 paint-order:stroke fill;
 /* JS matches this particle to the computed font of an actual board diamond.
    16px remains a safe fallback only when CSS layout cannot be measured. */
 font:900 16px/1 Georgia,serif;
 text-shadow:0 1px 1px #3d2508,0 0 4px #ffd463b3,0 0 9px #d89b2480;
 animation:wdBlitzDiamondFan .82s cubic-bezier(.18,.75,.25,1) both;
}
/* Raise the whole three-diamond fan above the upward-moving +score number;
   keep a visible clear gap at the score animation's 68% peak and fade-out. */
body[data-wd-game-type="blitz"] .wd-blitz-bonus-diamond-0{--wd-dx:-25px;--wd-dy:-102px;--wd-rot:-12deg}
body[data-wd-game-type="blitz"] .wd-blitz-bonus-diamond-1{--wd-dx:0px;--wd-dy:-119px;--wd-rot:0deg}
body[data-wd-game-type="blitz"] .wd-blitz-bonus-diamond-2{--wd-dx:25px;--wd-dy:-102px;--wd-rot:12deg}
/* Dynasty-style launch: all three diamonds emerge from the earned square,
   swell and rise into their existing gold-rimmed fan above the score float. */
@keyframes wdBlitzDiamondFan{
 0%{opacity:0;translate:0 0;scale:.55;rotate:-12deg}
 14%{opacity:1;translate:0 -18px;scale:1.15;rotate:4deg}
 42%{opacity:1;translate:var(--wd-dx) calc(var(--wd-dy) + 18px);scale:1.45;rotate:var(--wd-rot)}
 70%{opacity:.95;translate:var(--wd-dx) var(--wd-dy);scale:1.25;rotate:var(--wd-rot)}
 100%{opacity:0;translate:var(--wd-dx) calc(var(--wd-dy) - 28px);scale:.85;rotate:var(--wd-rot)}
}

/* Dome Blitz Player 2 tile finish, 2026-11-15.
   The rack's inline !important face is assigned in app.js; keep its
   opacity and these board faces solid. Add visual edges without changing
   grid geometry, owner identity, drag/drop, or other games. */
body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
#game .center-panel .rack-panel #rack .tile.player-1{
 opacity:1!important;
 mix-blend-mode:normal!important;
 background-blend-mode:normal!important;
 border-radius:5px!important;
 color:#fff8e9!important;
 -webkit-text-fill-color:#fff8e9!important;
}
body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
#game #board > .sq.locked.tile-orange{
 opacity:1!important;
 mix-blend-mode:normal!important;
 background:linear-gradient(145deg,#985037 0%,#702d20 55%,#42160f 100%)!important;
 background-color:#702d20!important;
 background-blend-mode:normal!important;
 border:1px solid #d7a665!important;
 border-radius:3px!important;
 outline:none!important;
 box-shadow:inset 0 0 0 1px #4c1c13,inset 0 2px 3px #ffe0aa29,0 1px 2px #120504aa!important;
}
body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
#game #board > .sq.pending-player-1{
 opacity:1!important;
 mix-blend-mode:normal!important;
 background:linear-gradient(145deg,#985037 0%,#702d20 55%,#42160f 100%)!important;
 background-color:#702d20!important;
 background-blend-mode:normal!important;
}

/* Dome Blitz mahogany placement frames — white until Play commits the word.
   Only provisional Player 2 letters (local or concealed remote previews).
   Keep the rack's gold trim and committed mahogany board tiles unchanged. */
body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
#game #board > .sq.pending-player-1,
body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
#game #board > .sq.opponent-pending.opponent-player-1{
 border:4px solid #fff!important;
 outline:3px solid #fff!important;
 outline-offset:-3px!important;
}

/* Dome Blitz only: rest the official Sapphire Crown trophy on the painted
   center header plaque. The separate image is absolute/noninteractive so it
   cannot move the Goal/Room Code panels, opponent tiles, board or controls.
   The approved gold banner begins at 16% from the top of this header box. */
#gameTopInfo.top-info > .wd-blitz-header-trophy{
 display:none!important;
}
body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
#gameTopInfo.top-info:not([hidden]) > .wd-blitz-header-trophy{
 display:block!important;
 position:absolute!important;
 left:50%!important;
 bottom:calc(84% - 5px)!important;
 width:clamp(72px,9.8vw,160px)!important;
 height:auto!important;
 max-width:none!important;
 z-index:5!important;
 transform:translateX(-50%)!important;
 object-fit:contain!important;
 pointer-events:none!important;
 user-select:none!important;
 filter:drop-shadow(0 3px 3px #170a0ab3)!important;
}
/* Reduce only the trophy on narrow/short screens; do not resize the header. */
@media(max-width:699px),(max-height:560px){
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #gameTopInfo.top-info:not([hidden]) > .wd-blitz-header-trophy{
  width:min(16vw,72px)!important;
  bottom:calc(84% - 3px)!important;
 }
}

/* Dome Blitz iPad/mobile touch devices: enlarge ONLY the official trophy
   above the in-game header by exactly 10%, without moving its centered
   anchor or changing the header, logo plaque, board or control geometry.
   The desktop width and existing short-screen bottom offset stay intact. */
@media (pointer:coarse){
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #gameTopInfo.top-info:not([hidden]) > .wd-blitz-header-trophy{
  width:clamp(79.2px,10.78vw,176px)!important; /* 1.10 × (72px,9.8vw,160px) */
 }
}
/* Phones and short touch screens keep their compact base sizing, also +10%.
   Never override the existing bottom alignment on narrow screens. */
@media (pointer:coarse) and (max-width:699px),
       (pointer:coarse) and (max-height:560px){
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #gameTopInfo.top-info:not([hidden]) > .wd-blitz-header-trophy{
  width:min(17.6vw,79.2px)!important; /* 1.10 × min(16vw,72px) */
 }
}
