*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
.hidden { display: none !important; }

:root {
  --bg:        #0d1119;
  --surface:   #141a28;
  --card:      #1b2235;
  --border:    #273047;
  --text:      #e6ecf8;
  --text-dim:  #5d7094;
  --text-faint:#2a3650;
  --hp-green:  #3ecf6a;
  --hp-orange: #f59e0b;
  --hp-red:    #ef4444;
  --radius:    12px;
  --accent:    #111d36;
  --accent-dim: rgba(255, 255, 255, 0.07);
  --accent-on:  #e6ecf8;
}

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

/* ── Hide all scrollbars globally (scroll still works) ── */
* {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
::-webkit-scrollbar { display: none; }

/* ── App shell ──────────────────────────────────────── */
#app {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100dvh;
  max-width: 430px;
  margin: 0 auto;
}

.screen {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

/* ── Character Select ───────────────────────────────── */
.select-header {
  padding: 14px 14px 10px;
  flex-shrink: 0;
}

.player-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.select-header h2 {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.hint {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 4px;
}

/* ── Carousel ───────────────────────────────────────── */
.carousel {
  flex: 1 1 auto;
  display: flex;
  overflow-x: scroll;
  scrollbar-width: none;
  gap: 12px;
  padding: 0 calc(50% - 130px);  /* center a 260px card */
  align-items: center;
  min-height: 0;
}
.carousel::-webkit-scrollbar { display: none; }

.fighter-card {
  flex-shrink: 0;
  width: 260px;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
  transform: scale(0.92);
  cursor: pointer;
}

.fighter-card.active {
  transform: scale(1);
  border-color: var(--char-color, #555);
}

.card-preview {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
}

.card-circle {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.card-body {
  padding: 16px 18px 20px;
}

.card-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.card-desc {
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.45;
  margin-bottom: 14px;
}

.card-stats {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.stat-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stat-label {
  font-size: 0.65rem;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  width: 32px;
  flex-shrink: 0;
}

.stat-pips {
  display: flex;
  gap: 4px;
}

.pip {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--border);
}

.pip.filled {
  background: var(--char-color, #fff);
}

/* ── Carousel nav (arrows + dots) ──────────────────── */
.carousel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 10px 0 6px;
  flex-shrink: 0;
}

.carousel-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  flex-shrink: 0;
}
.carousel-btn:active { background: var(--card); }

/* ── Page counter (replaces dots) ──────────────────── */
.dots {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  min-width: 52px;
  text-align: center;
  line-height: 34px; /* match carousel-btn height */
}

/* ── Select footer ──────────────────────────────────── */
.select-footer {
  padding: 12px 24px 28px;
  flex-shrink: 0;
}

/* ── Buttons ────────────────────────────────────────── */
.btn-primary {
  display: block;
  width: 100%;
  padding: 14px;
  background: var(--accent);
  color: var(--accent-on);
  border: none;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: opacity 0.15s, box-shadow 0.15s;
  box-shadow: 0 2px 12px rgba(0,0,0,0.35);
}
.btn-primary:active { opacity: 0.8; }
.btn-primary:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  background: rgba(255,255,255,0.07);
  box-shadow: none;
}

/* ── Fight screen ───────────────────────────────────── */
#screen-fight {
  gap: 0;
  background: #0b0b12;
}

#fight-topbar {
  display: flex;
  align-items: center;
  padding: 10px 12px 8px;
  flex-shrink: 0;
  gap: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

#fight-context-label {
  flex: 1;
  text-align: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-faint);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

#arena-container {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  min-height: 0;
}

#canvas-wrap {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06), 0 20px 60px rgba(0,0,0,0.65);
}

#game-canvas {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ── HUD bar (above canvas) ─────────────────────────── */
#hud {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 6px;
  flex-shrink: 0;
}

.fighter-hud {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.fighter-hud.right { align-items: flex-end; }
.fighter-hud.right .hp-track { transform: scaleX(-1); }

.hud-name {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1;
  display: flex;
  align-items: center;
  gap: 4px;
}

.hud-player-icon {
  display: inline-block;
  flex-shrink: 0;
  vertical-align: middle;
  opacity: 0.9;
}

.hud-power { display: none; }

.hp-track {
  height: 5px;
  width: 100%;
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
  overflow: hidden;
}

.hp-fill {
  height: 100%;
  width: 100%;
  background: var(--hp-green);
  border-radius: 3px;
  transition: width 0.08s linear, background 0.3s;
}

.hp-text {
  font-size: 0.6rem;
  font-weight: 700;
  color: rgba(255,255,255,0.3);
  line-height: 1;
}

.hud-vs {
  font-size: 0.52rem;
  font-weight: 900;
  color: rgba(255,255,255,0.2);
  flex-shrink: 0;
  align-self: center;
  letter-spacing: 0.14em;
}

/* Multi-fighter HUD (3–4 players) */
.hud-multi {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hud-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hud-dot-sm {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.hud-name--sm {
  font-size: 0.65rem;
  font-weight: 700;
  flex-shrink: 0;
  min-width: 52px;
  max-width: 80px;
  display: flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hp-track--sm {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  overflow: hidden;
}

.hud-team-badge {
  font-size: 0.5rem;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 3px;
  color: #000;
  flex-shrink: 0;
  line-height: 1.4;
}

/* ── Game over bar (below canvas) ───────────────────── */
@keyframes slide-up {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

#gameover-bar {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 18px 20px 28px;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
  animation: slide-up 0.28s cubic-bezier(0.32,0.72,0,1);
}

#gameover-result {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.gameover-label {
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.28em;
  color: rgba(255,255,255,0.28);
  text-transform: uppercase;
}

#gameover-winner {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 0.01em;
}

#gameover-bar .btn-primary {
  width: 100%;
  max-width: 260px;
  padding: 12px 20px;
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  box-shadow: none;
}

#gameover-bar .btn-primary:hover {
  background: rgba(255,255,255,0.1);
}

/* ── Utility buttons (mute / lang) ──────────────────── */
.btn-util {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-dim);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: opacity 0.15s, background 0.15s;
}
.btn-util--lang {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}
.btn-util--sm {
  width: 28px;
  height: 28px;
  font-size: 0.85rem;
}
.btn-util--sm.btn-util--lang {
  font-size: 0.58rem;
}
.btn-util:active { background: var(--card); opacity: 0.8; }


/* ── Speed button ───────────────────────────────────── */
.btn-speed {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 9px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text-dim);
  cursor: pointer;
  letter-spacing: 0.04em;
  flex-shrink: 0;
  transition: color 0.15s, border-color 0.15s;
}
.btn-speed.speed-fast {
  color: var(--text);
  border-color: #666;
}
.btn-speed:active { opacity: 0.7; }

/* ── Confirm modal ──────────────────────────────────── */
.confirm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 9, 20, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 24px;
}

.confirm-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 22px 20px;
  width: 100%;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.confirm-title {
  font-size: 1.05rem;
  font-weight: 700;
}

.confirm-sub {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.confirm-btns {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.btn-confirm-cancel {
  flex: 1;
  padding: 11px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}
.btn-confirm-cancel:active { opacity: 0.7; }

.btn-confirm-ok {
  flex: 1;
  padding: 11px;
  background: #c0392b;
  border: none;
  border-radius: 9px;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
}
.btn-confirm-ok:active { opacity: 0.8; }

/* ── League pre-match ───────────────────────────────── */
.prematch-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 16px 24px;
  min-height: 0;
}

.prematch-vs-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  width: 100%;
}

.prematch-fighter {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.prematch-circle {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.prematch-fname {
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
}

.prematch-role {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.prematch-vs-badge {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-faint);
  letter-spacing: 0.08em;
  flex-shrink: 0;
}

.prematch-card {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.prematch-card-name {
  font-size: 0.95rem;
  font-weight: 700;
}

.prematch-card-desc {
  font-size: 0.78rem;
  color: var(--text-dim);
  line-height: 1.45;
}

.prematch-card-stats {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

/* ── Main Menu ──────────────────────────────────────── */
#screen-main-menu {
  position: relative;
}

#bg-battle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.menu-top-utils {
  position: absolute;
  top: 14px;
  right: 16px;
  z-index: 2;
  display: flex;
  gap: 8px;
  align-items: center;
}

.menu-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  pointer-events: none;
  padding-bottom: 90px;
}

.menu-logo-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  position: relative;
}

.menu-logo-block::before {
  content: "";
  position: absolute;
  inset: -100px -80px;
  background:
    radial-gradient(ellipse at center, rgba(255,255,255,0.03) 0%, transparent 55%),
    radial-gradient(ellipse at center, rgba(5, 9, 18, 0.75) 15%, transparent 68%);
  z-index: -1;
  pointer-events: none;
}

.menu-app-name {
  font-size: 4.2rem;
  font-weight: 900;
  letter-spacing: 0.32em;
  padding-left: 0.32em; /* compensate trailing letter-spacing so text appears centered */
  color: #fff;
  line-height: 1;
  text-shadow:
    0 0 24px rgba(230, 236, 248, 0.4),
    0 0 60px rgba(200, 220, 255, 0.08),
    0 0 100px rgba(200, 220, 255, 0.04),
    0 2px 6px rgba(0,0,0,0.9);
}

.menu-tagline {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.38);
}

/* ── Novedades (main menu news strip) ───────────────── */
.menu-news {
  position: absolute;
  bottom: 92px;
  left: 16px;
  right: 16px;
  z-index: 2;
  pointer-events: auto;
  background: rgba(13, 17, 25, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  padding: 8px 12px 8px;
  max-height: 88px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  transition: max-height 0.32s cubic-bezier(0.4,0,0.2,1);
}
.menu-news.expanded {
  max-height: 280px;
  overflow-y: auto;
}
.menu-news-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.menu-news-title {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.42);
}
.menu-news-chevron {
  color: rgba(255,255,255,0.32);
  transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
  flex-shrink: 0;
  transform: rotate(180deg);
}
.menu-news.expanded .menu-news-chevron {
  transform: rotate(0deg);
}
.menu-news-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.menu-news-list li {
  font-size: 0.78rem;
  color: rgba(230, 236, 248, 0.72);
  display: flex;
  align-items: baseline;
  gap: 7px;
  line-height: 1.3;
}
.news-badge {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 4px;
  padding: 1px 5px;
  color: rgba(200,220,255,0.7);
  flex-shrink: 0;
  white-space: nowrap;
}
.news-badge--nuevo   { background: rgba(62,207,106,0.12); border-color: rgba(62,207,106,0.25); color: rgba(100,220,140,0.85); }
.news-badge--mejora  { background: rgba(126,184,245,0.12); border-color: rgba(126,184,245,0.25); color: rgba(160,205,255,0.85); }
.news-badge--fix     { background: rgba(245,158,11,0.12); border-color: rgba(245,158,11,0.25); color: rgba(255,190,80,0.85); }
.news-badge--cambio  { background: rgba(168,120,255,0.12); border-color: rgba(168,120,255,0.25); color: rgba(190,155,255,0.85); }
.news-badge--proximo { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.1); color: rgba(200,200,200,0.5); }

/* ── Top-left group wrapper (profile + wardrobe) ─────── */
.menu-top-left-group {
  position: absolute;
  top: 14px;
  left: 16px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: all;
}
.menu-top-left-group .menu-top-left-chip {
  position: static;
  top: auto;
  left: auto;
  z-index: auto;
}

.menu-top-left-icon {
  background: rgba(10, 14, 26, 0.70);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 20px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: rgba(255,255,255,0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  flex-shrink: 0;
  padding: 0;
}
.menu-top-left-icon svg { opacity: 0.55; transition: opacity 0.15s; }
.menu-top-left-icon:hover {
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.9);
}
.menu-top-left-icon:hover svg { opacity: 0.88; }

/* ── Wardrobe modal ──────────────────────────────────── */
.wardrobe-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 9, 20, 0.82);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.wardrobe-box {
  background: #0d1525;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 18px;
  width: min(540px, 100%);
  height: 78vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.55);
}
.wardrobe-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
}
.wardrobe-title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.88);
}
.wardrobe-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.35);
  font-size: 1rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
  line-height: 1;
}
.wardrobe-close:hover { color: #fff; background: rgba(255,255,255,0.07); }
.wardrobe-tabs {
  display: flex;
  gap: 0;
  padding: 0;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.wardrobe-tab {
  flex: 1;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  color: rgba(255,255,255,0.35);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: inherit;
  cursor: pointer;
  padding: 13px 0 12px;
  transition: color 0.15s, border-color 0.15s;
}
.wardrobe-tab.active {
  color: rgba(255,255,255,0.9);
  border-bottom-color: rgba(255,255,255,0.6);
}
.wardrobe-tab:hover:not(.active) { color: rgba(255,255,255,0.6); }
.wardrobe-content {
  overflow-y: auto;
  padding: 18px;
  flex: 1;
  scrollbar-width: none;
}
.wardrobe-content::-webkit-scrollbar { display: none; }
.wardrobe-char-group { margin-bottom: 24px; }
.wardrobe-char-label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.32);
  margin-bottom: 9px;
}
.wardrobe-skins-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.wardrobe-skin-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  position: relative;
}
.wardrobe-skin-canvas {
  display: block;
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
}
/* Character skins: transparent — decorations (wings, legs) overflow freely */
.wardrobe-skin-canvas--char {
  background: none;
  border: none;
  border-radius: 0;
}
.wardrobe-skin-card.locked .wardrobe-skin-canvas {
  opacity: 0.30;
  filter: grayscale(0.65);
}
.wardrobe-lock-icon {
  position: absolute;
  top: 5px;
  right: 5px;
  font-size: 0.6rem;
  opacity: 0.65;
  line-height: 1;
}
.wardrobe-skin-label {
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.50);
  text-align: center;
  max-width: 200px;
  line-height: 1.25;
}
.wardrobe-skin-card.locked .wardrobe-skin-label { color: rgba(255,255,255,0.22); }
.wardrobe-arena-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.wardrobe-arena-grid .wardrobe-skin-card {
  width: 100%;
}
.wardrobe-arena-grid .wardrobe-skin-canvas {
  width: 100%;
  aspect-ratio: 200 / 120;
  height: auto;
}

/* ── Top-left profile chip (main menu) ──────────────── */
.menu-top-left-chip {
  position: absolute;
  top: 14px;
  left: 16px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(10, 14, 26, 0.7);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 100px;
  padding: 7px 13px 7px 10px;
  cursor: pointer;
  color: rgba(255,255,255,0.72);
  font-size: 0.82rem;
  font-weight: 600;
  font-family: inherit;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  max-width: 180px;
  pointer-events: all;
}
.menu-top-left-chip span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.menu-top-left-chip svg { flex-shrink: 0; opacity: 0.45; }
.menu-top-left-chip:hover {
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.9);
}

/* ── Profile panel (bottom sheet) ───────────────────── */
.profile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 9, 20, 0.72);
  z-index: 500;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.profile-sheet {
  width: 100%;
  max-width: 430px;
  background: var(--surface);
  border-top-left-radius: 22px;
  border-top-right-radius: 22px;
  padding: 0 20px 36px;
  max-height: 72vh;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  animation: profileSlideUp 0.28s cubic-bezier(0.32, 0.72, 0, 1);
}
@keyframes profileSlideUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
.profile-sheet::-webkit-scrollbar { display: none; }
.profile-sheet--closing {
  animation: profileSlideDown 0.24s cubic-bezier(0.4, 0, 1, 1) forwards;
}
@keyframes profileSlideDown {
  from { transform: translateY(0); }
  to   { transform: translateY(110%); }
}

.profile-drag-handle {
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,0.12);
  margin: 12px auto 0;
}

.profile-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0 4px;
}
.profile-sheet-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.profile-close-btn {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: rgba(255,255,255,0.45);
  transition: background 0.15s, color 0.15s;
}
.profile-close-btn:hover { background: rgba(255,255,255,0.1); color: #fff; }

.profile-avatar-wrap {
  display: flex;
  justify-content: center;
  margin: 16px 0 12px;
}
.profile-avatar-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  border: 2px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  transition: background 0.2s, border-color 0.2s;
}

.profile-name-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 4px;
}
.profile-name-text {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
}
.profile-edit-btn {
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: rgba(255,255,255,0.25);
  display: flex;
  align-items: center;
  transition: color 0.15s;
}
.profile-edit-btn:hover { color: rgba(255,255,255,0.7); }

.profile-name-edit-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 4px;
}
.profile-name-input {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 8px;
  padding: 5px 12px;
  outline: none;
  font-family: inherit;
  width: 180px;
  text-align: center;
}
.profile-name-input:focus { border-color: rgba(255,255,255,0.38); }
.profile-confirm-btn {
  background: rgba(100,220,120,0.1);
  border: 1px solid rgba(100,220,120,0.22);
  border-radius: 8px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: rgba(100,220,120,0.75);
  transition: background 0.15s;
}
.profile-confirm-btn:hover { background: rgba(100,220,120,0.2); color: #6edc7a; }

.profile-stats { margin-top: 22px; }

.pstat-section-label {
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 8px;
}
.pstat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}
.pstat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 13px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pstat-val {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}
.pstat-val--win  { color: var(--hp-green); }
.pstat-val--loss { color: var(--hp-red); }
.pstat-val--draw { color: var(--text-dim); }
.pstat-lbl {
  font-size: 0.67rem;
  color: var(--text-dim);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.pstat-champ-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}
.pstat-champ-card {
  flex: 1;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 13px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.pstat-champ-trophy { font-size: 1.3rem; line-height: 1; }
.pstat-champ-info { display: flex; flex-direction: column; gap: 2px; }
.pstat-champ-val {
  font-size: 1.3rem;
  font-weight: 800;
  color: #f8c93e;
  line-height: 1;
}
.pstat-champ-lbl {
  font-size: 0.65rem;
  color: var(--text-dim);
  font-weight: 600;
}

.pstat-fav-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.pstat-fav-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
  flex-shrink: 0;
  color: #fff;
}
.pstat-fav-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pstat-fav-name  { font-size: 1rem; font-weight: 700; }
.pstat-fav-sublabel {
  font-size: 0.67rem;
  color: var(--text-dim);
  font-weight: 600;
}
.pstat-fav-empty {
  font-size: 0.85rem;
  color: var(--text-dim);
  padding: 4px 0;
}

/* ── Floating navigation bar ────────────────────────── */
.floating-nav {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  background: rgba(13, 17, 25, 0.9);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 22px;
  padding: 4px;
  box-shadow:
    0 8px 40px rgba(0,0,0,0.6),
    0 0 0 1px rgba(255,255,255,0.04) inset;
  z-index: 50;
  overflow: hidden;
}

.nav-pill {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc((100% - 8px) / 4);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 16px;
  transition: transform 0.28s cubic-bezier(0.34, 1.35, 0.64, 1);
  z-index: 0;
  pointer-events: none;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.nav-tab {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 9px 4px 10px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-dim);
  transition: color 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.nav-tab:active { opacity: 0.75; }

.nav-tab.nav-tab--active {
  color: var(--text);
}

.nav-tab.nav-tab--active .nav-icon {
  stroke: var(--text);
}

.nav-icon {
  stroke: var(--text-dim);
  transition: stroke 0.2s;
  flex-shrink: 0;
}

.nav-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: color 0.2s;
}

/* screens that show the nav need bottom clearance */
.app--has-nav .select-footer { padding-bottom: 104px; }
.app--has-nav .fighter-grid  { padding-bottom: 90px; }

/* ── Back button ────────────────────────────────────── */
.btn-back {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0 6px 0 0;
  line-height: 1;
  flex-shrink: 0;
}
.btn-back:active { color: var(--text); }

.btn-back--small {
  font-size: 0.8rem;
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text-dim);
}

.btn-reset-mode {
  flex-shrink: 0;
  margin-left: auto;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-faint);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.btn-reset-mode:hover { color: var(--text-dim); border-color: rgba(255,255,255,0.3); }
.btn-reset-mode--danger {
  color: rgba(239, 68, 68, 0.7);
  border-color: rgba(239, 68, 68, 0.25);
}
.btn-reset-mode--danger:hover {
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.55);
  background: rgba(239, 68, 68, 0.08);
}

/* ── Player tag ─────────────────────────────────────── */
.select-header-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.select-title-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.select-title-row h2 {
  font-size: 1.1rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-tag--p1 {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #7eb8f5;
  flex-shrink: 0;
}

.player-tag--ia {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  flex-shrink: 0;
  color: #f07e7e;
}


/* ── Setup screens ──────────────────────────────────── */
.setup-header {
  padding: 20px 20px 8px;
  flex-shrink: 0;
}

.setup-header h2 {
  font-size: 1.7rem;
  font-weight: 800;
}

.setup-body {
  flex: 1;
  overflow-y: auto;
  padding: 8px 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.setup-section {
  display: flex;
  flex-direction: column;
  gap: 11px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 16px;
}

.setup-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ── Counter (stepper) ─────────────────────────────── */
.counter-row {
  display: flex;
  align-items: center;
  background: var(--card);
  border-radius: 12px;
  overflow: hidden;
}

.counter-btn {
  flex-shrink: 0;
  width: 54px;
  height: 52px;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.12s;
}
.counter-btn:active { background: rgba(255,255,255,0.08); }

.counter-val {
  flex: 1;
  font-size: 2rem;
  font-weight: 800;
  text-align: center;
}

/* ── Toggle (segmented control) ────────────────────── */
.toggle-row {
  position: relative;
  display: flex;
  background: var(--card);
  border-radius: 10px;
  padding: 3px;
  gap: 3px;
}

.toggle-pill {
  position: absolute;
  top: 3px;
  left: 3px;
  height: calc(100% - 6px);
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  pointer-events: none;
  z-index: 0;
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.toggle-opt {
  position: relative;
  z-index: 1;
  flex: 1;
  padding: 9px 4px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-dim);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s;
}

.toggle-opt.active {
  color: var(--text);
  font-weight: 700;
}

/* ── Arena picker (quick setup) ─────────────────────── */
.arena-picker {
  display: flex;
  align-items: center;
  gap: 8px;
}

.arena-nav {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  transition: color 0.15s, border-color 0.15s;
}
.arena-nav:hover {
  color: var(--text);
  border-color: rgba(255,255,255,0.22);
}

.arena-preview-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

#arena-preview {
  border-radius: 8px;
  border: 1px solid var(--border);
  display: block;
}

.arena-layout-name {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  text-transform: uppercase;
}

/* ── Arena skin picker ──────────────────────────────── */
.arena-skin-picker {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}
.arena-skin-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.arena-skin-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.02em;
}
.arena-skin-lock {
  font-size: 0.7rem;
  color: rgba(255,180,50,0.85);
  font-weight: 600;
}

/* Arena preview — square variant for arena skins in chest */
.chest-preview-canvas.chest-preview-arena {
  border-radius: 10px;
}

.setup-info-box {
  font-size: 0.78rem;
  color: var(--text-dim);
  padding: 4px 4px;
  line-height: 1.5;
  text-align: center;
}

/* ── Header title group (title + badge together) ────── */
.header-title-group {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* ── Header badge ───────────────────────────────────── */
.header-badge {
  font-size: 0.64rem;
  font-weight: 700;
  color: var(--text-dim);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3px 10px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── Standings ──────────────────────────────────────── */
.standings-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: auto;
  padding: 12px 16px;
  min-height: 0;
}

.standings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.standings-table thead th {
  text-align: left;
  padding: 4px 6px 8px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border);
}

.standings-table thead th:not(:nth-child(2)) {
  text-align: center;
}

.standings-table tbody td {
  padding: 9px 6px;
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.standings-table tbody td:nth-child(2) {
  text-align: left;
}

.standings-table tbody tr:nth-child(even) td {
  background: rgba(255,255,255,0.025);
}

.standings-table tbody tr:last-child td {
  border-bottom: none;
}

.standings-table tbody tr:hover td {
  background: rgba(255,255,255,0.06);
}

.row-player td {
  background: rgba(120,180,255,0.07) !important;
}

.row-player .pts {
  color: #7eb8f5;
  font-weight: 700;
}

td.pts {
  font-weight: 700;
  color: var(--text);
}

td.rank {
  color: var(--text-dim);
  font-size: 0.75rem;
}

.participant-cell {
  display: flex;
  align-items: center;
  gap: 7px;
}

.p-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── Screen tabs (Tabla / Fechas) ───────────────────── */
.screen-tabs {
  display: flex;
  gap: 4px;
  padding: 6px 16px 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  flex-shrink: 0;
}

.screen-tab {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 7px 14px;
  border-radius: 6px 6px 0 0;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
  position: relative;
}

.screen-tab.active {
  color: var(--text);
  background: rgba(255,255,255,0.06);
}

.screen-tab.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0; right: 0;
  height: 2px;
  background: #fff;
  border-radius: 2px 2px 0 0;
}

/* ── Fixture view ────────────────────────────────────── */
.fixture-round {
  margin-bottom: 14px;
}

.fixture-round-header {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 6px;
  padding: 0 2px;
}

.fixture-match {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  margin-bottom: 5px;
  font-size: 0.82rem;
}

.fixture-side {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  color: var(--text-dim);
  min-width: 0;
}

.fixture-side--right {
  justify-content: flex-end;
  text-align: right;
}

.fixture-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fixture-match.played .fixture-side.win {
  color: var(--text);
  font-weight: 600;
}

.fixture-match.played .fixture-side.loss {
  opacity: 0.38;
}

.fixture-side.fx-player .fixture-name {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.fixture-center {
  flex-shrink: 0;
  width: 28px;
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-faint);
  font-weight: 700;
}

/* ── Bracket tree ───────────────────────────────────── */
.bracket-tree {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  min-width: max-content;
}

.bracket-col {
  display: flex;
  flex-direction: column;
  min-width: 140px;
  flex: 1;
  position: relative;
  overflow: visible;
}

.bracket-col-label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  text-align: center;
  margin-bottom: 8px;
  flex-shrink: 0;
}

.bracket-slots {
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: visible;
}

.bracket-slot {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: visible;
}

/* Right connector: top match of pair */
.bracket-col:not(:last-child) .bracket-slot.slot-top::after {
  content: "";
  position: absolute;
  right: -32px;
  top: 50%;
  bottom: 0;
  width: 32px;
  border-top: 1.5px solid rgba(255,255,255,0.18);
  border-right: 1.5px solid rgba(255,255,255,0.18);
}

/* Right connector: bottom match of pair */
.bracket-col:not(:last-child) .bracket-slot.slot-bot::after {
  content: "";
  position: absolute;
  right: -32px;
  top: 0;
  bottom: 50%;
  width: 32px;
  border-bottom: 1.5px solid rgba(255,255,255,0.18);
  border-right: 1.5px solid rgba(255,255,255,0.18);
}

/* Left connector for all non-first column slots */
.bracket-col:not(:first-child) .bracket-slot::before {
  content: "";
  position: absolute;
  left: -32px;
  top: 50%;
  width: 32px;
  height: 0;
  border-top: 1.5px solid rgba(255,255,255,0.18);
}

.bracket-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.15s;
}

.bracket-card.player-match {
  border-color: rgba(120, 180, 255, 0.5);
  box-shadow: 0 0 0 1px rgba(120, 180, 255, 0.15);
}

.bracket-card.tbd {
  opacity: 0.35;
}

.bracket-entry {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  font-size: 0.82rem;
  color: var(--text-dim);
}

.bracket-entry + .bracket-entry {
  border-top: 1px solid var(--border);
}

.bracket-entry.winner {
  color: var(--text);
  font-weight: 600;
  background: rgba(255,255,255,0.05);
}

.bracket-entry.loser {
  opacity: 0.45;
}

.bracket-entry.bye {
  color: var(--text-faint);
  font-style: italic;
  font-size: 0.75rem;
}

.bracket-entry.tbd-entry {
  color: var(--text-faint);
  font-size: 0.72rem;
  justify-content: center;
  padding: 10px;
}

.group-block {
  margin-bottom: 18px;
}

.group-title {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 8px;
  text-align: center;
}

/* ── League Champion Screen ─────────────────────────── */
#screen-league-champion {
  position: relative;
  justify-content: space-between;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 30%, rgba(40,55,100,0.55) 0%, transparent 70%), var(--bg);
}

#confetti-canvas, #tchamp-confetti-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.prematch-arena-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 16px 8px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 4px;
  gap: 4px;
}

.prematch-arena-layout-name {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  text-transform: uppercase;
}

.prematch-arena-center-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

#prematch-arena-preview {
  border-radius: 8px;
  border: 1px solid var(--border);
  display: block;
}

.prematch-skin-label {
  width: 100%;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
}

.prematch-skin-label .arena-skin-lock {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-dim);
}

.lchamp-content {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px 24px 0;
}

.lchamp-trophy {
  font-size: 3.8rem;
  line-height: 1;
  filter: drop-shadow(0 0 24px rgba(255, 210, 60, 0.55));
  animation: trophy-bounce 1.8s cubic-bezier(0.36,0.07,0.19,0.97) infinite alternate;
}
@keyframes trophy-bounce {
  from { transform: translateY(0); }
  to   { transform: translateY(-8px); }
}

.lchamp-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,210,60,0.75);
  margin-bottom: 4px;
}

.lchamp-circle-wrap {
  position: relative;
  width: 110px;
  height: 110px;
  margin: 6px 0;
}

.lchamp-ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: conic-gradient(from 0deg, var(--champ-color, #fff) 0%, transparent 60%, var(--champ-color, #fff) 100%) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  animation: ring-spin 4s linear infinite;
}
@keyframes ring-spin {
  to { transform: rotate(360deg); }
}

.lchamp-circle {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.6rem;
  box-shadow:
    0 0 0 3px rgba(255,255,255,0.07),
    0 0 48px -8px var(--champ-color, #fff);
}

.lchamp-name {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-align: center;
}

.lchamp-subtitle {
  font-size: 0.78rem;
  color: var(--text-dim);
  letter-spacing: 0.06em;
}

.lchamp-stats {
  display: flex;
  gap: 20px;
  margin-top: 6px;
}

.lchamp-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.lchamp-stat-val {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
}

.lchamp-stat-lbl {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.lchamp-footer {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 20px 96px;
  width: 100%;
}

.btn-secondary {
  width: 100%;
  padding: 12px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--text-dim);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.btn-secondary:hover { background: rgba(255,255,255,0.1); color: var(--text); }

/* ── Champion display ───────────────────────────────── */
.champion-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 40px 24px;
}

.champ-circle {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  box-shadow: 0 0 32px currentColor;
}

.champ-name {
  font-size: 1.8rem;
  font-weight: 800;
}

.champ-label {
  font-size: 0.85rem;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ── View toggle button ─────────────────────────────── */
.btn-view-toggle {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-dim);
  font-size: 1rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-left: auto;
  flex-shrink: 0;
  transition: color 0.15s, background 0.15s;
}
.btn-view-toggle:active { background: var(--card); color: var(--text); }

/* ── Grid character select ──────────────────────────── */
.fighter-grid {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 8px 12px 4px;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 0;
}

.grid-category {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 16px 2px 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.grid-category:first-child { padding-top: 6px; }

.grid-category--fav {
  color: #f8c93e;
  border-bottom-color: rgba(248, 201, 62, 0.2);
}

.grid-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 6px;
}

.grid-cell {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.12s;
  -webkit-tap-highlight-color: transparent;
  position: relative;
}

.grid-cell:active { transform: scale(0.93); }

.grid-cell.active {
  border-color: var(--char-color, #888);
  box-shadow: 0 0 10px -3px var(--char-color, #888);
}

/* Fav star badge (top-right corner of grid cell) */
.grid-cell.fav::after {
  content: '★';
  position: absolute;
  top: 5px;
  right: 6px;
  font-size: 9px;
  color: #f8c93e;
  line-height: 1;
  pointer-events: none;
  text-shadow: 0 0 4px rgba(0,0,0,0.6);
}

/* Peek: shows the top ~60% of the circle */
.grid-peek {
  position: relative;
  height: 56px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  padding-top: 10px;
  flex-shrink: 0;
}

.grid-peek::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--char-color, rgba(255,255,255,0.1));
  opacity: 0.1;
  pointer-events: none;
}

.grid-cell.active .grid-peek::before {
  opacity: 0.18;
}

.grid-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.grid-name {
  font-size: 0.7rem;
  font-weight: 700;
  text-align: center;
  color: rgba(255,255,255,0.75);
  padding: 6px 6px 9px;
  line-height: 1.25;
  word-break: break-word;
  letter-spacing: 0.01em;
}

.grid-cell.active .grid-name {
  color: #fff;
}

/* ── Participant picker ──────────────────────────── */
.pick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  padding-bottom: 4px;
}

.pick-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 10px 4px 8px;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.12s, background 0.12s;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.pick-tile:active { background: var(--card); }
.pick-tile.selected {
  background: rgba(255,255,255,0.06);
}
.pick-tile-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.pick-tile-name {
  font-size: 0.6rem;
  font-weight: 600;
  text-align: center;
  color: var(--text-dim);
  line-height: 1.2;
  word-break: break-word;
  max-width: 100%;
}
.pick-tile.selected .pick-tile-name {
  color: var(--text);
}

/* ── Character search bar ───────────────────────────── */
.char-search-wrap {
  position: relative;
  margin-top: 0;
}

.char-search-icon {
  position: absolute;
  left: 9px;
  top: 50%;
  transform: translateY(-50%);
  stroke: var(--text-dim);
  pointer-events: none;
}

.char-search {
  width: 100%;
  padding: 7px 10px 7px 30px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.82rem;
  font-family: inherit;
  outline: none;
  -webkit-appearance: none;
}
.char-search:focus { border-color: #555; }
.char-search::placeholder { color: var(--text-dim); }
.char-search::-webkit-search-cancel-button { display: none; }

/* ── Character info modal ───────────────────────────── */
.char-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 9, 20, 0.75);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  transition: opacity 0.2s ease;
}

.char-modal-overlay.modal-closing {
  pointer-events: none;
  opacity: 0;
}

.char-modal-box {
  width: 100%;
  max-width: 320px;
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 28px 22px 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: modal-pop 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-closing .char-modal-box {
  animation: modal-dismiss 0.18s ease forwards !important;
}

@keyframes modal-pop {
  from { transform: scale(0.88); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}
@keyframes modal-dismiss {
  from { transform: scale(1);    opacity: 1; }
  to   { transform: scale(0.9);  opacity: 0; }
}

.char-modal-fav-btn {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 28px;
  height: 28px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  cursor: pointer;
  color: rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s, transform 0.1s;
  line-height: 0;
}
.char-modal-fav-btn:hover { background: var(--card); color: rgba(255,255,255,0.7); transform: scale(1.1); }
.char-modal-fav-btn.fav-active { color: #f8c93e; border-color: rgba(248,201,62,0.35); background: rgba(248,201,62,0.08); }
.char-modal-fav-btn.fav-active:hover { color: #f8c93e; }

.char-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-dim);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.char-modal-close:hover { background: var(--card); }

.char-modal-preview {
  display: flex;
  justify-content: center;
  padding: 4px 0 2px;
}

.char-modal-circle {
  width: 220px;
  height: 130px;
  display: block;
}

.char-modal-name {
  font-size: 1.35rem;
  font-weight: 900;
  text-align: center;
  letter-spacing: 0.01em;
}

.char-modal-desc {
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.5;
  text-align: center;
}

.char-modal-stats {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 2px 0;
}

.char-modal-category {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.75;
}

.prematch-card-category {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-top: 6px;
}

.char-modal-overlay .btn-primary {
  margin-top: 4px;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.btn-fav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  padding: 9px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  color: var(--text-dim);
  font-size: 0.82rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  margin-top: 6px;
}
.btn-fav-toggle:hover {
  background: rgba(255,255,255,0.08);
  color: var(--text);
}
.btn-fav-toggle.fav-active {
  background: rgba(248, 201, 62, 0.1);
  border-color: rgba(248, 201, 62, 0.3);
  color: #f8c93e;
}

/* ── Skin selector ───────────────────────────────── */
.skin-selector {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 8px 0 4px;
}
.skin-selector.hidden { display: none; }
.skin-arrow {
  background: none;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 8px;
  color: var(--text);
  font-size: 1.4rem;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  line-height: 1;
  padding: 0;
  flex-shrink: 0;
}
.skin-arrow:hover { background: var(--card); border-color: rgba(255,255,255,0.28); }
.skin-arrow:disabled { opacity: 0.28; cursor: default; background: none; }
.skin-label-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 100px;
  gap: 1px;
}
.skin-label-heading {
  font-size: 0.48rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--text-dim);
  text-transform: uppercase;
}
.skin-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
}

/* ── Tag Team fight area ─────────────────────────────────────────────── */
#fight-tag-area {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
}
#fight-tag-area.hidden { display: none !important; }

.btn-tag {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 20px 8px 16px;
  border-radius: 999px;
  background: rgba(13, 17, 25, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.09em;
  cursor: pointer;
  transition: border-color 0.25s, transform 0.12s;
}
/* Cooldown fill — rises from bottom as cooldown expires */
.btn-tag::before {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: calc(var(--cd-pct, 1) * 100%);
  background: rgba(255,255,255,0.08);
  transition: height 0.12s linear;
  z-index: 0;
  pointer-events: none;
}
.btn-tag > * { position: relative; z-index: 1; }
.btn-tag:not(:disabled):active { transform: scale(0.94); }
.btn-tag:disabled { cursor: default; opacity: 0.72; }
.btn-tag.ready {
  border-color: rgba(255,255,255,0.25);
  color: var(--text);
}
.btn-tag.ready::before { background: rgba(255,255,255,0.08); }
.tag-icon { font-size: 15px; }

/* ── Tag flash overlay (inside #arena-container) ─────────────────────── */
#tag-flash {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  padding: 5px 18px;
  border-radius: 999px;
  border: 1.5px solid currentColor;
  background: rgba(8, 12, 24, 0.72);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  pointer-events: none;
  z-index: 5;
  opacity: 0;
  white-space: nowrap;
}
.tag-flash-in {
  animation: tag-flash-anim 0.75s ease forwards;
}
@keyframes tag-flash-anim {
  0%   { opacity: 0;   transform: translate(-50%, -50%) scale(0.7);  }
  22%  { opacity: 1;   transform: translate(-50%, -50%) scale(1.06); }
  60%  { opacity: 1;   transform: translate(-50%, -50%) scale(1);    }
  100% { opacity: 0;   transform: translate(-50%, -50%) scale(1.12); }
}

/* ── Tag Team HUD ────────────────────────────────────────────────────── */
.tt-hud {
  display: flex;
  align-items: stretch;
  width: 100%;
  gap: 2px;
  padding: 2px 0;
}
.tt-team {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.tt-fighter {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 6px;
  border-radius: 7px;
  transition: opacity 0.25s;
  min-width: 0;
}
.tt-fighter.tt-active {
  background: rgba(255,255,255,0.07);
}
.tt-fighter.tt-bench      { opacity: 0.36; }
.tt-fighter.tt-eliminated { opacity: 0.16; }
.tt-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.tt-name {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.9);
  min-width: 0;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 4px;
  overflow: hidden;
}
.tt-name-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.tt-track {
  width: 52px;
  flex-shrink: 0;
  height: 5px;
  border-radius: 3px;
  background: rgba(255,255,255,0.1);
  overflow: hidden;
}
.tt-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.1s ease;
}
.tt-hp-text {
  font-size: 9px;
  font-variant-numeric: tabular-nums;
  color: rgba(255,255,255,0.5);
  min-width: 18px;
  text-align: right;
  flex-shrink: 0;
}
.tt-team.right .tt-fighter  { flex-direction: row-reverse; }
.tt-team.right .tt-track    { transform: scaleX(-1); }
.tt-team.right .tt-hp-text  { text-align: left; }
.tt-team.right .tt-name     { text-align: right; }
.tt-vs {
  font-size: 10px;
  font-weight: 700;
  color: rgba(255,255,255,0.25);
  padding: 0 3px;
  flex-shrink: 0;
  align-self: center;
}

/* ── XP Bar (main menu) ──────────────────────────────────────────────── */
.xp-bar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 220px;
  pointer-events: auto;
}
.xp-track-group {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.xp-bar-track {
  width: 100%;
  height: 8px;
  background: rgba(255,255,255,0.08);
  border-radius: 99px;
  overflow: hidden;
}
.xp-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #7b5ea7, #5bc8f5);
  border-radius: 99px;
  transition: width 0.6s ease;
}
.xp-label {
  font-size: 0.62rem;
  font-weight: 600;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.04em;
}
.xp-chest-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,210,80,0.12);
  border: 1.5px solid rgba(255,200,50,0.35);
  border-radius: 20px;
  padding: 5px 10px;
  cursor: pointer;
  transition: background 0.2s, transform 0.12s;
  color: #ffd040;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}
.xp-chest-btn:hover { background: rgba(255,210,80,0.22); transform: scale(1.04); }
.xp-chest-emoji { font-size: 1rem; line-height: 1; }
.xp-chest-count {
  background: #ffd040;
  color: #1a1200;
  border-radius: 99px;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 1px 5px;
  min-width: 18px;
  text-align: center;
}

/* ── Chest modal ─────────────────────────────────────────────────────── */
.chest-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.72);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.chest-box {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 36px 28px 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 300px;
  width: 90%;
  animation: modalIn 0.22s ease;
}
.chest-anim {
  font-size: 3.2rem;
  line-height: 1;
  transition: transform 0.3s ease;
}
.chest-anim.chest-open { transform: scale(1.3) rotate(-8deg); }
.chest-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 0.02em;
}
.chest-reward {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-height: 40px;
}
.chest-char {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
}
.chest-skin-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffd040;
}
.chest-preview-canvas {
  width: 220px;
  height: 150px;
  display: block;
  margin: 0 auto;
  animation: chestPreviewIn 0.35s ease;
}
@keyframes chestPreviewIn {
  from { opacity: 0; transform: scale(0.6); }
  to   { opacity: 1; transform: scale(1); }
}
#btn-chest-close {
  border: 1.5px solid rgba(255,255,255,0.25);
  margin-top: 4px;
}

/* ── Gameover points notification ────────────────────────────────────── */
.gameover-points {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 0 2px;
}
.gameover-pts-line {
  font-size: 0.8rem;
  font-weight: 600;
  color: #a8e06a;
  letter-spacing: 0.02em;
}

/* ── Event (league / tournament) points banner ───────────────────────── */
.event-points-banner {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: rgba(168,224,106,0.1);
  border: 1px solid rgba(168,224,106,0.25);
  border-radius: 10px;
  padding: 8px 16px;
}
.event-points-banner span {
  font-size: 0.82rem;
  font-weight: 600;
  color: #a8e06a;
}

/* ── Skin lock indicator ─────────────────────────────────────────────── */
.lock-invisible { visibility: hidden; }
.skin-lock-icon {
  font-size: 0.75rem;
  margin-left: 4px;
  opacity: 0.85;
}
#char-modal-select:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.4);
}
