/* Dome Blitz — Dynasty-structured integrated player panels.
   Design scope: BLITZ only. Existing board, racks, controls, clocks,
   messages, player avatars and authoritative game data remain intact.
   The former stacked-box art is superseded, not removed from the repository. */
@media (min-width:700px){
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #game .game-grid > :is(.left-panel,.right-panel){
  --blitz-gold:#e1b557;
  --blitz-gold-light:#f8df9f;
  --blitz-mahogany:#66351d;
  position:relative!important;isolation:isolate!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  grid-template-rows:245px 80px 105px 158px 86px 42px!important;
  align-content:start!important;align-items:stretch!important;
  justify-items:center!important;
  row-gap:7px!important;
  width:auto;min-height:790px!important;height:790px!important;
  box-sizing:border-box!important;
  margin-top:0!important;
  padding:13px 10px 13px!important;
 }
 /* Dynasty's single shared rectangular backplate, translated into
    Blitz's deep-blue center and mahogany/gold double-edged frame. */
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #game .game-grid > :is(.left-panel,.right-panel)::before{
  content:""!important;display:block!important;
  position:absolute!important;
  z-index:-1!important;pointer-events:none!important;
  top:0!important;bottom:auto!important;
  left:-10%!important;width:120%!important;height:100%!important;
  box-sizing:border-box!important;
  border:3px solid #e5b65b!important;border-radius:2px!important;
  background:linear-gradient(90deg,#39180f 0%,#8b4e25 1.5%,#e1b25b 2.1%,#091c46 3.4%,transparent 5%),
    linear-gradient(270deg,#39180f 0%,#8b4e25 1.5%,#e1b25b 2.1%,#091c46 3.4%,transparent 5%),
    linear-gradient(120deg,#071638 0%,#113268 42%,#061630 100%)!important;
  background-image:linear-gradient(90deg,rgba(242,192,98,.2),transparent 7%,transparent 93%,rgba(242,192,98,.2)),
   linear-gradient(165deg,#071733 0%,#103364 45%,#061532 100%)!important;
  background-size:100% 100%!important;
  background-repeat:no-repeat!important;
  background-position:center!important;
  filter:none!important;
  box-shadow:inset 0 0 0 3px #552616,inset 0 0 0 5px #d8a24d,
             inset 0 0 18px 7px #020c25,0 10px 23px #040919b8!important;
 }
 /* The old lower ornamental nameplates are artwork, not live game data.
    Last-move text is retained and re-homed inside each integrated panel. */
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #game .game-grid > :is(.left-panel,.right-panel)::after{
  content:none!important;display:none!important;background:none!important;
 }
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #game .game-grid > .left-panel > #playerCard,
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #game .game-grid > .right-panel > #opponentCard{
  grid-row:1!important;grid-column:1!important;order:1!important;
  position:relative!important;z-index:1!important;
  display:flex!important;flex-direction:column!important;
  align-items:center!important;justify-content:flex-start!important;
  box-sizing:border-box!important;
  width:100%!important;max-width:100%!important;
  height:245px!important;min-height:245px!important;max-height:245px!important;
  padding:5px 0 0!important;margin:0!important;
  border:0!important;border-radius:0!important;
  background:none!important;background-image:none!important;
  box-shadow:none!important;transform:none!important;
 }
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #game .game-grid :is(#playerCard,#opponentCard) > .wd-player-name-banner{
  position:relative!important;inset:auto!important;flex:0 0 51px!important;
  display:flex!important;flex-direction:column!important;
  align-items:center!important;justify-content:center!important;
  box-sizing:border-box!important;
  width:98%!important;max-width:98%!important;
  height:51px!important;min-height:51px!important;
  margin:0 auto 5px!important;padding:3px 5px!important;
  border:1px solid #ebc56e!important;border-radius:0!important;
  background:linear-gradient(180deg,#144786,#092653 64%,#061a3c)!important;
  background-image:linear-gradient(180deg,#144786,#092653 64%,#061a3c)!important;
  box-shadow:inset 0 0 0 1px #512515,0 2px 5px #0008!important;
  transform:none!important;
 }
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #game .game-grid :is(#playerCard,#opponentCard) > .wd-player-name-banner::before,
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #game .game-grid :is(#playerCard,#opponentCard) > .wd-player-name-banner::after{
  content:none!important;display:none!important;
 }
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #game .game-grid .wd-player-name-banner > small{
  position:static!important;z-index:2!important;
  display:block!important;max-width:100%!important;
  margin:0!important;padding:0!important;
  transform:none!important;color:#ffdb76!important;
  font:900 clamp(13px,1.25vw,17px)/1.15 Georgia,serif!important;
  letter-spacing:.05em!important;text-align:center!important;
  text-shadow:0 1px 2px #020c28!important;
  white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
 }
 /* The actual Royal Member badge remains dynamic and is kept visible
    inside the header rather than cut out with the old PNG nameplate. */
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #game .game-grid .wd-player-name-banner > :is(#wdGameRoyalNameBadge,#wdOpponentRoyalNameBadge):not([hidden]){
  display:block!important;position:static!important;
  width:auto!important;max-width:82%!important;height:18px!important;
  max-height:18px!important;object-fit:contain!important;
  margin:1px auto 0!important;transform:none!important;
 }
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #game .game-grid .wd-player-name-banner > :is(#wdGameRoyalNameBadge,#wdOpponentRoyalNameBadge)[hidden]{display:none!important;}
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #game .game-grid :is(#playerCard,#opponentCard) > .wd-avatar-identity{
  position:relative!important;inset:auto!important;
  display:flex!important;align-items:center!important;justify-content:center!important;
  flex:0 0 139px!important;
  box-sizing:border-box!important;
  width:100%!important;height:139px!important;min-height:139px!important;
  margin:0 auto!important;padding:0!important;
  transform:none!important;
 }
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #game .game-grid :is(#playerCard,#opponentCard) > .wd-avatar-identity > .score-avatar{
  position:relative!important;left:auto!important;right:auto!important;
  top:auto!important;bottom:auto!important;
  margin:0 auto!important;transform:none!important;
  max-width:100%!important;max-height:100%!important;
 }
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #game .game-grid :is(#playerCard,#opponentCard) > .wd-avatar-identity::after,
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #game .game-grid :is(#playerCard,#opponentCard)::after{content:none!important;display:none!important;}
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #game .game-grid :is(#playerCard,#opponentCard) > .wd-avatar-account-bar{
  position:relative!important;inset:auto!important;transform:none!important;
  width:96%!important;max-width:96%!important;
  flex:0 0 35px!important;height:35px!important;min-height:35px!important;
  margin:3px auto 0!important;padding:2px 4px!important;
  display:flex!important;align-items:center!important;justify-content:center!important;
  background:linear-gradient(180deg,#10366c,#081e47)!important;
  border:1px solid #b68b4a!important;border-radius:0!important;
  box-shadow:none!important;
 }
 /* Dynasty's separated TIME, TURN / SCORE, BONUS and LAST MOVE regions;
    all existing IDs stay bound to the game's original JavaScript. */
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #game .game-grid > .left-panel > #clock,
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #game .game-grid > .right-panel > #opponentClock{
  grid-row:2!important;grid-column:1!important;order:2!important;
  position:relative!important;top:auto!important;left:auto!important;
  width:100%!important;max-width:100%!important;
  height:80px!important;min-height:80px!important;max-height:80px!important;
  box-sizing:border-box!important;
  margin:0!important;padding:6px 9px!important;
  transform:none!important;
  border:1px solid #d5a753!important;border-radius:0!important;
  background:linear-gradient(180deg,#113669,#081b3e)!important;
  box-shadow:inset 0 0 0 1px #472416!important;
  color:#fff0ba!important;
 }
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #game .game-grid :is(#clock,#opponentClock).countdown-danger{
  background:linear-gradient(180deg,#8b1129,#3d0717)!important;
  border-color:#ff6773!important;
  box-shadow:inset 0 0 0 1px #ffe399,0 0 13px #f4374ca0!important;
 }
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #game .game-grid > .left-panel > #turnCard,
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #game .game-grid > .right-panel > #opponentTurnCard{
  grid-row:3!important;grid-column:1!important;order:3!important;
  display:flex!important;flex-direction:column!important;align-items:center!important;
  justify-content:center!important;gap:4px!important;
  box-sizing:border-box!important;position:relative!important;
  width:100%!important;max-width:100%!important;
  height:105px!important;min-height:105px!important;max-height:105px!important;
  margin:0!important;padding:7px 4px!important;
  border:1px solid #d5a753!important;border-radius:0!important;
  background:linear-gradient(180deg,#0c2956,#061b3d)!important;
  box-shadow:inset 0 0 0 1px #482618!important;transform:none!important;
  overflow:hidden!important;
 }
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #game .game-grid :is(#turnCard,#opponentTurnCard)::before{
  content:"●  TURN"!important;
  display:block!important;position:static!important;
  width:100%!important;height:auto!important;
  margin:0!important;padding:0!important;
  color:#c5ac80!important;white-space:nowrap!important;
  font:700 12px/1.15 Georgia,serif!important;letter-spacing:.13em!important;
  text-shadow:none!important;text-align:center!important;
  box-shadow:none!important;background:none!important;
  border:0!important;transform:none!important;
 }
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #game .game-grid :is(#turnCard,#opponentTurnCard)::after{
  content:"SCORE"!important;
  display:block!important;position:static!important;
  width:100%!important;height:auto!important;
  margin:0!important;padding:0!important;
  font:700 11px/1.15 Georgia,serif!important;
  letter-spacing:.18em!important;color:#e6c784!important;
  background:none!important;border:0!important;box-shadow:none!important;
  transform:none!important;text-align:center!important;
 }
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #game .game-grid .left-panel:has(#playerAvatar:is(.wd-active-turn-p1,.wd-active-turn-p2)) #turnCard::before,
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #game .game-grid .right-panel:has(#opponentAvatar:is(.wd-active-turn-p1,.wd-active-turn-p2)) #opponentTurnCard::before{
  color:#47eb77!important;text-shadow:0 0 7px #47eb7790!important;
 }
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #game .game-grid :is(#turnCard,#opponentTurnCard) > :is(#playerScore,#opponentScore){
  display:block!important;visibility:visible!important;
  position:static!important;inset:auto!important;
  top:auto!important;left:auto!important;right:auto!important;bottom:auto!important;
  flex:none!important;
  width:auto!important;max-width:100%!important;height:auto!important;
  margin:0!important;padding:0!important;
  transform:none!important;
  font:900 clamp(25px,2.7vw,35px)/1.05 Georgia,serif!important;
  text-shadow:0 2px 5px #000b!important;
  text-align:center!important;white-space:nowrap!important;
 }
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #game .game-grid > :is(.left-panel,.right-panel) > .bonus-card{
  grid-row:4!important;grid-column:1!important;order:4!important;
  display:flex!important;flex-direction:column!important;align-items:center!important;
  justify-content:center!important;gap:3px!important;
  position:relative!important;box-sizing:border-box!important;
  width:100%!important;max-width:100%!important;
  height:158px!important;min-height:158px!important;max-height:158px!important;
  margin:0!important;padding:9px 8px!important;
  transform:none!important;
  border:1px solid #d5a753!important;border-radius:0!important;
  background:linear-gradient(180deg,#102e60,#081a3b)!important;
  box-shadow:inset 0 0 0 1px #512817!important;
  overflow:hidden!important;
 }
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #game .game-grid > :is(.left-panel,.right-panel) > .bonus-card > span:first-child{
  position:static!important;inset:auto!important;
  width:100%!important;max-width:100%!important;
  font:900 15px/1.2 Georgia,serif!important;
  color:#ffd36c!important;letter-spacing:.05em!important;
  margin:0 0 5px!important;transform:none!important;text-align:center!important;
 }
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #game .game-grid > :is(.left-panel,.right-panel) > .bonus-card > div{
  position:static!important;inset:auto!important;
  display:flex!important;align-items:center!important;justify-content:space-between!important;
  width:100%!important;max-width:100%!important;
  height:auto!important;min-height:0!important;flex:0 0 auto!important;
  padding:0 5px!important;margin:0!important;
  transform:none!important;
  border:0!important;border-radius:0!important;
  background:none!important;box-shadow:none!important;
  color:#f4e7cc!important;
  font:500 clamp(11px,1.1vw,14px)/1.22 Georgia,serif!important;
 }
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #game .game-grid > :is(.left-panel,.right-panel) > .bonus-card > div > strong{
  font:900 clamp(12px,1.2vw,15px)/1.2 Georgia,serif!important;
  color:#fff2d5!important;
 }
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #game .game-grid > :is(.left-panel,.right-panel) > .bonus-card > .wd-simple-bonus-total{
  position:static!important;
  width:100%!important;max-width:100%!important;
  margin:7px 0 0!important;padding:6px 5px 0!important;
  border-top:1px solid #bd9146!important;
  background:none!important;transform:none!important;
  text-align:left!important;
 }
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #game .game-grid > :is(.left-panel,.right-panel) > .bonus-card > .wd-simple-bonus-total :is(span,strong){
  color:#ffd66d!important;font:900 13px/1.1 Georgia,serif!important;
 }
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #game .game-grid > .left-panel > #playerLastMove,
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #game .game-grid > .right-panel > #opponentLastMove{
  grid-row:5!important;grid-column:1!important;order:5!important;
  position:relative!important;inset:auto!important;top:auto!important;
  left:auto!important;right:auto!important;bottom:auto!important;
  display:flex!important;flex-direction:column!important;
  align-items:center!important;justify-content:center!important;
  box-sizing:border-box!important;overflow:hidden!important;
  width:100%!important;max-width:100%!important;
  height:86px!important;min-height:86px!important;max-height:86px!important;
  margin:0!important;padding:8px 5px!important;
  transform:none!important;z-index:2!important;
  background:linear-gradient(180deg,#0d2c5b,#06152f)!important;
  border:1px solid #d5a753!important;border-radius:0!important;
  box-shadow:inset 0 0 0 1px #4c2618!important;
  color:#fff1c1!important;
  font:700 clamp(12px,1.1vw,15px)/1.2 Georgia,serif!important;
  white-space:normal!important;overflow-wrap:anywhere!important;
  text-overflow:ellipsis!important;text-align:center!important;
  pointer-events:none!important;
 }
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #game .game-grid > :is(.left-panel,.right-panel) > .wd-last-move-plate::before{
  content:"LAST MOVE"!important;display:block!important;
  position:static!important;margin:0 0 6px!important;
  color:#e8c77d!important;letter-spacing:.12em!important;
  font:700 11px/1.1 Georgia,serif!important;
  background:none!important;border:0!important;box-shadow:none!important;
 }
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #game .game-grid > :is(.left-panel,.right-panel) > .wd-last-move-plate:empty::after{
  content:"—"!important;display:block!important;color:#f5dfac!important;
 }
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #game .game-grid > .left-panel > #exitGame{
  grid-row:6!important;grid-column:1!important;order:6!important;
  position:relative!important;inset:auto!important;
  width:95%!important;max-width:95%!important;
  height:42px!important;min-height:42px!important;
  margin:0 auto!important;padding:5px 12px!important;
  transform:none!important;
 }
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #game .game-grid > .left-panel > #roomBanner{grid-row:7!important;grid-column:1!important;}
}
/* Compact phones share the same continuous framed look, but keep the proven
   narrow-screen stacking and do not force desktop-height player panels. */
@media (max-width:699px){
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #game .game-grid > :is(.left-panel,.right-panel){
  position:relative!important;isolation:isolate!important;
  border:2px solid #d4a65b!important;border-radius:0!important;
  padding:8px 5px 10px!important;
  background:linear-gradient(160deg,#09244f,#07162f)!important;
  box-shadow:inset 0 0 0 2px #4d2618!important;
 }
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #game .game-grid > :is(.left-panel,.right-panel)::before,
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #game .game-grid > :is(.left-panel,.right-panel)::after{
  content:none!important;display:none!important;
 }
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #game .game-grid > :is(.left-panel,.right-panel) > :is(#playerCard,#opponentCard,#clock,#opponentClock,#turnCard,#opponentTurnCard,.bonus-card,#playerLastMove,#opponentLastMove){
  position:relative!important;inset:auto!important;transform:none!important;
  box-sizing:border-box!important;
  width:100%!important;max-width:100%!important;
  margin:0!important;border-radius:0!important;
  border:1px solid #c69b50!important;
  background:linear-gradient(180deg,#0f3267,#071a3a)!important;
  box-shadow:none!important;
 }
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #game .game-grid > :is(.left-panel,.right-panel) > :is(#playerLastMove,#opponentLastMove){
  display:flex!important;align-items:center!important;justify-content:center!important;
  padding:6px!important;min-height:40px!important;
 }
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #game .game-grid > :is(.left-panel,.right-panel) > :is(#playerLastMove,#opponentLastMove)::before{
  content:"LAST MOVE · "!important;color:#e8be69!important;
 }
}
/* Approved message rails: creamy ivory and heavier mahogany framing.
   Mirror the Blitz-only base skin, including its 10%-taller measured bars.
   Keep this rule in the later-loaded panel stylesheet so old Dynasty-parity
   gold rail paint cannot override the approved new finish. */
body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
#game .game-grid > .wd-blitz-message-rail:not([hidden]){
 border:5px solid #5a281c!important;
 background:linear-gradient(180deg,#fff6de 0%,#f6e9cd 55%,#e7d4af 100%)!important;
 color:#0b2a5c!important;
 box-shadow:inset 0 0 0 2px #c68c5b,0 0 0 1px #ad7542,0 3px 5px #1f0b0b99!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:not([hidden]){
  border-width:4px!important;
 }
}


/* Final Dynasty parity: TIME remains a framed inset, while TURN/SCORE, BONUS
   and LAST MOVE are sections of one uninterrupted outer panel, separated by
   thin horizontal gold rules rather than three detached boxes. */
@media(min-width:700px){
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #game .game-grid > :is(.left-panel,.right-panel) > :is(#turnCard,#opponentTurnCard,.bonus-card,#playerLastMove,#opponentLastMove){
  border:0!important;border-top:2px solid #b98843!important;
  border-radius:0!important;
  background:transparent!important;background-image:none!important;
  box-shadow:none!important;
 }
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #game .game-grid > :is(.left-panel,.right-panel) > :is(#turnCard,#opponentTurnCard,.bonus-card,#playerLastMove,#opponentLastMove){
  padding-left:3px!important;padding-right:3px!important;
 }
}
/* Side-by-side touch layouts narrower than a desktop: keep the complete
   gold outer frame within the screen instead of clipping portraits or trim. */
@media(min-width:700px) and (max-width:1050px){
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #game .game-grid > .left-panel{transform:translateX(-4%)!important;}
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #game .game-grid > .right-panel{transform:translateX(4%)!important;}
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #game .game-grid > :is(.left-panel,.right-panel) > .bonus-card{
  padding:8px 2px!important;gap:3px!important;
 }
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #game .game-grid > :is(.left-panel,.right-panel) > .bonus-card > span:first-child{
  font-size:clamp(10px,1.4vw,13px)!important;letter-spacing:0!important;
 }
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #game .game-grid > :is(.left-panel,.right-panel) > .bonus-card > div{
  padding:0 1px!important;gap:3px!important;font-size:clamp(9px,1.15vw,11px)!important;
 }
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #game .game-grid > :is(.left-panel,.right-panel) > .bonus-card > div > strong{
  flex-shrink:0!important;font-size:clamp(10px,1.2vw,12px)!important;
 }
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #game .game-grid > :is(.left-panel,.right-panel) > .bonus-card > .wd-simple-bonus-total{
  padding:6px 1px 0!important;gap:2px!important;
 }
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #game .game-grid > :is(.left-panel,.right-panel) > .bonus-card > .wd-simple-bonus-total :is(span,strong){
  flex-shrink:0!important;font-size:clamp(9px,1.1vw,11px)!important;letter-spacing:-.2px!important;
 }
}


/* Preserve the approved single green GO frame around the active player's
   portrait after the detached Blitz artwork is replaced. Its center follows
   the actual live avatar, not the old PNG's off-center painted well. */
@media(min-width:700px){
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #game .game-grid :is(#playerCard,#opponentCard) > .wd-avatar-identity:has(> .score-avatar:is(.wd-active-turn-p1,.wd-active-turn-p2))::after{
  content:""!important;display:block!important;
  position:absolute!important;box-sizing:border-box!important;
  top:50%!important;left:50%!important;right:auto!important;bottom:auto!important;
  width:min(100%,147px)!important;height:147px!important;
  border:6px solid #41e568!important;border-radius:18px!important;
  background:none!important;box-shadow:0 0 6px #41e56890!important;
  filter:none!important;transform:translate(-50%,-50%)!important;
  z-index:4!important;pointer-events:none!important;
 }
}


/* 2026-11-03 — Dynasty fidelity revision:
   bonus breakdowns are NOT separate in-game boxes in Dynasty. Keep the
   existing live bonus data IDs in the document for state/accounting; show
   award feedback in the message rails rather than a bonus scoreboard. */
body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
#game .game-grid > :is(.left-panel,.right-panel) > .bonus-card{
 display:none!important;visibility:hidden!important;
 grid-row:auto!important;position:absolute!important;
 width:0!important;height:0!important;min-height:0!important;
 margin:0!important;padding:0!important;
 overflow:hidden!important;pointer-events:none!important;
}

/* MATCH DYNASTY: TIME, TURN/SCORE and LAST MOVE, with equal-height open
   lower sections and no BONUS compartment. Keep EXIT's original handler. */
@media(min-width:700px){
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #game .game-grid > :is(.left-panel,.right-panel){
  height:700px!important;min-height:700px!important;max-height:700px!important;
  padding:10px!important;row-gap:5px!important;
  grid-template-rows:245px 80px minmax(0,1fr) minmax(0,1fr) 42px!important;
 }
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #game .game-grid > :is(.left-panel,.right-panel) > :is(#turnCard,#opponentTurnCard){
  grid-row:3!important;order:3!important;
  height:100%!important;min-height:0!important;max-height:none!important;
  padding:8px 3px!important;
  border-top:0!important;
  justify-content:center!important;
 }
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #game .game-grid > :is(.left-panel,.right-panel) > :is(#playerLastMove,#opponentLastMove){
  grid-row:4!important;order:4!important;
  height:100%!important;min-height:0!important;max-height:none!important;
  border-top:2px solid #bd9146!important;
  padding:16px 3px 5px!important;
  gap:7px!important;
 }
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #game .game-grid > .left-panel > #exitGame{
  grid-row:5!important;order:5!important;
 }
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #game .game-grid > .left-panel > #roomBanner{
  grid-row:6!important;
 }
}

/* DOME DYNASTY SQUARE AVATARS: Blitz game-room avatars only.
   No changes to the Home account portrait, Duel or victory cards.
   Preserve the image source and cropping behavior and use square
   gold-edged portraits for both the local and remote seats. */
body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
#game .game-grid :is(#playerAvatar,#opponentAvatar).score-avatar{
 box-sizing:border-box!important;
 aspect-ratio:1 / 1!important;
 border-radius:0!important;
 overflow:hidden!important;
 background-clip:padding-box!important;
 background-position:center center!important;
 background-repeat:no-repeat!important;
}
@media(min-width:700px){
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #game .game-grid :is(#playerAvatar,#opponentAvatar).score-avatar{
  width:128px!important;height:128px!important;
  min-width:128px!important;min-height:128px!important;
  max-width:128px!important;max-height:128px!important;
  flex:0 0 128px!important;
  border-radius:0!important;
 }
 /* The existing green turn frame must also be square, concentric with
    the square portrait (not an oval or rounded-rectangle). */
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #game .game-grid :is(#playerCard,#opponentCard) > .wd-avatar-identity:has(> .score-avatar:is(.wd-active-turn-p1,.wd-active-turn-p2))::after{
  border-radius:0!important;
  width:140px!important;height:140px!important;
  top:50%!important;left:50%!important;
  transform:translate(-50%,-50%)!important;
 }
}
@media(max-width:699px){
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #game .game-grid :is(#playerAvatar,#opponentAvatar).score-avatar{
  box-sizing:border-box!important;
  width:clamp(42px,18vw,86px)!important;
  height:clamp(42px,18vw,86px)!important;
  min-width:0!important;min-height:0!important;
  max-width:100%!important;max-height:none!important;
  flex:0 0 auto!important;
  border-radius:0!important;
 }
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #game .game-grid :is(#playerAvatar,#opponentAvatar):is(.wd-active-turn-p1,.wd-active-turn-p2)::after{
  border-radius:0!important;
 }
}


/* 2026-11-04: Restore full in-viewport Blitz gameplay on short desktop
   and landscape tablets. Blitz already paints its real logo inside the
   approved GOAL/DOME BLITZ/ROOM CODE banner. The legacy .brand header
   above it is an empty 187px-high box, which pushed the entire board,
   lower rack, actions and LAST MOVE below the window.
   Keep the actual board's dimensions, tiles, PNG artwork and all handlers. */
@media (min-width:1100px) and (max-height:950px),
       (min-width:700px) and (max-width:1099px) and (orientation:landscape) and (max-height:900px){
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 .brand.brand-art{
  display:none!important;
  height:0!important;min-height:0!important;
  margin:0!important;padding:0!important;
 }
 /* Compress only the transparent banner's vertical breathing room;
    preserve the logo image and all three live goal/code elements. */
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #gameTopInfo.top-info{
  height:clamp(90px,11.5dvh,105px)!important;
  min-height:clamp(90px,11.5dvh,105px)!important;
  margin:0 auto 1px!important;
  transform:none!important;
 }
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #game .game-grid{
  margin-top:0!important;
 }
 /* Keep the unchanged 128px square portraits and independent Blitz timers;
    share the saved space between TURN/SCORE and LAST MOVE, Dynasty-style. */
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #game .game-grid > :is(.left-panel,.right-panel){
  height:620px!important;
  min-height:620px!important;
  max-height:620px!important;
  padding-top:10px!important;
  padding-bottom:10px!important;
  row-gap:5px!important;
  grid-template-rows:245px 78px 108px minmax(0,1fr) 38px!important;
 }
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #game .game-grid > :is(.left-panel,.right-panel) > :is(#clock,#opponentClock){
  height:100%!important;
  min-height:0!important;
  max-height:none!important;
 }
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #game .game-grid > .left-panel > #exitGame{
  height:38px!important;min-height:38px!important;max-height:38px!important;
 }
}


/* The board now fits, but the old 120%-wide ornamental rack consumed
   unnecessary vertical height below it. On SHORT wide layouts only,
   scale the complete eight-slot rack uniformly and retain its original
   36:11 art/slot aspect ratio; never scale board squares or change tile
   drag event handlers. Keep all eight wells visually centered. */
@media (min-width:1100px) and (max-height:950px),
       (min-width:700px) and (max-width:1099px) and (orientation:landscape) and (max-height:900px){
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #game .center-panel > .rack-panel{
  width:92%!important;
  max-width:92%!important;
  height:auto!important;min-height:0!important;
  aspect-ratio:36/11!important;
  position:relative!important;
  left:50%!important;
  transform:translateX(-50%)!important;
  margin:2px auto 0!important;
 }
 /* Two rows of functional controls stay entirely below the art and
    remain wide enough for touch; only their excess height and gaps shrink. */
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #game .center-panel > :is(.actions.rack-actions,.wd-under-rack-controls){
  margin:3px auto 0!important;
  gap:5px!important;
 }
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #game .center-panel > :is(.actions.rack-actions,.wd-under-rack-controls) > button{
  box-sizing:border-box!important;
  height:40px!important;min-height:40px!important;max-height:40px!important;
  padding:5px 3px!important;
  line-height:1.05!important;
 }
}


/* Preserve the original Blitz logo banner proportions on short screens.
   Its painted art is clipped to the middle 21–76% of a larger transparent
   PNG. Paint that layer at its readable height without allocating additional
   layout space (which would push the controls off-screen). The visual
   15–80px artwork range stays entirely above the opponent message rail. */
@media (min-width:1100px) and (max-height:950px),
       (min-width:700px) and (max-width:1099px) and (orientation:landscape) and (max-height:900px){
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #gameTopInfo.top-info::before{
  inset:auto!important;
  left:0!important;
  right:0!important;
  top:-12px!important;
  width:100%!important;
  height:128px!important;
  background-size:100% 100%!important;
 }
}


/* Dome Blitz: Dome Dynasty Option 4 control buttons, adapted to Blitz's
   approved blue / mahogany / gold palette. Reuse all eight live action
   elements and their original IDs/listeners. Like Dynasty, the six gameplay
   commands share one uninterrupted horizontal row, directly below the rack;
   the additional Blitz Rules and Exit actions remain accessible on row two.
   Never resize the board, replace icons with event handlers, or move the rack. */
body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
#game .center-panel > .wd-royal-controls.wd-under-rack-controls{
 display:grid!important;
 grid-template-columns:repeat(6,minmax(0,1fr))!important;
 grid-template-rows:repeat(2,minmax(0,auto))!important;
 gap:clamp(3px,.5vw,6px)!important;
 align-content:start!important;align-items:stretch!important;
 width:100%!important;max-width:100%!important;
 min-width:0!important;
 padding:0!important;
 /* Retain the previously verified rack/controls separation and 85px
    short-viewport controls footprint. */
 position:relative!important;
 z-index:16!important;
 /* Old shared stylesheet applies translateY(-35px) to controls under rack.
    Cancel only in Blitz: preserve the approved rack/controls clearance. */
 transform:none!important;
}
body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
#game .center-panel > .wd-royal-controls.wd-under-rack-controls > button{
 display:flex!important;flex-direction:row!important;
 align-items:center!important;justify-content:center!important;
 gap:4px!important;
 box-sizing:border-box!important;
 width:100%!important;min-width:0!important;max-width:100%!important;
 margin:0!important;
 padding:5px 2px!important;
 min-height:42px!important;height:42px!important;max-height:42px!important;
 flex:none!important;white-space:nowrap!important;
 border:3px ridge #c8a15a!important;border-radius:9px!important;
 background:linear-gradient(180deg,#234674 0%,#101e39 100%)!important;
 color:#fbe8b7!important;
 -webkit-text-fill-color:#fbe8b7!important;
 box-shadow:inset 0 0 0 1px #70401e,0 3px 5px #160b14a3!important;
 font:700 clamp(10px,1.04vw,16px)/1.1 Georgia,'Times New Roman',serif!important;
 text-shadow:0 1px 2px #071128!important;
 letter-spacing:0!important;
 touch-action:manipulation!important;
 cursor:pointer!important;
}
body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
#game .center-panel > .wd-royal-controls.wd-under-rack-controls > button .wd-action-icon{
 display:none!important;
}
/* The six primary gameplay controls match Dynasty's order. */
body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
#game .center-panel > .wd-royal-controls > #play{grid-column:1!important;grid-row:1!important;order:1!important}
body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
#game .center-panel > .wd-royal-controls > #shuffle{grid-column:2!important;grid-row:1!important;order:2!important}
body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
#game .center-panel > .wd-royal-controls > #exchange{grid-column:3!important;grid-row:1!important;order:3!important}
body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
#game .center-panel > .wd-royal-controls > #pass{grid-column:4!important;grid-row:1!important;order:4!important}
body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
#game .center-panel > .wd-royal-controls > #undo{grid-column:5!important;grid-row:1!important;order:5!important}
body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
#game .center-panel > .wd-royal-controls > #resign{grid-column:6!important;grid-row:1!important;order:6!important}
body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
#game .center-panel > .wd-royal-controls > #gameRulesControl{
 grid-column:2 / span 2!important;grid-row:2!important;order:7!important;
}
body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
#game .center-panel > .wd-royal-controls > #exitGame{
 grid-column:4 / span 2!important;grid-row:2!important;order:8!important;
 position:relative!important;inset:auto!important;transform:none!important;
 justify-self:stretch!important;align-self:stretch!important;
}
/* The Play box copies Dynasty's distinct double-gold framing and sole
   gold arrow; existing DOM icon is hidden to avoid two triangles. */
body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
#game .center-panel > .wd-royal-controls > #play{
 background:linear-gradient(180deg,#17519a,#061b46)!important;
 color:#ffe592!important;-webkit-text-fill-color:#ffe592!important;
 border:3px solid #eebf50!important;border-radius:8px!important;
 box-shadow:inset 0 0 0 2px #102f69,inset 0 0 0 4px #ffdd76,
  0 0 0 1px #9e651b,0 3px 6px #12051b88!important;
 text-shadow:0 1px 1px #071b41!important;
}
body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
#game .center-panel > .wd-royal-controls > #play::before{
 content:'▶'!important;
 display:inline!important;position:static!important;
 font-size:.84em!important;color:#ffd459!important;
 -webkit-text-fill-color:#ffd459!important;
 text-shadow:0 0 2px #b67919!important;
 border:0!important;background:none!important;
}
body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
#game .center-panel > .wd-royal-controls > #resign{
 background:linear-gradient(180deg,#782b30,#37121b)!important;
 border-color:#dfb46e!important;
 color:#ffedc1!important;-webkit-text-fill-color:#ffedc1!important;
}
body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
#game .center-panel > .wd-royal-controls > :is(#gameRulesControl,#exitGame){
 background:linear-gradient(180deg,#603922,#211927)!important;
 border-color:#ad8550!important;
 color:#fbe3b5!important;-webkit-text-fill-color:#fbe3b5!important;
}
/* Dynasty-style visual affordances, retaining genuine disabled state and
   keyboard focus. Do not make a disabled control actionable. */
body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
#game .center-panel > .wd-royal-controls > button:hover:not(:disabled){
 filter:brightness(1.16)!important;
 box-shadow:inset 0 0 0 1px #d6aa59,0 0 10px #f2c96b77!important;
}
body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
#game .center-panel > .wd-royal-controls > button:focus-visible{
 outline:3px solid #fff7d6!important;outline-offset:2px!important;
}
body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
#game .center-panel > .wd-royal-controls > button:disabled{
 opacity:.55!important;cursor:not-allowed!important;filter:none!important;
}
/* Short game heights retain the verified two-row 85px footprint. */
@media(min-width:700px) and (max-height:950px){
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #game .center-panel > .wd-royal-controls.wd-under-rack-controls > button{
  height:40px!important;min-height:40px!important;max-height:40px!important;
  font-size:clamp(9px,1vw,14px)!important;
 }
}
/* Phones have three primary buttons per row, then Rules and Exit.
   All eight actions remain reachable without a sideways scroll. */
@media(max-width:699px){
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #game .center-panel > .wd-royal-controls.wd-under-rack-controls{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  grid-template-rows:repeat(3,minmax(0,auto))!important;
  gap:5px!important;
 }
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #game .center-panel > .wd-royal-controls.wd-under-rack-controls > button{
  height:44px!important;min-height:44px!important;max-height:44px!important;
  padding:5px 2px!important;font-size:clamp(11px,3vw,14px)!important;
 }
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #game .center-panel > .wd-royal-controls > #play{grid-column:1!important;grid-row:1!important}
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #game .center-panel > .wd-royal-controls > #shuffle{grid-column:2!important;grid-row:1!important}
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #game .center-panel > .wd-royal-controls > #exchange{grid-column:3!important;grid-row:1!important}
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #game .center-panel > .wd-royal-controls > #pass{grid-column:1!important;grid-row:2!important}
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #game .center-panel > .wd-royal-controls > #undo{grid-column:2!important;grid-row:2!important}
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #game .center-panel > .wd-royal-controls > #resign{grid-column:3!important;grid-row:2!important}
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #game .center-panel > .wd-royal-controls > #gameRulesControl{grid-column:1!important;grid-row:3!important}
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #game .center-panel > .wd-royal-controls > #exitGame{grid-column:3!important;grid-row:3!important}
}


/* Nov 4: Dynasty layout parity — the mahogany player-column headers start
   EXACTLY at the actual transformed Blitz board top. The rail controller
   computes --blitz-panel-board-offset from live game geometry; this leaves
   the opponent's eight tiles AND messages in a distinct row above both
   player panels and above the playable board. */
@media(min-width:700px){
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #game .game-grid > :is(.left-panel,.right-panel){
  top:var(--blitz-panel-board-offset,0px)!important;
 }
}
/* Continuous Dynasty-style mahogany panels and gold dividers:
   no blue panel fill and no modifications to board/tile/logo artwork. */
body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
#game .game-grid > :is(.left-panel,.right-panel){
 --blitz-mahogany:#61301f!important;
 --blitz-gold:#e7bb66!important;
}
body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
#game .game-grid > :is(.left-panel,.right-panel)::before{
 background:linear-gradient(90deg,#9a6139 0%,transparent 9%,transparent 91%,#9a6139 100%),
  linear-gradient(155deg,#28110d 0%,#64311e 36%,#713923 57%,#2c1510 100%)!important;
 background-image:linear-gradient(90deg,#9a613955,transparent 10%,transparent 90%,#9a613955),
  linear-gradient(155deg,#28110d 0%,#64311e 36%,#713923 57%,#2c1510 100%)!important;
 border-color:#e6b86a!important;
 box-shadow:inset 0 0 0 3px #35120b,inset 0 0 0 5px #dba956,
  inset 0 0 15px #240c08,0 8px 20px #100808aa!important;
}
body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
#game .game-grid :is(#playerCard,#opponentCard) > .wd-player-name-banner{
 background:linear-gradient(180deg,#8a482b 0%,#542416 72%,#331710 100%)!important;
 background-image:linear-gradient(180deg,#8a482b 0%,#542416 72%,#331710 100%)!important;
 border-color:#edc980!important;
 box-shadow:inset 0 0 0 1px #32100b,0 2px 5px #120705b0!important;
}
body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
#game .game-grid :is(#playerCard,#opponentCard) > .wd-avatar-account-bar{
 background:linear-gradient(180deg,#68301b,#361911)!important;
 border-color:#d2a65d!important;
}
body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
#game .game-grid > :is(.left-panel,.right-panel) > :is(#clock,#opponentClock){
 background:linear-gradient(180deg,#6b3523,#361b15)!important;
 border-color:#d2a65d!important;
 box-shadow:inset 0 0 0 1px #2f140d!important;
}
body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
#game .game-grid > :is(.left-panel,.right-panel) > :is(#turnCard,#opponentTurnCard,#playerLastMove,#opponentLastMove){
 background:transparent!important;background-image:none!important;
 color:#f8e3b2!important;border-top-color:#d4a85d!important;
 box-shadow:none!important;
}
@media(max-width:699px){
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #game .game-grid > :is(.left-panel,.right-panel){
  background:linear-gradient(155deg,#2f1611,#733b24 55%,#2d150e)!important;
  border-color:#dcac62!important;
  box-shadow:inset 0 0 0 2px #39170e!important;
 }
}
/* Only SIX Dynasty controls. Keep old Rules/Exit DOM nodes for safe
   shared-page event binding, but remove them from Blitz presentation.
   They remain available in Dome Duel where they are required. */
body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
#game .center-panel > .wd-royal-controls.wd-under-rack-controls > :is(#gameRulesControl,#exitGame){
 display:none!important;visibility:hidden!important;pointer-events:none!important;
}
body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
#game .center-panel > .wd-royal-controls.wd-under-rack-controls{
 grid-template-rows:minmax(0,auto)!important;
}
@media(max-width:699px){
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #game .center-panel > .wd-royal-controls.wd-under-rack-controls{
  grid-template-rows:repeat(2,minmax(0,auto))!important;
 }
}


/* Clock urgency remains meaningful: red timeout warnings override the
   normal mahogany clock skin when Blitz enters its danger state. */
body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
#game .game-grid > :is(.left-panel,.right-panel) > :is(#clock,#opponentClock).countdown-danger{
 background:linear-gradient(180deg,#8b1129,#3d0717)!important;
 border-color:#ff6773!important;
 box-shadow:inset 0 0 0 1px #ffe399,0 0 13px #f4374ca0!important;
}


/* Visual approval refinement: keep the real square player avatars INSIDE
   the slim mahogany player frames on iPad portrait. The original fixed
   128px avatar overflows the 106–127px inner panel in portrait mode.
   Scale only the portrait and the concentric green active-turn outline;
   leave artwork sources, scores and active-turn behavior untouched. */
@media (min-width:700px) and (max-width:1099px) and (orientation:portrait){
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #game .game-grid :is(#playerAvatar,#opponentAvatar).score-avatar{
  width:min(112px,calc(100% - 12px))!important;
  height:auto!important;
  aspect-ratio:1 / 1!important;
  min-width:0!important;min-height:0!important;
  max-width:calc(100% - 12px)!important;max-height:none!important;
  flex:0 0 auto!important;
  border-radius:0!important;
 }
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #game .game-grid :is(#playerCard,#opponentCard) > .wd-avatar-identity:has(> .score-avatar:is(.wd-active-turn-p1,.wd-active-turn-p2))::after{
  width:min(120px,calc(100% - 2px))!important;
  height:auto!important;
  aspect-ratio:1 / 1!important;
  border-width:5px!important;
  border-radius:0!important;
 }
}
/* In-game events appear in the two approved message rails above the board.
   Do not duplicate the old generic "Waiting for the first play" line
   between the logo and those rails in Dome Blitz. */
body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
#game .center-panel > #lastAction{
 display:none!important;
}


/* Dynasty board spacing: use the panel's REAL footprint instead of
   the old 120%-wide pseudo-element overflowing into the playable board.
   A 4px inward shift retains a narrow, consistent visual gap on
   desktop and landscape iPad; portrait keeps its independent layout. */
@media (min-width:1100px),
       (min-width:700px) and (max-width:1099px) and (orientation:landscape){
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #game .game-grid > .left-panel{
  transform:translateX(4px)!important;
 }
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #game .game-grid > .right-panel{
  transform:translateX(-4px)!important;
 }
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #game .game-grid > :is(.left-panel,.right-panel)::before{
  left:0!important;width:100%!important;
 }
}


/* Release review: iPad portrait's narrow integrated mahogany panels have
   106–130px timer cards. The legacy 30px clock dial and desktop-size 5:00
   numerals overlap there. Preserve the working clock/readout and dial,
   reduce only the artwork/digit spacing in portrait-sized side panels. */
@media (min-width:700px) and (max-width:1099px) and (orientation:portrait){
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #game .game-grid > :is(.left-panel,.right-panel) > :is(#clock,#opponentClock){
  padding:5px 3px 5px 23px!important;
  gap:1px!important;
  min-width:0!important;
 }
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #game .game-grid :is(#clock,#opponentClock) > .wd-blitz-clock-time{
  font-size:clamp(17px,2vw,22px)!important;
  line-height:1.05!important;
  letter-spacing:0!important;
  white-space:nowrap!important;
  flex-shrink:0!important;
 }
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #game .game-grid :is(#clock,#opponentClock) > .wd-blitz-clock-status{
  font-size:clamp(8px,1vw,10px)!important;
  line-height:1.1!important;
  letter-spacing:0!important;
  white-space:nowrap!important;
 }
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #game .game-grid > :is(.left-panel,.right-panel) > :is(#clock,#opponentClock)::before{
  left:3px!important;width:17px!important;height:17px!important;
 }
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #game .game-grid > :is(.left-panel,.right-panel) > :is(#clock,#opponentClock)::after{
  left:5px!important;width:13px!important;height:13px!important;
 }
}


/* Dome Blitz — Dynasty-approved FUNCTION ORDER, 2026-11-04.
   Move the existing live controls visually; never reparent their DOM or
   replace player names, Royal badges, ratings, avatars, clocks or listeners.
   Preserve all original Blitz mahogany/gold/blue artwork and board colors. */
@media (min-width:700px){
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #game .game-grid :is(#playerCard,#opponentCard){
  padding-top:3px!important;
  justify-content:flex-start!important;
 }
 /* The portrait MUST lead each column, rather than the old title banner. */
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #game .game-grid :is(#playerCard,#opponentCard) > .wd-avatar-identity{
  order:1!important;
  flex:0 0 139px!important;
  margin:0 auto!important;
 }
 /* Name (including any genuine Royal crest) directly under the portrait. */
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #game .game-grid :is(#playerCard,#opponentCard) > .wd-player-name-banner{
  order:2!important;
  flex:0 0 47px!important;
  min-height:47px!important;height:47px!important;max-height:47px!important;
  margin:0 auto 2px!important;
 }
 /* Keep the live Rating/Stats actions attached immediately to the name. */
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #game .game-grid :is(#playerCard,#opponentCard) > .wd-avatar-account-bar{
  order:3!important;
  flex:0 0 39px!important;
  height:39px!important;min-height:39px!important;max-height:39px!important;
  margin:1px auto 0!important;
 }
 /* Order below the identity card is already Clock → Turn/Score → Last Move.
    Dynasty's open lower flow does not add divider rules beneath the clock. */
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #game .game-grid > :is(.left-panel,.right-panel) > :is(#turnCard,#opponentTurnCard){
  border-top:0!important;border-bottom:0!important;
  box-shadow:none!important;
 }
 /* Keep an actual distinct Last Move box rather than a loose caption. */
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #game .game-grid > :is(.left-panel,.right-panel) > :is(#playerLastMove,#opponentLastMove){
  border:1px solid #d4a85d!important;
  background-image:none!important;
 }
}
/* Eight individual live opponent backs, with NO rectangular rack enclosure
   or extra tile heading. The finished-game winner flash stays attached to
   its existing DOM host, so result/replay behavior remains unchanged. */
body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
#game .center-panel > #opponentRackPanel{
 background:transparent!important;background-image:none!important;
 border:0!important;border-radius:0!important;
 box-shadow:none!important;outline:0!important;
 padding:0!important;
 overflow:visible!important;
}
body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
#game .center-panel > #opponentRackPanel > #opponentRackTitle{
 display:none!important;
}
body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
#game .center-panel > #opponentRackPanel > #opponentRack{
 background:transparent!important;
 border:0!important;box-shadow:none!important;outline:0!important;
}


/* Dome Blitz — rest the eight free-standing opponent tiles AND the two
   Dynasty-style live message rails directly on top of the board frame.
   This variable is maintained by the existing Blitz rail layout controller,
   using the board's *rendered* top edge. Translate the rack VISUALLY rather
   than changing document flow (which would push the board down too).
   Keep the original seat-specific tile backs and 5% vertical rack scaling.
   On narrow phone layouts preserve the existing stacked geometry. */
@media(min-width:700px){
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #game .center-panel > #opponentRackPanel{
  transform:translateY(var(--blitz-rail-to-board-drop,0px)) scaleY(1.05)!important;
  transform-origin:center top!important;
 }
}

/* Approved Dome Blitz top-row refinement: eight opponent tile backs touch
   visually with no exposed sky/background between adjacent tiles. Preserve
   their face colors, actual tile count, and all board/interaction geometry. */
body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
#game .center-panel > #opponentRackPanel > #opponentRack{
 gap:0!important;
}
body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
#game .center-panel > #opponentRackPanel > #opponentRack > .opponent-tile{
 margin-left:0!important;margin-right:0!important;
 transform:scale(1.04)!important;
 transform-origin:center center!important;
 flex-shrink:0!important;
}

/* Dome Blitz — approved taller top row, near-flush player/board spacing,
   uninterrupted Last Move section, and authoritative TURN lamps.
   All changes are confined to active Blitz; Duel and Dynasty are unchanged. */

/* The current eight free-standing tile backs are 20% taller, not wider.
   The message rails measure these tiles, so their existing 1.1:1 height
   ratio makes BOTH message bars exactly 20% taller than before as well.
   The rail controller maintains 10px clearance above the board. */
body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
#game .center-panel > #opponentRackPanel > #opponentRack > .opponent-tile{
 transform:scale(1.04,1.248)!important;
}

/* Previous 38px game-grid column spacing -> 0.38px (99% reduction).
   Keep board sizing, center alignment and tablet/desktop panel artwork. */
@media(min-width:700px){
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #game .game-grid{
  column-gap:0.38px!important;
 }
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #game .game-grid > :is(.left-panel,.right-panel){
  transform:none!important;
 }
}

/* The score and Last Move share one continuous mahogany surface.
   Clear the horizontal border between them, the small empty-state dash,
   and any lower Last Move border; retain its real game text and label. */
body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
#game .game-grid > :is(.left-panel,.right-panel) > :is(#playerLastMove,#opponentLastMove){
 border:0!important;
 border-top:0!important;
 border-bottom:0!important;
 outline:0!important;
 box-shadow:none!important;
 background:transparent!important;
 background-image:none!important;
}
body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
#game .game-grid > :is(.left-panel,.right-panel) > :is(#playerLastMove,#opponentLastMove):empty::after{
 content:none!important;
 display:none!important;
}
/* The old upper caption/short line comes from a pseudo-element.
   Keep LAST MOVE itself, but omit the added punctuation. */
body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
#game .game-grid > :is(.left-panel,.right-panel) > :is(#playerLastMove,#opponentLastMove)::before{
 content:"LAST MOVE"!important;
}

/* Use existing actual-turn avatar classes, which are updated from server
   turn state and cleared during opening, waiting and final result. */
body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
#game .game-grid :is(#turnCard,#opponentTurnCard)::before{
 content:none!important;display:none!important;
}
body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
#game .game-grid :is(#turnCard,#opponentTurnCard) > .wd-blitz-turn-indicator{
 /* Legacy ornate-dual-panel-integration.css hides all direct Turn children.
    Explicitly reveal this one Blitz-only interactive-state display. */
 visibility:visible!important;
 display:flex!important;
 flex:0 0 auto!important;
 flex-direction:row!important;
 align-items:center!important;
 justify-content:center!important;
 gap:clamp(12px,2vw,23px)!important;
 width:100%!important;
 min-width:0!important;
 height:27px!important;
 margin:0!important;
 padding:0!important;
 border:0!important;
 background:none!important;
 box-shadow:none!important;
}
body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
#game .game-grid :is(#turnCard,#opponentTurnCard) > .wd-blitz-turn-indicator > .wd-blitz-turn-label{
 color:#fff!important;
 font:900 clamp(14px,1.5vw,18px)/1 Georgia,'Times New Roman',serif!important;
 letter-spacing:.035em!important;
 text-shadow:0 1px 2px #160705!important;
 white-space:nowrap!important;
}
body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
#game .game-grid :is(#turnCard,#opponentTurnCard) > .wd-blitz-turn-indicator > .wd-blitz-turn-circle{
 display:block!important;
 box-sizing:border-box!important;
 flex:0 0 22px!important;
 width:22px!important;height:22px!important;
 border:2px solid #25252c!important;
 border-radius:50%!important;
 background:radial-gradient(circle at 34% 26%,#b9bec2 0%,#7c838a 39%,#43474c 74%,#22272d 100%)!important;
 box-shadow:inset 0 0 0 1px #b3b6b8,0 0 0 1px #c5b7a8,0 1px 3px #0c060acc!important;
}
body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
#game .game-grid .left-panel:has(#playerAvatar:is(.wd-active-turn-p1,.wd-active-turn-p2)) #turnCard .wd-blitz-turn-label,
body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
#game .game-grid .right-panel:has(#opponentAvatar:is(.wd-active-turn-p1,.wd-active-turn-p2)) #opponentTurnCard .wd-blitz-turn-label{
 color:#47eb77!important;
 text-shadow:0 0 7px #47eb7780!important;
}
body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
#game .game-grid .left-panel:has(#playerAvatar:is(.wd-active-turn-p1,.wd-active-turn-p2)) #turnCard .wd-blitz-turn-circle,
body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
#game .game-grid .right-panel:has(#opponentAvatar:is(.wd-active-turn-p1,.wd-active-turn-p2)) #opponentTurnCard .wd-blitz-turn-circle{
 background:radial-gradient(circle at 34% 26%,#c6ffd3 0%,#4cf585 28%,#0bbd45 60%,#076525 100%)!important;
 box-shadow:inset 0 0 0 1px #aaffba,0 0 0 1px #d3c7b1,0 0 8px #38f07699!important;
}
/* Shared markup is hidden outside Blitz, including before the first render. */
body:not([data-wd-game-type="blitz"]) #game .wd-blitz-turn-indicator,
body.wd-gate #game .wd-blitz-turn-indicator,
#game[hidden] .wd-blitz-turn-indicator{
 display:none!important;
}

/* Dome Blitz only — approved Royal Member slot and unframed names (2026-11-05).
   Retain each original server-authoritative Royal badge's hidden state.
   The portrait, ratings, timer, TURN lamp, score and Last Move IDs stay live. */
#game .wd-blitz-royal-slot{display:none!important}
body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
#game .game-grid :is(#playerCard,#opponentCard) > .wd-blitz-royal-slot{
 display:flex!important;order:4!important;flex:0 0 60px!important;
 position:relative!important;box-sizing:border-box!important;
 align-items:center!important;justify-content:center!important;
 width:96%!important;max-width:96%!important;
 height:60px!important;min-height:60px!important;max-height:60px!important;
 margin:4px auto 0!important;padding:2px!important;
 overflow:hidden!important;
 border:2px solid #d8a75b!important;border-radius:6px!important;
 background:linear-gradient(180deg,#6b3924,#351b14)!important;
 box-shadow:inset 0 0 0 1px #e6bb72!important;
}
body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
#game .game-grid .wd-blitz-royal-slot > img{
 display:block!important;position:relative!important;
 width:100%!important;height:100%!important;
 object-fit:contain!important;object-position:center!important;
 transform:scale(1.215)!important;transform-origin:center center!important;
 max-width:none!important;max-height:none!important;
 pointer-events:none!important;
}
/* A computer, vacant seat, disconnected account or nonmember keeps
   the framed slot empty — never infer an opponent's membership locally. */
body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
#game .game-grid :is(#playerCard,#opponentCard):not(:has(> .wd-player-name-banner > img:not([hidden]))) > .wd-blitz-royal-slot > img{
 display:none!important;
}
/* Do not show a duplicate miniature plate underneath the player name.
   Preserve the hidden/visible attribute for the membership-state controller. */
body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
#game .game-grid .wd-player-name-banner > :is(#wdGameRoyalNameBadge,#wdOpponentRoyalNameBadge){
 display:none!important;visibility:hidden!important;opacity:0!important;
 position:absolute!important;width:0!important;height:0!important;
 pointer-events:none!important;
}
body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
#game .game-grid :is(#playerCard,#opponentCard) > .wd-player-name-banner{
 order:2!important;flex:0 0 41px!important;
 width:100%!important;max-width:100%!important;
 height:41px!important;min-height:41px!important;max-height:41px!important;
 margin:0 auto!important;padding:0 3px!important;
 display:flex!important;align-items:center!important;justify-content:center!important;
 border:0!important;border-radius:0!important;outline:0!important;
 background:transparent!important;background-image:none!important;
 box-shadow:none!important;transform:none!important;
}
body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
#game .game-grid .wd-player-name-banner > small{
 font:900 clamp(16px,1.8vw,29px)/1.05 Georgia,'Times New Roman',serif!important;
 color:#ffdb82!important;text-align:center!important;
 letter-spacing:.02em!important;text-shadow:0 2px 4px #1b0a06!important;
 transform:none!important;max-width:100%!important;
}
@media(min-width:700px){
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #game .game-grid > :is(.left-panel,.right-panel){
  grid-template-rows:290px 80px minmax(0,1fr) minmax(0,1fr) 42px!important;
 }
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #game .game-grid :is(#playerCard,#opponentCard){
  height:290px!important;min-height:290px!important;max-height:290px!important;
  padding-top:3px!important;
 }
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #game .game-grid :is(#playerCard,#opponentCard) > .wd-avatar-identity{
  order:1!important;flex:0 0 139px!important;
 }
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #game .game-grid :is(#playerCard,#opponentCard) > .wd-avatar-account-bar{
  order:3!important;flex:0 0 39px!important;
  height:39px!important;min-height:39px!important;max-height:39px!important;
  margin:0 auto!important;
 }
}
/* Keep the 620px short-screen panels inside their existing footprint. */
@media (min-width:1100px) and (max-height:950px),
       (min-width:700px) and (max-width:1099px) and (orientation:landscape) and (max-height:900px){
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #game .game-grid > :is(.left-panel,.right-panel){
  grid-template-rows:290px 78px 94px minmax(0,1fr) 38px!important;
 }
}
/* Compact phone panels retain natural height and readable controls. */
@media(max-width:699px){
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #game .game-grid :is(#playerCard,#opponentCard){
  display:flex!important;flex-direction:column!important;
  align-items:center!important;justify-content:flex-start!important;
  height:auto!important;min-height:0!important;max-height:none!important;
  padding:7px 4px!important;
 }
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #game .game-grid :is(#playerCard,#opponentCard) > .wd-avatar-identity{order:1!important}
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #game .game-grid :is(#playerCard,#opponentCard) > .wd-player-name-banner{
  flex:0 0 32px!important;height:32px!important;min-height:32px!important;max-height:32px!important;
 }
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #game .game-grid .wd-player-name-banner > small{font-size:clamp(15px,4vw,22px)!important}
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #game .game-grid :is(#playerCard,#opponentCard) > .wd-avatar-account-bar{order:3!important}
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #game .game-grid :is(#playerCard,#opponentCard) > .wd-blitz-royal-slot{
  flex:0 0 48px!important;height:48px!important;min-height:48px!important;max-height:48px!important;
 }
}

/* Dome Blitz: waiting identity must be readable without truncating into
   the neighboring panel. "Waiting for Player" uses two balanced lines in
   the same unframed name area; normal opponent names are unchanged. */
body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
#game .game-grid #opponentCard > .wd-player-name-banner > #opponentName.wd-waiting-for-player-two{
 display:block!important;box-sizing:border-box!important;
 width:100%!important;max-width:100%!important;
 white-space:normal!important;text-wrap:balance!important;
 overflow:visible!important;text-overflow:clip!important;
 overflow-wrap:normal!important;word-break:normal!important;
 font:900 clamp(16px,1.65vw,19px)/1.05 Georgia,'Times New Roman',serif!important;
 letter-spacing:0!important;text-align:center!important;
 margin:0 auto!important;padding:0!important;
 transform:none!important;
}

/* Dome Blitz approved refinements — 2026-11-05.
   Only the displayed artwork and layout change. Reuse the verified Royal
   membership state, actual scores, TURN lamps and last-move handlers. */

/* Rating and Stats retain their existing blue styling and click behavior,
   but have no surrounding gold bar frame or separate gold button outlines. */
body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
#game .game-grid :is(#playerCard,#opponentCard) > .wd-avatar-account-bar{
 border:0!important;outline:0!important;border-radius:0!important;
 box-shadow:none!important;
 background:transparent!important;background-image:none!important;
 padding:0!important;
}
body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
#game .game-grid :is(#playerCard,#opponentCard) > .wd-avatar-account-bar::before,
body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
#game .game-grid :is(#playerCard,#opponentCard) > .wd-avatar-account-bar::after{
 content:none!important;display:none!important;
}
body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
#game .game-grid :is(#playerCard,#opponentCard) > .wd-avatar-account-bar > :is(#playerRatingBadge,#opponentRatingBadge,#playerPublicStats,#opponentPublicStats){
 border:0!important;outline:0!important;
 box-shadow:none!important;
}

/* Use the open space between TURN and LAST MOVE for the actual centered
   score and SCORE caption. Both scores use exactly the same geometry; no
   floating CSS overlay is added to the board or to gameplay controls. */
@media(min-width:700px){
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #game .game-grid > :is(.left-panel,.right-panel) > :is(#turnCard,#opponentTurnCard){
  justify-content:flex-start!important;
  padding-top:6px!important;
  overflow:visible!important;
 }
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #game .game-grid > .left-panel > #turnCard > #playerScore,
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #game .game-grid > .right-panel > #opponentTurnCard > #opponentScore{
  position:absolute!important;
  top:82%!important;left:50%!important;right:auto!important;bottom:auto!important;
  transform:translate(-50%,-50%)!important;
  margin:0!important;text-align:center!important;
  max-width:100%!important;pointer-events:none!important;
 }
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #game .game-grid > :is(.left-panel,.right-panel) > :is(#turnCard,#opponentTurnCard)::after{
  content:"SCORE"!important;display:block!important;
  position:absolute!important;
  top:calc(82% + clamp(15px,1.5vw,20px))!important;
  left:50%!important;right:auto!important;bottom:auto!important;
  transform:translateX(-50%)!important;
  margin:0!important;width:auto!important;
  text-align:center!important;pointer-events:none!important;
 }
}

/* Dome Blitz approved November 5 panel polish. These overrides stay on the
   live Blitz room only. The board, controls, Royal eligibility, and other games
   keep their original assets and event handlers. */

/* Unframe BOTH mahogany player columns without changing their geometry,
   brown surfaces or board alignment; remove the old gold inset trim. */
body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
#game .game-grid > :is(.left-panel,.right-panel){
 border:0!important;outline:0!important;box-shadow:none!important;
}
body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
#game .game-grid > :is(.left-panel,.right-panel)::before{
 border:0!important;outline:0!important;
 background:linear-gradient(155deg,#28110d 0%,#64311e 36%,#713923 57%,#2c1510 100%)!important;
 background-image:linear-gradient(155deg,#28110d 0%,#64311e 36%,#713923 57%,#2c1510 100%)!important;
 box-shadow:0 8px 20px #100808aa!important;
}

/* One ADDITIONAL 20% height increase on the eight opponent tile backs.
   Existing vertical scale 1.248 x 1.20 = 1.4976; width remains 1.04.
   The live message-rail controller sizes its two cream bars at 1.1 times
   the rendered tile height, so BOTH rails gain the same additional 20%.
   Its existing 10px board-clearance correction is kept intact. */
body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
#game .center-panel > #opponentRackPanel > #opponentRack > .opponent-tile{
 transform:scale(1.04,1.4976)!important;
}

/* Both LAST MOVE headings have their own small thin WHITE rectangles.
   Last-move contents remain bound to the existing player/opponent IDs. */
body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
#game .game-grid > :is(.left-panel,.right-panel) > :is(#playerLastMove,#opponentLastMove){
 color:#fff!important;
}
body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
#game .game-grid > :is(.left-panel,.right-panel) > :is(#playerLastMove,#opponentLastMove)::before{
 content:"LAST MOVE"!important;
 display:inline-block!important;position:static!important;
 width:auto!important;max-width:100%!important;
 margin:0 auto 5px!important;padding:3px 8px!important;
 border:1px solid #fff!important;border-radius:0!important;
 color:#fff!important;background:transparent!important;
 box-shadow:none!important;
 font:700 clamp(10px,1.1vw,13px)/1.15 Georgia,'Times New Roman',serif!important;
 letter-spacing:.04em!important;white-space:nowrap!important;
}

/* Set SCORE caption white without changing its centered geometry or value. */
body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
#game .game-grid > :is(.left-panel,.right-panel) > :is(#turnCard,#opponentTurnCard)::after{
 color:#fff!important;
 background:none!important;background-image:none!important;
 box-shadow:none!important;
}

/* Keep empty opponent/nonmember Royal slots intact. For a Royal member,
   replace ONLY the decorative displayed image with a simple blue plate:
   no gold frame and no diamond ornaments. Eligibility remains driven by
   the original name badge's server-authoritative [hidden] attribute. */
body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
#game .game-grid .wd-blitz-royal-slot > img{
 display:none!important;visibility:hidden!important;
}
body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
#game .game-grid :is(#playerCard,#opponentCard):has(> .wd-player-name-banner > img:not([hidden])) > .wd-blitz-royal-slot{
 border:0!important;outline:0!important;
 background:transparent!important;background-image:none!important;
 box-shadow:none!important;
}
body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
#game .game-grid :is(#playerCard,#opponentCard) > .wd-blitz-royal-slot::before{
 content:none!important;display:none!important;
}
body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
#game .game-grid :is(#playerCard,#opponentCard):has(> .wd-player-name-banner > img:not([hidden])) > .wd-blitz-royal-slot::before{
 content:"ROYAL MEMBER"!important;display:flex!important;
 position:absolute!important;inset:5px 4px!important;
 align-items:center!important;justify-content:center!important;
 border:0!important;border-radius:6px!important;
 background:linear-gradient(180deg,#173cad,#081a79)!important;
 color:#ffd458!important;
 font:900 clamp(11px,1.4vw,19px)/1.1 Georgia,'Times New Roman',serif!important;
 letter-spacing:.01em!important;white-space:nowrap!important;
 text-shadow:0 2px 2px #06103d!important;
}

/* Approved 2026-11-05 Dome Blitz vertical arrangement.
   Rack drops by one full *rendered rack height* (50% + another 50%).
   The six action buttons now sit at 10% of their prior actual rack-to-controls gap.
   Normal-flow margins make tile hit areas and touch/pointer drag geometry
   follow the artwork, unlike transform/translate-only positioning. */
body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
#game .center-panel > .rack-panel{
 margin-top:calc(4px + var(--wd-blitz-rack-drop,0px))!important;
}
body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
#game .center-panel > .wd-royal-controls.wd-under-rack-controls{
 margin-top:calc(3.5px + var(--wd-blitz-controls-drop,0px) - var(--wd-blitz-controls-close-gap,0px))!important;
}
@media (min-width:1100px) and (max-height:950px),
       (min-width:700px) and (max-width:1099px) and (orientation:landscape) and (max-height:900px){
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #game .center-panel > .rack-panel{
  margin-top:calc(2px + var(--wd-blitz-rack-drop,0px))!important;
 }
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #game .center-panel > .wd-royal-controls.wd-under-rack-controls{
  margin-top:calc(1.5px + var(--wd-blitz-controls-drop,0px) - var(--wd-blitz-controls-close-gap,0px))!important;
 }
}
/* On phone layouts preserve the previous base margin; subtract 90% of the measured visible gap. */
@media(max-width:699px){
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #game .center-panel > .wd-royal-controls.wd-under-rack-controls{
  margin-top:calc(2.5px + var(--wd-blitz-controls-drop,0px) - var(--wd-blitz-controls-close-gap,0px))!important;
 }
}
/* Short screens may need vertical scrolling after the approved shift;
   never clip the six live game controls or shrink the approved board. */
body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden])){
 overflow-y:auto!important;
}

/* 2026-11-06 Dome Blitz approved board-stage position.
   Lower the ENTIRE room assembly (banner, cream message rails, panels,
   board, physical rack and controls) 20% of the *rendered board height*.
   #gameTopInfo precedes #game in normal flow, so adding space above only
   the banner moves both together. Never transform the board/tile hitboxes,
   change panel spacing or alter Duel/Dynasty. */
body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
#gameTopInfo.top-info:not([hidden]){
 margin-top:var(--wd-blitz-stage-drop,0px)!important;
}
/* Keep the lowered controls reachable on compact desktop/iPad without
   resizing the board or obscuring functional gameplay buttons. */
body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden])){
 overflow-y:auto!important;
}

/* Prevent browser scroll anchoring from visually cancelling the new Blitz
   stage offset when switching from lobby to the game. Scrolling remains
   enabled normally; only automatic layout-based scroll adjustments stop. */
html:has(body:not(.wd-gate)[data-wd-game-type="blitz"] #game:not([hidden])),
body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden])) main{
 overflow-anchor:none!important;
}

/* Approved Dome Blitz mockup, 2026-11-06 — visual-only panel extension.
   Extend the original mahogany backplate DOWN 20%, measured from its current
   100%-height pseudo-element, without changing the panel grid's size, rows,
   contents, score/clock/last-move positions, board or other room elements. */
@media(min-width:700px){
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #game .game-grid > :is(.left-panel,.right-panel)::before{
  /* Only the painted surface ends at the raised frame; layout is unchanged. */
  height:var(--blitz-panel-paint-height,120%)!important;
  transform-origin:center top!important;
 }
}

/* Approved Dome Blitz physical rack and its eight real letters: +20% in
   both dimensions. Change the parent rack's actual aspect-ratio width, not
   a transform on its interactive tiles: slots, hit targets and the PNG all
   grow together. The existing rack/controls spacing script can remeasure
   the new in-flow height, and no board, panels or action buttons are resized.
   On standard desktop/iPad, prior 110% becomes 132%; on short landscape
   viewport, prior 92% becomes 110.4%. */
@media(min-width:821px){
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #game .center-panel > .rack-panel{
  width:132%!important;
  max-width:1003.2px!important;
 }
}
@media (min-width:1100px) and (max-height:950px),
       (min-width:700px) and (max-width:1099px) and (orientation:landscape) and (max-height:900px){
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #game .center-panel > .rack-panel{
  width:110.4%!important;
  max-width:110.4%!important;
 }
}
@media(min-width:700px) and (max-width:820px) and (orientation:portrait){
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #game .center-panel > .rack-panel{
  width:144%!important;
  max-width:none!important;
 }
}
/* Narrow phones retain the existing full-viewport rack width to avoid
   clipping the eight draggable tiles offscreen. No phone layout reflow. */

/* Dome Blitz final approved layout: Dynasty-style compact opponent row.
   Preserve the original full-width 8:1 row footprint so the board and player controls do not reflow. */
@media(min-width:700px){
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #game .center-panel > #opponentRackPanel{
  display:flex!important;align-items:center!important;justify-content:center!important;
  width:100%!important;max-width:100%!important;
  height:auto!important;min-height:0!important;aspect-ratio:8 / 1!important;
  transform:translateY(var(--blitz-rail-to-board-drop,0px))!important;
  transform-origin:center top!important;
 }
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #game .center-panel > #opponentRackPanel > #opponentRack{
  display:grid!important;box-sizing:border-box!important;
  grid-template-columns:repeat(8,minmax(0,1fr))!important;
  width:53.04%!important;max-width:53.04%!important;
  height:auto!important;min-height:0!important;
  justify-content:center!important;align-items:center!important;
  transform:none!important;
  padding:3px!important;margin:0!important;gap:4px!important;
  border:2px solid #a46d43!important;border-radius:5px!important;
  background:linear-gradient(180deg,#64311e,#28110d)!important;
  box-shadow:inset 0 0 0 1px #b77850,0 2px 5px #16080577!important;
 }
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #game .center-panel > #opponentRackPanel > #opponentRack > .opponent-tile{
  display:block!important;box-sizing:border-box!important;
  width:100%!important;height:auto!important;
  aspect-ratio:1 / 1!important;
  max-width:100%!important;min-width:0!important;
  min-height:0!important;max-height:none!important;
  margin:0!important;transform:none!important;scale:1!important;
  flex:none!important;transform-origin:center!important;
  border-radius:5px!important;
 }
}
/* Seat-specific tile colors remain defined in dome-blitz.css. */

/* Place the real, full-size interactive rack in the CENTER of the space
   between the board's lower edge and the extended mahogany panel backs.
   The companion script measures that space and sets the flow-margin values,
   keeping tile pointer coordinates identical to what the player sees. */
@media(min-width:700px){
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #game .center-panel > .wd-royal-controls.wd-under-rack-controls{
  width:min(120%,calc(100vw - 24px))!important;max-width:none!important;
  left:50%!important;transform:translateX(-50%)!important;
  grid-template-columns:repeat(6,minmax(0,1fr))!important;
 }
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #game .center-panel > .wd-royal-controls.wd-under-rack-controls > button{
  min-height:50.4px!important;height:50.4px!important;max-height:50.4px!important;
  font-size:clamp(12px,1.44vw,20.4px)!important;
  border-radius:11px!important;
 }
}
@media (min-width:1100px) and (max-height:950px),
       (min-width:700px) and (max-width:1099px) and (orientation:landscape) and (max-height:900px){
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #game .center-panel > .wd-royal-controls.wd-under-rack-controls > button{
  min-height:48px!important;height:48px!important;max-height:48px!important;
  font-size:clamp(10.8px,1.2vw,16.8px)!important;
 }
}



/* Dome Blitz matching gold rack geometry for both seats 2026-11-11.
   Keep the 2048x626 gold-mahogany PNG, eight live cells, rack behavior,
   approved gold wells and both seats' tile colors/behavior unchanged.
   Keep the existing grid as the reorder/drop lane. Its equal-width cells
   need per-slot offsets because the eight painted openings are not evenly
   spaced. Tile centers follow the measured inner openings in the PNG. */
body:not(.wd-gate)[data-wd-game-type="blitz"]:is([data-wd-player-seat="0"],[data-wd-player-seat="1"]):has(#game:not([hidden]))
#game .center-panel .rack-panel #rack{
 left:12.3%!important;
 top:40%!important;
 width:76.6%!important;
 height:24.5%!important;
 /* Vacant wells must not grow the row when letters become pending. */
 grid-template-rows:minmax(0,1fr)!important;
}
/* Register each live tile by display slot so alignment follows Shuffle. */
body:not(.wd-gate)[data-wd-game-type="blitz"]:is([data-wd-player-seat="0"],[data-wd-player-seat="1"]):has(#game:not([hidden]))
#game .center-panel .rack-panel #rack .tile[data-slot-index]{
 position:relative!important;
 left:var(--wd-blitz-well-offset,0%)!important;
 top:-0.4454%!important;
}
body:not(.wd-gate)[data-wd-game-type="blitz"]:is([data-wd-player-seat="0"],[data-wd-player-seat="1"]):has(#game:not([hidden]))
#game .center-panel .rack-panel #rack .tile{
 width:80%!important;
}
/* Both seats use the inner wells of the 2172 × 724 Ornate Eight-Slot
   Mahogany Rack. Convert the measured centers to offsets from the
   equal-width grid cell centers and the shared row center. */
body:not(.wd-gate)[data-wd-game-type="blitz"]:is([data-wd-player-seat="0"],[data-wd-player-seat="1"]):has(#game:not([hidden]))
#game .center-panel .rack-panel #rack .tile[data-slot-index="0"]{
 --wd-blitz-well-offset:-4.8760%;
}
body:not(.wd-gate)[data-wd-game-type="blitz"]:is([data-wd-player-seat="0"],[data-wd-player-seat="1"]):has(#game:not([hidden]))
#game .center-panel .rack-panel #rack .tile[data-slot-index="1"]{
 --wd-blitz-well-offset:-2.4569%;
}
body:not(.wd-gate)[data-wd-game-type="blitz"]:is([data-wd-player-seat="0"],[data-wd-player-seat="1"]):has(#game:not([hidden]))
#game .center-panel .rack-panel #rack .tile[data-slot-index="2"]{
 --wd-blitz-well-offset:-2.9228%;
}
body:not(.wd-gate)[data-wd-game-type="blitz"]:is([data-wd-player-seat="0"],[data-wd-player-seat="1"]):has(#game:not([hidden]))
#game .center-panel .rack-panel #rack .tile[data-slot-index="3"]{
 --wd-blitz-well-offset:-3.8696%;
}
body:not(.wd-gate)[data-wd-game-type="blitz"]:is([data-wd-player-seat="0"],[data-wd-player-seat="1"]):has(#game:not([hidden]))
#game .center-panel .rack-panel #rack .tile[data-slot-index="4"]{
 --wd-blitz-well-offset:-4.3355%;
}
body:not(.wd-gate)[data-wd-game-type="blitz"]:is([data-wd-player-seat="0"],[data-wd-player-seat="1"]):has(#game:not([hidden]))
#game .center-panel .rack-panel #rack .tile[data-slot-index="5"]{
 --wd-blitz-well-offset:-5.0419%;
}
body:not(.wd-gate)[data-wd-game-type="blitz"]:is([data-wd-player-seat="0"],[data-wd-player-seat="1"]):has(#game:not([hidden]))
#game .center-panel .rack-panel #rack .tile[data-slot-index="6"]{
 --wd-blitz-well-offset:-4.7865%;
}
body:not(.wd-gate)[data-wd-game-type="blitz"]:is([data-wd-player-seat="0"],[data-wd-player-seat="1"]):has(#game:not([hidden]))
#game .center-panel .rack-panel #rack .tile[data-slot-index="7"]{
 --wd-blitz-well-offset:-4.2908%;
}
/* Gold empty wells are already painted into the new PNG; remove the
   legacy absolutely positioned fill overlays without removing drop targets. */
body:not(.wd-gate)[data-wd-game-type="blitz"]:is([data-wd-player-seat="0"],[data-wd-player-seat="1"]):has(#game:not([hidden]))
#game .center-panel .rack-panel #rack > .wd-rack-reorder-empty::before{
 content:none!important;
 display:none!important;
}

/* Physically reduce both seats' rack art and interactive tiles together
   by 10%, relative to the current approved responsive dimensions.
   Dome Duel/Dynasty racks are unaffected. */
@media(min-width:821px){
 body:not(.wd-gate)[data-wd-game-type="blitz"]:is([data-wd-player-seat="0"],[data-wd-player-seat="1"]):has(#game:not([hidden]))
 #game .center-panel > .rack-panel{
  width:118.8%!important;
  max-width:902.88px!important;
 }
}
@media (min-width:1100px) and (max-height:950px),
       (min-width:700px) and (max-width:1099px) and (orientation:landscape) and (max-height:900px){
 body:not(.wd-gate)[data-wd-game-type="blitz"]:is([data-wd-player-seat="0"],[data-wd-player-seat="1"]):has(#game:not([hidden]))
 #game .center-panel > .rack-panel{
  width:99.36%!important;
  max-width:99.36%!important;
 }
}
@media(min-width:700px) and (max-width:820px) and (orientation:portrait){
 body:not(.wd-gate)[data-wd-game-type="blitz"]:is([data-wd-player-seat="0"],[data-wd-player-seat="1"]):has(#game:not([hidden]))
 #game .center-panel > .rack-panel{
  width:129.6%!important;
  max-width:none!important;
 }
}

/* Keep the black rack inside its assigned center lane, including portrait
   layouts where the existing white rack has a wider display exception. */
body:not(.wd-gate)[data-wd-game-type="blitz"][data-wd-player-seat="1"]:has(#game:not([hidden]))
#game .center-panel > .rack-panel{
 max-width:100%!important;
}

/* Dome Blitz finished-match status only: the departure notice is NOT a
   normal player name. Outrank large name styles without moving any panels. */
body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
#game .game-grid #opponentCard > .wd-player-name-banner > #opponentName.wd-blitz-departure-notice{
 font-size:clamp(11px,1.05vw,14px)!important;
 font-weight:700!important;
 line-height:1.15!important;
 letter-spacing:.01em!important;
 white-space:nowrap!important;
 overflow:hidden!important;
 text-overflow:clip!important;
}
