/* W343 BATTLE AND BOARD PRESENTATION, second pass (docs/notes/W343-battle-presentation-2.md; catalogue Group 2). Presentation only. */

/* E-048 OVERTIME, FELT: a short hot tint over the battle (only built when FLASHES is on) and an orange ring on the boss clock for the rest of the match. */
#w343OtTint{position:absolute;inset:0;z-index:4;pointer-events:none;
  background:radial-gradient(ellipse at 50% 50%,rgba(255,146,43,0) 38%,rgba(255,107,43,.42) 100%);
  animation:w343OtTint 1.6s ease-out both;}
@keyframes w343OtTint{0%{opacity:0}14%{opacity:1}40%{opacity:.75}100%{opacity:0}}
body.cc-rm #w343OtTint{animation:w343OtTintStill 1.6s linear both}
@keyframes w343OtTintStill{0%{opacity:.6}100%{opacity:0}}
@media (prefers-reduced-motion:reduce){#w343OtTint{animation:w343OtTintStill 1.6s linear both}}
.hudBox.flowT.w343Ot,body.cc-hud .cc-pill--wave.flowT.w343Ot{box-shadow:0 0 0 2px #ff922b,0 0 10px rgba(255,146,43,.55);}

/* E-037 THE RANK 8 ULTIMATE MOMENT: a ready button pulses, the screen edge glows faintly gold while one is ready (FLASHES on only: the class is
   never set with FLASHES off), a 270 ms white charge ramp on the press (FLASHES on only) and the comic cut-in (FULL slides, SOME is still). */
.ultBtn.w343Rdy:not(.cc-enter),body.cc-hud .ultBtn.w343Rdy:not(.cc-enter){animation:w343UltPulse 1.1s ease-in-out infinite;}   /* after the HUD's 260 ms entrance (hud.js oneShot cc-enter) */
@keyframes w343UltPulse{0%,100%{transform:scale(1);box-shadow:0 3px 0 #8a6a12,0 0 0 0 rgba(255,210,63,0)}50%{transform:scale(1.04);box-shadow:0 3px 0 #8a6a12,0 0 12px 3px rgba(255,210,63,.65)}}
body.cc-rm .ultBtn.w343Rdy:not(.cc-enter),body.cc-rm.cc-hud .ultBtn.w343Rdy:not(.cc-enter){animation:none;box-shadow:0 3px 0 #8a6a12,0 0 10px 2px rgba(255,210,63,.55);}
@media (prefers-reduced-motion:reduce){.ultBtn.w343Rdy:not(.cc-enter),body.cc-hud .ultBtn.w343Rdy:not(.cc-enter){animation:none;box-shadow:0 3px 0 #8a6a12,0 0 10px 2px rgba(255,210,63,.55);}}
#gameWrap.w343UltRdy::after{content:'';position:absolute;inset:0;pointer-events:none;z-index:4;box-shadow:inset 0 0 22px 2px rgba(255,210,63,.32);
  animation:w343UltEdge 2.2s ease-in-out infinite;}
@keyframes w343UltEdge{0%,100%{opacity:.55}50%{opacity:1}}
body.cc-rm #gameWrap.w343UltRdy::after{animation:none;opacity:.7;}
@media (prefers-reduced-motion:reduce){#gameWrap.w343UltRdy::after{animation:none;opacity:.7;}}
#w343UltRamp{position:absolute;inset:0;z-index:6;pointer-events:none;background:radial-gradient(ellipse at 50% 60%,rgba(255,255,255,.55),rgba(255,248,231,.12) 70%);
  animation:w343UltRamp 530ms linear both;}
@keyframes w343UltRamp{0%{opacity:0}51%{opacity:1}100%{opacity:0}}
#w343UltCut{position:absolute;left:8px;top:22%;z-index:7;pointer-events:none;display:flex;align-items:center;gap:8px;max-width:calc(100% - 34px);box-sizing:border-box;
  padding:6px 14px 6px 6px;background:linear-gradient(100deg,#ffd23f,#f59f00);border:3px solid #1b1430;border-radius:12px;box-shadow:4px 4px 0 #1b1430;
  transform:skewX(-8deg);animation:w343UltCut 1.1s cubic-bezier(.2,.9,.25,1) both;}
#w343UltCut.w343Still{animation:w343UltCutStill 1.1s linear both;}
#w343UltCut .w343UltArt{width:52px;height:52px;flex:0 0 52px;border-radius:9px;background:#1b1430;overflow:hidden;display:flex;align-items:center;justify-content:center;transform:skewX(8deg);}
#w343UltCut .w343UltArt canvas{width:52px;height:52px;display:block;}
#w343UltCut .w343UltTx{display:flex;flex-direction:column;transform:skewX(8deg);min-width:0;}
#w343UltCut .w343UltTx b{font:22px/1 'Bangers',cursive;letter-spacing:1px;color:#1b1430;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
#w343UltCut .w343UltTx span{font:12px/1.1 'Bangers',cursive;letter-spacing:1px;color:#5c3d00;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
@keyframes w343UltCut{0%{opacity:0;transform:translateX(-110%) skewX(-8deg)}18%{opacity:1;transform:translateX(4%) skewX(-8deg)}26%{transform:translateX(0) skewX(-8deg)}82%{opacity:1;transform:translateX(0) skewX(-8deg)}100%{opacity:0;transform:translateX(0) skewX(-8deg)}}
@keyframes w343UltCutStill{0%,85%{opacity:1}100%{opacity:0}}

/* E-030 (the versus half): a dimmed, slow ambience behind the full-screen matchup card - drifting specks and a passing streak of light.
   battle-versus.js adds .bvAmb always (still and empty) and .bvAlive only when the engine's ambientMotionOk() says FULL animations. */
#vsStrip.bvScreen .bvAmb{position:absolute;inset:0;z-index:0;pointer-events:none;overflow:hidden;opacity:0;}
#vsStrip.bvScreen .bvStage{position:relative;z-index:1;}
#vsStrip.bvScreen.bvAlive .bvAmb{opacity:.42;
  background-image:radial-gradient(circle at 18% 22%,rgba(255,248,231,.9) 0 1px,transparent 1.6px),radial-gradient(circle at 63% 71%,rgba(255,210,63,.85) 0 1.2px,transparent 1.8px),
    radial-gradient(circle at 41% 48%,rgba(173,216,255,.8) 0 1px,transparent 1.5px),radial-gradient(circle at 86% 12%,rgba(255,248,231,.7) 0 .8px,transparent 1.3px);
  background-size:140px 120px,190px 170px,110px 150px,230px 210px;animation:w343VsDrift 48s linear infinite;}
#vsStrip.bvScreen.bvAlive .bvAmb::after{content:'';position:absolute;top:-20%;left:-40%;width:28%;height:140%;transform:rotate(18deg);
  background:linear-gradient(90deg,transparent,rgba(255,132,145,.22),rgba(255,248,231,.16),transparent);animation:w343VsSweep 11s ease-in-out infinite;}
@keyframes w343VsDrift{from{background-position:0 0,0 0,0 0,0 0}to{background-position:140px -120px,-190px -170px,110px -150px,-230px -210px}}
@keyframes w343VsSweep{0%,55%{left:-40%;opacity:0}60%{opacity:1}92%{left:120%;opacity:.8}100%{left:120%;opacity:0}}
html[data-anim="none"] #vsStrip.bvScreen .bvAmb,html[data-anim="some"] #vsStrip.bvScreen .bvAmb,body.cc-rm #vsStrip.bvScreen .bvAmb{animation:none;opacity:0;}
html[data-anim="none"] #vsStrip.bvScreen .bvAmb::after,html[data-anim="some"] #vsStrip.bvScreen .bvAmb::after,body.cc-rm #vsStrip.bvScreen .bvAmb::after{animation:none;display:none;}
@media (prefers-reduced-motion:reduce){#vsStrip.bvScreen .bvAmb,#vsStrip.bvScreen .bvAmb::after{animation:none;opacity:0;}}

/* E-033 THE NEXT THREE BOSSES, ON A TAP: a small card under the BOSS countdown pill (Clash / 4-Player / Co-op). */
#w343Queue{position:fixed;z-index:66;pointer-events:auto;box-sizing:border-box;max-width:calc(100vw - 12px);padding:6px 8px 7px;
  background:rgba(14,9,32,.95);border:2px solid #ffd23f;border-radius:10px;box-shadow:0 4px 0 #08091b;color:#fff8e7;animation:ccFadeIn 140ms ease-out both;}
#w343Queue .w343QHead{display:block;font:14px/1 'Bangers',cursive;letter-spacing:1px;color:#ffd23f;margin:0 0 5px;}
#w343Queue .w343QRow{display:flex;gap:6px;}
#w343Queue .w343QBoss{display:flex;flex-direction:column;align-items:center;width:86px;min-width:0;}
#w343Queue .w343QFace{width:44px;height:44px;border-radius:50%;overflow:hidden;background:#2b2252;border:2px solid #1b1430;display:flex;align-items:center;justify-content:center;
  font:22px/1 'Bangers',cursive;color:#b197fc;}
#w343Queue .w343QFace img{width:100%;height:100%;object-fit:cover;object-position:50% 18%;}
#w343Queue .w343QName{font:12px/1.1 'Bangers',cursive;letter-spacing:.5px;text-align:center;margin-top:3px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
#w343Queue .w343QTime{font:800 9px/1.2 'Nunito',system-ui,sans-serif;color:#cfc6e8;letter-spacing:.5px;}
#w343Queue .w343QNew .w343QName{color:#b197fc;}
