/* Pandora World — web pública.
   Concepto: «libro de caravana». Fondo de tinta cálida, oro del logotipo como
   único acento, una ruta punteada que cruza el hero; secciones en una columna
   de 1120 px con cabeceras alineadas a la izquierda. La ventana de canales
   imita la del juego y es el único objeto «de interfaz» de la página.
   Oscuro primero (como el juego); variante clara con los mismos tokens. */
:root {
  --bg: #0c0a07;
  --bg-band: #120f0a;
  --surface: #17130d;
  --surface-2: #1f1a12;
  --line: #3a3122;
  --line-soft: #2a2319;
  --text: #ece5d3;
  --muted: #a89f8a;
  --gold: #d9b765;
  --gold-strong: #f1d68f;
  --gold-ink: #1a1305;
  --cta-top: #f0d27f;
  --cta-bottom: #b98d34;
  --hero-fade: 12, 10, 7;
  --ok: #9fe07a;
  --warn: #f0d880;
  --hot: #f0a050;
  --bad: #ff7a6a;
  --focus: #f6dc93;
  --shadow: 0 18px 50px rgba(0, 0, 0, .45);

  --font-display: "Palatino Linotype", Palatino, "Book Antiqua", "Iowan Old Style", "URW Palladio L", P052, Georgia, serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace;

  --step--1: .875rem;
  --step-0: 1rem;
  --step-1: 1.1875rem;
  --step-2: 1.5rem;
  --step-3: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
  --step-4: clamp(1.6rem, 1.2rem + 2vw, 2.6rem);
  --radius: 12px;
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
  --head-h: 64px;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f4f2ed; --bg-band: #ebe7de; --surface: #fffdf8; --surface-2: #f1ece1;
    --line: #d6ccb6; --line-soft: #e4dccb; --text: #1c170e; --muted: #5f5645;
    --gold: #85641b; --gold-strong: #5e4510; --gold-ink: #1a1305;
    --cta-top: #f0d27f; --cta-bottom: #c79b3e; --hero-fade: 244, 242, 237;
    --ok: #2f7d1f; --warn: #8a6a00; --hot: #a85a10; --bad: #b3261e; --focus: #6b4e12;
    --shadow: 0 14px 40px rgba(60, 45, 15, .16);
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #f4f2ed; --bg-band: #ebe7de; --surface: #fffdf8; --surface-2: #f1ece1;
  --line: #d6ccb6; --line-soft: #e4dccb; --text: #1c170e; --muted: #5f5645;
  --gold: #85641b; --gold-strong: #5e4510; --gold-ink: #1a1305;
  --cta-top: #f0d27f; --cta-bottom: #c79b3e; --hero-fade: 244, 242, 237;
  --ok: #2f7d1f; --warn: #8a6a00; --hot: #a85a10; --bad: #b3261e; --focus: #6b4e12;
  --shadow: 0 14px 40px rgba(60, 45, 15, .16);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 var(--step-0)/1.6 var(--font-body); text-rendering: optimizeLegibility; overflow-x: hidden; }
[hidden] { display: none !important; }
img, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--gold); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--gold-strong); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.2; text-wrap: balance; margin: 0; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 1.25em; height: 1.25em; flex: none; }
.skip { position: absolute; inset-inline-start: 12px; top: -48px; z-index: 50; padding: 10px 14px; border-radius: 8px; background: var(--gold); color: var(--gold-ink); font-weight: 600; }
.skip:focus { top: calc(env(safe-area-inset-top, 0px) + 10px); }

/* ── Cuenta atrás de lanzamiento (franja fija encima de la cabecera, no sticky; colores vivos a propósito: debe llamar la atención) ── */
.launch-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 16px; padding: 8px var(--gutter); padding-top: calc(8px + env(safe-area-inset-top, 0px)); text-align: center; background: linear-gradient(180deg, #ff7a52, #e42f3c); color: #fff; box-shadow: 0 2px 14px rgba(228, 47, 60, .35); }
.launch-banner__row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 6px; margin: 0; font-size: var(--step--1); text-shadow: 0 1px 1px rgba(0, 0, 0, .25); }
.launch-banner__label { text-transform: uppercase; letter-spacing: .04em; font-weight: 800; }
.launch-banner__clock { display: flex; gap: 12px; }
.launch-banner__unit { display: flex; flex-direction: column; align-items: center; line-height: 1.15; min-width: 2.6em; }
.launch-banner__unit strong { font: 700 1.05rem/1 var(--font-display); text-shadow: 0 1px 1px rgba(0, 0, 0, .25); }
.launch-banner__unit small { font-size: .625rem; text-transform: uppercase; letter-spacing: .03em; opacity: .9; }
.launch-banner.is-live { background: linear-gradient(180deg, #4fdc7e, #1fa851); box-shadow: 0 2px 14px rgba(31, 168, 81, .35); }
@media (max-width: 480px) { .launch-banner__row { font-size: .75rem; } .launch-banner__unit { min-width: 2.2em; } .launch-banner__unit strong { font-size: .95rem; } }

/* ── Botones ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 44px; padding: .6em 1.2em; border-radius: 999px; border: 1px solid transparent; font: 600 var(--step-0)/1.1 var(--font-body); text-decoration: none; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, filter .15s ease, background-color .15s ease; }
.btn--play { color: var(--gold-ink); background: linear-gradient(180deg, var(--cta-top), var(--cta-bottom)); border-color: #7a5b1c; box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, 0 8px 22px rgba(185, 141, 52, .28); }
.btn--play:hover { color: var(--gold-ink); filter: brightness(1.07); transform: translateY(-1px); }
.btn--play:active { transform: translateY(0); }
.btn--ghost { color: var(--text); background: transparent; border-color: var(--line); }
.btn--ghost:hover { color: var(--text); border-color: var(--gold); background: var(--surface); }
.btn--large { min-height: 56px; padding: .8em 1.8em; font-size: var(--step-1); letter-spacing: .01em; }
.btn--small { min-height: 38px; padding: .45em 1em; font-size: var(--step--1); }

/* ── Cabecera ── */
.site-head { position: sticky; top: 0; z-index: 30; padding-top: env(safe-area-inset-top, 0px); background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.2) blur(10px); -webkit-backdrop-filter: saturate(1.2) blur(10px); border-bottom: 1px solid var(--line-soft); }
@supports not (background: color-mix(in srgb, red 50%, blue)) { .site-head { background: var(--bg); } }
.site-head__bar { display: flex; align-items: center; gap: 20px; min-height: var(--head-h); }
.brand { flex: none; display: block; width: 132px; }
.site-nav { flex: 1; min-width: 0; }
.site-nav ul { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; }
.site-nav a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--muted); font-size: var(--step--1); font-weight: 500; text-decoration: none; white-space: nowrap; }
.site-nav a:hover { color: var(--text); background: var(--surface); }
.site-head__tools { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.lang-switch, .theme-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 40px; height: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--text); font: 600 var(--step--1)/1 var(--font-body); text-decoration: none; cursor: pointer; }
.lang-switch:hover, .theme-toggle:hover { border-color: var(--gold); color: var(--gold-strong); }
.theme-toggle { padding: 0; width: 40px; }
/* Selector de idioma: <details> con la lista de los 14 idiomas (sin JS también funciona). */
.lang-menu { position: relative; }
.lang-menu > summary { list-style: none; }
.lang-menu > summary::-webkit-details-marker { display: none; }
.lang-menu[open] > summary { border-color: var(--gold); color: var(--gold-strong); }
.lang-menu__list { position: absolute; inset-inline-end: 0; top: calc(100% + 6px); z-index: 40; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; width: max-content; max-width: calc(100vw - 2 * var(--gutter)); max-height: min(70vh, 480px); overflow-y: auto; margin: 0; padding: 6px; list-style: none; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); box-shadow: var(--shadow); }
.lang-menu__list a { display: block; padding: 9px 12px; border-radius: 6px; color: var(--text); font-size: var(--step--1); text-decoration: none; white-space: nowrap; }
.lang-menu__list a:hover, .lang-menu__list a:focus-visible { background: var(--surface-2); color: var(--gold-strong); }
.lang-menu__list a[aria-current] { color: var(--gold); font-weight: 600; }
.theme-toggle__icon { display: none; }
.theme-toggle[data-mode="auto"] [data-icon="auto"], .theme-toggle[data-mode="dark"] [data-icon="dark"], .theme-toggle[data-mode="light"] [data-icon="light"], .theme-toggle:not([data-mode]) [data-icon="auto"] { display: inline-flex; }
@media (max-width: 960px) {
  .site-head__bar { flex-wrap: wrap; gap: 0 12px; }
  .site-nav { order: 3; flex-basis: 100%; margin-inline: calc(var(--gutter) * -1); overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
  [dir="rtl"] .site-nav { -webkit-mask-image: linear-gradient(270deg, #000 88%, transparent); mask-image: linear-gradient(270deg, #000 88%, transparent); }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav ul { padding: 0 var(--gutter) 8px; }
  .brand { width: 112px; }
}
@media (max-width: 420px) { .site-head__tools .btn--play { display: none; } .brand { width: 104px; } }

/* ── Hero ── */
.hero { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(56px, 9vw, 120px) clamp(72px, 10vw, 128px); }
.hero__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(90deg, rgba(var(--hero-fade), .94) 0%, rgba(var(--hero-fade), .78) 42%, rgba(var(--hero-fade), .28) 100%),
  linear-gradient(0deg, rgb(var(--hero-fade)) 0%, rgba(var(--hero-fade), 0) 38%); }
.hero__inner { display: grid; gap: 22px; justify-items: start; }
.hero__title { display: grid; gap: 18px; margin: 0; }
.hero__logo { width: min(620px, 92%); filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .55)); }
.hero__tagline { font-family: var(--font-display); font-size: var(--step-3); font-weight: 600; font-style: italic; color: var(--gold-strong); letter-spacing: .005em; max-width: 22ch; }
.hero__lead { max-width: 54ch; font-size: var(--step-1); color: var(--text); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.hero__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; width: 100%; margin: 10px 0 2px; max-width: 640px; }
.hero__stats[hidden] { display: none; }
.hero__stat { margin: 0; padding: 14px 12px; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.hero__stat dt { color: var(--muted); font-size: var(--step--1); }
.hero__stat dd { margin: 4px 0 0; color: var(--text); font-size: 1.9rem; font-weight: 600; line-height: 1.15; }
.hero__stat--live { border-color: var(--ok); }
.hero__stat--live dt { color: var(--ok); }
.hero__stat--live dt::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-inline-end: 6px; border-radius: 50%; background: var(--ok); }
@media (max-width: 560px) { .hero__stats { grid-template-columns: minmax(0, 1fr); } }
.hero__facts { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 4px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: var(--step--1); }
.hero__saying { margin: 10px 0 0; max-width: 54ch; color: var(--gold); font-style: italic; font-size: var(--step--1); line-height: 1.45; opacity: 0; animation: hero-saying-in .6s ease .4s forwards; }
.hero__saying b { display: block; font-weight: 500; font-size: var(--step-0); }
.hero__saying cite { display: block; opacity: .75; font-style: normal; }
@keyframes hero-saying-in { to { opacity: .95; } }
@media (prefers-reduced-motion: reduce) { .hero__saying { animation: none; opacity: .95; } }
.hero__facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero__facts li::before { content: ""; width: 6px; height: 6px; transform: rotate(45deg); background: var(--gold); }
.hero__route { position: absolute; left: 0; right: 0; bottom: 14px; width: 100%; height: 40px; z-index: -1; }
.hero__route path { fill: none; stroke: var(--gold); stroke-width: 2; stroke-dasharray: 2 10; stroke-linecap: round; opacity: .7; vector-effect: non-scaling-stroke; animation: caravan 40s linear infinite; }
@keyframes caravan { to { stroke-dashoffset: -480; } }
@media (max-width: 640px) { .hero::before { background: linear-gradient(0deg, rgb(var(--hero-fade)) 8%, rgba(var(--hero-fade), .82) 55%, rgba(var(--hero-fade), .6) 100%); } }

/* ── Secciones ── */
.section { padding-block: clamp(56px, 8vw, 104px); }
main > .section:nth-child(even of .section) { background: var(--bg-band); border-block: 1px solid var(--line-soft); }
.section-head { display: grid; gap: 10px; max-width: 62ch; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head h2 { font-size: var(--step-4); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--gold); font-size: var(--step--1); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 7px; height: 7px; transform: rotate(45deg); border: 1.5px solid currentColor; }
.lead { color: var(--muted); font-size: var(--step-1); }
.note { padding: 14px 16px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }
.status { padding: 24px 0; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

/* ── Características ── */
.features-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 32px; margin: 0; padding: 0; list-style: none; }
.feature { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: start; }
.feature__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--gold); }
.feature h3 { font-size: var(--step-1); margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: .9688rem; }
.features-aside { display: grid; gap: 20px; position: sticky; top: calc(var(--head-h) + 24px); }
@media (max-width: 1000px) { .features-layout { grid-template-columns: 1fr; } .features-aside { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }
@media (max-width: 720px) { .features { grid-template-columns: 1fr; } .features-aside { grid-template-columns: 1fr; } }

.channel-board { margin: 0; padding: 14px; border: 1px solid #6f5a30; border-radius: 10px; background: linear-gradient(170deg, #1d2527, #0b0f10 75%); box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .05); color: #ece5d3; font-size: var(--step--1); }
.channel-board__title { margin: -14px -14px 12px; padding: 9px 14px; border-bottom: 1px solid #4a3f28; border-radius: 10px 10px 0 0; background: linear-gradient(#2a3234, #161c1e); color: #f3e2b1; font-family: var(--font-display); font-size: var(--step-0); letter-spacing: .06em; }
.channel-board__rows { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.channel-board__rows li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 9px 12px; border: 1px solid #2a3336; border-radius: 8px; background: #080c0d; }
.ch-name { color: #fff0c2; font-weight: 600; }
.ch-state { font-weight: 700; letter-spacing: .02em; }
.ch-state[data-state="easy"] { color: #9fe07a; }
.ch-state[data-state="populated"] { color: #f0d880; }
.ch-state[data-state="crowded"] { color: #f0a050; }
.ch-state[data-state="full"] { color: #ff6a5a; }
.ch-note { grid-column: 1 / -1; color: #8d9894; font-size: .8125rem; }
.channel-board__full { margin-top: 10px; color: #8d9894; font-size: .8125rem; }
.channel-board figcaption { margin-top: 12px; padding-top: 10px; border-top: 1px solid #2a3336; color: #a7ada9; font-size: .8125rem; }
.origins { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.origin { margin: 0; display: grid; gap: 8px; }
.origin img { width: 100%; aspect-ratio: 800 / 364; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.origin figcaption { color: var(--muted); font-size: var(--step--1); line-height: 1.45; }
.origin strong { display: block; color: var(--text); font-family: var(--font-display); font-size: var(--step-1); }

/* ── Instalación ── */
.install { display: grid; gap: 18px; }
.install__tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.tab { position: relative; display: grid; gap: 2px; justify-items: start; min-height: 64px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); font: 600 var(--step--1)/1.3 var(--font-body); text-align: start; cursor: pointer; }
.tab small { color: var(--muted); font-weight: 400; }
.tab:hover { border-color: var(--gold); }
.tab[aria-selected="true"] { border-color: var(--gold); background: var(--surface-2); box-shadow: inset 0 -3px 0 var(--gold); }
.tab__detected { order: -1; justify-self: start; margin-bottom: 2px; padding: 1px 7px; border-radius: 999px; background: var(--gold); color: var(--gold-ink); font-size: .6875rem; font-style: normal; font-weight: 700; letter-spacing: .03em; }
.install-panel { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: center; padding: clamp(18px, 3vw, 32px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.install-panel + .install-panel { margin-top: 0; }
.install-art { width: 100%; height: auto; }
.install-art .a-frame { fill: var(--surface-2); stroke: var(--line); stroke-width: 1.5; }
.install-art .a-bar { fill: var(--bg); stroke: var(--line); }
.install-art .a-menu { fill: var(--bg); stroke: var(--line); }
.install-art .a-text { fill: var(--line); }
.install-art .a-dot { fill: var(--muted); }
.install-art .a-accent { fill: var(--gold); opacity: .8; }
.install-art .a-hot > :first-child { fill: var(--gold); }
.install-art .a-hot { stroke: var(--gold-ink); fill: var(--gold-ink); }
.install-art .a-hot > :first-child { stroke: none; }
.install-art .a-hot { animation: pulse 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes pulse { 50% { opacity: .72; } }
.steps { display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; display: grid; gap: 4px; padding-inline-start: 52px; counter-increment: step; }
.steps li::before { content: counter(step); position: absolute; inset-inline-start: 0; top: -2px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--gold); color: var(--gold); font: 700 var(--step-0)/1 var(--font-display); }
.steps li:not(:last-child)::after { content: ""; position: absolute; inset-inline-start: 17.5px; top: 40px; bottom: -16px; border-inline-start: 1.5px dotted var(--line); }
.steps h3 { font-size: var(--step-1); }
.steps p { color: var(--muted); }
.firefox-note { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: start; margin-top: 18px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); }
.firefox-note h3 { font-size: var(--step-0); margin-bottom: 2px; }
.firefox-note p { color: var(--muted); }
.firefox-note__icon { color: var(--hot); display: grid; place-items: center; padding-top: 2px; }
.firefox-note.is-current { border-color: var(--hot); background: var(--surface); }
.install__cta { margin-top: 24px; }
.install-guide { display: grid; gap: 14px; margin-bottom: 28px; padding: clamp(18px, 3vw, 32px); border: 1.5px solid var(--gold); border-radius: var(--radius); background: var(--surface); }
.install-guide__eyebrow { color: var(--gold); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: var(--step--1, .85rem); }
.install-guide__name { font-size: var(--step-2, 1.5rem); }
.install-guide__note { padding: 10px 14px; border-inline-start: 3px solid var(--hot); background: var(--bg); border-radius: 6px; }
.install-guide .steps p { color: var(--text, inherit); font-size: var(--step-1, 1.1rem); }
.install-guide__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.install-guide__copied { color: var(--gold); }
.install__other { margin: 0 0 12px; font-size: var(--step-1); color: var(--muted); }
@media (max-width: 560px) { .install-guide__actions .btn { width: 100%; justify-content: center; } }
@media (max-width: 860px) { .install__tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); } .install-panel { grid-template-columns: 1fr; } .install-panel__art { max-width: 320px; } }

/* ── Noticias ── */
.news { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 18px; align-items: start; }
.news-card { display: grid; gap: 10px; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); min-width: 0; }
.news-card--pinned { grid-column: 1 / -1; border-color: color-mix(in srgb, var(--gold) 55%, var(--line)); background: linear-gradient(160deg, var(--surface-2), var(--surface) 60%); }
.news-card h3 { font-size: var(--step-2); }
.news-card:not(.news-card--pinned) h3 { font-size: var(--step-1); }
.news-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; color: var(--muted); font-size: .8125rem; }
.cat, .pin { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--line); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: .6875rem; }
.cat[data-cat="patch"] { color: var(--gold); border-color: color-mix(in srgb, var(--gold) 60%, transparent); }
.cat[data-cat="event"] { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 50%, transparent); }
.cat[data-cat="maintenance"] { color: var(--hot); border-color: color-mix(in srgb, var(--hot) 55%, transparent); }
.pin { background: var(--gold); color: var(--gold-ink); border-color: var(--gold); }
.news-card__body { display: grid; gap: 10px; max-width: 70ch; overflow-wrap: anywhere; }
.news-card__body ul, .news-card__body ol { margin: 0; padding-inline-start: 1.3em; display: grid; gap: 4px; }
.news-card__body h4 { font-size: var(--step-1); margin-top: 4px; }
.news-card__body code { padding: 1px 5px; border-radius: 4px; background: var(--bg); font: .9em var(--font-mono); }
.news-card__more summary { color: var(--gold); cursor: pointer; font-weight: 600; width: max-content; }
.news-card__more[open] summary { margin-bottom: 10px; }
.news-card__by { font-size: .8125rem; }

/* ── Rankings ── */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip { min-height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text); font: 600 var(--step--1)/1 var(--font-body); cursor: pointer; }
.chip:hover { border-color: var(--gold); }
.chip[aria-selected="true"] { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.rank { min-height: 180px; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.rank-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: .9375rem; }
.rank-table th, .rank-table td { padding: 11px 16px; text-align: start; border-bottom: 1px solid var(--line-soft); white-space: nowrap; }
.rank-table thead th { position: sticky; top: 0; background: var(--surface-2); color: var(--muted); font: 700 .75rem/1.2 var(--font-body); letter-spacing: .08em; text-transform: uppercase; }
.rank-table tbody tr:last-child > * { border-bottom: 0; }
.rank-table tbody tr:hover > * { background: var(--surface-2); }
.rank-table .col-rank { width: 3.5rem; color: var(--muted); font-weight: 700; }
.rank-table .col-level, .rank-table .col-jobLevel, .rank-table .col-members, .rank-table .col-points { text-align: end; }
.rank-table tbody th.col-name { font-weight: 600; color: var(--text); }
.rank-table .top .col-rank { color: var(--gold); font-family: var(--font-display); font-size: 1.05rem; }
.rank-table .top-1 .col-name::after { content: " ◆"; color: var(--gold); font-size: .75em; }
.rank__updated { margin-top: 10px; font-size: .8125rem; min-height: 1.3em; }
@media (max-width: 560px) { .rank-table th, .rank-table td { padding: 10px 10px; } .rank-table .col-race { display: none; } }

/* ── Comunidad ── */
.social { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.social__link { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--text); text-decoration: none; }
.social__link:hover { border-color: var(--gold); color: var(--text); }
.social__link .icon { width: 28px; height: 28px; color: var(--gold); }
.social__link span { display: grid; }
.social__link small { color: var(--muted); font-size: .8125rem; }
.social__link--primary { grid-column: span 2; }
@media (max-width: 560px) { .social__link--primary { grid-column: auto; } }

/* ── FAQ ── */
.faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(20px, 5vw, 64px); align-items: start; }
.faq__list { display: grid; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 2px; cursor: pointer; list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s ease; }
.faq__item[open] summary::after { transform: rotate(225deg) translate(-2px, -2px); }
.faq__item h3 { font-size: var(--step-1); }
.faq__item p { padding: 0 2px 20px; color: var(--muted); max-width: 68ch; }
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; } }

/* ── Pie ── */
.site-foot { padding-block: 48px calc(28px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line-soft); background: var(--bg); }
.site-foot__grid { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr) auto; gap: 32px 48px; align-items: start; }
.site-foot__brand { display: grid; gap: 10px; }
.site-foot__brand img { width: 180px; }
.site-foot__brand p { font-size: .8125rem; }
.site-foot__title { font-size: var(--step-0); color: var(--gold); margin-bottom: 6px; font-family: var(--font-body); letter-spacing: .08em; text-transform: uppercase; font-size: .75rem; }
.site-foot__notice p { color: var(--muted); font-size: .875rem; max-width: 70ch; }
.site-foot__links { display: grid; gap: 8px; font-size: .9375rem; }
.site-foot__links a { color: var(--text); text-decoration: none; }
.site-foot__links a:hover { color: var(--gold-strong); text-decoration: underline; }
.site-foot__copy { margin-top: 32px; color: var(--muted); font-size: .8125rem; }
@media (max-width: 860px) { .site-foot__grid { grid-template-columns: 1fr; } }

/* ── Páginas legales / 404 ── */
.legal { padding-block: clamp(32px, 6vw, 72px); max-width: 820px; }
.legal h1 { font-size: var(--step-4); margin: 18px 0 8px; }
.legal__body { display: grid; gap: 28px; margin-top: 32px; }
.legal__body section { display: grid; gap: 10px; }
.legal__body h2 { font-size: var(--step-2); color: var(--gold-strong); }
.legal__body p { color: var(--text); max-width: 68ch; }
.back { text-decoration: none; font-weight: 600; }
.notfound { display: grid; gap: 18px; justify-items: start; }
.notfound img { width: min(420px, 100%); }
.notfound p:last-child { display: flex; flex-wrap: wrap; gap: 12px; }

/* ── Silk ── */
.store__points { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: -12px 0 24px; padding: 0; list-style: none; color: var(--muted); font-size: var(--step--1); }
.store__points li { display: inline-flex; align-items: center; gap: 8px; }
.store__points li::before { content: ""; width: 6px; height: 6px; transform: rotate(45deg); background: var(--gold); }
.store__cta { margin-top: 24px; }

/* ── Requisitos ── */
.req { display: grid; gap: 20px; }
.req-block { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.req-table { width: 100%; border-collapse: collapse; font-size: .9063rem; }
.req-table caption { padding: 14px 16px; text-align: start; font: 600 var(--step-1)/1.2 var(--font-display); color: var(--gold-strong); border-bottom: 1px solid var(--line); background: var(--surface-2); }
.req-table th, .req-table td { padding: 10px 14px; text-align: start; vertical-align: top; border-bottom: 1px solid var(--line-soft); }
.req-table thead th { color: var(--muted); font: 700 .75rem/1.2 var(--font-body); letter-spacing: .08em; text-transform: uppercase; }
.req-table thead th:nth-child(3) { color: var(--gold); }
.req-table tbody th { width: 22%; color: var(--text); font-weight: 600; }
.req-table tbody td { color: var(--muted); }
.req-table tbody td:last-child { color: var(--text); }
.req-table tbody tr:last-child > * { border-bottom: 0; }
.req-notes { display: grid; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: .9375rem; max-width: 80ch; }
.req-notes li { position: relative; padding-inline-start: 18px; }
.req-notes li::before { content: ""; position: absolute; inset-inline-start: 0; top: .6em; width: 6px; height: 6px; transform: rotate(45deg); background: var(--gold); }
.req-link { margin-top: 16px; }
.req-link a { font-weight: 600; }
@media (max-width: 600px) {
  .req-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .req-table tbody, .req-table tr, .req-table th, .req-table td { display: block; width: auto; }
  .req-table tbody tr { padding: 10px 14px; border-bottom: 1px solid var(--line-soft); }
  .req-table tbody tr:last-child { border-bottom: 0; }
  .req-table tbody th, .req-table tbody td { padding: 2px 0; border: 0; width: auto; }
  .req-table tbody td::before { content: attr(data-label) ": "; color: var(--gold); font-weight: 600; }
}

/* ── RTL (árabe): las flechas apuntan hacia el avance de lectura. ── */
[dir="rtl"] .hero__cta .btn--ghost .icon { transform: scaleX(-1); }
/* ── iPhone app (IPA) guide, /ios ── */
.ios .eyebrow { margin-top: 18px; }
.ios h1 { margin-top: 4px; }
.ios .lead { max-width: 68ch; color: var(--muted); }
.ios-download { display: grid; gap: 12px; margin-top: 24px; padding: clamp(16px, 3vw, 24px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.ios-download p { margin: 0; }
.ios-download__phone, .ios-download__wait { padding: 12px 14px; border-radius: 10px; border: 1px dashed var(--gold); color: var(--text); }
.ios-download__cta .btn { max-width: 100%; white-space: normal; text-align: center; }
.ios-download__facts { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0; }
.ios-download__facts div { min-width: 0; }
.ios-download__facts dt { color: var(--muted); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; }
.ios-download__facts dd { margin: 2px 0 0; font-weight: 600; }
.ios-download__sha { flex-basis: 100%; }
.ios-download__sha code { display: block; font-size: .75rem; font-weight: 400; overflow-wrap: anywhere; color: var(--muted); }
.ios-list { display: grid; gap: 8px; margin: 0; padding-inline-start: 1.2em; }
.ios-list li { max-width: 68ch; }
/* One step count over the whole guide (1, 2, 3 … across the parts): a beginner follows a single list. */
.ios-body { counter-reset: step; }
.ios-part h2 { padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.ios-part .steps { margin-top: 6px; counter-reset: none; }
.ios-part .steps li { padding-inline-start: 46px; }
.ios-part .steps li::before { width: 30px; height: 30px; font-size: .9rem; }
.ios-part .steps li:not(:last-child)::after { inset-inline-start: 14.5px; top: 34px; }
.ios-part .steps p { color: var(--text); max-width: 64ch; }
.ios-callout { padding: 16px 18px; border-inline-start: 4px solid var(--gold); border-radius: 8px; background: var(--surface); }
.ios-callout--warn { border-inline-start-color: #d9822b; }
.ios-video { margin: 22px 0; }
.ios-video h2 { font-size: 1.15rem; margin-bottom: 10px; }
.ios-video video { display: block; width: 100%; max-width: 860px; aspect-ratio: 16 / 9; border-radius: 10px; background: #000; border: 1px solid var(--line); }
/* iPhone / iPad visitors: the iPhone app button sits next to Play, highlighted (site.js adds .btn--ios). */
.hero__cta .btn--ios { color: var(--gold); border: 2px solid var(--gold); background: var(--surface); }
.hero__cta .btn--ios:hover { color: var(--gold); background: var(--surface); filter: brightness(1.1); }
/* ── Download page, /download: APK + IPA cards (always visible), browser card full width. ── */
.dl.legal { max-width: 1120px; }
.dl .eyebrow { margin-top: 18px; }
.dl h1 { margin-top: 4px; }
.dl .lead { max-width: 68ch; color: var(--muted); }
.dl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.5vw, 24px); margin-top: 28px; }
.dl-card { display: grid; align-content: start; gap: 14px; min-width: 0; padding: clamp(18px, 3vw, 28px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.dl-card h2 { margin: 0; font-size: var(--step-2); }
.dl-card h3 { margin: 6px 0 0; font-size: var(--step-0); }
.dl-card p { margin: 0; }
.dl-card .btn { max-width: 100%; white-space: normal; text-align: center; }
.dl-card__cta .btn--large { width: 100%; }
.dl-card__guide .btn { width: 100%; border-color: var(--gold); color: var(--gold); }
[dir="rtl"] .dl-card__guide .icon { transform: scaleX(-1); }
.dl-card--browser { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.dl-card--browser .dl-card__cta .btn--large { width: auto; }
.dl-card--browser > div { display: grid; gap: 8px; }
.dl-facts { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0; }
.dl-facts div { min-width: 0; }
.dl-facts dt { color: var(--muted); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; }
.dl-facts dd { margin: 2px 0 0; font-weight: 600; }
.dl-facts__sha { flex-basis: 100%; }
.dl-facts__sha code { display: block; font-size: .75rem; font-weight: 400; overflow-wrap: anywhere; color: var(--muted); }
.dl-steps { gap: 12px; }
.dl-steps li { padding-inline-start: 46px; }
.dl-steps li::before { width: 30px; height: 30px; font-size: .9rem; }
.dl-steps li:not(:last-child)::after { inset-inline-start: 14.5px; top: 34px; bottom: -10px; }
.dl-steps p { color: var(--text); }
.dl-steps bdi { white-space: nowrap; }
.dl-safe { margin-top: 20px; }
.site-nav .site-nav__download { display: inline-flex; align-items: center; gap: 6px; color: var(--gold); font-weight: 600; }
.site-nav .site-nav__download svg { width: 16px; height: 16px; }
@media (max-width: 760px) {
  .dl-grid { grid-template-columns: minmax(0, 1fr); }
  .dl-card--browser { grid-template-columns: minmax(0, 1fr); }
  .dl-card--browser .dl-card__cta .btn--large { width: 100%; }
}

/* ── /support (contact, FAQ, account deletion) and the TestFlight button of /ios and /download ── */
.support .lead { max-width: 68ch; color: var(--muted); }
.support section { display: grid; gap: 12px; margin-top: 32px; }
.support h2 { font-size: var(--step-2); color: var(--gold-strong); }
.support h3 { font-size: var(--step-1); margin-top: 6px; }
.support p, .support li { max-width: 68ch; }
.support-contact__buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.support-delete { padding: clamp(16px, 3vw, 24px); border: 1px solid var(--line); border-inline-start: 4px solid #d9822b; border-radius: var(--radius); background: var(--surface); scroll-margin-top: 90px; }
.support-delete ol, .support-delete ul { display: grid; gap: 8px; margin: 0; padding-inline-start: 1.3em; }
.testflight { display: grid; gap: 8px; margin-top: 24px; }
.testflight p { margin: 0; }
.testflight .btn { max-width: 100%; white-space: normal; text-align: center; }
.testflight--card { margin-top: 0; }
.testflight--card .btn--large { width: 100%; }
.testflight__other { padding-top: 8px; border-top: 1px solid var(--line); color: var(--muted); font-weight: 600; }

/* Android (owner 2026-10-23): no browser game on Android; site.js adds .is-android, Play links lead to /download#dl-android. */
.is-android #apk-link, .is-android .dl-card--browser, .is-android #install-guide, .is-android #install-other, .is-android .firefox-note { display: none !important; }
.install-panel__lead { margin: 0 0 12px; }
.install-panel__cta { margin: 16px 0 0; }
.dl-inapp { margin: 0 0 24px; padding: 16px 18px; border: 1px solid var(--gold, #e8c46a); border-radius: 12px; background: rgba(232, 196, 106, .08); }
.dl-inapp h2 { margin: 0 0 6px; font-size: 1.15rem; }
.dl-inapp p { margin: 0 0 10px; }
.dl-inapp__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.dl-inapp__actions .btn { min-height: 44px; }
.dl-inapp__copied { color: #9be39b; font-size: .9rem; }
#main > .dl-inapp:first-child { margin: 16px 16px 24px; }
/* /download, desktop: QR + short link to open the page on the phone (site.js marks phones with .is-android / .is-ios). */
.dl-share { display: flex; align-items: center; gap: 20px; margin-top: 28px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; }
.dl-share h2 { margin: 0 0 6px; font-size: 1.15rem; }
.dl-share p { margin: 0 0 10px; }
.dl-share__qr { flex: none; width: 132px; height: 132px; border-radius: 6px; }
.dl-share__link { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-weight: 600; overflow-wrap: anywhere; }
.is-android .dl-share, .is-ios .dl-share { display: none; }
@media (max-width: 520px) { .dl-share { flex-direction: column; align-items: flex-start; } }
/* ── Portal (owner 2026-11-20: the classic MMO portal layout, our own logo and game art only) ──
   Thin dark top bar with Turkey time, Silk / log in / sign up; hero with the Hotan art on the right; three columns:
   account box + menu | banner slider, Item Mall, latest news | Item Mall, server clock, Silk, shortcuts. Phone: one column. */
.site-head { background: linear-gradient(180deg, #2a241a, #15110b); border-bottom: 1px solid #000; box-shadow: 0 1px 0 #3b3122; -webkit-backdrop-filter: none; backdrop-filter: none; }
.site-head__bar { min-height: 54px; gap: 14px; }
.brand { width: 116px; }
.site-nav a { padding: 6px 9px; font-size: .8125rem; font-weight: 600; color: #cdbf9f; }
.site-nav a:hover { color: #fff; background: rgba(255, 220, 150, .07); }
.site-head__tools { gap: 6px; }
.site-clock { font-size: .75rem; color: var(--muted); white-space: nowrap; }
.site-clock b { color: var(--text); font-variant-numeric: tabular-nums; }
.btn--silk, .btn--dark, .btn--green { border-radius: 4px; text-shadow: 0 1px 1px rgba(0, 0, 0, .45); }
.btn--silk { color: #fff; background: linear-gradient(180deg, #f39a34, #b45a0c); border-color: #2a1504; }
.btn--silk:hover { color: #fff; filter: brightness(1.08); }
.btn--dark { color: #f1e6cb; background: linear-gradient(180deg, #4d4434, #262016); border-color: #6b5a38; }
.btn--dark:hover { color: #fff; border-color: var(--gold); }
.btn--green { color: #fff; background: linear-gradient(180deg, #7cbc3c, #3f7516); border-color: #172b07; }
.btn--green:hover { color: #fff; filter: brightness(1.08); }
.btn--tiny { min-height: 26px; padding: 3px 10px; font-size: .75rem; }
@media (max-width: 1440px) { .site-clock { display: none; } }
/* the menu goes to its own scrolling row earlier than before: five buttons share the bar now (was 960 px) */
@media (max-width: 1240px) {
  .site-head__bar { flex-wrap: wrap; gap: 0 12px; }
  .site-nav { order: 3; flex-basis: 100%; margin-inline: calc(var(--gutter) * -1); overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
  [dir="rtl"] .site-nav { -webkit-mask-image: linear-gradient(270deg, #000 88%, transparent); mask-image: linear-gradient(270deg, #000 88%, transparent); }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav ul { padding: 0 var(--gutter) 8px; }
}
/* site.js: the menu does not fit in one row even on a wide screen (long words in fr/el/...): same two-row layout */
.site-head--stacked .site-head__bar { flex-wrap: wrap; gap: 0 12px; }
.site-head--stacked .site-nav { order: 3; flex-basis: 100%; margin-inline: calc(var(--gutter) * -1); overflow-x: auto; scrollbar-width: none; }
.site-head--stacked .site-nav::-webkit-scrollbar { display: none; }
.site-head--stacked .site-nav ul { padding: 0 var(--gutter) 8px; }
@media (max-width: 960px) { .site-head__bar { min-height: 50px; } }
@media (max-width: 560px) { .site-head__tools .btn--silk, .site-head__play { display: none; } .site-head__tools .btn--small { min-height: 32px; padding: .3em .7em; } }

.hero--portal { padding-block: clamp(28px, 5vw, 56px) clamp(96px, 11vw, 132px); background: #120e08; }
.hero--portal::before { background: linear-gradient(90deg, #120e08 24%, rgba(18, 14, 8, .78) 42%, rgba(18, 14, 8, 0) 64%), linear-gradient(0deg, var(--bg) 0%, rgba(12, 10, 7, 0) 30%); }
[dir="rtl"] .hero--portal::before { background: linear-gradient(270deg, #120e08 24%, rgba(18, 14, 8, .78) 42%, rgba(18, 14, 8, 0) 64%), linear-gradient(0deg, var(--bg) 0%, rgba(12, 10, 7, 0) 30%); }
.hero__art { position: absolute; inset-block: 0; inset-inline-end: 0; z-index: -2; width: min(1040px, 76%); }
.hero__art img { width: 100%; height: 100%; object-fit: cover; object-position: 42% 0; }
.hero--portal .hero__logo { width: min(400px, 80%); }
.hero--portal .hero__tagline { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); }
.hero--portal .hero__lead { max-width: 46ch; font-size: .9375rem; text-shadow: 0 1px 3px #000; }
.hero--portal .hero__inner { gap: 14px; }
.hero--portal .hero__title { gap: 10px; }
.hero--portal .hero__stats { gap: 8px; max-width: 520px; margin: 2px 0 0; }
.hero--portal .hero__stat { padding: 8px 10px; background: rgba(23, 19, 13, .82); }
.hero--portal .hero__stats { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 640px; }
.hero--portal .hero__stat dd { font-size: 1.35rem; }
.hero--portal .hero__stat--main { border-color: #b98d34; }
.hero--portal .hero__stat--main dd { color: #ffd86b; font-size: 1.7rem; }
.hero--portal .hero__stat--peak dd { color: #ffb36b; }
.hero--portal .hero__stat dd small { display: block; margin-top: 2px; color: var(--muted); font-size: .6875rem; font-weight: 400; }
@media (max-width: 560px) { .hero--portal .hero__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.hero--portal .hero__saying { margin-top: 2px; }
@media (max-width: 760px) {
  .hero--portal::before { background: linear-gradient(90deg, rgba(18, 14, 8, .92) 0%, rgba(18, 14, 8, .5) 70%, rgba(18, 14, 8, .25) 100%), linear-gradient(0deg, var(--bg) 0%, rgba(12, 10, 7, 0) 40%); }
  .hero__art { width: 100%; }
  .hero__art img { object-position: 64% 0; }
}

.portal { position: relative; z-index: 2; display: grid; grid-template-columns: 236px minmax(0, 1fr) 252px; gap: 12px; align-items: start; margin-top: clamp(-96px, -8vw, -60px); padding-bottom: 24px; }
.portal.wrap, .hero--portal .wrap, .site-head__bar.wrap { max-width: 1280px; }
/* Wide screens (owner 2026-11-21, 2560+ px or a zoomed-out page): the picture stays next to the content instead of the far
   screen edge, and fades out on both sides (no hard edge behind the portal). */
@media (min-width: 1600px) {
  .hero__art { inset-inline-end: calc(50% - 760px); width: 1080px; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24%, #000 78%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 24%, #000 78%, transparent 100%); }
  [dir="rtl"] .hero__art { -webkit-mask-image: linear-gradient(270deg, transparent 0, #000 24%, #000 78%, transparent 100%); mask-image: linear-gradient(270deg, transparent 0, #000 24%, #000 78%, transparent 100%); }
}
.portal__col { display: grid; gap: 12px; min-width: 0; }
.pbox { background: linear-gradient(180deg, #1f1910, #16120c); border: 1px solid #4a3a20; border-radius: 6px; box-shadow: 0 0 0 1px #000, inset 0 1px 0 rgba(255, 220, 150, .08); overflow: hidden; }
.pbox__head { display: flex; align-items: center; gap: 8px; min-height: 36px; margin: 0; padding: 4px 12px; border-bottom: 1px solid #2c2416; background: linear-gradient(180deg, #2f2717, #1a150d);
  font: 700 .9rem/1.2 var(--font-display); letter-spacing: .06em; text-transform: uppercase; color: var(--gold-strong); }
.pbox__head h2 { margin: 0; font: inherit; letter-spacing: inherit; color: inherit; }
.pbox__head::before { content: ""; flex: none; width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ffe7a8, #b07a26 60%, #5a3a0c); box-shadow: 0 0 6px rgba(255, 200, 90, .5); }
.pbox__tools { display: flex; gap: 6px; margin-inline-start: auto; }
.pbox__more { margin-inline-start: auto; font: 600 .75rem var(--font-body); letter-spacing: 0; text-transform: none; color: var(--muted); text-decoration: none; }
.pbox__more:hover { color: var(--gold-strong); }

.paccount__body { display: grid; gap: 8px; padding: 12px; }
.paccount__body p { margin: 0; font-size: .8125rem; }
.paccount__login { width: 100%; min-height: 38px; }
.paccount__forgot { justify-self: center; font-size: .75rem; color: var(--muted); }
.paccount__forgot:hover { color: var(--gold-strong); }
.paccount__register { display: flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 4px; border: 1px solid #ffd98a; background: linear-gradient(180deg, #e9a43c, #9b5a14);
  color: #fff; font: 700 1.1rem var(--font-display); letter-spacing: .06em; text-decoration: none; text-shadow: 0 1px 2px #000; box-shadow: 0 0 14px rgba(233, 164, 60, .25); }
.paccount__register:hover { color: #fff; filter: brightness(1.08); }
.pfree { position: relative; display: grid; align-content: center; justify-items: end; gap: 4px; min-height: 100px; padding: 12px; border-radius: 6px; border: 1px solid #9c7432; overflow: hidden; text-decoration: none; text-align: end;
  background: linear-gradient(90deg, rgba(0, 0, 0, .1), rgba(90, 14, 0, .88)), url("/images/portal/china-400.jpg") 25% 25% / cover; }
.pfree strong { font: 700 1.15rem/1.15 var(--font-display); color: #ffd98a; text-shadow: 0 2px 4px #000; }
.pfree small { color: #fff; font-weight: 600; font-size: .75rem; text-shadow: 0 1px 2px #000; }
.pfree:hover strong { color: #fff3c4; }
.pmenu ul { display: grid; gap: 4px; margin: 0; padding: 6px; list-style: none; }
.pmenu a { display: flex; align-items: center; gap: 8px; min-height: 34px; padding: 4px 10px; border: 1px solid #3a2e19; border-radius: 4px; background: linear-gradient(180deg, #272012, #17130c);
  font: 600 .875rem var(--font-display); letter-spacing: .03em; color: #e8d4a6; text-decoration: none; }
.pmenu a::before { content: "◆"; font-size: .55rem; color: var(--gold); }
.pmenu a::after { content: "+"; margin-inline-start: auto; color: var(--muted); font-family: var(--font-body); }
.pmenu a:hover { border-color: #9c7432; color: #fff; }

.pslider { position: relative; aspect-ratio: 1100 / 520; border-radius: 6px; overflow: hidden; border: 2px solid #8b6a2e; box-shadow: 0 0 0 1px #000, 0 10px 26px rgba(0, 0, 0, .5); background: #0b0805; }
.pslide { position: absolute; inset: 0; display: flex; align-items: flex-end; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility .6s; background-size: cover; background-position: center; text-decoration: none; }
.pslide.is-on { opacity: 1; visibility: visible; }
.pslide::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, .86) 0%, rgba(0, 0, 0, 0) 58%); }
.pslide--hotan { background-image: url("/images/portal/slide-hotan.jpg"); }
.pslide--capsule { background-image: url("/images/portal/slide-capsule.jpg"); }
.pslide--community { background-image: url("/images/portal/slide-community.jpg"); }
@media (max-width: 760px) {
  .pslide--hotan { background-image: url("/images/portal/slide-hotan-520.jpg"); }
  .pslide--capsule { background-image: url("/images/portal/slide-capsule-520.jpg"); }
  .pslide--community { background-image: url("/images/portal/slide-community-520.jpg"); }
}
.pslide__text { position: relative; display: grid; gap: 4px; padding: 18px 20px; padding-inline-end: 120px; }
.pslide__text strong { font: 700 clamp(1.3rem, 1rem + 1.2vw, 1.8rem)/1.15 var(--font-display); color: #ffd98a; text-shadow: 0 2px 8px #000; }
.pslide__text span { color: #f4ead2; text-shadow: 0 1px 4px #000; font-weight: 500; }
.pdots { position: absolute; inset-inline-end: 10px; bottom: 12px; z-index: 2; display: flex; gap: 5px; }
.pdots__dot { width: 26px; height: 26px; border-radius: 4px; border: 1px solid #6b5a38; background: rgba(0, 0, 0, .65); color: #e8d4a6; font: 700 .75rem var(--font-body); cursor: pointer; }
.pdots__dot.is-on { background: var(--gold); color: var(--gold-ink); }

.pmall__body { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px; }
.pmall__col { border: 1px solid #2c2416; border-radius: 4px; background: linear-gradient(180deg, #2a2213, #1a150d); }
.pmall__col h3 { margin: 0; padding: 7px 10px; border-bottom: 1px solid #2c2416; font: 700 .8125rem var(--font-display); letter-spacing: .04em; color: #e8d4a6; }
.pitems { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.pitem { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; text-align: center; }
.pitem + .pitem { border-inline-start: 1px solid #2c2416; }
.pitem img { width: 48px; height: 48px; border: 1px solid #6b5a38; border-radius: 4px; background: #000; }
.pitem__name { min-height: 2.5em; font-size: .75rem; line-height: 1.25; color: var(--text); }
.pitem__price { display: flex; align-items: center; gap: 4px; font-weight: 800; font-size: .8125rem; color: #ffcf5a; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pcoin { width: 13px; height: 13px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff0b8, #d29b2c 60%, #7a520f); box-shadow: 0 0 0 1px #3b2a08; }
.pmall__note { margin: 0; padding: 0 12px 10px; font-size: .75rem; }

.pnews__list { margin: 0; padding: 4px 12px 8px; list-style: none; }
.pnews__list li { display: flex; align-items: flex-start; gap: 10px; padding: 9px 0; border-bottom: 1px dashed #3a2e19; }
.pnews__list li:last-child { border-bottom: 0; }
.pnews__list .status { padding: 12px 0; }
.pnews__tag { flex: none; margin-top: 2px; padding: 2px 7px; border-radius: 3px; background: #2f6e9c; color: #fff; font: 700 .65rem/1.4 var(--font-body); text-transform: uppercase; letter-spacing: .03em; }
.pnews__tag[data-cat="event"] { background: #8a3f9c; }
.pnews__tag[data-cat="maintenance"] { background: #9c6a2f; }
.pnews__tag[data-cat="notice"] { background: #3d7a40; }
.pnews__list a { flex: 1; min-width: 0; color: #ece3cf; font-weight: 600; text-decoration: none; }
.pnews__list a:hover { color: var(--gold-strong); }
.pnews__list time { flex: none; margin-top: 2px; color: var(--muted); font-size: .75rem; white-space: nowrap; }

.pbanner { position: relative; display: grid; align-content: start; gap: 4px; min-height: 92px; padding: 12px; border-radius: 6px; overflow: hidden; text-decoration: none; background-size: cover; background-position: center; }
.pbanner strong { position: relative; font: 700 1.3rem/1.1 var(--font-display); text-shadow: 0 2px 4px #000; }
.pbanner span { position: relative; max-width: 17ch; font-size: .75rem; line-height: 1.3; color: #f1e6cc; text-shadow: 0 1px 2px #000; }
.pbanner em { position: relative; justify-self: start; margin-top: 4px; padding: 2px 8px; border-radius: 3px; background: #2d7a3a; color: #fff; font: 700 .65rem var(--font-body); font-style: normal; letter-spacing: .03em; }
.pbanner::before { content: ""; position: absolute; inset: 0; }
.pbanner--mall { border: 1px solid #9c7432; background-image: url("/images/portal/slide-community-520.jpg"); }
.pbanner--mall::before { background: linear-gradient(90deg, rgba(15, 10, 4, .92), rgba(15, 10, 4, .3)); }
.pbanner--mall strong { color: #ffd98a; }
.pbanner--silk { border: 1px solid #3f6f86; background-image: url("/images/portal/slide-hotan-520.jpg"); }
.pbanner--silk::before { background: linear-gradient(90deg, rgba(4, 18, 26, .93), rgba(4, 18, 26, .35)); }
.pbanner--silk strong { color: #bfe9ff; }
[dir="rtl"] .pbanner--mall::before { background: linear-gradient(270deg, rgba(15, 10, 4, .92), rgba(15, 10, 4, .3)); }
[dir="rtl"] .pbanner--silk::before { background: linear-gradient(270deg, rgba(4, 18, 26, .93), rgba(4, 18, 26, .35)); }
.pbanner:hover { filter: brightness(1.08); }

.pclock { padding: 12px; text-align: center; border: 2px solid #8b6a2e; }
.pclock h2 { margin: 0 0 6px; font: 700 .9rem var(--font-display); letter-spacing: .06em; color: #fff; }
.pclock p { margin: 0; }
.pclock__date { min-height: 1.3em; font-size: .75rem; color: var(--muted); }
.pclock__time { font: 700 1.9rem/1.2 var(--font-display); letter-spacing: .06em; color: #ffcf5a; font-variant-numeric: tabular-nums; }
.pclock__utc { margin-top: 6px !important; padding-top: 6px; border-top: 1px solid #2c2416; font-size: .75rem; color: var(--muted); }
.pclock__utc b { color: var(--text); font-variant-numeric: tabular-nums; }

.ptiles { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ptile { position: relative; display: flex; align-items: center; justify-content: flex-end; min-height: 58px; padding: 6px 10px; border-radius: 4px; border: 1px solid #5a4a2c; overflow: hidden; text-decoration: none; background-size: cover; background-position: center; }
.ptile::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .2), rgba(0, 0, 0, .78)); }
[dir="rtl"] .ptile::before { background: linear-gradient(270deg, rgba(0, 0, 0, .2), rgba(0, 0, 0, .78)); }
.ptile span { position: relative; font: 700 .8125rem/1.15 var(--font-display); color: #f6e7c2; text-align: end; text-shadow: 0 1px 3px #000; }
.ptile:hover { border-color: #9c7432; }
.ptile--guide { background-image: url("/images/portal/china-400.jpg"); }
.ptile--silk { background-image: url("/images/portal/europe-400.jpg"); }
.ptile--rankings { background-image: url("/images/portal/slide-capsule-520.jpg"); }
.ptile--discord { background-image: url("/images/portal/hero-760.jpg"); background-position: 40% 30%; }
.psocial { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.psocial__link { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 6px; border: 1px solid #000; color: #fff; background: #2a2418; }
.psocial__link svg { width: 20px; height: 20px; }
.psocial__link--discord { background: #5865f2; }
.psocial__link--tiktok { background: #000; border-color: #333; }
.psocial__link--instagram { background: linear-gradient(45deg, #f9a33b, #e1306c, #833ab4); }
.psocial__link--youtube { background: #e00; }
.psocial__link:hover { filter: brightness(1.12); }

@media (max-width: 1100px) { .portal { grid-template-columns: 220px minmax(0, 1fr); } .portal__col--right { grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); } .portal__col--right .ptiles, .portal__col--right .psocial { grid-column: span 3; } .ptiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .portal { grid-template-columns: minmax(0, 1fr); margin-top: -64px; }
  .portal__col--center { order: -1; }
  .portal__col--right { grid-template-columns: 1fr; }
  .portal__col--right .ptiles, .portal__col--right .psocial { grid-column: auto; }
  .ptiles { grid-template-columns: 1fr 1fr; }
  .pmall__body { grid-template-columns: 1fr; }
  .pmenu ul { grid-template-columns: 1fr 1fr; }
  .pslider { aspect-ratio: 4 / 3; }
  .pslide__text { padding: 14px; }
  .pdots { top: 10px; bottom: auto; }
  .pbox__tools .pmall__open { display: none; }
  .pnews__list li { flex-wrap: wrap; gap: 4px 8px; }
  .pnews__list a { flex-basis: calc(100% - 110px); }
  .pnews__list time { order: 3; flex-basis: 100%; margin: 0; }
}
