/* Street Fight Arena (arena/arena.js): your fighter, three opponents, the fight replay, the Elo ladder and your fights. */
.arenax { width: min(1100px, 100%); margin: 14px 0 110px; text-align: left; --win: #7dff6a; --lose: #ff5c8a; --gold: #ffd23f; }
.arenax .empty-line { color: var(--muted); font-size: 13px; padding: 12px 4px; text-align: center; list-style: none; }
.arenax .ax-me, .arenax .ax-opp, .arenax .ax-panel {
  border: 1px solid rgba(255, 120, 200, .22); border-radius: 18px;
  background: linear-gradient(180deg, rgba(30, 12, 52, .92), rgba(16, 8, 32, .92)); box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}
.ax-pic { display: grid; place-items: end center; border-radius: 14px; overflow: hidden;
  background: radial-gradient(circle at 50% 30%, rgba(255, 106, 92, .45), rgba(155, 77, 255, .25) 60%, rgba(0, 0, 0, .2)); }
.ax-pic svg { width: 100%; height: 100%; }
.ax-me { display: grid; grid-template-columns: 150px 1fr; gap: 18px; padding: 16px; }
.ax-me .ax-pic { height: 190px; }
.ax-name { margin: 0; font: 700 22px var(--head, Oswald), sans-serif; letter-spacing: 1px; color: #fff; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ax-cls { padding: 2px 10px; border-radius: 999px; font: 700 12px Inter, sans-serif; letter-spacing: .5px; color: #fff; background: rgba(255, 62, 165, .25); box-shadow: inset 0 0 0 1px rgba(255, 120, 200, .45); }
.ax-elo { display: flex; align-items: baseline; gap: 8px; margin: 6px 0; }
.ax-elo b { font: 700 34px var(--head, Oswald), sans-serif; color: var(--gold); text-shadow: 0 0 14px rgba(255, 210, 63, .45); }
.ax-elo span { color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; }
.ax-elo em { font-style: normal; color: var(--muted); font-size: 13px; margin-left: 8px; }
.ax-elo.small b { font-size: 24px; }
.ax-stats { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 0; margin: 6px 0; font-size: 13.5px; color: var(--muted); }
.ax-stats b { color: #fff; font-variant-numeric: tabular-nums; }
.ax-left { margin: 8px 0 0; color: var(--muted); font-size: 13.5px; }
.ax-left b { color: #fff; font-size: 18px; }
.ax-h { margin: 18px 0 10px; font: 600 15px var(--head, Oswald), sans-serif; letter-spacing: 2px; text-transform: uppercase; color: #ff9ad5; }
.ax-opps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.ax-opp { padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.ax-opp .ax-pic { height: 150px; margin-bottom: 6px; }
.ax-opp .ax-name { font-size: 18px; }
.ax-sub { margin: 0; color: var(--muted); font-size: 12.5px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.ax-go { margin-top: auto; height: 42px; font-size: 15px; }
.ax-go:disabled { opacity: .45; cursor: not-allowed; }
.ax-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.ax-panel { padding: 14px; }
.ax-panel h3 { margin: 0 0 8px; font: 600 14px var(--head, Oswald), sans-serif; letter-spacing: 1.6px; text-transform: uppercase; color: #ff9ad5; }
.ax-ladder, .ax-recent { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.ax-ladder li { display: grid; grid-template-columns: 28px 1fr auto 56px; gap: 8px; align-items: center; padding: 6px 8px; border-radius: 8px; background: rgba(0, 0, 0, .22); font-size: 13.5px; }
.ax-ladder li:nth-child(-n+3) span { color: var(--gold); font-weight: 900; }
.ax-ladder li.me { box-shadow: inset 0 0 0 1px var(--gold); }
.ax-ladder em { font-style: normal; color: var(--muted); font-size: 12px; }
.ax-ladder strong { text-align: right; color: var(--gold); font-variant-numeric: tabular-nums; }
.ax-recent li { display: grid; grid-template-columns: 44px 1fr auto; gap: 8px; align-items: center; padding: 6px 8px; border-radius: 8px; background: rgba(0, 0, 0, .22); font-size: 13.5px; }
.ax-recent li.won b, .ax-recent li.won em { color: var(--win); } .ax-recent li.lost b, .ax-recent li.lost em { color: var(--lose); }
.ax-recent em { font-style: normal; font-weight: 800; }
.ax-msg { color: var(--muted); font-size: 13px; text-align: center; min-height: 1em; }

/* The fight: two fighters face each other, HP bars drain, hits shake, crits flash. */
.ax-fight { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px;
  background: radial-gradient(circle at 50% 40%, rgba(255, 62, 165, .25), rgba(8, 3, 16, .94) 60%); backdrop-filter: blur(4px); }
.ax-fight[hidden] { display: none; }
.ax-ring { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; width: min(760px, 100%); }
.ax-vs { font: 700 42px var(--head, Oswald), sans-serif; color: var(--gold); text-shadow: 0 0 20px rgba(255, 210, 63, .6); }
.ax-side { position: relative; text-align: center; transition: transform .15s; }
.ax-side .ax-pic { height: 230px; }
.ax-side.s1 .ax-pic svg { transform: scaleX(-1); }
.ax-side.attack.s0 { transform: translateX(18px); } .ax-side.attack.s1 { transform: translateX(-18px); }
.ax-side.hit .ax-pic { animation: ax-hit .26s; }
@keyframes ax-hit { 0%, 100% { filter: none; transform: none; } 30% { filter: brightness(2) saturate(0); transform: translateX(-6px); } 60% { transform: translateX(6px); } }
.ax-side .ax-name { justify-content: center; margin-top: 8px; font-size: 18px; }
.ax-hp { position: relative; height: 16px; margin-top: 6px; border-radius: 999px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.ax-hp i { position: absolute; inset: 0 auto 0 0; width: 100%; background: linear-gradient(90deg, #ff3a3a, #ffd23f 60%, #7dff6a); transition: width .3s; }
.ax-hp span { position: relative; display: block; text-align: center; font: 700 11px/16px Inter, sans-serif; color: #fff; text-shadow: 0 1px 2px #000; }
.ax-pop { position: absolute; left: 50%; top: 30%; translate: -50% 0; font: 700 30px var(--head, Oswald), sans-serif; color: #fff; text-shadow: 0 2px 6px #000; opacity: 0; pointer-events: none; }
.ax-pop.show { animation: ax-pop .6s ease-out; }
.ax-pop.crit { color: var(--gold); font-size: 40px; }
.ax-pop.dodge { color: #9fe8ff; font-size: 24px; }
@keyframes ax-pop { 0% { opacity: 0; transform: translateY(10px) scale(.7); } 25% { opacity: 1; transform: translateY(0) scale(1.15); } 100% { opacity: 0; transform: translateY(-30px) scale(1); } }
.ax-result { margin-top: 20px; text-align: center; min-height: 110px; }
.ax-result p { margin: 0; font: 700 56px var(--head, Oswald), sans-serif; letter-spacing: 3px; text-transform: uppercase; }
.ax-result p.won { color: var(--win); text-shadow: 0 0 24px rgba(125, 255, 106, .6); } .ax-result p.lost { color: var(--lose); text-shadow: 0 0 24px rgba(255, 92, 138, .6); }
.ax-result span { display: block; margin: 4px 0 12px; color: #fff; font-weight: 700; }
@media (max-width: 680px) {
  .ax-me { grid-template-columns: 100px 1fr; } .ax-me .ax-pic { height: 130px; }
  .ax-cols { grid-template-columns: 1fr; }
  .ax-ring { gap: 8px; } .ax-side .ax-pic { height: 140px; } .ax-vs { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) { .ax-side, .ax-hp i { transition: none; } .ax-side.hit .ax-pic, .ax-pop.show { animation: none; opacity: 1; } }
