/* ============ Fuentes locales (funcionan sin internet) ============ */
@font-face { font-family: 'Oswald'; font-weight: 400; font-display: swap; src: url(/fonts/oswald-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Oswald'; font-weight: 600; font-display: swap; src: url(/fonts/oswald-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Oswald'; font-weight: 700; font-display: swap; src: url(/fonts/oswald-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 400; font-display: swap; src: url(/fonts/inter-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 500; font-display: swap; src: url(/fonts/inter-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 600; font-display: swap; src: url(/fonts/inter-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 700; font-display: swap; src: url(/fonts/inter-latin-700-normal.woff2) format('woff2'); }

/* ============ Tokens ============ */
:root {
  --bg: #0a0a0b; --bg2: #101012; --card: #15161a; --card2: #1b1c21; --line: #2a2c33; --line2: #3a3d46;
  --text: #f4f1e8; --muted: #a09f97; --faint: #6d6c66;
  --gold: #f2b705; --gold2: #d9a300; --gold-ink: #1a1400; --gold-soft: rgba(242,183,5,.12); --gold-line: rgba(242,183,5,.35);
  --ok: #38d39f; --ok-soft: rgba(56,211,159,.14); --danger: #ff5d5d; --danger-soft: rgba(255,93,93,.14); --live: #ff3b3b; --info: #6ab0ff;
  --shadow: 0 10px 30px rgba(0,0,0,.45);
  --radius: 14px; --radius-sm: 9px;
  --font-display: 'Oswald', 'Arial Narrow', Impact, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}
:root[data-tema="claro"] {
  --bg: #f5f3ec; --bg2: #efece3; --card: #ffffff; --card2: #f7f5ee; --line: #e2ddd0; --line2: #cfc9b8;
  --text: #17171a; --muted: #62615a; --faint: #8f8e86;
  --gold: #a77800; --gold2: #8c6400; --gold-ink: #fff; --gold-soft: rgba(167,120,0,.1); --gold-line: rgba(167,120,0,.4);
  --ok: #0d8a63; --ok-soft: rgba(13,138,99,.12); --danger: #c42b2b; --danger-soft: rgba(196,43,43,.1); --live: #d92020; --info: #1a68c9;
  --shadow: 0 8px 24px rgba(60,50,20,.12);
  color-scheme: light;
}

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 15px; line-height: 1.5;
  min-height: 100vh; -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(1200px 500px at 50% -200px, var(--gold-soft), transparent 70%);
  background-repeat: no-repeat;
}
body.sin-scroll { overflow: hidden; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; margin: 0 0 .4em; line-height: 1.15; }
h1 { font-size: clamp(1.7rem, 4vw + .6rem, 3rem); } h2 { font-size: clamp(1.25rem, 2vw + .6rem, 1.7rem); } h3 { font-size: 1.1rem; } h4 { font-size: .95rem; }
p { margin: 0 0 .8em; } a { color: var(--gold); text-decoration: none; } a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
.oculto { display: none !important; }
.muted { color: var(--muted); } .faint { color: var(--faint); } .gold { color: var(--gold); }
.small { font-size: .82rem; } .center { text-align: center; } .num { font-variant-numeric: tabular-nums; }
.stack > * + * { margin-top: 14px; } .stack-lg > * + * { margin-top: 26px; }
.fila { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; } .fila.nowrap { flex-wrap: nowrap; }
.espacio { flex: 1; }
.grid { display: grid; gap: 14px; } .g2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); } .g3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); } .g4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); }

/* ============ Cabecera ============ */
.topbar { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.topbar::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: .7; }
.topbar-in { max-width: 1240px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 14px; }
.marca { display: flex; align-items: center; gap: 12px; color: var(--text); min-width: 0; }
.marca:hover { text-decoration: none; }
.marca img { width: 44px; height: 44px; border-radius: 50%; flex: none; box-shadow: 0 0 0 2px var(--gold-line); }
.marca b { display: block; font-family: var(--font-display); letter-spacing: .1em; font-size: 1.1rem; line-height: 1; text-transform: uppercase; }
.marca span { display: block; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-top: 3px; white-space: nowrap; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a, .nav button.nav-btn { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 999px; color: var(--muted); font-weight: 500; font-size: .9rem; background: none; border: 0; }
.nav a:hover, .nav button.nav-btn:hover { color: var(--text); background: var(--card); text-decoration: none; }
.nav a.activo { color: var(--gold-ink); background: var(--gold); }
.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--card); border: 1px solid var(--line); color: var(--text); }
.icon-btn:hover { border-color: var(--gold-line); color: var(--gold); }
.menu-btn { display: none; }
@media (max-width: 860px) {
  .menu-btn { display: inline-grid; margin-left: auto; }
  .nav { position: fixed; inset: 64px 0 auto 0; flex-direction: column; align-items: stretch; background: var(--bg); padding: 12px 16px 18px; border-bottom: 1px solid var(--line); gap: 6px; transform: translateY(-130%); transition: transform .25s; margin: 0; z-index: 39; }
  .nav.abierto { transform: none; box-shadow: var(--shadow); }
  .nav a, .nav button.nav-btn { padding: 12px 14px; border-radius: 12px; background: var(--card); }
  .marca span { display: none; }
}

/* ============ Contenedores ============ */
main { max-width: 1240px; margin: 0 auto; padding: 22px 16px 90px; }
.seccion { margin-top: 34px; }
.seccion-cab { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.seccion-cab h2 { margin: 0; }
.seccion-cab h2::before { content: ''; display: inline-block; width: 22px; height: 3px; background: var(--gold); margin-right: 10px; vertical-align: middle; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; position: relative; }
.card.oro { border-color: var(--gold-line); background: linear-gradient(180deg, var(--gold-soft), transparent 60%), var(--card); }
.card.click { transition: transform .15s, border-color .15s; cursor: pointer; display: block; color: inherit; }
.card.click:hover { transform: translateY(-2px); border-color: var(--gold-line); text-decoration: none; }
.vacio { text-align: center; padding: 34px 16px; color: var(--muted); border: 1px dashed var(--line2); border-radius: var(--radius); }

/* ============ Héroe ============ */
.heroe { position: relative; overflow: hidden; border-radius: 22px; border: 1px solid var(--gold-line); padding: clamp(22px, 5vw, 48px); background:
  linear-gradient(115deg, rgba(10,10,11,.92) 30%, rgba(10,10,11,.55)), repeating-linear-gradient(135deg, #16130a 0 14px, #100e07 14px 28px); color: #f4f1e8; }
:root[data-tema="claro"] .heroe { background: linear-gradient(115deg, #17140a 35%, #2b2410), #17140a; }
.heroe::after { content: ''; position: absolute; right: -60px; top: -60px; width: 340px; height: 340px; border-radius: 50%; border: 2px solid var(--gold-line); box-shadow: 0 0 0 26px rgba(242,183,5,.05), 0 0 0 54px rgba(242,183,5,.03); pointer-events: none; }
.heroe-in { position: relative; z-index: 1; display: flex; align-items: center; gap: clamp(16px, 4vw, 40px); flex-wrap: wrap; }
.heroe img { width: clamp(84px, 16vw, 150px); border-radius: 50%; filter: drop-shadow(0 8px 24px rgba(0,0,0,.6)); }
.heroe .sup { color: var(--gold); letter-spacing: .3em; font-size: .78rem; text-transform: uppercase; font-weight: 600; margin-bottom: 8px; }
.heroe h1 { margin: 0 0 6px; color: #fff; } .heroe h1 em { font-style: normal; color: var(--gold); }
.heroe p { color: #cbc7b8; max-width: 52ch; margin: 0; }
.stats { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.stat { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 12px; padding: 10px 16px; min-width: 96px; }
.stat b { font-family: var(--font-display); font-size: 1.7rem; color: var(--gold); display: block; line-height: 1.1; }
.stat span { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: #cbc7b8; }

/* ============ Chips / insignias ============ */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; background: var(--card2); border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.chip.oro { background: var(--gold-soft); border-color: var(--gold-line); color: var(--gold); }
.chip.ok { background: var(--ok-soft); border-color: transparent; color: var(--ok); }
.chip.malo { background: var(--danger-soft); border-color: transparent; color: var(--danger); }
.chip.estado-en_vivo { background: var(--danger-soft); border-color: transparent; color: var(--live); }
.chip.estado-finalizado { background: var(--ok-soft); border-color: transparent; color: var(--ok); }
.punto-vivo { width: 8px; height: 8px; border-radius: 50%; background: var(--live); animation: pulso 1.2s infinite; }
@keyframes pulso { 0% { box-shadow: 0 0 0 0 rgba(255,59,59,.6); } 100% { box-shadow: 0 0 0 9px rgba(255,59,59,0); } }
.filtros { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.filtro { flex: none; padding: 8px 15px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--muted); font-weight: 500; font-size: .88rem; display: inline-flex; gap: 7px; align-items: center; }
.filtro:hover { border-color: var(--gold-line); color: var(--text); }
.filtro.activo { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); font-weight: 600; }

/* ============ Botones y formularios ============ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 11px; border: 1px solid var(--line2); background: var(--card2); color: var(--text); font-weight: 600; min-height: 42px; transition: filter .15s, transform .05s, border-color .15s; text-decoration: none; }
.btn:hover { border-color: var(--gold-line); text-decoration: none; } .btn:active { transform: scale(.98); }
.btn.primary { background: linear-gradient(180deg, var(--gold), var(--gold2)); border-color: transparent; color: var(--gold-ink); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; }
.btn.danger { background: var(--danger); border-color: transparent; color: #fff; }
.btn.ok { background: var(--ok); border-color: transparent; color: #04140e; }
.btn.chico { padding: 6px 12px; min-height: 34px; font-size: .85rem; border-radius: 9px; }
.btn.grande { min-height: 56px; font-size: 1.05rem; border-radius: 14px; }
.btn[disabled] { opacity: .45; pointer-events: none; }
label.campo { display: block; font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
label.campo > :is(input, select, textarea) { display: block; width: 100%; margin-top: 6px; text-transform: none; letter-spacing: normal; font-weight: 400; }
input, select, textarea { background: var(--bg2); border: 1px solid var(--line2); border-radius: 10px; padding: 10px 12px; min-height: 42px; color: var(--text); width: 100%; }
input::placeholder { color: var(--faint); }
input:focus, select:focus, textarea:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px var(--gold-soft); }
input[type=checkbox], input[type=radio] { width: 20px; height: 20px; min-height: 0; accent-color: var(--gold); padding: 0; }
.check { display: flex; align-items: center; gap: 10px; cursor: pointer; }
textarea { min-height: 100px; resize: vertical; }
.form-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.error-msg { background: var(--danger-soft); color: var(--danger); border-radius: 10px; padding: 10px 12px; font-size: .9rem; }
.aviso { background: var(--gold-soft); border: 1px solid var(--gold-line); color: var(--text); border-radius: 12px; padding: 12px 14px; font-size: .9rem; }
.aviso.malo { background: var(--danger-soft); border-color: transparent; }
.aviso.ok { background: var(--ok-soft); border-color: transparent; }

/* ============ Tablas ============ */
.tabla-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th { text-align: left; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 11px 14px; border-bottom: 1px solid var(--line); background: var(--card2); white-space: nowrap; }
td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; } tbody tr:hover td { background: var(--gold-soft); }
td.der, th.der { text-align: right; } td.c, th.c { text-align: center; }
.pos { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--card2); border: 1px solid var(--line2); font-family: var(--font-display); font-size: .9rem; }
.pos.p1 { background: linear-gradient(135deg, #ffd95a, #d69c00); color: #201700; border: 0; } .pos.p2 { background: linear-gradient(135deg, #e8eaee, #9ea3ab); color: #17181b; border: 0; } .pos.p3 { background: linear-gradient(135deg, #e5a26a, #a4622a); color: #1d0e00; border: 0; }
.dq { color: var(--danger); font-weight: 600; text-decoration: line-through; }
.tiempo { font-family: var(--font-display); font-size: 1.05rem; letter-spacing: .04em; color: var(--gold); }

/* ============ Tarjeta de partido ============ */
.partido { display: block; color: inherit; }
.partido:hover { text-decoration: none; }
.partido .meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; font-size: .78rem; color: var(--muted); }
.partido .equipos { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; }
.equipo-nombre { font-weight: 600; line-height: 1.2; } .equipo-nombre.der { text-align: right; }
.equipo-nombre.gana { color: var(--gold); }
.marcador-mini { font-family: var(--font-display); font-size: 1.9rem; letter-spacing: .06em; padding: 4px 14px; background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; min-width: 96px; text-align: center; white-space: nowrap; }
.partido.vivo { border-color: rgba(255,59,59,.5); box-shadow: 0 0 0 1px rgba(255,59,59,.15), 0 0 30px rgba(255,59,59,.08); }
.vs { font-family: var(--font-display); color: var(--faint); letter-spacing: .1em; }

/* ============ Marcador grande ============ */
.marcador { background: linear-gradient(180deg, #111, #090909); color: #fff; border: 1px solid var(--gold-line); border-radius: 20px; padding: 20px 14px; position: relative; overflow: hidden; }
.marcador::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 39px, rgba(255,255,255,.02) 39px 40px); pointer-events: none; }
.marcador .grid-m { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; position: relative; }
.marcador .nom { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .06em; font-size: clamp(.95rem, 2.6vw, 1.5rem); text-align: center; line-height: 1.15; }
.marcador .pts { font-family: var(--font-display); font-size: clamp(3rem, 12vw, 6.4rem); font-weight: 700; color: var(--gold); line-height: 1; text-align: center; text-shadow: 0 0 30px rgba(242,183,5,.35); }
.marcador .sep { font-family: var(--font-display); color: #666; font-size: 2rem; }
.marcador .pie { text-align: center; margin-top: 10px; color: #b9b5a6; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; position: relative; }
.marcador .gana .nom { color: var(--gold); }
.sets-lista { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 10px; position: relative; }
.set-chip { background: rgba(255,255,255,.08); border-radius: 8px; padding: 3px 10px; font-family: var(--font-display); letter-spacing: .05em; font-size: .95rem; }

/* ============ Línea de tiempo ============ */
.linea { list-style: none; margin: 0; padding: 0; }
.linea li { display: grid; grid-template-columns: 62px 1fr auto; gap: 10px; align-items: center; padding: 10px 2px; border-bottom: 1px solid var(--line); }
.linea li:last-child { border-bottom: 0; }
.linea .hora { font-family: var(--font-display); color: var(--muted); font-size: .9rem; }
.linea .sc { font-family: var(--font-display); color: var(--gold); letter-spacing: .05em; }

/* ============ Modal ============ */
.modal-fondo { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.66); backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; padding: 16px; animation: fade .18s; }
.modal-fondo.out { opacity: 0; transition: opacity .18s; }
@keyframes fade { from { opacity: 0; } }
.modal { background: var(--card); border: 1px solid var(--line2); border-radius: 18px; width: 100%; max-height: 92vh; display: flex; flex-direction: column; box-shadow: var(--shadow); animation: sube .22s cubic-bezier(.2,.9,.3,1); }
@keyframes sube { from { transform: translateY(24px); opacity: 0; } }
.modal-cab { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 10px; border-bottom: 1px solid var(--line); }
.modal-cab h3 { margin: 0; color: var(--gold); }
.modal-cuerpo { padding: 16px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.modal-pie { padding: 12px 16px calc(12px + var(--safe-b)); border-top: 1px solid var(--line); display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.mensaje { margin: 0; }
@media (max-width: 640px) { .modal-fondo { align-items: flex-end; padding: 0; } .modal { border-radius: 20px 20px 0 0; max-height: 94vh; } }

/* ============ Toasts ============ */
#toasts { position: fixed; z-index: 200; left: 50%; bottom: calc(18px + var(--safe-b)); transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; width: min(92vw, 420px); pointer-events: none; }
.toast { background: var(--card2); border: 1px solid var(--line2); border-left: 4px solid var(--info); padding: 12px 14px; border-radius: 12px; box-shadow: var(--shadow); animation: sube .25s; font-size: .92rem; }
.toast.ok { border-left-color: var(--ok); } .toast.error { border-left-color: var(--danger); } .toast.aviso { border-left-color: var(--gold); }
.toast.out { opacity: 0; transition: opacity .3s; }

/* ============ Login ============ */
.login { max-width: 430px; margin: 6vh auto 0; text-align: center; }
.login .escudo { width: 124px; margin: 0 auto 14px; display: block; filter: drop-shadow(0 8px 24px rgba(0,0,0,.5)); }
.login .card { text-align: left; }
.login input.cedula { font-family: var(--font-display); font-size: 1.6rem; letter-spacing: .2em; text-align: center; min-height: 56px; }

/* ============ Estado de sincronización ============ */
.sync-barra { position: sticky; top: 64px; z-index: 30; display: flex; gap: 10px; align-items: center; padding: 8px 14px; border-radius: 12px; font-size: .85rem; font-weight: 500; border: 1px solid var(--line); background: var(--card); margin-bottom: 14px; }
.sync-barra.ok { border-color: transparent; background: var(--ok-soft); color: var(--ok); }
.sync-barra.off { border-color: var(--gold-line); background: var(--gold-soft); color: var(--gold); }
.sync-barra.pend { border-color: transparent; background: var(--danger-soft); color: var(--danger); }

/* ============ Panel del juez ============ */
.jz-equipo { display: grid; gap: 10px; }
.btn-anotar { min-height: 92px; font-size: 1.2rem; flex-direction: column; gap: 2px; font-family: var(--font-display); letter-spacing: .06em; text-transform: uppercase; }
.btn-anotar small { font-family: var(--font-body); font-size: .72rem; opacity: .75; letter-spacing: .04em; text-transform: none; font-weight: 500; }
.lista-sel { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); }
.opcion { text-align: left; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line2); background: var(--card2); display: flex; flex-direction: column; gap: 2px; font-weight: 600; }
.opcion small { font-weight: 400; color: var(--muted); font-size: .76rem; }
.opcion:hover { border-color: var(--gold); } .opcion.sel { background: var(--gold-soft); border-color: var(--gold); }
.opcion[disabled] { opacity: .35; }
.reloj { font-family: var(--font-display); font-size: clamp(2.6rem, 10vw, 4.4rem); letter-spacing: .06em; text-align: center; color: var(--gold); font-variant-numeric: tabular-nums; line-height: 1; }
.reloj-card { text-align: center; }
.contador { font-family: var(--font-display); font-size: 6rem; text-align: center; line-height: 1; color: var(--gold); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; margin-bottom: 18px; }
.tab { padding: 10px 16px; background: none; border: 0; border-bottom: 3px solid transparent; color: var(--muted); font-weight: 600; white-space: nowrap; }
.tab.activo { color: var(--gold); border-bottom-color: var(--gold); }

/* ============ Admin ============ */
.admin-layout { display: grid; grid-template-columns: 230px 1fr; gap: 22px; align-items: start; }
.admin-nav { position: sticky; top: 84px; display: grid; gap: 4px; }
.admin-nav a { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-radius: 11px; color: var(--muted); font-weight: 500; }
.admin-nav a:hover { background: var(--card); color: var(--text); text-decoration: none; }
.admin-nav a.activo { background: var(--gold-soft); color: var(--gold); border: 1px solid var(--gold-line); }
@media (max-width: 900px) { .admin-layout { grid-template-columns: 1fr; } .admin-nav { position: static; display: flex; overflow-x: auto; padding-bottom: 4px; } .admin-nav a { flex: none; } }
.kpi { display: flex; flex-direction: column; gap: 2px; }
.kpi b { font-family: var(--font-display); font-size: 2rem; color: var(--gold); line-height: 1; } .kpi span { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.barra { height: 8px; background: var(--card2); border-radius: 999px; overflow: hidden; } .barra > i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold2), var(--gold)); border-radius: 999px; }
.jugador { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 11px; background: var(--card2); }
.jugador .nom { flex: 1; min-width: 0; font-size: .9rem; font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
.sugerencias { display: grid; gap: 6px; max-height: 260px; overflow-y: auto; }
.mini-select { width: auto; min-height: 34px; padding: 4px 8px; font-size: .84rem; }
hr.sep { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }
.pie-pagina { text-align: center; color: var(--faint); font-size: .78rem; padding: 30px 16px; border-top: 1px solid var(--line); }
.cargando { display: grid; place-items: center; padding: 60px; color: var(--muted); }
.spinner { width: 34px; height: 34px; border: 3px solid var(--line2); border-top-color: var(--gold); border-radius: 50%; animation: gira .8s linear infinite; }
@keyframes gira { to { transform: rotate(360deg); } }
@media print { .topbar, .sync-barra, .btn, .nav { display: none !important; } body { background: #fff; color: #000; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
