:root {
  --bg: #0d1110;
  --panel: rgba(20, 30, 27, 0.86);
  --panel-strong: rgba(29, 44, 38, 0.94);
  --text: #edf8ef;
  --muted: #aebfb3;
  --acid: #a7f06c;
  --amber: #f6c35b;
  --danger: #ff6d6d;
  --line: rgba(237, 248, 239, 0.14);
  --shadow: rgba(0, 0, 0, 0.35);
  --scroll-thumb: rgba(167, 240, 108, 0.38);
  --scroll-thumb-strong: rgba(246, 195, 91, 0.54);
  --scroll-track: rgba(255, 255, 255, 0.035);
}

* {
  box-sizing: border-box;
}


html {
  scrollbar-width: thin;
  scrollbar-color: rgba(167, 240, 108, 0.32) rgba(255, 255, 255, 0.035);
}

body::-webkit-scrollbar,
.fight-modal-card::-webkit-scrollbar,
.battle-log::-webkit-scrollbar,
.lore-modal-card::-webkit-scrollbar,
.tournament-modal-card::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

body::-webkit-scrollbar-track,
.fight-modal-card::-webkit-scrollbar-track,
.battle-log::-webkit-scrollbar-track,
.lore-modal-card::-webkit-scrollbar-track,
.tournament-modal-card::-webkit-scrollbar-track {
  background: var(--scroll-track);
  border-radius: 999px;
}

body::-webkit-scrollbar-thumb,
.fight-modal-card::-webkit-scrollbar-thumb,
.battle-log::-webkit-scrollbar-thumb,
.lore-modal-card::-webkit-scrollbar-thumb,
.tournament-modal-card::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--scroll-thumb), var(--scroll-thumb-strong)) border-box;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

body::-webkit-scrollbar-thumb:hover,
.fight-modal-card::-webkit-scrollbar-thumb:hover,
.battle-log::-webkit-scrollbar-thumb:hover,
.lore-modal-card::-webkit-scrollbar-thumb:hover,
.tournament-modal-card::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(167, 240, 108, 0.58), rgba(246, 195, 91, 0.72)) border-box;
}

.fight-modal-card,
.battle-log,
.lore-modal-card,
.tournament-modal-card {
  scrollbar-width: thin;
  scrollbar-color: var(--scroll-thumb) var(--scroll-track);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 15% 10%, rgba(167, 240, 108, 0.18), transparent 28rem),
    radial-gradient(circle at 80% 20%, rgba(246, 195, 91, 0.13), transparent 25rem),
    linear-gradient(135deg, #0d1110 0%, #131b18 45%, #0a0d0c 100%);
}

body.modal-open {
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.75), transparent 85%);
}

button,
select {
  font: inherit;
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0 60px;
}

.hero {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2.6rem, 7vw, 5.6rem);
  line-height: 0.9;
  margin-bottom: 14px;
  letter-spacing: -0.08em;
  text-transform: uppercase;
  text-shadow: 0 0 28px rgba(167, 240, 108, 0.18);
}

h2 {
  margin-bottom: 8px;
}

.eyebrow {
  margin-bottom: 8px;
  color: var(--acid);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  font-weight: 800;
  text-transform: uppercase;
}

.tagline,
.subtitle,
.lore,
#arenaDescription {
  color: var(--muted);
}

.tagline {
  font-size: 1.08rem;
  max-width: 680px;
}

.panel {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 18px 55px var(--shadow);
  backdrop-filter: blur(16px);
  border-radius: 24px;
}

.controls {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 14px;
  align-items: end;
  padding: 18px;
  margin-bottom: 20px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

select {
  min-height: 46px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 14px;
  color: var(--text);
  background: rgba(7, 10, 9, 0.9);
  outline: none;
}

select:focus {
  border-color: rgba(167, 240, 108, 0.55);
  box-shadow: 0 0 0 4px rgba(167, 240, 108, 0.08);
}

button {
  border: 0;
  cursor: pointer;
  color: #11170f;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: transform 150ms ease, filter 150ms ease;
}

button:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.fight-button,
.ghost-button {
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
}

.fight-button {
  background: linear-gradient(135deg, var(--acid), var(--amber));
}

.ghost-button {
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.08);
}

.sound-toggle {
  min-width: 126px;
}

.supernatural-toggle {
  min-width: 176px;
}

.supernatural-toggle.is-on {
  color: #160f1f;
  border-color: rgba(186, 122, 255, 0.65);
  background: linear-gradient(135deg, #ba7aff, #f6c35b);
  box-shadow: 0 0 24px rgba(186, 122, 255, 0.24);
}

.roster-mode-note {
  grid-column: 1 / -1;
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.4;
}

body.supernatural-active .hero h1 {
  text-shadow: 0 0 34px rgba(186, 122, 255, 0.26), 0 0 22px rgba(167, 240, 108, 0.16);
}

.sound-toggle.is-on {
  color: #11170f;
  border-color: rgba(167, 240, 108, 0.5);
  background: linear-gradient(135deg, var(--acid), var(--amber));
  box-shadow: 0 0 22px rgba(167, 240, 108, 0.18);
}

.versus-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  align-items: stretch;
  margin-bottom: 20px;
}

.versus-mark {
  display: grid;
  place-items: center;
  width: 72px;
  min-height: 100%;
  color: var(--amber);
  font-weight: 950;
  font-size: 1.6rem;
  text-shadow: 0 0 22px rgba(246, 195, 91, 0.45);
}

.cryptid-card {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.card-topline h2 {
  font-size: 2rem;
  margin-bottom: 2px;
  letter-spacing: -0.04em;
}

.lore {
  line-height: 1.55;
}

.traits {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.traits span,
.bonus-list span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  color: var(--muted);
  font-size: 0.82rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.stat-pill {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,0.05);
  padding: 10px 12px;
}

.stat-pill span {
  color: var(--muted);
}

.stat-pill strong {
  color: var(--text);
  font-size: 1.15rem;
}

.stat-bonus {
  color: var(--acid) !important;
  font-size: 0.78rem;
  font-weight: 900;
}

details {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

summary {
  cursor: pointer;
  color: var(--amber);
  font-weight: 800;
}

.abilities {
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.abilities li + li {
  margin-top: 10px;
}

.abilities strong {
  color: var(--text);
}

.arena {
  padding: 22px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.bonus-list {
  display: flex;
  justify-content: flex-end;
  align-content: flex-start;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 520px;
}

.fight-preview {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px;
  margin-bottom: 20px;
}

.preview-chip {
  display: inline-grid;
  place-items: center;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid rgba(167, 240, 108, 0.34);
  border-radius: 999px;
  color: var(--acid);
  background: rgba(167, 240, 108, 0.08);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}


.fight-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  min-height: 250px;
  padding: 22px;
  margin-bottom: 20px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 108%, rgba(167, 240, 108, 0.2), transparent 24rem),
    linear-gradient(180deg, rgba(20, 30, 27, 0.92), rgba(8, 11, 10, 0.92));
}

.fight-stage::before {
  content: "";
  position: absolute;
  inset: auto 20px 22px;
  height: 72px;
  border: 1px solid rgba(237, 248, 239, 0.08);
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(167, 240, 108, 0.12), transparent 68%);
  pointer-events: none;
  z-index: 0;
}

.fight-stage::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 44%;
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.34), transparent),
    radial-gradient(ellipse at center, rgba(255, 255, 255, 0.055), transparent 72%);
  pointer-events: none;
  z-index: 0;
}

.arena-scenery {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.arena-scenery span {
  position: absolute;
  bottom: 16px;
  display: block;
  opacity: 0.7;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.32));
}

.arena-scenery span:nth-child(1) { left: 5%; }
.arena-scenery span:nth-child(2) { left: 18%; transform: scale(0.72); opacity: 0.46; }
.arena-scenery span:nth-child(3) { right: 17%; transform: scale(0.78); opacity: 0.5; }
.arena-scenery span:nth-child(4) { right: 5%; }

.fight-stage[data-arena="deep-woods"] {
  background:
    radial-gradient(circle at 50% 18%, rgba(198, 255, 164, 0.18), transparent 9rem),
    radial-gradient(circle at 10% 75%, rgba(55, 120, 72, 0.42), transparent 18rem),
    linear-gradient(180deg, #07100d 0%, #102018 50%, #07100d 100%);
}

.fight-stage[data-arena="deep-woods"] .arena-scenery span,
.fight-stage[data-arena="everglades"] .arena-scenery span,
.fight-stage[data-arena="riverbank"] .arena-scenery span {
  width: 42px;
  height: 152px;
  border-radius: 24px 24px 8px 8px;
  background:
    radial-gradient(circle at 50% 5%, rgba(70, 133, 68, 0.92) 0 36px, transparent 37px),
    linear-gradient(90deg, #1c2c20, #2f452f);
}

.fight-stage[data-arena="abandoned-bridge"] {
  background:
    linear-gradient(180deg, #10191c 0%, #1e2422 46%, #060807 100%),
    radial-gradient(circle at 50% 55%, rgba(246, 195, 91, 0.12), transparent 18rem);
}

.fight-stage[data-arena="abandoned-bridge"] .arena-scenery span {
  width: 24px;
  height: 128px;
  border-radius: 8px;
  background: linear-gradient(90deg, #293636, #5c5e55);
  box-shadow: 34px 64px 0 -9px rgba(150, 148, 125, 0.72);
}

.fight-stage[data-arena="desert-ranch"],
.fight-stage[data-arena="dust-bowl"] {
  background:
    radial-gradient(circle at 72% 18%, rgba(246, 195, 91, 0.42), transparent 7rem),
    linear-gradient(180deg, #2b1b19 0%, #6b4932 56%, #2d1b15 100%);
}

.fight-stage[data-arena="desert-ranch"] .arena-scenery span,
.fight-stage[data-arena="dust-bowl"] .arena-scenery span {
  width: 22px;
  height: 112px;
  border-radius: 20px 20px 8px 8px;
  background: #405936;
  box-shadow: 21px 28px 0 -8px #405936, -18px 42px 0 -9px #405936;
}

.fight-stage[data-arena="foggy-hilltop"],
.fight-stage[data-arena="old-cemetery"] {
  background:
    radial-gradient(circle at 50% 52%, rgba(210, 181, 255, 0.20), transparent 20rem),
    linear-gradient(180deg, #151320 0%, #202634 52%, #07090d 100%);
}

.fight-stage[data-arena="foggy-hilltop"] .arena-scenery span,
.fight-stage[data-arena="old-cemetery"] .arena-scenery span {
  width: 38px;
  height: 70px;
  border-radius: 18px 18px 6px 6px;
  background: linear-gradient(90deg, #3b3f49, #6f7480);
  box-shadow: 0 -38px 60px 18px rgba(222, 235, 232, 0.08);
}

.fight-stage[data-arena="riverbank"],
.fight-stage[data-arena="moonlit-lake"] {
  background:
    radial-gradient(circle at 52% 18%, rgba(205, 238, 255, 0.35), transparent 7rem),
    linear-gradient(180deg, #0c1820 0%, #16334a 48%, #041015 100%);
}

.fight-stage[data-arena="moonlit-lake"] .arena-scenery span,
.fight-stage[data-arena="loch"] .arena-scenery span {
  width: 86px;
  height: 18px;
  border-radius: 50%;
  background: rgba(205, 238, 255, 0.22);
  box-shadow: 0 18px 0 -3px rgba(205, 238, 255, 0.13), 0 36px 0 -7px rgba(205, 238, 255, 0.08);
}

.fight-stage[data-arena="snowfield"] {
  background:
    radial-gradient(circle at 48% 18%, rgba(255, 255, 255, 0.68), transparent 8rem),
    linear-gradient(180deg, #23313c 0%, #6c8492 54%, #e3eff0 100%);
}

.fight-stage[data-arena="snowfield"] .arena-scenery span {
  width: 74px;
  height: 76px;
  border-radius: 50% 50% 12px 12px;
  background: rgba(240, 250, 255, 0.86);
}

.fight-stage[data-arena="lonely-road"] {
  background:
    radial-gradient(circle at 50% 22%, rgba(255, 244, 190, 0.26), transparent 9rem),
    linear-gradient(180deg, #101214 0%, #1f2221 48%, #050606 100%);
}

.fight-stage[data-arena="lonely-road"] .arena-scenery span {
  width: 18px;
  height: 132px;
  border-radius: 8px;
  background: #303537;
  box-shadow: 0 -20px 0 10px rgba(255, 235, 150, 0.22);
}

.fight-stage[data-arena="abandoned-mine"] {
  background:
    radial-gradient(circle at 50% 72%, rgba(246, 195, 91, 0.14), transparent 16rem),
    linear-gradient(180deg, #12100d 0%, #262017 48%, #060504 100%);
}

.fight-stage[data-arena="abandoned-mine"] .arena-scenery span {
  width: 74px;
  height: 128px;
  border: 10px solid rgba(102, 74, 41, 0.72);
  border-bottom: 0;
  border-radius: 48px 48px 0 0;
}

.stage-fighter {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  min-height: 190px;
  isolation: isolate;
}

.sprite-buddy {
  display: grid;
  place-items: center;
  width: clamp(92px, 13vw, 138px);
  height: clamp(92px, 13vw, 138px);
  border: 2px solid rgba(237, 248, 239, 0.16);
  border-radius: 38% 44% 42% 36%;
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.28), transparent 21%),
    linear-gradient(145deg, rgba(167, 240, 108, 0.2), rgba(246, 195, 91, 0.1)),
    rgba(7, 10, 9, 0.82);
  box-shadow:
    inset 0 0 24px rgba(255, 255, 255, 0.06),
    0 16px 34px rgba(0, 0, 0, 0.32),
    0 0 32px rgba(167, 240, 108, 0.08);
  font-size: clamp(3rem, 8vw, 5.2rem);
  line-height: 1;
  transform-origin: center bottom;
  animation: idle-bob 2.4s ease-in-out infinite;
  user-select: none;
}

.sprite-buddy[data-pose="attack"],
.sprite-buddy[data-pose="special"] {
  border-color: rgba(246, 195, 91, 0.28);
}

.sprite-buddy[data-pose="hit"],
.sprite-buddy[data-pose="lose"] {
  border-color: rgba(255, 104, 104, 0.26);
}

.sprite-buddy[data-pose="win"] {
  border-color: rgba(167, 240, 108, 0.34);
}

.sprite-buddy.has-image {
  overflow: visible;
  padding: 4px;
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.20), transparent 20%),
    linear-gradient(145deg, rgba(167, 240, 108, 0.13), rgba(246, 195, 91, 0.09)),
    rgba(7, 10, 9, 0.66);
}

.sprite-image {
  width: 110%;
  height: 110%;
  object-fit: contain;
  image-rendering: auto;
  filter: drop-shadow(0 12px 12px rgba(0, 0, 0, 0.25));
  pointer-events: none;
  user-select: none;
  transition: filter 160ms ease, opacity 160ms ease;
}

.side-b .sprite-image {
  transform: scaleX(-1);
}

.side-b .sprite-buddy {
  animation-delay: -1.1s;
}

.sprite-shadow {
  position: absolute;
  z-index: -1;
  bottom: 38px;
  width: clamp(92px, 13vw, 150px);
  height: 22px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.36);
  filter: blur(3px);
  animation: shadow-breathe 2.4s ease-in-out infinite;
}

.stage-name {
  max-width: 240px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.065);
  font-size: 0.84rem;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.stage-center {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 12px;
  justify-items: center;
  align-content: center;
  width: min(240px, 24vw);
}

.stage-vs {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border: 1px solid rgba(246, 195, 91, 0.34);
  border-radius: 50%;
  color: var(--amber);
  background: rgba(0, 0, 0, 0.42);
  font-size: 1.45rem;
  font-weight: 950;
  box-shadow: 0 0 34px rgba(246, 195, 91, 0.12);
}

.stage-cue {
  width: min(260px, 100%);
  min-height: 54px;
  display: grid;
  place-items: center;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.26);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
}

.float-layer {
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
}

.combat-float {
  position: absolute;
  top: 24%;
  left: 50%;
  translate: -50% 0;
  padding: 5px 10px;
  border: 2px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #12170f;
  background: var(--amber);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.24);
  font-size: clamp(0.78rem, 2.2vw, 1.05rem);
  font-weight: 1000;
  letter-spacing: 0.04em;
  animation: float-pop 900ms ease forwards;
  white-space: nowrap;
}

.damage-pop {
  color: white;
  background: var(--danger);
}

.heal-pop {
  color: #10210f;
  background: var(--acid);
}

.special-pop {
  color: #0b1110;
  background: linear-gradient(135deg, var(--acid), var(--amber));
}

.dodge-pop {
  color: var(--text);
  background: rgba(255, 255, 255, 0.14);
}

.poison-pop {
  color: #11170f;
  background: #a7f06c;
}

.status-pop {
  color: #11170f;
  background: #d6b5ff;
}


.stage-effect {
  --effect-accent: rgba(246, 195, 91, 0.9);
  --effect-glow: rgba(246, 195, 91, 0.28);
  position: absolute;
  z-index: 6;
  bottom: clamp(82px, 20%, 118px);
  width: clamp(142px, 20vw, 220px);
  height: clamp(142px, 20vw, 220px);
  pointer-events: none;
  transform-origin: center;
  animation: effect-pop 980ms ease forwards;
  filter: drop-shadow(0 18px 20px rgba(0, 0, 0, 0.22));
}

.effect-side-a {
  left: clamp(42px, 13%, 170px);
}

.effect-side-b {
  right: clamp(42px, 13%, 170px);
}

.stage-effect::before,
.stage-effect::after,
.stage-effect i {
  content: "";
  position: absolute;
  pointer-events: none;
}

.stage-effect::before {
  inset: 18%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--effect-accent), transparent 66%);
  opacity: 0.28;
  animation: effect-core 900ms ease forwards;
}

.stage-effect::after {
  inset: 28%;
  border: 4px solid var(--effect-accent);
  border-radius: 50%;
  opacity: 0.72;
  animation: effect-ring 850ms ease forwards;
}

.stage-effect i {
  left: 50%;
  top: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--effect-accent);
  box-shadow: 0 0 18px var(--effect-glow);
  transform: rotate(calc(var(--i) * 45deg)) translateX(18px);
  animation: effect-spark 900ms cubic-bezier(.18,.86,.28,1) forwards;
}

.effect-impact {
  --effect-accent: rgba(246, 195, 91, 0.98);
  --effect-glow: rgba(255, 229, 116, 0.48);
}

.effect-impact::before {
  clip-path: polygon(50% 0%, 61% 36%, 100% 28%, 69% 53%, 92% 88%, 55% 69%, 29% 100%, 34% 61%, 0% 50%, 36% 41%);
  border-radius: 0;
  opacity: 0.5;
}

.effect-omen {
  --effect-accent: rgba(255, 92, 112, 0.96);
  --effect-glow: rgba(255, 58, 92, 0.42);
}

.effect-omen::before {
  inset: 24%;
  border-radius: 68% 32% 68% 32%;
  background:
    radial-gradient(circle at 50% 50%, rgba(255,255,255,0.9) 0 7%, rgba(255, 86, 108, 0.9) 8% 20%, transparent 22%),
    radial-gradient(ellipse at center, rgba(255, 81, 102, 0.54), transparent 67%);
  transform: rotate(45deg);
  opacity: 0.76;
}

.effect-sound {
  --effect-accent: rgba(218, 189, 255, 0.95);
  --effect-glow: rgba(218, 189, 255, 0.36);
}

.effect-sound i {
  left: 50%;
  top: 50%;
  width: calc(30px + var(--i) * 10px);
  height: calc(30px + var(--i) * 10px);
  border: 3px solid var(--effect-accent);
  border-radius: 50%;
  background: transparent;
  transform: translate(-50%, -50%);
  animation: sound-ring 900ms ease forwards;
  animation-delay: calc(var(--i) * 45ms);
}

.effect-poison {
  --effect-accent: rgba(167, 240, 108, 0.98);
  --effect-glow: rgba(112, 255, 108, 0.42);
}

.effect-poison i,
.effect-heal i,
.effect-tear i,
.effect-water i {
  top: calc(70% - (var(--i) * 7%));
  left: calc(16% + (var(--i) * 10%));
  width: calc(9px + (var(--i) % 3) * 5px);
  height: calc(9px + (var(--i) % 3) * 5px);
  transform: none;
  animation: bubble-up 900ms ease forwards;
  animation-delay: calc(var(--i) * 24ms);
}

.effect-water {
  --effect-accent: rgba(121, 211, 255, 0.98);
  --effect-glow: rgba(121, 211, 255, 0.42);
}

.effect-water::before {
  inset: auto 12% 16% 12%;
  height: 34%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(121, 211, 255, 0.45), transparent 70%);
}

.effect-drain {
  --effect-accent: rgba(255, 95, 126, 0.96);
  --effect-glow: rgba(255, 95, 126, 0.38);
}

.effect-drain::before {
  inset: 18%;
  border-radius: 45% 55% 55% 45%;
  background:
    radial-gradient(circle at 38% 38%, rgba(255,255,255,0.34), transparent 16%),
    conic-gradient(from 90deg, rgba(255,95,126,0.94), rgba(55, 0, 20, 0.1), rgba(255,95,126,0.88));
  animation: drain-spin 850ms ease forwards;
}

.effect-shimmer,
.effect-spark {
  --effect-accent: rgba(120, 255, 236, 0.98);
  --effect-glow: rgba(120, 255, 236, 0.4);
}

.effect-shimmer i,
.effect-spark i {
  border-radius: 4px;
  transform: rotate(calc(var(--i) * 45deg)) translateX(24px) rotate(45deg);
}

.effect-spark::before {
  background: radial-gradient(circle, rgba(255,255,255,0.76), rgba(120, 255, 236, 0.42), transparent 68%);
}

.effect-vanish,
.effect-skitter {
  --effect-accent: rgba(232, 237, 221, 0.86);
  --effect-glow: rgba(232, 237, 221, 0.28);
}

.effect-vanish::before,
.effect-skitter::before {
  background: radial-gradient(circle, rgba(232, 237, 221, 0.46), transparent 65%);
  filter: blur(4px);
}

.effect-skitter i {
  width: 16px;
  height: 8px;
  border-radius: 999px;
}

.effect-stink {
  --effect-accent: rgba(155, 209, 104, 0.9);
  --effect-glow: rgba(155, 209, 104, 0.34);
}

.effect-stink i {
  width: 10px;
  height: 62px;
  border-radius: 999px;
  transform: rotate(calc(var(--i) * 31deg)) translateX(30px);
  animation: stink-wisp 900ms ease forwards;
}

.effect-snow {
  --effect-accent: rgba(239, 252, 255, 0.98);
  --effect-glow: rgba(167, 226, 255, 0.38);
}

.effect-snow i {
  border-radius: 2px;
  clip-path: polygon(50% 0%, 63% 35%, 100% 50%, 63% 65%, 50% 100%, 37% 65%, 0 50%, 37% 35%);
}

.effect-dust {
  --effect-accent: rgba(220, 166, 86, 0.96);
  --effect-glow: rgba(220, 166, 86, 0.34);
}

.effect-dust::before {
  filter: blur(6px);
}

.effect-beam {
  --effect-accent: rgba(255, 244, 152, 0.98);
  --effect-glow: rgba(255, 244, 152, 0.42);
}

.effect-beam::before {
  inset: 42% -30% 42% 20%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,255,255,0.86), var(--effect-accent), transparent);
  transform-origin: left center;
  animation: beam-zap 720ms ease forwards;
}

.effect-side-b.effect-beam::before {
  inset: 42% 20% 42% -30%;
  background: linear-gradient(270deg, rgba(255,255,255,0.86), var(--effect-accent), transparent);
  transform-origin: right center;
}

.effect-shield {
  --effect-accent: rgba(167, 240, 108, 0.95);
  --effect-glow: rgba(167, 240, 108, 0.38);
}

.effect-shield::before {
  inset: 12%;
  border: 5px solid var(--effect-accent);
  border-radius: 42% 42% 54% 54%;
  background: radial-gradient(circle, rgba(167, 240, 108, 0.18), transparent 68%);
}

.effect-ghost,
.effect-moon {
  --effect-accent: rgba(205, 189, 255, 0.95);
  --effect-glow: rgba(205, 189, 255, 0.38);
}

.effect-ghost::before {
  border-radius: 48% 48% 22% 22%;
  background:
    radial-gradient(circle at 38% 38%, rgba(20,30,27,0.78) 0 5px, transparent 6px),
    radial-gradient(circle at 62% 38%, rgba(20,30,27,0.78) 0 5px, transparent 6px),
    linear-gradient(var(--effect-accent), rgba(205, 189, 255, 0.08));
}

.effect-moon::before {
  border-radius: 50%;
  background:
    radial-gradient(circle at 65% 34%, rgba(20, 30, 27, 0.96) 0 24%, transparent 25%),
    radial-gradient(circle, rgba(255,255,255,0.9), rgba(205, 189, 255, 0.5), transparent 68%);
}

.effect-tear {
  --effect-accent: rgba(99, 195, 255, 0.98);
  --effect-glow: rgba(99, 195, 255, 0.38);
}

.effect-tear i {
  border-radius: 60% 60% 60% 8%;
  transform: rotate(-45deg);
}

.effect-heal {
  --effect-accent: rgba(167, 240, 108, 0.98);
  --effect-glow: rgba(167, 240, 108, 0.4);
}

.effect-heal::before {
  clip-path: polygon(50% 0%, 61% 33%, 96% 35%, 68% 55%, 79% 90%, 50% 69%, 21% 90%, 32% 55%, 4% 35%, 39% 33%);
  border-radius: 0;
  opacity: 0.58;
}


.effect-wind {
  --effect-accent: rgba(206, 244, 255, 0.9);
  --effect-glow: rgba(206, 244, 255, 0.3);
}

.effect-wind::before {
  inset: 26% 8%;
  border-radius: 999px;
  background:
    linear-gradient(105deg, transparent, rgba(206,244,255,0.62), transparent),
    linear-gradient(80deg, transparent, rgba(255,255,255,0.34), transparent);
  filter: blur(1px);
}

.effect-wind i {
  left: calc(12% + var(--i) * 10%);
  top: calc(28% + (var(--i) % 4) * 13%);
  width: 42px;
  height: 8px;
  border-radius: 999px;
  transform: none;
  animation: wind-streak 760ms ease forwards;
  animation-delay: calc(var(--i) * 28ms);
}

.effect-static {
  --effect-accent: rgba(255, 239, 118, 0.98);
  --effect-glow: rgba(159, 112, 255, 0.42);
}

.effect-static::before {
  inset: 18%;
  border-radius: 28px;
  background:
    repeating-linear-gradient(90deg, rgba(255,239,118,0.55) 0 4px, transparent 4px 11px),
    radial-gradient(circle, rgba(159,112,255,0.28), transparent 70%);
  animation: static-jitter 560ms steps(2, end) infinite;
}

.effect-static i {
  width: 28px;
  height: 5px;
  border-radius: 0;
  transform: rotate(calc(var(--i) * 32deg)) translateX(54px) skewX(-18deg);
  animation: effect-spark 650ms steps(3, end) forwards;
}

@keyframes effect-pop {
  0% { opacity: 0; transform: translateY(14px) scale(0.72) rotate(-4deg); }
  18% { opacity: 1; transform: translateY(0) scale(1.06) rotate(2deg); }
  78% { opacity: 1; transform: translateY(-6px) scale(1); }
  100% { opacity: 0; transform: translateY(-12px) scale(0.96) rotate(5deg); }
}

@keyframes effect-core {
  0% { transform: scale(0.4); opacity: 0; }
  22% { opacity: 0.72; }
  100% { transform: scale(1.4); opacity: 0; }
}

@keyframes effect-ring {
  0% { transform: scale(0.35); opacity: 0.84; }
  100% { transform: scale(1.45); opacity: 0; }
}

@keyframes effect-spark {
  0% { opacity: 0; transform: rotate(calc(var(--i) * 45deg)) translateX(18px) scale(0.5); }
  18% { opacity: 1; }
  100% { opacity: 0; transform: rotate(calc(var(--i) * 45deg)) translateX(88px) scale(0.92); }
}

@keyframes bubble-up {
  0% { opacity: 0; transform: translateY(20px) scale(0.5); }
  20% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-70px) scale(1.2); }
}

@keyframes sound-ring {
  0% { opacity: 0.72; transform: translate(-50%, -50%) scale(0.1); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.55); }
}

@keyframes drain-spin {
  0% { transform: scale(0.65) rotate(0deg); opacity: 0; }
  25% { opacity: 0.82; }
  100% { transform: scale(1.3) rotate(260deg); opacity: 0; }
}

@keyframes stink-wisp {
  0% { opacity: 0; transform: translateY(30px) rotate(calc(var(--i) * 31deg)) translateX(12px) scale(0.6); }
  30% { opacity: 0.72; }
  100% { opacity: 0; transform: translateY(-48px) rotate(calc(var(--i) * 42deg)) translateX(58px) scale(1.1); }
}

@keyframes beam-zap {
  0% { opacity: 0; transform: scaleX(0.1); }
  25% { opacity: 0.95; }
  100% { opacity: 0; transform: scaleX(1.35); }
}

.stage-fighter.is-attacking.side-a .sprite-buddy {
  animation: lunge-a 520ms cubic-bezier(.2, .9, .2, 1);
}

.stage-fighter.is-attacking.side-b .sprite-buddy {
  animation: lunge-b 520ms cubic-bezier(.2, .9, .2, 1);
}

.stage-fighter.is-special .sprite-buddy {
  animation: special-wiggle 700ms ease;
  box-shadow:
    inset 0 0 28px rgba(255, 255, 255, 0.12),
    0 16px 34px rgba(0, 0, 0, 0.32),
    0 0 48px rgba(167, 240, 108, 0.26);
}

.stage-fighter.is-hit .sprite-buddy {
  animation: hit-shake 560ms ease;
}

.stage-fighter.is-dodging.side-a .sprite-buddy {
  animation: dodge-a 560ms ease;
}

.stage-fighter.is-dodging.side-b .sprite-buddy {
  animation: dodge-b 560ms ease;
}

.stage-fighter.is-statused .sprite-buddy {
  animation: status-wobble 700ms ease;
}

.stage-fighter.is-winner .sprite-buddy {
  animation: winner-hop 950ms ease-in-out infinite;
}

.stage-fighter.is-loser .sprite-buddy {
  animation: loser-flop 600ms ease forwards;
  filter: grayscale(0.45) saturate(0.65);
  opacity: 0.68;
}

@keyframes idle-bob {
  0%, 100% { transform: translateY(0) rotate(-1deg) scale(1); }
  50% { transform: translateY(-8px) rotate(1.2deg) scale(1.025); }
}

@keyframes shadow-breathe {
  0%, 100% { transform: scaleX(1); opacity: 0.34; }
  50% { transform: scaleX(0.86); opacity: 0.22; }
}

@keyframes lunge-a {
  0% { transform: translateX(0) translateY(0) rotate(0) scale(1); }
  45% { transform: translateX(48px) translateY(-8px) rotate(8deg) scale(1.08); }
  100% { transform: translateX(0) translateY(0) rotate(0) scale(1); }
}

@keyframes lunge-b {
  0% { transform: translateX(0) translateY(0) rotate(0) scale(1); }
  45% { transform: translateX(-48px) translateY(-8px) rotate(-8deg) scale(1.08); }
  100% { transform: translateX(0) translateY(0) rotate(0) scale(1); }
}

@keyframes hit-shake {
  0%, 100% { transform: translateX(0) rotate(0); }
  18% { transform: translateX(-10px) rotate(-5deg); }
  36% { transform: translateX(10px) rotate(5deg); }
  54% { transform: translateX(-7px) rotate(-3deg); }
  72% { transform: translateX(5px) rotate(2deg); }
}

@keyframes dodge-a {
  0%, 100% { transform: translateX(0) rotate(0); opacity: 1; }
  45% { transform: translateX(-42px) rotate(-12deg); opacity: 0.72; }
}

@keyframes dodge-b {
  0%, 100% { transform: translateX(0) rotate(0); opacity: 1; }
  45% { transform: translateX(42px) rotate(12deg); opacity: 0.72; }
}

@keyframes special-wiggle {
  0%, 100% { transform: scale(1) rotate(0); filter: saturate(1); }
  20% { transform: scale(1.08) rotate(-7deg); filter: saturate(1.45); }
  40% { transform: scale(1.12) rotate(7deg); }
  65% { transform: scale(1.05) rotate(-3deg); }
}

@keyframes status-wobble {
  0%, 100% { transform: translateY(0) rotate(0); filter: hue-rotate(0); }
  25% { transform: translateY(-6px) rotate(-8deg); filter: hue-rotate(60deg); }
  50% { transform: translateY(4px) rotate(7deg); filter: hue-rotate(130deg); }
  75% { transform: translateY(-3px) rotate(-4deg); }
}

@keyframes winner-hop {
  0%, 100% { transform: translateY(0) rotate(-2deg) scale(1); }
  50% { transform: translateY(-16px) rotate(2deg) scale(1.06); }
}

@keyframes loser-flop {
  0% { transform: rotate(0) translateY(0); }
  100% { transform: rotate(9deg) translateY(18px) scale(0.88); }
}

@keyframes float-pop {
  0% { opacity: 0; transform: translateY(12px) scale(0.7) rotate(-5deg); }
  14% { opacity: 1; transform: translateY(0) scale(1.08) rotate(2deg); }
  70% { opacity: 1; transform: translateY(-34px) scale(1) rotate(-2deg); }
  100% { opacity: 0; transform: translateY(-52px) scale(0.92) rotate(3deg); }
}

.battle {
  padding: 22px;
  overflow-anchor: none;
}

.health-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.health-label {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-weight: 800;
  margin-bottom: 8px;
}

.health-bar {
  height: 18px;
  overflow: hidden;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,0.45);
}

.health-bar div {
  height: 100%;
  width: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--danger), var(--amber), var(--acid));
  transition: width 350ms ease;
}

.result {
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--panel-strong);
  border: 1px solid var(--line);
  font-size: 1.12rem;
  font-weight: 850;
  margin-bottom: 18px;
}



.fight-recap {
  display: grid;
  gap: 12px;
  margin: -2px 0 18px;
  padding: 18px;
  border: 1px solid rgba(167, 240, 108, 0.26);
  border-radius: 20px;
  background:
    radial-gradient(circle at 15% 10%, rgba(167, 240, 108, 0.13), transparent 14rem),
    rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.fight-recap[hidden] {
  display: none;
}

.recap-header h3 {
  margin: 4px 0 0;
  color: var(--text);
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  line-height: 1.08;
}

.recap-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.recap-grid div {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.18);
}

.recap-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.recap-grid strong {
  display: block;
  margin-top: 5px;
  color: var(--acid);
  font-size: 1.08rem;
}

.fight-recap p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.fight-recap p strong {
  color: var(--text);
}

.battle-log {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0 10px 0 0;
  scrollbar-gutter: stable;
  list-style: none;
  max-height: min(560px, 58vh);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  overflow-anchor: none;
  scroll-behavior: auto;
}

.battle-log li {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,0.045);
  overflow-anchor: none;
}

.battle-log span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.42;
}


.fight-modal {
  width: min(1120px, calc(100% - 28px));
  max-height: min(920px, calc(100vh - 28px));
  overflow: hidden;
  border: 1px solid rgba(246, 195, 91, 0.28);
  border-radius: 30px;
  padding: 0;
  color: var(--text);
  background: transparent;
  box-shadow: 0 32px 110px rgba(0, 0, 0, 0.62);
}

.fight-modal::backdrop {
  background: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(7px);
}

.fight-modal-card {
  position: relative;
  border-radius: inherit;
  display: grid;
  gap: 16px;
  max-height: min(920px, calc(100vh - 28px));
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-gutter: stable;
  padding: 24px 28px 24px 24px;
  background:
    radial-gradient(circle at 18% 0%, rgba(246, 195, 91, 0.18), transparent 22rem),
    radial-gradient(circle at 86% 8%, rgba(167, 240, 108, 0.12), transparent 18rem),
    linear-gradient(135deg, rgba(20, 30, 27, 0.99), rgba(9, 13, 12, 0.99));
}

.fight-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
}

.fight-modal-header h2 {
  margin-right: 48px;
  margin-bottom: 8px;
  font-size: clamp(1.7rem, 4vw, 3.2rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
  text-transform: uppercase;
}

.fight-modal .fight-stage {
  margin-bottom: 0;
  min-height: clamp(280px, 40vh, 430px);
}

.fight-modal .battle {
  margin: 0;
}

.fight-modal 
.battle-log {
  max-height: min(310px, 30vh);
}

.fight-modal .modal-close:disabled {
  cursor: wait;
  opacity: 0.45;
}

.lore-button {
  align-self: flex-start;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(167, 240, 108, 0.34);
  border-radius: 999px;
  color: var(--text);
  background: rgba(167, 240, 108, 0.1);
  font-size: 0.76rem;
}

.lore-modal {
  width: min(760px, calc(100% - 28px));
  max-height: min(760px, calc(100vh - 36px));
  overflow: hidden;
  border: 1px solid rgba(167, 240, 108, 0.24);
  border-radius: 28px;
  padding: 0;
  color: var(--text);
  background: transparent;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.56);
}

.lore-modal::backdrop {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
}

.lore-modal-card {
  position: relative;
  max-height: min(760px, calc(100vh - 36px));
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-gutter: stable;
  border-radius: inherit;
  padding: 28px;
  background:
    radial-gradient(circle at 20% 0%, rgba(167, 240, 108, 0.16), transparent 22rem),
    linear-gradient(135deg, rgba(20, 30, 27, 0.98), rgba(9, 13, 12, 0.98));
}

.lore-modal-card h2 {
  margin-right: 46px;
  font-size: clamp(2rem, 5vw, 3.3rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
  text-transform: uppercase;
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  font-size: 1.8rem;
  line-height: 1;
}

.lore-modal-body {
  display: grid;
  gap: 12px;
  margin: 20px 0;
}

.lore-modal-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
  font-size: 1.02rem;
}

.lore-modal-traits {
  padding-top: 4px;
}



.tournament-modal {
  width: min(1080px, calc(100% - 28px));
  max-height: min(860px, calc(100vh - 36px));
  overflow: hidden;
  border: 1px solid rgba(167, 240, 108, 0.26);
  border-radius: 28px;
  padding: 0;
  color: var(--text);
  background: transparent;
  box-shadow: 0 28px 96px rgba(0, 0, 0, 0.58);
}

.tournament-modal::backdrop {
  background: rgba(0, 0, 0, 0.74);
  backdrop-filter: blur(7px);
}

.tournament-modal-card {
  position: relative;
  max-height: min(860px, calc(100vh - 36px));
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-gutter: stable;
  border-radius: inherit;
  padding: 28px;
  background:
    radial-gradient(circle at 15% 0%, rgba(167, 240, 108, 0.16), transparent 24rem),
    radial-gradient(circle at 90% 12%, rgba(246, 195, 91, 0.12), transparent 20rem),
    linear-gradient(135deg, rgba(20, 30, 27, 0.99), rgba(9, 13, 12, 0.99));
}

.tournament-modal-card h2 {
  margin-right: 48px;
  margin-bottom: 8px;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 0.94;
  letter-spacing: -0.065em;
  text-transform: uppercase;
}

.tournament-controls {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto auto;
  gap: 12px;
  align-items: end;
  margin: 22px 0 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.045);
}

.tournament-status {
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(246, 195, 91, 0.22);
  border-radius: 18px;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.22);
  font-weight: 800;
  line-height: 1.35;
}

.tournament-bracket {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 1fr);
  gap: 14px;
  align-items: start;
  overflow-x: auto;
  padding: 4px 2px 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--scroll-thumb) var(--scroll-track);
}

.tournament-bracket::-webkit-scrollbar {
  height: 10px;
}

.tournament-bracket::-webkit-scrollbar-track {
  background: var(--scroll-track);
  border-radius: 999px;
}

.tournament-bracket::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--scroll-thumb), var(--scroll-thumb-strong)) border-box;
}

.tournament-round {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.tournament-round h3 {
  margin: 0;
  color: var(--amber);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tournament-matches {
  display: grid;
  gap: 10px;
}

.tournament-match {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
}

.tournament-match.is-playing {
  border-color: rgba(246, 195, 91, 0.55);
  background: rgba(246, 195, 91, 0.085);
}

.tournament-match.is-played {
  background: rgba(167, 240, 108, 0.055);
}

.tournament-match-topline {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.tournament-match-topline small {
  color: rgba(237, 248, 239, 0.58);
  text-align: right;
}

.tournament-participant,
.tournament-empty {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.18);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 850;
}

.tournament-participant.is-winner {
  border-color: rgba(167, 240, 108, 0.48);
  color: var(--acid);
  background: rgba(167, 240, 108, 0.095);
}

.tournament-participant.is-out {
  opacity: 0.48;
  text-decoration: line-through;
}

.tournament-empty {
  color: var(--muted);
  font-style: italic;
}

.tournament-match p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.tournament-note {
  color: var(--amber) !important;
}

.tournament-empty-state {
  display: grid;
  gap: 8px;
  min-height: 180px;
  place-items: center;
  padding: 26px;
  border: 1px dashed rgba(167, 240, 108, 0.28);
  border-radius: 22px;
  color: var(--muted);
  text-align: center;
  background: rgba(255, 255, 255, 0.035);
}

.tournament-empty-state strong {
  color: var(--text);
  font-size: 1.2rem;
}

.tournament-champion {
  align-self: stretch;
  min-width: 240px;
  padding: 18px;
  border-color: rgba(246, 195, 91, 0.44);
  background:
    radial-gradient(circle at 50% 0%, rgba(246, 195, 91, 0.18), transparent 13rem),
    rgba(255, 255, 255, 0.055);
}

.tournament-champion h3 {
  margin: 0 0 8px;
  color: var(--amber);
  font-size: 1.5rem;
  letter-spacing: -0.04em;
}

.tournament-champion p:last-child {
  margin: 0;
  color: var(--muted);
}



.class-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(246, 195, 91, 0.18);
  border-radius: 18px;
  background: rgba(246, 195, 91, 0.055);
}

.class-badge {
  --class-glow: rgba(167, 240, 108, 0.24);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  color: var(--text);
  background:
    radial-gradient(circle at 16% 18%, var(--class-glow), transparent 5rem),
    rgba(255, 255, 255, 0.075);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.02em;
  white-space: nowrap;
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.14);
}

.class-badge-small {
  min-height: 28px;
  padding: 5px 9px;
  font-size: 0.72rem;
}

.class-badge-icon {
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.14));
}

.class-blurb {
  flex: 1 1 220px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.class-omen { --class-glow: rgba(255, 109, 109, 0.28); border-color: rgba(255, 109, 109, 0.24); }
.class-aquatic { --class-glow: rgba(92, 197, 255, 0.25); border-color: rgba(92, 197, 255, 0.22); }
.class-sky-terror { --class-glow: rgba(246, 195, 91, 0.26); border-color: rgba(246, 195, 91, 0.22); }
.class-swamp-thing { --class-glow: rgba(167, 240, 108, 0.22); border-color: rgba(167, 240, 108, 0.22); }
.class-arcane-weirdo { --class-glow: rgba(186, 122, 255, 0.28); border-color: rgba(186, 122, 255, 0.23); }
.class-frostbite { --class-glow: rgba(188, 236, 255, 0.25); border-color: rgba(188, 236, 255, 0.23); }
.class-bruiser { --class-glow: rgba(255, 148, 92, 0.24); border-color: rgba(255, 148, 92, 0.22); }
.class-trickster { --class-glow: rgba(255, 219, 92, 0.24); border-color: rgba(255, 219, 92, 0.22); }
.class-night-menace { --class-glow: rgba(128, 148, 255, 0.25); border-color: rgba(128, 148, 255, 0.23); }
.class-forest-lurker { --class-glow: rgba(91, 196, 122, 0.24); border-color: rgba(91, 196, 122, 0.22); }
.class-spirit { --class-glow: rgba(188, 236, 255, 0.27); border-color: rgba(188, 236, 255, 0.24); }
.class-undead { --class-glow: rgba(180, 210, 170, 0.24); border-color: rgba(180, 210, 170, 0.22); }
.class-infernal { --class-glow: rgba(255, 109, 67, 0.30); border-color: rgba(255, 109, 67, 0.24); }
.class-mythic { --class-glow: rgba(246, 195, 91, 0.28); border-color: rgba(246, 195, 91, 0.24); }
.class-oddball { --class-glow: rgba(255, 255, 255, 0.18); }

.matchup-panel {
  display: grid;
  grid-template-columns: minmax(190px, 0.28fr) 1fr;
  gap: 18px;
  align-items: start;
  padding: 22px;
  margin-bottom: 20px;
}

.matchup-panel h2 {
  margin-bottom: 0;
  font-size: clamp(1.35rem, 2.5vw, 2.1rem);
  letter-spacing: -0.04em;
}

.matchup-insight {
  display: grid;
  gap: 12px;
}

.matchup-badges-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.matchup-versus {
  color: var(--amber);
  font-weight: 950;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
}

.matchup-notes {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.matchup-notes li {
  position: relative;
  padding: 10px 12px 10px 34px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.045);
  line-height: 1.42;
}

.matchup-notes li::before {
  content: "✦";
  position: absolute;
  left: 13px;
  top: 10px;
  color: var(--acid);
}

.modal-matchup-badges {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  max-width: 720px;
}

.modal-matchup-chip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.modal-matchup-chip > span:not(.class-badge) {
  color: var(--amber);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.modal-matchup-badges p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.38;
}

.tournament-participant {
  gap: 8px;
}

.tournament-class-mini {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 900;
  white-space: nowrap;
}

@media (max-width: 860px) {
  .hero,
  .arena,
  .fight-preview,
  .fight-modal-header {
    flex-direction: column;
    align-items: stretch;
  }

  .matchup-panel {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .tournament-controls {
    grid-template-columns: 1fr;
  }

  .tournament-bracket {
    grid-auto-flow: row;
    grid-auto-columns: auto;
  }

  .controls,
  .versus-grid,
  .fight-stage,
  .health-row {
    grid-template-columns: 1fr;
  }

  .stage-center {
    width: 100%;
    order: 2;
  }

  .side-a {
    order: 1;
  }

  .side-b {
    order: 3;
  }

  .versus-mark {
    width: 100%;
    min-height: 42px;
  }

  .bonus-list {
    justify-content: flex-start;
  }

  .fight-modal-card {
    padding: 16px;
  }

  .fight-modal 
.battle-log {
    max-height: 260px;
  }
}




@media (max-width: 760px) {
  .recap-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .recap-grid {
    grid-template-columns: 1fr;
  }
}

button:disabled,
select:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  transform: none;
  filter: none;
}

.battle-log li.is-current {
  border-color: rgba(167, 240, 108, 0.62);
  background: rgba(167, 240, 108, 0.085);
  box-shadow: 0 0 0 1px rgba(167, 240, 108, 0.12), 0 18px 42px rgba(0, 0, 0, 0.26);
  transform: translateY(-2px);
}

.battle-log li.is-done {
  opacity: 0.76;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

@keyframes wind-streak {
  0% { opacity: 0; transform: translateX(-44px) scaleX(0.5); }
  20% { opacity: 0.82; }
  100% { opacity: 0; transform: translateX(72px) scaleX(1.25); }
}

@keyframes static-jitter {
  0% { transform: translate(0, 0) rotate(0); opacity: 0.72; }
  25% { transform: translate(3px, -2px) rotate(2deg); opacity: 0.48; }
  50% { transform: translate(-2px, 2px) rotate(-2deg); opacity: 0.82; }
  75% { transform: translate(2px, 1px) rotate(1deg); opacity: 0.56; }
  100% { transform: translate(0, 0) rotate(0); opacity: 0.72; }
}

/* Supernatural Mode arena backgrounds */
.fight-stage[data-arena="cursed-graveyard"] {
  background:
    radial-gradient(circle at 50% 18%, rgba(210, 181, 255, 0.28), transparent 8rem),
    radial-gradient(circle at 18% 72%, rgba(167, 240, 108, 0.12), transparent 14rem),
    linear-gradient(180deg, #11121f 0%, #20283a 52%, #05070d 100%);
}

.fight-stage[data-arena="cursed-graveyard"] .arena-scenery span {
  width: 38px;
  height: 72px;
  border-radius: 19px 19px 6px 6px;
  background: linear-gradient(90deg, #353b49, #7d8491);
  box-shadow: 0 -40px 70px 18px rgba(186, 122, 255, 0.08);
}

.fight-stage[data-arena="haunted-castle"] {
  background:
    radial-gradient(circle at 70% 18%, rgba(246, 195, 91, 0.18), transparent 7rem),
    linear-gradient(180deg, #121421 0%, #242236 52%, #07070c 100%);
}

.fight-stage[data-arena="haunted-castle"] .arena-scenery span {
  width: 44px;
  height: 138px;
  border-radius: 10px 10px 4px 4px;
  background: linear-gradient(90deg, #2d2e3d, #50556c);
  box-shadow: 26px 26px 0 -8px rgba(80, 85, 108, 0.9), 0 -18px 0 -4px rgba(246, 195, 91, 0.22);
}

.fight-stage[data-arena="moonlit-ruins"] {
  background:
    radial-gradient(circle at 52% 16%, rgba(225, 238, 255, 0.38), transparent 7rem),
    radial-gradient(circle at 25% 80%, rgba(186, 122, 255, 0.14), transparent 15rem),
    linear-gradient(180deg, #101723 0%, #222c34 56%, #05080b 100%);
}

.fight-stage[data-arena="moonlit-ruins"] .arena-scenery span {
  width: 54px;
  height: 92px;
  border-radius: 8px 8px 18px 18px;
  background: linear-gradient(90deg, #3c424b, #777f88);
  box-shadow: 18px 46px 0 -12px rgba(119, 127, 136, 0.78), -16px 66px 0 -18px rgba(119, 127, 136, 0.6);
}

.fight-stage[data-arena="wizard-basement"] {
  background:
    radial-gradient(circle at 28% 26%, rgba(167, 240, 108, 0.18), transparent 7rem),
    radial-gradient(circle at 72% 35%, rgba(186, 122, 255, 0.25), transparent 10rem),
    linear-gradient(180deg, #151024 0%, #261d38 56%, #08050d 100%);
}

.fight-stage[data-arena="wizard-basement"] .arena-scenery span {
  width: 32px;
  height: 86px;
  border-radius: 18px 18px 8px 8px;
  background:
    radial-gradient(circle at 50% 18%, rgba(167, 240, 108, 0.75) 0 12px, transparent 13px),
    linear-gradient(180deg, rgba(186, 122, 255, 0.62), rgba(66, 45, 99, 0.82));
  border: 2px solid rgba(255, 255, 255, 0.12);
}

.fight-stage[data-arena="stormy-belltower"] {
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 244, 190, 0.18), transparent 7rem),
    linear-gradient(180deg, #090d17 0%, #171b2a 48%, #030408 100%);
}

.fight-stage[data-arena="stormy-belltower"] .arena-scenery span {
  width: 34px;
  height: 142px;
  border-radius: 8px;
  background: linear-gradient(90deg, #232839, #4d5366);
  box-shadow: 0 -20px 0 8px rgba(246, 195, 91, 0.16), 22px 36px 0 -10px rgba(77, 83, 102, 0.84);
}

.fight-stage[data-arena="stormy-belltower"] .arena-scenery::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 48%;
  width: 7px;
  height: 92px;
  background: linear-gradient(180deg, #fff7dc, #f6c35b, transparent);
  clip-path: polygon(44% 0, 70% 42%, 56% 42%, 78% 100%, 24% 38%, 43% 38%);
  opacity: 0.48;
  filter: drop-shadow(0 0 16px rgba(246, 195, 91, 0.75));
}

/* Version 1.8.0 - Expanded Arena Pack */
.fight-stage[data-arena="pine-barrens"] {
  background:
    radial-gradient(circle at 70% 18%, rgba(167, 240, 108, 0.18), transparent 8rem),
    radial-gradient(circle at 16% 78%, rgba(246, 195, 91, 0.10), transparent 14rem),
    linear-gradient(180deg, #07120e 0%, #14251a 54%, #050907 100%);
}

.fight-stage[data-arena="pine-barrens"] .arena-scenery span {
  width: 36px;
  height: 156px;
  border-radius: 24px 24px 7px 7px;
  background:
    radial-gradient(circle at 50% 12%, rgba(44, 83, 45, 0.95) 0 44px, transparent 45px),
    linear-gradient(90deg, #1a261b, #3a4c30);
  box-shadow: 14px 30px 0 -8px rgba(53, 82, 45, 0.72);
}

.fight-stage[data-arena="corn-maze"] {
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 207, 99, 0.22), transparent 7rem),
    linear-gradient(180deg, #17120a 0%, #3b2b14 54%, #090704 100%);
}

.fight-stage[data-arena="corn-maze"] .arena-scenery span,
.fight-stage[data-arena="pumpkin-patch"] .arena-scenery span {
  width: 18px;
  height: 138px;
  border-radius: 20px 20px 4px 4px;
  background: linear-gradient(90deg, #4a4f24, #c49a38 50%, #675827);
  box-shadow: 12px 18px 0 -7px #a9842f, -11px 31px 0 -8px #7d6c2c;
}

.fight-stage[data-arena="radio-telescope"] {
  background:
    radial-gradient(circle at 50% 16%, rgba(129, 246, 255, 0.22), transparent 8rem),
    repeating-linear-gradient(110deg, rgba(129, 246, 255, 0.05) 0 2px, transparent 2px 20px),
    linear-gradient(180deg, #071016 0%, #102331 52%, #03060a 100%);
}

.fight-stage[data-arena="radio-telescope"] .arena-scenery span {
  width: 72px;
  height: 72px;
  border: 9px solid rgba(129, 246, 255, 0.28);
  border-left-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
  transform: rotate(-30deg);
  box-shadow: 20px 56px 0 -28px rgba(191, 246, 255, 0.5);
}

.fight-stage[data-arena="neon-boardwalk"] {
  background:
    radial-gradient(circle at 22% 24%, rgba(255, 89, 174, 0.25), transparent 8rem),
    radial-gradient(circle at 78% 26%, rgba(92, 221, 255, 0.22), transparent 8rem),
    linear-gradient(180deg, #0b1020 0%, #18203c 53%, #08060e 100%);
}

.fight-stage[data-arena="neon-boardwalk"] .arena-scenery span,
.fight-stage[data-arena="forgotten-carnival"] .arena-scenery span {
  width: 28px;
  height: 112px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 89, 174, 0.7), rgba(92, 221, 255, 0.28));
  box-shadow: 0 -25px 0 8px rgba(246, 195, 91, 0.2), 20px 36px 0 -11px rgba(255, 89, 174, 0.5);
}

.fight-stage[data-arena="sewer-tunnels"] {
  background:
    radial-gradient(circle at 50% 74%, rgba(167, 240, 108, 0.14), transparent 16rem),
    linear-gradient(180deg, #101514 0%, #1d2a25 54%, #040605 100%);
}

.fight-stage[data-arena="sewer-tunnels"] .arena-scenery span {
  width: 74px;
  height: 74px;
  border: 10px solid rgba(98, 115, 99, 0.52);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 58%, rgba(68, 102, 67, 0.52), transparent 44%);
  box-shadow: 0 48px 0 -22px rgba(167, 240, 108, 0.12);
}

.fight-stage[data-arena="abandoned-lab"] {
  background:
    radial-gradient(circle at 24% 25%, rgba(167, 240, 108, 0.22), transparent 8rem),
    radial-gradient(circle at 76% 35%, rgba(129, 246, 255, 0.16), transparent 10rem),
    linear-gradient(180deg, #10151a 0%, #18252a 54%, #06080a 100%);
}

.fight-stage[data-arena="abandoned-lab"] .arena-scenery span {
  width: 34px;
  height: 92px;
  border-radius: 12px 12px 5px 5px;
  background:
    radial-gradient(circle at 50% 22%, rgba(167, 240, 108, 0.88) 0 13px, transparent 14px),
    linear-gradient(180deg, rgba(129, 246, 255, 0.22), rgba(46, 66, 72, 0.9));
  border: 2px solid rgba(217, 255, 229, 0.16);
}

.fight-stage[data-arena="mushroom-ring"] {
  background:
    radial-gradient(circle at 50% 26%, rgba(255, 89, 174, 0.18), transparent 8rem),
    radial-gradient(circle at 72% 72%, rgba(167, 240, 108, 0.18), transparent 12rem),
    linear-gradient(180deg, #10141a 0%, #1d2b20 55%, #050806 100%);
}

.fight-stage[data-arena="mushroom-ring"] .arena-scenery span {
  width: 48px;
  height: 72px;
  border-radius: 50% 50% 16px 16px;
  background:
    radial-gradient(circle at 36% 23%, rgba(255,255,255,0.9) 0 4px, transparent 5px),
    radial-gradient(circle at 62% 30%, rgba(255,255,255,0.8) 0 3px, transparent 4px),
    linear-gradient(180deg, #d45ca5 0 44%, #dfd2a1 45%);
  box-shadow: 0 0 26px rgba(255, 89, 174, 0.26);
}

.fight-stage[data-arena="volcanic-crater"] {
  background:
    radial-gradient(circle at 50% 82%, rgba(255, 96, 48, 0.34), transparent 16rem),
    radial-gradient(circle at 42% 30%, rgba(246, 195, 91, 0.18), transparent 9rem),
    linear-gradient(180deg, #1d0b08 0%, #3c1510 50%, #060202 100%);
}

.fight-stage[data-arena="volcanic-crater"] .arena-scenery span {
  width: 76px;
  height: 86px;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  background: linear-gradient(180deg, #583027, #1b0c0a 70%);
  box-shadow: inset 0 -18px 0 rgba(255, 96, 48, 0.24), 0 12px 30px rgba(255, 96, 48, 0.15);
}

.fight-stage[data-arena="sunken-shipwreck"] {
  background:
    radial-gradient(circle at 52% 18%, rgba(129, 246, 255, 0.18), transparent 8rem),
    linear-gradient(180deg, #07131c 0%, #0b3040 55%, #02080b 100%);
}

.fight-stage[data-arena="sunken-shipwreck"] .arena-scenery span {
  width: 84px;
  height: 56px;
  border-radius: 10px;
  background: linear-gradient(110deg, #4b3521, #7c5630 54%, transparent 55%);
  transform: rotate(-10deg);
  box-shadow: 0 18px 0 -6px rgba(129, 246, 255, 0.12), 22px 26px 0 -11px rgba(126, 86, 48, 0.65);
}

.fight-stage[data-arena="appalachian-trailhead"] {
  background:
    radial-gradient(circle at 50% 20%, rgba(205, 238, 255, 0.16), transparent 8rem),
    linear-gradient(180deg, #07110e 0%, #173122 55%, #050806 100%);
}

.fight-stage[data-arena="appalachian-trailhead"] .arena-scenery span {
  width: 58px;
  height: 102px;
  border-radius: 8px;
  background:
    linear-gradient(90deg, transparent 0 36%, #5b4631 37% 63%, transparent 64%),
    linear-gradient(180deg, transparent 0 38%, #a78b5f 39% 55%, transparent 56%);
  box-shadow: 24px 44px 0 -16px rgba(49, 79, 42, 0.85), -22px 28px 0 -14px rgba(49, 79, 42, 0.7);
}

.fight-stage[data-arena="rooftop-water-tower"] {
  background:
    radial-gradient(circle at 60% 20%, rgba(255, 244, 190, 0.20), transparent 7rem),
    linear-gradient(180deg, #101622 0%, #1b2533 52%, #070a0e 100%);
}

.fight-stage[data-arena="rooftop-water-tower"] .arena-scenery span {
  width: 58px;
  height: 94px;
  border-radius: 28px 28px 8px 8px;
  background: linear-gradient(90deg, #4a5560, #7b8791);
  box-shadow: 0 92px 0 -22px rgba(124, 135, 145, 0.5), 28px 70px 0 -24px rgba(124, 135, 145, 0.4), -28px 70px 0 -24px rgba(124, 135, 145, 0.4);
}

.fight-stage[data-arena="forgotten-carnival"] {
  background:
    radial-gradient(circle at 48% 22%, rgba(246, 195, 91, 0.18), transparent 7rem),
    radial-gradient(circle at 22% 36%, rgba(255, 89, 174, 0.14), transparent 9rem),
    linear-gradient(180deg, #160f16 0%, #2b1b2a 55%, #070407 100%);
}

.fight-stage[data-arena="mirror-maze"] {
  background:
    radial-gradient(circle at 50% 18%, rgba(205, 238, 255, 0.26), transparent 8rem),
    repeating-linear-gradient(115deg, rgba(205, 238, 255, 0.09) 0 2px, transparent 2px 24px),
    linear-gradient(180deg, #111722 0%, #202638 52%, #05070d 100%);
}

.fight-stage[data-arena="mirror-maze"] .arena-scenery span {
  width: 42px;
  height: 130px;
  border-radius: 8px;
  background: linear-gradient(115deg, rgba(205, 238, 255, 0.2), rgba(255,255,255,0.04) 48%, rgba(129,246,255,0.2));
  border: 1px solid rgba(205, 238, 255, 0.22);
  box-shadow: 0 0 32px rgba(129, 246, 255, 0.08);
}

.fight-stage[data-arena="pumpkin-patch"] {
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 132, 48, 0.25), transparent 8rem),
    linear-gradient(180deg, #161009 0%, #2b1f12 55%, #060403 100%);
}

.fight-stage[data-arena="pumpkin-patch"] .arena-scenery span:nth-child(2),
.fight-stage[data-arena="pumpkin-patch"] .arena-scenery span:nth-child(3) {
  width: 62px;
  height: 48px;
  border-radius: 50% 50% 40% 40%;
  background: radial-gradient(circle at 50% 40%, #ff8a2a, #9a4218 78%);
  box-shadow: inset 0 -7px 0 rgba(0,0,0,0.18), 0 0 18px rgba(255,132,48,0.18);
}

.fight-stage[data-arena="black-ice-cavern"] {
  background:
    radial-gradient(circle at 50% 22%, rgba(205, 238, 255, 0.38), transparent 9rem),
    linear-gradient(180deg, #07101a 0%, #18304c 52%, #02060c 100%);
}

.fight-stage[data-arena="black-ice-cavern"] .arena-scenery span {
  width: 54px;
  height: 126px;
  clip-path: polygon(50% 0, 100% 82%, 65% 100%, 35% 100%, 0 82%);
  background: linear-gradient(180deg, rgba(205, 238, 255, 0.82), rgba(67, 130, 164, 0.18));
  filter: drop-shadow(0 0 18px rgba(129, 246, 255, 0.22));
}

.fight-stage[data-arena="ancient-ziggurat"] {
  background:
    radial-gradient(circle at 52% 18%, rgba(246, 195, 91, 0.25), transparent 8rem),
    linear-gradient(180deg, #18130c 0%, #342817 55%, #080604 100%);
}

.fight-stage[data-arena="ancient-ziggurat"] .arena-scenery span {
  width: 96px;
  height: 86px;
  clip-path: polygon(50% 0, 84% 30%, 72% 30%, 100% 100%, 0 100%, 28% 30%, 16% 30%);
  background: linear-gradient(180deg, #8d744d, #4d3b23);
  box-shadow: inset 0 -10px 0 rgba(0,0,0,0.18);
}
