@charset "UTF-8";

:root {
  color-scheme: dark;
  --fondo: #06111d;
  --panel: #081b2c;
  --panel-alto: #102a40;
  --panel-hover: #17334b;
  --borde: #6c8296;
  --borde-suave: #2c4458;
  --texto: #f4f7fb;
  --secundario: #9eafbf;
  --amarillo: #ffd200;
  --amarillo-hover: #ffe14b;
  --azul: #00a7ff;
  --verde: #55d89a;
  --error: #ff9b98;
  --sombra: 0 12px 35px rgb(0 0 0 / 17%);
  --radio: 19px;
  --sidebar: 232px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

:root[data-tema="claro"] {
  color-scheme: light;
  --fondo: #eef3f7;
  --panel: #fff;
  --panel-alto: #f2f7fb;
  --panel-hover: #e5eef6;
  --borde: #b8cbd9;
  --borde-suave: #d9e4ec;
  --texto: #112b40;
  --secundario: #526b7f;
  --azul: #0073b9;
  --verde: #15774d;
  --error: #b5212d;
  --sombra: 0 12px 30px rgb(29 56 82 / 6%);
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body { margin: 0; background: var(--fondo); color: var(--texto); font-size: 14px; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
button:not(:disabled), select { cursor: pointer; }
button { border: 0; }
button:disabled { cursor: default; }
img { max-width: 100%; height: auto; }
svg { display: inline-block; vertical-align: middle; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.2; }
p { margin-bottom: 12px; }
ul, ol { padding: 0; margin: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--amarillo); outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; top: 12px; left: 12px; padding: 10px 17px; border-radius: 9px; background: var(--amarillo); color: #0a1520; font-size: 13px; font-weight: 750; transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }
.icon { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.muted { color: var(--secundario); }
.app-shell { min-height: 100svh; }

/* La navegación lateral se transforma en una barra inferior en móvil. */
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 30; width: var(--sidebar); display: flex; flex-direction: column; padding: 26px 16px 20px; background: linear-gradient(180deg, rgb(2 14 26 / 97%) 0%, rgb(2 14 26 / 95%) 53%, rgb(2 14 26 / 69%) 76%, rgb(2 14 26 / 36%) 100%), url("imagenes/poli-calle.webp") left bottom / cover; border-right: 1px solid #29445c; color: #f4f7fb; overflow-y: auto; }
.brand { display: block; padding: 0 3px; }
.brand:has(.brand-crest) { display: grid; grid-template-columns: 56px minmax(0, 1fr); align-items: center; gap: 7px 10px; }
.brand-crest { grid-column: 1; grid-row: 1; width: 56px; height: 74px; object-fit: contain; filter: drop-shadow(0 3px 5px rgb(0 0 0 / 45%)); }
.brand-lockup { display: contents; }
.brand-name { display: flex; flex-direction: column; width: fit-content; font-size: 35px; font-style: italic; font-weight: 950; line-height: .93; letter-spacing: -1.5px; transform: skew(-3deg); }
.brand > .brand-name, .brand-lockup > .brand-name { grid-column: 2; grid-row: 1; font-size: 32px; }
.brand-name span, .brand-name em, .brand-name strong { color: var(--amarillo); font-size: .72em; letter-spacing: -.6px; margin-top: 5px; font-weight: 900; }
.brand-kicker { display: block; grid-column: 1 / -1; margin: 9px 0 0; font-size: 8px; font-weight: 750; line-height: 1.8; letter-spacing: 1.7px; color: #e7edf3; }
.brand:has(.brand-crest) .brand-kicker { margin-top: 3px; text-align: center; }
.sidebar-nav { display: grid; gap: 6px; margin-top: 29px; }
.nav-link { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 11px 15px; border-radius: 12px; font-weight: 650; color: #b8c7d4; transition: background .16s ease, color .16s ease; }
a.nav-link:hover { background: #142d43; color: #fff; }
.nav-link.is-active { background: linear-gradient(110deg, #ffe32d, var(--amarillo)); color: #091624; box-shadow: inset 0 1px 0 rgb(255 255 255 / 40%), 0 4px 18px rgb(255 210 0 / 12%); }
.nav-link[aria-disabled="true"] { color: #75899b; }
.nav-icon { display: grid; place-items: center; }
.nav-icon .icon { width: 22px; height: 22px; }
.nav-label { min-width: 0; }
.nav-soon { margin-left: auto; padding: 2px 5px; border: 1px solid #2e4559; border-radius: 4px; font-size: 8px; font-weight: 600; letter-spacing: .4px; text-transform: uppercase; }
.sidebar-footer { margin-top: auto; padding-top: 26px; }
.sidebar-footer form { margin: 0; }
.sidebar-footer button { width: 100%; text-align: left; background: transparent; }
.sidebar-footer .nav-link { background: rgb(2 14 26 / 62%); text-shadow: 0 2px 6px rgb(0 0 0 / 60%); }
.sidebar-footer .nav-link.is-active { background: var(--amarillo); text-shadow: none; }
.sidebar-manifesto { margin: 25px 14px 20px; padding: 21px 0 0; border-top: 1px solid #668097; font-size: 21px; font-weight: 850; font-style: italic; line-height: 1.18; letter-spacing: -.7px; text-shadow: 0 2px 12px #000; }
.sidebar-manifesto > strong { display: block; margin-top: 5px; color: var(--amarillo); }
.sidebar-manifesto p { margin: 0; font-size: 27px; font-weight: 850; font-style: italic; line-height: 1.02; letter-spacing: -1px; }
.sidebar-manifesto p span { color: var(--amarillo); }
.sidebar-manifesto small { display: block; margin-top: 12px; color: #8399ab; font-size: 10px; }
.app-main { position: relative; margin-left: var(--sidebar); min-width: 0; min-height: 100svh; background: linear-gradient(180deg, rgb(3 14 25 / 98%) 30%, rgb(3 14 25 / 93%) 78%, rgb(3 14 25 / 70%)), url("imagenes/teide-atardecer.webp") center bottom / cover; }
.app-main::after { content: ""; position: absolute; z-index: 0; right: 0; bottom: 0; width: min(530px, 85%); height: 36px; pointer-events: none; background: linear-gradient(174deg, transparent 0 28%, #ffd200 29% 34%, #001628 35% 40%, #00a7ff 41% 52%, #f4f7fb 53% 57%, #0059b6 58% 82%, transparent 83%); clip-path: polygon(0 100%, 29% 67%, 53% 31%, 72% 0, 100% 13%, 100% 100%); }
:root[data-tema="claro"] .app-main { background: var(--fondo); }
.topbar { position: relative; isolation: isolate; min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 15px 30px; border-bottom: 1px solid var(--borde-suave); color: var(--texto); background: var(--fondo); }
.topbar-context { position: relative; z-index: 1; min-width: 0; }
.topbar-context:has(.topbar-crest) { display: flex; align-items: center; gap: 10px; }
.topbar-crest { width: 36px; height: 47px; flex-shrink: 0; object-fit: contain; filter: drop-shadow(0 2px 4px rgb(0 0 0 / 45%)); }
.topbar-wordmark { min-width: 0; }
.topbar-wordmark strong { display: block; font-size: 17px; font-style: italic; font-weight: 900; line-height: 1.1; letter-spacing: -.3px; }
.topbar-wordmark strong span { color: var(--amarillo); }
.topbar-wordmark > span { display: block; margin-top: 4px; color: var(--secundario); font-size: 10px; }
.topbar-context > strong { display: block; margin-bottom: 3px; font-size: 15px; }
.topbar-context > strong > span { color: var(--amarillo); }
.topbar-context > span, .topbar-context > p { margin: 0; color: var(--secundario); font-size: 11px; }
.topbar-context > span:not(.topbar-wordmark), .topbar-context > p { color: var(--secundario); }
.topbar-context > .topbar-wordmark { color: var(--texto); }
.topbar-page { display: none; min-width: 0; }
.topbar-page-title { margin: 0; font-size: 18px; font-weight: 800; line-height: 1.2; }
.topbar-page-caption { margin: 4px 0 0; color: var(--secundario); font-size: 12px; }
.topbar-actions { position: relative; z-index: 1; display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.icon-button { display: inline-grid; place-items: center; width: 39px; height: 39px; padding: 0; border: 1px solid var(--borde); border-radius: 50%; background: transparent; transition: background .15s ease; }
.icon-button:hover { background: var(--panel-hover); }
.topbar .icon-button { color: var(--texto); border-color: var(--borde); background: var(--panel); }
.topbar .icon-button:hover { background: var(--panel-hover); }
.user-chip { display: flex; align-items: center; gap: 10px; max-width: 220px; }
.user-chip > span:last-child { min-width: 0; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-chip strong { display: block; max-width: 155px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.user-chip small { color: var(--secundario); font-size: 10px; }
.avatar { display: inline-grid; place-items: center; flex-shrink: 0; width: 37px; height: 37px; overflow: hidden; border-radius: 50%; background: #193b54; border: 1.5px solid #6b8ba4; color: #fff; font-size: 13px; font-weight: 800; object-fit: cover; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-lg { width: 90px; height: 90px; border: 3px solid var(--amarillo); font-size: 30px; box-shadow: 0 0 0 7px rgb(255 210 0 / 8%); }
.page-content { position: relative; z-index: 1; padding: 25px 28px 45px; max-width: 1680px; margin: 0 auto; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1fr) 292px; align-items: start; gap: 20px; }
.dashboard-main, .dashboard-aside { display: grid; gap: 20px; min-width: 0; }
.section-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }

.hero { position: relative; isolation: isolate; overflow: hidden; min-height: 294px; border: 1px solid #a9bed0; border-radius: 22px; background: #0b1e3c; box-shadow: var(--sombra); color: #f4f7fb; }
.hero::before { content: ""; position: absolute; z-index: 3; top: 0; left: 0; width: 100%; height: 4px; background: var(--amarillo); }
.hero-content { position: relative; z-index: 2; padding: 28px 29px; }
.eyebrow { display: block; color: var(--amarillo); font-size: 9px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; }
.hero-title { max-width: 90%; margin: 14px 0 8px; font-size: clamp(29px, 2.8vw, 39px); font-weight: 850; letter-spacing: -1.4px; overflow-wrap: anywhere; }
.hero-title > span { display: inline-block; margin-left: 4px; font-size: .83em; }
.hero-title > .greeting-dot { color: var(--amarillo); font-size: inherit; margin-left: 0; }
.hero-copy { max-width: 55%; margin-bottom: 23px; color: #bfcedd; font-size: 13px; }
.hero-landscape { display: none; }
.hero-round { display: flex; align-items: center; gap: 13px; width: fit-content; max-width: 100%; padding: 13px 14px; border: 1px solid #4d6c82; border-radius: 13px; background: rgb(4 19 32 / 72%); backdrop-filter: blur(8px); }
.round-date { display: grid; place-items: center; width: 43px; height: 43px; border-right: 1px solid #38536a; padding-right: 10px; color: #dbe8f3; }
.round-date .icon { width: 29px; height: 29px; }
.round-info { min-width: 0; padding-right: 10px; }
.round-info strong { display: block; margin-bottom: 1px; font-size: 17px; letter-spacing: -.5px; }
.round-info span { display: block; color: #b1c3d2; font-size: 11px; }
.hero-round .button { margin-left: 8px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 42px; padding: 10px 20px; border: 1px solid transparent; border-radius: 11px; font-size: 12px; font-weight: 800; line-height: 1.25; text-align: center; transition: background .15s ease, transform .15s ease; }
.button:hover { transform: translateY(-1px); }
.button .icon { width: 17px; height: 17px; }
.button-primary { color: #0a1520; background: var(--amarillo); border-color: #ffe45c; box-shadow: inset 0 1px 0 rgb(255 255 255 / 25%); }
.button-primary:hover { background: var(--amarillo-hover); }
.button-secondary { border-color: var(--borde); background: var(--panel-alto); color: var(--texto); }
.button-secondary:hover { background: var(--panel-hover); }
.button-small { min-height: 34px; padding: 8px 12px; border-radius: 9px; font-size: 11px; }
.button-full { width: 100%; }

.card { min-width: 0; overflow: hidden; padding: 20px; background: linear-gradient(145deg, var(--panel), var(--panel-alto) 170%); border: 1px solid var(--borde); border-radius: var(--radio); box-shadow: inset 0 1px 0 rgb(255 255 255 / 4%), var(--sombra); }
.card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.card-title { display: flex; align-items: center; gap: 9px; margin: 0; font-size: 16px; font-weight: 800; letter-spacing: -.45px; }
.card-title .icon { color: var(--amarillo); width: 22px; height: 22px; }
.card-subtitle { margin: 6px 0 0; color: var(--secundario); font-size: 11px; line-height: 1.5; }
.card > .card-subtitle { margin-top: -9px; margin-bottom: 15px; }
.card-header .eyebrow { margin-bottom: 8px; }
.card-footer-link { margin-top: 18px; }
.text-link { display: inline-flex; align-items: center; gap: 5px; flex-shrink: 0; color: var(--amarillo); font-size: 11px; font-weight: 750; }
.text-link .icon { width: 15px; height: 15px; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
:root[data-tema="claro"] .card-title .icon, :root[data-tema="claro"] .text-link { color: #806300; }
:root[data-tema="claro"] .card .eyebrow { color: #806300; }
:root[data-tema="claro"] .topbar-context > strong > span,
:root[data-tema="claro"] .topbar-wordmark strong span,
:root[data-tema="claro"] .feature-icon,
:root[data-tema="claro"] .round-card-bottom > .icon,
:root[data-tema="claro"] .mvp-bonus,
:root[data-tema="claro"] .login-ball { color: #806300; }
.match-list { display: grid; gap: 12px; }
.match-row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; padding: 14px 11px; border: 1px solid var(--borde-suave); border-radius: 12px; background: rgb(4 13 23 / 15%); }
.team { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 12px; font-weight: 700; overflow-wrap: anywhere; }
.team-right { justify-content: flex-end; text-align: right; }
.team-right .team-dot { order: 2; }
.team-dot { display: inline-block; width: 23px; height: 27px; flex-shrink: 0; border: 1px solid rgb(255 255 255 / 55%); border-radius: 5px 5px 9px 9px; background: #bac4cc; box-shadow: inset 0 2px 0 rgb(255 255 255 / 25%); }
.team-dot.rojo { background: #dc4750; }
.team-dot.azul { background: #2587d8; }
.team-dot.verde { background: #29966f; }
.team-dot.negro { background: #263342; }
.team-dot.amarillo { background: #f4cc28; }
.team-dot.blanco { background: #e6edf3; }
.score { flex-shrink: 0; white-space: nowrap; font-size: 24px; font-weight: 850; letter-spacing: 1px; line-height: 1; font-variant-numeric: tabular-nums; }
.match-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 7px; margin: 0 0 9px; color: var(--secundario); font-size: 10px; }
.status { display: inline-flex; align-items: center; gap: 5px; width: fit-content; border: 1px solid var(--borde); border-radius: 20px; padding: 4px 9px; color: var(--secundario); font-size: 9px; font-weight: 700; line-height: 1.4; }
.status::before { content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status-published { color: var(--verde); border-color: rgb(85 216 154 / 30%); background: rgb(85 216 154 / 6%); }
.status-review { color: #f1c967; border-color: rgb(241 201 103 / 30%); background: rgb(241 201 103 / 6%); }
:root[data-tema="claro"] .status-review { color: #775600; }
.empty-state { display: grid; place-items: center; min-height: 172px; padding: 23px 12px; color: var(--secundario); text-align: center; }
.empty-state strong, .empty-state h3 { display: block; margin: 12px 0 6px; color: var(--texto); font-size: 14px; }
.empty-state p { max-width: 285px; margin: 0; font-size: 12px; line-height: 1.65; }
.empty-icon { display: grid; place-items: center; width: 47px; height: 47px; color: var(--secundario); border: 1px solid var(--borde); border-radius: 14px; background: var(--panel-alto); }
.empty-icon .icon { width: 24px; height: 24px; }
.empty-state-start { min-height: 0; gap: 14px; padding: 10px 0 14px; }
.empty-state-copy { min-width: 0; }
.empty-state-start h3 { margin: 0 0 8px; font-size: 16px; }
.empty-state-start p { max-width: 54ch; font-size: 13px; }
.empty-state-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }
.standings { display: grid; gap: 3px; }
.standing-row { display: grid; grid-template-columns: 23px minmax(0, 1fr) 53px; gap: 7px; align-items: center; min-height: 57px; padding: 7px 5px; border-bottom: 1px solid var(--borde-suave); }
.standing-row:last-child { border-bottom: 0; }
.standing-row.is-heading { min-height: 22px; border: 0; color: var(--secundario); font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; }
.standing-row.is-heading > :nth-child(n+3) { text-align: right; }
.rank { display: grid; place-items: center; width: 22px; height: 22px; color: var(--secundario); font-size: 11px; font-weight: 800; }
.rank-first { color: #0a1520; border-radius: 6px; background: var(--amarillo); }
.player-label { display: flex; align-items: center; gap: 8px; min-width: 0; }
.player-label .avatar { width: 28px; height: 28px; font-size: 10px; border-color: #4c6b83; }
.player-name { display: block; font-size: 11px; font-weight: 700; overflow-wrap: anywhere; }
.player-meta { display: block; color: var(--secundario); font-size: 10px; }
.points { font-weight: 800; font-size: 13px; text-align: right; font-variant-numeric: tabular-nums; }
.points small { color: var(--secundario); font-size: 9px; font-weight: 500; }
.mini-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.mini-stat { display: flex; flex-direction: column; gap: 4px; padding: 13px 5px; text-align: center; border: 1px solid var(--borde-suave); border-radius: 11px; background: var(--panel-alto); }
.mini-stat strong { color: var(--texto); font-size: 24px; font-weight: 850; letter-spacing: -1px; line-height: 1.1; }
.mini-stat span, .mini-stat small { color: var(--secundario); font-size: 9px; line-height: 1.4; }
.feature-card { position: relative; min-height: 200px; }
.feature-icon { display: grid; place-items: center; width: 38px; height: 38px; color: var(--amarillo); border: 1px solid var(--borde); border-radius: 11px; background: var(--panel-alto); margin-bottom: 15px; }
.feature-tag { display: inline-block; color: var(--secundario); font-size: 9px; font-weight: 750; text-transform: uppercase; letter-spacing: 1px; }
.feature-card h3 { margin: 8px 0; font-size: 20px; letter-spacing: -.6px; }
.feature-card p { max-width: 240px; margin: 0; color: var(--secundario); font-size: 12px; line-height: 1.7; }
.home-roster { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.home-roster > span { padding: 5px 10px; border: 1px solid var(--borde-suave); border-radius: 20px; background: var(--panel-alto); font-size: 13px; }
.sorteo-confirmacion { margin-top: 24px; }
.sorteo-resumen > .card-subtitle { margin-top: 10px; }
.sorteo-confirmacion .form-field label { display: flex; align-items: center; gap: 12px; }
.sorteo-confirmacion input[type="checkbox"] { width: 22px; min-height: 22px; height: 22px; flex-shrink: 0; accent-color: var(--amarillo); }
.market-note { display: block; margin-top: 16px; color: var(--secundario); font-size: 9px; letter-spacing: .6px; text-transform: uppercase; }
.pitch-preview { position: relative; isolation: isolate; overflow: hidden; height: 85px; margin: 15px 0; border: 1px solid #438759; border-radius: 8px; background: repeating-linear-gradient(90deg, #1b5837 0, #1b5837 35px, #1b623c 35px, #1b623c 70px); opacity: .85; }
.pitch-preview::before { content: ""; position: absolute; inset: 9px; border: 1px solid #9bd0a788; background: linear-gradient(90deg, transparent calc(50% - .5px), #9bd0a788 50%, transparent calc(50% + .5px)); }
.pitch-preview::after { content: ""; position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; border: 1px solid #9bd0a788; border-radius: 50%; transform: translate(-50%, -50%); }
.steps { display: grid; gap: 0; }
.step { position: relative; display: flex; align-items: flex-start; gap: 11px; padding: 0 0 20px; color: var(--secundario); }
.step:not(:last-child)::before { content: ""; position: absolute; top: 29px; bottom: 1px; left: 13px; width: 1px; background: var(--borde); }
.step:last-child { padding-bottom: 0; }
.step-number { display: grid; place-items: center; width: 27px; height: 27px; flex-shrink: 0; border: 1px solid var(--borde); border-radius: 50%; font-size: 11px; font-weight: 800; }
.step strong { display: block; margin: 2px 0 4px; font-size: 11px; color: var(--texto); }
.step p { margin: 0; color: var(--secundario); font-size: 10px; line-height: 1.6; }
.step small { display: block; color: var(--secundario); font-size: 10px; line-height: 1.6; }
.step-number .icon { width: 14px; height: 14px; }
.step.is-done .step-number { background: rgb(85 216 154 / 10%); border-color: rgb(85 216 154 / 35%); color: var(--verde); }
.step.is-current .step-number { background: var(--amarillo); border-color: var(--amarillo); color: #091624; }
.bottom-nav { display: none; }

/* Pantallas de jornadas, clasificación y perfil. */
.page-heading { margin: 3px 0 26px; }
.page-heading .eyebrow { margin-bottom: 9px; color: var(--secundario); }
.page-heading > .text-link { margin-bottom: 19px; }
.page-heading > .status { margin-top: 14px; }
.page-title { margin: 0; font-size: 32px; font-weight: 850; letter-spacing: -1.1px; }
.section-title { margin: 1px 0 17px; font-size: 17px; letter-spacing: -.4px; }
.page-lead { max-width: 620px; margin: 8px 0 0; color: var(--secundario); font-size: 13px; line-height: 1.7; }
.round-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 19px; }
.results-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.round-card { display: flex; flex-direction: column; gap: 17px; transition: border-color .15s ease, transform .15s ease; }
.round-card:hover { border-color: #788f9f; transform: translateY(-2px); }
.round-card h2 { margin: 0; font-size: 23px; letter-spacing: -.6px; }
.round-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.round-card-top > .icon { color: var(--amarillo); width: 27px; height: 27px; }
.round-card .round-date { color: var(--texto); border-color: var(--borde); }
.round-card > p { margin: -9px 0 2px; color: var(--secundario); font-size: 12px; }
.round-card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 15px; border-top: 1px solid var(--borde-suave); font-size: 11px; color: var(--secundario); margin-top: auto; }
.round-card-bottom > .icon { color: var(--amarillo); width: 19px; height: 19px; }
.match-detail { margin: 0; }
.match-detail .match-row { background: var(--panel-alto); }
.jornada-layout .match-detail .match-row { padding: 21px 20px; }
.jornada-layout .match-detail .team { font-size: 16px; }
.jornada-layout .match-detail .team-dot { width: 31px; height: 36px; }
.jornada-layout .match-detail .score { font-size: 32px; }
.teams-roster { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 21px; }
.roster-team { min-width: 0; }
.roster-team > h3 { display: flex; align-items: center; gap: 7px; padding-bottom: 10px; margin: 0 0 12px; border-bottom: 1px solid var(--borde-suave); font-size: 12px; }
.roster-team > h3 .team-dot { width: 14px; height: 17px; }
.player-list { display: grid; gap: 9px; }
.player-list li { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 12px; }
.player-list .avatar { width: 26px; height: 26px; font-size: 9px; }
.player-list .player-actions { margin-left: auto; color: var(--secundario); font-size: 10px; text-align: right; }
.table-scroll { width: 100%; overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--borde) transparent; }
.stats-table { width: 100%; border-collapse: collapse; font-size: 12px; text-align: left; }
.stats-table th { color: var(--secundario); font-size: 10px; font-weight: 700; padding: 0 12px 14px; border-bottom: 1px solid var(--borde); white-space: nowrap; }
.stats-table td { padding: 15px 12px; border-bottom: 1px solid var(--borde-suave); }
.stats-table th:first-child, .stats-table td:first-child { padding-left: 0; }
.stats-table th:last-child, .stats-table td:last-child { padding-right: 0; text-align: right; }
.stats-table tbody tr:last-child td { border-bottom: 0; }
.stats-table tbody th { padding-top: 15px; padding-bottom: 15px; color: var(--texto); border-bottom-color: var(--borde-suave); font-size: 12px; font-weight: 650; white-space: normal; overflow-wrap: anywhere; }
.stats-table tbody tr:last-child th { border-bottom: 0; }
.mvp-bonus { white-space: nowrap; color: var(--amarillo); font-size: 11px; }
.mvp-bonus .icon { width: 16px; height: 16px; }
:root[data-tema="claro"] .mvp-bonus { color: #806300; }
:root[data-tema="claro"] :focus-visible { outline-color: #0073b9; }
.ranking-card { max-width: 900px; }
.ranking-card .standing-row { grid-template-columns: 35px minmax(0, 1fr) 75px; min-height: 68px; padding: 9px 12px; }
.ranking-card .player-name { font-size: 14px; }
.ranking-card .player-meta { font-size: 11px; }
.ranking-card .player-label .avatar { width: 35px; height: 35px; }
.ranking-card .points { font-size: 18px; }
.stats-table .player-name { font-size: 13px; }
.stats-table .player-label .avatar { width: 34px; height: 34px; }
.stats-table .points { font-size: 17px; }
.profile-layout { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 22px; max-width: 980px; }
.profile-card { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 35px 23px 25px; }
.profile-card h2 { margin: 23px 0 4px; font-size: 26px; letter-spacing: -.8px; overflow-wrap: anywhere; }
.profile-card > p { color: var(--secundario); font-size: 12px; }
.profile-card .button { width: 100%; margin-top: 22px; }
.profile-card .detail-list, .profile-card form { width: 100%; }
.profile-card .detail-list { margin-top: 20px; }
.profile-links { display: grid; gap: 9px; margin: 23px 0; }
.profile-links .nav-link { color: var(--texto); border: 1px solid var(--borde); background: var(--panel-alto); }
.profile-links .nav-link:hover { color: var(--texto); background: var(--panel-hover); }
.profile-links .nav-link .icon:last-child { margin-left: auto; width: 16px; }
.detail-list { display: grid; margin: 0; }
.detail-list > div { display: flex; justify-content: space-between; gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--borde-suave); font-size: 12px; }
.detail-list > div:last-child { border-bottom: 0; }
.detail-list dt { color: var(--secundario); }
.detail-list dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.notice { padding: 15px 18px; border: 1px solid var(--borde-suave); border-left: 3px solid var(--amarillo); border-radius: 10px; background: var(--panel-alto); color: var(--secundario); font-size: 12px; line-height: 1.65; }
.notice p:last-child { margin-bottom: 0; }
.notice strong { color: var(--texto); }
.round-grid + .notice { margin-top: 25px; }
.notice .icon { width: 17px; height: 17px; margin-right: 5px; }

/* Acceso privado a la liga. */
.login-shell { min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr); background: #06111d; }
.login-story { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; padding: 38px 10%; color: #f4f7fb; border-right: 1px solid #7e94a8; background: linear-gradient(180deg, rgb(2 14 26 / 52%) 0%, rgb(2 14 26 / 72%) 45%, rgb(2 14 26 / 24%) 100%), url("imagenes/poli-calle.webp") center bottom / cover; }
.login-story::after { content: ""; position: absolute; z-index: 0; inset: auto -10% -1px 10%; height: 38px; pointer-events: none; background: linear-gradient(174deg, transparent 0 29%, #ffd200 30% 37%, #00182c 38% 44%, #00a7ff 45% 57%, #f4f7fb 58% 61%, #0057b3 62%); clip-path: polygon(0 100%, 30% 60%, 54% 20%, 78% 0, 100% 20%, 100% 100%); }
.login-story .brand { padding: 0; }
.login-story .brand-name { font-size: 35px; }
.login-story-content { position: relative; z-index: 2; }
.login-crest { display: block; width: clamp(140px, 15vw, 200px); height: clamp(170px, 18vw, 245px); margin: 0 0 22px; object-fit: contain; filter: drop-shadow(0 10px 20px rgb(0 0 0 / 45%)); }
.login-story > div:not(.hero-landscape) { position: relative; z-index: 2; }
.login-story h1 { max-width: 490px; margin: 16px 0; font-size: clamp(34px, 3.3vw, 52px); font-weight: 900; letter-spacing: -2px; line-height: 1.06; text-shadow: 0 2px 16px rgb(0 0 0 / 40%); }
.login-story h1 span { color: var(--amarillo); }
.login-story-content > p { max-width: 340px; color: #adc1d3; font-size: 14px; line-height: 1.8; }
.login-story > div:not(.hero-landscape) > p:not(.eyebrow) { max-width: 340px; color: #adc1d3; font-size: 14px; line-height: 1.8; }
.login-story .hero-landscape { inset: auto -12% -16% auto; width: 100%; height: 60%; opacity: .55; }
.login-story .hero-landscape::before { top: 0; right: 20%; width: 150px; height: 150px; }
.login-story > small { z-index: 2; margin-top: 25px; color: #90aabc; font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; }
.login-panel { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 20px; padding: 48px 35px; background: var(--fondo); }
.login-panel > .icon-button { align-self: flex-end; position: absolute; top: 26px; right: 30px; }
.login-card { width: 100%; max-width: 365px; }
.login-card > .eyebrow { color: var(--secundario); margin-bottom: 12px; }
.login-ball { display: grid; place-items: center; width: 47px; height: 47px; margin-bottom: 27px; border: 1px solid var(--borde); border-radius: 14px; color: var(--amarillo); background: var(--panel-alto); }
.login-ball .icon { width: 25px; height: 25px; }
.login-card > h2 { font-size: 33px; font-weight: 850; letter-spacing: -1.2px; margin-bottom: 12px; }
.login-card > p { margin-bottom: 28px; color: var(--secundario); font-size: 13px; line-height: 1.7; }
.login-card form > .button { width: 100%; margin-top: 8px; min-height: 47px; }
.form-field { margin-bottom: 20px; }
.form-field label { display: block; margin: 0 0 8px; font-size: 12px; font-weight: 650; }
.form-field input { display: block; width: 100%; min-height: 47px; border: 1px solid var(--borde); border-radius: 10px; padding: 11px 13px; background: var(--panel); color: var(--texto); font-size: 14px; outline-offset: 2px; }
.form-field input:hover { border-color: #6a8398; }
.form-field input:focus { border-color: var(--amarillo); }
.form-field input[aria-invalid="true"] { border-color: var(--error); }
.form-field input::placeholder { color: var(--secundario); opacity: .8; }
.form-error, .errorlist { margin: 7px 0 0; color: var(--error); font-size: 11px; }
.form-errors { margin-bottom: 21px; padding: 12px 15px; border: 1px solid var(--error); border-radius: 9px; color: var(--error); background: rgb(255 70 70 / 4%); font-size: 12px; }
.form-errors .errorlist { margin: 0; font-size: inherit; }
.login-footer { max-width: 365px; margin-top: 17px; padding-top: 22px; border-top: 1px solid var(--borde-suave); color: var(--secundario); font-size: 11px; text-align: center; line-height: 1.8; }
.login-footer p { margin: 0; }
.login-help { margin: 22px 0 0; color: var(--secundario); font-size: 11px; line-height: 1.8; }
.login-story > .login-footer { position: relative; z-index: 2; margin: 0; padding-top: 19px; border-color: #294258; color: #90aabc; text-align: left; }

/* En PC, el contenido arranca junto al menú y aprovecha el ancho disponible. */
@media (min-width: 760px) {
  .topbar { min-height: 74px; }
  .topbar .topbar-context.topbar-brand { display: none; }
  .topbar-page { display: block; }
}

@media (min-width: 1200px) {
  body { font-size: 16px; }
  .nav-link { font-size: 15px; }
  .topbar { padding-left: 28px; padding-right: 28px; }
  .page-content { max-width: 2000px; margin-left: 0; margin-right: auto; padding: 26px 28px 40px; }
  .dashboard-grid { grid-template-columns: minmax(0, 1fr) clamp(320px, 20vw, 360px); gap: 24px; }
  .hero { min-height: 286px; }
  .hero-content { padding: 18px 28px; }
  .hero-content > .eyebrow { margin-bottom: 0; line-height: 1.2; }
  .hero-title { margin: 6px 0 8px; font-size: 38px; line-height: 1.1; }
  .hero-copy { margin-bottom: 12px; font-size: 14px; line-height: 1.4; }
  .eyebrow { font-size: 11px; }
  .round-info strong { font-size: 20px; }
  .round-info span { font-size: 13px; }
  .hero-round { flex-wrap: wrap; }
  .hero-round .button { margin-left: 0; }
  .button, .button-small { min-height: 44px; font-size: 14px; }
  .card { padding: 22px; }
  .card-title { font-size: 20px; }
  .card-subtitle { font-size: 14px; }
  .text-link { font-size: 14px; }
  .team { font-size: 15px; }
  .match-meta { font-size: 13px; }
  .status { font-size: 12px; }
  .empty-state h3, .empty-state strong { font-size: 16px; }
  .empty-state p { font-size: 14px; }
  .matches-card-empty .card-header { margin-bottom: 16px; }
  .empty-state-start { grid-template-columns: 47px minmax(0, 1fr); align-items: start; justify-items: stretch; gap: 20px; min-height: 128px; padding: 12px 0; text-align: left; }
  .empty-state-start .empty-icon { margin-top: 2px; }
  .empty-state-start h3 { margin-top: 0; font-size: 18px; }
  .empty-state-actions { justify-content: flex-start; margin-top: 16px; }
  .standing-row.is-heading { font-size: 12px; }
  .rank { font-size: 14px; }
  .player-name { font-size: 14px; }
  .player-meta { font-size: 13px; }
  .points { font-size: 16px; }
  .points small { font-size: 12px; }
  .mini-stat span, .mini-stat small { font-size: 14px; }
  .feature-tag, .market-note { font-size: 11px; }
  .feature-card p { max-width: 36ch; font-size: 14px; }
  .step strong { font-size: 14px; }
  .step p, .step small { font-size: 14px; }
  .page-lead, .round-card > p, .roster-team > h3, .player-list li, .profile-card > p, .detail-list > div, .notice { font-size: 14px; }
  .round-card-bottom, .player-list .player-actions, .stats-table, .stats-table th, .stats-table tbody th, .mvp-bonus, .ranking-card .player-meta { font-size: 13px; }
}

@media (min-width: 1700px) {
  :root { --sidebar: 255px; }
  .sidebar { padding-top: 40px; }
  .sidebar-nav { margin-top: 48px; }
  .topbar { padding-left: 32px; padding-right: 32px; }
  .page-content { padding: 28px 32px 40px; }
  .hero { min-height: 294px; }
  .hero-title { font-size: 42px; }
  .card-title { font-size: 21px; }
}

@media (max-width: 1190px) {
  :root { --sidebar: 205px; }
  .sidebar { padding-left: 11px; padding-right: 11px; }
  .brand-name { font-size: 31px; }
  .sidebar .brand:has(.brand-crest) { grid-template-columns: 48px minmax(0, 1fr); gap: 7px; }
  .sidebar .brand-crest { width: 48px; height: 65px; }
  .sidebar .brand > .brand-name, .sidebar .brand-lockup > .brand-name { font-size: 28px; }
  .brand-kicker { font-size: 8px; letter-spacing: 1.7px; }
  .nav-link { gap: 11px; padding-left: 12px; padding-right: 12px; font-size: 12px; }
  .nav-soon { font-size: 7px; padding: 2px 3px; }
  .page-content { padding: 23px 22px 30px; }
  .topbar { padding-left: 23px; padding-right: 23px; }
  .dashboard-grid { grid-template-columns: minmax(0, 1fr) 257px; gap: 16px; }
  .dashboard-main, .dashboard-aside, .section-grid { gap: 16px; }
  .card { padding: 17px; }
  .card-title { font-size: 15px; }
  .hero-content { padding: 25px 22px; }
  .hero-round { flex-wrap: wrap; width: fit-content; }
  .hero-round .button { margin-left: 0; }
  .hero-title { font-size: 31px; }
  .round-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1099px) {
  .dashboard-grid { grid-template-columns: minmax(0, 1fr); }
  .dashboard-aside { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-aside > .card:first-child { grid-row: span 2; }
  .hero-round { flex-wrap: nowrap; }
  .hero-copy { max-width: 65%; }
  .profile-layout { grid-template-columns: minmax(0, 280px) minmax(0, 1fr); }
}

@media (max-width: 759px) {
  :root { --radio: 16px; }
  body { font-size: 13px; }
  .sidebar { display: none; }
  .app-main { margin-left: 0; padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .topbar { position: sticky; z-index: 20; top: 0; min-height: 75px; padding: 9px 16px; gap: 10px; }
  .topbar-context:has(.topbar-crest) { gap: 7px; }
  .topbar-crest { width: 30px; height: 42px; }
  .topbar-wordmark strong { font-size: 14px; }
  .topbar-wordmark > span { margin-top: 3px; font-size: 8px; }
  .topbar-context > strong { font-size: 15px; font-weight: 900; letter-spacing: -.5px; }
  .topbar-context > span, .topbar-context > p { font-size: 9px; }
  .topbar-actions { gap: 11px; }
  .topbar-actions .icon-button { width: 33px; height: 33px; }
  .topbar-actions .icon-button .icon { width: 17px; height: 17px; }
  .user-chip { gap: 0; }
  .user-chip > span:last-child:not(.avatar) { display: none; }
  .user-chip .avatar { width: 33px; height: 33px; font-size: 11px; border-color: var(--amarillo); }
  .page-content { padding: 17px 15px 20px; }
  .dashboard-main, .dashboard-aside, .dashboard-grid, .section-grid { gap: 15px; }
  .dashboard-main, .dashboard-aside { display: contents; }
  .dashboard-main > .hero { order: 1; }
  .dashboard-main > .card { order: 2; }
  .dashboard-aside > .card:nth-child(1) { order: 3; }
  .dashboard-aside > .card:nth-child(2) { order: 4; }
  .dashboard-aside > .card:nth-child(3) { order: 5; }
  .dashboard-main > .section-grid { order: 6; }
  .hero { min-height: 272px; border-radius: 18px; }
  .hero-content { padding: 24px 20px 22px; }
  .eyebrow { font-size: 8px; letter-spacing: 1.6px; }
  .hero-title { margin: 13px 0 9px; font-size: 30px; letter-spacing: -1px; }
  .hero-copy { max-width: 75%; font-size: 12px; margin-bottom: 21px; }
  .hero-landscape { width: 68%; opacity: .7; }
  .hero-landscape::before { width: 78px; height: 78px; right: 10%; top: 27px; }
  .hero-landscape::after { top: 65px; }
  .hero-round { width: fit-content; gap: 10px; padding: 11px; }
  .round-date { width: 35px; height: 37px; padding-right: 9px; }
  .round-date .icon { width: 25px; height: 25px; }
  .round-info { padding-right: 0; }
  .round-info strong { font-size: 15px; }
  .round-info span { font-size: 10px; }
  .hero-round .button { padding-left: 11px; padding-right: 11px; font-size: 10px; min-height: 34px; }
  .hero-round .button .icon { width: 14px; height: 14px; }
  .card { padding: 18px; }
  .card-title { font-size: 16px; }
  .card-header { margin-bottom: 17px; }
  .empty-state-copy { width: 100%; }
  .empty-state-start p { margin-left: auto; margin-right: auto; }
  .empty-state-actions { flex-direction: column; }
  .empty-state-actions .button { width: 100%; min-height: 44px; }
  .section-grid { grid-template-columns: minmax(0, 1fr); }
  .dashboard-aside { grid-template-columns: minmax(0, 1fr); }
  .dashboard-aside > .card:first-child { grid-row: auto; }
  .match-row { padding: 17px 13px; }
  .team { font-size: 12px; }
  .feature-card { min-height: 0; }
  .feature-card p { max-width: none; }
  .feature-card h3 { font-size: 20px; }
  .pitch-preview { height: 95px; }
  .standing-row { min-height: 54px; grid-template-columns: 25px minmax(0, 1fr) 58px; }
  .player-label .avatar { width: 32px; height: 32px; }
  .player-name { font-size: 12px; }
  .mini-stat strong { font-size: 26px; }
  .mini-stat span, .mini-stat small { font-size: 10px; }
  .step strong { font-size: 12px; }
  .step p { font-size: 11px; }
  .step small { font-size: 11px; }
  .bottom-nav { position: fixed; z-index: 40; inset: auto 0 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 9px 6px calc(10px + env(safe-area-inset-bottom)); background: var(--panel); border-top: 1px solid var(--borde); box-shadow: 0 -8px 25px rgb(0 0 0 / 12%); }
  .bottom-link { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-height: 43px; color: var(--secundario); font-size: 9px; font-weight: 600; text-align: center; }
  .bottom-link .icon { width: 21px; height: 21px; }
  .bottom-link.is-active { color: var(--amarillo); }
  .bottom-link.is-active::before { content: ""; position: absolute; top: -10px; left: calc(50% - 15px); width: 30px; height: 2px; border-radius: 2px; background: var(--amarillo); }
  :root[data-tema="claro"] .bottom-link.is-active { color: #806300; }
  .page-heading { align-items: flex-start; gap: 12px; margin-bottom: 22px; }
  .page-title { font-size: 28px; letter-spacing: -.9px; }
  .page-lead { font-size: 12px; }
  .page-heading > .button { flex-shrink: 0; padding: 8px 10px; font-size: 10px; }
  .round-grid { gap: 13px; grid-template-columns: minmax(0, 1fr); }
  .round-card { padding: 16px; }
  .round-card h2 { font-size: 20px; }
  .round-card-top { align-items: flex-start; }
  .round-card-top > .icon { width: 23px; height: 23px; }
  .round-card .status { font-size: 8px; padding: 3px 6px; }
  .round-card > p { font-size: 11px; }
  .round-card-bottom { font-size: 10px; }
  .jornada-layout .match-detail .match-row { padding: 19px 12px; }
  .jornada-layout .match-detail .team { font-size: 13px; }
  .jornada-layout .match-detail .score { font-size: 28px; }
  .jornada-layout .match-detail .team-dot { width: 24px; height: 29px; }
  .teams-roster { gap: 16px; }
  .player-list li { font-size: 11px; flex-wrap: wrap; }
  .stats-table th, .stats-table td { padding-left: 8px; padding-right: 8px; }
  .stats-table { min-width: 0; }
  .ranking-card .standing-row { grid-template-columns: 26px minmax(0, 1fr) 59px; padding-left: 0; padding-right: 0; }
  .ranking-card .player-name { font-size: 12px; }
  .ranking-card .points { font-size: 16px; }
  .profile-layout { grid-template-columns: minmax(0, 1fr); gap: 15px; }
  .profile-card { padding-top: 30px; }
  .login-shell { display: flex; flex-direction: column; min-height: 100svh; }
  .login-story { min-height: 290px; gap: 20px; padding: 25px 25px 24px; border-right: 0; border-bottom: 1px solid #8298ab; background-position: center 62%; }
  .login-story::after { height: 24px; }
  .login-story .brand-name { font-size: 29px; }
  .login-story .brand:has(.brand-crest) { grid-template-columns: 40px minmax(0, 1fr); width: fit-content; gap: 8px; }
  .login-story .brand-crest { width: 40px; height: 53px; }
  .login-story .brand-lockup > .brand-name { font-size: 27px; }
  .login-story .brand-kicker { display: none; }
  .login-story h1 { max-width: 300px; margin: 10px 0; font-size: 34px; letter-spacing: -1.3px; }
  .login-crest { width: 110px; height: 140px; margin: 0 auto 12px; }
  .login-story:has(.login-crest) { min-height: 315px; gap: 15px; }
  .login-story:has(.login-crest) > .brand { display: none; }
  .login-story:has(.login-crest) .login-story-content { text-align: center; }
  .login-story:has(.login-crest) h1 { margin: 8px auto; font-size: 25px; letter-spacing: -.9px; }
  .login-story:has(.login-crest) .eyebrow { display: none; }
  .login-story:has(.login-crest) .login-story-content > p:not(.eyebrow) { display: none; }
  .login-story:has(.login-crest) > .login-footer { padding-top: 0; border: 0; text-align: center; }
  .login-story-content > p { max-width: 260px; margin-bottom: 0; font-size: 11px; }
  .login-story > div:not(.hero-landscape) > p:not(.eyebrow) { max-width: 260px; margin-bottom: 0; font-size: 11px; }
  .login-story > small { display: none; }
  .login-story .hero-landscape { bottom: -20%; right: -20%; width: 90%; height: 95%; opacity: .7; }
  .login-story .hero-landscape::before { width: 93px; height: 93px; right: 25%; top: 18px; }
  .login-panel { flex: 1; padding: 30px 25px 36px; }
  .login-panel > .icon-button { position: absolute; top: 25px; right: 22px; color: #f4f7fb; border-color: #68849a; background: #0a1d2c; }
  .login-card > h2 { font-size: 27px; }
  .login-card > .eyebrow { display: none; }
  .login-ball { display: none; }
  .login-card > p { margin-bottom: 25px; font-size: 12px; }
  .form-field { margin-bottom: 17px; }
  .form-field input { min-height: 46px; font-size: 16px; }
  .login-footer { margin-top: 10px; padding-top: 19px; font-size: 10px; }
}

@media (max-width: 379px) {
  .page-content { padding-left: 12px; padding-right: 12px; }
  .topbar { padding-left: 14px; padding-right: 14px; }
  .hero-content { padding-left: 17px; padding-right: 17px; }
  .hero-title { font-size: 27px; }
  .hero-round { flex-wrap: wrap; width: 100%; }
  .hero-round .button { width: 100%; }
  .hero-copy { max-width: 85%; }
  .round-grid { grid-template-columns: minmax(0, 1fr); }
  .card { padding: 16px; }
  .card-title { font-size: 15px; }
  .card-header { gap: 8px; }
  .text-link { font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .button:hover, .round-card:hover { transform: none; }
}

.ranking-tabs { display: flex; flex-wrap: wrap; gap: 6px; width: fit-content; max-width: 100%; margin-bottom: 20px; padding: 5px; border: 1px solid var(--borde-suave); border-radius: 12px; background: var(--panel); }
.ranking-tabs a { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 9px 18px; border-radius: 8px; color: var(--secundario); font-size: 13px; font-weight: 700; }
.ranking-tabs a:hover { color: var(--texto); background: var(--panel-hover); }
.ranking-tabs a[aria-current="page"] { color: #0a1520; background: var(--amarillo); }
.team-standing-details { min-width: 0; overflow-wrap: anywhere; }
.standing-row.is-own-team { border-radius: 8px; background: rgb(255 210 0 / 7%); }
.standing-row.is-own-team .avatar { border-color: var(--amarillo); }
.standing-own-label { color: var(--amarillo); font-weight: 700; }
:root[data-tema="claro"] .standing-row.is-own-team { background: rgb(255 210 0 / 16%); }
:root[data-tema="claro"] .standing-own-label { color: #806300; }

.notification-shortcut { position: relative; flex-shrink: 0; }
.notification-badge { position: absolute; top: -5px; right: -6px; min-width: 19px; height: 19px; padding: 0 4px; display: grid; place-items: center; border: 2px solid var(--fondo); border-radius: 99px; background: var(--amarillo); color: #091624; font-size: 10px; font-weight: 800; line-height: 1; }
.notification-nav-count { margin-left: auto; padding: 1px 6px; border-radius: 99px; background: var(--amarillo); color: #091624; font-size: 11px; }
.nav-link.is-active .notification-nav-count { background: #091624; color: var(--amarillo); }
