/* Dynasty-style live word score: display only, outside rack/board layout. */
body[data-wd-game-type="blitz"] #game .center-panel{position:relative}
#blitzWordPreview{display:none}
body:not(.wd-gate)[data-wd-game-type="blitz"] #game:not([hidden]) #blitzWordPreview:not([hidden]){
 display:block;position:absolute;left:0;width:100%;z-index:7;
 margin:0;text-align:center;pointer-events:none;transform:translateY(-50%);
 font-size:0;line-height:0;
}
#blitzWordPreview span{
 display:inline-block;vertical-align:middle;max-width:96%;overflow:hidden;text-overflow:ellipsis;
 white-space:nowrap;color:#fff;-webkit-text-fill-color:#fff;--wd-live-font-size:clamp(12px,1.3vw,17px);
 font:bold min(var(--wd-live-font-size),var(--wd-live-gap-font-size,100px)) Georgia,serif;
 line-height:1.3;text-shadow:0 2px 3px #16091f;
}
@media(min-width:561px) and (min-height:561px){
 #blitzWordPreview span{--wd-live-font-size:clamp(14.4px,1.56vw,20.4px)}
}

/* Approved Dome Blitz only: both real player names are white, not gold.
   Do not recolor the waiting/departure notices or affect other games.
   Retain all existing nameplate typography, positions and dimensions. */
body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
#game .game-grid :is(#playerCard,#opponentCard) > .wd-player-name-banner > small:not(.wd-waiting-for-player-two):not(.wd-blitz-departure-notice){
 color:#fff!important;
 -webkit-text-fill-color:#fff!important;
}

/* Blitz-only waiting and departure (including resignation) status:
   use white lettering without moving or resizing the nameplate. */
body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
#game .game-grid #opponentCard > .wd-player-name-banner > #opponentName:is(.wd-waiting-for-player-two,.wd-blitz-departure-notice){
 color:#fff!important;
 -webkit-text-fill-color:#fff!important;
}

/* Approved Mahogany Word Badge replaces yesterday's text-only live-score
   instruction. It is on-board artwork; no board or rack layout is changed. */
body[data-wd-game-type="blitz"] #game #blitzFirstWordArtwork[hidden]{
 display:none!important;
}
body:not(.wd-gate)[data-wd-game-type="blitz"] #game:not([hidden]) #blitzFirstWordArtwork:not([hidden]){
 position:absolute;display:block;left:0;top:0;width:0;height:auto;
 max-width:none;object-fit:contain;z-index:9;pointer-events:none;
 user-select:none;-webkit-user-drag:none;
}
/* The ONLY highlighted marker is the bottom-row green start star in the
   local board orientation. The ring is paint-only and cannot receive input. */
body:not(.wd-gate)[data-wd-game-type="blitz"] #game:not([hidden])
#board > .sq.start.wd-blitz-opening-star:not(.pending):not(.locked):empty::before{
 content:""!important;display:block!important;
 position:absolute!important;top:50%!important;left:50%!important;
 width:86%!important;height:86%!important;
 margin:0!important;padding:0!important;box-sizing:border-box!important;
 transform:translate(-50%,-50%)!important;
 border:3px solid #ffd550!important;border-radius:50%!important;
 background:transparent!important;
 box-shadow:0 0 0 1px #fff4af,0 0 10px 3px #ffcf42d9,0 0 17px 5px #f6b62a8a!important;
 pointer-events:none!important;z-index:1!important;
 animation:wdBlitzOpeningStarHalo 1.8s ease-in-out infinite!important;
}
body:not(.wd-gate)[data-wd-game-type="blitz"] #game:not([hidden])
#board > .sq.start.wd-blitz-opening-star:empty::after{
 z-index:2!important;
}
@keyframes wdBlitzOpeningStarHalo{
 0%,100%{opacity:.78;filter:brightness(1)}
 50%{opacity:1;filter:brightness(1.18)}
}
@media(prefers-reduced-motion:reduce){
 body:not(.wd-gate)[data-wd-game-type="blitz"] #game:not([hidden])
 #board > .sq.start.wd-blitz-opening-star:empty::before{animation:none!important}
}
