/* TO THE BEATZ v21.5.3 | Shared Cypher arena enhancement.
   Decorative only: does not change slots, hand, turn timer or card interactions. */
.battle-fullscreen-v11{--ttb153-glow:#47d9ef;--ttb153-rival:#fa648c;--ttb153-soft:rgba(71,217,239,.25)}
.battle-fullscreen-v11[data-ttb153-phase="refresh"]{--ttb153-glow:#9addf2;--ttb153-soft:rgba(154,221,242,.22)}
.battle-fullscreen-v11[data-ttb153-phase="energy"]{--ttb153-glow:#e4bf63;--ttb153-soft:rgba(228,191,99,.25)}
.battle-fullscreen-v11[data-ttb153-phase="dance"]{--ttb153-glow:#5addd6;--ttb153-soft:rgba(90,221,214,.29)}
.battle-fullscreen-v11[data-ttb153-phase="combat"]{--ttb153-glow:#ff7d8e;--ttb153-soft:rgba(255,125,142,.29)}
.battle-fullscreen-v11[data-ttb153-phase="draw"]{--ttb153-glow:#80acf6;--ttb153-soft:rgba(128,172,246,.25)}
/* Preserve the approved fixed battle grid, 5 slots, fan hand, CPU inverted cards. */
.battle-fullscreen-v11 .battle-vs-v11{color:#f1fbff;text-shadow:0 0 12px var(--ttb153-soft),0 2px 7px #000}
.battle-fullscreen-v11 .phasebar .phase-pill.active{box-shadow:inset 0 0 0 1px var(--ttb153-glow),0 0 12px var(--ttb153-soft)!important;transition:box-shadow .2s ease}
.battle-fullscreen-v11 .battle-board-v11{background-color:#06101b;background-image:linear-gradient(180deg,rgba(4,10,19,.66),rgba(4,9,18,.78)),url("assets/v2033-online-cypher-arena.webp")!important;background-size:cover!important;background-position:center 74%!important;border-color:rgba(83,218,246,.22)!important;box-shadow:inset 0 0 24px rgba(25,91,139,.13),0 13px 35px #0007!important}
.battle-fullscreen-v11 .battle-board-v11::before{border-color:var(--ttb153-glow);opacity:.30;filter:drop-shadow(0 0 11px var(--ttb153-glow))}
.battle-fullscreen-v11 .battle-board-v11::after{opacity:.8}
/* Crowd and spotlight lights are behind the interactive slot layer. */
.battle-fullscreen-v11 .ttb153-crowd-lights{position:absolute;inset:0;z-index:0;pointer-events:none;overflow:hidden;background:radial-gradient(ellipse 35% 26% at 2% 62%,rgba(41,194,231,.19),transparent 86%),radial-gradient(ellipse 36% 22% at 97% 59%,rgba(240,69,137,.17),transparent 87%),linear-gradient(124deg,transparent 0 36%,rgba(88,183,234,.035) 42%,transparent 49%),linear-gradient(60deg,transparent 0 60%,rgba(232,98,158,.045) 70%,transparent 78%);animation:ttb153CrowdGlow 5.8s ease-in-out infinite alternate}
@keyframes ttb153CrowdGlow{0%{opacity:.54;filter:hue-rotate(0deg)}100%{opacity:1;filter:hue-rotate(8deg)}}
.battle-fullscreen-v11 .battle-board-v11 .cypher-slots{position:relative;z-index:3}
.battle-fullscreen-v11 .battle-board-v11 .cypher-slot{background:linear-gradient(180deg,rgba(5,14,25,.50),rgba(4,10,20,.70))!important;backdrop-filter:blur(1px);border-color:rgba(108,196,225,.20)!important;transition:border-color .23s,box-shadow .23s}
.battle-fullscreen-v11 .battle-board-v11 .cypher-slot.ttb153-self{border-color:rgba(76,227,244,.56)!important;box-shadow:inset 0 0 17px rgba(40,200,239,.13),0 0 11px rgba(40,200,239,.13)!important}
.battle-fullscreen-v11 .battle-board-v11 .cypher-slot.ttb153-opponent{border-color:rgba(251,94,143,.50)!important;box-shadow:inset 0 0 17px rgba(251,94,143,.12),0 0 11px rgba(251,94,143,.09)!important}
/* Highlight a playable target even when its ownership tint is present. */
.battle-fullscreen-v11 .battle-board-v11 .cypher-slot.selectable{outline:1px solid #55ddec;outline-offset:-2px!important}
.battle-fullscreen-v11 .battle-board-v11 .cypher-slot.enemy-selectable{outline-color:#ff8da3!important}
.battle-fullscreen-v11 .battle-board-v11 .slot-empty{color:rgba(138,228,247,.75);text-shadow:0 0 12px rgba(79,212,249,.25)}
.battle-fullscreen-v11 .battle-board-v11 .ttb153-impact{position:absolute;inset:0;z-index:4;pointer-events:none;opacity:0;background:radial-gradient(circle at 50% 50%,rgba(255,255,255,.22),var(--ttb153-soft) 17%,transparent 56%)}
.battle-fullscreen-v11 .battle-board-v11.ttb153-impact-live .ttb153-impact{animation:ttb153Impact .52s ease-out both}
.battle-fullscreen-v11 .battle-board-v11.ttb153-impact-live{animation:ttb153BoardPop .35s ease-out}
@keyframes ttb153Impact{0%{opacity:0;transform:scale(.65)}27%{opacity:1;transform:scale(1.05)}100%{opacity:0;transform:scale(1.3)}}
@keyframes ttb153BoardPop{0%,100%{filter:none}38%{filter:brightness(1.15)}}
.battle-fullscreen-v11.ttb153-phase-flash .phasebar{animation:ttb153PhasePulse .6s ease-out}
@keyframes ttb153PhasePulse{0%{filter:brightness(1)}35%{filter:brightness(1.38)}100%{filter:brightness(1)}}
.battle-fullscreen-v11 .ttb153-ambience{position:absolute;left:6%;right:6%;top:14%;height:20%;pointer-events:none;z-index:0;opacity:.5;background:linear-gradient(104deg,transparent 13%,rgba(44,212,236,.15) 16%,transparent 22%),linear-gradient(74deg,transparent 72%,rgba(252,93,136,.13) 77%,transparent 82%);filter:blur(7px);animation:ttb153Spotlights 7s ease-in-out infinite alternate}
@keyframes ttb153Spotlights{0%{transform:translateX(-3%) scaleX(.95);opacity:.27}100%{transform:translateX(3%) scaleX(1.04);opacity:.58}}
/* Extra online flair uses the SAME CSS and never changes the server-side battle geometry. */
#ttb-v200-battle-root .v200-solo-parity .battle-board-v11{grid-area:field!important}
#ttb-v200-battle-root .v200-solo-parity .v211-turnbar{position:relative;isolation:isolate}
#ttb-v200-battle-root .v200-solo-parity .v211-turnbar::after{content:"";pointer-events:none;position:absolute;inset:1px;border-radius:inherit;box-shadow:inset 0 0 10px rgba(56,207,238,.12)}
@media (max-width:390px){.battle-fullscreen-v11 .battle-board-v11 .cypher-slot{backdrop-filter:none}}
@media (prefers-reduced-motion:reduce){.battle-fullscreen-v11 .ttb153-crowd-lights,.battle-fullscreen-v11 .ttb153-ambience,.battle-fullscreen-v11 .battle-board-v11::before,.battle-fullscreen-v11 .battle-board-v11.ttb153-impact-live,.battle-fullscreen-v11 .battle-board-v11.ttb153-impact-live .ttb153-impact,.battle-fullscreen-v11.ttb153-phase-flash .phasebar{animation:none!important;transition:none!important}}
/* The in-app Settings > Animations switch must also disable these effects. */
body.v17-reduced-motion .battle-fullscreen-v11 .ttb153-crowd-lights,
body.v17-reduced-motion .battle-fullscreen-v11 .ttb153-ambience,
body.v17-reduced-motion .battle-fullscreen-v11 .battle-board-v11::before,
body.v17-reduced-motion .battle-fullscreen-v11 .battle-board-v11.ttb153-impact-live,
body.v17-reduced-motion .battle-fullscreen-v11 .battle-board-v11.ttb153-impact-live .ttb153-impact,
body.v17-reduced-motion .battle-fullscreen-v11.ttb153-phase-flash .phasebar{animation:none!important;transition:none!important}
