/* ============================================================
   DARCNIA — landing. El lenguaje visual ES el del juego:
   mármol cósmico, oro, runas, universo.
   ============================================================ */

:root {
  --bg0: #07070f;
  --bg1: #0d0d1e;
  --bg2: #14142c;
  --ink: #e9e3f6;
  --ink-dim: #a99fc4;
  --gold: #e3b95e;
  --gold-hi: #f7dd9a;
  --gold-dark: #8f6b2a;
  --violet: #8b5cf6;
  --violet-deep: #2a1a4d;
  --steam: #66c0f4;
  --patreon: #ff8476;
  --font-display: "Cinzel", "Times New Roman", serif;
  --font-body: "EB Garamond", Georgia, serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

::selection { background: rgba(227, 185, 94, .4); color: #fff; }

::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: #0a0a16; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #8f6b2a, #5a4520);
  border-radius: 8px; border: 3px solid #0a0a16;
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #b88f42, #7a5f2c); }
html { scrollbar-color: #8f6b2a #0a0a16; scrollbar-width: thin; }

html { scroll-behavior: smooth; }

/* Seguro absoluto contra scroll horizontal: clip no crea contenedor de scroll.
   SOLO en body — en html rompe el scroll vertical del documento.
   hidden primero = fallback para navegadores sin soporte de clip. */
body { overflow-x: hidden; overflow-x: clip; }

body {
  background: var(--bg0);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }

/* ---------- reveals ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.reveal.on { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================== NAV ============================== */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 1.5rem;
  padding: .65rem 1.4rem;
  background: linear-gradient(180deg, rgba(7,7,15,.92), rgba(7,7,15,.55) 80%, transparent);
  transition: background .35s ease, box-shadow .35s ease;
}
.nav.scrolled {
  background: rgba(9,9,20,.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(227,185,94,.28), 0 12px 30px rgba(0,0,0,.45);
}
.nav-links { display: flex; gap: 1.35rem; margin-inline: auto; }
.nav-links a {
  color: var(--ink-dim); text-decoration: none;
  font-family: var(--font-display); font-size: .82rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  transition: color .25s;
  position: relative;
}
.nav-links a::after {
  content: ""; position: absolute; left: 50%; right: 50%; bottom: -6px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-hi), transparent);
  transition: left .3s ease, right .3s ease;
}
.nav-links a:hover { color: var(--gold-hi); }
.nav-links a:hover::after { left: 0; right: 0; }
.nav-right { display: flex; align-items: center; gap: 1rem; }

.music-btn {
  background: none; border: none; cursor: pointer; padding: .3rem;
  color: var(--gold-hi); width: 34px; height: 34px;
  display: grid; place-items: center;
  transition: color .25s, filter .25s;
  filter: drop-shadow(0 0 6px rgba(227,185,94,.35));
}
.music-btn svg { width: 20px; height: 20px; }
.music-btn .ico-off { display: none; }
.music-btn.muted .ico-on { display: none; }
.music-btn.muted .ico-off { display: block; }
.music-btn.muted { color: var(--ink-dim); filter: none; }
.music-btn:hover { color: #fff0c9; }

.lang-switch { display: flex; align-items: center; gap: .35rem; font-family: var(--font-display); }
.lang-btn {
  background: none; border: none; cursor: pointer;
  color: var(--ink-dim); font-family: inherit; font-size: .82rem; font-weight: 700;
  letter-spacing: .08em; padding: .2rem .3rem; transition: color .25s, text-shadow .25s;
}
.lang-btn.active { color: var(--gold-hi); text-shadow: 0 0 12px rgba(247,221,154,.55); }
.lang-sep { color: var(--gold-dark); }

.nav-burger { display: none; }

/* ============================== BOTONES ============================== */
.btn {
  --edge: rgba(247,221,154,.9);
  position: relative;
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .95rem 1.9rem;
  font-family: var(--font-display); font-weight: 700; font-size: .95rem;
  letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
  color: var(--gold-hi);
  background:
    radial-gradient(120% 180% at 50% -30%, rgba(139,92,246,.55), transparent 55%),
    linear-gradient(180deg, #3d2a6e 0%, #241549 45%, #1a0f38 100%);
  border: 1px solid transparent;
  border-radius: 999px;
  background-clip: padding-box;
  box-shadow:
    0 0 0 1px rgba(143,107,42,.9),
    0 0 0 2.5px rgba(20,15,35,.9),
    0 0 0 3.5px rgba(227,185,94,.55),
    0 10px 26px rgba(0,0,0,.55),
    inset 0 1px 0 rgba(255,255,255,.22),
    inset 0 -8px 18px rgba(0,0,0,.45);
  transition: transform .22s ease, box-shadow .28s ease, filter .28s ease;
  overflow: hidden;
  white-space: nowrap;
}
.btn::before { /* barrido de luz */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.35) 48%, rgba(255,255,255,.06) 52%, transparent 65%);
  transform: translateX(-120%);
  transition: transform .7s ease;
  pointer-events: none;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.12);
  box-shadow:
    0 0 0 1px rgba(143,107,42,1),
    0 0 0 2.5px rgba(20,15,35,.9),
    0 0 0 3.5px rgba(247,221,154,.95),
    0 14px 34px rgba(0,0,0,.6),
    0 0 30px rgba(139,92,246,.5),
    inset 0 1px 0 rgba(255,255,255,.3),
    inset 0 -8px 18px rgba(0,0,0,.4);
}
.btn:hover::before { transform: translateX(120%); }
.btn:active { transform: translateY(0); }
.btn .ico { width: 1.25em; height: 1.25em; flex: none; }
.btn-small { padding: .55rem 1.15rem; font-size: .8rem; }

.btn-steam { color: #cfe8fa; }
.btn-steam .ico { color: var(--steam); }
.btn-patreon { color: #ffd9d3; }
.btn-patreon .ico { color: var(--patreon); }
.btn-discord { color: #dfe3ff; }
.btn-discord .ico { color: #7a86ff; }

.soon-chip {
  font-family: var(--font-display); font-size: .58rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-dim);
  border-left: 1px solid rgba(227,185,94,.4); padding-left: .6rem; margin-left: .15rem;
}

/* ============================== HERO ============================== */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 6.5rem 1.5rem 4rem;
  isolation: isolate;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -4;
  background: url("../assets/img/bg_temple.webp") center 30% / cover no-repeat;
}
.hero-bg-video {
  position: absolute; inset: 0; z-index: -3;
  width: 100%; height: 100%; object-fit: cover;
}
@media (prefers-reduced-motion: reduce) { .hero-bg-video { display: none; } }
.hero-stars { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; mix-blend-mode: screen; }
.hero-vignette {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(120% 90% at 50% 40%, transparent 40%, rgba(7,7,15,.72) 100%),
    linear-gradient(180deg, rgba(7,7,15,.55), transparent 22%, transparent 60%, var(--bg0) 98%);
}

.hero-inner { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; width: 100%; }
/* Scrim: sombra de escena detrás del bloque de texto — oscurece esa zona y se
   desvanece hacia los bordes, sin agregar ningún elemento visible. */
.hero-inner::before {
  content: ""; position: absolute; inset: -10% -24%;
  background: radial-gradient(52% 46% at 50% 30%,
    rgba(5, 5, 13, .66), rgba(5, 5, 13, .38) 55%, transparent 78%);
  z-index: -1; pointer-events: none;
}

.hero-logo {
  width: min(560px, 86vw);
  filter: drop-shadow(0 10px 34px rgba(0,0,0,.75)) drop-shadow(0 0 46px rgba(139,92,246,.4));
  animation: logoBreath 6s ease-in-out infinite alternate;
}
@keyframes logoBreath {
  from { filter: drop-shadow(0 10px 34px rgba(0,0,0,.75)) drop-shadow(0 0 34px rgba(139,92,246,.32)); }
  to   { filter: drop-shadow(0 10px 34px rgba(0,0,0,.75)) drop-shadow(0 0 58px rgba(139,92,246,.55)); }
}
@media (prefers-reduced-motion: reduce) { .hero-logo { animation: none; } }

.hero-tagline {
  margin-top: 1.6rem;
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.15rem, 2.6vw, 1.7rem);
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-hi);
  text-shadow: 0 2px 14px rgba(0,0,0,.8), 0 0 30px rgba(227,185,94,.35);
}
.hero-sub {
  margin-top: .9rem; max-width: 620px;
  color: var(--ink); font-size: clamp(1rem, 2vw, 1.2rem);
  text-shadow: 0 1px 3px rgba(0,0,0,.95), 0 2px 14px rgba(0,0,0,.85);
}

.hero-video { margin-top: 2.6rem; width: min(860px, 94vw); }
.hero-ctas + .hero-video { margin-top: 3rem; }
.video-shell {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: 10px;
  box-shadow:
    0 0 0 1px rgba(143,107,42,.95),
    0 0 0 3px rgba(15,12,28,.95),
    0 0 0 4px rgba(227,185,94,.6),
    0 24px 60px rgba(0,0,0,.65),
    0 0 60px rgba(139,92,246,.25);
  cursor: default;
}
.video-shell iframe, .video-shell video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.video-shell.playable { cursor: pointer; }
.video-shell.playable:hover .video-play {
  transform: scale(1.08);
  box-shadow: 0 0 0 1px rgba(247,221,154,1), 0 0 0 6px rgba(227,185,94,.25), 0 0 46px rgba(139,92,246,.75);
}
.video-shell.playable:hover .video-poster { filter: brightness(.7) saturate(1.1); }
.video-play { transition: transform .25s ease, box-shadow .25s ease; }
.video-poster { transition: filter .3s ease; }
.video-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.55) saturate(1.05); }
.video-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: .8rem;
}
.video-play {
  width: 84px; height: 84px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 1.7rem; color: var(--gold-hi); padding-left: 6px;
  background: radial-gradient(circle at 50% 35%, rgba(139,92,246,.5), rgba(20,13,42,.92) 70%);
  box-shadow: 0 0 0 1px rgba(227,185,94,.8), 0 0 0 5px rgba(227,185,94,.15), 0 0 34px rgba(139,92,246,.5);
}
.video-soon {
  font-family: var(--font-display); font-size: .85rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase; color: var(--ink);
  text-shadow: 0 2px 8px rgba(0,0,0,.9);
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 1.1rem; justify-content: center; margin-top: 2.2rem; }

.hero-scrollhint { position: absolute; bottom: 1.4rem; left: 50%; transform: translateX(-50%); }
.hero-scrollhint span {
  display: block; width: 1px; height: 46px;
  background: linear-gradient(180deg, transparent, var(--gold-hi));
  animation: hint 2.2s ease-in-out infinite;
}
@keyframes hint { 0%,100% { opacity: .25; transform: scaleY(.6); transform-origin: top; } 50% { opacity: 1; transform: scaleY(1); } }

/* ============================== SECCIONES ============================== */
.section { position: relative; padding: 5.5rem 1.5rem; max-width: 1200px; margin: 0 auto; scroll-margin-top: 64px; }

:focus-visible {
  outline: 2px solid var(--gold-hi);
  outline-offset: 3px;
  border-radius: 4px;
}

.ornament { display: flex; justify-content: center; margin-bottom: 1.8rem; }
.ornament img { width: min(640px, 82vw); opacity: .9; filter: drop-shadow(0 0 14px rgba(139,92,246,.25)); }

.section-title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  letter-spacing: .12em; text-transform: uppercase;
  text-align: center;
  background: linear-gradient(180deg, var(--gold-hi) 20%, var(--gold) 55%, var(--gold-dark) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 3px 10px rgba(0,0,0,.6));
}
.section-sub {
  max-width: 640px; margin: 1rem auto 0; text-align: center; color: var(--ink-dim);
  font-size: clamp(1.02rem, 1.9vw, 1.18rem);
}

/* ---------- pilares ---------- */
.pillars {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(270px, 100%), 1fr));
  gap: 1.6rem; margin-top: 3rem;
}
.pillar {
  background: linear-gradient(180deg, var(--bg2), var(--bg1));
  border: 1px solid rgba(227,185,94,.28);
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 14px 40px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.06);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.pillar:hover {
  transform: translateY(-6px);
  border-color: rgba(247,221,154,.6);
  box-shadow: 0 22px 54px rgba(0,0,0,.55), 0 0 34px rgba(139,92,246,.22), inset 0 1px 0 rgba(255,255,255,.08);
}
.pillar-art { aspect-ratio: 16 / 9; overflow: hidden; display: flex; align-items: center; justify-content: center; background: #0a0a18; }
.pillar-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.pillar-art video { width: 100%; height: 100%; object-fit: cover; }
.pillar:hover .pillar-art img { transform: scale(1.06); }
.pillar h3 {
  font-family: var(--font-display); font-weight: 600; font-size: 1.12rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--gold-hi);
  padding: 1.2rem 1.3rem .4rem;
}
.pillar p { padding: 0 1.3rem 1.5rem; color: var(--ink-dim); font-size: 1.02rem; }

/* ---------- cartas 3D holográficas ---------- */
.section-cards { max-width: 1280px; }
.cards-more {
  text-align: center; margin-top: 2.4rem;
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1rem, 2vw, 1.25rem);
  letter-spacing: .14em; text-transform: uppercase;
  background: linear-gradient(180deg, var(--gold-hi) 20%, var(--gold) 60%, var(--gold-dark) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.6)) drop-shadow(0 0 18px rgba(227,185,94,.25));
}
.cards-hint {
  text-align: center; margin-top: 1rem; color: #b7a6e8;
  font-family: var(--font-display); font-size: .78rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase;
}
.card-grid {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 1.7rem; margin-top: 2.6rem;
  perspective: 1400px;
}
.card-grid-runes { margin-top: 3rem; }

.card3d { flex: 0 1 230px; min-width: 180px; }
.card3d-inner {
  --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%; --sx: 0px; --sy: 0px;
  position: relative; border-radius: 12px;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform .16s ease-out, box-shadow .35s ease;
  box-shadow: 0 16px 40px rgba(0,0,0,.55);
  will-change: transform;
}
.card3d:hover .card3d-inner {
  transform: rotateX(var(--rx)) rotateY(var(--ry)) scale(1.06);
  box-shadow:
    var(--sx) var(--sy) 34px rgba(0,0,0,.6),
    0 0 44px rgba(139,92,246,.42),
    0 0 90px rgba(139,92,246,.16);
}
.card3d-inner img { border-radius: 12px; width: 100%; }
.holo, .shine { position: absolute; inset: 0; border-radius: 12px; pointer-events: none; opacity: 0; transition: opacity .35s ease; }
/* Foil holográfico estilo TCG: glare especular + bandas arcoíris que se
   desplazan con el cursor + textura de foil fina en diagonal. */
.holo {
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(255,255,255,.5), transparent 22%),
    repeating-linear-gradient(115deg,
      rgba(255,119,115,.45) 0%,  rgba(255,237,95,.45)  6%,
      rgba(168,255,95,.45) 12%,  rgba(131,255,247,.45) 18%,
      rgba(120,148,255,.45) 24%, rgba(216,117,255,.45) 30%,
      rgba(255,119,115,.45) 36%),
    repeating-linear-gradient(-65deg,
      rgba(255,255,255,.08) 0px, rgba(255,255,255,0) 3px,
      rgba(255,255,255,.08) 6px);
  background-size: 100% 100%, 250% 250%, 100% 100%;
  background-position: center, var(--mx) var(--my), center;
  mix-blend-mode: color-dodge;
  filter: brightness(.6) contrast(1.3) saturate(1.65);
}
.shine {
  background: linear-gradient(120deg, transparent 34%, rgba(255,255,255,.22) calc(var(--mx) * .8 + 18%), transparent 60%);
  mix-blend-mode: screen;
}
.card3d:hover .holo { opacity: .34; }
.card3d:hover .shine { opacity: .6; }

/* ---------- runas ---------- */
.section-runes { max-width: 1280px; }
/* Sigilos de tipo: los círculos de transmutación REALES del juego, flotando
   sin caja alguna. La frase aparece al posarse sobre el sigilo. */
.sigil-row {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 1.6rem 2.4rem; margin-top: 3.2rem;
}
.sigil { width: 176px; text-align: center; }
/* El orbe escala al hover; la imagen adentro GIRA siempre, como un círculo
   de transmutación. Dos transforms separados = no se pisan. */
.sigil .orb {
  display: block; width: 138px; margin-inline: auto;
  filter:
    drop-shadow(0 0 8px color-mix(in srgb, var(--rc) 60%, transparent))
    drop-shadow(0 0 26px color-mix(in srgb, var(--rc) 32%, transparent));
  transition: transform .35s ease, filter .35s ease;
}
.sigil .orb img { width: 100%; animation: sigilSpin 48s linear infinite; }
.sigil:nth-child(2) .orb img { animation-duration: 58s; animation-direction: reverse; }
.sigil:nth-child(3) .orb img { animation-duration: 44s; }
.sigil:nth-child(4) .orb img { animation-duration: 62s; animation-direction: reverse; }
.sigil:nth-child(5) .orb img { animation-duration: 52s; }
@keyframes sigilSpin { to { transform: rotate(360deg); } }
.sigil:hover .orb {
  transform: scale(1.14);
  filter:
    brightness(1.35)
    drop-shadow(0 0 12px color-mix(in srgb, var(--rc) 85%, transparent))
    drop-shadow(0 0 40px color-mix(in srgb, var(--rc) 50%, transparent));
}
.sigil h4 {
  margin-top: 1rem;
  font-family: var(--font-display); font-weight: 600; font-size: .86rem;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--rc);
  text-shadow: 0 0 14px color-mix(in srgb, var(--rc) 45%, transparent);
}
.sigil p {
  margin-top: .45rem; color: var(--ink); font-size: .9rem; line-height: 1.45;
  opacity: 0; transform: translateY(6px);
  transition: opacity .3s ease, transform .3s ease;
}
.sigil:hover p { opacity: 1; transform: none; }
@media (hover: none) { .sigil p { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .sigil .orb img { animation: none; }
  .sigil p { opacity: 1; transform: none; }
}

/* ---------- torre ---------- */
.section-tower { max-width: none; padding: 7.5rem 1.5rem; isolation: isolate; overflow: hidden; }
.tower-bg {
  position: absolute; inset: 0; z-index: -1;
  background: url("../assets/img/art_nerith.webp") center 38% / cover no-repeat fixed;
}
@supports (-webkit-touch-callout: none) { .tower-bg { background-attachment: scroll; } }
.tower-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(90% 80% at 50% 50%, rgba(7,7,15,.45) 0%, rgba(7,7,15,.88) 100%),
    linear-gradient(180deg, var(--bg0) 0%, transparent 18%, transparent 82%, var(--bg0) 100%);
}
.tower-inner { max-width: 760px; margin: 0 auto; text-align: center; }
.tower-quote { margin-top: 2.2rem; }
.tower-quote p {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.25rem, 2.8vw, 1.8rem); color: var(--ink);
  letter-spacing: .04em;
  text-shadow: 0 2px 16px rgba(0,0,0,.9);
}
.tower-quote cite {
  display: block; margin-top: .7rem; font-style: normal;
  font-family: var(--font-display); font-size: .85rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--gold);
}
.tower-body { margin: 1.8rem auto 0; max-width: 620px; color: var(--ink); text-shadow: 0 2px 10px rgba(0,0,0,.9); }
.tower-chips { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin-top: 2rem; }
.chip {
  font-family: var(--font-display); font-size: .8rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--gold-hi);
  padding: .5rem 1.1rem; border-radius: 999px;
  border: 1px solid rgba(227,185,94,.5);
  background: rgba(13,13,30,.72);
  box-shadow: 0 6px 18px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.08);
}

/* ---------- roadmap AAA: columna arcana central + medallones + paneles ---------- */
#roadmap {
  background:
    radial-gradient(42% 34% at 16% 28%, rgba(139,92,246,.09), transparent),
    radial-gradient(40% 32% at 84% 66%, rgba(79,125,255,.08), transparent);
}
.reveal.from-left { transform: translateX(-48px); }
.reveal.from-right { transform: translateX(48px); }

/* overflow-x clip: los paneles entran deslizándose ±48px y NO deben
   generar espacio vacío a los costados mientras esperan revelarse. */
.roadmap2 { position: relative; margin-top: 3.4rem; overflow-x: clip; padding-inline: 6px; margin-inline: -6px; }
.rm2-track { /* la columna que une los medallones */
  position: absolute; left: 50%; top: -8px; bottom: -8px; width: 44px;
  transform: translateX(-50%);
  background:
    linear-gradient(90deg, transparent 0%, rgba(227,185,94,.20) 16%,
      rgba(139,92,246,.30) 50%, rgba(227,185,94,.20) 84%, transparent 100%),
    repeating-linear-gradient(180deg, rgba(247,221,154,.13) 0 2px, transparent 2px 30px);
  box-shadow: inset 2px 0 0 rgba(227,185,94,.30), inset -2px 0 0 rgba(227,185,94,.30);
  filter: drop-shadow(0 0 14px rgba(139,92,246,.30));
  overflow: hidden;
  mask-image: linear-gradient(180deg, transparent, #000 7%, #000 93%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 7%, #000 93%, transparent);
}
.rm2-track::after { /* pulso de luz que ASCIENDE por la columna */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(255,255,255,.30) 7%, transparent 15%);
  background-size: 100% 320%;
  animation: rmFlow 8s linear infinite;
  mix-blend-mode: screen;
}
@keyframes rmFlow { from { background-position: 0 160%; } to { background-position: 0 -160%; } }

.rm2-row {
  position: relative;
  display: grid; grid-template-columns: 1fr 150px 1fr;
  align-items: center;
  margin-bottom: 1.4rem;
}
.rm2-row:last-child { margin-bottom: 0; }

/* colores por fase */
.rm2-row[data-state="done"]   { --pc: #e3b95e; --pc-hi: #f7dd9a; }
.rm2-row[data-state="now"]    { --pc: #a06bff; --pc-hi: #c9b3ff; }
.rm2-row[data-state="next"]   { --pc: #35d0ba; --pc-hi: #8ff2e2; }
.rm2-row[data-state="vision"] { --pc: #4f7dff; --pc-hi: #9db9ff; }

.rm2-orb { grid-column: 2; grid-row: 1; justify-self: center; z-index: 1; }
.rm2-orb img {
  width: 112px; display: block;
  filter:
    drop-shadow(0 6px 16px rgba(0,0,0,.6))
    drop-shadow(0 0 18px color-mix(in srgb, var(--pc) 50%, transparent));
  animation: orbBreath 4.5s ease-in-out infinite;
  transition: transform .35s ease, filter .35s ease;
}
.rm2-row:nth-child(odd) .rm2-orb img { animation-delay: -2.2s; }
@keyframes orbBreath {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.045); }
}
.rm2-orb:hover img {
  transform: scale(1.14);
  animation-play-state: paused;
  filter:
    brightness(1.15)
    drop-shadow(0 6px 16px rgba(0,0,0,.6))
    drop-shadow(0 0 30px color-mix(in srgb, var(--pc) 80%, transparent));
}

.rm2-panel {
  grid-column: 1; grid-row: 1; justify-self: end;
  width: 100%; max-width: 420px;
  position: relative;
  background: linear-gradient(180deg, rgba(24,21,44,.94), rgba(13,12,26,.96));
  border: 1px solid color-mix(in srgb, var(--pc) 55%, transparent);
  border-radius: 14px;
  padding: 1.25rem 1.5rem 1.35rem;
  box-shadow:
    0 14px 40px rgba(0,0,0,.5),
    0 0 26px color-mix(in srgb, var(--pc) 14%, transparent),
    inset 0 1px 0 rgba(255,255,255,.07);
  transition: box-shadow .35s ease, border-color .35s ease;
}
.rm2-panel:hover {
  border-color: color-mix(in srgb, var(--pc) 85%, transparent);
  box-shadow:
    0 18px 48px rgba(0,0,0,.55),
    0 0 38px color-mix(in srgb, var(--pc) 26%, transparent),
    inset 0 1px 0 rgba(255,255,255,.09);
}
.rm2-panel::after { /* conector en punta hacia el medallón */
  content: ""; position: absolute; top: 50%; right: -7px;
  width: 12px; height: 12px; transform: translateY(-50%) rotate(45deg);
  background: rgba(18,16,34,.96);
  border-top: 1px solid color-mix(in srgb, var(--pc) 55%, transparent);
  border-right: 1px solid color-mix(in srgb, var(--pc) 55%, transparent);
}
.rm2-flip .rm2-panel { grid-column: 3; justify-self: start; }
.rm2-flip .rm2-panel::after {
  right: auto; left: -7px;
  border-top: none; border-right: none;
  border-bottom: 1px solid color-mix(in srgb, var(--pc) 55%, transparent);
  border-left: 1px solid color-mix(in srgb, var(--pc) 55%, transparent);
}

.rm2-panel h3 {
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--pc-hi);
  text-shadow: 0 0 16px color-mix(in srgb, var(--pc) 45%, transparent);
}
.rm2-panel ul { list-style: none; margin-top: .75rem; display: grid; gap: .45rem; }
.rm2-panel li { color: var(--ink); font-size: .98rem; padding-left: 1.25rem; position: relative; }
.rm2-panel li::before {
  position: absolute; left: 0; top: 0;
  color: var(--pc); font-size: .8rem;
}
.rm2-row[data-state="done"] li::before   { content: "★"; }
.rm2-row[data-state="now"] li::before    { content: "➤"; font-size: .7rem; top: .1em; }
.rm2-row[data-state="next"] li::before   { content: "✦"; }
.rm2-row[data-state="vision"] li::before { content: "✧"; }
.rm2-row[data-state="vision"] li { color: var(--ink-dim); }

@media (max-width: 820px) {
  .rm2-track { left: 34px; width: 30px; }
  .rm2-row, .rm2-row.rm2-flip { grid-template-columns: 68px 1fr; margin-bottom: 2rem; }
  .rm2-orb { grid-column: 1; align-self: start; }
  .rm2-orb img { width: 60px; }
  .rm2-panel, .rm2-flip .rm2-panel { grid-column: 2; justify-self: stretch; max-width: none; }
  .rm2-panel::after, .rm2-flip .rm2-panel::after {
    right: auto; left: -7px; border: none;
    border-bottom: 1px solid color-mix(in srgb, var(--pc) 55%, transparent);
    border-left: 1px solid color-mix(in srgb, var(--pc) 55%, transparent);
  }
  .reveal.from-left, .reveal.from-right { transform: translateY(26px); }
}
@media (prefers-reduced-motion: reduce) {
  .rm2-track::after { animation: none; }
  .rm2-orb img { animation: none; }
}

/* ---------- media ---------- */
.media-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 1.2rem; margin-top: 2.6rem;
}
.media-item {
  border: 1px solid rgba(227,185,94,.3); border-radius: 10px;
  padding: 0; overflow: hidden; cursor: zoom-in; background: var(--bg1);
  box-shadow: 0 12px 30px rgba(0,0,0,.45);
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.media-item img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; transition: transform .5s ease; }
.media-item:hover { transform: translateY(-4px); border-color: rgba(247,221,154,.65); box-shadow: 0 18px 44px rgba(0,0,0,.55), 0 0 28px rgba(139,92,246,.2); }
.media-item:hover img { transform: scale(1.05); }

/* ---------- soporte ---------- */
.support-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 1.6rem; margin-top: 2.8rem; max-width: 1150px; margin-inline: auto;
}
.support-panel {
  display: flex; flex-direction: column;
  text-align: center;
  background: linear-gradient(180deg, var(--bg2), var(--bg1));
  border: 1px solid rgba(227,185,94,.3); border-radius: 16px;
  padding: 2.2rem 1.8rem;
  box-shadow: 0 16px 44px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.06);
  transition: transform .3s ease, border-color .3s ease;
}
.support-panel:hover { transform: translateY(-5px); border-color: rgba(247,221,154,.6); }
.support-panel h3 {
  font-family: var(--font-display); font-weight: 600; font-size: 1.2rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--gold-hi);
}
.support-panel p { color: var(--ink-dim); margin: .8rem 0 1.6rem; }
.support-panel .btn { max-width: 100%; margin-top: auto; align-self: center; padding-inline: 1.3rem; font-size: .88rem; }
.support-panel .soon-chip { display: none; } /* el aviso ya vive en el hero; acá desborda el panel */

/* ---------- footer ---------- */
.footer {
  text-align: center; padding: 4rem 1.5rem 2.6rem;
  border-top: 1px solid rgba(227,185,94,.22);
  background: linear-gradient(180deg, transparent, rgba(13,13,30,.8));
}
.footer-logo { width: 190px; margin: 0 auto; opacity: .9; }
.footer-tag {
  margin-top: 1.1rem; color: var(--ink-dim);
  font-family: var(--font-display); font-size: .8rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
}
.footer-social { display: flex; justify-content: center; gap: 1.4rem; margin-top: 1.3rem; }
.footer-social a {
  color: var(--ink-dim); display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(227,185,94,.35);
  background: rgba(13,13,30,.7);
  transition: color .25s, border-color .25s, transform .25s, box-shadow .25s;
}
.footer-social svg { width: 20px; height: 20px; }
.footer-social a:hover {
  color: var(--gold-hi); border-color: rgba(247,221,154,.8);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,.5), 0 0 18px rgba(139,92,246,.3);
}
.footer-rights { margin-top: 1.2rem; font-size: .88rem; color: #6d6488; }

/* Volver arriba */
.to-top {
  position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 55;
  width: 50px; height: 50px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  color: var(--gold-hi);
  background: radial-gradient(circle at 35% 30%, rgba(139,92,246,.35), rgba(15,12,30,.95) 70%);
  border: 1px solid rgba(227,185,94,.6);
  box-shadow: 0 8px 24px rgba(0,0,0,.55), 0 0 18px rgba(139,92,246,.25);
  opacity: 0; pointer-events: none; transform: translateY(14px);
  transition: opacity .3s ease, transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }
.to-top svg { width: 22px; height: 22px; }
.to-top:hover {
  border-color: rgba(247,221,154,.95);
  box-shadow: 0 10px 28px rgba(0,0,0,.6), 0 0 26px rgba(139,92,246,.5);
  transform: translateY(-3px);
}
@media (max-width: 900px) {
  .to-top { right: 1rem; bottom: calc(4.6rem + env(safe-area-inset-bottom)); width: 44px; height: 44px; }
}

/* scroll-spy: el link de la sección visible se enciende */
.nav-links a.active { color: var(--gold-hi); }
.nav-links a.active::after { left: 0; right: 0; }

/* CTA fija para móvil */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: none; justify-content: center; gap: .8rem;
  padding: .7rem 1rem calc(.7rem + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(9,9,20,.7), rgba(9,9,20,.97));
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(227,185,94,.3);
  transform: translateY(105%);
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.mobile-cta.show { transform: none; }
@media (max-width: 900px) {
  .mobile-cta { display: flex; }
  .footer { padding-bottom: 6.5rem; } /* aire para que la CTA fija no tape el footer */
}

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  background: rgba(4,4,10,.92); backdrop-filter: blur(6px);
  padding: 3rem 1.2rem;
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: min(1400px, 94vw); max-height: 88vh; border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(227,185,94,.5), 0 30px 80px rgba(0,0,0,.8);
}
.lightbox-close {
  position: absolute; top: 1.1rem; right: 1.4rem;
  background: none; border: none; color: var(--gold-hi);
  font-size: 2.4rem; cursor: pointer; line-height: 1;
  text-shadow: 0 0 14px rgba(227,185,94,.5);
}

/* ---------- detalle de carta (CardDetail del juego) ---------- */
.card3d[data-card] { cursor: pointer; }
.card-detail {
  position: fixed; inset: 0; z-index: 110;
  display: flex; align-items: center; justify-content: center;
  padding: 2.5rem 1.2rem;
  background: rgba(8, 8, 15, 0);      /* dim: entra en .14s como en el juego */
  transition: background .14s ease;
}
.card-detail[hidden] { display: none; }
.card-detail.in { background: rgba(8, 8, 15, .78); }
.detail-stage {
  position: relative;
  width: min(400px, 82vw);
  transform: scale(.86); opacity: 0;   /* pop 0.86 → 1 con rebote (TRANS_BACK) */
  transition: transform .22s cubic-bezier(.34, 1.56, .64, 1), opacity .14s ease;
}
.card-detail.in .detail-stage { transform: scale(1); opacity: 1; }
.detail-card {
  width: 100%; border-radius: 14px;
  box-shadow: 0 30px 90px rgba(0,0,0,.8), 0 0 70px rgba(139,92,246,.35);
}
/* El pergamino de info: sube desde abajo de la carta, como al tocar la gema. */
.detail-panel {
  position: absolute; left: 5.5%; right: 5.5%; bottom: 4.5%;
  padding: .95rem 1.1rem;
  border-radius: 10px;
  background: linear-gradient(180deg, #efe6d0, #ddd0b4);
  border: 1px solid rgba(143,107,42,.9);
  box-shadow: 0 0 0 2.5px rgba(227,185,94,.5), 0 12px 30px rgba(0,0,0,.55);
  color: #2c2417;
  transform: translateY(26px); opacity: 0;
  transition: transform .3s cubic-bezier(.2,.7,.2,1) .18s, opacity .3s ease .18s;
  max-height: 52%; overflow-y: auto;
}
.card-detail.in .detail-panel { transform: none; opacity: 1; }
.detail-meta {
  font-family: var(--font-display); font-size: .82rem; font-weight: 600;
  letter-spacing: .06em; color: #5a4520;
}
.detail-meta strong { color: #3d2e12; }
.detail-text { margin-top: .45rem; font-size: .98rem; line-height: 1.45; }
.detail-flavor {
  margin-top: .55rem; padding-top: .55rem;
  border-top: 1px solid rgba(143,107,42,.45);
  font-size: .88rem; color: #6b5c40;
}

/* ============================== RESPONSIVE ============================== */
@media (max-width: 900px) {
  .nav-links {
    position: fixed; inset: 0 0 0 auto; width: min(320px, 78vw);
    flex-direction: column; gap: 2rem; padding: 5.5rem 2.2rem;
    background: rgba(9,9,20,.97); backdrop-filter: blur(12px);
    transform: translateX(105%); visibility: hidden;
    transition: transform .35s cubic-bezier(.2,.7,.2,1), visibility 0s .35s;
    box-shadow: -18px 0 44px rgba(0,0,0,.5);
    margin-inline: 0;
  }
  .nav-links.open { transform: none; visibility: visible; transition: transform .35s cubic-bezier(.2,.7,.2,1), visibility 0s; }
  .nav-cta { display: none; }
  .nav-burger {
    display: flex; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: .4rem; z-index: 60;
  }
  .nav-burger span { width: 24px; height: 2px; background: var(--gold-hi); border-radius: 2px; transition: transform .3s, opacity .3s; }
  .nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-burger.open span:nth-child(2) { opacity: 0; }
  .nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .tower-bg { background-attachment: scroll; }
  .soon-chip { display: none; }
}
