/* Dome Blitz winning scoring words — same halo, cadence and brightness as
   Dome Dynasty. Only the committed tiles in server-authoritative wordCells
   glow; do not move the board squares, change their colors or affect Duel.
   The class is applied to each redraw, so rematch prompts and reconnection
   cannot erase the winning words. */
@keyframes wdBlitzDynastyFinalWordGlow{
 0%,100%{
  filter:brightness(1.52) saturate(1.2);
  box-shadow:inset 0 0 0 2px #fff4b2,0 0 9px 3px #ffe568,0 0 16px 5px #d99024;
 }
 50%{
  filter:brightness(2.05) saturate(1.35);
  box-shadow:inset 0 0 0 3px #fff8d5,0 0 15px 5px #fff3a1,0 0 26px 8px #ffd13d;
 }
}
body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
#game #board .sq.locked.wd-blitz-final-word-lit{
 position:relative!important;
 z-index:18!important;
 outline:2px solid #ffe78c!important;
 outline-offset:-2px!important;
 animation:wdBlitzDynastyFinalWordGlow 1.1s ease-in-out infinite alternate!important;
}
@media(prefers-reduced-motion:reduce){
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #game #board .sq.locked.wd-blitz-final-word-lit{
  animation:none!important;
  filter:brightness(1.65)!important;
  box-shadow:inset 0 0 0 2px #fff2a8,0 0 12px 4px #ffdf58!important;
 }
}

/* Winning-word visibility fix (2026-11-19).
   Blitz's committed ivory/mahogany tile skins set box-shadow:...!important,
   so animated box-shadow on the square itself cannot win the CSS cascade.
   Paint the luminous gold bloom on a transparent, non-interactive overlay
   instead. The real tile face, lettering, gold/mahogany styling, dimensions
   and the preexisting 1.1-second Dynasty pulse remain unchanged. */
@keyframes wdBlitzWinningWordVisibleHalo{
 0%,100%{
  box-shadow:inset 0 0 0 2px #fff4b2,
             0 0 9px 3px #ffe568,0 0 16px 5px #d99024;
 }
 50%{
  box-shadow:inset 0 0 0 3px #fff8d5,
             0 0 15px 5px #fff3a1,0 0 26px 8px #ffd13d;
 }
}
body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
#game #board .sq.locked.wd-blitz-final-word-lit{
 overflow:visible!important;
}
body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
#game #board .sq.locked.wd-blitz-final-word-lit::after{
 content:""!important;
 display:block!important;
 position:absolute!important;
 inset:-2px!important;
 box-sizing:border-box!important;
 border:2px solid #ffe78c!important;
 border-radius:4px!important;
 background:transparent!important;
 pointer-events:none!important;
 z-index:2!important;
 animation:wdBlitzWinningWordVisibleHalo 1.1s ease-in-out infinite alternate!important;
}
@media(prefers-reduced-motion:reduce){
 body:not(.wd-gate)[data-wd-game-type="blitz"]:has(#game:not([hidden]))
 #game #board .sq.locked.wd-blitz-final-word-lit::after{
  animation:none!important;
  box-shadow:inset 0 0 0 2px #fff2a8,
             0 0 12px 4px #ffdf58,0 0 20px 6px #d99024!important;
 }
}
