/* Portal oficial — hoja única para portada, tienda, clasificación y guía.
   Fiel al lienzo aprobado en Claude Design (design/project/Main.dc.html y
   Shop.dc.html): fondo #0E0B09, superficies #17120E con filete #3A2C1E, oro
   #D9A441, títulos en Forum, texto en Golos Text y rótulos en JetBrains Mono,
   esquinas rectas y jerarquía editorial. Encima, la capa «2026»: héroe de cine
   con paralaje, tarjetas de cristal y entradas suaves (todo se apaga con
   prefers-reduced-motion). Móvil primero: gutter de 16 px, tamaños con clamp y
   sin desbordamiento horizontal. Fuentes autoalojadas (fonts/fonts.css). */

:root {
  /* Paleta del lienzo */
  --bg: #0E0B09;
  --bg-2: #120E0B;
  --surface: #17120E;
  --surface-2: #1D1712;
  --line: #3A2C1E;
  --line-strong: #5A4630;
  --text: #EFE3CC;
  --text-strong: #F6ECD8;
  --soft: #CDBB9E;
  --muted: #B39F84;
  --gold: #D9A441;
  --gold-hi: #E9BC62;
  --gold-deep: #B8842C;
  --gold-text: #E8C27A;
  --gold-hover: #F4D9A3;
  --on-gold: #1B1206;
  --tg: #2A9BDB;
  --tg-deep: #1A76B0;
  --online: #6FCF8E;
  --danger: #F0957E;
  --hunter: #7CB8F2;

  /* Cristal sobre el arte */
  --glass: rgba(23, 18, 14, 0.62);
  --glass-line: rgba(232, 194, 122, 0.26);

  --f-display: "Forum", serif;
  --f-body: "Golos Text", sans-serif;
  --f-mono: "JetBrains Mono", monospace;

  --wrap: 1240px;
  --gutter: clamp(16px, 2.8vw, 32px);
  --radius: 2px;
  --header-h: 80px;
  --section: clamp(72px, 9vw, 112px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
svg { flex: none; }
a { color: var(--gold-text); }
a:hover { color: var(--gold-hover); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
::selection { background: rgba(217, 164, 65, .35); color: #fff; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 80;
  background: var(--gold); color: var(--on-gold); padding: 10px 16px;
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--on-gold); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* ------------------------------------------------------------ tipos comunes */
.eyebrow {
  margin: 0 0 12px; font-family: var(--f-mono); font-size: 13px; font-weight: 500;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold-text);
}
.h2 {
  margin: 0; font-family: var(--f-display); font-weight: 400;
  font-size: clamp(38px, 4.4vw, 60px); line-height: 1.05; color: var(--text-strong);
  text-wrap: balance;
}
.section-lead { margin: 16px 0 0; max-width: 56ch; font-size: clamp(16px, 1.5vw, 19px); color: var(--soft); text-wrap: pretty; }
.mono { font-family: var(--f-mono); font-weight: 500; }
.section { padding: var(--section) 0 0; position: relative; }
.section-head { margin-bottom: clamp(28px, 3.4vw, 44px); }
.section-head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; }

/* ------------------------------------------------------------------ botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 10px 20px; font-size: 15px; font-weight: 600; line-height: 1.2;
  text-decoration: none; cursor: pointer; border: 1px solid transparent; border-radius: var(--radius);
  transition: transform .2s var(--ease), box-shadow .25s var(--ease), background-color .2s, border-color .2s, color .2s, filter .2s;
  -webkit-tap-highlight-color: transparent; white-space: nowrap;
}
.btn svg { width: 20px; height: 20px; }
.btn:active { transform: translateY(1px); }
.btn-gold {
  color: var(--on-gold);
  background: linear-gradient(180deg, var(--gold-hi) 0%, var(--gold) 55%, var(--gold-deep) 100%);
  box-shadow: 0 1px 0 rgba(255, 240, 205, .45) inset, 0 12px 30px -14px rgba(217, 164, 65, .7);
}
.btn-gold:hover { color: var(--on-gold); filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255, 240, 205, .5) inset, 0 18px 40px -14px rgba(217, 164, 65, .85); }
.btn-tg {
  color: #fff;
  background: linear-gradient(180deg, #38A9E6 0%, var(--tg) 50%, var(--tg-deep) 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 12px 30px -14px rgba(42, 155, 219, .75);
}
.btn-tg:hover { color: #fff; filter: brightness(1.08); transform: translateY(-1px); }
/* Contorno del lienzo («Регистрация», «Создать аккаунт»). */
.btn-line { border-color: var(--line-strong); color: var(--text); background: transparent; }
.btn-line:hover { border-color: var(--gold); color: var(--text-strong); background: rgba(217, 164, 65, .06); }
.btn-ghost { border-color: rgba(205, 187, 158, .7); color: var(--text-strong); background: rgba(14, 11, 9, .25); }
.btn-ghost:hover { border-color: var(--gold-text); color: #fff; background: rgba(14, 11, 9, .45); }
.btn-sm { min-height: 44px; padding: 10px 18px; font-size: 15px; }
.btn-lg { min-height: 52px; padding: 14px 28px; font-size: 17px; }
.btn-xl { min-height: 56px; padding: 16px 30px; font-size: 17px; }
.btn-xl svg { width: 22px; height: 22px; }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }

.round-btn {
  width: 48px; height: 48px; display: inline-grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line-strong); color: var(--text-strong);
  cursor: pointer; transition: border-color .2s, background-color .2s;
}
.round-btn:hover { border-color: var(--gold); }
.round-btn svg { width: 22px; height: 22px; }

/* ----------------------------------------------------------------- cabecera */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(14, 11, 9, .9); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px);
}
/* Portada: la cabecera flota sobre el arte del héroe y se vuelve opaca al bajar. */
[data-page="home"] .site-header {
  position: fixed; left: 0; right: 0;
  background: linear-gradient(180deg, rgba(14, 11, 9, .78), rgba(14, 11, 9, .35));
  border-bottom-color: rgba(58, 44, 30, .6);
  transition: background-color .3s, border-color .3s;
}
[data-page="home"] .site-header[data-scrolled="true"],
[data-page="home"] .site-header[data-open="true"] { background: rgba(14, 11, 9, .92); border-bottom-color: var(--line); }
.header-row {
  max-width: var(--wrap); margin: 0 auto; padding: 14px var(--gutter); min-height: var(--header-h);
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px;
}
.logo {
  display: inline-flex; align-items: center;
  font-family: var(--f-display); font-size: 28px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text); text-decoration: none; line-height: 1.2;
}
.logo:hover { color: var(--text-strong); }
/* El lienzo usa sólo la palabra: el rombo antiguo de las páginas interiores se oculta. */
.logo-mark { display: none; }
.main-nav { display: flex; flex-wrap: wrap; gap: 4px 22px; flex: 1 1 auto; font-size: 15px; }
.main-nav a {
  position: relative; color: var(--soft); text-decoration: none; padding: 8px 0;
  transition: color .2s;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--gold);
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.main-nav a:hover { color: var(--text-strong); }
.main-nav a:hover::after { transform: scaleX(1); }
.main-nav a[aria-current="page"] { color: var(--text-strong); }
.main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }

.lang-btn {
  display: inline-flex; align-items: center; gap: 2px;
  font-family: var(--f-mono); font-weight: 500; font-size: 12px; letter-spacing: 0.1em;
  background: transparent; color: var(--soft); border: 1px solid var(--line);
  padding: 0 10px; min-height: 44px; cursor: pointer; transition: border-color .2s;
}
.lang-btn:hover, .lang-pick.is-open .lang-btn { border-color: var(--line-strong); }
/* El botón enseña sólo el idioma actual; el menú (site.js) lista todos con su endónimo. */
.lang-pick { position: relative; display: flex; }
.lang-btn [data-lang-code] { display: none; padding: 4px 2px; color: var(--muted); transition: color .2s; }
.lang-btn [data-lang-code].is-on { display: inline-flex; color: var(--gold-text); }
.lang-caret { width: 10px; height: 6px; flex: none; margin-inline-start: 6px; color: var(--muted); transition: transform .2s; }
.lang-pick.is-open .lang-caret { transform: rotate(180deg); }
.lang-menu {
  position: absolute; top: calc(100% + 8px); inset-inline-end: 0; z-index: 90; min-width: 212px;
  display: grid; gap: 2px; padding: 6px; border: 1px solid var(--line-strong);
  background: rgba(16, 12, 9, .98); box-shadow: 0 20px 48px -12px rgba(0, 0, 0, .75);
}
.lang-menu[hidden] { display: none; }
.lang-menu[aria-busy="true"] { opacity: .7; cursor: progress; }
.lang-item {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 0 12px;
  border: 0; background: transparent; color: var(--text); cursor: pointer;
  font-family: var(--f-body); font-size: 15px; font-weight: 500; letter-spacing: 0; text-align: start;
}
.lang-item:hover { background: rgba(217, 164, 65, .1); color: var(--text-strong); }
.lang-item:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.lang-item.is-on { background: rgba(217, 164, 65, .16); color: var(--gold-text); }
.lang-item .flag { width: 22px; height: 15px; flex: none; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .14); }
.lang-item .lang-name { flex: 1; }
.lang-item .lang-code { font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; color: var(--muted); }
.lang-item[lang="ar"] .lang-name { font-family: var(--f-arabic); font-size: 16px; }
.lang-sep { color: var(--line-strong); padding: 0 2px; }

.menu-btn {
  display: none; width: 44px; height: 44px; place-items: center;
  background: transparent; border: 1px solid var(--line); cursor: pointer;
}
.menu-btn svg { width: 22px; height: 22px; }

.gold-chip {
  display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line);
  padding: 8px 14px; font-family: var(--f-mono); font-weight: 500; font-size: 14px; color: var(--text-strong);
  min-height: 44px; white-space: nowrap;
}
.gold-chip b { color: var(--gold-text); font-weight: 500; }
.coin {
  width: 14px; height: 14px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 35% 30%, #FFE3A3, var(--gold) 55%, var(--gold-deep));
  box-shadow: 0 0 0 1px rgba(27, 18, 6, .6) inset;
}

/* ---------------------------------------------------------- estado en vivo */
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); display: inline-block; flex: none; vertical-align: middle; }
.dot[data-state="online"] { background: var(--online); box-shadow: 0 0 0 0 rgba(111, 207, 142, .55); animation: beacon 2.4s ease-out infinite; }
.dot[data-state="partial"] { background: var(--gold); }
.dot[data-state="offline"] { background: var(--danger); }
.dot[data-state="checking"] { background: var(--muted); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
@keyframes beacon { 0% { box-shadow: 0 0 0 0 rgba(111, 207, 142, .55); } 70%, 100% { box-shadow: 0 0 0 9px rgba(111, 207, 142, 0); } }

.status-pill {
  display: inline-flex; align-items: center; gap: 10px; margin: 0;
  padding: 8px 14px; font-size: 14px; color: var(--text-strong);
  background: rgba(14, 11, 9, .55); border: 1px solid var(--line);
}
.status-pill b { font-family: var(--f-mono); font-weight: 500; color: var(--gold-text); }
.status-pill-sm { min-height: 44px; font-size: 13px; background: transparent; }

/* -------------------------------------------------------------------- héroe */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(680px, 100svh, 1040px);
  display: flex; align-items: flex-end;
}
/* Paralaje: site.js escribe --hs (0→1 al bajar por el héroe) y --px/--py
   (puntero, -1→1, suavizado). Sin JS o con movimiento reducido valen 0. */
.hero { --hs: 0; --px: 0; --py: 0; }
.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: var(--bg); }
.hero-bg picture, .hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-bg .hero-art {
  inset: -4%; width: 108%; height: 108%;
  transform: translate3d(calc(var(--px) * -16px), calc(var(--hs) * 20% + var(--py) * -10px), 0);
  will-change: transform;
}
/* Deriva lenta en bucle (ida y vuelta): el arte «respira» como un plano de vídeo. */
.hero-bg img { object-fit: cover; object-position: 50% 40%; animation: kenburns 32s ease-in-out infinite alternate; }
/* Velo del lienzo (0.45) convertido en degradado: oscuro donde va el texto y
   abajo, para fundir con la página; el arte respira arriba a la derecha. */
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(14, 11, 9, .78) 0%, rgba(14, 11, 9, .5) 34%, rgba(14, 11, 9, .12) 62%, rgba(14, 11, 9, .2) 100%),
    linear-gradient(180deg, rgba(14, 11, 9, .45) 0%, rgba(14, 11, 9, 0) 20%, rgba(14, 11, 9, .15) 55%, rgba(14, 11, 9, .7) 82%, var(--bg) 100%);
}
@keyframes kenburns {
  from { transform: scale(1.08) translate3d(-1%, .5%, 0); }
  to { transform: scale(1.01) translate3d(1%, -.6%, 0); }
}

/* Rayos de luz cálida desde el sol del arte, girando muy despacio. */
.hero-rays {
  position: absolute; z-index: 1; pointer-events: none; mix-blend-mode: screen; opacity: .45;
  width: 150vmax; height: 150vmax; right: -62vmax; top: -88vmax;
  -webkit-mask-image: radial-gradient(closest-side, #000 0%, rgba(0, 0, 0, .55) 45%, transparent 75%);
  mask-image: radial-gradient(closest-side, #000 0%, rgba(0, 0, 0, .55) 45%, transparent 75%);
  transform: translate3d(calc(var(--px) * 10px), calc(var(--hs) * 12%), 0);
}
/* El giro va en el pseudo: la capa de fuera lleva el paralaje y la de dentro la animación. */
.hero-rays::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-conic-gradient(from 200deg at 50% 50%,
    rgba(255, 206, 120, 0) 0deg, rgba(255, 206, 120, .1) 4deg, rgba(255, 206, 120, 0) 9deg, rgba(255, 206, 120, 0) 15deg);
  animation: rays 90s linear infinite;
}
@keyframes rays { to { transform: rotate(360deg); } }

/* Polvo dorado de la caravana que cruza el plano en dos capas. */
.hero-haze { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.hero-haze i {
  position: absolute; left: -50%; width: 200%; height: 55%; bottom: 6%; opacity: .5;
  background:
    radial-gradient(40% 50% at 20% 60%, rgba(255, 196, 120, .15), transparent 70%),
    radial-gradient(30% 40% at 55% 45%, rgba(255, 230, 190, .09), transparent 70%),
    radial-gradient(35% 45% at 85% 65%, rgba(226, 150, 80, .13), transparent 70%);
  animation: haze 40s linear infinite;
}
.hero-haze i + i { bottom: auto; top: 18%; height: 45%; opacity: .3; animation-duration: 66s; animation-direction: reverse; }
@keyframes haze { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(25%, -2%, 0); } }

.embers { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; transform: translate3d(calc(var(--px) * 24px), calc(var(--hs) * -8%), 0); }
.embers i {
  position: absolute; bottom: -10px; width: 4px; height: 4px; border-radius: 50%;
  background: #FFC66B; box-shadow: 0 0 10px 2px rgba(255, 170, 70, .7); opacity: 0;
  animation: ember 9s linear infinite;
}
.embers i:nth-child(1) { left: 6%; animation-delay: 0s; }
.embers i:nth-child(2) { left: 14%; animation-delay: 3.2s; animation-duration: 11s; }
.embers i:nth-child(3) { left: 23%; animation-delay: 6s; width: 3px; height: 3px; }
.embers i:nth-child(4) { left: 31%; animation-delay: 1.4s; animation-duration: 12s; }
.embers i:nth-child(5) { left: 42%; animation-delay: 7.5s; width: 3px; height: 3px; }
.embers i:nth-child(6) { left: 51%; animation-delay: 4.4s; animation-duration: 10s; }
.embers i:nth-child(7) { left: 60%; animation-delay: 2.1s; width: 5px; height: 5px; }
.embers i:nth-child(8) { left: 68%; animation-delay: 8.3s; animation-duration: 13s; }
.embers i:nth-child(9) { left: 76%; animation-delay: 5.2s; width: 3px; height: 3px; }
.embers i:nth-child(10) { left: 84%; animation-delay: .7s; animation-duration: 10.5s; }
.embers i:nth-child(11) { left: 91%; animation-delay: 6.8s; }
.embers i:nth-child(12) { left: 97%; animation-delay: 3.9s; width: 3px; height: 3px; animation-duration: 12s; }
@keyframes ember {
  0% { transform: translate3d(0, 0, 0); opacity: 0; }
  10% { opacity: .9; }
  60% { opacity: .6; }
  100% { transform: translate3d(40px, -78vh, 0); opacity: 0; }
}

.hero-inner {
  position: relative; z-index: 2; width: 100%; max-width: var(--wrap); margin: 0 auto;
  padding: calc(var(--header-h) + 48px) var(--gutter) 72px;
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 40px;
  /* El texto sube algo más rápido que el fondo y se desvanece al salir. */
  transform: translate3d(0, calc(var(--hs) * -60px), 0); opacity: calc(1 - var(--hs) * 1.1);
}
.hero-copy { flex: 999 1 560px; min-width: 0; }
.hero-eyebrow {
  margin: 0 0 14px; font-family: var(--f-mono); font-size: 13px; font-weight: 500;
  letter-spacing: .28em; text-transform: uppercase; color: var(--gold-text);
  text-shadow: 0 1px 12px rgba(14, 11, 9, .9);
}
.hero-title {
  margin: 0; font-family: var(--f-display); font-weight: 400;
  font-size: clamp(50px, 6.6vw, 100px); line-height: .98; letter-spacing: 0.01em;
  max-width: 12ch; text-wrap: balance; color: #F6ECD8;
  background: linear-gradient(180deg, #FFF8E8 0%, #F6ECD8 45%, #E7C88A 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 30px rgba(14, 11, 9, .6));
}
.hero-lead {
  margin: 22px 0 0; max-width: 36ch; font-size: clamp(17px, 1.5vw, 21px); color: var(--text);
  text-shadow: 0 1px 14px rgba(14, 11, 9, .85); text-wrap: pretty;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; align-items: center; }

/* CTA principal: destello que barre el oro cada pocos segundos y un halo que late. */
.btn-cta {
  position: relative;
  background-image:
    linear-gradient(110deg, rgba(255, 255, 255, 0) 38%, rgba(255, 250, 232, .6) 50%, rgba(255, 255, 255, 0) 62%),
    linear-gradient(180deg, var(--gold-hi) 0%, var(--gold) 55%, var(--gold-deep) 100%);
  background-size: 260% 100%, 100% 100%; background-repeat: no-repeat;
  background-position: 160% 0, 0 0;
  animation: cta-shine 5.5s var(--ease) 1.2s infinite;
}
.btn-cta::before {
  content: ""; position: absolute; inset: -1px; pointer-events: none;
  box-shadow: 0 0 0 0 rgba(233, 188, 98, .5); animation: cta-ring 2.8s ease-out infinite;
}
.btn-cta.btn-xl { padding-left: 32px; padding-right: 34px; }
@keyframes cta-shine { 0%, 55% { background-position: 160% 0, 0 0; } 85%, 100% { background-position: -60% 0, 0 0; } }
@keyframes cta-ring { 0% { box-shadow: 0 0 0 0 rgba(233, 188, 98, .45); } 80%, 100% { box-shadow: 0 0 0 12px rgba(233, 188, 98, 0); } }
/* Telegram en cristal azul sobre el arte: secundaria, pero igual de clara. */
.hero .btn-glass-tg {
  background: linear-gradient(180deg, rgba(56, 169, 230, .5), rgba(26, 118, 176, .55));
  border-color: rgba(140, 205, 255, .45);
  -webkit-backdrop-filter: blur(12px) saturate(140%); backdrop-filter: blur(12px) saturate(140%);
}
.hero .btn-glass-tg:hover { background: linear-gradient(180deg, rgba(56, 169, 230, .78), rgba(26, 118, 176, .8)); }
.hero .btn-ghost { -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
/* «Установить приложение» (assets/install.js): fila discreta bajo los CTA. */
.hero-install { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin-top: 16px; }
.hero-install[hidden], .install-hint[hidden] { display: none; }
.hero .btn-install {
  border-color: rgba(233, 188, 98, .6); color: var(--gold-hover); background: rgba(14, 11, 9, .35);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.hero .btn-install:hover { border-color: var(--gold-hi); color: #fff; background: rgba(14, 11, 9, .55); }
.install-hint { margin: 0; max-width: 42ch; font-size: 15px; color: var(--text); text-shadow: 0 1px 10px rgba(14, 11, 9, .9); }

/* ---------------------------------------- tarjeta «Сервер» del lienzo, en cristal */
.hero-card {
  flex: 0 1 372px; padding: 22px 24px; position: relative; overflow: hidden;
  background: linear-gradient(160deg, rgba(255, 240, 215, .1), rgba(23, 18, 14, .55) 45%, rgba(14, 11, 9, .7));
  border: 1px solid var(--glass-line); border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(255, 248, 230, .12) inset, 0 40px 80px -30px rgba(0, 0, 0, .85);
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
  transform: translate3d(calc(var(--px) * 8px), calc(var(--py) * 6px), 0);
}
/* Filete dorado superior y reflejo diagonal del cristal. */
.hero-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(233, 188, 98, .8), transparent) top / 100% 1px no-repeat,
    linear-gradient(125deg, rgba(255, 255, 255, .1) 0%, rgba(255, 255, 255, 0) 30%);
}
.hc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hc-title { margin: 0; font-family: var(--f-mono); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.hc-live { margin: 0; display: inline-flex; align-items: center; gap: 10px; font-size: 18px; color: var(--text-strong); }
.hc-stats { margin: 16px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.hc-stats > div { padding: 10px 12px; background: rgba(14, 11, 9, .72); }
.hc-stats dt { font-size: 13px; color: var(--muted); line-height: 1.3; }
.hc-stats dd { margin: 4px 0 0; font-family: var(--f-mono); font-weight: 500; font-size: 17px; color: var(--text-strong); line-height: 1.2; }
.hc-players b { font-weight: 600; color: var(--gold-hover); }
/* «Всего в игре» (totals.js): totales históricos, en grande y en oro; los números
   con espacio fino (12 345) en Golos Text con cifras tabulares, que no bailan al contar. */
.hc-totals { margin: 16px 0 0; padding: 12px 14px 14px; border: 1px solid var(--line); background: rgba(14, 11, 9, .72); }
.hc-totals[hidden], .footer-totals[hidden], .ev-totals[hidden] { display: none; }
.hc-totals-title { margin: 0 0 10px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.hc-totals-list { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 10px 14px; }
.hc-totals-list li { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.hc-totals-list b {
  font-family: var(--f-body); font-weight: 600; font-size: clamp(21px, 1.9vw, 26px); line-height: 1.05;
  color: var(--gold-hover); font-variant-numeric: tabular-nums; white-space: nowrap; text-shadow: 0 0 18px rgba(233, 188, 98, .25);
}
.hc-totals-list span { font-size: 13px; line-height: 1.3; color: var(--muted); overflow-wrap: anywhere; }
.hc-stats-3 { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); }
.hc-stats-3 > div { padding: 10px; }
.hc-stats-3 dd { font-size: 16px; white-space: nowrap; }
.footer-totals { color: var(--text); }
.footer-totals b { font-family: var(--f-body); font-weight: 600; color: var(--gold-text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ev-totals .ev-big b { font-family: var(--f-body); font-weight: 600; color: var(--gold-hover); white-space: nowrap; }
.ev-totals .ev-sub b { font-weight: 600; color: var(--text-strong); font-variant-numeric: tabular-nums; white-space: nowrap; }
.hc-tg {
  margin-top: 14px; display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  text-decoration: none; color: var(--text-strong); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(56, 169, 230, .22), rgba(26, 118, 176, .16));
  border: 1px solid rgba(140, 205, 255, .32); transition: border-color .2s, transform .2s var(--ease);
}
.hc-tg:hover { color: #fff; border-color: rgba(160, 215, 255, .7); transform: translateY(-1px); }
.hc-tg-ico { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--tg); color: #fff; }
.hc-tg-ico svg { width: 19px; height: 19px; }
.hc-tg-text { min-width: 0; display: flex; flex-direction: column; }
.hc-tg-text b { font-size: 15px; font-weight: 600; line-height: 1.3; }
.hc-tg-text small { font-size: 12.5px; color: var(--soft); line-height: 1.35; }
.hc-arrow { width: 18px; height: 18px; margin-left: auto; color: #9FD3FF; }

.scroll-cue {
  position: absolute; z-index: 2; left: 50%; bottom: 22px; transform: translateX(-50%);
  width: 24px; height: 40px; border: 1.5px solid rgba(205, 187, 158, .5); border-radius: 12px;
}
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--gold); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 80%, 100% { transform: translateY(14px); opacity: 0; } }

/* ------------------------------------------------------------------ razas */
.race-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 28px; }
.race {
  margin: 0; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column;
  transition: border-color .4s, transform .5s var(--ease), box-shadow .5s var(--ease);
}
.race:hover { border-color: var(--line-strong); transform: translateY(-4px); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9); }
.race-art { position: relative; height: clamp(320px, 32vw, 460px); overflow: hidden; background: var(--bg-2); }
.race-art img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; transition: transform 1.4s var(--ease); }
.race:hover .race-art img { transform: scale(1.045); }
.race-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(23, 18, 14, .85) 100%); }
.race-body { padding: 26px 28px 30px; }
.race h3 { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: 36px; color: var(--text-strong); line-height: 1.1; }
.race-body > p { margin: 10px 0 18px; color: var(--soft); }
.race-body > .race-state {
  margin: 0; display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-weight: 500; font-size: 13px; letter-spacing: .04em;
}
.race-state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.race-body > .state-now { color: var(--online); }
.race-body > .state-soon { color: var(--gold-text); }

/* ------------------------------------------------- «Чем живёт мир» (rejilla 1 px) */
.feat-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line);
}
.feat { position: relative; background: var(--bg); padding: 28px; transition: background-color .35s; }
.feat::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--gold);
  transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
.feat:hover { background: var(--surface); }
.feat:hover::before { transform: scaleX(1); }
.feat-ico { display: inline-grid; place-items: center; width: 40px; height: 40px; margin-bottom: 16px; color: var(--gold-text); border: 1px solid var(--line-strong); }
.feat-ico svg { width: 22px; height: 22px; }
.feat h3 { margin: 0 0 8px; font-size: 20px; font-weight: 600; line-height: 1.3; color: var(--text-strong); }
.feat p { margin: 0; color: var(--soft); font-size: 16px; }

/* ------------------------------------------------------------- осада (banda) */
.siege { position: relative; isolation: isolate; overflow: hidden; margin-top: var(--section); min-height: clamp(460px, 42vw, 600px); display: flex; align-items: center; }
.siege-bg, .siege-bg img { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.siege-bg img { object-fit: cover; object-position: 50% 45%; transform: scale(1.06); transition: transform 2.4s var(--ease); }
.siege:hover .siege-bg img { transform: scale(1.02); }
.siege-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(14, 11, 9, .82) 0%, rgba(14, 11, 9, .55) 45%, rgba(14, 11, 9, .3) 100%),
    linear-gradient(180deg, var(--bg) 0%, rgba(14, 11, 9, 0) 18%, rgba(14, 11, 9, 0) 82%, var(--bg) 100%);
}
.siege-inner { width: 100%; padding-top: 72px; padding-bottom: 72px; }
.siege-title { margin: 0; max-width: 14ch; font-family: var(--f-display); font-weight: 400; font-size: clamp(44px, 5.4vw, 76px); line-height: 1; color: var(--text-strong); text-wrap: balance; text-shadow: 0 2px 30px rgba(14, 11, 9, .7); }
.siege-text { margin: 20px 0 0; max-width: 44ch; font-size: clamp(17px, 1.4vw, 19px); color: var(--text); text-shadow: 0 1px 12px rgba(14, 11, 9, .9); }

/* ----------------------------------------------------------------- galería */
.gal-nav { display: flex; gap: 10px; }
.gal-track {
  list-style: none; margin: 0; padding: 4px max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))) 18px;
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  overscroll-behavior-x: contain;
  scroll-padding-left: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
}
.gal-track::-webkit-scrollbar { display: none; }
.shot { flex: 0 0 min(560px, 86vw); scroll-snap-align: start; }
.shot a {
  position: relative; display: block; overflow: hidden; border: 1px solid var(--line);
  aspect-ratio: 16 / 9; background: var(--surface); transition: border-color .3s;
}
.shot a:hover { border-color: var(--line-strong); }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.shot a:hover img { transform: scale(1.04); }
.shot a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(14, 11, 9, .88)); }
.shot-cap { position: absolute; z-index: 1; left: 18px; bottom: 14px; right: 18px; font-weight: 600; color: var(--text-strong); font-size: 16px; }

.lightbox {
  width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(8, 6, 5, .95); color: var(--text-strong);
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(8, 6, 5, .8); }
.lightbox img { max-width: min(1280px, 94vw); max-height: 82vh; max-height: 82dvh; box-shadow: 0 30px 80px rgba(0, 0, 0, .7); }
.lb-cap { position: absolute; left: 0; right: 0; bottom: max(20px, env(safe-area-inset-bottom)); margin: 0; text-align: center; color: var(--soft); padding: 0 80px; }
.lb-close { position: absolute; top: max(16px, env(safe-area-inset-top)); right: 16px; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }

/* ------------------------------------------------------------ как начать */
.steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 28px; }
.steps li { border-top: 2px solid var(--gold); padding-top: 20px; }
.step-num { margin: 0; font-family: var(--f-mono); font-weight: 500; color: var(--gold-text); letter-spacing: .06em; }
.steps h3 { margin: 6px 0 8px; font-size: 21px; font-weight: 600; color: var(--text-strong); line-height: 1.3; }
.steps p:not(.step-num) { margin: 0; color: var(--soft); }
.section-head-row .btn svg { width: 18px; height: 18px; }

/* --------------------------------------------------------------- registro */
.register { padding: clamp(48px, 5vw, 64px) 0 0; }
.register-box {
  position: relative; display: flex; flex-wrap: wrap; gap: clamp(28px, 4vw, 48px);
  background: var(--surface); border: 1px solid var(--line); padding: clamp(24px, 4vw, 48px);
}
.register-box::before { content: ""; position: absolute; left: -1px; top: -1px; width: 64px; height: 2px; background: var(--gold); }
.register-copy { flex: 1 1 320px; min-width: 0; }
.register-title { margin: 0 0 14px; font-family: var(--f-display); font-weight: 400; font-size: clamp(38px, 3.6vw, 48px); line-height: 1.05; color: var(--text-strong); }
.register-lead { margin: 0; max-width: 34ch; color: var(--soft); }
.register-copy .form-note { margin-top: 20px; max-width: 46ch; }
.reg-form { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 15px; color: var(--soft); }
.field input {
  font: inherit; font-size: 17px; color: var(--text-strong); background: var(--bg);
  border: 1px solid var(--line-strong); padding: 12px 14px; min-height: 48px; border-radius: 0; width: 100%;
  transition: border-color .2s, box-shadow .2s;
}
.field input:hover { border-color: #75603F; }
.field input:focus-visible { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(217, 164, 65, .22); }
.field input[aria-invalid="true"] { border-color: var(--danger); }
.field-error { font-size: 14px; color: var(--danger); margin-top: -8px; }
.field-error:empty { display: none; }
.reg-submit { width: 100%; }
.form-note { margin: 0; font-size: 13.5px; color: var(--muted); }
.form-status:empty { display: none; }
.form-status { padding: 14px 16px; border: 1px solid var(--line-strong); font-size: 15px; }
.form-status.is-ok { border-color: rgba(111, 207, 142, .55); color: var(--text-strong); background: rgba(111, 207, 142, .06); }
.form-status.is-error { border-color: rgba(240, 149, 126, .6); color: var(--text-strong); background: rgba(240, 149, 126, .06); }
.form-status p { margin: 0; }
.form-status .btn { margin-top: 12px; }

/* --------------------------------------------------------------- noticias */
/* Lista editorial del lienzo: fecha a la izquierda, titular a la derecha. */
.news-grid { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.news-card { border-top: 1px solid var(--line); padding: 24px 0; transition: background-color .3s; }
.news-card-lead:has(img) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: 32px; align-items: start; }
.news-card-lead img { grid-column: 2; grid-row: 1; width: 100%; aspect-ratio: 16 / 9; height: auto; object-fit: cover; border: 1px solid var(--line); }
.news-body { display: grid; grid-template-columns: 160px minmax(0, 1fr); column-gap: 32px; align-items: baseline; min-width: 0; }
.news-body > * { grid-column: 2; }
.news-meta {
  grid-column: 1 !important; grid-row: 1 / span 3; margin: 0;
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  font-family: var(--f-mono); font-size: 13.5px; color: var(--muted);
}
.news-meta time { order: -1; }
.tag { padding: 2px 8px; color: var(--gold-text); border: 1px solid var(--line-strong); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; }
.news-card h3 { margin: 0; font-size: 20px; font-weight: 500; color: var(--text-strong); line-height: 1.35; text-wrap: pretty; }
.news-card-lead h3 { font-family: var(--f-display); font-weight: 400; font-size: clamp(26px, 2.4vw, 32px); line-height: 1.12; }
.news-card h3 + p { margin: 8px 0 0; font-size: 15.5px; color: var(--soft); max-width: 70ch; }
.news-card .news-more { margin: 12px 0 0; font-size: 15px; }
.news-card .news-more a { font-weight: 600; text-decoration: none; }
.news-card .news-more a:hover { text-decoration: underline; }
.news-empty { color: var(--muted); }
.news-empty .news-body { display: block; }

/* ----------------------------------------------------------------- líderes */
.leaders[hidden] { display: none; }
.leaders-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.leaders-col { border: 1px solid var(--line); background: var(--surface); padding: 22px 24px 12px; }
.leaders-col[hidden] { display: none; }
.leaders-col h3 { margin: 0 0 8px; font-size: 12px; font-family: var(--f-mono); font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.mini-list { list-style: none; margin: 0; padding: 0; }
.mini-list li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.mini-list li:first-child { border-top: 0; }
.mini-pos { width: 24px; flex: none; font-family: var(--f-mono); color: var(--gold-text); }
.mini-who { display: flex; flex-direction: column; min-width: 0; }
.mini-name { font-weight: 600; color: var(--text-strong); overflow-wrap: anywhere; }
.mini-sub { font-size: 13.5px; color: var(--muted); }
.mini-empty { color: var(--muted); }

/* -------------------------------------------------------------------- FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 6vw, 80px); align-items: start; }
.faq-grid .section-head { position: sticky; top: calc(var(--header-h) + 24px); }
.faq-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); transition: background-color .2s; }
.qa[open] { background: rgba(23, 18, 14, .6); }
.qa summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 16px; min-height: 60px; font-size: 17px; font-weight: 600; color: var(--text-strong);
}
.qa summary:hover { color: #fff; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary svg { width: 22px; height: 22px; color: var(--gold-text); transition: transform .3s var(--ease); }
.qa[open] summary svg { transform: rotate(45deg); }
.qa p { margin: 0; padding: 0 16px 20px; color: var(--soft); max-width: 64ch; }

/* --------------------------------------------------------- llamada final */
.final-cta { position: relative; isolation: isolate; overflow: hidden; margin-top: var(--section); padding: clamp(104px, 13vw, 176px) 0; text-align: center; }
.final-bg, .final-bg img { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.final-bg img { object-fit: cover; object-position: 50% 35%; }
.final-bg::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 70% at 50% 55%, rgba(14, 11, 9, .5), rgba(14, 11, 9, .82) 100%),
    linear-gradient(180deg, var(--bg) 0%, rgba(14, 11, 9, 0) 28%, rgba(14, 11, 9, 0) 70%, var(--bg) 100%);
}
.final-inner { display: flex; flex-direction: column; align-items: center; }
.final-title { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: clamp(44px, 5.6vw, 80px); line-height: 1; color: var(--text-strong); text-wrap: balance; text-shadow: 0 2px 30px rgba(14, 11, 9, .8); }
.final-cta .section-lead { margin-left: auto; margin-right: auto; color: var(--text); text-shadow: 0 1px 12px rgba(14, 11, 9, .9); }
.final-inner .hero-cta { justify-content: center; }
.tg-handle { margin: 18px 0 0; color: var(--gold-text); font-size: 14px; letter-spacing: .04em; }

/* Línea de consentimiento junto a las entradas al juego (misma frase que el login del juego). */
.consent-note { margin: 0; max-width: 560px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.consent-note a { color: var(--soft); text-decoration: underline; text-underline-offset: 3px; }
.consent-note a:hover { color: var(--gold-hover); }
.guide-cta + .consent-note { margin-top: 14px; }

/* ------------------------------------------------------------------- pie */
.site-footer { border-top: 1px solid var(--line); }
.footer-row { padding-top: 40px; padding-bottom: 28px; display: flex; flex-wrap: wrap; gap: 24px 48px; font-size: 14px; color: var(--muted); }
.footer-logo { margin: 0; font-family: var(--f-display); font-size: 24px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--soft); line-height: 1.3; }
.footer-legal { flex: 1 1 420px; max-width: 70ch; }
.footer-legal p { margin: 0 0 8px; }
.footer-legal p:last-child { margin-bottom: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 22px; align-content: flex-start; flex: 0 1 300px; }
.footer-links a { color: var(--soft); padding: 4px 0; text-decoration: none; }
.footer-links a:hover { color: var(--gold-hover); text-decoration: underline; text-underline-offset: 4px; }
/* Fila inferior: documentos legales, soporte y ©. */
.footer-base-row { padding-top: 18px; padding-bottom: 40px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 32px; font-size: 14px; color: var(--muted); }
.footer-docs { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.footer-docs a { display: inline-flex; align-items: center; min-height: 36px; color: var(--soft); text-decoration: none; }
.footer-docs a:hover, .footer-docs a[aria-current="page"] { color: var(--gold-hover); text-decoration: underline; text-underline-offset: 4px; }
.footer-copy { margin: 0; }

/* ------------------------------------------------------ barra fija móvil */
.dock { display: none; }

/* ------------------------------------------------------ entrada al hacer scroll */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ===================================================== páginas interiores */
.page-head { max-width: var(--wrap); margin: 0 auto; padding: 64px var(--gutter) 24px; }
.page-head h1 { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: clamp(44px, 5vw, 64px); line-height: 1; color: var(--text-strong); }
.page-head p { margin: 16px 0 0; max-width: 56ch; color: var(--soft); }
.page-head .eyebrow { margin: 0 0 14px; max-width: none; color: var(--gold-text); }
.page-head .page-note { font-size: 15px; color: var(--muted); margin-top: 8px; }
/* Cabecera con arte (tienda): seda y oro difuminados tras el título. */
.page-head-art { position: relative; isolation: isolate; max-width: none; padding: 0; overflow: hidden; border-bottom: 1px solid var(--line); }
.page-head-bg, .page-head-bg img { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.page-head-bg img { object-fit: cover; object-position: 50% 50%; }
.page-head-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14, 11, 9, .92) 0%, rgba(14, 11, 9, .55) 45%, rgba(14, 11, 9, .05) 100%), linear-gradient(180deg, rgba(14, 11, 9, 0) 55%, var(--bg)); }
.page-head-inner { max-width: var(--wrap); margin: 0 auto; padding: clamp(56px, 7vw, 96px) var(--gutter) clamp(36px, 4vw, 52px); }

/* Tienda (lienzo Shop.dc.html) */
.shop { max-width: var(--wrap); margin: 0 auto; padding: 40px var(--gutter) 104px; display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.cats { flex: 1 1 200px; max-width: 240px; display: flex; flex-direction: column; gap: 4px; font-size: 16px; position: sticky; top: calc(var(--header-h) + 16px); }
.cat {
  font: inherit; text-align: left; color: var(--soft); background: transparent; cursor: pointer;
  padding: 12px 16px; min-height: 44px; border: 1px solid var(--line); border-radius: 0;
  transition: border-color .2s, color .2s, background-color .2s;
}
.cat:hover { border-color: var(--line-strong); color: var(--text-strong); }
.cat[aria-pressed="true"] { color: var(--on-gold); background: var(--gold); border-color: var(--gold); font-weight: 600; }
.items { flex: 999 1 640px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 20px; align-content: start; }
.item {
  background: var(--surface); border: 1px solid var(--line); padding: 20px; display: flex; flex-direction: column; gap: 12px;
  transition: border-color .3s, transform .4s var(--ease), box-shadow .4s var(--ease);
  animation: item-in .5s var(--ease) both;
}
.item:hover { border-color: var(--line-strong); transform: translateY(-3px); box-shadow: 0 24px 50px -28px rgba(0, 0, 0, .9); }
.item:nth-child(2) { animation-delay: 50ms; }
.item:nth-child(3) { animation-delay: 100ms; }
.item:nth-child(4) { animation-delay: 150ms; }
@keyframes item-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.item-art { position: relative; height: 120px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.item-art::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 70% at 50% 45%, rgba(255, 255, 255, .08), transparent 70%); }
.item-art svg { width: 52px; height: 52px; position: relative; z-index: 1; transition: transform .5s var(--ease); }
.item:hover .item-art svg { transform: scale(1.1); }
.item h2 { margin: 0; font-size: 18px; font-weight: 600; color: var(--text-strong); line-height: 1.35; }
.item p { margin: 0; font-size: 14px; color: var(--muted); }
.item-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 12px; margin-top: auto; }
.price { font-family: var(--f-mono); font-weight: 500; font-size: 14px; color: var(--gold-text); white-space: nowrap; }
.buy {
  font: inherit; font-size: 15px; font-weight: 600; color: var(--on-gold); background: var(--gold);
  border: 0; padding: 0 14px; min-height: 44px; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; flex: none; transition: filter .2s;
}
.buy:hover { filter: brightness(1.08); color: var(--on-gold); }

/* Clasificación */
.rank { max-width: var(--wrap); margin: 0 auto; padding: 16px var(--gutter) 104px; }
.notice { border: 1px solid var(--line); border-left: 3px solid var(--gold); background: var(--surface); padding: 16px 20px; margin: 0 0 28px; color: var(--soft); max-width: 80ch; }
.notice b { color: var(--text-strong); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.chips .cat { text-align: center; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); background: var(--surface); }
.rank-table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
.rank-table th { text-align: left; font-family: var(--f-mono); font-weight: 500; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 14px 16px; border-bottom: 1px solid var(--line); }
.rank-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); color: var(--text-strong); }
.rank-table tr:last-child td { border-bottom: 0; }
.rank-table .pos { font-family: var(--f-mono); color: var(--gold-text); width: 56px; }
.skel { display: inline-block; height: 10px; background: var(--line); vertical-align: middle; }
.rank-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; margin-bottom: 20px; }
.rank-bar .chips { margin-bottom: 0; }
.rank-meta { margin: 0; font-size: 12.5px; color: var(--muted); }
.rank-meta:empty { display: none; }
.rank-table th.num, .rank-table td.num { text-align: right; font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.rank-table td.opt { color: var(--soft); }
.rank-table td.empty { text-align: center; color: var(--muted); padding: 32px 16px; }
.rank-table tbody tr:hover td { background: rgba(255, 240, 215, .03); }
.rank-table tr.top .pos { font-weight: 600; }
.rank-table tr.top-1 .pos { color: var(--gold-hover); }
.rank-foot { margin: 14px 0 0; font-size: 13px; color: var(--muted); }
.who { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.who-name { overflow-wrap: anywhere; }
/* Nombres enlazados a su perfil público (rankings.js; estilos completos en profiles.css). */
.plink { color: inherit; text-decoration: none; }
.plink:hover, .plink:focus-visible { color: var(--gold-hover); text-decoration: underline; text-underline-offset: 3px; }

/* Emblemas de raza / gremio (rankings.js). */
.race-ico {
  --rc: var(--gold-text);
  width: 30px; height: 30px; flex: none; display: inline-grid; place-items: center; border-radius: 50%;
  color: var(--rc); background: color-mix(in srgb, var(--rc) 12%, transparent); border: 1px solid color-mix(in srgb, var(--rc) 40%, transparent);
}
.race-ico svg { width: 18px; height: 18px; }
.race-ico[data-race="CHN"] { --rc: #EE8A6A; }
.race-ico[data-race="EUR"] { --rc: var(--hunter); }
.race-ico[data-race="AST"] { --rc: #B9A2F4; }
.race-ico[data-race="ARB"] { --rc: #E6C27A; }
.race-ico[data-race="GUILD"] { --rc: var(--gold); }
.race-ico-lg { width: 56px; height: 56px; }
.race-ico-lg svg { width: 30px; height: 30px; }
/* Escudo propio del gremio (rankings.js crest): sin disco, el escudo ya trae su filo. */
.race-ico.crest-ico { width: 30px; height: 36px; border: 0; border-radius: 0; background: none; }
.race-ico.crest-ico svg, .race-ico-lg.crest-ico svg { width: 100%; height: 100%; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .45)); }
.race-ico-lg.crest-ico { width: 64px; height: 76px; }
.pf-emblem .race-ico-lg.crest-ico { width: 84px; height: 100px; }

/* Selector de idioma con banderas reales (SVG en línea, aria-hidden: el nombre lo da aria-label). */
.lang-btn .flag { width: 20px; height: 14px; flex: none; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .14); }
.lang-btn [data-lang-code].is-on { align-items: center; gap: 6px; }

/* Pódium: tres primeros de la categoría. */
.podium { list-style: none; margin: 0 0 20px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.podium[hidden] { display: none; }
.podium-card {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px;
  padding: 26px 18px 22px; border: 1px solid var(--line); background: var(--surface);
}
.podium-1 { border-color: rgba(217, 164, 65, .55); background: radial-gradient(120% 90% at 50% 0%, rgba(217, 164, 65, .16), var(--surface) 70%); }
.podium-rank {
  position: absolute; top: 12px; left: 14px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%;
  font-family: var(--f-mono); font-weight: 600; font-size: 14px; color: var(--on-gold); background: var(--gold);
}
.podium-2 .podium-rank { background: #CFC6B8; }
.podium-3 .podium-rank { background: #C98A55; }
.podium-name { font-family: var(--f-display); font-size: clamp(22px, 2.4vw, 28px); line-height: 1.1; color: var(--text-strong); overflow-wrap: anywhere; }
.podium-sub { font-size: 14px; color: var(--soft); }

/* Guía «Как начать». */
.guide-cta { margin-top: 26px; }
.guide { max-width: var(--wrap); margin: 0 auto; padding: 8px var(--gutter) 104px; display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; align-items: start; }
.guide-toc { position: sticky; top: calc(var(--header-h) + 16px); display: flex; flex-direction: column; gap: 2px; border-left: 1px solid var(--line); }
.guide-toc a { padding: 8px 16px; color: var(--soft); text-decoration: none; font-size: 15px; border-left: 2px solid transparent; margin-left: -1px; }
.guide-toc a:hover { color: var(--text-strong); border-left-color: var(--gold); }
.guide-steps { list-style: none; margin: 0; padding: 0; counter-reset: g; display: flex; flex-direction: column; gap: 20px; }
.guide-step {
  counter-increment: g; position: relative; scroll-margin-top: calc(var(--header-h) + 16px);
  padding: 28px 30px 28px 92px; border: 1px solid var(--line); background: var(--surface);
}
.guide-step::before {
  content: counter(g, decimal-leading-zero); position: absolute; left: 28px; top: 30px; width: 44px;
  padding-top: 8px; border-top: 2px solid var(--gold); color: var(--gold-text); font-family: var(--f-mono); font-size: 15px;
}
.guide-step h2 { margin: 6px 0 12px; font-family: var(--f-display); font-weight: 400; font-size: clamp(28px, 3vw, 36px); line-height: 1.1; color: var(--text-strong); }
.guide-step h3 { margin: 0 0 10px; font-size: 13px; font-family: var(--f-mono); font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.guide-step p { margin: 0 0 10px; color: var(--soft); max-width: 70ch; }
.guide-step p:last-child { margin-bottom: 0; }
.guide-list { margin: 0 0 10px; padding-left: 20px; color: var(--soft); display: flex; flex-direction: column; gap: 8px; max-width: 70ch; }
.guide-list b { color: var(--text-strong); font-weight: 600; }
.guide-list li::marker { color: var(--gold); }
.guide-note { font-size: 14px; color: var(--muted) !important; }
.keys-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 28px; margin-top: 8px; }
.keys { margin: 0; display: flex; flex-direction: column; }
.keys > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; align-items: center; padding: 7px 0; border-top: 1px solid var(--line); }
.keys > div:first-child { border-top: 0; }
.keys dt { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; color: var(--muted); }
.keys dd { margin: 0; color: var(--soft); }
kbd {
  display: inline-block; min-width: 28px; padding: 3px 7px; text-align: center; border-radius: 3px;
  font-family: var(--f-mono); font-size: 13px; font-weight: 500; color: var(--text-strong);
  background: rgba(255, 240, 215, .06); border: 1px solid var(--line-strong); border-bottom-width: 2px;
}
.guide-links a { font-weight: 600; }

/* ================================================================ tablet */
@media (min-width: 721px) and (max-height: 1000px) { .scroll-cue { display: none; } }
@media (max-width: 1080px) {
  .has-menu .main-nav {
    display: none; order: 3; flex: 1 1 100%; flex-direction: column; gap: 0;
    padding: 8px 0 12px; border-top: 1px solid var(--line); font-size: 17px;
  }
  .has-menu[data-open="true"] .main-nav { display: flex; }
  .has-menu .main-nav a { padding: 12px 4px; border-bottom: 1px solid rgba(58, 44, 30, .5); }
  .has-menu .main-nav a::after { display: none; }
  .has-menu .menu-btn { display: inline-grid; }
  .status-pill-sm { display: none; }
  .hero-card { flex: 1 1 100%; }
  .feat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .faq-grid .section-head { position: static; }
  .guide { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .guide-toc {
    position: static; flex-direction: row; flex-wrap: nowrap; overflow-x: auto; gap: 6px; border-left: 0;
    margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 4px; scrollbar-width: none;
  }
  .guide-toc::-webkit-scrollbar { display: none; }
  .guide-toc a { flex: none; white-space: nowrap; margin: 0; border: 1px solid var(--line); padding: 8px 14px; font-size: 14px; }
  .guide-toc a:hover { border-color: var(--gold); }
  .keys-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 1081px) and (max-width: 1240px) {
  .main-nav { gap: 4px 16px; font-size: 14.5px; }
  .header-row { gap: 12px 20px; }
}

/* ================================================================== móvil */
@media (max-width: 720px) {
  :root { --header-h: 64px; }
  body { font-size: 16px; padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .header-row { gap: 8px 10px; padding-top: 10px; padding-bottom: 10px; }
  .logo { font-size: 22px; letter-spacing: .14em; }
  .header-actions { gap: 8px; }
  .header-play, .header-reg { display: none; }

  .hero { min-height: clamp(640px, 100svh, 960px); }
  /* El arte vertical ocupa la primera pantalla y se funde con el fondo: la
     tarjeta «Сервер», que alarga el héroe, queda sobre el fondo liso. */
  .hero-bg { bottom: auto; height: min(100%, 112svh); }
  .hero-bg img { object-position: 50% 0%; }
  .hero-bg::after {
    background:
      linear-gradient(180deg, rgba(14, 11, 9, .5) 0%, rgba(14, 11, 9, 0) 10%, rgba(14, 11, 9, .05) 24%, rgba(14, 11, 9, .62) 36%, rgba(14, 11, 9, .88) 52%, rgba(14, 11, 9, .96) 78%, var(--bg) 100%);
  }
  .hero-inner { padding-top: calc(var(--header-h) + 200px); padding-bottom: 40px; gap: 28px; }
  .hero-rays { opacity: .3; }
  .hero-eyebrow { font-size: 11.5px; letter-spacing: .22em; margin-bottom: 12px; }
  .hero-title { font-size: clamp(46px, 13vw, 64px); }
  .hero-lead { margin-top: 16px; }
  .hero-cta { flex-direction: column; align-items: stretch; gap: 12px; margin-top: 24px; }
  .hero-cta .btn { width: 100%; }
  /* «Создать аккаунт» del lienzo: en el móvil, enlace discreto bajo los dos botones. */
  .hero .hero-signup { min-height: 44px; padding: 8px; border: 0; background: none; color: var(--gold-text); font-weight: 500; text-decoration: underline; text-underline-offset: 4px; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .hero-card { padding: 18px; transform: none; }
  .scroll-cue { display: none; }

  .race-art { height: 340px; }
  .race-body { padding: 22px 20px 24px; }
  .race h3 { font-size: 32px; }
  .feat-grid { grid-template-columns: minmax(0, 1fr); }
  .feat { padding: 22px 20px; }
  .siege { min-height: 440px; }
  .siege-bg::after { background: linear-gradient(180deg, var(--bg) 0%, rgba(14, 11, 9, .55) 25%, rgba(14, 11, 9, .7) 75%, var(--bg) 100%); }
  .gal-nav { display: none; }
  .gal-track { gap: 12px; }
  .shot-cap { font-size: 15px; left: 14px; bottom: 12px; }
  .section-head-row > .btn { width: 100%; }

  .news-card-lead:has(img) { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .news-card-lead img { grid-column: 1; }
  .news-body { grid-template-columns: minmax(0, 1fr); }
  .news-body > * { grid-column: 1; }
  .news-meta { grid-column: 1 !important; grid-row: auto; flex-direction: row; align-items: center; margin-bottom: 8px; }
  .news-card h3 { font-size: 18px; }

  .leaders-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .qa summary { padding: 16px 8px; }
  .qa p { padding: 0 8px 18px; }
  .final-cta { padding: 96px 0; }
  .footer-row { flex-direction: column; gap: 20px; padding-bottom: 32px; }
  .footer-legal, .footer-links { flex: none; }
  .footer-base-row { flex-direction: column; align-items: flex-start; padding-bottom: 32px; }
  .footer-docs { flex-direction: column; gap: 0; }
  .lb-prev, .lb-next { top: auto; bottom: max(16px, env(safe-area-inset-bottom)); transform: none; }
  .lb-cap { bottom: calc(max(16px, env(safe-area-inset-bottom)) + 64px); padding: 0 16px; }

  /* Barra fija «Играть / Telegram»: aparece al salir de la vista los botones del héroe. */
  .dock {
    display: flex; gap: 10px; position: fixed; z-index: 45; left: 0; right: 0; bottom: 0;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(14, 11, 9, .9); border-top: 1px solid var(--line);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    transform: translateY(110%); transition: transform .35s var(--ease);
  }
  .dock[data-show="true"] { transform: none; }
  .dock .btn { min-height: 52px; font-size: 16px; }
  .dock-play { flex: 1 1 auto; }
  .dock-tg { flex: 0 0 auto; padding-left: 18px; padding-right: 18px; }

  /* Páginas interiores (sin menú desplegable): el menú pasa a una fila desplazable. */
  .site-header:not(.has-menu) .main-nav {
    order: 3; flex: 1 1 100%; flex-wrap: nowrap; overflow-x: auto; gap: 20px;
    margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 2px; scrollbar-width: none;
  }
  .site-header:not(.has-menu) .main-nav::-webkit-scrollbar { display: none; }
  .site-header:not(.has-menu) .main-nav a { white-space: nowrap; }
  .site-header:not(.has-menu) .status-pill-sm { display: none; }
  [data-page]:not([data-page="home"]) body { padding-bottom: 0; }
  .page-head { padding-top: 40px; }
  .page-head-art { padding: 0; }
  .page-head-inner { padding-top: 44px; }
  .shop { padding-top: 24px; gap: 20px; }
  .cats { position: static; max-width: none; flex: 1 1 100%; flex-direction: row; overflow-x: auto; gap: 6px; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 4px; scrollbar-width: none; }
  .cats::-webkit-scrollbar { display: none; }
  .cats .cat { white-space: nowrap; flex: none; }
  .items { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .item { padding: 14px; gap: 10px; }
  .item-art { height: 96px; }
  .item h2 { font-size: 16px; }
  .item-foot { flex-direction: column; align-items: stretch; gap: 10px; }
  .buy { justify-content: center; }
  .gold-chip { font-size: 13px; padding: 8px 10px; }

  .podium { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .podium-card { flex-direction: row; text-align: left; padding: 14px 16px 14px 56px; gap: 12px; }
  .podium-card .race-ico-lg { width: 44px; height: 44px; }
  .podium-card .race-ico-lg svg { width: 24px; height: 24px; }
  .podium-rank { top: 50%; transform: translateY(-50%); left: 14px; }
  .podium-name { font-size: 22px; }
  .podium-sub { margin-left: auto; text-align: right; font-size: 13px; }
  .rank-table { min-width: 0; font-size: 14.5px; }
  .rank-table th, .rank-table td { padding: 12px 10px; }
  .rank-table .opt { display: none; }
  .rank-table .pos { width: 40px; }
  .race-ico { width: 26px; height: 26px; }
  .race-ico svg { width: 16px; height: 16px; }
  .guide-step { padding: 22px 18px 22px 18px; }
  .guide-step::before { position: static; display: block; margin-bottom: 10px; }
  .keys > div { grid-template-columns: 120px minmax(0, 1fr); }
  .guide-cta { flex-direction: column; align-items: stretch; }
}
@media (max-width: 380px) {
  .items { grid-template-columns: minmax(0, 1fr); }
  .lang-btn { padding: 0 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg img, .embers i, .scroll-cue span, .dot[data-state="online"], .dot[data-state="checking"], .item { animation: none; }
  .hero-rays::before, .hero-haze i, .btn-cta, .btn-cta::before { animation: none; }
  .embers { display: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .race, .feat, .feat::before, .news-card, .shot img, .race-art img, .siege-bg img, .item, .item-art svg, .main-nav a::after { transition: none; }
  .race:hover, .item:hover { transform: none; }
}

@media print {
  .site-header, .hero-cta, .reg-form, .dock, .embers, .scroll-cue, .gal-nav { display: none !important; }
  body { background: #fff; color: #000; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ------------------------------------------------ idiomas: fuentes y RTL
   Mismo criterio que home.css: JetBrains Mono sin latín extendido -> Golos Text
   en turco; sin alfabeto árabe en las fuentes del proyecto -> fuentes árabes del
   sistema (el latín y las cifras siguen en Golos). */
:root {
  --f-arabic: "Noto Sans Arabic", "Segoe UI", Tahoma, "Geeza Pro", "SF Arabic", system-ui, sans-serif;
  --f-arabic-display: "Noto Naskh Arabic", "Times New Roman", "Geeza Pro", serif;
}
html:lang(tr) { --f-mono: "Golos Text", sans-serif; }
html:lang(ar) {
  --f-body: "Golos Text", var(--f-arabic);
  --f-display: "Forum", var(--f-arabic-display);
  --f-mono: "Golos Text", var(--f-arabic);
}
html:lang(ar) body * { letter-spacing: normal !important; }
html:lang(ar) .eyebrow { font-size: 14px; }

/* RTL (árabe). Los documentos legales son texto ruso: van en LTR (lang="ru" dir="ltr" en el HTML). */
[dir="rtl"] .header-actions { margin-left: 0; margin-right: auto; }
[dir="rtl"] .skip-link { left: auto; right: 16px; }
[dir="rtl"] .rank-table th { text-align: right; }
[dir="rtl"] .rank-table th.num, [dir="rtl"] .rank-table td.num { text-align: left; }
[dir="rtl"] .notice { border-left: 1px solid var(--line); border-right: 3px solid var(--gold); }
[dir="rtl"] .guide-toc { border-left: 0; border-right: 1px solid var(--line); }
[dir="rtl"] .guide-toc a { border-left: 0; border-right: 2px solid transparent; margin-left: 0; margin-right: -1px; }
[dir="rtl"] .guide-toc a:hover { border-right-color: var(--gold); }
[dir="rtl"] .hc-arrow { margin-left: 0; margin-right: auto; transform: scaleX(-1); }
[dir="rtl"] .gal-track { direction: ltr; }
[dir="rtl"] .gal-track > * { direction: rtl; }
