@font-face { font-family: 'Anton'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fuentes/anton-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Anton'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fuentes/anton-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(../fuentes/inter-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(../fuentes/inter-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root { --fondo: #07060f; --panel: #12102a; --borde: rgba(255,255,255,.1); --oro: #ffd23f; --naranja: #ff5a1f; --texto: #ececf6; --gris: #a9a9c8; }
* { box-sizing: border-box; }
body { margin: 0; background: radial-gradient(circle at 50% 0, #1b1640, var(--fondo) 60%); color: var(--texto); font: 15px/1.45 Inter, system-ui, sans-serif; min-height: 100vh; padding: 0 16px 40px; }
body.demo::before { content: 'DEMO · DATOS INVENTADOS'; display: block; background: var(--oro); color: #000; text-align: center; font-weight: 800; padding: 6px; margin: 0 -16px; }
header { text-align: center; padding: 22px 0 8px; }
h1 { font: 400 clamp(44px, 9vw, 86px)/0.95 Anton, Impact, sans-serif; margin: 0; background: linear-gradient(#ffd23f, #ff5a1f); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: .5px; }
h1 span { display: block; background: linear-gradient(#fff, #ffe9a6); -webkit-background-clip: text; background-clip: text; }
.lema { color: var(--gris); max-width: 640px; margin: 10px auto 14px; }
.lema b { color: #fff; }
.cajas { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.cajas div { background: var(--panel); border: 1px solid var(--borde); border-radius: 16px; padding: 8px 18px; min-width: 120px; }
.cajas b { display: block; font: 34px Anton, Impact, sans-serif; color: var(--oro); }
.cajas span { font-size: 12px; text-transform: uppercase; color: var(--gris); font-weight: 700; }
main { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); gap: 22px; max-width: 1280px; margin: 18px auto 0; }
@media (max-width: 900px) { main { grid-template-columns: 1fr; } }
.lienzo { position: relative; }
#estadio { width: 100%; height: auto; display: block; border-radius: 22px; border: 1px solid var(--borde); }
#ficha { position: absolute; background: rgba(10,8,24,.95); border: 1px solid var(--borde); border-radius: 12px; padding: 10px 12px; font-size: 13px; pointer-events: none; width: 250px; box-shadow: 0 8px 30px rgba(0,0,0,.5); }
#ficha img { height: 14px; vertical-align: -2px; border-radius: 2px; }
.n { font: 22px Anton, Impact, sans-serif; color: var(--oro); }
.nota { color: var(--gris); font-size: 12.5px; }
aside h2 { font: 400 26px Anton, Impact, sans-serif; letter-spacing: .5px; margin: 18px 0 8px; }
aside h2:first-child { margin-top: 0; }
.duelo { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; background: var(--panel); border: 1px solid var(--borde); border-radius: 18px; padding: 14px; text-align: center; }
.duelo .lado { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.duelo .vs { font: 40px Anton, Impact, sans-serif; color: var(--oro); }
.duelo .tira { grid-column: 1 / -1; display: flex; height: 14px; border-radius: 7px; overflow: hidden; }
.duelo p { grid-column: 1 / -1; margin: 0; color: var(--gris); font-size: 13px; }
.filtros { display: flex; gap: 8px; margin-bottom: 8px; }
.filtros input, .filtros select { flex: 1; min-width: 0; background: var(--panel); color: var(--texto); border: 1px solid var(--borde); border-radius: 10px; padding: 8px 10px; font: inherit; }
.ranking { list-style: none; margin: 0; padding: 0; max-height: 520px; overflow: auto; }
.ranking li { display: flex; align-items: center; gap: 10px; padding: 6px 4px; border-bottom: 1px solid var(--borde); }
.ranking .pos { width: 30px; text-align: right; font: 20px Anton, Impact, sans-serif; color: var(--gris); }
.ranking .nom { flex: 1; min-width: 0; font-weight: 700; }
.ranking small { display: block; font-weight: 500; color: var(--gris); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.coronas { padding-left: 0; list-style: none; }
.coronas li { padding: 4px 0; }
.reglas { padding-left: 20px; }
.reglas li { margin-bottom: 6px; }

/* En directo (solo en la vista normal) */
.directo { display: inline-block; background: #e11d48; color: #fff; font: 800 12px/1 Inter, system-ui, sans-serif; letter-spacing: 1px; padding: 6px 10px; border-radius: 999px; margin-bottom: 10px; animation: latido 1.6s ease-in-out infinite; }
@keyframes latido { 50% { box-shadow: 0 0 0 6px rgba(225,29,72,.25); } }
.avisos { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); width: min(92vw, 440px); z-index: 10; pointer-events: none; }
.aviso { background: rgba(18,16,42,.97); border: 1px solid var(--oro); border-radius: 14px; padding: 12px 16px; text-align: center; box-shadow: 0 10px 34px rgba(0,0,0,.55); animation: entra .45s cubic-bezier(.2,1.4,.4,1) both; transition: opacity .45s, transform .45s; }
.aviso b { color: var(--oro); }
.aviso.fuera { opacity: 0; transform: translateY(14px); }
@keyframes entra { from { opacity: 0; transform: translateY(24px) scale(.9); } }
.ranking li.nuevo { animation: destello 2.6s ease-out; }
@keyframes destello { from { background: rgba(255,210,63,.28); } }
@media (prefers-reduced-motion: reduce) { .directo, .aviso, .ranking li.nuevo { animation: none; } }
