:root {
  --bg: #09060f;
  --panel: rgba(18, 12, 28, 0.82);
  --line: rgba(255, 214, 120, 0.22);
  --gold: #f4c14a;
  --gold-2: #ffe9a8;
  --text: #f6efe4;
  --muted: #b9a894;
  --danger: #ff5d4a;
  --ok: #5ee0a0;
  --dragon: #ff5a3c;
  --wolf: #7ea2ff;
  --ape: #e0b07a;
  --beast: #c77dff;
  --radius: 18px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
}

body {
  font-family: "Noto Sans SC", sans-serif;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

#bg-particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 35%, rgba(0, 0, 0, 0.55) 100%),
    linear-gradient(180deg, rgba(90, 20, 10, 0.18), transparent 28%, transparent 72%, rgba(20, 8, 40, 0.45));
}

.topbar,
main,
.overlay {
  position: relative;
  z-index: 2;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px 8px;
  gap: 12px;
}

.logo {
  font-family: "Noto Serif SC", serif;
  font-size: clamp(18px, 3vw, 34px);
  letter-spacing: 0.12em;
  text-shadow: 0 0 24px rgba(244, 193, 74, 0.35);
}

.gold-chip,
.round-chip {
  min-width: 88px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(12, 8, 18, 0.7);
  text-align: center;
  font-weight: 700;
  white-space: nowrap;
}

.gold-chip {
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.gold-chip.is-gain {
  animation: goldPulse 0.7s ease;
}

.gold-icon {
  color: var(--gold-2);
}

.round-chip {
  color: var(--muted);
  font-size: 14px;
}

.screen {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding-bottom: 40px;
}

.tagline {
  text-align: center;
  color: var(--muted);
  margin: 8px 0 16px;
  font-size: 15px;
}

.schedule-board {
  margin: 0 auto 22px;
  width: min(640px, 100%);
  padding: 18px 16px 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(14, 9, 22, 0.78);
  text-align: center;
}

.schedule-board.is-urgent {
  border-color: rgba(255, 93, 74, 0.55);
  box-shadow: 0 0 24px rgba(255, 93, 74, 0.12);
}

.demo-flag {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
}

.count-label {
  color: var(--muted);
  font-size: 13px;
}

.clock {
  margin: 6px 0 8px;
  font-variant-numeric: tabular-nums;
  font-size: clamp(40px, 8vw, 58px);
  font-weight: 900;
  color: var(--gold);
  letter-spacing: 0.08em;
  line-height: 1;
  text-shadow: 0 0 24px rgba(244, 193, 74, 0.28);
}

.clock.is-urgent {
  color: var(--danger);
  animation: hpPulse 0.8s ease infinite;
}

.lobby-stats {
  display: flex;
  justify-content: center;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
}

.lobby-stats b {
  color: var(--gold-2);
  font-size: 16px;
}

.card-people {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 12px;
  font-weight: 800;
  color: var(--gold-2);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 8px;
}

.monster-card.is-ticket {
  box-shadow: 0 0 0 1px var(--ok), 0 12px 40px color-mix(in srgb, var(--c) 28%, transparent);
}

.monster-card.is-ticket .card-name::after {
  content: " 已押";
  color: var(--ok);
  font-size: 12px;
}

.heat {
  margin: 12px auto 0;
  width: 82%;
  height: 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.heat-bar {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, color-mix(in srgb, var(--c) 80%, #fff), var(--c));
  transition: width 0.4s ease;
}

.card-pool {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.live-feed-wrap {
  margin: 18px auto 0;
  width: min(640px, 100%);
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  background: rgba(8, 6, 14, 0.72);
}

.live-feed-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 8px;
}

.live-feed {
  list-style: none;
  height: 118px;
  overflow: hidden;
  font-size: 13px;
  color: #dccdb8;
}

.live-feed li {
  padding: 3px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  animation: feedIn 0.28s ease;
}

.live-feed li:first-child {
  color: var(--gold-2);
}

.result-crowd {
  color: var(--muted);
  font-size: 14px;
  margin: -8px 0 16px;
  min-height: 20px;
}

@keyframes feedIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}

.monster-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (min-width: 1100px) {
  .monster-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.monster-card {
  position: relative;
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  background: var(--panel);
  color: inherit;
  padding: 22px 16px 18px;
  cursor: pointer;
  text-align: center;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.monster-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--c) 28%, transparent), transparent 58%);
  pointer-events: none;
}

.monster-card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--c) 70%, white);
}

.monster-card.is-selected {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold), 0 12px 40px color-mix(in srgb, var(--c) 28%, transparent);
  transform: translateY(-6px);
}

.card-odds {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 12px;
  font-weight: 800;
  color: var(--gold);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 8px;
}

.card-emoji {
  font-size: 64px;
  line-height: 1;
  filter: drop-shadow(0 10px 16px color-mix(in srgb, var(--c) 55%, transparent));
  animation: idleFloat 3.2s ease-in-out infinite;
}

.card-name {
  margin-top: 12px;
  font-size: 22px;
  font-weight: 900;
}

.card-stats {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.bet-panel {
  margin: 28px auto 0;
  width: min(640px, 100%);
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(14, 9, 22, 0.78);
  text-align: center;
}

.bet-row {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 14px;
}

.bet-label {
  color: var(--muted);
}

#bet-amount {
  font-size: 32px;
  color: var(--gold);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.chip,
.btn-primary,
.btn-ghost {
  font: inherit;
  cursor: pointer;
}

.chip {
  min-width: 64px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  color: var(--text);
}

.chip.is-active {
  background: var(--gold);
  color: #2a1600;
  border-color: var(--gold);
  font-weight: 800;
}

.payout-hint {
  margin: 14px 0 16px;
  color: var(--muted);
  min-height: 22px;
}

.btn-primary {
  width: 100%;
  max-width: 280px;
  padding: 13px 20px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffe08a, var(--gold) 38%, #c4891b);
  color: #2a1600;
  font-weight: 900;
  font-size: 18px;
  box-shadow: 0 8px 24px rgba(244, 193, 74, 0.28);
}

.btn-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-ghost {
  margin-top: 10px;
  background: transparent;
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 10px 18px;
}

.screen-battle {
  width: min(1080px, calc(100% - 20px));
}

.battle-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  gap: 10px;
}

.support-banner,
.alive-count {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(12, 8, 18, 0.72);
  border: 1px solid var(--line);
  font-size: 14px;
}

.arena {
  --flash: transparent;
  position: relative;
  height: min(74vh, 680px);
  min-height: 460px;
  border-radius: 32px;
  border: 1px solid rgba(255, 180, 80, 0.22);
  overflow: hidden;
  isolation: isolate;
  background: #10080c;
  box-shadow:
    inset 0 0 80px rgba(0, 0, 0, 0.45),
    0 20px 50px rgba(0, 0, 0, 0.35);
}

.arena.is-shake {
  animation: arenaShake 0.38s ease;
}

.arena.is-flash-fire { --flash: rgba(255, 90, 40, 0.28); }
.arena.is-flash-crit { --flash: rgba(255, 220, 90, 0.26); }
.arena.is-flash-heal { --flash: rgba(80, 255, 160, 0.18); }
.arena.is-flash-wolf { --flash: rgba(180, 40, 50, 0.26); }
.arena.is-flash-ape { --flash: rgba(180, 120, 60, 0.22); }
.arena.is-flash-beast { --flash: rgba(180, 80, 255, 0.28); }
.arena.is-flash-counter { --flash: rgba(90, 160, 255, 0.22); }

.arena-sky {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 45% at 50% 0%, rgba(255, 90, 40, 0.16), transparent 55%),
    radial-gradient(circle at 18% 22%, rgba(255, 170, 60, 0.08), transparent 18%),
    radial-gradient(circle at 82% 18%, rgba(140, 80, 255, 0.08), transparent 18%),
    linear-gradient(180deg, #1a0c14 0%, #12080e 42%, #0c0608 100%);
  pointer-events: none;
}

.arena-sky::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--flash);
  transition: background 0.15s ease;
  pointer-events: none;
}

.arena-floor {
  position: absolute;
  left: 50%;
  top: 62%;
  width: 86%;
  height: 46%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle at 50% 50%, rgba(244, 193, 74, 0.14) 0 1px, transparent 1px 26px),
    radial-gradient(circle at 50% 40%, #5a3220, #2a140e 58%, #140808 100%);
  box-shadow:
    0 30px 40px rgba(0, 0, 0, 0.5),
    inset 0 0 50px rgba(0, 0, 0, 0.45),
    inset 0 -18px 30px rgba(255, 90, 40, 0.12);
  pointer-events: none;
}

.arena-ring {
  position: absolute;
  left: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.arena-ring.outer {
  top: 62%;
  width: 78%;
  height: 38%;
  border: 2px solid rgba(244, 193, 74, 0.28);
  box-shadow: 0 0 28px rgba(244, 193, 74, 0.12), inset 0 0 24px rgba(255, 80, 30, 0.08);
}

.arena-ring.inner {
  top: 62%;
  width: 36%;
  height: 16%;
  border: 1px solid rgba(255, 210, 120, 0.2);
  background: radial-gradient(ellipse, rgba(255, 80, 30, 0.18), transparent 70%);
}

.arena-embers {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(255, 180, 80, 0.55) 0 1px, transparent 2px),
    radial-gradient(circle, rgba(255, 90, 40, 0.4) 0 1px, transparent 2px);
  background-size: 180px 220px, 140px 180px;
  background-position: 10% 80%, 80% 70%;
  animation: emberDrift 8s linear infinite;
  opacity: 0.45;
}

.fx-canvas,
.fx-dom {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.fx-slash {
  position: absolute;
  height: 4px;
  border-radius: 999px;
  transform-origin: 0 50%;
  animation: slashShot 0.32s ease-out forwards;
  box-shadow: 0 0 12px currentColor;
}

.fx-shock {
  position: absolute;
  width: 24px;
  height: 24px;
  border: 3px solid rgba(255, 220, 150, 0.8);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: shockwave 0.55s ease-out forwards;
}

.fx-ko {
  position: absolute;
  transform: translate(-50%, -50%);
  font-weight: 900;
  font-size: 28px;
  letter-spacing: 0.18em;
  color: #ffd36a;
  text-shadow: 0 0 16px #ff4d3a, 0 2px 0 #000;
  animation: koPop 0.9s ease forwards;
  z-index: 6;
}

.fighters {
  position: absolute;
  inset: 0 0 84px;
  z-index: 3;
}

.fighter {
  position: absolute;
  width: 180px;
  text-align: center;
  transition: opacity 0.28s ease, filter 0.28s ease;
  animation: fighterEnter 0.5s ease both;
}

.fighter[data-id="dragon"] { top: 4%; left: calc(50% - 90px); animation-delay: 0.02s; }
.fighter[data-id="wolf"] { top: 34%; left: 4%; animation-delay: 0.1s; }
.fighter[data-id="beast"] { top: 34%; right: 4%; animation-delay: 0.18s; }
.fighter[data-id="ape"] { bottom: 2%; left: calc(50% - 90px); animation-delay: 0.26s; }

.fighter.is-supported .name {
  color: var(--gold);
}

.fighter.is-supported .platform {
  box-shadow: 0 0 22px color-mix(in srgb, var(--gold) 55%, transparent);
}

.fighter.is-dim {
  opacity: 0.38;
  filter: saturate(0.6);
}

.fighter.is-dead {
  opacity: 0.32;
  filter: grayscale(1);
  pointer-events: none;
}

.fighter.is-dead .fighter-body {
  animation: deathFall 0.7s ease forwards;
}

.fighter.is-dead .emoji {
  animation: none;
}

.fighter.is-winner .emoji {
  animation: winnerBounce 1.2s ease infinite;
  filter: drop-shadow(0 0 22px var(--gold));
}

.fighter-body {
  position: relative;
}

.fighter-body.is-attacking {
  animation: lungeTo 0.42s ease;
  z-index: 5;
}

.fighter-body.is-hit {
  animation: knock 0.38s ease;
}

.fighter-body.is-heal .emoji {
  filter: drop-shadow(0 0 18px var(--ok));
}

.aura {
  position: absolute;
  left: 50%;
  top: 28px;
  width: 88px;
  height: 88px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--c) 40%, transparent), transparent 70%);
  filter: blur(4px);
  pointer-events: none;
}

.sprite {
  position: relative;
  display: inline-block;
}

.sprite::after {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  opacity: 0;
  background: radial-gradient(circle, #fff 0%, transparent 68%);
  pointer-events: none;
}

.fighter-body.is-hit .sprite::after {
  animation: impactFlash 0.32s ease;
}

.platform {
  width: 108px;
  height: 22px;
  margin: -6px auto 0;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 50% 40%, color-mix(in srgb, var(--c) 70%, #fff), transparent 70%),
    rgba(0, 0, 0, 0.35);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.35);
}

.emoji {
  font-size: 78px;
  line-height: 1;
  display: inline-block;
  animation: idleFloat 3s ease-in-out infinite;
  filter: drop-shadow(0 10px 12px rgba(0, 0, 0, 0.45));
}

.name {
  margin-top: 4px;
  font-weight: 800;
  text-shadow: 0 2px 8px #000;
}

.hp-wrap {
  width: 138px;
  margin: 7px auto 0;
  height: 11px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.5);
}

.hp-bar {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #3ddc84, #d4ff6a);
  transform-origin: left center;
  transition: transform 0.35s ease, background 0.3s ease;
}

.hp-bar.is-mid {
  background: linear-gradient(90deg, #ffb347, #ffe56a);
}

.hp-bar.is-low {
  background: linear-gradient(90deg, #ff3b30, #ff8a3d);
  animation: hpPulse 0.8s ease infinite;
}

.hp-text {
  margin-top: 4px;
  font-size: 12px;
  color: #efe3d0;
  text-shadow: 0 1px 4px #000;
}

.float-num {
  position: absolute;
  left: 50%;
  top: 10px;
  transform: translateX(-50%);
  font-weight: 900;
  font-size: 24px;
  pointer-events: none;
  animation: floatUp 0.9s ease forwards;
  text-shadow: 0 2px 8px #000;
  z-index: 7;
}

.float-num.heal { color: var(--ok); }
.float-num.dmg { color: #ffd1c8; }
.float-num.crit { color: #ffe56a; font-size: 30px; }

.event-banner {
  position: absolute;
  left: 50%;
  top: 48%;
  transform: translate(-50%, -50%) scale(0.7);
  opacity: 0;
  z-index: 8;
  padding: 12px 26px;
  border-radius: 16px;
  font-size: 30px;
  font-weight: 900;
  letter-spacing: 0.14em;
  background: rgba(8, 4, 12, 0.82);
  border: 1px solid var(--gold);
  pointer-events: none;
  box-shadow: 0 0 30px rgba(244, 193, 74, 0.25);
  white-space: nowrap;
}

.event-banner[data-kind="crit"] { border-color: #ffe56a; color: #ffe56a; }
.event-banner[data-kind="heal"] { border-color: var(--ok); color: var(--ok); }
.event-banner[data-kind="counter"] { border-color: #7ea2ff; color: #b7cbff; }
.event-banner[data-kind="skill"] { border-color: #ff9a4a; }

.event-banner.is-show {
  animation: bannerPop 0.9s ease;
}

.combat-log {
  position: absolute;
  left: 12px;
  right: auto;
  width: min(460px, 56%);
  bottom: 8px;
  z-index: 6;
  list-style: none;
  max-height: 78px;
  overflow: hidden;
  padding: 18px 14px 6px;
  border: 0;
  background: linear-gradient(180deg, transparent, rgba(6, 3, 8, 0.78) 36%);
  font-size: 13px;
  color: #dccdb8;
  pointer-events: none;
}

.combat-log li {
  padding: 2px 0;
  opacity: 0.55;
}

.combat-log li:last-child {
  color: var(--gold-2);
  font-weight: 700;
  opacity: 1;
}

.combat-log li:nth-last-child(2) {
  opacity: 0.8;
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(8px);
}

.result-card {
  width: min(420px, calc(100% - 32px));
  padding: 32px 24px;
  text-align: center;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(36, 22, 18, 0.96), rgba(12, 8, 18, 0.96));
  border: 1px solid var(--line);
}

.result-kicker {
  color: var(--muted);
  margin-bottom: 8px;
}

.result-winner {
  font-size: 84px;
  line-height: 1;
}

.result-card h2 {
  margin: 8px 0 12px;
  font-size: 28px;
}

.result-payout {
  color: var(--gold);
  font-size: 20px;
  font-weight: 800;
  min-height: 32px;
  margin-bottom: 18px;
}

.result-card .btn-primary {
  max-width: none;
}

.hidden {
  display: none !important;
}

@keyframes fighterEnter {
  from { transform: translateY(18px) scale(0.82); }
  to { transform: translateY(0) scale(1); }
}

@keyframes idleFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes lungeTo {
  0% { transform: translate(0, 0) scale(1); }
  38% { transform: translate(var(--lx, 0px), var(--ly, -14px)) scale(1.16); }
  100% { transform: translate(0, 0) scale(1); }
}

@keyframes knock {
  0% { transform: translate(0, 0) scale(1); }
  28% { transform: translate(var(--kx, 10px), var(--ky, 0px)) scale(0.9); filter: brightness(2.2); }
  100% { transform: translate(0, 0) scale(1); filter: none; }
}

@keyframes impactFlash {
  0% { opacity: 0.9; }
  100% { opacity: 0; }
}

@keyframes deathFall {
  0% { transform: translateY(0) rotate(0); }
  100% { transform: translateY(18px) rotate(16deg) scale(0.88); }
}

@keyframes floatUp {
  0% { opacity: 1; transform: translate(-50%, 0); }
  100% { opacity: 0; transform: translate(-50%, -46px); }
}

@keyframes bannerPop {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.55); }
  16% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }
  72% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1); }
}

@keyframes arenaShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  45% { transform: translateX(7px); }
  70% { transform: translateX(-4px); }
}

@keyframes winnerBounce {
  0%, 100% { transform: translateY(0) scale(1.08); }
  50% { transform: translateY(-10px) scale(1.14); }
}

@keyframes goldPulse {
  0% { box-shadow: 0 0 0 0 rgba(244, 193, 74, 0.5); }
  100% { box-shadow: 0 0 0 12px transparent; }
}

@keyframes hpPulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.45); }
}

@keyframes emberDrift {
  0% { background-position: 10% 80%, 80% 70%; }
  100% { background-position: 12% 20%, 78% 10%; }
}

@keyframes slashShot {
  0% { opacity: 0; transform: rotate(var(--ang)) scaleX(0.2); }
  30% { opacity: 1; transform: rotate(var(--ang)) scaleX(1); }
  100% { opacity: 0; transform: rotate(var(--ang)) scaleX(1.05); }
}

@keyframes shockwave {
  0% { opacity: 0.9; width: 18px; height: 18px; }
  100% { opacity: 0; width: 160px; height: 160px; }
}

@keyframes koPop {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.4); }
  25% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
  70% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -70%) scale(1); }
}

@media (max-width: 800px) {
  .fighters {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    place-items: center;
    inset: 0 0 70px;
  }

  .fighter {
    position: relative;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    width: 140px;
  }

  .emoji,
  .card-emoji {
    font-size: 52px;
  }

  .event-banner {
    font-size: 22px;
    padding: 8px 16px;
  }
}

@media (max-width: 560px) {
  .topbar {
    padding: 12px;
  }

  .logo {
    letter-spacing: 0.04em;
  }

  .arena {
    min-height: 420px;
    height: min(70vh, 560px);
  }

  .card-emoji {
    font-size: 48px;
  }

  .card-name {
    font-size: 18px;
  }
}
