/* 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-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; }
/* Class abilities (server/src/fight.mjs): a Brawler's block, a Blade's second hit (DOUBLE), a Tech's laser (PIERCE). */
.ax-pop.block { color: #ffb36b; font-size: 24px; }
.ax-pop[data-tag]:not([data-tag=""])::before { content: attr(data-tag); position: absolute; left: 50%; bottom: 100%; translate: -50% 0; font-size: 13px; letter-spacing: 2.5px; color: #fff; text-shadow: 0 0 8px var(--pink, #ff6ec7); }
.ax-class { margin: 2px 0 0; font-size: 12px; color: var(--muted); }
.ax-class b { color: #fff; font-weight: 800; }
@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; } }

/* Fights for a stake: a random online opponent or a friend (arena.js), stake chips, waiting, challenges. */
.ax-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.ax-mode, .ax-ask {
  border: 1px solid rgba(255, 120, 200, .22); border-radius: 18px; padding: 16px;
  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-mode { display: flex; flex-direction: column; gap: 8px; }
.ax-mode h3 { margin: 0; font: 700 20px var(--head, Oswald), sans-serif; letter-spacing: 1px; color: #fff; }
.ax-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.ax-chip { display: grid; place-items: center; min-width: 64px; padding: 8px 10px; border-radius: 14px; border: 0; cursor: pointer;
  font: 700 20px var(--head, Oswald), sans-serif; color: #fff; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 120, 200, .3); transition: transform .12s; }
.ax-chip small { font: 800 9.5px Inter, sans-serif; letter-spacing: 1.2px; color: var(--muted); }
.ax-chip:hover { transform: translateY(-2px); }
.ax-chip.on { color: #1c0a2e; background: linear-gradient(180deg, #fff3b0, var(--gold)); box-shadow: 0 0 16px rgba(255, 210, 63, .55); }
.ax-chip.on small { color: #5a3d00; }
.ax-friends { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; max-height: 220px; overflow: auto; }
.ax-friends li { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; padding: 6px 8px; border-radius: 10px; background: rgba(0, 0, 0, .22); }
.ax-friends li button { height: 32px; padding: 0 14px; font-size: 13px; }
.ax-wait { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; align-items: center; padding: 10px 4px; }
.ax-wait p { margin: 0; color: #fff; }
.ax-wait p small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.ax-wait button { grid-column: 1 / -1; justify-self: start; }
.ax-spin { width: 26px; height: 26px; border-radius: 50%; border: 3px solid rgba(255, 210, 63, .25); border-top-color: var(--gold); animation: ax-spin .9s linear infinite; }
@keyframes ax-spin { to { transform: rotate(360deg); } }
.ax-asks { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.ax-asks:empty { display: none; }
.ax-ask { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 16px; box-shadow: 0 0 0 1px var(--gold), 0 0 22px rgba(255, 210, 63, .25); }
.ax-ask span { flex: 1; color: #fff; }
.ax-ask button { height: 36px; padding: 0 16px; }
@media (max-width: 680px) {
  .ax-modes { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .ax-spin { animation: none; } }

/* Fight night look (2 Nov 2026): the fighter under spotlights in a ring, a rank by Elo with the way to the next one,
   stat tiles, casino-chip stakes and a pulsing fight button, a podium for the top three, a timeline of your fights. */
.arenax { --tier: #ffd23f; }
.arenax .ax-me { grid-template-columns: 260px 1fr; gap: 24px; padding: 18px; position: relative; overflow: hidden;
  background: radial-gradient(circle at 18% 0%, rgba(255, 62, 165, .28), transparent 45%), radial-gradient(circle at 90% 120%, rgba(34, 228, 217, .16), transparent 50%),
    linear-gradient(180deg, rgba(34, 12, 58, .96), rgba(14, 6, 28, .96)); border-color: rgba(255, 120, 200, .35); }
.ax-stage { position: relative; height: 270px; border-radius: 16px; overflow: hidden;
  background: radial-gradient(ellipse at 50% 100%, rgba(255, 210, 63, .35), transparent 55%), linear-gradient(180deg, #1a0b2e 0%, #2a0f45 60%, #3a1650 100%); }
.ax-stage::after { content: ''; position: absolute; inset: auto 0 0; height: 32%; background: linear-gradient(180deg, #4a1d63, #2a1040); clip-path: polygon(8% 0, 92% 0, 100% 100%, 0 100%); }
.ax-beam { position: absolute; top: -20px; width: 120px; height: 300px; background: linear-gradient(180deg, rgba(255, 244, 200, .5), rgba(255, 244, 200, 0)); filter: blur(2px); z-index: 1; animation: ax-sweep 5s ease-in-out infinite; transform-origin: 50% 0; }
.ax-beam.l { left: 10%; transform: rotate(-18deg); } .ax-beam.r { right: 10%; transform: rotate(18deg); animation-delay: -2.5s; }
@keyframes ax-sweep { 50% { opacity: .55; } }
.ax-ropes { position: absolute; inset: auto 6% 34% 6%; height: 46px; z-index: 1;
  background: linear-gradient(#ff3ea5, #ff3ea5) 0 0 / 100% 3px no-repeat, linear-gradient(#fff, #fff) 0 50% / 100% 3px no-repeat, linear-gradient(#22e4d9, #22e4d9) 0 100% / 100% 3px no-repeat;
  box-shadow: 0 0 12px rgba(255, 62, 165, .4); opacity: .9; }
.ax-stage .ax-pic { position: absolute; inset: 14px 0 6px; z-index: 2; background: none; }
.ax-info { display: flex; flex-direction: column; gap: 10px; }
.ax-rank { display: flex; align-items: center; gap: 14px; }
.ax-tier { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font: 700 14px var(--head, Oswald), sans-serif; letter-spacing: 1.2px; text-transform: uppercase;
  color: #14081f; background: linear-gradient(180deg, #fff, var(--tier)); box-shadow: 0 0 18px color-mix(in srgb, var(--tier) 60%, transparent); }
.ax-tier.sm { padding: 1px 6px; font-size: 12px; background: none; box-shadow: none; }
.arenax .ax-elo { margin: 0; } .arenax .ax-elo b { font-size: 46px; line-height: 1; color: var(--tier); text-shadow: 0 0 22px color-mix(in srgb, var(--tier) 55%, transparent); }
.ax-next { position: relative; height: 20px; border-radius: 999px; background: rgba(255, 255, 255, .07); overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); max-width: 460px; }
.ax-next i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #ff3ea5, var(--tier)); box-shadow: 0 0 12px var(--tier); }
.ax-next span { position: relative; display: block; text-align: center; font: 700 11.5px/20px Inter, sans-serif; color: #fff; text-shadow: 0 1px 2px #000; }
.ax-recs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.ax-rec { padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: #e9dcff; background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.ax-rec b { color: #fff; } .ax-rec.hot { color: #ffd9a8; background: linear-gradient(90deg, rgba(255, 106, 0, .35), rgba(255, 62, 165, .3)); box-shadow: 0 0 14px rgba(255, 120, 40, .45); animation: ax-flame 1.6s ease-in-out infinite; }
@keyframes ax-flame { 50% { box-shadow: 0 0 22px rgba(255, 140, 40, .7); } }
.ax-tiles { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
@media (max-width: 980px) { .ax-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ax-tiles li { display: grid; justify-items: center; gap: 1px; padding: 8px 6px; border-radius: 12px; background: rgba(0, 0, 0, .28); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); }
.ax-tiles i { font-style: normal; font-size: 16px; } .ax-tiles b { font: 700 16px var(--head, Oswald), sans-serif; white-space: nowrap; color: #fff; font-variant-numeric: tabular-nums; }
.ax-tiles small { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.ax-tiles li.pow { background: linear-gradient(180deg, rgba(255, 210, 63, .2), rgba(255, 62, 165, .12)); box-shadow: inset 0 0 0 1px rgba(255, 210, 63, .45); } .ax-tiles li.pow b { color: var(--gold); }

.arenax .ax-mode { position: relative; overflow: hidden; gap: 12px; padding: 18px; border-color: rgba(255, 120, 200, .35);
  background: radial-gradient(circle at 100% 0%, rgba(255, 62, 165, .25), transparent 50%), linear-gradient(180deg, rgba(34, 12, 58, .96), rgba(14, 6, 28, .96)); }
#axFriends.ax-mode { background: radial-gradient(circle at 100% 0%, rgba(34, 228, 217, .2), transparent 50%), linear-gradient(180deg, rgba(34, 12, 58, .96), rgba(14, 6, 28, .96)); }
.arenax .ax-mode h3 { display: flex; align-items: center; gap: 10px; font-size: 24px; text-transform: uppercase; letter-spacing: 1.5px; }
.ax-mode h3 i { font-style: normal; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); font-size: 22px; }
.ax-vsmark { position: absolute; right: -6px; top: -18px; font: 700 120px/1 var(--head, Oswald), sans-serif; color: rgba(255, 255, 255, .05); pointer-events: none; transform: rotate(-8deg); }
/* The five chips (Free and four stakes) stay on one line in a narrow panel too: they shrink with it (design audit of 4 Nov 2026). */
.arenax .ax-chips { gap: 10px; flex-wrap: nowrap; container-type: inline-size; }
.arenax .ax-chips .ax-chip { --s: min(84px, calc((100cqi - 40px) / 5)); flex: none; }
/* The stake chips, look A of three ChatGPT drew (the user, 2026-11-04): white inserts round the edge, the chip's colour,
   a white middle in a gold ring with a little spade, the number big and DUSD under it well away from the edge. Sizes
   follow --s, so the text grows with the chip. */
.arenax .ax-chip { --c: #6b3fa0; --s: 84px; position: relative; width: var(--s); height: var(--s); min-width: 0; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background:
    radial-gradient(circle closest-side, transparent 0 63%, rgba(0, 0, 0, .22) 64% 66%, var(--c) 67% 80%, transparent 81%),
    repeating-conic-gradient(from -9deg, #f7f2e8 0 18deg, var(--c) 18deg 45deg);
  box-shadow: 0 4px 0 color-mix(in srgb, var(--c) 55%, #000), 0 9px 16px rgba(0, 0, 0, .45), inset 0 0 0 2px rgba(0, 0, 0, .2);
  transition: transform .14s ease, box-shadow .14s ease; }
.arenax .ax-chip span { position: absolute; inset: 17%; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 50%;
  background: radial-gradient(circle at 40% 32%, #fffdf7, #efe7d6); box-shadow: 0 0 0 2px #e0b04a, inset 0 0 0 1px rgba(160, 110, 20, .35), inset 0 2px 3px rgba(0, 0, 0, .18);
  font: 700 calc(var(--s) * .27)/1 var(--head, Oswald), sans-serif; color: #24152f; padding-top: calc(var(--s) * .04); }
.arenax .ax-chip span::before { content: '\2660'; position: absolute; top: calc(var(--s) * .035); left: 50%; transform: translateX(-50%); font: calc(var(--s) * .1)/1 sans-serif; color: #d9a12e; }
.arenax .ax-chip span small { display: block; margin-top: calc(var(--s) * .015); font: 800 calc(var(--s) * .105)/1 Inter, sans-serif; letter-spacing: .5px; color: #5b3a86; }
.arenax .ax-chip:hover { transform: translateY(-2px); }
.arenax .ax-chip.on { transform: translateY(-5px); box-shadow: 0 0 0 3px #ffd23f, 0 9px 0 -3px color-mix(in srgb, var(--c) 55%, #000), 0 14px 20px rgba(0, 0, 0, .5); }
.arenax .ax-chip.on:hover { transform: translateY(-5px); }
.arenax .ax-go { height: 58px; font-size: 20px; letter-spacing: 2px; border-radius: 16px; background: linear-gradient(90deg, #ff8a3d, #ff3ea5 50%, #b45cff);
  box-shadow: 0 10px 30px rgba(255, 62, 165, .45); animation: ax-pulse 2.2s ease-in-out infinite; }
.arenax .ax-go:disabled { animation: none; }
@keyframes ax-pulse { 50% { box-shadow: 0 10px 40px rgba(255, 62, 165, .75), 0 0 0 4px rgba(255, 62, 165, .15); } }
.arenax .ax-friends li { padding: 8px 10px; border-radius: 12px; background: rgba(0, 0, 0, .3); }
.arenax .ax-friends li.empty-line { display: block; padding: 18px 12px; border: 1px dashed rgba(34, 228, 217, .35); background: rgba(34, 228, 217, .05); }

.arenax .ax-panel h3 { font-size: 16px; color: #fff; display: flex; align-items: center; gap: 8px; }
.arenax .ax-panel h3::after { content: ''; flex: 1; height: 2px; border-radius: 2px; background: linear-gradient(90deg, #ff3ea5, transparent); }
.arenax .ax-ladder li.ax-podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 8px; padding: 6px 4px 0; margin-bottom: 8px; background: none; font-size: inherit; }
.ax-podi { position: relative; display: grid; justify-items: center; gap: 2px; padding: 10px 6px 0; text-align: center; }
.ax-podi b { color: #fff; font-size: 13px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ax-podi strong { color: var(--gold); font: 700 16px var(--head, Oswald), sans-serif; }
.ax-medal { font-size: 26px; line-height: 1; }
.ax-step { display: grid; place-items: center; width: 100%; margin-top: 6px; border-radius: 10px 10px 0 0; font: 700 22px var(--head, Oswald), sans-serif; font-style: normal; color: rgba(255, 255, 255, .85);
  background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .04)); }
.ax-podi.p1 .ax-step { height: 64px; background: linear-gradient(180deg, rgba(255, 210, 63, .55), rgba(255, 210, 63, .1)); }
.ax-podi.p2 .ax-step { height: 46px; background: linear-gradient(180deg, rgba(207, 214, 228, .45), rgba(207, 214, 228, .08)); }
.ax-podi.p3 .ax-step { height: 34px; background: linear-gradient(180deg, rgba(213, 139, 74, .5), rgba(213, 139, 74, .08)); }
.ax-podi.me b { color: var(--gold); }
.arenax .ax-ladder li:not(.ax-podium) { grid-template-columns: 28px 1fr auto auto 56px; }
.arenax .ax-recent li { grid-template-columns: 56px 1fr auto 44px; border-left: 3px solid transparent; }
.arenax .ax-recent li.won { border-left-color: var(--win); background: linear-gradient(90deg, rgba(125, 255, 106, .12), rgba(0, 0, 0, .22) 40%); }
.arenax .ax-recent li.lost { border-left-color: var(--lose); background: linear-gradient(90deg, rgba(255, 92, 138, .12), rgba(0, 0, 0, .22) 40%); }
.arenax .ax-recent li b { font: 700 13px var(--head, Oswald), sans-serif; letter-spacing: 1px; text-transform: uppercase; }
.arenax .ax-recent time { color: var(--muted); font-size: 11.5px; text-align: right; }
.arenax .ax-ladder li.empty-line, .arenax .ax-recent li.empty-line { display: block; background: none; border: 0; }
@media (max-width: 760px) {
  .arenax .ax-me { grid-template-columns: 1fr; } .ax-stage { height: 220px; }
  .arenax .ax-elo b { font-size: 38px; }
}
@media (prefers-reduced-motion: reduce) { .ax-beam, .ax-rec.hot, .arenax .ax-go { animation: none; } }
/* One screen on a computer (styles.css): your fighter and the two ways to fight side by side on top, the Elo ladder
   and your fights below down to the dock; the lists scroll inside their panels. */
@media (min-width: 1041px) and (min-height: 560px) {
  .room.fit .arenax {
    flex: 1 1 auto; min-height: 0; margin: 10px 0 0;
    display: grid; gap: 12px; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    grid-template-areas: "me queue friends" "asks asks asks" "ladder ladder recent" "msg msg msg";
  }
  .room.fit .arenax > .ax-modes, .room.fit .arenax > .ax-cols { display: contents; }
  .room.fit .arenax .ax-me { grid-area: me; grid-template-columns: 150px minmax(0, 1fr); gap: 14px; padding: 12px; }
  .room.fit .ax-stage { height: 100%; min-height: 190px; }
  .room.fit .ax-info { gap: 7px; }
  .room.fit .ax-name { font-size: 19px; gap: 6px; }
  .room.fit .arenax .ax-elo b { font-size: 36px; }
  .room.fit .ax-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; margin: 0; }
  .room.fit .ax-tiles li { padding: 4px; }
  .room.fit .ax-asks { grid-area: asks; margin: 0; }
  .room.fit #axQueue { grid-area: queue; }
  .room.fit #axFriends { grid-area: friends; min-height: 0; }
  .room.fit .arenax .ax-mode { padding: 14px; gap: 10px; }
  .room.fit .arenax .ax-mode h3 { font-size: 19px; }
  .room.fit .ax-mode h3 i { width: 34px; height: 34px; font-size: 19px; }
  .room.fit .arenax .ax-chips { gap: 8px; flex-wrap: nowrap; }
  /* one screen: up to 72px, smaller when the panel is narrow, so all five always fit on one line */
  .room.fit .arenax .ax-chips { gap: 6px; }
  .room.fit .arenax .ax-chips .ax-chip { --s: min(72px, calc((100cqi - 24px) / 5)); }
  .room.fit .arenax .ax-go { height: 50px; font-size: 18px; margin-top: auto; }
  .room.fit .ax-friends { max-height: none; flex: 1 1 auto; min-height: 0; }
  .room.fit .ax-cols > .ax-panel:first-child { grid-area: ladder; }
  .room.fit .ax-cols > .ax-panel:last-child { grid-area: recent; }
  .room.fit .ax-panel { min-height: 0; display: flex; flex-direction: column; padding: 12px 14px; }
  .room.fit .ax-ladder, .room.fit .ax-recent { flex: 1 1 auto; min-height: 0; overflow: auto; scrollbar-width: thin; }
  .room.fit .ax-msg { grid-area: msg; margin: 0; }
  .room.fit .ax-msg:empty { display: none; }
}

/* Not enough DUSD for the stake (arena.js broke()): a big notice over the page. */
.ax-broke { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; background: rgba(10, 2, 24, .72); backdrop-filter: blur(3px); animation: ax-broke-in .25s ease-out; }
.ax-broke-card { width: min(420px, 100%); padding: 26px 22px 22px; border-radius: 22px; text-align: center; color: #fff;
  background: linear-gradient(160deg, #2a0f3d, #170824); border: 1px solid rgba(255, 62, 165, .45);
  box-shadow: 0 0 40px rgba(255, 62, 165, .35), 0 24px 60px -16px rgba(0, 0, 0, .8); animation: ax-broke-pop .45s cubic-bezier(.2, 1.6, .4, 1); }
.ax-broke-wallet { position: relative; height: 92px; }
.ax-broke-wallet i { display: inline-block; font-style: normal; font-size: 70px; line-height: 92px; animation: ax-broke-shake .6s ease-in-out .35s 2; }
.ax-broke-wallet b { position: absolute; left: 50%; top: 30px; font-size: 26px; opacity: 0; animation: ax-broke-fly 1.4s ease-out infinite; }
.ax-broke-wallet b:nth-of-type(2) { animation-delay: .45s; --dx: -70px; }
.ax-broke-wallet b:nth-of-type(3) { animation-delay: .9s; --dx: 60px; }
.ax-broke h2 { margin: 6px 0 8px; font: 700 34px/1.05 Oswald, Inter, sans-serif; letter-spacing: 2px; text-transform: uppercase;
  background: linear-gradient(90deg, #ffb347, #ff3ea5, #b04dff); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 12px rgba(255, 62, 165, .55)); }
.ax-broke p { margin: 0 0 18px; color: #d9c9ea; font-size: 15px; }
.ax-broke p strong { color: #ffd23f; }
.ax-broke .btn-primary { min-width: 140px; }
@keyframes ax-broke-in { from { opacity: 0; } }
@keyframes ax-broke-pop { from { opacity: 0; transform: scale(.6) translateY(20px); } }
@keyframes ax-broke-shake { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-14deg); } 40% { transform: rotate(12deg); } 60% { transform: rotate(-8deg); } 80% { transform: rotate(5deg); } }
@keyframes ax-broke-fly { 0% { opacity: 0; transform: translate(-50%, 0) scale(.6); } 20% { opacity: 1; } 100% { opacity: 0; transform: translate(calc(-50% + var(--dx, 10px)), -60px) scale(1.1) rotate(20deg); } }
@media (prefers-reduced-motion: reduce) { .ax-broke, .ax-broke-card, .ax-broke-wallet i, .ax-broke-wallet b { animation: none; } }
