/* Austral Raiders — un solo tema oscuro (2026-10-14: nunca fondos claros).
   Lenguaje visual: paneles con bordes finos, etiquetas "// mono", títulos condensados en mayúsculas,
   botones rectos. Un solo acento: el rojo del logo. Los colores de facción solo para datos de facción. */

:root {
  --bg: #0e0f11;
  --panel: #16181c;
  --panel-2: #1f2227;
  --line: #2c3038;
  --line-2: #3a3f49;
  --fg: #edebe6;
  --muted: #9aa0a8;
  --red: #c3031d;          /* rojo del logo: fondos, bordes, marcas */
  --red-hi: #e01a33;       /* hover de botones */
  --red-text: #f0384f;     /* rojo para texto chico sobre fondo oscuro (contraste AA) */
  --ok: #3ccf6e;
  --warn: #f0a35a;
  --contour: #23272e;
  --contour-index: #353a44;
  --f-lonestar: #4cb1ef;
  --f-valkyra: #fa503e;
  --f-manticore: #1dd65c;

  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --text: 'IBM Plex Sans', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Consolas, monospace;
  --max: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --space: clamp(56px, 9vw, 112px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden; background: var(--bg); color: var(--fg); font: 400 16px/1.6 var(--text); -webkit-font-smoothing: antialiased; }
main { flex: 1; }
a { color: var(--red-text); text-underline-offset: 3px; }
a:hover { color: var(--fg); }
:focus-visible { outline: 2px solid var(--red-text); outline-offset: 2px; }
::selection { background: var(--red); color: #fff; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: .95; margin: 0; text-transform: uppercase; letter-spacing: .01em; }
h1 { font-size: clamp(48px, 9vw, 96px); line-height: .9; }
h2 { font-size: clamp(36px, 6vw, 56px); }
h3 { font-size: 22px; font-weight: 700; line-height: 1.1; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-size: .88em; }
.small { font-size: 14px; }
.big { font-size: 17px; }
.red { color: var(--red); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; padding: 8px 12px; background: var(--red); color: #fff; }
.skip:focus { left: 8px; }
.stack { display: flex; flex-direction: column; gap: 16px; }

.eyebrow { font: 500 12px/1.4 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--red-text); }
.eyebrow a { color: inherit; text-decoration: none; }
.eyebrow a:hover { color: var(--fg); }
.lead { font-size: clamp(16px, 2vw, 18px); color: var(--muted); max-width: 58ch; text-wrap: pretty; }
.arrow-link { font: 500 13px var(--mono); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; color: var(--red-text); }
.arrow-link:hover { color: var(--fg); }

/* Fondo topográfico: curvas de nivel + cuadrícula, solo CSS */
.topo-bg {
  background-color: var(--bg);
  background-image:
    linear-gradient(180deg, rgba(14, 15, 17, 0) 50%, var(--bg) 100%),
    repeating-radial-gradient(ellipse 120% 90% at 85% 30%, transparent 0 34px, rgba(195, 3, 29, .09) 34px 35px),
    repeating-radial-gradient(ellipse at 4% 120%, transparent 0 26px, rgba(237, 235, 230, .04) 26px 27px),
    linear-gradient(rgba(237, 235, 230, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(237, 235, 230, .025) 1px, transparent 1px);
  background-size: auto, auto, auto, 64px 64px, 64px 64px;
}

/* Paneles */
.panel { background: var(--panel); border: 1px solid var(--line); }

/* Botones: rectos, condensados, en mayúsculas */
.btn { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 22px; background: var(--red); color: #fff; border: 1px solid var(--red); font: 700 18px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--red-hi); border-color: var(--red-hi); color: #fff; }
.btn:active { background: #9a0217; }
.btn-line { background: transparent; color: var(--fg); border-color: var(--muted); }
.btn-line:hover, .btn-line[aria-expanded="true"] { background: transparent; color: var(--red-text); border-color: var(--red-text); }
.btn-lg { min-height: 54px; padding: 0 26px; font-size: 20px; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 16px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Barra superior */
.bar { position: sticky; top: 0; z-index: 50; background: rgba(14, 15, 17, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bar-in { height: 64px; display: flex; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; flex: none; color: var(--fg); text-decoration: none; }
.brand:hover { color: var(--fg); }
.brand img { display: block; width: 43px; height: auto; }
.brand-name { display: flex; flex-direction: column; font: 800 15px/.95 var(--display); letter-spacing: .16em; text-transform: uppercase; }
.brand-name span + span { color: var(--red); letter-spacing: .235em; }
.nav { display: flex; height: 100%; margin-left: auto; }
.nav a { display: flex; align-items: center; height: 100%; padding: 0 12px; color: var(--muted); text-decoration: none; font: 600 17px var(--display); letter-spacing: .08em; text-transform: uppercase; }
.nav a:hover { color: var(--fg); }
.nav a[aria-current] { color: var(--fg); box-shadow: inset 0 -2px 0 var(--red); }
.bar-actions { display: flex; align-items: center; gap: 14px; flex: none; }
.nav-account { display: inline-flex; align-items: center; gap: 8px; color: var(--fg); text-decoration: none; font: 600 17px var(--display); letter-spacing: .06em; text-transform: uppercase; }
.nav-account:hover { color: var(--red-text); }
.nav-account img { border-radius: 50%; border: 1px solid var(--line-2); }
.nav-account span { max-width: 14ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Menú móvil (sin JS: <details>) */
.menu { display: none; margin-left: auto; }
.menu summary { list-style: none; width: 44px; height: 44px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; background: var(--panel); border: 1px solid var(--line); cursor: pointer; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary span { width: 18px; height: 2px; background: var(--fg); transition: transform .2s, opacity .2s; }
.menu[open] summary span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu[open] summary span:nth-child(2) { opacity: 0; }
.menu[open] summary span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
/* .bar tiene backdrop-filter: el fixed se mide contra la barra, no contra la pantalla → alto explícito */
.menu-panel { position: fixed; left: 0; right: 0; top: 100%; height: calc(100vh - 64px); height: calc(100dvh - 64px); overscroll-behavior: contain; display: flex; flex-direction: column; padding: 8px var(--gutter) 24px; background: var(--bg); border-top: 1px solid var(--line); overflow: auto; }
.menu-panel a:not(.btn) { display: flex; align-items: center; min-height: 60px; border-bottom: 1px solid var(--line); color: var(--fg); text-decoration: none; font: 700 30px var(--display); letter-spacing: .04em; text-transform: uppercase; }
.menu-panel a[aria-current] { color: var(--red-text); }
.menu-panel .btn { margin-top: 24px; min-height: 52px; }

/* Encabezado de páginas interiores */
.page-head { border-bottom: 1px solid var(--line); }
.page-head-in { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: clamp(40px, 8vw, 96px); padding-bottom: clamp(32px, 5vw, 56px); }
.page-head-in > div:first-child { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.page-head h1 { overflow-wrap: anywhere; }
.page-head .match-line { margin-top: 4px; }

/* Landing: portada */
.hero { border-bottom: 1px solid var(--line); }
.hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: center; padding-top: clamp(48px, 8vw, 104px); padding-bottom: clamp(72px, 9vw, 120px); }
.hero-text { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.hero-title { display: flex; align-items: center; gap: clamp(14px, 2vw, 22px); }
.hero-mark { width: clamp(84px, 11vw, 150px); height: auto; flex: none; }
.hero-name { display: flex; flex-direction: column; font-size: clamp(48px, 6.2vw, 92px); line-height: .86; letter-spacing: .03em; }
.hero-name .red { letter-spacing: .085em; }
.hero-account { margin-top: -6px; }
.join { padding: 20px; display: flex; flex-direction: column; gap: 12px; max-width: 34rem; }
.join-copied { color: var(--muted); font-size: 15px; }
.join-code { display: block; font: 500 15px/1.4 var(--mono); color: var(--fg); word-break: break-all; padding: 12px 14px; background: var(--bg); border: 1px solid var(--line-2); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; color: var(--muted); }
.steps li { display: flex; gap: 12px; }
.steps span { font: 600 14px/1.6 var(--mono); color: var(--red-text); }
.join .btn-line { font-family: var(--display); }

/* Marco del mapa con miras en las esquinas */
.frame { position: relative; min-width: 0; padding: 14px; border: 1px solid var(--line); background: rgba(22, 24, 28, .6); }
.frame::before, .frame::after { content: ''; position: absolute; width: 18px; height: 18px; border: 2px solid var(--red); pointer-events: none; }
.frame::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.frame::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.frame-label { position: absolute; top: 12px; left: 16px; z-index: 1; font: 500 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* Mapa topográfico (topo.js) */
.topo { display: block; width: 100%; height: auto; aspect-ratio: 800 / 520; overflow: hidden; }
.contour { fill: none; stroke: var(--contour); stroke-width: 1; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.4s cubic-bezier(.3, .6, .2, 1) forwards; animation-delay: calc(var(--i) * 45ms); }
.contour.index { stroke: var(--contour-index); stroke-width: 1.6; }
.cota { font: 500 11px var(--mono); fill: var(--muted); text-anchor: middle; opacity: 0; animation: fade .6s 1.2s forwards; }
.summit path { fill: var(--red); }
.summit text { font: 800 20px var(--display); text-transform: uppercase; letter-spacing: .04em; fill: var(--fg); paint-order: stroke; stroke: var(--panel); stroke-width: 4px; }
.summit .summit-sub { font: 500 11px var(--mono); text-transform: none; letter-spacing: .06em; fill: var(--muted); stroke-width: 3px; }
.route-trail { fill: none; stroke: var(--fc); stroke-width: 2; stroke-dasharray: 2 7; stroke-linecap: round; opacity: .55; }
.route-progress { fill: none; stroke: var(--fc); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 0 1; transition: stroke-dasharray 1.4s cubic-bezier(.3, .6, .2, 1); }
.route-marker { transition: transform 1.4s cubic-bezier(.3, .6, .2, 1); }
.route-marker circle { fill: var(--fc); stroke: var(--bg); stroke-width: 3; }
.route-score { font: 800 26px var(--display); fill: var(--fg); paint-order: stroke; stroke: var(--bg); stroke-width: 5px; }
.route.leading .route-marker circle { r: 11; }
.offline .route { opacity: .35; filter: grayscale(1); }

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* Franja de estado (se monta sobre el borde de la portada) */
.strip-wrap { position: relative; margin-top: -36px; }
.strip-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.strip-body { padding: 16px; }
.live-tag { display: inline-flex; align-items: center; gap: 10px; font: 600 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--fg); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(60, 207, 110, .15); animation: pulse 2s ease-in-out infinite; }
.offline .dot { background: var(--muted); box-shadow: none; animation: none; }
.match-line { color: var(--muted); font: 400 14px/1.6 var(--mono); }
.match-line strong { color: var(--fg); font-weight: 600; }

/* Secciones */
.section { padding-top: var(--space); }
.section-head { display: flex; flex-direction: column; gap: 10px; margin: var(--space) 0 24px; }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: clamp(32px, 5vw, 64px); align-items: start; }

/* Lista numerada en panel (reglas, pasos) */
.numbered { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.numbered li { display: flex; gap: 16px; padding: 20px; background: var(--bg); }
.numbered .num { font: 600 15px/1.5 var(--mono); color: var(--red-text); }
.numbered h3 { margin-bottom: 4px; }
.numbered p { color: var(--muted); font-size: 15px; }
.numbered .actions { margin-top: 14px; }

/* Bloque destacado (VIP, cupos) */
.callout { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 32px; align-items: center; padding: clamp(24px, 4vw, 48px); border: 1px solid var(--red); background-color: var(--panel); background-image: repeating-radial-gradient(circle at 100% 0%, transparent 0 22px, rgba(195, 3, 29, .09) 22px 23px); }
.callout-tight { display: block; }
.callout-figure { display: flex; flex-direction: column; align-items: flex-start; }
.callout-big { font: 800 clamp(56px, 9vw, 96px)/.9 var(--display); color: var(--red-text); }
.callout-of { color: var(--muted); font-size: .5em; }
.callout-small { font: 500 13px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* Pie */
.foot { margin-top: var(--space); border-top: 1px solid var(--line); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; padding-top: 32px; padding-bottom: 32px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot-links a { font: 500 13px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
.foot-links a:hover { color: var(--fg); }
.foot-note { flex-basis: 100%; padding-top: 20px; border-top: 1px solid var(--line); font: 400 12px var(--mono); color: var(--muted); letter-spacing: .04em; }

/* /partida */
.match { padding-top: 32px; display: flex; flex-direction: column; gap: 20px; }
.ending { padding: 14px 18px; border: 1px solid var(--red); background: rgba(195, 3, 29, .12); font: 700 22px var(--display); text-transform: uppercase; letter-spacing: .04em; }
.track-panel { padding: 16px 20px 20px; }
.track { position: relative; margin-top: 12px; height: 92px; --goal: 92px; }
.track-line { position: absolute; left: 0; right: var(--goal); top: 44px; height: 2px; background: repeating-linear-gradient(90deg, var(--line-2) 0 6px, transparent 6px 12px); }
.track-mark { position: absolute; top: 0; left: calc((100% - var(--goal)) * var(--p) / 100); transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; transition: left 1.2s cubic-bezier(.3, .6, .2, 1); }
.track-mark::after { content: ''; order: 2; width: 18px; height: 18px; border-radius: 50%; background: var(--fc); border: 3px solid var(--panel); margin-top: 2px; }
.track-score { order: 1; font: 800 30px/1 var(--display); color: var(--fc); font-variant-numeric: tabular-nums; }
.track-name { order: 3; margin-top: 4px; font: 500 12px var(--mono); color: var(--muted); white-space: nowrap; }
.track-goal { position: absolute; left: calc(100% - var(--goal) + 14px); top: 18px; display: flex; flex-direction: column; align-items: flex-start; font: 800 18px/1 var(--display); text-transform: uppercase; }
.track-goal::before { content: ''; width: 0; height: 0; border-left: 9px solid transparent; border-right: 9px solid transparent; border-bottom: 16px solid var(--red); margin: 0 0 4px; }
.track-goal-pts { font: 500 12px var(--mono); color: var(--muted); margin-top: 3px; }
.teams { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.team header { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); box-shadow: inset 0 3px 0 var(--fc); }
.team h2 { font-size: 28px; }
.team.leading h2::after { content: ''; display: inline-block; width: 0; height: 0; margin-left: 10px; border-left: 8px solid transparent; border-right: 8px solid transparent; border-bottom: 14px solid var(--red); }
.team-score { font: 800 40px/1 var(--display); color: var(--fc); font-variant-numeric: tabular-nums; }
.roster { list-style: none; margin: 0; padding: 0; }
.roster li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 16px; border-bottom: 1px solid var(--line); font-size: 15px; }
.roster li:last-child { border-bottom: 0; }
.roster li span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.roster .kd { color: var(--muted); font: 400 13px/1.6 var(--mono); white-space: nowrap; }
.roster li:first-child:not(.empty) { font-weight: 600; }
.roster .empty { color: var(--muted); justify-content: flex-start; }
.team-none { --fc: var(--muted); }

/* /vip */
.vip { padding-top: 24px; }
.profile { display: block; width: 100%; height: auto; margin: 8px 0 24px; overflow: visible; }
.profile-fill { fill: var(--panel); }
.profile-ridge { fill: none; stroke: var(--line-2); stroke-width: 2; }
.peak circle { fill: var(--fg); stroke: var(--bg); stroke-width: 3; }
.peak text { font: 800 22px var(--display); text-transform: uppercase; letter-spacing: .04em; fill: var(--fg); text-anchor: middle; }
.peak .peak-price { font: 500 14px var(--mono); fill: var(--muted); }
.peak-top path { fill: var(--red); }
.peak-top text { text-anchor: end; }
.tiers { overflow-x: auto; }
.tiers table { width: 100%; min-width: 680px; border-collapse: collapse; }
.tiers th, .tiers td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.tiers thead th { font: 800 24px/1 var(--display); text-transform: uppercase; padding-top: 18px; padding-bottom: 16px; }
.tiers thead th.top { color: var(--red-text); }
.tiers tbody th { font-weight: 500; color: var(--fg); width: 28%; font-size: 15px; }
.tiers td { color: var(--muted); font-size: 15px; }
.tiers .top { background: rgba(195, 3, 29, .07); box-shadow: inset 1px 0 0 rgba(195, 3, 29, .4), inset -1px 0 0 rgba(195, 3, 29, .4); }
.tiers .yes { color: var(--fg); font-weight: 700; }
.tiers .no { color: var(--line-2); }
.tiers tfoot th { font: 800 22px var(--display); text-transform: uppercase; color: var(--fg); }
.tiers tfoot td, .tiers tfoot th { border-bottom: 0; padding-bottom: 20px; }
.price { display: block; font: 800 36px/1 var(--display); color: var(--fg); }
.price-alt { font-size: 26px; margin-top: 12px; }
.usd { display: block; font: 400 12px/1.5 var(--mono); color: var(--muted); margin: 6px 0 0; }
.tiers .btn { margin-top: 14px; padding: 0 12px; font-size: 15px; white-space: nowrap; }
.gauge { height: 6px; background: var(--panel-2); }
.gauge span { display: block; height: 100%; background: var(--red); }
.legal { margin-top: 40px; color: var(--muted); font-size: 14px; max-width: 70ch; }

/* /cuenta */
.account-id { display: flex; align-items: center; gap: 18px; }
.account-id img { border-radius: 50%; border: 1px solid var(--line-2); }
.account-id h1 { font-size: clamp(40px, 7vw, 72px); overflow-wrap: anywhere; }
.account { padding-top: 32px; max-width: 900px; margin-left: max(0px, calc((100vw - var(--max)) / 2)); }
.sheet { margin: 0; }
.sheet > div { display: grid; grid-template-columns: 10rem 1fr; gap: 16px; padding: 20px; border-bottom: 1px solid var(--line); }
.sheet > div:last-child { border-bottom: 0; }
.sheet dt { font: 800 24px/1.1 var(--display); text-transform: uppercase; }
.sheet dd { margin: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.who { display: flex; align-items: center; gap: 12px; }
.who img { border: 1px solid var(--line-2); }
.who strong { display: block; }
.strikes { display: flex; align-items: center; gap: 8px; }
.strike { width: 18px; height: 18px; border: 1px solid var(--line-2); background: var(--panel-2); }
.strike.on { background: var(--red); border-color: var(--red); }
.warn { color: var(--warn); }
.notice { padding: 12px 16px; margin-bottom: 20px; border: 1px solid var(--line); border-left: 3px solid var(--muted); background: var(--panel); }
.notice-ok { border-left-color: var(--ok); }
.notice-warn { border-left-color: var(--warn); }
.notice-error { border-left-color: var(--red); }
.logout { display: flex; gap: 24px; margin-top: 24px; }
.seed-bar { width: 100%; max-width: 360px; height: 6px; background: var(--panel-2); }
.seed-bar span { display: block; height: 100%; background: var(--ok); }
/* Torneo en /cuenta */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
#torneo { scroll-margin-top: 90px; }
#torneo .seed-bar span { background: var(--red); }
.t-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.t-form { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.t-input { min-height: 40px; padding: 0 12px; background: var(--panel-2); color: var(--fg); border: 1px solid var(--line-2); font: inherit; width: min(100%, 240px); }
.t-input:focus { outline: 2px solid var(--red-text); outline-offset: 1px; }
.t-inv { width: 100%; padding: 12px 14px; border: 1px solid var(--line-2); border-left: 3px solid var(--red); display: flex; flex-direction: column; gap: 10px; }
.t-more { width: 100%; border-top: 1px solid var(--line); padding-top: 10px; }
.t-more summary { cursor: pointer; font: 700 18px/1.4 var(--display); text-transform: uppercase; letter-spacing: .04em; }
.t-more summary:hover { color: var(--red-text); }
.t-teams { margin: 12px 0 0; padding-left: 1.4em; }
.t-teams li { margin-bottom: 10px; }
.t-teams li::marker { color: var(--red-text); font-family: var(--mono); }
.t-teams .muted { display: block; font-size: 14px; }
.t-teams .mono + .muted, .t-teams strong + .muted { display: inline; }
.t-board { width: 100%; }
.t-bases h4 { font: 800 20px/1.2 var(--display); text-transform: uppercase; margin: 18px 0 6px; }
.t-bases p { margin: 0 0 8px; max-width: 70ch; }

/* /terminos y /privacidad */
.legal-doc { padding-top: 32px; max-width: 840px; margin-left: max(0px, calc((100vw - var(--max)) / 2)); }
.legal-doc .lead { color: var(--fg); max-width: none; margin-bottom: 8px; }
.legal-doc section { padding-top: 32px; }
.legal-doc h2 { font-size: clamp(24px, 3.4vw, 32px); margin-bottom: 12px; }
.legal-doc p { margin-bottom: 12px; }
.legal-doc ul { margin: 0; padding-left: 1.2em; }
.legal-doc li { margin: 0 0 8px; }
.legal-doc li::marker { color: var(--red-text); }

/* /ranking */
.ranking .section-head:first-child { margin-top: 48px; }
.jump { display: flex; gap: 24px; margin-top: 4px; }
.boards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.board header { padding: 16px; border-bottom: 1px solid var(--line); }
.board h3 { font-size: 28px; font-weight: 800; }
.board .hint { margin-top: 6px; font-size: 14px; color: var(--muted); }
.board ol { list-style: none; margin: 0; padding: 0; }
.board li { display: flex; align-items: baseline; gap: 14px; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.board li:last-child { border-bottom: 0; }
.board .pos { flex: none; font: 600 13px var(--mono); color: var(--muted); }
.board .podium .pos { color: var(--red-text); }
.board .podium .who { font-weight: 600; }
.board .who { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board .val { flex: none; font: 500 14px var(--mono); }
.board .empty { padding: 16px; }
.lead-sm { max-width: 70ch; }
.clans h3 { font-size: 26px; margin: 32px 0 12px; }
.note-small { margin-top: 32px; }

/* Tablas de clanes */
.table-wrap { overflow-x: auto; }
.empty-panel { padding: 16px; }
.clan-table { width: 100%; min-width: 640px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.clan-table th, .clan-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.clan-table tbody tr:last-child > * { border-bottom: 0; }
.clan-table thead th { font: 500 11px var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .12em; background: var(--panel-2); }
.clan-table tbody th { font-weight: 500; }
.clan-table tbody th a { color: var(--fg); text-decoration: none; }
.clan-table tbody th a:hover b { color: var(--red-text); }
.clan-table .n { text-align: right; }
.clan-table td { color: var(--muted); font-family: var(--mono); font-size: 14px; }
.clan-table .strong { font-weight: 600; color: var(--fg); }
.clan-table td.pos { width: 2ch; }
.clan-table .podium td.pos { color: var(--red-text); }
.swatch { display: inline-block; width: .7em; height: .7em; margin-right: .45em; background: var(--line-2); vertical-align: .05em; }
.forming { margin-top: 12px; font-size: 14px; }
.forming a { color: var(--fg); }
.clan-page h1 .swatch { width: .45em; height: .45em; vertical-align: .12em; }
.clan-page { padding-top: 32px; }
.clan-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1px; margin: 0; background: var(--line); border: 1px solid var(--line); }
.clan-stats div { padding: 16px; background: var(--panel); }
.clan-stats dt { font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.clan-stats dd { margin: 6px 0 0; font: 800 36px/1 var(--display); }
.clan-stats dd small { display: block; margin-top: 6px; font: 400 13px var(--mono); color: var(--muted); }
.tag-leader { margin-left: 8px; padding: 1px 6px; font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--red-text); border: 1px solid var(--red); }

/* Páginas de paso (vinculación, error) */
.card-page { padding: clamp(48px, 9vw, 112px) 0; }
.card { max-width: 640px; margin: 0 auto; padding: clamp(24px, 4vw, 40px); display: flex; flex-direction: column; gap: 16px; }
.card h1 { font-size: clamp(36px, 6vw, 52px); }
.card .numbered { margin-top: 4px; }
.card-foot { padding-top: 16px; border-top: 1px solid var(--line); }
.choices { display: grid; gap: 8px; }
.choices form { margin: 0; }
.choice { width: 100%; display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; align-items: center; padding: 14px 16px; text-align: left; background: var(--bg); border: 1px solid var(--line); color: var(--fg); font: inherit; cursor: pointer; }
.choice:hover { border-color: var(--red-text); }
.choice .mono { grid-column: 1; }
.choice-go { grid-column: 2; grid-row: 1 / 3; color: var(--red-text); font-size: 20px; }

/* Próximamente */
.soon { display: grid; place-items: center; min-height: 100vh; text-align: center; }
.soon img { width: min(320px, 70vw); height: auto; margin-bottom: 20px; }

/* Responsivo */
@media (max-width: 1080px) {
  .nav, .bar-actions { display: none; }
  .menu { display: block; }
}
@media (max-width: 900px) {
  .hero-in { grid-template-columns: minmax(0, 1fr); }
  .teams { grid-template-columns: minmax(0, 1fr); }
  .callout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .sheet > div { grid-template-columns: 1fr; gap: 8px; }
  .hero-mark { width: 72px; }
  .frame { padding: 6px; }
  .frame-label { display: none; }
  .track-name { display: none; }
  .actions .btn-lg { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  .contour { animation: none; stroke-dashoffset: 0; }
  .cota { animation: none; opacity: 1; }
  .route-progress, .route-marker, .track-mark { transition: none; }
  .dot { animation: none; }
}

/* /preguntas */
.faq { padding-top: 32px; max-width: 900px; margin-left: max(0px, calc((100vw - var(--max)) / 2)); display: flex; flex-direction: column; }
.faq-item { border: 1px solid var(--line); background: var(--panel); }
.faq-item + .faq-item { border-top: 0; }
.faq-item summary { list-style: none; display: flex; align-items: baseline; gap: 16px; padding: 18px 20px; cursor: pointer; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; margin-left: auto; font: 500 22px/1 var(--mono); color: var(--red-text); }
.faq-item[open] summary::after { content: '−'; }
.faq-item summary:hover h2 { color: var(--red-text); }
.faq-item h2 { font-size: clamp(20px, 2.6vw, 26px); font-weight: 700; line-height: 1.1; }
.faq-item .num { font: 600 15px var(--mono); color: var(--red-text); }
.faq-a { display: flex; flex-direction: column; gap: 10px; padding: 0 20px 20px 56px; color: var(--muted); }
.faq-a strong { color: var(--fg); }
.faq-cta { margin-top: 32px; }
@media (max-width: 600px) { .faq-a { padding-left: 20px; } }
