/* =====================================================
   GAMERANK v2 — estilos
   ===================================================== */
:root {
  --bg: #0C0D11;
  --bg-dot: #1A1C23;
  --surface: #15171E;
  --surface-2: #1C1F28;
  --surface-3: #0F1015;
  --line: #262A35;
  --line-2: #2C303C;
  --line-3: #333846;
  --text: #ECEEF3;
  --text-2: #C9CEDA;
  --muted: #A3A9B8;
  --dim: #8A91A3;
  --brand: #2E6BE6;
  --brand-ink: #FFFFFF;
  --brand-soft: #16233F;
  --brand-text: #7FAEFF;
  --vote: #3DDC97;
  --vote-hover: #5BE6AA;
  --vote-ink: #062417;
  --vote-bg: #0F1A15;
  --vote-line: #1E4A37;
  --vote-soft: #173527;
  --vote-text: #A9C7B8;
  --gold: #F2C14E;
  --gold-ink: #2B1F03;
  --gold-bg: #17150F;
  --gold-line: #5A4718;
  --gold-soft: #2A2310;
  --gold-text: #D9CDB0;
  --down: #FF8A8A;
  --blue: #B28CFF;
  --danger: #FF6B6B;
  --shadow: 0 18px 40px rgba(0,0,0,.45);
  --radius: 18px;
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Bricolage Grotesque', 'Manrope', system-ui, sans-serif;
  color-scheme: dark;
}
[data-theme="light"] {
  --bg: #F5F4F1;
  --bg-dot: #E4E2DC;
  --surface: #FFFFFF;
  --surface-2: #F0EEEA;
  --surface-3: #F7F6F3;
  --line: #E2DFD8;
  --line-2: #D6D2CA;
  --line-3: #C9C4BA;
  --text: #17181C;
  --text-2: #33363E;
  --muted: #5B606C;
  --dim: #6B707C;
  --brand: #1F5FD6;
  --brand-ink: #FFFFFF;
  --brand-soft: #E3ECFD;
  --brand-text: #1F5FD6;
  --vote: #17A86B;
  --vote-hover: #128A58;
  --vote-ink: #FFFFFF;
  --vote-bg: #EAF7F0;
  --vote-line: #B9E4CE;
  --vote-soft: #D4F0E2;
  --vote-text: #2F5A45;
  --gold: #B7860B;
  --gold-ink: #FFFFFF;
  --gold-bg: #FDF7E7;
  --gold-line: #E8D39A;
  --gold-soft: #F8EBC6;
  --gold-text: #6B5A2E;
  --down: #D64545;
  --blue: #7C4FD6;
  --danger: #D64545;
  --shadow: 0 18px 40px rgba(30,25,15,.14);
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh;
  background-color: var(--bg);
  background-image: radial-gradient(var(--bg-dot) 1px, transparent 1px);
  background-size: 22px 22px;
  color: var(--text); font-family: var(--font); font-size: 15px; line-height: 1.5;
}
a { color: var(--brand-text); text-decoration: none; }
a:hover { text-decoration: none; filter: brightness(1.12); }
img { max-width: 100%; }
h1, h2, h3 { margin: 0; line-height: 1.15; }
p { margin: 0; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.ico { flex-shrink: 0; vertical-align: middle; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.display { font-family: var(--display); letter-spacing: -0.02em; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.wrap-sm { max-width: 820px; margin: 0 auto; padding: 0 20px; }
.wrap-md { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.spacer { flex: 1; }
.center { text-align: center; }
.eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 18px; border-radius: 12px; border: 1px solid transparent;
  font-weight: 800; font-size: 14px; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s, transform .1s;
  color: var(--text); background: transparent; text-decoration: none;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { filter: brightness(1.08); color: var(--brand-ink); }
.btn-vote { background: var(--vote); color: var(--vote-ink); }
.btn-vote:hover { background: var(--vote-hover); color: var(--vote-ink); filter: none; }
.btn-gold { background: var(--gold); color: var(--gold-ink); }
.btn-gold:hover { color: var(--gold-ink); filter: brightness(1.06); }
.btn-ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); filter: none; }
.btn-soft { background: var(--surface-2); color: var(--text-2); }
.btn-soft:hover { color: var(--text); filter: none; background: var(--line); }
.btn-danger { border-color: var(--line); color: var(--danger); }
.btn-sm { height: 36px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.btn-lg { height: 54px; padding: 0 26px; font-size: 16px; border-radius: 14px; }
.btn-block { width: 100%; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line);
  background: transparent; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.soc { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line); color: var(--muted); display: inline-flex; align-items: center; justify-content: center; }
.soc:hover { background: var(--surface-2); color: var(--text); filter: none; }

/* ---------- Etiquetas ---------- */
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 8px; background: var(--surface-2); color: var(--text-2); font-size: 12px; font-weight: 700; white-space: nowrap; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.flag { width: 18px; height: 12px; border-radius: 2px; object-fit: cover; display: inline-block; }
.flag-int { display: inline-flex; width: auto; height: auto; color: var(--muted); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 800; }
.pill-gold { background: var(--gold-soft); color: var(--gold); }
.pill-line { border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-weight: 700; }
.badge-float { position: absolute; top: -11px; left: 18px; padding: 3px 10px; border-radius: 999px; background: var(--gold); color: var(--gold-ink); font-size: 11px; font-weight: 800; letter-spacing: .08em; display: inline-flex; align-items: center; gap: 5px; z-index: 1; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--vote); display: inline-block; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); }
.site-header .wrap { display: flex; align-items: center; gap: 14px; min-height: 68px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
.brand:hover { filter: none; color: var(--text); }
.logo { display: block; height: 40px; width: auto; }
.logo-l { display: none; }
[data-theme="light"] .logo-d { display: none; }
[data-theme="light"] .logo-l { display: block; }
.brand-mark { width: 36px; height: 36px; border-radius: 50% 50% 46% 46%; background: var(--brand); display: flex; align-items: center; justify-content: center; box-shadow: inset 0 -5px 0 rgba(0,0,0,.18); }
.brand-name { font-family: var(--display); font-weight: 800; font-size: 21px; letter-spacing: -0.02em; }

.game-switch { position: relative; }
.game-switch > summary { list-style: none; height: 40px; padding: 0 12px 0 8px; border-radius: 11px; border: 1px solid var(--line-3); background: var(--surface); color: var(--text); font-size: 14px; font-weight: 800; cursor: pointer; display: flex; align-items: center; gap: 8px; }
.game-switch > summary::-webkit-details-marker { display: none; }
.game-switch > summary:hover { background: var(--surface-2); }
.game-code { min-width: 24px; height: 24px; padding: 0 4px; border-radius: 7px; background: var(--brand-soft); color: var(--brand-text); font-size: 10px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.game-code.off { background: var(--surface-2); color: var(--dim); }
.game-menu { position: absolute; top: 48px; left: 0; z-index: 60; width: 290px; padding: 8px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface); box-shadow: var(--shadow); }
.game-menu .eyebrow { padding: 6px 10px 8px; }
.game-item { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 10px; color: var(--text); }
.game-item:hover { background: var(--surface-2); filter: none; color: var(--text); }
.game-item.current { background: var(--surface-2); }
.game-item.disabled { color: var(--muted); cursor: default; }
.game-item.disabled:hover { background: transparent; }
.game-item .game-code { width: 32px; height: 32px; font-size: 11px; border-radius: 8px; }
.game-item small { display: block; color: var(--muted); font-size: 12px; font-weight: 600; }

.main-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.main-nav a { padding: 9px 14px; border-radius: 10px; color: var(--muted); font-weight: 700; font-size: 14px; }
.main-nav a:hover { color: var(--text); background: var(--surface-2); filter: none; }
.main-nav a.on { color: var(--text); background: var(--surface-2); }
.header-actions { display: flex; gap: 8px; align-items: center; margin-left: auto; }
.user-menu { position: relative; }
.user-menu > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px 0 6px; border-radius: 12px; border: 1px solid var(--line); font-weight: 700; font-size: 14px; }
.user-menu > summary::-webkit-details-marker { display: none; }
.avatar { width: 32px; height: 32px; border-radius: 9px; background: var(--brand-soft); color: var(--brand-text); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; }
.dropdown { position: absolute; right: 0; top: 52px; z-index: 60; min-width: 220px; padding: 6px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface); box-shadow: var(--shadow); }
.dropdown a, .dropdown button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 9px; color: var(--text-2); font-weight: 600; font-size: 14px; border: 0; background: none; cursor: pointer; text-align: left; }
.dropdown a:hover, .dropdown button:hover { background: var(--surface-2); color: var(--text); filter: none; }
.nav-toggle, .show-sm { display: none !important; }
.nav-theme { display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 10px; border: 0; background: none; color: var(--muted); font-weight: 700; font-size: 14px; cursor: pointer; text-align: left; }

/* ---------- Publicidad ---------- */
.ad { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ad img, .ad video { display: block; border-radius: 12px; max-width: 100%; height: auto; }
.ad-label { font-size: 11px; font-weight: 700; letter-spacing: .14em; color: var(--dim); }
.ad-empty { border-radius: 12px; border: 1px dashed var(--line-3); background: color-mix(in srgb, var(--surface) 70%, transparent); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--muted); font-weight: 700; font-size: 14px; text-align: center; padding: 16px; max-width: 100%; }
.ad-empty:hover { border-color: var(--brand); color: var(--text); filter: none; }
.ad-empty small { font-weight: 600; color: var(--dim); font-size: 13px; }

/* ---------- Hero ---------- */
.hero { padding: 40px 0 26px; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.hero-text { min-width: 0; }
/* Título de la portada: una línea. Cambia el tamaño en font-size (mín, ideal, máx) */
.hero h1 { font-family: var(--display); font-weight: 800; font-size: clamp(26px, 3.2vw, 40px); line-height: 1.1; letter-spacing: -0.03em; margin: 16px 0 0; }
.hero h1 em { font-style: normal; color: var(--brand-text); }
.hero p { max-width: 640px; color: var(--muted); font-size: 17px; }
.quick { display: flex; gap: 10px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text-2); font-weight: 700; font-size: 14px; }
.chip:hover { border-color: var(--line-3); color: var(--text); filter: none; }
.chip.on { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.chip-gold { border-color: var(--gold-line); background: var(--gold-soft); color: var(--gold); }

/* ---------- Layout con barra lateral ---------- */
.layout { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.layout-main { flex: 999 1 640px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.layout-side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.sec-head { display: flex; align-items: center; gap: 12px; margin: 6px 0 4px; }
.sec-head h2 { font-family: var(--display); font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.sec-head .line { flex: 1; height: 1px; background: var(--line); }
.sec-head .count { font-size: 13px; color: var(--dim); font-weight: 600; }

/* ---------- Recién abiertos ---------- */
.fresh { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.fresh a { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--text); }
.fresh a:hover { border-color: var(--line-3); filter: none; }
.fresh .when { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; color: var(--gold); letter-spacing: .04em; text-transform: uppercase; }
.fresh .nm { font-weight: 800; font-size: 16px; }
.fresh .meta { font-size: 13px; color: var(--muted); }

/* ---------- Tarjeta de servidor ---------- */
.srv { position: relative; border-radius: var(--radius); padding: 18px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 18px; align-items: stretch; transition: border-color .2s; }
.srv:hover { border-color: var(--line-3); }
.srv.is-premium { background: var(--gold-bg); border-color: var(--gold); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 9%, transparent); }
.srv-rank { width: 92px; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.srv-pos { font-family: var(--display); font-weight: 800; font-size: 28px; line-height: 1; letter-spacing: -0.03em; color: var(--muted); }
.srv-pos.p1 { color: var(--gold); font-size: 34px; }
.srv-pos.p2 { color: #D5DAE3; font-size: 34px; }
.srv-pos.p3 { color: #E09A62; font-size: 34px; }
[data-theme="light"] .srv-pos.p2 { color: #7D8696; }
[data-theme="light"] .srv-pos.p3 { color: #B66A2E; }
.trend { font-size: 12px; font-weight: 800; color: var(--dim); }
.trend.up { color: var(--vote); }
.trend.down { color: var(--down); }
.trend.new { color: var(--gold); }
.srv-rank .btn { width: 100%; }
.srv-body { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.banner { display: block; width: 100%; height: auto; max-width: 560px; aspect-ratio: 468 / 60; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-3); }
.banner-ph { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 20px; color: var(--text); background: linear-gradient(110deg, #1B2A44, #2C1F45); }
.banner-ph b { font-family: var(--display); font-size: clamp(16px, 2.4vw, 26px); letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.banner-ph span { font-size: 12px; font-weight: 800; letter-spacing: .1em; color: #C9CEDA; white-space: nowrap; }
.srv-name { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.srv-name h3 { font-size: 19px; font-weight: 800; letter-spacing: -0.01em; }
.srv-name h3 a { color: var(--text); }
.srv-desc { color: var(--muted); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-line; }
.srv-stats { width: 132px; flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 10px; text-align: right; }
.big-num { font-family: var(--display); font-weight: 800; font-size: 34px; line-height: 1; font-variant-numeric: tabular-nums; }
.num-label { font-size: 11px; font-weight: 800; letter-spacing: .1em; color: var(--dim); margin-top: 4px; text-transform: uppercase; }
.views { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 700; }
.socials { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

.featured { position: relative; border-radius: var(--radius); border: 1px solid var(--gold-line); background: var(--gold-bg); padding: 22px 18px 18px; display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.featured-info { flex: 1 1 220px; display: flex; flex-direction: column; gap: 8px; }
.featured-info .nm { font-weight: 800; font-size: 18px; color: var(--text); }
.featured-info .meta { color: var(--gold-text); font-size: 13px; }
.featured-empty { flex: 1 1 380px; min-width: 0; max-width: 560px; aspect-ratio: 468 / 60; border-radius: 10px; border: 1px dashed var(--gold-line); display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--gold); font-weight: 800; font-size: 15px; text-align: center; padding: 0 12px; }
.rot-dots { display: inline-flex; gap: 5px; margin-left: 6px; }
.rot-dots span { width: 6px; height: 6px; border-radius: 3px; background: var(--gold-line); }
.rot-dots span.on { width: 18px; background: var(--gold); }

/* ---------- Cajas laterales ---------- */
.box { border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); padding: 20px; }
.box h2 { font-size: 15px; font-weight: 800; display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.box-vote { border-color: var(--vote-line); background: var(--vote-bg); }
.box-vote p { color: var(--vote-text); font-size: 14px; }
.box-gold { border-color: var(--gold-line); background: var(--gold-bg); display: flex; flex-direction: column; gap: 10px; }
.box-gold p { color: var(--gold-text); font-size: 14px; }
.box-gold h2 { font-family: var(--display); font-size: 22px; letter-spacing: -0.01em; margin: 0; line-height: 1.15; }
.gift-link { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--gold-line); background: var(--gold-bg); color: var(--gold-text); font-size: 13px; }
.gift-link:hover { filter: none; border-color: var(--gold); }
.gift-link b { color: var(--gold); font-size: 14px; }
.gift-ico { width: 36px; height: 36px; border-radius: 10px; background: var(--gold-soft); color: var(--gold); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* ---------- Formularios ---------- */
.field { margin-bottom: 16px; }
.field:last-child { margin-bottom: 0; }
.label { display: block; font-size: 12px; font-weight: 800; letter-spacing: .08em; color: var(--dim); margin-bottom: 6px; text-transform: uppercase; }
.input, .select, .textarea { width: 100%; height: 46px; padding: 0 14px; border-radius: 11px; border: 1px solid var(--line-2); background: var(--surface-3); color: var(--text); font: inherit; font-size: 14px; }
.textarea { height: auto; min-height: 120px; padding: 12px 14px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand); }
.help { font-size: 12px; color: var(--dim); margin-top: 6px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border-radius: 12px; background: var(--surface-3); }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { height: 38px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; color: var(--muted); cursor: pointer; text-align: center; padding: 0 6px; }
.seg input:checked + label { background: var(--line); color: var(--text); }
.seg input:focus-visible + label { outline: 2px solid var(--brand); }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pills input { position: absolute; opacity: 0; pointer-events: none; }
.pills label { height: 36px; padding: 0 12px; border-radius: 999px; display: inline-flex; align-items: center; font-size: 13px; font-weight: 700; color: var(--text-2); border: 1px solid var(--line-2); cursor: pointer; }
.pills input:checked + label { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.pills input:focus-visible + label { outline: 2px solid var(--brand); }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-2); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--brand); }
.msg { display: none; padding: 12px 14px; border-radius: 11px; font-size: 14px; font-weight: 600; margin-bottom: 14px; }
.msg.show { display: block; }
.msg.err { background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); border: 1px solid color-mix(in srgb, var(--danger) 30%, transparent); }
.msg.ok { background: var(--vote-bg); color: var(--vote); border: 1px solid var(--vote-line); }
.msg.info { background: var(--gold-bg); color: var(--gold-text); border: 1px solid var(--gold-line); }

/* ---------- Páginas ---------- */
.page { padding: 36px 0 72px; }
.page-head { margin-bottom: 26px; max-width: 720px; }
.page-head h1 { font-family: var(--display); font-weight: 800; font-size: clamp(32px, 4.4vw, 44px); letter-spacing: -0.03em; line-height: 1.05; margin: 14px 0 10px; }
.page-head p { color: var(--muted); font-size: 16px; }
.card { border-radius: 22px; border: 1px solid var(--line); background: var(--surface); }
.card-pad { padding: 24px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 700; font-size: 14px; }
.back:hover { color: var(--text); filter: none; }

/* ---------- Votación ---------- */
.vote-body { padding: 32px 28px 30px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.vote-body h1 { font-family: var(--display); font-weight: 800; font-size: clamp(32px, 5vw, 44px); letter-spacing: -0.03em; }
.vote-body .desc { max-width: 560px; color: var(--muted); }
.verify { width: 100%; max-width: 440px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface-3); padding: 20px; text-align: left; display: flex; flex-direction: column; gap: 14px; }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.checks li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--dim); }
.checks .ck { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-3); flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; }
.checks li.ok { color: var(--text-2); }
.checks li.ok .ck { border: 0; background: var(--vote-soft); color: var(--vote); }
.checks li.bad { color: var(--danger); }
.checks li.bad .ck { border: 0; background: color-mix(in srgb, var(--danger) 15%, transparent); color: var(--danger); }
.checks li.wait .ck { border-top-color: var(--brand); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.spinner { width: 42px; height: 42px; border-radius: 50%; border: 4px solid var(--line-3); border-top-color: var(--brand); animation: spin 1s linear infinite; display: inline-block; }
.dropzone.busy { opacity: .6; pointer-events: none; }
.done-ico { width: 60px; height: 60px; border-radius: 50%; background: var(--vote); color: var(--vote-ink); display: flex; align-items: center; justify-content: center; }
details.faq-mini { max-width: 480px; font-size: 13px; color: var(--muted); }
details.faq-mini summary { cursor: pointer; font-weight: 700; color: var(--dim); list-style: none; }
details.faq-mini summary::-webkit-details-marker { display: none; }
details.faq-mini p { margin-top: 8px; }

/* ---------- Info del servidor ---------- */
.long-desc { color: var(--text-2); white-space: pre-line; overflow-wrap: anywhere; }
.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--surface-3); flex-wrap: wrap; }
.tabs button, .tabs a { height: 36px; padding: 0 14px; border-radius: 9px; border: 0; background: transparent; color: var(--muted); font-size: 13px; font-weight: 800; cursor: pointer; display: inline-flex; align-items: center; }
.tabs .on { background: var(--line); color: var(--text); }
.legend { display: flex; gap: 14px; font-size: 13px; font-weight: 700; color: var(--muted); flex-wrap: wrap; }
.legend i { width: 12px; height: 3px; border-radius: 2px; display: inline-block; margin-right: 6px; vertical-align: middle; }
.chart { width: 100%; height: 220px; display: block; }
.chart-labels { display: flex; justify-content: space-between; font-size: 12px; color: var(--dim); font-weight: 600; margin-top: 8px; gap: 4px; }
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 420px; }
.tbl th { text-align: right; padding: 10px 8px; border-bottom: 1px solid var(--line); color: var(--dim); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.tbl td { text-align: right; padding: 10px 8px; border-bottom: 1px solid var(--surface-2); font-variant-numeric: tabular-nums; }
.tbl th:first-child, .tbl td:first-child { text-align: left; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tile { padding: 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); }
.tile .big-num { font-size: 30px; }

/* ---------- Compra / Regalo ---------- */
.options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt label { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 14px; cursor: pointer; background: var(--surface-3); border: 1.5px solid var(--line-2); height: 100%; }
.opt input:checked + label { background: var(--gold-bg); border-color: var(--gold); }
.opt input:focus-visible + label { outline: 2px solid var(--brand); }
.opt input:disabled + label { opacity: .5; cursor: not-allowed; }
.opt .top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.opt .nm { font-weight: 800; font-size: 15px; color: var(--text); }
.opt .ds { font-size: 13px; color: var(--muted); }
.opt .pr { font-size: 14px; font-weight: 800; color: var(--gold); }
.opt .pr small { color: var(--dim); font-weight: 600; }
.radio { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-3); flex-shrink: 0; }
.opt input:checked + label .radio { border: 5px solid var(--gold); }
.cupos { font-size: 12px; font-weight: 700; color: var(--vote); }
.cupos.full { color: var(--danger); }
.summary { position: sticky; top: 88px; border-radius: var(--radius); border: 1px solid var(--gold-line); background: var(--gold-bg); padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.summary dl { margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.summary dl div { display: flex; justify-content: space-between; gap: 10px; }
.summary dt { color: var(--gold-text); }
.summary dd { margin: 0; font-weight: 800; text-align: right; }
.summary .total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--gold-line); padding-top: 14px; }
.summary .total b { font-family: var(--display); font-size: 28px; color: var(--gold); }
.summary ul { margin: 0; padding-left: 18px; font-size: 13px; color: var(--gold-text); display: flex; flex-direction: column; gap: 4px; }
.server-pick { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface-3); flex-wrap: wrap; }
.server-pick .banner { width: 234px; }
.dropzone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 140px; border-radius: 12px; border: 1px dashed var(--line-3); background: var(--surface-3); color: var(--muted); font-size: 14px; font-weight: 700; cursor: pointer; text-align: center; padding: 16px; }
.dropzone:hover { border-color: var(--brand); color: var(--text); }
.dropzone small { font-size: 12px; font-weight: 600; color: var(--dim); }
.placement { display: grid; grid-template-columns: 1fr 70px; gap: 6px; padding: 10px; border-radius: 12px; background: var(--surface-3); border: 1px solid var(--line); }
.placement div { border-radius: 6px; background: var(--surface-2); min-height: 12px; }
.placement .hl { background: var(--gold); }

/* ---------- Panel ---------- */
.list-row { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); flex-wrap: wrap; }
.list-row + .list-row { margin-top: 10px; }
.list-row .grow { flex: 1 1 240px; min-width: 0; }
.list-row .nm { font-weight: 800; }
.list-row .meta { font-size: 13px; color: var(--muted); }
.status { padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.st-active { background: var(--vote-soft); color: var(--vote); }
.st-pending { background: var(--gold-soft); color: var(--gold); }
.st-off { background: var(--surface-2); color: var(--dim); }
.empty { text-align: center; padding: 40px 20px; border-radius: var(--radius); border: 1px dashed var(--line-3); color: var(--muted); }
.empty b { display: block; color: var(--text); font-size: 17px; margin-bottom: 6px; }

/* ---------- FAQ y footer ---------- */
.faq { margin-top: 72px; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.faq div { padding: 22px; border-radius: 16px; border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 80%, transparent); }
.faq h3 { font-size: 16px; font-weight: 800; margin-bottom: 8px; }
.faq p { color: var(--muted); font-size: 14px; }
.site-footer { border-top: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 85%, black); margin-top: 40px; }
[data-theme="light"] .site-footer { background: var(--surface-2); }
.site-footer .wrap { padding-top: 20px; padding-bottom: 20px; display: flex; flex-direction: column; gap: 10px; font-size: 13px; color: var(--dim); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center; }
.site-footer nav a { color: var(--muted); font-weight: 600; }
.site-footer p { text-align: center; line-height: 1.6; }

/* ---------- Modal y toast ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 16px; }
.modal.open { display: flex; }
.modal-bg { position: absolute; inset: 0; background: rgba(0,0,0,.6); }
.modal-box { position: relative; width: 100%; max-width: 420px; border-radius: 20px; border: 1px solid var(--line-2); background: var(--surface); padding: 24px; box-shadow: var(--shadow); max-height: calc(100vh - 32px); overflow: auto; }
.modal-box h2 { font-family: var(--display); font-size: 24px; margin-bottom: 18px; }
.modal-x { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 200; padding: 12px 18px; border-radius: 12px; background: var(--text); color: var(--bg); font-weight: 700; font-size: 14px; box-shadow: var(--shadow); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .fresh { grid-template-columns: 1fr; }
  .summary { position: static; }
}
@media (max-width: 760px) {
  .wrap, .wrap-md { padding: 0 16px; }
  .wrap-sm { padding: 0 16px; }
  .site-header .wrap { gap: 10px; }
  .nav-toggle { display: inline-flex !important; }
  .show-sm { display: flex !important; }
  .logo { height: 30px; }
  .game-switch > summary { padding: 0 8px; gap: 4px; }
  .main-nav { display: none; width: 100%; order: 10; flex-direction: column; }
  .site-header.nav-open .main-nav { display: flex; }
  .hide-sm { display: none; }
  .header-actions { gap: 6px; }
  .site-header .icon-btn, .header-actions .btn { height: 40px; }
  .header-actions .icon-btn { width: 40px; }
  .sec-head { flex-wrap: wrap; }
  .sec-head .line { display: none; }
  .srv-stats .socials { margin-left: auto; }
  .hero { padding-top: 30px; }
  .srv { gap: 14px; padding: 16px; }
  .srv-rank { width: 100%; flex-direction: row; justify-content: flex-start; order: 2; }
  .srv-rank .btn { width: auto; flex: 1; }
  .srv-body { order: 1; flex-basis: 100%; }
  .srv-stats { width: 100%; order: 3; flex-direction: row; align-items: center; text-align: left; }
  .big-num { font-size: 28px; }
  .options, .grid-2, .tiles { grid-template-columns: 1fr; }
  .vote-body { padding: 24px 18px; }
  .game-menu { width: min(290px, calc(100vw - 32px)); }
}

/* ---------- Brillo Premium ----------
   Un reflejo dorado cruza la tarjeta cada pocos segundos y el borde "respira".
   Solo en Destacado y tarjetas Premium; el #1 lleva un destello. */
.srv.is-premium::after, .featured::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 224, 140, .16) 47%, rgba(255, 244, 210, .26) 50%, rgba(255, 224, 140, .16) 53%, transparent 62%);
  background-size: 260% 100%; background-repeat: no-repeat; background-position: 160% 0;
  animation: gr-shine 7s ease-in-out infinite;
}
.featured::after { animation-delay: 1.2s; }
[data-theme="light"] .srv.is-premium::after, [data-theme="light"] .featured::after {
  background-image: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .55) 50%, transparent 62%);
}
@keyframes gr-shine { 0%, 62% { background-position: 160% 0; } 100% { background-position: -60% 0; } }

.srv.is-premium, .featured { animation: gr-glow 3.5s ease-in-out infinite; }
@keyframes gr-glow {
  0%, 100% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 7%, transparent), 0 0 18px -6px color-mix(in srgb, var(--gold) 25%, transparent); }
  50%      { box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 12%, transparent), 0 0 30px -4px color-mix(in srgb, var(--gold) 45%, transparent); }
}

.srv-pos.p1 { position: relative; }
.srv-pos.p1::after {
  content: '✦'; position: absolute; top: -8px; right: -14px; font-size: 13px; color: var(--gold);
  animation: gr-twinkle 2.4s ease-in-out infinite;
}
@keyframes gr-twinkle { 0%, 100% { opacity: .25; transform: scale(.7) rotate(0deg); } 50% { opacity: 1; transform: scale(1.15) rotate(45deg); } }

@media (prefers-reduced-motion: reduce) {
  .srv.is-premium, .featured, .srv.is-premium::after, .featured::after, .srv-pos.p1::after { animation: none; }
}
@media (max-width: 380px) {
  .site-header .wrap { gap: 8px; }
  .game-switch > summary .ico { display: none; }
  .header-actions .btn { padding: 0 12px; }
  .logo { height: 28px; }
}
/* Menú tipo móvil también en tablets angostas */
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex !important; }
  .show-sm { display: flex !important; }
  .main-nav { display: none; width: 100%; order: 10; flex-direction: column; }
  .site-header.nav-open .main-nav { display: flex; }
  .hide-sm { display: none !important; }
  .header-actions .btn-primary { display: none; }
}

/* ---------- Menús desplegables de filtros (País y Ordenar) ---------- */
.drop { position: relative; }
.drop > summary { list-style: none; cursor: pointer; }
.drop > summary::-webkit-details-marker { display: none; }
.drop > summary.chip { gap: 0; }
.drop-menu { left: 0; right: auto; top: 50px; max-height: 340px; overflow: auto; }
.drop-right .drop-menu { left: auto; right: 0; top: 42px; }
.drop-menu a.on { background: var(--surface-2); color: var(--text); font-weight: 800; }
.chip-search { gap: 8px; padding: 0 14px; height: 42px; color: var(--muted); }
.chip-search input { border: 0; background: transparent; color: var(--text); font: inherit; font-size: 14px; width: 120px; outline: none; }
.chip-search:focus-within { border-color: var(--brand); }
.chip-clear { color: var(--muted); }

/* ---------- Columna derecha: el banner 300×600 queda fijo al bajar ---------- */
.layout-side { align-self: stretch; }
.side-sticky { position: sticky; top: 88px; }
@media (max-width: 900px) { .side-sticky { position: static; } }

/* ---------- Destacado más luminoso que las tarjetas Premium ---------- */
.featured {
  background: linear-gradient(120deg, rgba(255, 214, 90, .26) 0%, rgba(255, 196, 60, .12) 45%, rgba(242, 193, 78, .06) 100%), var(--gold-bg);
  border: 1.5px solid #FFD24A;
}
.featured .badge-float { background: #FFD24A; box-shadow: 0 0 14px rgba(255, 210, 74, .55); }
.featured .featured-info .nm { color: #FFE9A8; }
.featured { animation: gr-glow-strong 3s ease-in-out infinite; }
@keyframes gr-glow-strong {
  0%, 100% { box-shadow: 0 0 0 4px rgba(255, 210, 74, .12), 0 0 26px -4px rgba(255, 210, 74, .45); }
  50%      { box-shadow: 0 0 0 5px rgba(255, 210, 74, .2), 0 0 44px 0 rgba(255, 210, 74, .65); }
}
[data-theme="light"] .featured { background: linear-gradient(120deg, #FFE9A6 0%, #FFF4CF 50%, #FFFAEA 100%); border-color: #E8B414; }
[data-theme="light"] .featured .badge-float { background: #E8B414; color: #fff; }
[data-theme="light"] .featured .featured-info .nm { color: #5A4300; }
@media (prefers-reduced-motion: reduce) { .featured { animation: none; } }
.chip-gold.on { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }

/* ---------- Botones 160×120 en votación ---------- */
.ad-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.ad-row .ad-empty { font-size: 13px; padding: 8px; gap: 2px; }
.ad-row .ad-empty small { font-size: 12px; }
.ad-row img { border-radius: 10px; }
.ad-label.center { text-align: center; margin-top: -12px; }

/* Más aire entre el Destacado y el ranking */
.featured { margin-bottom: 18px; }

/* ---------- Publicidad solo para celular ---------- */
.mobile-only { display: none !important; }
.ad-row.grid2 { display: grid; grid-template-columns: repeat(2, 160px); justify-content: center; gap: 10px; }
@media (max-width: 900px) {
  .mobile-only { display: block !important; }
  a.gift-link.mobile-only { display: flex !important; }
  .mobile-only .ad-label.center { margin-top: 6px; }
  /* En celular la columna derecha se reemplaza por los espacios dentro del ranking */
  .layout-side { display: none; }
}

/* ---------- Selector de idioma (Google Translate) ---------- */
.lang-switch { position: relative; }
.lang-switch > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; height: 44px; padding: 0 10px; border-radius: 12px; border: 1px solid var(--line); font-weight: 800; font-size: 13px; color: var(--text-2); }
.lang-switch > summary::-webkit-details-marker { display: none; }
.lang-switch > summary:hover { color: var(--text); border-color: var(--line-2); }
.lang-switch img { width: 20px; height: 14px; object-fit: cover; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,.15); flex: none; }
.lang-menu { min-width: 190px; }
.lang-menu button b { width: 22px; color: var(--text); }
.lang-menu button span { font-weight: 500; }
.lang-menu button.on { background: var(--surface-2); color: var(--text); }
.nav-langs { gap: 6px; padding: 6px 0 2px; }
.nav-langs button { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: none; color: var(--text-2); font-weight: 800; font-size: 13px; cursor: pointer; }
.nav-langs button.on { border-color: var(--brand); color: var(--text); background: var(--surface-2); }
.nav-langs img { width: 20px; height: 14px; object-fit: cover; border-radius: 3px; }

/* Ocultar la barra y los globos que agrega Google Translate */
.goog-te-banner-frame, iframe.skiptranslate, body > .skiptranslate, #goog-gt-tt, .goog-te-balloon-frame,
.VIpgJd-ZVi9od-ORHb-OEVmcd, .VIpgJd-ZVi9od-aZ2wEe-wOHMyf, .VIpgJd-yAWNEb-L7lbkb { display: none !important; }
body { top: 0 !important; position: static !important; }
.goog-text-highlight, font font { background: none !important; box-shadow: none !important; }

/* ---------- Cabecera siempre en una línea ----------
   El script de layout.php mide el espacio real y agrega niveles f1..f5 hasta que todo quepa,
   sin importar el idioma, el largo del nombre del juego o el ancho de pantalla. */
.site-header .wrap { flex-wrap: nowrap; }
.site-header .wrap > *, .header-actions > * { flex-shrink: 0; }
.main-nav { flex-wrap: nowrap; }
.main-nav a, .header-actions, .game-switch > summary { white-space: nowrap; }
.gs-name { max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
.site-header.f1 .wrap { gap: 10px; }
.site-header.f1 .main-nav a { padding: 9px 10px; }
.site-header.f2 .gs-name { display: none; }
.site-header.f3 .btn-add .btn-txt { display: none; }
.site-header.f3 .btn-add { width: 44px; padding: 0; justify-content: center; }
.site-header.f4 .um-name { display: none; }
.site-header.f4 .user-menu > summary { padding: 0 5px; }
/* f5 = modo menú (hamburguesa), igual que en celular */
.site-header.f5 .nav-toggle { display: inline-flex !important; }
.site-header.f5 .show-sm { display: flex !important; }
.site-header.f5 .hide-sm { display: none !important; }
.site-header.f5 .main-nav { display: none; width: 100%; order: 10; flex-direction: column; }
.site-header.f5.nav-open .main-nav { display: flex; }
.site-header.f5.nav-open .wrap { flex-wrap: wrap; }
@media (max-width: 860px) { .site-header.nav-open .wrap { flex-wrap: wrap; } }

/* reCAPTCHA del registro: centrado y que no se salga en pantallas muy angostas */
.reg-captcha { display: flex; justify-content: center; min-height: 78px; }
/* El reCAPTCHA oscuro de Google mide 304×78 pero su contenido 302×76: el sobrante se ve como un borde blanco.
   Se recortan esos 2 px (registro y votación). */
#reg-captcha > div, #captcha-box > div { width: 302px !important; height: 76px !important; overflow: hidden; border-radius: 3px; }
.reg-captcha, #captcha-box { min-height: 76px !important; }
@media (max-width: 380px) { .reg-captcha > div { transform: scale(.9); transform-origin: center; } }
