/* Fulbito v2 — mobile-first, tema oscuro espectacular */
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

/* Tipografía display opcional: tirá un .woff2 en assets/fonts/display.woff2 (ej. Anton, Bebas) */
@font-face {
  font-family: 'FulbitoDisplay';
  src: url('../fonts/display.woff2') format('woff2');
  font-display: swap;
}

:root {
  --bg: #0a0e14;
  --bg2: #131a24;
  --bg3: #1d2733;
  --border: #2b3648;
  --text: #eef4fb;
  --muted: #8fa0b3;
  --green: #16a34a;
  --green2: #22c55e;
  --neon: #4ade80;
  --gold: #fbbf24;
  --gold2: #f59e0b;
  --red: #ef4444;
  --blue: #3b82f6;
  --r-comun: #9aa0a6;
  --r-poco_comun: #22c55e;
  --r-raro: #3b82f6;
  --r-epico: #a855f7;
  --r-legendario: #fbbf24;
  --nav-h: 64px;
  --display: 'FulbitoDisplay', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
html, body { height: 100%; }
body {
  background: var(--bg); color: var(--text);
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 15px; line-height: 1.45;
  overscroll-behavior: none;
}
/* Fondo general: poné assets/img/bg-app.jpg (oscuro, sutil) y se usa solo */
body::before {
  content: ''; position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(1000px 500px at 50% -10%, rgba(34, 197, 94, .14), transparent 60%),
    radial-gradient(800px 400px at 90% 110%, rgba(59, 130, 246, .08), transparent 60%),
    url('../img/bg-app.jpg') center/cover no-repeat,
    var(--bg);
}
body::after {
  content: ''; position: fixed; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(10, 14, 20, .55), rgba(10, 14, 20, .82));
  pointer-events: none;
}
/* Partículas flotantes de fondo (Pixi), constantes en toda la app — le dan vida de "juego" a cualquier pantalla */
#ambient-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
#app { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; padding: 14px 14px calc(var(--nav-h) + 28px); min-height: 100vh; animation: fadein .3s; }
@keyframes fadein { from { opacity: 0; transform: translateY(8px); } }
.hidden { display: none !important; }
h1, h2, h3 { line-height: 1.2; }
.display { font-family: var(--display); letter-spacing: .5px; }
button { font: inherit; cursor: pointer; border: none; border-radius: 12px; color: var(--text); background: var(--bg3); }
input, select {
  font: inherit; color: var(--text); background: rgba(19, 26, 36, .9);
  border: 1px solid var(--border); border-radius: 12px;
  padding: 12px 14px; width: 100%; outline: none; transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus { border-color: var(--green2); box-shadow: 0 0 0 3px rgba(34, 197, 94, .15); }
label { display: block; font-size: 12px; color: var(--muted); margin: 12px 0 5px; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; }

/* Splash */
.splash { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 80vh; gap: 12px; }
.splash-ball { font-size: 64px; animation: bounce 1s infinite alternate ease-in; filter: drop-shadow(0 10px 18px rgba(0,0,0,.5)); }
@keyframes bounce { from { transform: translateY(0); } to { transform: translateY(-18px); } }

/* Botones */
.btn { display: block; width: 100%; padding: 15px; border-radius: 14px; font-weight: 800; font-size: 16px; transition: transform .08s, box-shadow .2s, opacity .2s; position: relative; overflow: hidden; }
.btn:active { transform: scale(.96); }
.btn-primary { background: linear-gradient(135deg, var(--green), var(--green2)); color: #fff; box-shadow: 0 6px 20px rgba(34, 197, 94, .35), inset 0 1px 0 rgba(255,255,255,.25); text-shadow: 0 1px 2px rgba(0,0,0,.25); }
.btn-gold { background: linear-gradient(135deg, var(--gold2), var(--gold)); color: #201500; box-shadow: 0 6px 20px rgba(251, 191, 36, .35), inset 0 1px 0 rgba(255,255,255,.4); }
.btn-primary::after, .btn-gold::after {
  content: ''; position: absolute; top: 0; left: -80%; width: 50%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent);
  animation: btnshine 3.2s infinite;
}
@keyframes btnshine { 0%, 60% { left: -80%; } 100% { left: 130%; } }
.btn-ghost { background: rgba(29, 39, 51, .7); border: 1px solid var(--border); color: var(--text); }
.btn-danger { background: transparent; border: 1px solid var(--red); color: var(--red); }
.social-login-row { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.social-login-row .google-btn-wrap { display: flex; justify-content: center; }
.divider-or { display: flex; align-items: center; gap: 10px; margin: 4px 0 16px; color: var(--muted); font-size: 12px; font-weight: 700; }
.divider-or::before, .divider-or::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.btn:disabled { opacity: .45; pointer-events: none; }
.btn-sm { width: auto; padding: 9px 14px; font-size: 13px; }
.btn-row { display: flex; gap: 10px; }
.btn-row .btn { flex: 1; }

/* Paneles */
.panel {
  background: linear-gradient(180deg, rgba(19, 26, 36, .92), rgba(19, 26, 36, .78));
  border: 1px solid var(--border); border-radius: 18px; padding: 16px; margin-bottom: 14px;
  backdrop-filter: blur(8px); box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
  animation: panelIn .4s cubic-bezier(.25, .8, .3, 1.15) both;
}
@keyframes panelIn { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.panel h3 { margin-bottom: 10px; font-size: 16px; }
.muted { color: var(--muted); font-size: 13px; }
.center { text-align: center; }

/* Header banner del club */
.apphead {
  display: flex; align-items: center; gap: 12px; margin-bottom: 14px; padding: 12px 14px;
  background: linear-gradient(120deg, rgba(22, 163, 74, .22), rgba(19, 26, 36, .9) 55%);
  border: 1px solid var(--border); border-radius: 18px; box-shadow: 0 8px 24px rgba(0,0,0,.3);
  animation: panelIn .4s cubic-bezier(.25, .8, .3, 1.15) both;
}
.apphead .shield-mini { flex-shrink: 0; filter: drop-shadow(0 4px 8px rgba(0,0,0,.5)); }
.apphead .info { flex: 1; min-width: 0; }
.apphead .info b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 16px; font-family: var(--display); letter-spacing: .5px; }
.apphead .chips { display: flex; gap: 6px; margin-top: 4px; flex-wrap: wrap; }
.apphead .chips span { font-size: 10.5px; font-weight: 800; padding: 2px 8px; border-radius: 20px; background: rgba(0,0,0,.35); border: 1px solid var(--border); color: var(--muted); white-space: nowrap; }
.apphead .chips .rt { color: var(--neon); border-color: rgba(74, 222, 128, .4); }
.apphead .coins { background: linear-gradient(135deg, rgba(251,191,36,.18), rgba(0,0,0,.4)); border: 1px solid rgba(251,191,36,.45); border-radius: 20px; padding: 6px 12px; font-weight: 800; color: var(--gold); white-space: nowrap; font-size: 14px; }

/* Nav inferior */
#bottomnav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
  display: flex; max-width: 640px; margin: 0 auto;
  background: rgba(13, 18, 26, .92); backdrop-filter: blur(14px);
  border-top: 1px solid var(--border);
  padding-bottom: env(safe-area-inset-bottom);
  height: calc(var(--nav-h) + env(safe-area-inset-bottom));
}
#bottomnav button {
  flex: 1; background: none; border-radius: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; font-size: 10.5px; color: var(--muted); font-weight: 700; position: relative; transition: color .2s;
}
#bottomnav button.active { color: var(--neon); }
#bottomnav button.active::before {
  content: ''; position: absolute; top: 0; width: 40%; height: 3px; border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, var(--green2), var(--neon)); box-shadow: 0 2px 10px var(--neon);
}
#bottomnav .nav-ico { font-size: 21px; transition: transform .2s; }
#bottomnav button.active .nav-ico { transform: translateY(-2px) scale(1.15); }

/* Toast */
#toast {
  position: fixed; left: 50%; bottom: calc(var(--nav-h) + 20px); transform: translateX(-50%) translateY(20px);
  background: rgba(29, 39, 51, .95); border: 1px solid var(--green2); color: var(--text);
  padding: 12px 20px; border-radius: 14px; opacity: 0; pointer-events: none;
  transition: all .25s; z-index: 200; max-width: 90vw; text-align: center; font-size: 14px; font-weight: 600;
  box-shadow: 0 10px 30px rgba(0,0,0,.5); backdrop-filter: blur(8px);
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
#toast.error { border-color: var(--red); color: #fca5a5; }

/* Modal */
#modal-root:not(:empty) {
  position: fixed; inset: 0; z-index: 90; background: rgba(4, 6, 10, .8);
  display: flex; align-items: flex-end; justify-content: center; backdrop-filter: blur(4px);
}
.modal {
  background: linear-gradient(180deg, #18202c, #10161f);
  border: 1px solid var(--border); border-bottom: none;
  border-radius: 22px 22px 0 0; padding: 20px; width: 100%; max-width: 640px;
  max-height: 90vh; overflow-y: auto; animation: slideup .28s cubic-bezier(.2, .9, .3, 1.1);
  padding-bottom: calc(20px + env(safe-area-inset-bottom));
}
@keyframes slideup { from { transform: translateY(70px); opacity: 0; } }
@media (min-width: 700px) {
  #modal-root:not(:empty) { align-items: center; }
  .modal { border-radius: 22px; border-bottom: 1px solid var(--border); }
}

/* ---------- AUTH ---------- */
/* Portada: poné assets/img/bg-login.jpg (estadio nocturno vertical) */
.auth-hero {
  margin: -14px -14px 18px; padding: 52px 20px 34px; text-align: center; position: relative; overflow: hidden;
  background:
    linear-gradient(180deg, rgba(10, 14, 20, .25), rgba(10, 14, 20, .55) 70%, var(--bg)),
    url('../img/bg-login.jpg') center 30%/cover no-repeat,
    radial-gradient(700px 380px at 50% -60px, rgba(34, 197, 94, .5), transparent 65%),
    linear-gradient(160deg, #0c2b18, #0a0e14 70%);
}
.auth-hero .ball { font-size: 58px; animation: floaty 3s infinite ease-in-out alternate; display: inline-block; filter: drop-shadow(0 14px 20px rgba(0,0,0,.6)); }
@keyframes floaty { from { transform: translateY(0) rotate(-8deg); } to { transform: translateY(-14px) rotate(8deg); } }
.auth-hero .logo-img { max-width: 240px; max-height: 110px; display: block; margin: 0 auto 4px; filter: drop-shadow(0 8px 16px rgba(0,0,0,.6)); }
.auth-hero h1 {
  font-family: var(--display); font-size: 52px; letter-spacing: 3px; line-height: 1;
  background: linear-gradient(180deg, #fff, #86efac 75%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-transform: uppercase; filter: drop-shadow(0 4px 14px rgba(34, 197, 94, .45));
}
.auth-hero p { color: #cbd5e1; font-weight: 600; margin-top: 6px; text-shadow: 0 2px 8px rgba(0,0,0,.8); }
.auth-tabs { display: flex; background: rgba(19, 26, 36, .9); border: 1px solid var(--border); border-radius: 14px; padding: 4px; margin-bottom: 18px; }
.auth-tabs button { flex: 1; padding: 11px; background: none; color: var(--muted); font-weight: 800; border-radius: 10px; }
.auth-tabs button.active { background: linear-gradient(135deg, var(--green), var(--green2)); color: #fff; box-shadow: 0 4px 14px rgba(34,197,94,.35); }

/* ---------- WIZARD ---------- */
.steps { display: flex; gap: 6px; margin-bottom: 18px; }
.steps div { flex: 1; height: 5px; border-radius: 3px; background: var(--bg3); transition: background .3s; }
.steps div.done { background: linear-gradient(90deg, var(--green2), var(--neon)); box-shadow: 0 0 10px rgba(74, 222, 128, .5); }
.opt-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.opt-grid button { padding: 10px 14px; border: 1px solid var(--border); background: rgba(19,26,36,.8); font-size: 13px; font-weight: 700; transition: all .15s; }
.opt-grid button.sel { border-color: var(--neon); background: rgba(34, 197, 94, .18); color: var(--neon); box-shadow: 0 0 12px rgba(74,222,128,.25); }
.color-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.color-grid button { width: 40px; height: 40px; border-radius: 50%; border: 3px solid rgba(255,255,255,.12); transition: transform .15s; box-shadow: 0 3px 8px rgba(0,0,0,.4); }
.color-grid button.sel { border-color: #fff; transform: scale(1.18); box-shadow: 0 0 14px rgba(255,255,255,.35); }
.preview-box {
  display: flex; justify-content: center; padding: 22px;
  background: radial-gradient(circle at 50% 28%, #14351f, #0a0e14 78%);
  border: 1px solid var(--border); border-radius: 16px; margin-bottom: 8px; position: relative; overflow: hidden;
}
.preview-box::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, transparent 0 14px, rgba(255,255,255,.02) 14px 28px); }

/* ---------- POSICIONES / RAREZAS ---------- */
.pos-badge { display: inline-block; font-size: 10px; font-weight: 900; padding: 2px 7px; border-radius: 6px; color: #fff; letter-spacing: .5px; }
.pos-POR { background: #b45309; } .pos-DEF { background: #1d4ed8; } .pos-MED { background: #15803d; } .pos-DEL { background: #b91c1c; }
.rar-comun { border-color: var(--r-comun) !important; background: linear-gradient(150deg, #5b6470, #353b45 60%, #4b525d); }
.rar-poco_comun { border-color: var(--r-poco_comun) !important; background: linear-gradient(150deg, #16883d, #0c5426 60%, #12703a); }
.rar-raro { border-color: var(--r-raro) !important; background: linear-gradient(150deg, #2563eb, #123a80 60%, #1d4fb8); }
.rar-epico { border-color: var(--r-epico) !important; background: linear-gradient(150deg, #9333ea, #4c1d95 60%, #7c2fd6); box-shadow: 0 0 14px rgba(168, 85, 247, .35); }
.rar-legendario { border-color: var(--r-legendario) !important; background: linear-gradient(150deg, #f0b429, #92600a 55%, #d69e17); box-shadow: 0 0 18px rgba(251, 191, 36, .5); }
.rarity-tag { font-size: 11px; font-weight: 800; }
.tag-comun { color: var(--r-comun); } .tag-poco_comun { color: var(--r-poco_comun); }
.tag-raro { color: #60a5fa; } .tag-epico { color: #c084fc; } .tag-legendario { color: var(--gold); }

/* ---------- CANCHA (alineación) ---------- */
.pitch-wrap { position: relative; border-radius: 18px; overflow: hidden; border: 1px solid var(--border); box-shadow: 0 10px 30px rgba(0,0,0,.4); margin-bottom: 14px; }
.pitch-bg { display: block; width: 100%; height: auto; }
.pitch-slots { position: absolute; inset: 0; }
.pslot { position: absolute; transform: translate(-50%, -50%); width: 62px; text-align: center; cursor: pointer; transition: transform .15s; }
.pslot:active { transform: translate(-50%, -50%) scale(.92); }
.pslot .chip { position: relative; display: inline-block; filter: drop-shadow(0 5px 8px rgba(0,0,0,.55)); }
.pslot .chip-ovr {
  position: absolute; top: -4px; right: -6px; min-width: 22px; height: 22px; border-radius: 8px;
  font-size: 11px; font-weight: 900; line-height: 22px; color: #fff; border: 1.5px solid; padding: 0 3px;
}
.pslot .chip-name {
  display: block; margin-top: 1px; font-size: 9.5px; font-weight: 800; color: #fff;
  background: rgba(0, 0, 0, .55); border-radius: 6px; padding: 1px 3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 2px #000;
}
.pslot.empty .chip-add {
  width: 46px; height: 46px; border-radius: 50%; border: 2px dashed rgba(255,255,255,.6);
  display: flex; align-items: center; justify-content: center; margin: 0 auto;
  font-size: 22px; color: #fff; background: rgba(0,0,0,.3); animation: pulse 1.5s infinite;
}
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(255,255,255,.08); } }
.pslot.draggable { cursor: grab; touch-action: none; }
.pslot.draggable:active { cursor: grabbing; z-index: 5; }
.bench-add {
  width: 26px; height: 26px; border-radius: 50%; border: 2px dashed var(--neon);
  display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 900;
  color: var(--neon); flex-shrink: 0;
}
.formation-bar { display: flex; gap: 8px; margin-bottom: 12px; align-items: center; }
.formation-bar select { flex: 1; font-weight: 800; }
.save-hint { font-size: 12px; color: var(--neon); font-weight: 700; text-align: center; margin: 6px 0; min-height: 16px; }

/* Filas de jugador (banco / picker) */
.player-row {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px;
  background: rgba(19, 26, 36, .85); border: 1px solid var(--border); border-radius: 14px; margin-bottom: 8px;
  transition: transform .1s; cursor: pointer;
}
.player-row:active { transform: scale(.98); }
.player-row .ovr {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 17px; color: #fff; border: 2px solid;
}
.player-row .avatar { flex-shrink: 0; border-radius: 50%; overflow: hidden; background: #0b0f15; border: 1px solid var(--border); width: 40px; height: 40px; }
.player-row .pinfo { flex: 1; min-width: 0; }
.player-row .pinfo b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-row .in-field { font-size: 10px; font-weight: 800; color: var(--neon); border: 1px solid rgba(74,222,128,.4); padding: 3px 8px; border-radius: 8px; flex-shrink: 0; }
.group-title { margin: 16px 0 8px; font-size: 12px; color: var(--muted); font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px; display: flex; align-items: center; gap: 8px; }
.group-title::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* ---------- CARTA GRANDE (estilo FUT) ---------- */
.card-stage { position: relative; padding: 8px 0; }
.card-rays {
  position: absolute; inset: -40% -20%; z-index: 0; pointer-events: none; opacity: 0;
  background: conic-gradient(from 0deg, transparent 0 20deg, rgba(251,191,36,.16) 20deg 30deg, transparent 30deg 50deg, rgba(251,191,36,.16) 50deg 60deg, transparent 60deg 80deg, rgba(251,191,36,.16) 80deg 90deg, transparent 90deg 110deg, rgba(251,191,36,.16) 110deg 120deg, transparent 120deg 140deg, rgba(251,191,36,.16) 140deg 150deg, transparent 150deg 170deg, rgba(251,191,36,.16) 170deg 180deg, transparent 180deg 200deg, rgba(251,191,36,.16) 200deg 210deg, transparent 210deg 230deg, rgba(251,191,36,.16) 230deg 240deg, transparent 240deg 260deg, rgba(251,191,36,.16) 260deg 270deg, transparent 270deg 290deg, rgba(251,191,36,.16) 290deg 300deg, transparent 300deg 320deg, rgba(251,191,36,.16) 320deg 330deg, transparent 330deg 350deg, rgba(251,191,36,.16) 350deg 360deg);
  animation: spin 14s linear infinite;
}
.card-rays.on { opacity: 1; }
.card-rays.purple { filter: hue-rotate(230deg); }
@keyframes spin { to { transform: rotate(360deg); } }
.big-card {
  border-radius: 22px; padding: 22px 20px 18px; color: #fff; border: 3px solid;
  text-align: center; position: relative; overflow: hidden; z-index: 1;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255,255,255,.25);
}
.big-card::before {
  content: ''; position: absolute; top: -60%; left: -30%; width: 40%; height: 220%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.22), transparent);
  transform: rotate(12deg); animation: cardshine 3.6s infinite;
}
@keyframes cardshine { 0%, 55% { left: -40%; } 100% { left: 140%; } }
.big-card .bc-top { display: flex; align-items: center; justify-content: center; gap: 14px; }
.big-card .bc-ovr { font-size: 54px; font-weight: 900; line-height: 1; font-family: var(--display); text-shadow: 0 3px 10px rgba(0,0,0,.4); }
.big-card .bc-avatar { width: 84px; height: 84px; border-radius: 50%; background: rgba(0,0,0,.28); border: 2px solid rgba(255,255,255,.35); overflow: hidden; }
.big-card .bc-name { font-size: 21px; font-weight: 900; margin: 8px 0 2px; font-family: var(--display); letter-spacing: 1px; text-transform: uppercase; }
.big-card .bc-sub { font-size: 12px; opacity: .9; }
.big-card .bc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.big-card .bc-stats div { background: rgba(0, 0, 0, .3); border-radius: 12px; padding: 9px 4px; border: 1px solid rgba(255,255,255,.1); }
.big-card .bc-stats b { display: block; font-size: 20px; }
.big-card .bc-stats span { font-size: 9.5px; opacity: .85; text-transform: uppercase; letter-spacing: 1px; }
.big-card .rarity-banner { text-transform: uppercase; letter-spacing: 3px; font-size: 11px; font-weight: 900; opacity: .95; }

/* ---------- LIGA ---------- */
.ltable { width: 100%; border-collapse: collapse; font-size: 13px; }
.ltable th { color: var(--muted); font-size: 10.5px; text-align: center; padding: 6px 3px; font-weight: 700; text-transform: uppercase; }
.ltable td { padding: 7px 3px; text-align: center; border-top: 1px solid rgba(43, 54, 72, .5); }
.ltable td.tname { text-align: left; max-width: 128px; font-weight: 700; }
.ltable td.tname .tn { display: flex; align-items: center; gap: 6px; }
.ltable td.tname .tn span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ltable tr.me td { background: rgba(34, 197, 94, .13); }
.ltable tr.me td:first-child { border-radius: 10px 0 0 10px; } .ltable tr.me td:last-child { border-radius: 0 10px 10px 0; }
.ltable .pts { font-weight: 900; color: var(--neon); }
.pos-dot { display: inline-block; width: 20px; height: 20px; border-radius: 7px; font-size: 11px; font-weight: 900; line-height: 20px; background: var(--bg3); }
.pos-dot.p1 { background: linear-gradient(135deg, var(--gold), var(--gold2)); color: #201500; box-shadow: 0 0 10px rgba(251,191,36,.5); }
.pos-dot.p2 { background: #94a3b8; color: #111; } .pos-dot.p3 { background: #92400e; color: #fff; }

/* VS card */
.vs-card { display: flex; align-items: center; justify-content: space-around; gap: 8px; padding: 16px 4px; position: relative; }
.vs-card .side { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 40%; text-align: center; }
.vs-card .side b { font-size: 13px; line-height: 1.2; font-family: var(--display); letter-spacing: .5px; }
.vs-card .side .shield-svg { filter: drop-shadow(0 6px 12px rgba(0,0,0,.5)); }
.vs-card .vs {
  font-size: 30px; font-weight: 900; font-family: var(--display);
  background: linear-gradient(180deg, #fff, var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 8px rgba(251,191,36,.4));
}
.rating-pill { font-size: 11px; font-weight: 800; padding: 2px 10px; border-radius: 20px; background: rgba(0,0,0,.4); border: 1px solid var(--border); color: var(--neon); }
.fixture-round { margin-bottom: 4px; }
.fixture-match { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; font-size: 13px; border-bottom: 1px solid rgba(43,54,72,.5); gap: 8px; }
.fixture-match span { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fixture-match span:last-child { text-align: right; }
.fixture-match .fx-score { flex: 0 0 auto; font-weight: 900; background: var(--bg3); border-radius: 8px; padding: 2px 9px; text-align: center !important; }

/* ---------- PARTIDO EN VIVO ---------- */
/* Fondo del partido: poné assets/img/bg-match.jpg (tribuna/estadio) */
#live {
  position: fixed; inset: 0; z-index: 150; overflow-y: auto;
  background:
    linear-gradient(180deg, rgba(6, 9, 14, .82), rgba(6, 9, 14, .94)),
    url('../img/bg-match.jpg') center/cover no-repeat,
    radial-gradient(900px 500px at 50% 0%, #143a22, #06090e 70%);
  animation: fadein .3s;
}
.live-inner { max-width: 640px; margin: 0 auto; padding: 26px 16px 40px; }
.live-minute {
  text-align: center; font-family: var(--display); font-size: 15px; font-weight: 900;
  color: #06090e; background: var(--neon); border-radius: 20px; width: 64px; margin: 0 auto 14px;
  padding: 3px 0; box-shadow: 0 0 18px rgba(74, 222, 128, .55);
}
.live-board { display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.live-board .side { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1 1 0; min-width: 0; text-align: center; }
.live-board .side b { font-size: 12.5px; font-family: var(--display); letter-spacing: .5px; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-score {
  font-family: var(--display); font-size: 56px; font-weight: 900; letter-spacing: 2px; line-height: 1;
  text-shadow: 0 4px 18px rgba(0,0,0,.6); text-align: center; white-space: nowrap; flex-shrink: 0;
}
@media (max-width: 360px) { .live-score { font-size: 44px; } }
.goal-banner {
  margin: 10px auto 4px; text-align: center; font-family: var(--display); font-size: 30px; font-weight: 900;
  letter-spacing: 2px; text-transform: uppercase; color: var(--gold);
  text-shadow: 0 0 22px rgba(251, 191, 36, .7), 0 3px 6px rgba(0,0,0,.6);
  animation: goalpop .5s cubic-bezier(.2, 1.4, .4, 1); min-height: 38px;
}
@keyframes goalpop { from { transform: scale(.3); opacity: 0; } }

/* Mini-cancha animada del partido en vivo */
.live-pitch-wrap {
  position: relative; width: 100%; max-width: 205px; margin: 10px auto 0; border-radius: 16px;
  overflow: hidden; border: 1px solid var(--border); box-shadow: 0 10px 26px rgba(0,0,0,.45);
}
.live-pitch-wrap .pitch-bg { display: block; width: 100%; height: auto; }
.live-pitch-wrap.pf-flash::after {
  content: ''; position: absolute; inset: 0; z-index: 8; pointer-events: none;
  background: radial-gradient(circle, rgba(251, 191, 36, .55), transparent 68%);
  animation: pfflash .42s ease;
}
@keyframes pfflash { from { opacity: 1; } to { opacity: 0; } }
.live-pitch-dots { position: absolute; inset: 0; }
.live-pitch-dots canvas { display: block; }
.pf-dot {
  position: absolute; width: 9px; height: 9px; border-radius: 50%; transform: translate(-50%, -50%);
  box-shadow: 0 2px 5px rgba(0,0,0,.55); border: 1.5px solid rgba(255,255,255,.55); will-change: left, top;
}
.pf-dot.pf-gk { width: 12px; height: 12px; border: 2px solid var(--gold); z-index: 3; }
.pf-ball {
  position: absolute; width: 7px; height: 7px; border-radius: 50%; background: #fff; z-index: 5;
  box-shadow: 0 0 9px rgba(255,255,255,.85), 0 2px 3px rgba(0,0,0,.5); transform: translate(-50%, -50%);
  will-change: left, top;
}
.pf-icon { position: absolute; transform: translate(-50%, -50%); font-size: 17px; z-index: 6; animation: pficon 1s ease forwards; pointer-events: none; }
@keyframes pficon { 0% { opacity: 0; transform: translate(-50%, -70%) scale(.5); } 20% { opacity: 1; transform: translate(-50%, -50%) scale(1.2); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(1); } }

.poss-bar { display: flex; height: 7px; border-radius: 5px; overflow: hidden; margin: 10px auto 4px; max-width: 205px; background: var(--bg3); }
.poss-bar .poss-home { background: linear-gradient(90deg, var(--green2), var(--neon)); transition: width .7s ease; }
.poss-bar .poss-away { background: linear-gradient(90deg, #64748b, #94a3b8); transition: width .7s ease; }
.poss-labels { display: flex; justify-content: space-between; max-width: 205px; margin: 0 auto; font-size: 10.5px; color: var(--muted); font-weight: 700; gap: 8px; }
.poss-labels span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.poss-labels b { color: var(--text); }
.live-feed { margin-top: 16px; }
.live-feed .ev {
  display: flex; gap: 10px; padding: 9px 12px; font-size: 14px; align-items: center;
  background: rgba(19, 26, 36, .8); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 7px;
  animation: evin .3s;
}
@keyframes evin { from { opacity: 0; transform: translateX(-14px); } }
.live-feed .ev .min { color: var(--neon); font-weight: 900; width: 34px; flex-shrink: 0; text-align: right; font-family: var(--display); }
.live-skip { position: fixed; top: 14px; right: 14px; z-index: 160; }
.live-end { animation: fadein .4s; }
.reward-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; background: rgba(19,26,36,.85); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 7px; font-weight: 700; }
.reward-row .val { font-weight: 900; color: var(--gold); }
.improve-row {
  display: flex; justify-content: space-between; padding: 9px 13px; font-size: 14px; font-weight: 600;
  background: rgba(34, 197, 94, .12); border: 1px solid rgba(34,197,94,.45); border-radius: 12px; margin-bottom: 6px;
  animation: evin .3s;
}
.improve-row .up { color: var(--neon); font-weight: 900; }
.outcome-title { text-align: center; font-family: var(--display); font-size: 40px; letter-spacing: 2px; margin: 8px 0 2px; text-transform: uppercase; }
.outcome-victoria { color: var(--gold); text-shadow: 0 0 24px rgba(251,191,36,.6); }
.outcome-empate { color: #cbd5e1; }
.outcome-derrota { color: #94a3b8; }

/* ---------- SOBRES ---------- */
.pack-stage { position: relative; text-align: center; padding: 6px 0 2px; }
/* Arte del sobre: poné assets/img/pack.png y assets/img/pack-gold.png (PNG transparente vertical) */
.pack-img { max-width: 190px; max-height: 250px; display: block; margin: 0 auto; filter: drop-shadow(0 14px 30px rgba(0,0,0,.55)); position: relative; z-index: 1; }
.pack-visual {
  width: 165px; height: 220px; margin: 8px auto; border-radius: 18px; position: relative; z-index: 1; overflow: hidden;
  background: linear-gradient(155deg, #22c55e, #0b4f26 60%, #16813c); border: 2px solid var(--neon);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  font-weight: 900; color: #fff; font-size: 15px; font-family: var(--display); letter-spacing: 1.5px;
  box-shadow: 0 14px 38px rgba(34, 197, 94, .4), inset 0 1px 0 rgba(255,255,255,.35);
}
.pack-visual::before { content: ''; position: absolute; top: -60%; left: -30%; width: 40%; height: 220%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.28), transparent); transform: rotate(12deg); animation: cardshine 3s infinite; }
.pack-visual.gold { background: linear-gradient(155deg, var(--gold), #7a5305 60%, #c98d0d); border-color: var(--gold); box-shadow: 0 14px 38px rgba(251, 191, 36, .4), inset 0 1px 0 rgba(255,255,255,.5); }
.pack-visual .pv-ball { font-size: 52px; filter: drop-shadow(0 4px 8px rgba(0,0,0,.4)); }
.pack-stage.shaking .pack-visual, .pack-stage.shaking .pack-img { animation: shake .55s; }
@keyframes shake {
  0%, 100% { transform: rotate(0); } 15% { transform: rotate(-7deg) scale(1.04); } 30% { transform: rotate(7deg) scale(1.07); }
  45% { transform: rotate(-6deg) scale(1.1); } 60% { transform: rotate(6deg) scale(1.13); } 80% { transform: rotate(-3deg) scale(1.16); }
}
.odds-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 13px; font-weight: 700; }
.odds-bar .track { flex: 1; height: 8px; border-radius: 4px; background: var(--bg3); overflow: hidden; }
.odds-bar .fill { height: 100%; border-radius: 4px; }

/* Revelado de cartas: overlay */
#reveal {
  position: fixed; inset: 0; z-index: 150; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(700px 500px at 50% 40%, #182335, #05070b 80%); animation: fadein .3s; padding: 18px; overflow: hidden;
}
#reveal .reveal-card { width: min(320px, 86vw); position: relative; z-index: 2; animation: cardin .45s cubic-bezier(.2, 1.3, .4, 1); }
@keyframes cardin { from { transform: translateY(60px) scale(.6); opacity: 0; } }
#reveal .reveal-count { position: absolute; top: 18px; left: 0; right: 0; text-align: center; color: var(--muted); font-weight: 800; letter-spacing: 2px; }
#reveal .tap-hint { margin-top: 18px; color: var(--muted); font-weight: 700; animation: pulse2 1.4s infinite; z-index: 2; }
@keyframes pulse2 { 50% { opacity: .4; } }
/* Pantalla completa de celebración: subir de nivel, ascenso, etc. */
#celebration {
  position: fixed; inset: 0; z-index: 220; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(700px 500px at 50% 40%, #1c2436, #05070b 85%); animation: fadein .3s; padding: 18px;
}
.celeb-card { text-align: center; max-width: 380px; width: 100%; animation: celebPop .5s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes celebPop { from { transform: scale(.4) rotate(-6deg); opacity: 0; } }
.celeb-icon { font-size: 64px; animation: floaty 1.6s ease-in-out infinite alternate; filter: drop-shadow(0 8px 16px rgba(0,0,0,.5)); }
.celeb-big {
  font-family: var(--display); font-size: 44px; font-weight: 900; letter-spacing: 1px; margin: 4px 0;
  color: var(--accent, var(--gold)); text-shadow: 0 0 26px var(--accent, var(--gold)), 0 4px 8px rgba(0,0,0,.5);
}
.celeb-title { font-family: var(--display); font-size: 24px; margin-top: 6px; letter-spacing: .5px; }
.celeb-sub { color: var(--muted); margin-top: 6px; font-size: 14px; }
.celeb-card .tap-hint { margin-top: 22px; color: var(--muted); font-weight: 700; animation: pulse2 1.4s infinite; }

/* Frase de un jugador en particular al terminar el partido */
.locker-quote {
  display: flex; align-items: flex-start; gap: 10px; text-align: left; margin: 4px 0 16px;
  background: rgba(29,39,51,.7); border: 1px solid var(--border); border-radius: 14px; padding: 10px 12px;
  animation: cardin .4s .15s cubic-bezier(.2, 1.3, .4, 1) both;
}
.lq-avatar { flex-shrink: 0; border-radius: 50%; overflow: hidden; background: #0b0f15; border: 2px solid var(--border); }
.lq-bubble { flex: 1; min-width: 0; }
.lq-bubble b { display: block; font-size: 13px; margin-bottom: 2px; }
.lq-bubble p { font-size: 13.5px; font-style: italic; color: var(--text); line-height: 1.35; }
.locker-quote.mood-happy { border-color: rgba(74,222,128,.4); }
.locker-quote.mood-happy .lq-avatar { border-color: var(--neon); }
.locker-quote.mood-sad { border-color: rgba(239,68,68,.3); }
.locker-quote.mood-sad .lq-bubble p { color: var(--muted); }

/* Charla de consejo con un jugador, al volver a la pantalla principal después del partido */
#training-advice {
  position: fixed; inset: 0; z-index: 210; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(700px 560px at 50% 30%, #1a2a22, #05070b 85%); animation: fadein .3s; padding: 18px;
}
.ta-card {
  width: 100%; max-width: 380px; text-align: center; background: linear-gradient(180deg, rgba(19,26,36,.95), rgba(15,20,28,.92));
  border: 1px solid var(--border); border-radius: 22px; padding: 24px 20px; box-shadow: 0 20px 50px rgba(0,0,0,.5);
  animation: celebPop .45s cubic-bezier(.2, 1.4, .4, 1);
}
.ta-avatar {
  width: 76px; height: 76px; margin: 0 auto 10px; border-radius: 50%; overflow: hidden;
  border: 3px solid var(--neon); box-shadow: 0 0 22px rgba(74,222,128,.5); animation: floaty 2.2s ease-in-out infinite alternate;
}
.ta-name { font-family: var(--display); font-size: 19px; letter-spacing: .3px; }
.ta-role { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.ta-bubble {
  position: relative; margin: 16px 0 14px; padding: 12px 16px; background: rgba(74,222,128,.1);
  border: 1px solid rgba(74,222,128,.35); border-radius: 14px; font-style: italic; font-size: 14.5px; line-height: 1.4;
}
.ta-bubble::after {
  content: ''; position: absolute; left: 50%; top: 100%; transform: translateX(-50%);
  border: 8px solid transparent; border-top-color: rgba(74,222,128,.35);
}
.ta-options { display: flex; flex-direction: column; gap: 8px; }
.ta-options .decision-opt { margin-bottom: 0; text-align: center; justify-content: center; }
.ta-confirm { font-family: var(--display); font-size: 20px; color: var(--neon); margin-top: 12px; text-shadow: 0 0 16px rgba(74,222,128,.5); }
.ta-confirm-sub { color: var(--muted); font-size: 13.5px; margin-top: 6px; }

.summary-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 10px; margin: 14px 0; }
.mini-card { border-radius: 14px; border: 2px solid; color: #fff; text-align: center; padding: 10px 4px; animation: cardin .4s; }
.mini-card .mc-ovr { font-size: 24px; font-weight: 900; font-family: var(--display); }
.mini-card .mc-name { font-size: 10.5px; font-weight: 700; line-height: 1.15; }
.mini-card .mc-rar { font-size: 8.5px; text-transform: uppercase; letter-spacing: 1px; opacity: .9; margin-top: 2px; }

/* Confetti */
#confetti { position: fixed; inset: 0; z-index: 250; pointer-events: none; }

/* Desktop */
@media (min-width: 700px) {
  body { font-size: 16px; }
  #app { padding-top: 24px; }
  .auth-hero { border-radius: 0 0 26px 26px; margin-top: 0; }
  .summary-grid { grid-template-columns: repeat(5, 1fr); }
}

/* ---------- Disponibilidad (lesión / suspensión) ---------- */
.status-badge { font-size: 9.5px; font-weight: 900; padding: 2px 6px; border-radius: 6px; letter-spacing: .5px; }
.status-injured { background: rgba(239, 68, 68, .18); color: #fca5a5; border: 1px solid rgba(239,68,68,.4); }
.status-suspended { background: rgba(251, 191, 36, .18); color: var(--gold); border: 1px solid rgba(251,191,36,.4); }
.player-row.unavailable { opacity: .55; }
.pslot.unavailable .chip { filter: grayscale(1) brightness(.7); }

/* ---------- Decisión en vivo (sustituciones / táctica) ---------- */
#live-decision {
  position: fixed; inset: 0; z-index: 170; display: flex; align-items: flex-end; justify-content: center;
  background: rgba(4,6,10,.82); backdrop-filter: blur(3px); animation: fadein .25s;
}
.decision-card {
  background: linear-gradient(180deg, #182230, #10161f); border: 1px solid var(--border); border-bottom: none;
  border-radius: 22px 22px 0 0; padding: 22px 18px; width: 100%; max-width: 640px; max-height: 86vh; overflow-y: auto;
  animation: slideup .3s cubic-bezier(.2,.9,.3,1.1); padding-bottom: calc(22px + env(safe-area-inset-bottom));
}
.decision-header { text-align: center; margin-bottom: 14px; }
.decision-header .dh-min { display: inline-block; background: var(--red); color: #fff; font-weight: 900; font-size: 12px;
  padding: 3px 12px; border-radius: 14px; margin-bottom: 8px; }
.decision-header h3 { font-family: var(--display); font-size: 22px; letter-spacing: .5px; }
.decision-header p { color: var(--muted); font-size: 13px; margin-top: 4px; }
.decision-opt {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%;
  padding: 14px 16px; margin-bottom: 10px; border-radius: 14px; background: rgba(29,39,51,.85);
  border: 1px solid var(--border); text-align: left; transition: transform .1s, border-color .2s;
}
.decision-opt:active { transform: scale(.98); }
.decision-opt b { display: block; font-size: 15px; }
.decision-opt span.d { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.decision-opt.primary { border-color: var(--green2); background: rgba(34,197,94,.12); }
.bench-pick { display: flex; align-items: center; gap: 10px; padding: 11px 14px; margin-bottom: 8px;
  border-radius: 14px; background: rgba(29,39,51,.85); border: 1px solid var(--border); }
.bench-pick .ovr { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 14px; color: #fff; border: 2px solid; flex-shrink: 0; }
.bench-pick .pinfo { flex: 1; min-width: 0; }
.bench-pick .pinfo b { display: block; font-size: 14px; }
.bench-pick .status-badge { flex-shrink: 0; white-space: nowrap; }

/* ---------- Previa del partido ---------- */
.preview-team-head { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 8px; }
.preview-team-head b { font-family: var(--display); font-size: 15px; letter-spacing: .3px; }
.preview-team-head.mine b { color: var(--neon); }
.preview-team-head.opp b { color: var(--red); }
.preview-vs-divider {
  display: flex; align-items: center; gap: 10px; margin: 4px 0 14px; color: var(--muted);
  font-family: var(--display); font-size: 13px; letter-spacing: 1px;
}
.preview-vs-divider::before, .preview-vs-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.pitch-wrap.mini { max-width: 280px; margin: 0 auto 10px; }
.pitch-wrap.readonly .pslot { cursor: default; }
.pitch-wrap.readonly .pslot:active { transform: translate(-50%, -50%); }
.pitch-wrap.readonly .pslot .chip-ovr { border-color: rgba(239,68,68,.7) !important; }
.mentality-grid .decision-opt { display: flex; align-items: center; gap: 12px; }
.mentality-grid .decision-opt b { font-size: 14px; }
.mentality-opt-icon { font-size: 22px; flex-shrink: 0; }
.preview-confirm-wrap { position: sticky; bottom: 0; padding: 14px 0 calc(10px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, transparent, var(--bg) 30%); margin-top: 4px; }

/* ---------- Mercado ---------- */
.market-card { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: rgba(19,26,36,.85);
  border: 1px solid var(--border); border-radius: 14px; margin-bottom: 8px; }
.market-card .ovr { width: 42px; height: 42px; border-radius: 11px; display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 16px; color: #fff; border: 2px solid; flex-shrink: 0; }
.market-card .pinfo { flex: 1; min-width: 0; }
.market-card .pinfo b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.market-card .price { font-weight: 900; color: var(--gold); font-size: 14px; white-space: nowrap; flex-shrink: 0; }
.market-card .buy-btn { flex-shrink: 0; }

/* ---------- Sponsors ---------- */
.sponsor-card { padding: 14px; border-radius: 16px; background: rgba(19,26,36,.85); border: 1.5px solid var(--border);
  margin-bottom: 10px; cursor: pointer; transition: border-color .2s, background .2s; }
.sponsor-card.active { border-color: var(--gold); background: rgba(251,191,36,.1); }
.sponsor-card .sp-top { display: flex; justify-content: space-between; align-items: center; }
.sponsor-card .sp-top b { font-size: 15px; font-family: var(--display); letter-spacing: .3px; }
.sponsor-card .sp-base { font-weight: 900; color: var(--neon); font-size: 13px; }
.sponsor-card p { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.sponsor-card .sp-bonus { display: inline-block; margin-top: 6px; font-size: 11px; font-weight: 800; color: var(--gold);
  background: rgba(251,191,36,.12); border: 1px solid rgba(251,191,36,.3); padding: 2px 9px; border-radius: 10px; }
.sponsor-card .sp-active-tag { font-size: 10.5px; font-weight: 900; color: var(--gold); }

/* Boosters (Club) */
.booster-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 11px 4px; border-bottom: 1px solid var(--border);
}
.booster-row:last-child { border-bottom: none; }
.booster-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.booster-info b { font-size: 13.5px; }
.booster-info .muted { font-size: 11.5px; }
.booster-row .btn { width: auto; flex-shrink: 0; padding: 9px 14px; font-size: 12.5px; }

/* Pase de temporada (battle pass) */
.bp-level-badge {
  display: inline-block; font-family: var(--display); font-size: 16px; letter-spacing: 1px;
  background: linear-gradient(135deg, var(--gold2), var(--gold)); color: #201500; padding: 6px 18px;
  border-radius: 20px; box-shadow: 0 6px 16px rgba(251,191,36,.35); margin: 6px 0 10px;
}
.bp-progress-track { width: 100%; max-width: 280px; height: 10px; border-radius: 6px; background: var(--bg3); margin: 0 auto; overflow: hidden; }
.bp-progress-fill { height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--green), var(--neon)); transition: width .4s; }
.bp-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.bp-row:last-child { border-bottom: none; }
.bp-row.locked { opacity: .5; }
.bp-lv-num {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 12.5px; background: var(--bg3); border: 1.5px solid var(--border);
}
.bp-row.reached .bp-lv-num { border-color: var(--neon); color: var(--neon); }
.bp-lv-track { flex: 1; display: flex; gap: 8px; min-width: 0; }
.bp-lv-col { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 6px 8px; border-radius: 10px; background: rgba(19,26,36,.6); }
.bp-lv-col.premium { background: rgba(251,191,36,.08); border: 1px solid rgba(251,191,36,.2); }
.bp-lv-col.premium.locked { background: rgba(19,26,36,.4); border-color: var(--border); }
.rc-chip { font-size: 10px; font-weight: 800; background: rgba(255,255,255,.06); border: 1px solid var(--border); padding: 2px 7px; border-radius: 8px; white-space: nowrap; }
.rc-chip.rc-legendary { color: var(--gold); border-color: rgba(251,191,36,.4); background: rgba(251,191,36,.1); }
.bp-claimed { font-size: 15px; }
.bp-lv-col .btn { width: auto; padding: 5px 10px; font-size: 10.5px; }

/* ---------- Amistoso ---------- */
.rating-slider { width: 100%; margin: 14px 0 4px; accent-color: var(--green2); height: 6px; }
.rating-slider-val { text-align: center; font-family: var(--display); font-size: 30px; color: var(--neon); }

/* ---------- Botón de sonido ---------- */
#sound-toggle {
  position: fixed; top: 12px; right: 12px; z-index: 300;
  width: 38px; height: 38px; border-radius: 50%; font-size: 16px;
  background: rgba(13, 18, 26, .75); border: 1px solid var(--border); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding-top: env(safe-area-inset-top);
}
#sound-toggle.muted { opacity: .55; }

/* ---------- Notificaciones ---------- */
#notif-bell {
  position: fixed; top: 12px; right: 58px; z-index: 300;
  width: 38px; height: 38px; border-radius: 50%; font-size: 15px;
  background: rgba(13, 18, 26, .75); border: 1px solid var(--border); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; position: fixed;
  padding-top: env(safe-area-inset-top);
}
#notif-dot {
  position: absolute; top: 4px; right: 4px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--red); border: 1.5px solid var(--bg); box-shadow: 0 0 6px rgba(239,68,68,.7);
  animation: notifPulse 1.6s ease-in-out infinite;
}
@keyframes notifPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.3); box-shadow: 0 0 10px rgba(239,68,68,.9); } }
.notif-row {
  display: flex; gap: 10px; align-items: flex-start; padding: 11px 12px; border-radius: 12px;
  background: rgba(19,26,36,.85); border: 1px solid var(--border); margin-bottom: 7px; font-size: 13.5px;
}
.notif-row.unread { border-color: rgba(251,191,36,.4); background: rgba(251,191,36,.08); }
.notif-row .nr-time { font-size: 10.5px; color: var(--muted); white-space: nowrap; flex-shrink: 0; }

/* ---------- Energía ---------- */
.energy-bar { width: 34px; height: 4px; border-radius: 3px; background: var(--bg3); overflow: hidden; margin-top: 3px; }
.energy-bar .fill { height: 100%; border-radius: 3px; }
.status-tired { background: rgba(251, 146, 60, .18); color: #fdba74; border: 1px solid rgba(251,146,60,.4); }

/* ---------- Referidos / desafío por link ---------- */
.link-box {
  display: flex; align-items: center; gap: 8px; background: var(--bg3); border: 1px solid var(--border);
  border-radius: 12px; padding: 10px 12px; font-size: 12.5px; font-family: monospace; overflow: hidden;
}
.link-box span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Copa (bracket) ---------- */
.bracket-round { margin-bottom: 14px; }
.bracket-round h4 { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.bracket-match {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px;
  background: rgba(19,26,36,.85); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 8px; font-size: 13px;
}
.bracket-match .bm-side { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0; }
.bracket-match .bm-side span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bracket-match .bm-side.winner { font-weight: 800; color: var(--neon); }
.bracket-match .bm-score { font-weight: 900; flex-shrink: 0; background: var(--bg3); border-radius: 8px; padding: 2px 8px; }
