.sc-battle {
  position: relative; width: 540px; height: 900px; overflow: hidden;
  isolation: isolate; background: #0f0f0f; color: #fff;
  font-family: 'Game Rounded', 'SF Pro Rounded Local', sans-serif;
  user-select: none; -webkit-user-select: none;
}
.sc-battle *, .sc-battle *::before, .sc-battle *::after { box-sizing: border-box; }
.sc-battle .sc-code-card, .sc-battle .sc-code-card * { font-family: 'Game Rounded', 'SF Pro Rounded Local', sans-serif !important; }
.sc-battle-light, .sc-battle-court, .sc-battle-noise, .sc-battle-hand,
.sc-battle-empty-slots { position: absolute; inset: 0; pointer-events: none; }
.sc-battle-light { overflow: hidden; z-index: 0; }
.sc-battle-light > div:not(.sc-battle-noise) { position: absolute; left: 50%; top: 50%; border-radius: 50%; }
.sc-battle-light--warm { width: 275px; height: 275px; margin-left: -137.5px; margin-top: -137.5px; background: #ff745e; filter: blur(142px); }
.sc-battle-light--gold { width: 152px; height: 152px; margin-left: -76px; margin-top: -171px; background: #d0900f; opacity: .6; filter: blur(57px); }
.sc-battle-light--blue { width: 152px; height: 152px; margin-left: -76px; margin-top: 19px; background: #360fd0; opacity: .6; filter: blur(57px); }
.sc-battle-noise { background-repeat: repeat; background-position: center; background-size: 256px 256px; opacity: .3; mix-blend-mode: overlay; }
.sc-battle-court { z-index: 1; }
.sc-battle-court > svg { display: block; width: 540px; height: 900px; }
.sc-battle-hand { z-index: 6; }
.sc-battle-hand-card, .sc-battle-actor { position: absolute; left: 0; top: 0; width: 380px; height: 528px; transform-origin: center center; }
.sc-battle-hand-card { filter: drop-shadow(0 -8px 18px rgba(0,0,0,.18)); }
.sc-battle-hand-card > *, .sc-battle-side > * { display: block; width: 380px; height: 528px; }
.sc-battle-actor { z-index: 12; perspective: 1400px; will-change: transform; }
.sc-battle-flipper { width: 380px; height: 528px; position: relative; transform-style: preserve-3d; }
.sc-battle-side { position: absolute; inset: 0; width: 380px; height: 528px; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; border-radius: 24px; }
.sc-battle-side--face { transform: rotateY(180deg); }
.sc-battle-glint { position: absolute; inset: 0; pointer-events: none; background: #fff; opacity: 0; mix-blend-mode: screen; border-radius: 24px; }
.sc-battle-empty-slots { z-index: 2; }
.sc-battle-empty { position: absolute; width: 76px; height: 110px; transform: translate(-50%,-50%); opacity: .07; }
.sc-battle-rail {
  position: absolute; left: -34px; width: 88px; z-index: 20;
  display: flex; flex-direction: column; align-items: flex-end;
  padding: 10.5px 10.5px 10.5px 44px; gap: 6px;
  background: rgba(255,255,255,.04);
  box-shadow: inset -.5px -.5px 1px rgba(255,255,255,.15), inset .5px .5px 1px rgba(255,255,255,.30);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.sc-battle-rail--enemy { top: 108px; height: 55px; border-radius: 0 32px 32px 0; }
.sc-battle-rail--player { top: 621px; height: 135px; border-radius: 0 24px 24px 0; }
.sc-battle-avatar, .sc-battle-boost { width: 34px; height: 34px; position: relative; flex: 0 0 34px; border-radius: 50%; }
.sc-battle-avatar { overflow: hidden; }
.sc-battle-avatar > svg { width: 34px; height: 34px; display: block; position: absolute; inset: 0; }
.sc-battle-avatar > img { width: 30px; height: 30px; display: block; position: absolute; inset: 2px; border-radius: 50%; object-fit: cover; }
.sc-battle-boost { display: grid; place-items: center; background: rgba(255,255,255,.08); box-shadow: inset -.5px -.5px 1px rgba(255,255,255,.15), inset .5px .5px 1px rgba(255,255,255,.30); }
.sc-battle-boost > img { width: 22px; height: 22px; display: block; object-fit: contain; }
.sc-battle-flag {
  position: absolute; right: -34px; top: 108px; width: 88px; height: 55px;
  border-radius: 32px 0 0 32px; z-index: 20;
  background: rgba(255,255,255,.04);
  box-shadow: inset -.5px -.5px 1px rgba(255,255,255,.15), inset .5px .5px 1px rgba(255,255,255,.30);
}
.sc-battle-flag > img { width: 34px; height: 34px; display: block; position: absolute; left: 10.5px; top: 10.5px; }
.sc-battle-action-rail {
  position: absolute; right: -34px; top: 621px; width: 88px; height: 135px;
  border-radius: 24px 0 0 24px; z-index: 20;
  background: rgba(255,255,255,.04);
  box-shadow: inset -.5px -.5px 1px rgba(255,255,255,.15), inset .5px .5px 1px rgba(255,255,255,.30);
}
.sc-battle-action {
  position: absolute; top: 10.5px; left: 10.5px; width: 34px; height: 114px;
  border-radius: 999px; background: #fff; display: grid; place-items: center;
  transform-origin: center center; color: #211614;
}
.sc-battle-action-seconds { position: absolute; font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1; }
.sc-battle-action-arrow { position: absolute; width: 24px; height: 24px; display: block; }
.sc-battle-energy {
  position: absolute; left: 226px; top: 868px; width: 88px; height: 34px; z-index: 20;
  border-radius: 19px 19px 0 0; border: .5px solid rgba(255,255,255,.07);
  background: rgba(255,255,255,.05); display: flex; justify-content: center;
  align-items: flex-start; gap: 2px; padding-top: 9px;
}
.sc-battle-energy-slot { width: 16px; height: 16px; flex: 0 0 16px; border-radius: 50%; background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 .551px rgba(255,255,255,.10); }
.sc-battle-energy-slot > img { display: block; width: 16px; height: 16px; opacity: .08; }
.sc-battle-energy-slot.is-filled { background: #54bcdc; box-shadow: none; }
.sc-battle-energy-slot.is-filled > img { opacity: 1; }
