/* ==========================================================================
   L2SoulPlay — fantasía oscura épica (obsidiana, oro, fuego y pergamino)
   ========================================================================== */

:root {
  /* Obsidiana y hierro */
  --night: #0b0907;
  --night-2: #120e0a;
  --night-3: #1b1510;
  --iron: #241c15;
  --iron-2: #31271d;
  --night-text: #f1e6cf;
  --night-muted: rgba(241, 230, 207, .7);
  --night-line: rgba(232, 196, 112, .24);
  --night-line-strong: rgba(232, 196, 112, .55);

  /* Oro y fuego */
  --gold: #d6a243;
  --gold-hi: #ffe7a6;
  --gold-light: #ecc777;
  --gold-dark: #8a5d1a;
  --gold-deep: #5c3b0c;
  --ember: #ff8a2a;
  --fire: #ff5a12;

  /* Pergamino */
  --parch: #eadcbd;
  --parch-2: #dccaa3;
  --parch-3: #c9b183;
  --ink: #2c1f10;
  --ink-2: #4a3820;
  --ink-muted: #6e5a3d;
  --parch-line: rgba(122, 82, 26, .35);

  --font-display: 'Cinzel', 'Trajan Pro', Georgia, serif;
  --font-serif: 'Cormorant Garamond', 'EB Garamond', Georgia, serif;
  --font-sans: 'Inter', Arial, sans-serif;

  --gold-gradient: linear-gradient(180deg, #fff4cf 0%, #f2cf7c 28%, #c88d2c 52%, #f6dd94 70%, #8a5d1a 100%);
  --gold-metal: linear-gradient(180deg, #fff1bf 0%, #f0c96c 22%, #c98e2b 50%, #a26c1c 74%, #e9bd62 100%);
  --silver-metal: linear-gradient(180deg, #ffffff 0%, #e3e6ea 24%, #a9b0b8 52%, #7c848d 74%, #d9dde2 100%);
  --iron-metal: linear-gradient(180deg, #3d3226 0%, #241c15 46%, #17120d 100%);
  --header-h: 76px;

  /* Texturas generadas: grano de pergamino, manchas y runas */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .32 0 0 0 0 .22 0 0 0 0 .1 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --stains: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='900'%3E%3Cfilter id='s'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.006' numOctaves='4' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .3 0 0 0 0 .12 0 0 0 1 -.5'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23s)'/%3E%3C/svg%3E");
  --runes: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='260' viewBox='0 0 320 260'%3E%3Cg fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M30 20v34M30 26l12-7M30 35l12-7'/%3E%3Cpath d='M118 40v34M118 50l-8-10M118 50l8-10'/%3E%3Cpath d='M220 18v34M220 18l-8 9M220 18l8 9'/%3E%3Cpath d='M282 70l10 10-10 10-10-10zM272 100l10-10 10 10'/%3E%3Cpath d='M60 130v34M60 138l10 7-10 7'/%3E%3Cpath d='M168 120l-10 10 10 10'/%3E%3Cpath d='M250 150v34M250 150l10 8-10 8 10 10'/%3E%3Cpath d='M20 210l12 20M32 210l-12 20M26 202v36'/%3E%3Cpath d='M120 200v34M112 208l16 16M128 208l-16 16'/%3E%3Cpath d='M200 214h20M210 204v30M204 204l12 0'/%3E%3C/g%3E%3C/svg%3E");
  --cursor-default: url('../img/cursor-default.png') 1 1, auto;
  --cursor-hover: url('../img/cursor-hover.png') 1 1, pointer;
  --rivet: radial-gradient(circle at 35% 30%, #fff1c2 0%, #d9a74a 35%, #6b4512 75%, #2a1a06 100%);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--night); }
body {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--night-text);
  background: var(--night);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
::selection { background: var(--gold); color: var(--night); }
:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }

/* ---------- Cursor de Lineage II (flecha clásica y guantelete en lo clickeable) ---------- */
html, body { cursor: var(--cursor-default); }
a, button, [role="button"], [role="tab"], [data-nav], [data-set-lang], label, select, summary,
input[type="button"], input[type="submit"], input[type="reset"], input[type="checkbox"], input[type="radio"] {
  cursor: var(--cursor-hover);
}
button:disabled, [disabled], .is-pending { cursor: var(--cursor-default); }
input[type="text"], input[type="email"], input[type="password"], input[type="search"], textarea { cursor: text; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sr-only:focus {
  position: fixed; top: 12px; left: 12px; width: auto; height: auto; clip: auto; z-index: 1000;
  padding: 10px 16px; background: var(--night-3); border: 1px solid var(--gold); color: var(--gold-hi);
}

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.gold-text { background: var(--gold-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Divisor dorado con rombo central */
.divider { display: block; width: 220px; height: 12px; margin: 14px auto 18px; position: relative; }
.divider::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-light) 30%, var(--gold-light) 70%, transparent); }
.divider::after { content: ''; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; transform: translate(-50%, -50%) rotate(45deg); background: var(--gold-metal); box-shadow: 0 0 10px rgba(255, 200, 100, .8); }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .65rem;
  padding: .95rem 1.9rem;
  font-family: var(--font-display); font-weight: 700; font-size: .82rem;
  letter-spacing: .16em; text-transform: uppercase;
  border-radius: 4px;
  transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
  isolation: isolate;
  white-space: nowrap;
  overflow: visible;
}
.btn svg { width: 17px; height: 17px; flex: none; }
/* Marco interior biselado */
.btn::after {
  content: ''; position: absolute; inset: 3px; border-radius: 2px; pointer-events: none;
  border: 1px solid rgba(255, 255, 255, .45); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18);
}
/* Brillo que recorre el botón */
.btn > span, .btn > svg { position: relative; z-index: 1; }
.btn--gold, .btn--ivory { overflow: hidden; }
.btn--gold::before, .btn--ivory::before {
  content: ''; position: absolute; top: -20%; bottom: -20%; left: -60%; width: 40%; z-index: -1;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .65), transparent);
  transform: skewX(-20deg); animation: shine 4.5s ease-in-out infinite;
}
@keyframes shine { 0%, 60% { left: -60%; } 100% { left: 130%; } }

.btn--gold {
  color: #3a2205;
  background: var(--gold-metal);
  border: 1px solid #6e4a12;
  text-shadow: 0 1px 0 rgba(255, 240, 200, .6);
  box-shadow: inset 0 2px 0 rgba(255, 250, 220, .7), inset 0 -3px 0 rgba(90, 55, 10, .45), 0 10px 24px -10px rgba(255, 150, 40, .65), 0 0 0 1px rgba(0, 0, 0, .5);
}
.btn--gold:hover { transform: translateY(-2px); filter: brightness(1.08) saturate(1.1); box-shadow: inset 0 2px 0 rgba(255, 250, 220, .8), inset 0 -3px 0 rgba(90, 55, 10, .45), 0 16px 34px -10px rgba(255, 140, 30, .85), 0 0 0 1px rgba(0, 0, 0, .5); }
.btn--ivory {
  color: #1f242a;
  background: var(--silver-metal);
  border: 1px solid #4b525a;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .7);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .9), inset 0 -3px 0 rgba(40, 45, 52, .35), 0 10px 24px -12px rgba(160, 190, 230, .5), 0 0 0 1px rgba(0, 0, 0, .5);
}
.btn--ivory:hover { transform: translateY(-2px); filter: brightness(1.07); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .95), inset 0 -3px 0 rgba(40, 45, 52, .35), 0 16px 32px -12px rgba(170, 200, 240, .75), 0 0 0 1px rgba(0, 0, 0, .5); }
.btn--sm { padding: .6rem 1.15rem; font-size: .7rem; }
.btn--lg { padding: 1.1rem 2.3rem; }
.btn--xl { padding: 1.25rem 2.9rem; font-size: 1rem; letter-spacing: .14em; min-width: 250px; }

/* Botón con fuego: halo de llamas animado detrás */
.btn--fire { overflow: visible; isolation: auto; }
.btn--fire > .btn__flames, .btn--fire::before { pointer-events: none; }
.btn--fire {
  background-image: var(--gold-metal);
  animation: fireGlow 1.8s ease-in-out infinite;
}
@keyframes fireGlow {
  0%, 100% { box-shadow: inset 0 2px 0 rgba(255, 250, 220, .7), inset 0 -3px 0 rgba(90, 55, 10, .45), 0 0 18px 2px rgba(255, 120, 20, .55), 0 0 42px 8px rgba(255, 70, 0, .28), 0 0 0 1px rgba(0, 0, 0, .5); }
  50% { box-shadow: inset 0 2px 0 rgba(255, 250, 220, .8), inset 0 -3px 0 rgba(90, 55, 10, .45), 0 0 26px 5px rgba(255, 150, 30, .75), 0 0 64px 14px rgba(255, 80, 0, .38), 0 0 0 1px rgba(0, 0, 0, .5); }
}
.btn--fire::before {
  /* reemplaza el brillo por una lengua de fuego que sube desde abajo */
  left: 6%; right: 6%; width: auto; top: auto; bottom: 0; height: 120%; transform: none; z-index: -1;
  background:
    radial-gradient(ellipse 18% 60% at 20% 100%, rgba(255, 200, 80, .95), transparent 70%),
    radial-gradient(ellipse 16% 70% at 45% 100%, rgba(255, 140, 30, .95), transparent 70%),
    radial-gradient(ellipse 18% 55% at 70% 100%, rgba(255, 190, 70, .9), transparent 70%),
    radial-gradient(ellipse 14% 65% at 88% 100%, rgba(255, 110, 20, .9), transparent 70%);
  filter: blur(6px);
  animation: flames 1.1s ease-in-out infinite alternate;
  transform-origin: 50% 100%;
}
@keyframes flames {
  0% { transform: translateY(18%) scaleY(.9); opacity: .75; }
  50% { transform: translateY(4%) scaleY(1.1) skewX(3deg); opacity: 1; }
  100% { transform: translateY(12%) scaleY(1) skewX(-3deg); opacity: .85; }
}

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 999; display: grid; place-items: center;
  background: radial-gradient(ellipse at 50% 45%, #2a1c0e 0%, var(--night) 65%);
  transition: opacity .7s ease, visibility .7s ease;
}
.preloader.is-hidden { opacity: 0; visibility: hidden; }
.preloader__inner { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.preloader__logo { width: min(340px, 70vw); height: auto; animation: breathe 2.2s ease-in-out infinite; }
.preloader__bar { width: 200px; height: 2px; background: rgba(232, 196, 112, .2); overflow: hidden; border-radius: 2px; }
.preloader__bar span { display: block; width: 40%; height: 100%; background: linear-gradient(90deg, transparent, var(--gold-hi), transparent); animation: bar 1.3s ease-in-out infinite; }
@keyframes bar { 0% { transform: translateX(-100%); } 100% { transform: translateX(250%); } }
@keyframes breathe { 50% { filter: drop-shadow(0 0 22px rgba(255, 190, 80, .75)); transform: scale(1.03); } }

/* ---------- Header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--header-h);
  background: linear-gradient(180deg, rgba(8, 6, 4, .75), rgba(8, 6, 4, 0));
  transition: background .35s ease, box-shadow .35s ease, height .35s ease;
}
.header.is-scrolled {
  --header-h: 64px;
  background: rgba(12, 9, 6, .82);
  backdrop-filter: blur(12px) saturate(1.2); -webkit-backdrop-filter: blur(12px) saturate(1.2);
  box-shadow: 0 1px 0 var(--night-line), 0 12px 30px -16px rgba(0, 0, 0, .9);
}
.header__inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand__emblem { width: 52px; height: 32px; filter: drop-shadow(0 0 8px rgba(255, 190, 80, .45)); }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; letter-spacing: .14em; color: var(--gold-hi); text-shadow: 0 0 12px rgba(255, 190, 80, .35); }
.brand__tag { font-family: var(--font-sans); font-size: .58rem; letter-spacing: .32em; text-transform: uppercase; color: var(--gold); }

.nav { display: flex; gap: 4px; margin: 0 auto; }
.nav__link {
  position: relative; padding: 8px 14px;
  font-family: var(--font-display); font-size: .76rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(241, 230, 207, .78); transition: color .2s, text-shadow .2s; white-space: nowrap;
}
.nav__link::after {
  content: ''; position: absolute; left: 50%; bottom: 0; width: 6px; height: 6px;
  background: var(--gold-metal); box-shadow: 0 0 8px rgba(255, 190, 80, .9);
  transform: translateX(-50%) rotate(45deg) scale(0); transition: transform .25s ease;
}
.nav__link:hover { color: var(--gold-hi); text-shadow: 0 0 12px rgba(255, 190, 80, .55); }
.nav__link.is-active { color: var(--gold-light); }
.nav__link.is-active::after { transform: translateX(-50%) rotate(45deg) scale(1); }
.header__actions { display: flex; align-items: center; gap: 10px; flex: none; }

.dropdown { position: relative; }
.lang-btn {
  display: flex; align-items: center; gap: 6px; padding: 8px 10px;
  font-family: var(--font-sans); font-size: .75rem; font-weight: 600; letter-spacing: .08em; color: var(--night-muted);
  border: 1px solid transparent; border-radius: 4px; transition: border-color .2s, color .2s;
}
.lang-btn svg { width: 16px; height: 16px; }
.lang-btn:hover, .dropdown.is-open .lang-btn { border-color: var(--night-line); color: var(--gold-hi); }
.dropdown__menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 150px; padding: 6px;
  background: var(--night-3); border: 1px solid var(--night-line-strong); border-radius: 4px; box-shadow: 0 18px 40px -12px #000;
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: all .2s ease;
}
.dropdown.is-open .dropdown__menu { opacity: 1; visibility: visible; transform: none; }
.dropdown__item { display: block; width: 100%; text-align: left; padding: 8px 12px; border-radius: 3px; font-family: var(--font-sans); font-size: .85rem; color: var(--night-text); }
.dropdown__item:hover { background: rgba(232, 196, 112, .12); color: var(--gold-hi); }

.menu-toggle { display: none; width: 42px; height: 42px; margin-left: auto; flex-direction: column; justify-content: center; gap: 6px; padding: 10px; }
.menu-toggle span { display: block; height: 2px; background: var(--gold-light); transition: transform .3s, opacity .3s; }
.menu-toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 90;
  display: flex; flex-direction: column; justify-content: center; gap: 40px; padding: 90px 24px 40px;
  background: radial-gradient(ellipse at 50% 25%, #2a1c0e, var(--night) 70%);
  opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility .35s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-nav { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.mobile-nav__link { padding: 10px; font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--night-text); }
.mobile-nav__link.is-active { color: var(--gold-light); text-shadow: 0 0 14px rgba(255, 190, 80, .6); }
.mobile-menu__footer { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.mobile-lang { display: flex; gap: 8px; }
.mobile-lang__btn { padding: 6px 12px; font-family: var(--font-sans); font-size: .8rem; font-weight: 600; color: var(--night-muted); border: 1px solid var(--night-line); border-radius: 3px; }
.mobile-lang__btn.is-active { color: var(--gold-hi); border-color: var(--gold); background: rgba(232, 196, 112, .1); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--header-h) + 30px) 0 0;
  text-align: center;
  background: var(--night);
}
.hero__sky { position: absolute; inset: 0; z-index: 0; }
.hero__art {
  position: absolute; inset: -2%;
  background: url('../img/hero-world.webp') center 35% / cover no-repeat;
  filter: sepia(.35) saturate(1.45) contrast(1.25) brightness(.48);
  animation: slowZoom 40s ease-in-out infinite alternate;
}
@keyframes slowZoom { to { transform: scale(1.07); } }
/* Viñeta y calor */
.hero__sky::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 75% 60% at 50% 42%, transparent 30%, rgba(8, 6, 4, .78) 100%),
    linear-gradient(180deg, rgba(8, 6, 4, .55) 0%, transparent 22%);
}
.hero__glow {
  position: absolute; left: 50%; top: 38%; width: min(1100px, 120vw); height: 560px; transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, rgba(255, 170, 60, .4) 0%, rgba(255, 110, 20, .16) 35%, transparent 68%);
  mix-blend-mode: screen; animation: pulseGlow 4s ease-in-out infinite;
}
@keyframes pulseGlow { 50% { opacity: .65; transform: translate(-50%, -50%) scale(1.06); } }
.hero__fog {
  position: absolute; left: -20%; width: 140%; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(210, 180, 140, .22) 0%, rgba(160, 130, 100, .1) 40%, transparent 70%);
  filter: blur(18px); animation: fogDrift 38s ease-in-out infinite alternate;
}
.hero__fog--1 { height: 45%; bottom: 8%; }
.hero__fog--2 { height: 35%; bottom: -4%; animation-duration: 52s; animation-direction: alternate-reverse; opacity: .8; }
@keyframes fogDrift { to { transform: translateX(12%); } }
/* Destellos de magia */
.hero__flash { position: absolute; border-radius: 50%; mix-blend-mode: screen; opacity: 0; animation: flash 7s ease-in-out infinite; }
.hero__flash--1 { left: 12%; top: 30%; width: 260px; height: 260px; background: radial-gradient(circle, rgba(120, 180, 255, .55), transparent 65%); }
.hero__flash--2 { right: 10%; top: 22%; width: 320px; height: 320px; background: radial-gradient(circle, rgba(255, 190, 90, .55), transparent 65%); animation-delay: 2.3s; }
.hero__flash--3 { left: 58%; top: 60%; width: 220px; height: 220px; background: radial-gradient(circle, rgba(255, 90, 40, .5), transparent 65%); animation-delay: 4.6s; }
@keyframes flash { 0%, 100% { opacity: 0; transform: scale(.7); } 12% { opacity: 1; transform: scale(1); } 30% { opacity: 0; transform: scale(1.25); } }
.hero__fade { position: absolute; left: 0; right: 0; bottom: 0; height: 32%; background: linear-gradient(180deg, transparent, var(--night) 92%); }

/* Brasas que suben (hero y banda del dragón) */
.embers { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.ember {
  position: absolute; bottom: -12px; border-radius: 50%;
  background: radial-gradient(circle, #fff3c0 0%, #ffb340 35%, rgba(255, 90, 10, .7) 60%, transparent 72%);
  box-shadow: 0 0 6px 1px rgba(255, 140, 30, .6);
  animation: rise linear infinite;
}
@keyframes rise {
  0% { transform: translate(0, 0) scale(1); opacity: 0; }
  10% { opacity: 1; }
  50% { transform: translate(var(--sway, 30px), -48vh) scale(.85); }
  100% { transform: translate(calc(var(--sway, 30px) * -.6), -100vh) scale(.4); opacity: 0; }
}

.hero__content { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.hero__title { display: flex; flex-direction: column; align-items: center; }
.hero__crown {
  width: clamp(110px, 13vw, 170px); height: auto; aspect-ratio: 260 / 180; margin-bottom: -14px;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .7)) drop-shadow(0 0 22px rgba(255, 190, 80, .55));
  animation: float 7s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-8px); } }
.hero__logo {
  position: relative; display: block; width: min(860px, 86vw); height: auto;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .85)) drop-shadow(0 0 28px rgba(255, 170, 60, .55)) drop-shadow(0 0 70px rgba(255, 110, 20, .3));
}
.hero__subtitle {
  margin-top: 6px;
  font-family: var(--font-display); font-weight: 600; font-size: clamp(.8rem, 1.6vw, 1.08rem); letter-spacing: .42em; text-transform: uppercase;
  color: var(--gold-light); text-shadow: 0 0 14px rgba(255, 170, 60, .5), 0 2px 6px #000;
}
.hero__desc { max-width: 640px; margin-top: 16px; font-size: clamp(1.08rem, 1.6vw, 1.28rem); color: #efe2c6; text-shadow: 0 2px 10px rgba(0, 0, 0, .9); }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; margin-top: 30px; }

/* Cuenta regresiva a la beta */
.countdown { margin-top: 24px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.countdown__label {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 14px;
  font-family: var(--font-display); font-weight: 700; font-size: clamp(.8rem, 1.4vw, .98rem); letter-spacing: .28em; text-transform: uppercase;
  color: var(--gold-hi); text-shadow: 0 0 12px rgba(255, 150, 40, .75), 0 2px 4px #000;
}
.countdown__label::before, .countdown__label::after {
  content: ''; width: clamp(28px, 6vw, 70px); height: 1px; order: -1;
  background: linear-gradient(90deg, transparent, var(--gold-light));
}
.countdown__label::after { order: 3; background: linear-gradient(90deg, var(--gold-light), transparent); }
.countdown__date {
  order: 2; padding: 3px 11px; border: 1px solid var(--night-line-strong); border-radius: 20px; background: rgba(10, 7, 4, .6);
  font-family: var(--font-sans); font-weight: 600; font-size: .66rem; letter-spacing: .12em; color: var(--night-text); text-shadow: none;
}
.countdown__units { display: flex; align-items: center; gap: clamp(6px, 1.2vw, 14px); }
.countdown__unit {
  position: relative; min-width: clamp(64px, 8vw, 94px); padding: 12px 8px 9px;
  display: flex; flex-direction: column; align-items: center;
  background: linear-gradient(180deg, rgba(255, 225, 160, .14), transparent 45%), var(--iron-metal);
  border: 1px solid #8a5d1a; border-radius: 6px;
  box-shadow: inset 0 0 0 1px rgba(240, 201, 108, .55), inset 0 0 0 4px #120d08, inset 0 0 18px rgba(0, 0, 0, .75), 0 12px 24px -12px #000, 0 0 20px -6px rgba(255, 150, 40, .55);
}
.countdown__unit::before {
  content: ''; position: absolute; top: -5px; left: 50%; width: 9px; height: 9px; transform: translateX(-50%) rotate(45deg);
  background: var(--gold-metal); box-shadow: 0 0 8px rgba(255, 180, 70, .9);
}
.countdown__num {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(1.7rem, 3.6vw, 2.6rem); line-height: 1; font-variant-numeric: tabular-nums;
  background: var(--gold-gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 8px rgba(255, 170, 60, .55));
}
.countdown__name { margin-top: 6px; font-family: var(--font-sans); font-size: .58rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--night-muted); }
.countdown__sep { flex: none; width: 6px; height: 6px; transform: rotate(45deg); background: var(--gold-metal); box-shadow: 0 0 8px rgba(255, 170, 60, .9); animation: sepPulse 1s ease-in-out infinite; }
@keyframes sepPulse { 50% { opacity: .35; } }
.countdown__live {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(1.3rem, 3vw, 1.9rem); letter-spacing: .08em; text-transform: uppercase;
  background: var(--gold-gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 14px rgba(255, 150, 40, .8));
}

/* Panel metálico flotante de estadísticas */
.stats-panel { position: relative; z-index: 3; margin-top: clamp(48px, 7vh, 84px); margin-bottom: clamp(28px, 4vh, 48px); max-width: 1120px; }
.stats-panel__frame {
  position: relative; display: grid; grid-template-columns: repeat(5, 1fr);
  padding: 8px;
  background:
    linear-gradient(180deg, rgba(255, 230, 170, .1), transparent 40%),
    var(--iron-metal);
  border: 1px solid #7c5718;
  clip-path: polygon(22px 0, calc(100% - 22px) 0, 100% 50%, calc(100% - 22px) 100%, 22px 100%, 0 50%);
  box-shadow: 0 30px 60px -20px #000;
  filter: drop-shadow(0 0 1px rgba(255, 210, 130, .9));
}
.stats-panel__frame::before {
  content: ''; position: absolute; inset: 5px; pointer-events: none;
  clip-path: polygon(19px 0, calc(100% - 19px) 0, 100% 50%, calc(100% - 19px) 100%, 19px 100%, 0 50%);
  border-top: 1px solid rgba(255, 220, 150, .45); border-bottom: 1px solid rgba(255, 220, 150, .2);
  background: linear-gradient(90deg, transparent, rgba(232, 196, 112, .08) 50%, transparent);
}
.stat { position: relative; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 18px 10px; }
.stat + .stat::before { content: ''; position: absolute; left: 0; top: 18%; bottom: 18%; width: 1px; background: linear-gradient(180deg, transparent, rgba(232, 196, 112, .55), transparent); }
.stat__icon {
  flex: none; width: 40px; height: 40px; padding: 9px; color: var(--gold-hi); border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, #4b3920, #1a130c);
  border: 1px solid var(--gold); box-shadow: 0 0 0 2px #120d08, 0 0 0 3px rgba(232, 196, 112, .35), 0 0 14px rgba(255, 180, 70, .3);
}
.stat__text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.stat__label { font-family: var(--font-sans); font-size: .6rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: rgba(241, 230, 207, .6); }
.stat__value { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.1rem, 2vw, 1.45rem); color: #fff3d6; text-shadow: 0 0 10px rgba(255, 190, 90, .35); }
.stat--featured .stat__label { color: var(--gold-light); }
.stat--featured .stat__value { background: var(--gold-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; filter: drop-shadow(0 0 8px rgba(255, 180, 60, .5)); }

/* Banda ornamental de transición */
.band {
  position: relative; height: 18px; background: var(--night);
  border-top: 1px solid rgba(232, 196, 112, .45); border-bottom: 1px solid rgba(232, 196, 112, .45);
}
.band::before {
  content: ''; position: absolute; inset: 4px 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='10'%3E%3Cpath d='M14 1 19 5 14 9 9 5Z' fill='%23d6a243'/%3E%3Cpath d='M0 5H8M20 5H28' stroke='%238a5d1a'/%3E%3C/svg%3E") repeat-x center / 28px 10px;
}

/* ==========================================================================
   Secciones genéricas
   ========================================================================== */
.section { position: relative; isolation: isolate; padding: clamp(80px, 11vw, 130px) 0; }
.section > .container { position: relative; z-index: 1; }
.section__header { max-width: 780px; margin: 0 auto clamp(44px, 6vw, 70px); text-align: center; }
.eyebrow { font-family: var(--font-sans); font-size: .7rem; font-weight: 700; letter-spacing: .34em; text-transform: uppercase; color: var(--gold-dark); }
.laurel { width: 220px; height: 22px; margin: 14px auto 18px; color: var(--gold-dark); }
.section__title {
  font-family: var(--font-display); font-weight: 600; font-size: clamp(1.8rem, 4vw, 2.9rem); line-height: 1.15; letter-spacing: .02em; color: var(--ink);
  text-shadow: 0 1px 0 rgba(255, 248, 225, .6);
}
.section__title em { font-family: var(--font-serif); font-style: italic; font-weight: 600; font-size: 1.08em; letter-spacing: 0; color: #8f5a12; }
.section__subtitle { margin-top: 18px; font-size: 1.2rem; font-weight: 500; color: var(--ink-2); }

/* Pergamino envejecido con manchas, grano y runas */
.section--parchment {
  color: var(--ink-2);
  background:
    var(--grain),
    var(--stains),
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(255, 249, 230, .75), transparent 70%),
    radial-gradient(ellipse 80% 60% at 50% 110%, rgba(110, 70, 20, .28), transparent 70%),
    linear-gradient(180deg, var(--parch) 0%, var(--parch-2) 100%);
  background-size: 220px 220px, 900px 900px, auto, auto, auto;
  box-shadow: inset 0 26px 40px -24px rgba(40, 24, 6, .55), inset 0 -26px 40px -24px rgba(40, 24, 6, .45);
}
.section--deep { background-color: var(--parch-2); }
.section__runes {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: var(--runes) repeat 0 0 / 320px 260px; opacity: .07;
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 50% 50%, transparent 28%, #000 80%);
  mask-image: radial-gradient(ellipse 85% 75% at 50% 50%, transparent 28%, #000 80%);
}

/* Variante clara con niebla (comunidad) */
.section--mist {
  color: var(--ink-2);
  background:
    var(--grain),
    radial-gradient(ellipse 60% 70% at 15% 30%, rgba(255, 255, 255, .55), transparent 70%),
    radial-gradient(ellipse 60% 70% at 85% 70%, rgba(255, 255, 255, .45), transparent 70%),
    linear-gradient(180deg, #e3d6bb 0%, #d4c3a0 70%, #b9a27a 100%);
  background-size: 220px 220px, auto, auto, auto;
}

/* ==========================================================================
   Mundo de SoulPlay (oscura)
   ========================================================================== */
.world {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(60px, 8vw, 110px) 0 clamp(64px, 8vw, 104px);
  background: var(--night);
}
.world__bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(255, 170, 60, .16), transparent 62%),
    radial-gradient(ellipse 90% 60% at 50% 115%, rgba(140, 60, 15, .5), transparent 68%),
    linear-gradient(180deg, var(--night) 0%, rgba(11, 9, 7, .72) 18%, rgba(11, 9, 7, .8) 70%, var(--night) 100%),
    url('../img/world-bg.webp') no-repeat center 26% / cover;
}
.section__header--dark .eyebrow, .eyebrow--dark { color: var(--gold-light); text-shadow: 0 0 10px rgba(255, 170, 60, .35); }
.section__title--dark { color: #fbf3df; text-shadow: 0 2px 22px rgba(0, 0, 0, .9), 0 0 30px rgba(255, 170, 60, .18); }
.section__title--dark em { background: var(--gold-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; filter: drop-shadow(0 0 10px rgba(255, 170, 60, .35)); }
.section__subtitle--dark { color: var(--night-muted); }

.world-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.world-card {
  --aura: 255, 150, 50;
  position: relative; border-radius: 7px;
  /* Marco de metal/piedra iluminado: borde dorado + cuerpo oscuro en una sola caja */
  border: 2px solid transparent;
  background:
    linear-gradient(180deg, #221a13 0%, #0f0b08 100%) padding-box,
    linear-gradient(160deg, #f6d991 0%, #7a5318 22%, #3a2a16 50%, #7a5318 78%, #f6d991 100%) border-box;
  box-shadow: 0 30px 60px -30px #000, 0 0 26px -10px rgba(var(--aura), .5);
  animation: aura 4.5s ease-in-out infinite;
  transition: transform .45s ease;
}
.world-card--fire { --aura: 255, 120, 30; }
.world-card--holy { --aura: 255, 215, 120; }
.world-card--arcane { --aura: 120, 170, 255; animation-delay: -2s; }
.world-card--holy { animation-delay: -1s; }
/* Aura mágica que respira alrededor */
@keyframes aura { 50% { box-shadow: 0 30px 60px -30px #000, 0 0 44px -6px rgba(var(--aura), .7); } }
.world-card:hover { transform: translateY(-8px); animation-play-state: paused; box-shadow: 0 40px 70px -28px #000, 0 0 54px -4px rgba(var(--aura), .85); }
.world-card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 4px 4px 0 0; background: #05060a; }
.world-card__media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.1) contrast(1.05); transition: transform .8s ease; }
.world-card:hover .world-card__media img { transform: scale(1.08); }
.world-card__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(15, 11, 8, .55) 70%, #0f0b08 100%); }
.world-card__body { position: relative; z-index: 1; padding: 0 22px 26px; margin-top: -40px; text-align: center; }
.world-card__body::before { content: ''; display: block; width: 70%; height: 1px; margin: 0 auto 14px; background: linear-gradient(90deg, transparent, rgba(var(--aura), .9), transparent); box-shadow: 0 0 10px rgba(var(--aura), .8); }
.world-card__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.05rem, 1.5vw, 1.28rem); letter-spacing: .06em; text-transform: uppercase; color: var(--gold-hi); text-shadow: 0 0 14px rgba(var(--aura), .45), 0 2px 4px #000; }
.world-card__desc { margin-top: 9px; font-size: 1.02rem; line-height: 1.55; color: var(--night-muted); }

.world-gallery { margin-top: clamp(52px, 6vw, 80px); }
.world-gallery__title { text-align: center; font-family: var(--font-display); font-weight: 600; font-size: .78rem; letter-spacing: .34em; text-transform: uppercase; color: var(--gold-light); }
.world-gallery__title::after { content: ''; display: block; width: 150px; height: 1px; margin: 16px auto 0; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.world-gallery__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 28px; }
/* Marco de hierro con remaches */
.world-gallery__item {
  position: relative; margin: 0; aspect-ratio: 4 / 3; padding: 7px; border-radius: 4px;
  background:
    var(--rivet) 4px 4px / 8px 8px no-repeat,
    var(--rivet) calc(100% - 4px) 4px / 8px 8px no-repeat,
    var(--rivet) 4px calc(100% - 4px) / 8px 8px no-repeat,
    var(--rivet) calc(100% - 4px) calc(100% - 4px) / 8px 8px no-repeat,
    linear-gradient(160deg, #57483a, #241c15 40%, #3c3126 70%, #1a140f);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), inset 0 -2px 0 rgba(0, 0, 0, .5), 0 14px 28px -14px #000;
  transition: transform .35s ease, box-shadow .35s ease;
}
.world-gallery__item img { width: 100%; height: 100%; object-fit: cover; border-radius: 2px; box-shadow: 0 0 0 1px #000; filter: brightness(.82) saturate(1.05); transition: filter .35s ease, transform .6s ease; }
.world-gallery__item::after { content: ''; position: absolute; inset: 7px; border-radius: 2px; box-shadow: inset 0 0 22px rgba(0, 0, 0, .75); pointer-events: none; transition: box-shadow .35s; }
.world-gallery__item:hover { transform: translateY(-4px) scale(1.02); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 0 0 1px var(--gold), 0 0 26px -2px rgba(255, 180, 60, .6), 0 18px 32px -14px #000; }
.world-gallery__item:hover img { filter: brightness(1.05) saturate(1.15); }
.world-gallery__item:hover::after { box-shadow: inset 0 0 12px rgba(255, 190, 80, .35); }

/* ==========================================================================
   Descargas sobre el dragón — fuego, niebla y lava
   ========================================================================== */
.section--inferno {
  overflow: hidden; color: var(--night-text);
  background: #120804;
  border-top: 1px solid rgba(255, 140, 40, .45); border-bottom: 1px solid rgba(255, 140, 40, .45);
}
.inferno__bg {
  position: absolute; inset: -3%; z-index: -3;
  background:
    linear-gradient(180deg, rgba(10, 5, 2, .86) 0%, rgba(10, 5, 2, .4) 30%, rgba(10, 5, 2, .4) 62%, rgba(10, 5, 2, .92) 100%),
    radial-gradient(ellipse 55% 50% at 50% 58%, rgba(10, 5, 2, .5), transparent 75%),
    url('../img/oath-dragon.webp') no-repeat center 46% / cover;
  filter: saturate(1.25) contrast(1.08);
  animation: slowZoom 30s ease-in-out infinite alternate;
}
.inferno__lava {
  position: absolute; left: 0; right: 0; bottom: 0; height: 55%; z-index: -2; pointer-events: none;
  background:
    radial-gradient(ellipse 40% 60% at 20% 100%, rgba(255, 100, 10, .45), transparent 70%),
    radial-gradient(ellipse 40% 60% at 80% 100%, rgba(255, 70, 0, .4), transparent 70%),
    radial-gradient(ellipse 60% 50% at 50% 110%, rgba(255, 160, 40, .35), transparent 70%);
  mix-blend-mode: screen; animation: lava 3.2s ease-in-out infinite alternate;
}
@keyframes lava { to { opacity: .55; transform: translateY(4%); } }
.section--inferno::before {
  content: ''; position: absolute; left: -10%; right: -10%; top: 30%; height: 50%; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(90, 60, 40, .45), transparent 70%);
  filter: blur(20px); animation: fogDrift 26s ease-in-out infinite alternate;
}
.embers--inferno .ember { box-shadow: 0 0 8px 2px rgba(255, 110, 20, .7); }
.section--inferno .laurel { color: var(--gold-light); filter: drop-shadow(0 0 6px rgba(255, 150, 40, .6)); }

/* ==========================================================================
   Información — Grimorio
   ========================================================================== */
.grimoire {
  position: relative; padding: 14px; border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 225, 160, .12), transparent 30%),
    linear-gradient(160deg, #3e3225 0%, #1d1610 45%, #2c2219 100%);
  border: 2px solid #8a5d1a;
  box-shadow: inset 0 0 0 1px #f0c96c, inset 0 0 0 5px #1a130c, inset 0 0 0 6px rgba(240, 201, 108, .45), 0 40px 70px -30px rgba(30, 16, 4, .95);
}
.grimoire__rivet { position: absolute; width: 16px; height: 16px; border-radius: 50%; background: var(--rivet); box-shadow: 0 1px 2px #000; z-index: 2; }
.grimoire__rivet--tl { left: -6px; top: -6px; } .grimoire__rivet--tr { right: -6px; top: -6px; }
.grimoire__rivet--bl { left: -6px; bottom: -6px; } .grimoire__rivet--br { right: -6px; bottom: -6px; }

.info-tabs { display: grid; grid-template-columns: 250px 1fr; gap: 14px; align-items: stretch; }
.info-tabs__nav {
  display: flex; flex-direction: column; gap: 3px; padding: 14px 0;
  background: linear-gradient(180deg, #17110b, #0e0a06); border: 1px solid rgba(240, 201, 108, .25); border-radius: 4px;
}
.info-tabs__btn {
  position: relative; text-align: left; padding: 11px 20px 11px 30px;
  font-family: var(--font-display); font-weight: 600; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: #c9bfae;
  transition: color .2s, background .2s, text-shadow .2s;
}
.info-tabs__btn::before {
  content: ''; position: absolute; left: 12px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px;
  border: 1px solid rgba(240, 201, 108, .5); transform: rotate(45deg); transition: background .25s, box-shadow .25s;
}
.info-tabs__btn:hover { color: var(--gold-hi); background: rgba(240, 201, 108, .06); }
.info-tabs__btn.is-active {
  color: var(--gold-hi); text-shadow: 0 0 10px rgba(255, 190, 80, .6);
  background: linear-gradient(90deg, rgba(240, 180, 70, .28), rgba(240, 180, 70, .04));
  box-shadow: inset 3px 0 0 var(--gold), inset 0 1px 0 rgba(240, 201, 108, .2), inset 0 -1px 0 rgba(240, 201, 108, .2);
}
.info-tabs__btn.is-active::before { background: var(--gold-metal); box-shadow: 0 0 8px rgba(255, 190, 80, .9); border-color: var(--gold-hi); }
.info-tabs__panels {
  position: relative; padding: clamp(28px, 4vw, 46px); min-height: 380px; border-radius: 3px;
  color: var(--ink-2);
  background:
    var(--grain),
    radial-gradient(ellipse at 50% 30%, rgba(255, 251, 236, .85), transparent 70%),
    radial-gradient(ellipse at 100% 100%, rgba(120, 76, 20, .3), transparent 55%),
    radial-gradient(ellipse at 0% 100%, rgba(120, 76, 20, .25), transparent 50%),
    linear-gradient(180deg, #f2e6c9, #dfcba2);
  background-size: 220px 220px, auto, auto, auto, auto;
  box-shadow: 0 0 0 2px #6b4512, 0 0 0 4px #e3b862, inset 0 0 40px rgba(110, 70, 20, .35);
}
/* Detalles rúnicos en las esquinas del pergamino */
.info-tabs__panels::before {
  content: ''; position: absolute; inset: 10px; pointer-events: none;
  border: 1px solid rgba(120, 80, 25, .35);
  background: var(--runes) no-repeat right -40px bottom -60px / 320px 260px;
  opacity: .9;
  -webkit-mask-image: linear-gradient(135deg, transparent 60%, rgba(0, 0, 0, .12));
  mask-image: linear-gradient(135deg, transparent 60%, rgba(0, 0, 0, .12));
}
.info-tabs__panels::after { content: ''; position: absolute; inset: 10px; pointer-events: none; border: 1px solid rgba(120, 80, 25, .35); }
.info-tabs__panel { position: relative; z-index: 1; display: none; animation: fadeIn .4s ease; }
.info-tabs__panel.is-active { display: block; }
.info-tabs__panel h3 {
  font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; letter-spacing: .06em; color: #6b3f0a; margin-bottom: 22px;
  padding-bottom: 12px; border-bottom: 1px solid rgba(120, 80, 25, .35);
  text-shadow: 0 1px 0 rgba(255, 248, 225, .8);
}
.info-tabs__panel ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 38px; }
.info-tabs__panel li { position: relative; break-inside: avoid; padding: 7px 0 7px 24px; border-bottom: 1px dashed rgba(120, 80, 25, .25); font-size: 1.08rem; font-weight: 500; color: var(--ink); }
.info-tabs__panel li::before { content: ''; position: absolute; left: 3px; top: 1.05em; width: 7px; height: 7px; background: var(--gold-metal); border: 1px solid #6b4512; transform: rotate(45deg); }
.info-tabs__note { margin-top: 26px; padding: 18px 22px; background: rgba(120, 76, 20, .1); border-left: 3px solid var(--gold); box-shadow: inset 0 0 0 1px rgba(120, 80, 25, .2); }
.info-tabs__note h4 { font-family: var(--font-display); font-size: .92rem; letter-spacing: .1em; color: #6b3f0a; margin-bottom: 6px; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } }

/* ==========================================================================
   Descargas — cofre y escudo
   ========================================================================== */
.download-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 440px)); justify-content: center; gap: 36px; }
.download-card {
  --glow: 255, 170, 60;
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 40px 34px 34px; border-radius: 8px; isolation: isolate;
  color: var(--night-text);
  background:
    radial-gradient(ellipse 80% 45% at 50% 0%, rgba(var(--glow), .2), transparent 70%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .025) 0 2px, transparent 2px 9px),
    linear-gradient(180deg, #33271c 0%, #1a130d 60%, #120d09 100%);
  border: 2px solid #8a5d1a;
  box-shadow: inset 0 0 0 1px #f0c96c, inset 0 0 0 6px #1a130c, inset 0 0 0 7px rgba(240, 201, 108, .4), inset 0 0 40px rgba(0, 0, 0, .6), 0 30px 60px -28px rgba(30, 16, 4, .95);
  transition: transform .4s ease, box-shadow .4s ease;
}
.download-card--shield { --glow: 120, 170, 255; }
.download-card::before {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: 8px; pointer-events: none;
  background:
    var(--rivet) 12px 12px / 12px 12px no-repeat, var(--rivet) calc(100% - 12px) 12px / 12px 12px no-repeat,
    var(--rivet) 12px calc(100% - 12px) / 12px 12px no-repeat, var(--rivet) calc(100% - 12px) calc(100% - 12px) / 12px 12px no-repeat;
}
.download-card::after {
  content: ''; position: absolute; left: 10%; right: 10%; top: -20px; height: 160px; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(var(--glow), .45), transparent 70%); filter: blur(24px); opacity: .5;
  transition: opacity .4s ease;
}
.download-card:hover { transform: translateY(-8px); box-shadow: inset 0 0 0 1px #f0c96c, inset 0 0 0 6px #1a130c, inset 0 0 0 7px rgba(240, 201, 108, .55), inset 0 0 40px rgba(0, 0, 0, .6), 0 40px 70px -28px rgba(30, 16, 4, 1), 0 0 44px -8px rgba(var(--glow), .7); }
.download-card:hover::after { opacity: 1; }
.download-card__emblem {
  width: 132px; height: 118px; margin: -6px auto 16px;
  filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .7)) drop-shadow(0 0 18px rgba(var(--glow), .45));
  transition: transform .5s ease;
}
.download-card:hover .download-card__emblem { transform: translateY(-6px) scale(1.04); animation: float 3s ease-in-out infinite; }
.download-card--chest .chest__light { opacity: .35; transition: opacity .4s; }
.download-card--chest:hover .chest__light { opacity: 1; }
.download-card__title {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: .08em; text-transform: uppercase;
  background: var(--gold-gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 0 #000) drop-shadow(0 0 12px rgba(var(--glow), .35));
}
.download-card__desc { margin: 10px 0 26px; color: var(--night-muted); max-width: 320px; }
.download-card .btn { margin-top: auto; min-width: 230px; }
.download-card__guide {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 16px;
  font-family: var(--font-sans); font-size: .78rem; font-weight: 600; letter-spacing: .06em; color: var(--gold-light);
  border-bottom: 1px solid rgba(240, 201, 108, .35); padding-bottom: 2px; transition: color .2s, border-color .2s;
}
.download-card__guide svg { width: 12px; height: 12px; }
.download-card__guide:hover { color: var(--gold-hi); border-color: var(--gold-hi); }
.download-card__guide:disabled, .download-card__guide.is-pending { opacity: .5; cursor: var(--cursor-default); }

/* ==========================================================================
   Comunidad — escudos heráldicos
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; max-width: 860px; margin: 0 auto; }
.contact-card {
  --net: #5865f2;
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 10px 6px; transition: transform .35s ease;
}
.contact-card--discord { --net: #5865f2; }
.contact-card--youtube { --net: #e62117; }
.contact-card--instagram { --net: #c13584; }
.contact-card--facebook { --net: #1877f2; }
/* Escudo heráldico: el marco toma el color de la red (currentColor) y el glifo va encima en blanco */
.crest { position: relative; display: block; width: 112px; aspect-ratio: 120 / 140; }
.crest__frame { width: 100%; height: 100%; color: var(--net); transition: filter .35s ease; }
.crest__glyph {
  position: absolute; left: 30.83%; top: 32.14%; width: 38.33%; height: 32.86%;
  color: #fff; filter: drop-shadow(0 1.2px 1.2px rgba(0, 0, 0, .55));
}
.contact-card__name { font-family: var(--font-display); font-weight: 700; font-size: .84rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); }
.contact-card:hover { transform: translateY(-8px); }
.contact-card:hover .crest__frame { filter: drop-shadow(0 0 14px var(--net)); }
.contact-card.is-pending { pointer-events: none; }
.contact-card.is-pending .crest { filter: saturate(.8); opacity: .92; }
.contact-card.is-pending .contact-card__name::after { content: attr(data-soon); display: block; margin-top: 4px; font-family: var(--font-sans); font-size: .6rem; font-weight: 600; letter-spacing: .2em; color: var(--ink-muted); }

/* ==========================================================================
   Footer — negro y oro
   ========================================================================== */
.footer {
  position: relative; isolation: isolate; overflow: hidden; text-align: center;
  background:
    radial-gradient(ellipse 60% 80% at 50% 0%, rgba(214, 162, 67, .16), transparent 65%),
    linear-gradient(180deg, #110c08 0%, #050403 100%);
  border-top: 2px solid #8a5d1a;
  box-shadow: inset 0 1px 0 #f0c96c;
}
.footer__runes {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: var(--runes) repeat center / 320px 260px; filter: invert(1) sepia(1) saturate(4) hue-rotate(-12deg); opacity: .06;
}
.footer__content { padding: 56px 24px 40px; display: flex; flex-direction: column; align-items: center; }
.footer__logo { width: min(260px, 60vw); height: auto; filter: drop-shadow(0 0 18px rgba(255, 170, 60, .5)) drop-shadow(0 4px 6px #000); }
.footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 24px; margin: 4px 0 22px; }
.footer__link { font-family: var(--font-display); font-weight: 600; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(241, 230, 207, .72); transition: color .2s, text-shadow .2s; }
.footer__link:hover { color: var(--gold-hi); text-shadow: 0 0 10px rgba(255, 190, 80, .6); }
.footer__copy { font-family: var(--font-sans); font-size: .78rem; color: rgba(241, 230, 207, .5); }
.footer__legal { margin-top: 6px; font-family: var(--font-sans); font-size: .68rem; color: rgba(241, 230, 207, .38); }

/* ---------- Vote widget ---------- */
.vote-widget {
  position: fixed; right: 18px; bottom: 18px; z-index: 80;
  display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 16px;
  background: rgba(18, 13, 9, .92); border: 1px solid var(--night-line-strong); border-radius: 40px;
  box-shadow: 0 14px 30px -10px #000, 0 0 18px -6px rgba(255, 170, 60, .5); backdrop-filter: blur(8px);
}
.vote-widget[hidden] { display: none; }
.vote-widget__label { font-family: var(--font-display); font-weight: 700; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-light); }
.vote-widget__buttons { display: flex; gap: 6px; }
.vote-btn { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--night-3); border: 1px solid var(--night-line); transition: transform .2s, border-color .2s; }
.vote-btn:hover { transform: translateY(-2px); border-color: var(--gold); }
.vote-btn img { width: 22px; height: 22px; object-fit: contain; }

/* ---------- Modal ---------- */
.modal {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 24px;
  background: rgba(5, 3, 2, .85); backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal__content { position: relative; width: min(960px, 100%); aspect-ratio: 16 / 9; background: #000; border: 2px solid var(--gold); box-shadow: 0 0 40px -6px rgba(255, 170, 60, .5); }
.modal__iframe { width: 100%; height: 100%; border: 0; }
.modal__close { position: absolute; top: -46px; right: 0; font-size: 2rem; line-height: 1; color: var(--gold-hi); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal--delay-1 { transition-delay: .1s; }
.reveal--delay-2 { transition-delay: .2s; }
.reveal--delay-3 { transition-delay: .3s; }
.reveal--delay-4 { transition-delay: .4s; }

/* ---------- Responsive ---------- */
@media (max-width: 1240px) {
  .nav__link { padding: 8px 9px; letter-spacing: .12em; }
  .header__inner { gap: 16px; }
}
@media (max-width: 1080px) {
  .nav, .header__actions { display: none; }
  .menu-toggle { display: flex; }
  .world-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-panel__frame { grid-template-columns: repeat(3, 1fr); clip-path: none; border-radius: 6px; }
  .stats-panel__frame::before { clip-path: none; }
  .stat:nth-child(4)::before { display: none; }
  .stat:nth-child(n+4) { border-top: 1px solid rgba(232, 196, 112, .2); }
}
@media (max-width: 820px) {
  .info-tabs { grid-template-columns: 1fr; }
  .info-tabs__nav { flex-direction: row; overflow-x: auto; padding: 4px; scrollbar-width: none; }
  .info-tabs__nav::-webkit-scrollbar { display: none; }
  .info-tabs__btn { flex: none; padding: 10px 14px; }
  .info-tabs__btn::before { display: none; }
  .info-tabs__btn.is-active { box-shadow: inset 0 -3px 0 var(--gold); }
  .info-tabs__panel ul { columns: 1; }
  .download-grid { grid-template-columns: minmax(0, 460px); }
  .contact-grid { grid-template-columns: repeat(2, 1fr); row-gap: 34px; }
  .world-gallery__grid { grid-template-columns: repeat(2, 1fr); }
  .hero__flash--1, .hero__flash--3 { display: none; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .world-grid { grid-template-columns: 1fr; }
  .stats-panel__frame { grid-template-columns: repeat(2, 1fr); }
  .stat--featured { grid-column: 1 / -1; }
  .stat + .stat::before { display: none; }
  .stat:nth-child(n+2) { border-top: 1px solid rgba(232, 196, 112, .2); }
  .stat { justify-content: flex-start; padding: 14px 12px; }
  .stat--featured { justify-content: center; }
  .stat__icon { width: 34px; height: 34px; padding: 7px; }
  .hero__actions { flex-direction: column; width: 100%; max-width: 330px; gap: 16px; }
  .countdown__unit { min-width: 62px; padding: 10px 4px 8px; }
  .countdown__sep { width: 5px; height: 5px; }
  .countdown__name { font-size: .52rem; letter-spacing: .14em; }
  .hero__actions .btn { width: 100%; min-width: 0; }
  .brand__emblem { width: 44px; height: 27px; }
  .grimoire { padding: 8px; }
  .crest { width: 96px; }
  .vote-widget { right: 12px; bottom: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .embers, .hero__flash { display: none; }
}
