/* TO THE BEATZ 21.7.8 · consistent results across CPU / local / online and fan hand */
.game-over.ttb2166-result,
#ttbSoloV210 .game-over.ttb2166-result,
#ttb-v200-battle-root .game-over.ttb2166-result{
 --finale-art:url("ttb-victory-art-v2178.png");--ray:#ffd451;
 position:fixed!important;inset:0!important;z-index:99999!important;
 display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;
 gap:clamp(12px,2.5vh,24px)!important;padding:clamp(16px,3vh,30px) 12px!important;
 overflow-y:auto!important;overflow-x:hidden!important;isolation:isolate!important;
 background:linear-gradient(#05070cc9,#05070cdb),var(--finale-art) center/cover no-repeat!important;
 backdrop-filter:blur(4px)!important;
}
.game-over.ttb2166-result:has(.is-defeat),
#ttbSoloV210 .game-over.ttb2166-result:has(.is-defeat),
#ttb-v200-battle-root .game-over.ttb2166-result:has(.is-defeat){--finale-art:url("ttb-defeat-art-v2178.png");--ray:#ff344b}
.game-over.ttb2166-result:has(.is-local){--ray:#ffd451}
.game-over.ttb2166-result::before{
 content:""!important;position:fixed!important;left:50%!important;top:47%!important;
 width:125vmax!important;height:125vmax!important;z-index:0!important;inset:auto!important;
 border:0!important;box-shadow:none!important;border-radius:50%!important;opacity:.28!important;
 background:repeating-conic-gradient(from 5deg,transparent 0deg 10deg,color-mix(in srgb,var(--ray) 42%,transparent) 11deg 12deg,transparent 13deg 22deg)!important;
 animation:ttb2178-rays 32s linear infinite!important;filter:none!important;pointer-events:none!important;
}
.game-over.ttb2166-result::after{
 content:""!important;position:fixed!important;inset:0!important;z-index:0!important;
 background:radial-gradient(circle at 50% 44%,transparent 4%,#05060936 56%,#030407a8 100%)!important;
 animation:none!important;pointer-events:none!important;
}
.game-over.ttb2166-result .game-over-card.ttb2166-result-card,
#ttbSoloV210 .game-over.ttb2166-result .game-over-card.ttb2166-result-card,
#ttb-v200-battle-root .game-over.ttb2166-result .game-over-card.ttb2166-result-card{
 box-sizing:border-box!important;flex:0 0 auto!important;width:min(87vw,440px)!important;
 height:auto!important;aspect-ratio:1!important;max-width:440px!important;max-height:none!important;
 min-height:0!important;margin:0 auto!important;padding:clamp(18px,5vw,34px)!important;
 border:3px solid var(--ray)!important;border-radius:50%!important;
 display:flex!important;flex-direction:column!important;justify-content:center!important;align-items:center!important;
 gap:clamp(5px,1.1vh,11px)!important;text-align:center!important;overflow:hidden!important;
 background:linear-gradient(#05070cc9,#080a0ee0),var(--finale-art) center/cover no-repeat!important;
 color:white!important;box-shadow:0 0 0 7px color-mix(in srgb,var(--ray) 20%,transparent),0 0 50px color-mix(in srgb,var(--ray) 34%,transparent),inset 0 0 28px #0009!important;
 z-index:2!important;animation:ttb2178-pop .6s cubic-bezier(.2,.8,.25,1) both!important;
}
.game-over.ttb2166-result .ttb2166-result-sigil{display:none!important}
.game-over.ttb2166-result .game-over-card h2{color:var(--ray)!important;text-shadow:0 3px 13px #000,0 0 18px #000!important;font-size:clamp(28px,8vw,52px)!important;line-height:1.05!important;margin:0!important;max-width:100%!important;overflow-wrap:anywhere!important}
.game-over.ttb2166-result .ttb2166-winner{margin:0!important;padding:0!important;max-width:100%!important;background:none!important;border:0!important;font-size:clamp(15px,4.5vw,21px)!important;text-shadow:0 2px 8px #000!important}
.game-over.ttb2166-result .ttb2166-winner span{color:var(--ray)!important}
.game-over.ttb2166-result .ttb2166-result-copy,.game-over.ttb2166-result .game-over-card .sub{font-size:clamp(10px,2.6vw,12px)!important;line-height:1.25!important;color:#fff!important;text-shadow:0 1px 6px black!important;margin:0!important;text-align:center!important}
.game-over.ttb2166-result .v17-result-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:3px!important;width:100%!important;margin:5px auto 0!important;padding:0!important}
.game-over.ttb2166-result .v17-result-grid>div{min-width:0!important;padding:5px 2px!important;border-radius:9px!important;background:#06080cc9!important;border:1px solid #ffffff18!important}
.game-over.ttb2166-result .v17-result-grid b{font-size:clamp(13px,4vw,21px)!important}
.game-over.ttb2166-result .v17-result-grid span{font-size:clamp(7px,1.8vw,9px)!important;overflow-wrap:anywhere!important}
.game-over.ttb2166-result .ttb2166-result-actions{position:relative!important;z-index:3!important;display:flex!important;flex-direction:column!important;gap:12px!important;width:min(82vw,390px)!important;margin:0 auto!important;flex:0 0 auto!important}
.game-over.ttb2166-result .ttb2166-result-actions button{width:100%!important;min-height:51px!important;border-radius:14px!important;font-weight:1000!important;color:#fff!important;background:#090b10e8!important;border:1px solid #ffffff70!important}
.game-over.ttb2166-result .ttb2166-result-actions .primary{background:var(--ray)!important;border-color:var(--ray)!important;color:#111218!important}
@keyframes ttb2178-rays{from{transform:translate(-50%,-50%) rotate(0deg)}to{transform:translate(-50%,-50%) rotate(360deg)}}
@keyframes ttb2178-pop{from{opacity:0;transform:scale(.87)}to{opacity:1;transform:scale(1)}}
@media(max-height:730px){.game-over.ttb2166-result .game-over-card.ttb2166-result-card{width:min(77vw,49dvh)!important;padding:13px!important}.game-over.ttb2166-result{gap:10px!important}.game-over.ttb2166-result .ttb2166-result-copy{display:none!important}.game-over.ttb2166-result .ttb2166-result-actions button{min-height:43px!important}}
/* Restore the actual five-card curved fan in local, Solo and Online. */
.battle-fullscreen-v11 .battle-hand-v11,.v200-solo-parity .battle-hand-v11{overflow:visible!important;isolation:isolate!important}
.battle-fullscreen-v11 .battle-hand-v11 .battle-hand,
#ttbSoloV210 .battle-hand-v11 .battle-hand,
#ttb-v200-battle-root .battle-hand-v11 .battle-hand{
 overflow:visible!important;display:flex!important;flex-wrap:nowrap!important;align-items:flex-end!important;justify-content:center!important;
 gap:0!important;padding:9px 5px 1px!important;isolation:isolate!important;
}
.battle-fullscreen-v11 .battle-hand-v11 .battle-hand>.v188-fan-card,
#ttbSoloV210 .battle-hand-v11 .battle-hand>.v188-fan-card,
#ttb-v200-battle-root .battle-hand-v11 .battle-hand>.v188-fan-card{
 flex:0 1 clamp(52px,16vw,79px)!important;width:clamp(52px,16vw,79px)!important;
 min-width:0!important;max-width:79px!important;margin-left:-7px!important;
 transform-origin:50% 110%!important;transform:translateY(var(--fan-offset,0px)) rotate(var(--fan-rotate,0deg))!important;
 overflow:visible!important;z-index:var(--fan-z,1)!important;
}
.battle-fullscreen-v11 .battle-hand-v11 .battle-hand>.v188-fan-card:first-child{margin-left:0!important}
.battle-hand-v11 .battle-hand>.v188-fan-card:nth-child(1){--fan-rotate:-17deg;--fan-offset:10px;--fan-z:1}
.battle-hand-v11 .battle-hand>.v188-fan-card:nth-child(2){--fan-rotate:-9deg;--fan-offset:3px;--fan-z:2}
.battle-hand-v11 .battle-hand>.v188-fan-card:nth-child(3){--fan-rotate:0deg;--fan-offset:0px;--fan-z:3}
.battle-hand-v11 .battle-hand>.v188-fan-card:nth-child(4){--fan-rotate:9deg;--fan-offset:3px;--fan-z:4}
.battle-hand-v11 .battle-hand>.v188-fan-card:nth-child(5){--fan-rotate:17deg;--fan-offset:10px;--fan-z:5}
.battle-fullscreen-v11 .battle-hand-v11 .battle-hand>.v188-fan-card.selected,
.battle-fullscreen-v11 .battle-hand-v11 .battle-hand>.v188-fan-card.refresh-selected{transform:translateY(-20px) rotate(0deg) scale(1.08)!important;z-index:20!important}
@media(prefers-reduced-motion:reduce){.game-over.ttb2166-result::before,.game-over.ttb2166-result .game-over-card.ttb2166-result-card{animation:none!important}}
