/* ═══════════════════════════════════════════════════════════
   style.css — Ragnarok Boss Game
   ───────────────────────────────────────────────────────────
   Sections:
     1.  Reset & Base
     2.  Game Frame
     3.  Header — Timer + Level Nodes
     4.  Battle Scene — Background
     5.  Battle Scene — HP Bars
     6.  Battle Scene — Characters
     7.  Battle Scene — Overlays (phase badge, atk timer)
     8.  AT Token Strip
     9.  Wheel
     10. Spin / Attack Button & States
     11. Multiplier Button
     12. Footer
     13. Damage Numbers & Popups
     14. Skill Toast
     15. Wheel Result Toast
     16. Keyframe Animations
═══════════════════════════════════════════════════════════ */

/* ── 1. Reset & Base ─────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}
html, body {
  width: 100%;
  height: 100%;
  background: #050010;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'Segoe UI', system-ui, sans-serif;
}

/* ── 2. Game Frame ───────────────────────────────────── */
.game {
  width: min(430px, 100vw);
  height: min(932px, 100vh);
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #0d0520 0%, #130630 55%, #0d0520 100%);
}

/* ── 3. Header — Timer + Level Nodes ─────────────────── */
.header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 14px 14px 0;
  z-index: 20;
  background: linear-gradient(180deg, rgba(13,5,32,0.96) 70%, transparent 100%);
}

.hrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.info-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  color: #aaa;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.timer-box {
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 20px;
  padding: 5px 18px;
  color: white;
  font-size: 13px;
  font-weight: 700;
}

.timer-lbl {
  color: #999;
  font-weight: 400;
  margin-right: 5px;
  font-size: 12px;
}

.close-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #dc2626;
  border: none;
  color: white;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(220,38,38,0.5);
}


/* ── 4. Battle Scene — Background ────────────────────── */
.battle {
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 242px;
  overflow: hidden;
}

.battle-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 25% 60%, rgba(60,10,100,0.5) 0%, transparent 55%),
    radial-gradient(ellipse at 75% 45%, rgba(100,30,10,0.35) 0%, transparent 45%),
    linear-gradient(180deg, #110228 0%, #1a0430 55%, #2a0850 100%);
}

/* Floor glow */
.battle-bg::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: linear-gradient(0deg, #3b0d6b 0%, transparent 100%);
}

/* ── 5. Battle Scene — HP Bars ───────────────────────── */
.boss-stats {
  position: absolute;
  top: 10px;
  left: 14px;
  text-align: left;
  z-index: 10;
}

.boss-hp-val {
  color: white;
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
}

.energy-badge {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #facc15, #f59e0b);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  box-shadow: 0 0 10px rgba(250,204,21,0.5);
  flex-shrink: 0;
}

.hp-track {
  height: 13px;
  border-radius: 7px;
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.12);
  overflow: hidden;
}

.hp-fill {
  height: 100%;
  border-radius: 7px;
  transition: width 0.6s ease;
  position: relative;
}

/* Inner shine */
.hp-fill::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 5px;
  right: 5px;
  height: 3px;
  background: rgba(255,255,255,0.25);
  border-radius: 2px;
}

.boss-fill     { background: linear-gradient(90deg, #15803d, #22c55e, #4ade80); width: 100%; }
.boss-hp-track { width: 170px; }

/* ── 6. Battle Scene — Characters ────────────────────── */
.player-wrap {
  position: absolute;
  bottom: 50px;
  left: 30px;
  /* animation: idle 2.8s ease-in-out infinite; */
  filter: drop-shadow(0 8px 10px rgba(0,0,0,0.6))
          drop-shadow(0 0 14px rgba(96,165,250,0.35));
}

.boss-wrap {
  position: absolute;
  top: 80px;
  right: 40px;
  animation: bossIdle 3.2s ease-in-out infinite;
  filter: drop-shadow(0 12px 14px rgba(0,0,0,0.7))
          drop-shadow(0 0 22px rgba(234,88,12,0.45));
}

.char-canvas {
  display: block;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

/* เงาใต้ตัวละคร เหมือน Pokémon */
.player-wrap::after,
.boss-wrap::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: rgba(0,0,0,0.4);
  filter: blur(4px);
}

.player-wrap::after {
  width: 80px;
  height: 12px;
}

.boss-wrap::after {
  width: 90px;
  height: 14px;
}

/* Hit reaction — triggered by JS via class toggle */
.boss-wrap.hit  { animation: bossHit 0.4s ease-out; }
.boss-wrap.dead {
  opacity: 0.2;
  filter: grayscale(1) drop-shadow(0 0 10px red);
  transition: opacity 0.5s, filter 0.5s;
}

/* ── 7. Battle Scene — Overlays ──────────────────────── */
.phase-badge {
  position: absolute;
  top: 50px;
  left: 14px;
  background: rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 14px;
  padding: 4px 12px;
  font-size: 11px;
  color: #d1d5db;
  font-weight: 600;
  z-index: 10;
}

.atk-timer {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.75);
  border: 1px solid rgba(124,58,237,0.6);
  border-radius: 22px;
  padding: 7px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  z-index: 10;
  box-shadow: 0 2px 12px rgba(0,0,0,0.5);
  transition: border-color 0.3s;
}

.atk-timer.ready { border-color: rgba(74,222,128,0.5); }

.atk-lbl { color: #bbb; font-size: 12px; font-weight: 600; }
.atk-cd  { color: #ef4444; font-size: 14px; font-weight: 800; font-family: monospace; }
.atk-timer.ready .atk-cd { color: #4ade80; }

/* White flash on hit */
.hit-flash {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.1);
  pointer-events: none;
  opacity: 0;
  z-index: 60;
}
.hit-flash.on { animation: flash 0.28s ease-out; }

/* ── 8. AT Token Strip ───────────────────────────────── */
.at-strip {
  position: absolute;
  bottom: 206px;
  left: 0;
  right: 0;
  height: 36px;
  padding: 0 16px;
  background: rgba(0,0,0,0.55);
  border-top: 1px solid rgba(124,58,237,0.3);
  border-bottom: 1px solid rgba(124,58,237,0.3);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 15;
}

.at-icon  { font-size: 16px; }
.at-label { color: #a78bfa; font-size: 12px; font-weight: 600; }
.at-val   { color: white; font-size: 16px; font-weight: 800; min-width: 32px; }
.at-max   { color: #6b7280; font-size: 11px; }

.at-bar-wrap {
  flex: 1;
  height: 8px;
  border-radius: 4px;
  background: rgba(124,58,237,0.2);
  border: 1px solid rgba(124,58,237,0.35);
  overflow: hidden;
}

.at-bar-fill {
  height: 100%;
  width: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, #7c3aed, #a855f7, #c084fc);
  transition: width 0.4s ease;
}

/* Flash when AT is spent */
.at-val.spent {
  animation: atSpent 0.3s ease-out;
}

/* ── 9. Wheel ────────────────────────────────────────── */
.wheel-section {
  position: absolute;
  bottom: 70px;
  left: 0;
  right: 0;
  height: 136px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

/* Clips the wheel — shows only the top semicircle */
.wheel-clip {
  position: relative;
  width: 320px;
  height: 136px;
  overflow: hidden;
}

/* Full-circle ring, center sits at clip's bottom edge */
.wheel-ring {
  position: absolute;
  bottom: -145px;
  left: 50%;
  transform: translateX(-50%) rotate(0deg);
  width: 290px;
  height: 290px;
  border-radius: 50%;
  background: conic-gradient(
    #1c0645 0deg 45deg,  #2e0f5c 45deg 90deg,
    #1c0645 90deg 135deg, #2e0f5c 135deg 180deg,
    #1c0645 180deg 225deg, #2e0f5c 225deg 270deg,
    #1c0645 270deg 315deg, #2e0f5c 315deg 360deg
  );
  border: 5px solid #7c3aed;
  box-shadow:
    0 0 0 3px rgba(167,139,250,0.2),
    inset 0 0 40px rgba(0,0,0,0.6),
    0 0 30px rgba(124,58,237,0.4);
  transition: transform 3.8s cubic-bezier(0.22, 0.65, 0.08, 1);
}

/* Divider lines between slots */
.wheel-ring::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: repeating-conic-gradient(
    rgba(167,139,250,0.2) 0deg 1px,
    transparent 1deg 45deg
  );
}

/* Inner ring decoration */
.wheel-ring::after {
  content: '';
  position: absolute;
  top: 22px;
  left: 22px;
  right: 22px;
  bottom: 22px;
  border-radius: 50%;
  border: 2px solid rgba(167,139,250,0.15);
}

.wheel-items {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

/* Each slot item — centered in wheel, offset by JS transform */
.witem {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 54px;
  height: 54px;
  margin: -27px 0 0 -27px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.w-icon { font-size: 24px; line-height: 1; }
.w-lbl  { font-size: 10px; font-weight: 700; color: #e2c4ff; margin-top: 2px; }

/* Arrow pointer at top of wheel clip */
.wheel-arrow {
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 11px solid transparent;
  border-right: 11px solid transparent;
  border-top: 18px solid #f59e0b;
  filter: drop-shadow(0 2px 5px rgba(0,0,0,0.7));
  z-index: 30;
}

/* ── 10. Spin / Attack Button & States ───────────────── */
.spin-btn {
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle at 42% 38%, #ff7043, #b91c1c);
  border: 4px solid #f59e0b;
  box-shadow:
    0 0 0 2px rgba(245,158,11,0.3),
    0 0 28px rgba(185,28,28,0.8),
    0 6px 20px rgba(0,0,0,0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 30;
  padding: 0;
  transition: background 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.spin-btn:hover:not([data-state="cooldown"]):not([data-state="no-at"]):not([data-state="spinning"]) {
  box-shadow:
    0 0 0 2px rgba(245,158,11,0.5),
    0 0 40px rgba(185,28,28,1),
    0 6px 20px rgba(0,0,0,0.7);
}

.spin-btn:active:not([data-state="cooldown"]):not([data-state="no-at"]) {
  transform: translateX(-50%) scale(0.93);
}

/* — Spinning state — */
.spin-btn[data-state="spinning"] {
  animation: btnPulse 3.8s ease-in-out;
  cursor: default;
}

/* — Cooldown state — */
.spin-btn[data-state="cooldown"] {
  background: radial-gradient(circle at 42% 38%, #374151, #1f2937);
  border-color: #6b7280;
  box-shadow:
    0 0 0 2px rgba(107,114,128,0.25),
    0 0 14px rgba(0,0,0,0.4),
    0 4px 12px rgba(0,0,0,0.5);
  cursor: not-allowed;
}

/* — No AT state — */
.spin-btn[data-state="no-at"] {
  background: radial-gradient(circle at 42% 38%, #7f1d1d, #450a0a);
  border-color: #ef4444;
  box-shadow:
    0 0 0 2px rgba(239,68,68,0.2),
    0 0 14px rgba(239,68,68,0.3),
    0 4px 12px rgba(0,0,0,0.5);
  cursor: not-allowed;
}

/* Cooldown ring SVG overlay */
.cd-ring-svg {
  position: absolute;
  inset: -8px;
  width: calc(100% + 16px);
  height: calc(100% + 16px);
  transform: rotate(-90deg);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}

.spin-btn[data-state="cooldown"] .cd-ring-svg { opacity: 1; }

.cd-bg {
  fill: none;
  stroke: rgba(0,0,0,0.35);
  stroke-width: 5;
}

.cd-arc {
  fill: none;
  stroke: #f59e0b;
  stroke-width: 5;
  stroke-dasharray: 314;
  stroke-dashoffset: 314;
  stroke-linecap: round;
  /* transition set dynamically by JS when cooldown starts */
}

/* Button inner layout */
.spin-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  pointer-events: none;
}

.spin-main { font-size: 28px; line-height: 1; }
.spin-sub  { color: #fed7aa; font-size: 11px; font-weight: 700; margin-top: 1px; }
.spin-lbl  { color: #fed7aa; font-size: 8px;  font-weight: 600; text-align: center; line-height: 1.3; }

.spin-btn[data-state="cooldown"] .spin-main { font-size: 24px; font-weight: 900; color: #d1d5db; }
.spin-btn[data-state="cooldown"] .spin-sub  { color: #9ca3af; font-size: 10px; }
.spin-btn[data-state="cooldown"] .spin-lbl  { color: #6b7280; }

.spin-btn[data-state="no-at"] .spin-main { font-size: 22px; }
.spin-btn[data-state="no-at"] .spin-sub  { color: #fca5a5; }

/* ── 11. Auto Attack Button ──────────────────────────── */
.auto-btn {
  position: absolute;
  bottom: 112px;
  left: calc(50% + 150px);
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #374151;
  border: 2px solid #6b7280;
  color: #9ca3af;
  cursor: pointer;
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  transition: background 0.25s, border-color 0.25s, color 0.25s, box-shadow 0.25s;
}

.auto-btn:active { transform: scale(0.93); }

.auto-btn.active {
  background: linear-gradient(135deg, #14532d, #166534);
  border-color: #4ade80;
  color: #4ade80;
  box-shadow: 0 0 14px rgba(74,222,128,0.55), 0 0 0 2px rgba(74,222,128,0.2);
  animation: autoPulse 2s ease-in-out infinite;
}

.auto-icon { font-size: 18px; line-height: 1; }
.auto-lbl  { font-size: 8px; font-weight: 800; letter-spacing: 0.5px; }

/* — Auto-locked spin button state — */
.spin-btn[data-state="auto-locked"] {
  background: radial-gradient(circle at 42% 38%, #1a3a1a, #14532d);
  border-color: #4ade80;
  box-shadow:
    0 0 0 2px rgba(74,222,128,0.25),
    0 0 20px rgba(74,222,128,0.35),
    0 4px 12px rgba(0,0,0,0.5);
  cursor: not-allowed;
}

.spin-btn[data-state="auto-locked"] .spin-main { font-size: 22px; }
.spin-btn[data-state="auto-locked"] .spin-sub  { color: #86efac; font-size: 10px; }
.spin-btn[data-state="auto-locked"] .spin-lbl  { color: #4ade80; }

/* ── 12. Footer ──────────────────────────────────────── */
.footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 70px;
  padding: 8px 12px;
  background: linear-gradient(0deg, rgba(5,0,16,0.92) 60%, transparent 100%);
  display: flex;
  align-items: center;
  gap: 10px;
}

.bag-btn {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #4c1d95, #2e1065);
  border: 2px solid #7c3aed;
  border-radius: 14px;
  font-size: 26px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.exp-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.exp-track {
  position: relative;
  height: 22px;
  background: rgba(0,0,0,0.5);
  border: 2px solid #2563eb;
  border-radius: 11px;
  overflow: hidden;
}

.exp-fill {
  height: 100%;
  background: linear-gradient(90deg, #1d4ed8, #3b82f6, #60a5fa);
  border-radius: 9px;
  transition: width 0.4s ease;
  position: relative;
}

.exp-fill::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 6px;
  right: 6px;
  height: 4px;
  background: rgba(255,255,255,0.22);
  border-radius: 2px;
}

.exp-txt {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 11px;
  font-weight: 700;
}

.stat-row {
  color: #9ca3af;
  font-size: 10px;
  padding-left: 2px;
}

.score-btn {
  width: 74px;
  height: 50px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #0e1a2e, #1e2a3e);
  border: 2px solid #3b82f6;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.score-label { color: #93c5fd; font-size: 9px;  font-weight: 600; }
.score-val   { color: #60a5fa; font-size: 14px; font-weight: 800; }

/* ── 13. Damage Numbers ──────────────────────────────── */
.dmg {
  position: absolute;
  font-weight: 900;
  pointer-events: none;
  z-index: 100;
  animation: floatDmg 1.4s ease-out forwards;
}

.dmg.normal {
  font-size: 22px;
  color: #facc15;
  text-shadow: 0 2px 5px rgba(0,0,0,0.9), 0 0 14px rgba(250,204,21,0.6);
}

.dmg.crit {
  font-size: 32px;
  color: #ff4444;
  text-shadow: 0 2px 6px rgba(0,0,0,0.9), 0 0 22px rgba(255,68,68,0.8);
}

.dmg.skill {
  font-size: 26px;
  color: #c084fc;
  text-shadow: 0 2px 6px rgba(0,0,0,0.9), 0 0 20px rgba(192,132,252,0.8);
}

.dmg.miss {
  font-size: 20px;
  color: #9ca3af;
  text-shadow: 0 2px 4px rgba(0,0,0,0.9);
}

/* ── 14. Skill Toast ─────────────────────────────────── */
.skill-toast {
  position: absolute;
  top: 42%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(8,0,25,0.92);
  border: 2px solid #9333ea;
  border-radius: 14px;
  padding: 14px 26px;
  text-align: center;
  z-index: 150;
  pointer-events: none;
  display: none;
}

.skill-toast.show {
  display: block;
  animation: toastAnim 2s ease-in-out forwards;
}

.sk-icon { font-size: 38px; }
.sk-name { color: #c084fc; font-size: 14px; font-weight: 700; margin: 5px 0 3px; }
.sk-dmg  { color: #facc15; font-size: 24px; font-weight: 900; }

/* ── 15. Wheel Result Toast ──────────────────────────── */
.wheel-result {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.82);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 20px;
  padding: 5px 16px;
  color: white;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 20;
}

.wheel-result.show { opacity: 1; }

/* ── 16. Keyframe Animations ─────────────────────────── */
@keyframes idle {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-7px); }
}

@keyframes bossIdle {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-5px) scale(1.02); }
}

@keyframes bossHit {
  0%   { transform: translateX(0); }
  20%  { transform: translateX(-14px); }
  45%  { transform: translateX(10px); }
  65%  { transform: translateX(-8px); }
  82%  { transform: translateX(5px); }
  100% { transform: translateX(0); }
}

@keyframes flash {
  0%   { opacity: 0.7; }
  100% { opacity: 0; }
}

@keyframes floatDmg {
  0%   { opacity: 1; transform: translateY(0) scale(0.8); }
  15%  { transform: translateY(-16px) scale(1.25); }
  100% { opacity: 0; transform: translateY(-100px) scale(0.9); }
}

@keyframes toastAnim {
  0%   { opacity: 0; transform: translate(-50%,-50%) scale(0.7); }
  15%  { opacity: 1; transform: translate(-50%,-50%) scale(1.05); }
  20%  { transform: translate(-50%,-50%) scale(1); }
  80%  { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%,-50%) scale(1.08); }
}

@keyframes btnPulse {
  0%, 100% {
    box-shadow:
      0 0 0 2px rgba(245,158,11,0.3),
      0 0 28px rgba(185,28,28,0.8),
      0 6px 20px rgba(0,0,0,0.7);
  }
  5% {
    box-shadow:
      0 0 0 6px rgba(245,158,11,0.7),
      0 0 50px rgba(185,28,28,1),
      0 6px 20px rgba(0,0,0,0.7);
  }
  95% {
    box-shadow:
      0 0 0 4px rgba(245,158,11,0.5),
      0 0 40px rgba(185,28,28,1),
      0 6px 20px rgba(0,0,0,0.7);
  }
}

@keyframes atSpent {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.3); color: #ef4444; }
}

@keyframes autoPulse {
  0%, 100% { box-shadow: 0 0 14px rgba(74,222,128,0.55), 0 0 0 2px rgba(74,222,128,0.2); }
  50%       { box-shadow: 0 0 22px rgba(74,222,128,0.85), 0 0 0 3px rgba(74,222,128,0.4); }
}


.battle-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 25% 60%, rgba(60,10,100,0.5) 0%, transparent 55%),
    radial-gradient(ellipse at 75% 45%, rgba(100,30,10,0.35) 0%, transparent 45%),
    url('assets/bg/background.png') center/cover no-repeat;
}