/* TO THE BEATZ v21.6.6 — Battle visual corrections only. No gameplay changes. */
/* Full card art should never be center-cropped. Preserve poker proportions. */
.battle-fullscreen-v11 .hand-card.v188-fan-card,
#ttb-v200-battle-root .hand-card.v188-fan-card{
  height:clamp(80px,11dvh,103px)!important;
  width:clamp(50px,15.5vw,75px)!important;
  flex:0 1 clamp(50px,15.5vw,75px)!important;
  min-width:0!important;
  max-width:75px!important;
  aspect-ratio:67 / 92!important;
  margin-left:0!important;
  transform:translateY(0) rotate(0deg)!important;
  border-radius:7px!important;
  overflow:hidden!important;
}
.battle-fullscreen-v11 .hand-card.v188-fan-card.selected,
.battle-fullscreen-v11 .hand-card.v188-fan-card.refresh-selected,
#ttb-v200-battle-root .hand-card.v188-fan-card.selected{
  transform:translateY(-5px) scale(1.025)!important;
}
.battle-fullscreen-v11 .battle-hand-v11 .battle-hand,
#ttb-v200-battle-root .battle-hand-v11 .battle-hand{
  height:clamp(91px,12dvh,117px)!important;
  min-height:0!important;
  width:100%!important;
  padding:6px 2px 4px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:clamp(2px,1vw,7px)!important;
  overflow:hidden!important;
  box-sizing:border-box!important;
}
.battle-fullscreen-v11 .v188-fan-card .hand-art,
#ttb-v200-battle-root .v188-fan-card .hand-art{
  position:absolute!important;inset:0!important;
  width:100%!important;height:100%!important;overflow:hidden!important;
}
.battle-fullscreen-v11 .v188-fan-card .hand-art>img,
#ttb-v200-battle-root .v188-fan-card .hand-art>img{
  position:absolute!important;inset:0!important;top:0!important;left:0!important;
  width:100%!important;height:100%!important;
  max-width:100%!important;max-height:100%!important;
  object-fit:contain!important;object-position:center!important;
  transform:none!important;
}
/* Local Pass & Play uses the same 3 compact controls as Solo/Online. */
.battle-fullscreen-v11 .ttb2166-local-footer{
  display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:6px!important;width:100%!important;min-width:0!important;
}
.battle-fullscreen-v11 .ttb2166-local-tool{
  min-width:0!important;min-height:36px!important;padding:5px!important;
  display:flex!important;align-items:center;justify-content:center;gap:5px;
  border:1px solid #31596c;border-radius:12px;background:#102b3b;color:#def7ff;
}
.battle-fullscreen-v11 .ttb2166-local-tool span{font-size:16px}
.battle-fullscreen-v11 .ttb2166-local-tool small{font-size:9px;font-weight:900;white-space:nowrap}
.battle-fullscreen-v11 .ttb2166-local-danger{border-color:#a64458;background:#45151e;color:#ffe0e7}
.ttb2166-reactions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:15px}
.ttb2166-reactions button{min-width:0;background:#14334a;border:1px solid #438197;color:#f3fcff;border-radius:12px;padding:12px 4px;font-size:11px;font-weight:900}
/* A fixed result sheet; no rotating pseudo background or page-scale animation. */
.game-over,.battle-fullscreen-v11>.game-over,
#ttb-v200-battle-root .game-over{
  position:fixed!important;inset:0!important;z-index:999!important;
  display:flex!important;align-items:center!important;justify-content:center!important;
  padding:calc(12px + env(safe-area-inset-top)) 16px calc(12px + env(safe-area-inset-bottom))!important;
  box-sizing:border-box!important;overflow:hidden!important;
  overscroll-behavior:none!important;touch-action:pan-y;
  background:rgba(2,7,15,.89)!important;backdrop-filter:blur(16px);
}
.game-over::before,.game-over::after{content:none!important;animation:none!important;display:none!important}
.game-over .game-over-card{
  position:relative!important;flex:0 1 460px!important;max-width:100%!important;
  max-height:calc(100dvh - 55px)!important;overflow-y:auto!important;
  overscroll-behavior:contain!important;
  border-radius:26px!important;border:1px solid #387c95!important;
  background:radial-gradient(ellipse at 50% -20%,rgba(45,205,225,.18),transparent 62%),linear-gradient(155deg,#102638,#06101c 80%)!important;
  padding:clamp(18px,5vw,30px)!important;
  box-shadow:0 28px 85px #000b,0 0 36px #3bd5ec19!important;
  animation:ttb2166-result-in .38s ease-out both!important;
}
@keyframes ttb2166-result-in{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
.game-over .game-over-card .eyebrow{color:#76dbea;letter-spacing:.19em}
.game-over .game-over-card h2{font-size:clamp(31px,8vw,44px)!important;line-height:1.05!important;margin:12px 0!important;letter-spacing:-.04em}
.ttb2166-result-sigil{width:58px;height:58px;margin:0 auto 12px;border-radius:50%;display:grid;place-items:center;font-size:32px;background:#123b4d;border:1px solid #5abed2;color:#b5f7ff}
.ttb2166-result-card.is-victory .ttb2166-result-sigil{background:#3c3017;border-color:#eac66b;color:#ffdf90}
.ttb2166-result-card.is-defeat .ttb2166-result-sigil{background:#41222e;border-color:#da7797;color:#ffc0d2}
.ttb2166-winner{font-size:17px;font-weight:900;margin:8px 0;color:#f7fdff}
.ttb2166-winner span{font-size:11px;letter-spacing:.15em;color:#87dced}
.ttb2166-result-copy{color:#acc8d6;font-size:13px;margin:10px 0 16px}
.ttb2166-result-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:15px}
.ttb2166-result-actions button{min-width:0!important;margin:0!important;min-height:47px;border-radius:13px!important}
/* Online/Server Solo share the upgraded frame even when the summary is generated elsewhere. */
#ttbSoloV210 .game-over .game-over-card .sub,
#ttb-v200-battle-root .game-over .game-over-card .sub{font-size:13px!important;line-height:1.5!important}
@media(prefers-reduced-motion:reduce){.game-over .game-over-card{animation:none!important}}
@media(max-height:730px){
 .battle-fullscreen-v11 .hand-card.v188-fan-card{height:84px!important}
 .battle-fullscreen-v11 .battle-hand-v11 .battle-hand{height:95px!important}
 .game-over .game-over-card{padding:17px!important}
}
