:root {
  --red: #ff0019;
  --red-hot: #ff3a2a;
  --red-deep: #7a000b;
  --blood: #2a0006;
  --bg: #030001;
  --panel: #0c0203;
  --panel-2: #140405;
  --line: rgba(255, 0, 25, 0.22);
  --text: #f4ebe8;
  --muted: #a8918d;
  --ice: #5cc8ff;
  --gold: #f0b85a;
  --epic: #b45cff;
  --display: 'Cinzel', 'Times New Roman', serif;
  --ui: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --cut: polygon(0 10px, 10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px));
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--ui);
  font-size: 18px;
  line-height: 1.45;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.is-loading { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
em { font-style: normal; color: var(--red); text-shadow: 0 0 24px rgba(255, 0, 25, 0.55); }
svg { display: block; }
[hidden] { display: none !important; }

/* ---------- capas globales ---------- */
#fx { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 30; }
.grain {
  position: fixed; inset: -20%; z-index: 31; pointer-events: none; opacity: 0.07; /* capa justa: con -50% era 4 veces la pantalla */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
  will-change: transform; /* capa propia: se mueve sin repintar la página */
}
@keyframes grain { 0% { transform: translate(0, 0); } 33% { transform: translate(-3%, 2%); } 66% { transform: translate(2%, -3%); } 100% { transform: translate(0, 0); } }

/* ---------- preloader ---------- */
#preloader {
  position: fixed; inset: 0; z-index: 100; background: #000;
  display: grid; place-content: center; justify-items: center; gap: 28px;
}
.pre-logo { width: 120px; animation: prePulse 1.6s ease-in-out infinite; }
.pre-logo img { filter: drop-shadow(0 0 30px rgba(255, 0, 25, 0.7)); }
@keyframes prePulse { 50% { transform: scale(1.06); filter: brightness(1.25); } }
.pre-bar { width: 220px; height: 3px; background: #1a0204; overflow: hidden; }
.pre-bar i { display: block; height: 100%; width: 0; background: var(--red); box-shadow: 0 0 12px var(--red); transition: width 0.4s; }
.pre-text { margin: 0; font-family: var(--display); letter-spacing: 0.3em; text-transform: uppercase; font-size: 12px; color: var(--muted); }

/* ---------- HUD ---------- */
.hud-top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  padding: 16px clamp(16px, 3vw, 40px);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0));
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--display); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 15px; }
.brand img { width: 34px; filter: drop-shadow(0 0 8px rgba(255, 0, 25, 0.6)); }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  position: relative; text-decoration: none; text-transform: uppercase; letter-spacing: 0.14em; font-size: 14px; font-weight: 600;
  padding: 8px 14px; color: var(--muted); transition: color 0.2s;
}
.nav a[hidden] { display: none; }
.nav a:hover, .nav a.is-active { color: var(--text); }
.nav a.nav-ext { color: var(--gold); }
.nav a.nav-ext:hover { color: #ffd38a; text-shadow: 0 0 12px rgba(240, 184, 90, 0.5); }
.nav a.nav-ext .ext { font-size: 12px; opacity: 0.8; }
.nav a.is-active::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; background: var(--red); box-shadow: 0 0 10px var(--red); }
@keyframes blink { 50% { opacity: 0.25; } }
.account { display: flex; align-items: center; gap: 10px; }
.account .avatar { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--red); object-fit: cover; background: var(--panel-2); display: grid; place-items: center; }
.account .avatar svg { width: 18px; color: var(--muted); }

/* Botón «Entrar» de arriba. Basado en «cold-bat-89» de mobinkakei (uiverse.io, licencia MIT),
   adaptado a NRAGE: rojo de la casa, sombra sólida que pasa a dorada y chevrones que se encienden en cascada. */
.btn-skew {
  display: inline-flex; align-items: center; padding: 9px 20px; border: 0; cursor: pointer; text-decoration: none; color: #fff;
  font: 700 14px/1 var(--ui); letter-spacing: 0.16em; text-transform: uppercase;
  background: linear-gradient(180deg, #ff2236, #c3000f);
  transform: skewX(-15deg);
  box-shadow: 4px 4px 0 #000, 0 0 22px rgba(255, 0, 25, 0.35);
  transition: box-shadow 0.45s, filter 0.3s;
}
.btn-skew > * { transform: skewX(15deg); }
.bs-label { display: inline-flex; align-items: center; gap: 9px; }
.bs-label svg { width: 18px; height: 18px; }
.bs-arrows { display: inline-flex; width: 0; margin-left: 0; overflow: hidden; transition: width 0.45s, margin 0.45s; }
.bs-arrows svg { flex: none; width: 26px; height: 12px; }
.bs-arrows path { fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: square; transition: transform 0.45s; }
.bs-arrows .a3 { transform: translateX(-60%); }
.bs-arrows .a2 { transform: translateX(-30%); }
.btn-skew:hover { box-shadow: 6px 6px 0 var(--gold), 0 0 30px rgba(255, 0, 25, 0.55); filter: brightness(1.06); }
.btn-skew:hover .bs-arrows { width: 26px; margin-left: 12px; }
.btn-skew:hover .bs-arrows path { transform: none; }
.btn-skew:hover .a1 { animation: bsGlow 1s infinite 0.2s; }
.btn-skew:hover .a2 { animation: bsGlow 1s infinite 0.4s; }
.btn-skew:hover .a3 { animation: bsGlow 1s infinite 0.6s; }
@keyframes bsGlow { 50% { stroke: var(--gold); } }
.btn-skew:active { box-shadow: 2px 2px 0 var(--gold), 0 0 22px rgba(255, 0, 25, 0.45); }
.btn-skew:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }

/* barra de experiencia estilo WoW */
.xpbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: 0 clamp(16px, 3vw, 40px) 10px; pointer-events: none; }
.xp-label { display: flex; justify-content: space-between; font-size: 12px; text-transform: uppercase; letter-spacing: 0.22em; color: var(--muted); margin-bottom: 6px; }
.xp-label span:first-child { color: var(--text); }
.xp-track { position: relative; height: 8px; background: rgba(20, 2, 4, 0.9); border: 1px solid #3a0610; box-shadow: inset 0 0 6px #000; }
.xp-fill { position: absolute; inset: 0; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--red-deep), var(--red) 70%, #ff7a5a); box-shadow: 0 0 14px rgba(255, 0, 25, 0.7); }
.xp-ticks { position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 calc(5% - 1px), rgba(0, 0, 0, 0.85) calc(5% - 1px) 5%); }

/* ---------- botones ---------- */
.btn {
  --c: var(--red);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 22px; border: 0; cursor: pointer; text-decoration: none;
  font-family: var(--ui); font-weight: 700; font-size: 16px; letter-spacing: 0.16em; text-transform: uppercase;
  clip-path: var(--cut); transition: transform 0.15s, filter 0.2s, background 0.2s;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary { background: linear-gradient(180deg, #ff2236, #c3000f); color: #fff; box-shadow: 0 0 30px rgba(255, 0, 25, 0.45); }
.btn-primary:hover { filter: brightness(1.15) drop-shadow(0 0 14px rgba(255, 0, 25, 0.7)); }
.btn-ghost { background: rgba(255, 0, 25, 0.06); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.btn-ghost:hover { background: rgba(255, 0, 25, 0.16); }
.btn-sm { padding: 8px 14px; font-size: 13px; letter-spacing: 0.12em; }
.btn .ico svg, .btn svg { width: 20px; height: 20px; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.link { background: none; border: 0; padding: 0; color: var(--red); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.kicker { margin: 0 0 12px; font-size: 14px; font-weight: 600; letter-spacing: 0.4em; text-transform: uppercase; color: var(--red); }
h1, h2, h3 { font-family: var(--display); font-weight: 900; margin: 0; line-height: 1.02; letter-spacing: 0.01em; }

/* ---------- escenas ---------- */
.scene { position: relative; height: 100vh; }

/* Al fijarla, ScrollTrigger le pone el ancho en píxeles; así sigue al ancho real de la ventana. */
.scene { width: 100% !important; max-width: none !important; }
.stage { position: relative; width: 100%; height: 100vh; overflow: hidden; }

/* I · héroe */
#s-hero .stage { background: radial-gradient(ellipse at 50% 55%, #1a0003 0%, #050001 55%, #000 100%); }
.hero-glow { position: absolute; left: 50%; top: 36%; width: 90vmin; height: 90vmin; margin: -45vmin 0 0 -45vmin; background: radial-gradient(circle, rgba(255, 0, 25, 0.35), rgba(255, 0, 25, 0) 62%); }
.hero-shards { position: absolute; inset: 0; }
.hero-shards i { position: absolute; display: block; background: #0d0103; border: 1px solid rgba(255, 0, 25, 0.35); will-change: transform; }

/* Logo y texto se dimensionan por la altura de la pantalla para no solaparse en monitores anchos. */
/* Centrado con márgenes, no con transform: GSAP anima el transform del logo (escala) y, al cambiar el tamaño de la
   ventana o girar el móvil, recalculaba el «translate(-50%, -50%)» en píxeles y el logo quedaba descolocado. */
.hero-logo { --w: min(29vh, 300px); position: absolute; left: 50%; top: 33%; width: var(--w); margin: calc(var(--w) * -0.545) 0 0 calc(var(--w) / -2); z-index: 2; will-change: transform; }
.hero-logo img { width: 100%; filter: drop-shadow(0 0 40px rgba(255, 0, 25, 0.55)) drop-shadow(0 0 2px #ff0019); }
.eye { position: absolute; width: 22%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255, 220, 200, 0.9), rgba(255, 30, 20, 0.6) 30%, rgba(255, 0, 25, 0) 70%); mix-blend-mode: screen; opacity: 0; margin: -11% 0 0 -11%; }
.eye-l { left: 30%; top: 22%; }
.eye-r { left: 64%; top: 17%; }
.hero-copy { position: absolute; left: 0; right: 0; bottom: calc(3vh + 118px); text-align: center; z-index: 3; }
.eyebrow { margin: 0 0 14px; font-size: 14px; letter-spacing: 0.5em; text-transform: uppercase; color: var(--muted); }
.hero-title { font-size: clamp(44px, min(8.4vw, 12.5vh), 150px); text-transform: uppercase; letter-spacing: 0.04em; text-shadow: 0 0 40px rgba(255, 0, 25, 0.45); }
.hero-title .ch, .hero-title .chi { display: inline-block; }
/* Logo agrandándose (scenes.js): sin filtro de brillo, que a ese tamaño agotaba la memoria gráfica. */
.hero-logo.is-zooming img { filter: none !important; }
.hero-title .word { display: inline-block; white-space: nowrap; }
.hero-title { perspective: 600px; }
.hero-tag { margin: 14px 0 0; font-size: clamp(18px, 1.6vw, 24px); letter-spacing: 0.2em; text-transform: uppercase; color: #d9c6c2; }
.scroll-cue { position: absolute; left: 50%; bottom: 36px; transform: translateX(-50%); display: grid; justify-items: center; gap: 10px; font-size: 12px; letter-spacing: 0.4em; text-transform: uppercase; color: var(--muted); z-index: 3; }
.scroll-cue i { width: 1px; height: 46px; background: linear-gradient(var(--red), transparent); animation: cue 1.8s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* IV · raid */
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- imágenes reales del juego ---------- */
.scene-bg { position: absolute; inset: -4%; z-index: 0; will-change: transform; }
.scene-bg img { width: 100%; height: 100%; object-fit: cover; }
.scene-grade { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.scene-grade.fire { background: radial-gradient(ellipse at 50% 50%, transparent 45%, rgba(0, 0, 0, 0.65) 100%), linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 28%, transparent 70%, rgba(0, 0, 0, 0.9)); }
.scene-grade.ice { background: radial-gradient(ellipse at 50% 40%, rgba(40, 140, 200, 0.12), transparent 55%), radial-gradient(ellipse at 50% 50%, transparent 40%, rgba(0, 0, 0, 0.7) 100%), linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 30%, rgba(0, 0, 0, 0.35) 65%, #000 98%); }
.stage.has-bg .scene-bg img { filter: saturate(0.85) contrast(1.05); }
.stage.has-bg .hero-shards { display: none; }
.stage.has-bg .hero-glow { opacity: 0.6; }
.final .scene-grade { background: radial-gradient(ellipse at 50% 55%, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.8) 80%); }
.final .stage > :not(.scene-bg):not(.scene-grade):not(.final-glow) { position: relative; }

/* ---------- bloques ---------- */
.block { position: relative; padding: 140px 0 120px; background: radial-gradient(ellipse at 50% 0%, #1a0204 0%, var(--bg) 55%); }
.wrap { width: min(1240px, calc(100% - 32px)); margin: 0 auto; }
.block-head { text-align: center; max-width: 820px; margin: 0 auto 56px; }
.block-head h2, .block-head h1 { font-size: clamp(36px, 4.6vw, 72px); }
.lead { color: var(--muted); font-size: 21px; margin: 18px 0 0; }
.status { font-size: 13px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; padding: 4px 10px; }
.empty { text-align: center; color: var(--muted); padding: 40px; border: 1px dashed var(--line); }

/* ---------- calendario de eventos ---------- */
.events .lead:empty { display: none; }
.event-feature { margin-bottom: 34px; }
.ev-card {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px; align-items: center;
  padding: clamp(26px, 4vw, 48px); clip-path: var(--cut); overflow: hidden;
  background: linear-gradient(160deg, var(--panel-2), var(--panel)); box-shadow: inset 0 0 0 1px rgba(255, 0, 25, 0.55), 0 0 60px rgba(255, 0, 25, 0.12);
}
.ev-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0.55;
  background: linear-gradient(90deg, var(--panel) 30%, rgba(12, 2, 3, 0.55) 70%, rgba(12, 2, 3, 0.25)), url('/assets/scenes/hero-1280.webp') 70% 35% / cover no-repeat; }
.ev-card > :not(.ev-bg) { position: relative; z-index: 1; }
.ev-label { margin: 0 0 12px; font-size: 14px; font-weight: 700; letter-spacing: 0.4em; text-transform: uppercase; color: var(--gold); }
.ev-title { font-size: clamp(32px, 4.2vw, 64px); text-transform: uppercase; letter-spacing: 0.02em; text-shadow: 0 0 34px rgba(255, 0, 25, 0.55); }
.ev-when { margin: 14px 0 0; font-size: 20px; letter-spacing: 0.04em; color: var(--text); }
.ev-when strong { color: var(--red); font-weight: 700; }
.ev-when small { color: var(--muted); font-size: 15px; }
.ev-desc { margin: 14px 0 0; color: #cdbab6; max-width: 56ch; white-space: pre-line; }
.ev-info .btn { margin-top: 22px; }
.ev-countdown { justify-self: end; text-align: center; }
.cd-label { margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: 0.4em; text-transform: uppercase; color: var(--muted); }
.cd { display: flex; gap: 10px; justify-content: center; }
.cd-seg { display: grid; justify-items: center; gap: 4px; min-width: clamp(70px, 7vw, 104px); padding: 14px 10px 12px; background: rgba(5, 1, 2, 0.82); clip-path: var(--cut); box-shadow: inset 0 0 0 1px var(--line); }
.cd-seg b { font-family: var(--display); font-weight: 900; font-size: clamp(38px, 4.4vw, 68px); line-height: 1; color: #fff; text-shadow: 0 0 26px rgba(255, 0, 25, 0.85); font-variant-numeric: tabular-nums; }
.cd-seg small { font-size: 12px; font-weight: 700; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); }
.ev-card.is-live { box-shadow: inset 0 0 0 1px var(--gold), 0 0 60px rgba(240, 184, 90, 0.18); }
.ev-card.is-live .ev-title { text-shadow: 0 0 34px rgba(240, 184, 90, 0.5); }
.ev-more-title { margin: 0 0 14px; font-family: var(--display); font-size: 22px; font-weight: 700; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.ev-list { display: grid; gap: 12px; }
.ev-tile { display: grid; grid-template-columns: 78px 1fr auto; gap: 18px; align-items: center; padding: 14px 18px; background: var(--panel); clip-path: var(--cut); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05); }
.ev-date { display: grid; justify-items: center; padding: 8px 0; border-right: 1px solid var(--line); }
.ev-date b { font-family: var(--display); font-weight: 900; font-size: 36px; line-height: 1; color: var(--red); text-shadow: 0 0 18px rgba(255, 0, 25, 0.5); }
.ev-date span { font-size: 13px; font-weight: 700; letter-spacing: 0.25em; text-transform: uppercase; color: var(--muted); }
.ev-body h4 { margin: 0; font-family: var(--display); font-size: 22px; }
.ev-body p { margin: 4px 0 0; color: var(--muted); text-transform: none; }
.ev-body p:first-of-type::first-letter { text-transform: uppercase; }
@media (max-width: 900px) {
  .ev-card { grid-template-columns: 1fr; }
  .ev-countdown { justify-self: stretch; }
  .ev-bg { background: linear-gradient(180deg, rgba(12, 2, 3, 0.4), var(--panel) 75%), url('/assets/scenes/hero-1280.webp') 60% 30% / cover no-repeat; }
}
@media (max-width: 640px) {
  .cd { gap: 6px; }
  .cd-seg { min-width: 0; flex: 1; padding: 10px 4px; }
  .ev-tile { grid-template-columns: 60px 1fr; }
  .ev-tile .btn { grid-column: 1 / -1; }
}

/* ---------- la hermandad (miembros desde la Armería; js/guild.js) ---------- */
#s-guild { background: radial-gradient(ellipse at 50% 0%, #1c0404 0%, var(--bg) 55%); }
.guild .lead:empty { display: none; }
.guild-stage { display: grid; gap: 22px; min-height: 60vh; }
.gd-loading { text-align: center; color: var(--muted); letter-spacing: 0.3em; text-transform: uppercase; font-size: 14px; animation: blink 1.6s infinite; }
.gd-sub { margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: 0.4em; text-transform: uppercase; color: var(--muted); }
.gd-title { font-size: clamp(24px, 2.4vw, 32px); margin: 0 0 18px; text-transform: uppercase; }

/* cifras */
.gd-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.gd-stat { display: grid; justify-items: center; gap: 6px; padding: 22px 12px 18px; clip-path: var(--cut);
  background: linear-gradient(170deg, var(--panel-2), var(--panel)); box-shadow: inset 0 0 0 1px var(--line); }
.gd-stat b { font-family: var(--display); font-weight: 900; font-size: clamp(42px, 5vw, 76px); line-height: 1; color: #fff; text-shadow: 0 0 28px rgba(255, 0, 25, 0.85); font-variant-numeric: tabular-nums; }
.gd-stat small { font-size: 13px; font-weight: 700; letter-spacing: 0.32em; text-transform: uppercase; color: var(--muted); text-align: center; }

/* reparto por clases: barra con los colores de clase + leyenda que filtra la lista */
.gd-classes { padding: 22px 24px; clip-path: var(--cut); background: var(--panel); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05); }
.gd-bar { display: flex; gap: 3px; height: 16px; clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 50%, calc(100% - 8px) 100%, 0 100%, 8px 50%); }
.gd-bar i { background: var(--cc); box-shadow: inset 0 -5px 8px rgba(0, 0, 0, 0.35), 0 0 14px var(--cc); }
.gd-legend { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.gd-chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border: 0; cursor: pointer; font-size: 15px; font-weight: 600; letter-spacing: 0.04em;
  background: rgba(255, 255, 255, 0.03); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07); clip-path: var(--cut); transition: background 0.2s, box-shadow 0.2s; }
.gd-chip i { width: 9px; height: 9px; transform: rotate(45deg); background: var(--cc); box-shadow: 0 0 8px var(--cc); }
.gd-chip b { color: var(--cc); }
.gd-chip small { color: var(--muted); font-size: 13px; }
.gd-chip:hover { background: rgba(255, 255, 255, 0.07); }
.gd-chip.is-on { background: rgba(255, 0, 25, 0.12); box-shadow: inset 0 0 0 1px var(--cc); }

.gd-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 22px; align-items: start; }
.gd-panel { padding: 24px; clip-path: var(--cut); background: linear-gradient(170deg, var(--panel-2), var(--panel)); box-shadow: inset 0 0 0 1px var(--line); }

/* avatares (círculo permitido: son retratos) con la inicial en color de clase debajo por si la imagen falla */
.gd-ava { position: relative; flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; overflow: hidden;
  background: radial-gradient(circle at 50% 35%, #2a0a0c, #070102); box-shadow: 0 0 0 2px var(--cc), 0 0 14px color-mix(in srgb, var(--cc) 45%, transparent); }
.gd-ava img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.gd-initial { font-family: var(--display); font-weight: 900; font-size: 20px; color: var(--cc); }
.gd-ava.lg { width: 72px; height: 72px; }
.gd-ava.lg .gd-initial { font-size: 30px; }

/* el mando: marco dorado (Guild Master) */
.gd-command { box-shadow: inset 0 0 0 1px rgba(240, 184, 90, 0.55), 0 0 50px rgba(240, 184, 90, 0.08); }
.gd-command .gd-title em { color: var(--gold); text-shadow: 0 0 24px rgba(240, 184, 90, 0.55); }
.gd-command-list { display: grid; gap: 12px; }
.gd-leader { display: flex; align-items: center; gap: 18px; padding: 16px 18px; clip-path: var(--cut); background: rgba(0, 0, 0, 0.35); box-shadow: inset 0 0 0 1px rgba(240, 184, 90, 0.18); }
.gd-leader.is-gm { padding: 22px 20px; background: radial-gradient(120% 140% at 0% 50%, rgba(240, 184, 90, 0.14), transparent 60%), rgba(0, 0, 0, 0.4);
  box-shadow: inset 0 0 0 1px var(--gold), 0 0 30px rgba(240, 184, 90, 0.15); }
.gd-leader.is-gm .gd-ava { box-shadow: 0 0 0 2px var(--gold), 0 0 0 4px rgba(0, 0, 0, 0.8), 0 0 0 5px var(--cc), 0 0 26px rgba(240, 184, 90, 0.45); }
.gd-leader-info { min-width: 0; }
.gd-rank { display: flex; align-items: center; gap: 6px; margin: 0 0 4px; font-size: 13px; font-weight: 700; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); }
.gd-crown svg { width: 16px; height: 16px; filter: drop-shadow(0 0 6px rgba(240, 184, 90, 0.8)); }
.gd-leader h4 { margin: 0; font-family: var(--display); font-size: clamp(20px, 2vw, 26px); line-height: 1.1; color: var(--cc); text-shadow: 0 0 18px color-mix(in srgb, var(--cc) 35%, transparent); overflow-wrap: anywhere; }
.gd-meta { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.gd-cls { color: var(--cc); }

/* top 10 */
.gd-top-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.gd-top-row { display: grid; grid-template-columns: 34px 46px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 8px 14px 8px 10px; background: rgba(0, 0, 0, 0.32); border-left: 3px solid var(--cc); }
.gd-pos { display: grid; place-items: center; width: 30px; height: 30px; margin-left: 2px; font-family: var(--display); font-weight: 900; font-size: 15px; color: var(--text); position: relative; isolation: isolate; }
.gd-pos::before { content: ''; position: absolute; inset: 3px; z-index: -1; transform: rotate(45deg); background: #1a0406; box-shadow: inset 0 0 0 1px var(--line); }
.gd-top-row:first-child .gd-pos { color: #120800; }
.gd-top-row:first-child .gd-pos::before { background: linear-gradient(135deg, #ffe2a8, var(--gold)); box-shadow: 0 0 14px rgba(240, 184, 90, 0.6); }
.gd-top-name { min-width: 0; display: grid; }
.gd-top-name strong { font-size: 19px; color: var(--cc); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gd-top-name small { color: var(--muted); font-size: 14px; }
.gd-lvl { display: grid; justify-items: center; line-height: 1; font-family: var(--display); font-weight: 900; font-size: 28px; color: #fff; text-shadow: 0 0 16px rgba(255, 0, 25, 0.7); }
.gd-lvl small { font: 700 10px var(--ui); letter-spacing: 0.25em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }

/* lista completa */
.gd-roster-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.gd-count { color: var(--muted); font-size: 15px; letter-spacing: 0.1em; }
.gd-filters { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 0.8fr); gap: 10px; margin-bottom: 14px; }
.gd-filters input[type="search"], .gd-filters select { width: 100%; padding: 10px 12px; font: 500 17px var(--ui); color: var(--text); background: #050102; border: 1px solid #3a0a10; outline: none; }
.gd-filters input:focus, .gd-filters select:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(255, 0, 25, 0.15); }
.gd-range { display: grid; gap: 4px; align-content: center; font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.gd-range b { color: var(--text); }
.gd-range input { width: 100%; accent-color: var(--red); }
.gd-list { max-height: 560px; overflow-y: auto; overscroll-behavior: contain; display: grid; align-content: start; gap: 4px; padding-right: 4px; scrollbar-color: var(--red-deep) transparent; }
.gd-list:focus-visible { outline: 1px solid var(--line); }
.gd-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) 46px; gap: 12px; align-items: center; padding: 8px 12px;
  background: rgba(0, 0, 0, 0.3); border-left: 3px solid var(--cc); }
.gd-row:hover { background: rgba(255, 0, 25, 0.06); }
.gd-row-name { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gd-row-name strong { color: var(--cc); font-size: 18px; }
.gd-row-name span { color: #cdbab6; }
.gd-row-cls { color: var(--cc); font-size: 15px; }
.gd-row-race, .gd-row-rank { color: var(--muted); font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gd-row-rank.is-high { color: var(--gold); }
.gd-row-lvl { justify-self: end; font-family: var(--display); font-weight: 900; font-size: 20px; color: #fff; }
.gd-sentinel { display: block; height: 1px; }
.gd-none { text-align: center; color: var(--muted); padding: 30px; }
.gd-updated { margin: 0; text-align: center; color: var(--muted); font-size: 14px; letter-spacing: 0.1em; }
@media (max-width: 1000px) {
  .gd-grid { grid-template-columns: 1fr; }
  .gd-filters { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .gd-stats { gap: 8px; }
  .gd-stat { padding: 16px 6px 12px; }
  .gd-stat small { font-size: 11px; letter-spacing: 0.18em; }
  .gd-panel, .gd-classes { padding: 18px 14px; }
  .gd-filters { grid-template-columns: 1fr; }
  .gd-row { grid-template-columns: minmax(0, 1fr) auto 40px; }
  .gd-row-race, .gd-row-rank { display: none; }
  .gd-top-row { grid-template-columns: 30px 40px minmax(0, 1fr) auto; gap: 10px; }
  .gd-top-row .gd-ava { width: 40px; height: 40px; }
  .gd-leader { gap: 14px; padding: 14px; }
  .gd-ava.lg { width: 58px; height: 58px; }
}

/* sello «en marcha» (calendario) */
.badge-live { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.16em; background: var(--red); color: #fff; }
.badge-live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: blink 1.2s infinite; }

/* ---------- página «Nuestra historia» (/historia; js/history.js y js/historia-page.js) ---------- */
.page-history { min-height: 100vh; background: radial-gradient(ellipse at 50% 0%, #1f0306 0%, var(--bg) 45%), var(--bg); }
.page-history .block { padding-top: 150px; background: none; }
.history .lead:empty { display: none; }
.page-back { display: flex; justify-content: center; margin-top: 70px; }
/* marcador de «cargando más» al final de lo cargado (también es donde termina la línea) */
.tl-more { position: relative; z-index: 1; display: grid; justify-items: center; gap: 14px; padding-top: 6px; color: var(--muted); }
.tl-more .tl-dot { grid-column: auto; grid-row: auto; transform: rotate(45deg); background: transparent; box-shadow: inset 0 0 0 2px var(--red-deep), 0 0 0 4px var(--bg); animation: tlPulse 1.2s ease-in-out infinite; }
.tl-more p { margin: 0; font-size: 14px; letter-spacing: 0.3em; text-transform: uppercase; }
.tl-banner { margin: 0 auto 26px; max-width: 640px; padding: 10px 16px; text-align: center; font-size: 15px; letter-spacing: 0.06em;
  color: var(--gold); border: 1px dashed rgba(240, 184, 90, 0.55); background: rgba(240, 184, 90, 0.06); }
.tl-track { position: relative; display: grid; gap: 38px; padding: 6px 0 10px; }
/* la línea: tenue de fondo y una capa roja que se llena con el scroll */
.tl-line { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; transform: translateX(-50%); background: rgba(255, 0, 25, 0.13); }
.tl-fill { position: absolute; inset: 0; transform-origin: top; transform: scaleY(0);
  background: linear-gradient(var(--red-deep), var(--red) 30%, var(--red-hot));
  box-shadow: 0 0 12px var(--red), 0 0 34px rgba(255, 0, 25, 0.45); }
.is-static .tl-fill { transform: none; }

/* color de cada tipo de logro (--k): rojo de marca, dorado para los «First» y grandes hitos, épico para récords */
.tl-item { --k: var(--red); position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 76px minmax(0, 1fr); align-items: center; }
.tl-item.kind-boss { --k: var(--red-hot); }
.tl-item.kind-world, .tl-item.kind-server, .tl-item.is-gold { --k: var(--gold); }
.tl-item.kind-record { --k: var(--epic); }
.tl-item.kind-evento { --k: #d9a79f; }
.tl-item.is-left .tl-card { grid-column: 1; grid-row: 1; }
.tl-item.is-left .tl-date { grid-column: 3; grid-row: 1; justify-self: start; text-align: left; }
.tl-item.is-right .tl-card { grid-column: 3; grid-row: 1; }
.tl-item.is-right .tl-date { grid-column: 1; grid-row: 1; justify-self: end; text-align: right; }

/* el punto: un rombo que se enciende al llegar la línea */
.tl-dot { grid-column: 2; grid-row: 1; justify-self: center; position: relative; z-index: 1; width: 18px; height: 18px;
  transform: rotate(45deg) scale(0.55); background: #170305; box-shadow: inset 0 0 0 2px rgba(255, 0, 25, 0.45);
  transition: transform 0.5s cubic-bezier(0.2, 1.6, 0.4, 1), background 0.4s, box-shadow 0.4s; }
.is-on .tl-dot, .is-static .tl-dot { transform: rotate(45deg) scale(1); background: var(--k);
  box-shadow: 0 0 0 4px var(--bg), 0 0 0 5px var(--k), 0 0 22px var(--k); }
.tl-item.is-gold .tl-dot { width: 22px; height: 22px; }
/* conector entre el punto y la tarjeta */
.tl-item::after { content: ''; position: absolute; top: 50%; width: 26px; height: 1px; background: var(--k); opacity: 0; transition: opacity 0.4s 0.2s; }
.tl-item.is-left::after { right: calc(50% + 12px); }
.tl-item.is-right::after { left: calc(50% + 12px); }
.is-on.tl-item::after, .is-static .tl-item::after { opacity: 0.7; }

/* fecha al otro lado del punto */
.tl-date { display: grid; line-height: 1; opacity: 0; transition: opacity 0.6s 0.15s; }
.tl-date b { font-family: var(--display); font-weight: 900; font-size: clamp(34px, 3.4vw, 50px); color: #fff; text-shadow: 0 0 22px color-mix(in srgb, var(--k) 70%, transparent); }
.tl-date span { margin-top: 6px; font-size: 14px; font-weight: 700; letter-spacing: 0.32em; text-transform: uppercase; color: var(--muted); }
.is-on .tl-date, .is-static .tl-date { opacity: 1; }

/* tarjeta: entra desde su lado */
.tl-card { position: relative; clip-path: var(--cut); background: linear-gradient(170deg, var(--panel-2), var(--panel));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), inset 3px 0 0 var(--k); opacity: 0; transition: opacity 0.7s, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.tl-item.is-left .tl-card { transform: translateX(-46px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), inset -3px 0 0 var(--k); }
.tl-item.is-right .tl-card { transform: translateX(46px); }
.is-on .tl-card, .is-static .tl-card { opacity: 1; transform: none !important; }
.tl-item.is-gold .tl-card { background: radial-gradient(120% 90% at 50% 0%, rgba(240, 184, 90, 0.12), transparent 60%), linear-gradient(170deg, var(--panel-2), var(--panel));
  box-shadow: inset 0 0 0 1px rgba(240, 184, 90, 0.55), 0 0 40px rgba(240, 184, 90, 0.1); }
.tl-body { padding: 20px 22px 22px; display: grid; gap: 8px; }
.tl-kind { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: 0.32em; text-transform: uppercase; color: var(--k); }
.tl-star { width: 9px; height: 9px; transform: rotate(45deg); background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.tl-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.tl-head h3 { margin: 0; font-family: var(--display); font-weight: 900; font-size: clamp(20px, 1.9vw, 26px); line-height: 1.15; text-transform: uppercase; color: var(--text); }
.tl-progress { flex: none; padding: 4px 10px 5px; font-family: var(--display); font-weight: 900; font-size: 20px; line-height: 1; color: var(--k);
  text-shadow: 0 0 16px color-mix(in srgb, var(--k) 70%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--k) 55%, transparent);
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%); padding-inline: 14px; }
.tl-rank { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: #e6cfa0; }
.tl-desc { margin: 2px 0 0; color: #cdbab6; font-size: 17px; line-height: 1.45; }
.tl-link { justify-self: start; margin-top: 4px; font-size: 14px; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; color: var(--k); text-decoration: none; }
.tl-link:hover { text-shadow: 0 0 12px var(--k); }

/* imagen o vídeo arriba de la tarjeta */
.tl-img, .tl-video { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: #050102; border: 0; padding: 0; }
.tl-img img, .tl-video img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s, filter 0.4s; filter: saturate(0.85) brightness(0.8); }
.tl-video { cursor: pointer; }
.tl-video:hover img { transform: scale(1.04); filter: saturate(1) brightness(0.95); }
.tl-play { position: absolute; left: 50%; top: 50%; width: 62px; height: 62px; transform: translate(-50%, -50%) rotate(45deg); background: rgba(10, 0, 2, 0.75);
  box-shadow: inset 0 0 0 2px var(--red), 0 0 30px rgba(255, 0, 25, 0.6); transition: box-shadow 0.3s; }
.tl-play::after { content: ''; position: absolute; left: 50%; top: 50%; transform: translate(-40%, -50%) rotate(-45deg); border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent #fff; }
.tl-video:hover .tl-play { box-shadow: inset 0 0 0 2px var(--red-hot), 0 0 44px rgba(255, 0, 25, 0.9); }
.tl-video.is-demo { display: grid; place-items: end center; padding-bottom: 12px; cursor: default;
  background: radial-gradient(circle at 50% 45%, #3a0710, #090102 70%); color: var(--muted); font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; }
.tl-video.is-playing iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* estandarte de era (expansión) que corta la línea */
.tl-era { position: relative; z-index: 1; display: grid; justify-items: center; margin: 8px 0 -6px; opacity: 0; transform: scale(0.85); transition: opacity 0.5s, transform 0.6s cubic-bezier(0.2, 1.4, 0.4, 1); }
.tl-era span { padding: 10px 34px 11px; font-family: var(--display); font-weight: 900; font-size: clamp(16px, 1.5vw, 20px); letter-spacing: 0.18em; text-transform: uppercase; color: #fff;
  background: linear-gradient(180deg, #2a0508, #120203); box-shadow: inset 0 0 0 1px var(--red), 0 0 30px rgba(255, 0, 25, 0.35); text-shadow: 0 0 14px rgba(255, 0, 25, 0.8);
  clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 14px 100%, 0 50%); }
.tl-era.is-on, .is-static .tl-era { opacity: 1; transform: none; }

/* final de la línea: el próximo capítulo */
.tl-end { position: relative; z-index: 1; display: grid; justify-items: center; gap: 16px; padding-top: 6px; opacity: 0; transition: opacity 0.6s; }
.tl-end .tl-dot { grid-column: auto; grid-row: auto; --k: var(--red); transform: rotate(45deg); background: transparent; box-shadow: inset 0 0 0 2px var(--red), 0 0 0 4px var(--bg); animation: tlPulse 1.8s ease-in-out infinite; }
.tl-end p { margin: 0; font-family: var(--display); font-weight: 900; font-size: clamp(20px, 2vw, 28px); text-transform: uppercase; text-align: center; }
.tl-end.is-on, .is-static .tl-end { opacity: 1; }
@keyframes tlPulse { 50% { box-shadow: inset 0 0 0 2px var(--red-hot), 0 0 0 4px var(--bg), 0 0 26px var(--red); } }

@media (max-width: 760px) {
  .tl-line { left: 15px; }
  .tl-track { gap: 28px; }
  .tl-item { grid-template-columns: 30px minmax(0, 1fr); column-gap: 14px; row-gap: 10px; }
  .tl-item .tl-dot { grid-column: 1; grid-row: 1; }
  .tl-item.is-left .tl-date, .tl-item.is-right .tl-date { grid-column: 2; grid-row: 1; justify-self: start; text-align: left; display: flex; align-items: baseline; gap: 10px; }
  .tl-item.is-left .tl-card, .tl-item.is-right .tl-card { grid-column: 2; grid-row: 2; transform: translateX(30px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), inset 3px 0 0 var(--k); }
  .tl-item::after { display: none; }
  .tl-date b { font-size: 30px; }
  .tl-era, .tl-end, .tl-more { justify-items: start; padding-left: 44px; }
  .tl-end .tl-dot, .tl-more .tl-dot { position: absolute; left: 6px; top: 6px; }
  .tl-end p { text-align: left; }
  .tl-body { padding: 16px 16px 18px; }
}
@media (prefers-reduced-motion: reduce) { .tl-end .tl-dot { animation: none; } }

/* final */
.final .stage { display: grid; place-content: center; justify-items: center; text-align: center; padding: 0 16px; background: radial-gradient(ellipse at 50% 60%, #2a0006, #000 70%); }
.final-glow { position: absolute; left: 50%; top: 50%; width: 120vmin; height: 120vmin; transform: translate(-50%, -50%); background: conic-gradient(from 0deg, transparent, rgba(255, 0, 25, 0.25), transparent 30%, rgba(255, 0, 25, 0.2), transparent 60%); border-radius: 50%; filter: blur(30px); animation: spin 30s linear infinite; will-change: transform; }
.final-logo { position: relative; width: min(24vh, 220px); margin-bottom: 30px; filter: drop-shadow(0 0 50px rgba(255, 0, 25, 0.7)); }
.final .kicker, .final-title, .final-actions { position: relative; }
.final-title { font-size: clamp(40px, 6.6vw, 110px); text-transform: uppercase; }
.final-actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-top: 40px; }

/* Botón grande de Discord (final): losa de obsidiana con el borde de lava. */
@property --dc-a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.discord-cta {
  position: relative; isolation: isolate; display: inline-flex; align-items: center; gap: 18px;
  min-width: min(400px, 100%); padding: 14px 36px 14px 16px; text-decoration: none; color: var(--text);
  filter: drop-shadow(0 0 22px rgba(255, 0, 25, 0.35)) drop-shadow(0 14px 30px rgba(0, 0, 0, 0.6));
  transition: transform 0.35s cubic-bezier(.2, .8, .2, 1), filter 0.35s;
}
.discord-cta > .dc-frame, .discord-cta > .dc-plate { position: absolute; z-index: -1; clip-path: var(--cut); pointer-events: none; }

/* borde: un hilo de lava que recorre el contorno */
.dc-frame {
  inset: 0;
  background: conic-gradient(from var(--dc-a), #4a0007 0deg, #ff0019 40deg, #ffb36b 62deg, #fff1d6 70deg, #ff3a2a 82deg, #4a0007 130deg,
    #2a0005 180deg, #4a0007 220deg, #ff0019 260deg, #f0b85a 282deg, #ff0019 300deg, #4a0007 345deg);
  animation: dcLava 7s linear infinite; transition: filter 0.35s;
}
@keyframes dcLava { to { --dc-a: 360deg; } }

/* placa: obsidiana con brasa que sube desde abajo */
.dc-plate {
  inset: 2.5px; overflow: hidden;
  background:
    radial-gradient(130% 120% at 50% 150%, rgba(255, 50, 20, 0.42), rgba(255, 0, 25, 0.08) 45%, transparent 62%),
    linear-gradient(180deg, #1d0608 0%, #0b0203 55%, #050001 100%);
  box-shadow: inset 0 1px 0 rgba(255, 210, 190, 0.08), inset 0 0 0 1px rgba(0, 0, 0, 0.6);
}
.dc-heat { position: absolute; inset: 0; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(90% 110% at 50% 140%, rgba(255, 110, 40, 0.55), rgba(255, 0, 25, 0.18) 50%, transparent 70%); }

/* sello en rombo con filo dorado */
.dc-sigil {
  position: relative; flex: none; width: 50px; height: 50px; display: grid; place-items: center; margin-left: 4px;
}
.dc-sigil::before {
  content: ''; position: absolute; inset: 7px; transform: rotate(45deg);
  background: radial-gradient(circle at 50% 50%, #3a060a, #0a0102 75%);
  box-shadow: inset 0 0 0 1px rgba(240, 184, 90, 0.75), 0 0 18px rgba(255, 0, 25, 0.55), inset 0 0 14px rgba(255, 0, 25, 0.45);
  transition: box-shadow 0.35s;
}
.dc-sigil .ico { position: relative; display: grid; place-items: center; }
.dc-sigil svg { width: 22px; height: 22px; color: #fff; filter: drop-shadow(0 0 6px rgba(255, 70, 50, 0.9)); }
.dc-text { position: relative; display: grid; gap: 5px; text-align: left; }
.dc-text strong {
  font-family: var(--display); font-weight: 900; font-size: clamp(20px, 1.9vw, 26px); line-height: 1; letter-spacing: 0.03em;
  color: #fff; text-shadow: 0 0 22px rgba(255, 0, 25, 0.8), 0 0 2px rgba(255, 120, 100, 0.8);
}
.dc-stats { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 500; letter-spacing: 0.02em; color: #cdb7b2; }
.dc-stats b { color: var(--text); font-weight: 700; }
.dc-dot { width: 7px; height: 7px; border-radius: 50%; background: #45e07a; box-shadow: 0 0 8px rgba(69, 224, 122, 0.9); }

/* al pasar el ratón: la losa se calienta */
.discord-cta:hover { transform: translateY(-3px); filter: drop-shadow(0 0 34px rgba(255, 30, 25, 0.6)) drop-shadow(0 18px 34px rgba(0, 0, 0, 0.6)); }
.discord-cta:hover .dc-frame { filter: brightness(1.35) saturate(1.2); }
.discord-cta:hover .dc-heat { opacity: 1; }
.discord-cta:hover .dc-sigil::before { box-shadow: inset 0 0 0 1px rgba(255, 214, 150, 1), 0 0 26px rgba(255, 40, 25, 0.9), inset 0 0 18px rgba(255, 60, 30, 0.7); }
.discord-cta:active { transform: translateY(0) scale(0.99); }
.discord-cta:focus-visible { outline: none; }
.discord-cta:focus-visible .dc-frame { filter: brightness(1.5); }
.discord-cta:focus-visible::after { content: ''; position: absolute; inset: -6px; clip-path: var(--cut); box-shadow: inset 0 0 0 2px var(--gold); }
@media (max-width: 640px) {
  .discord-cta { gap: 14px; padding: 12px 22px 12px 12px; }
  .dc-sigil { width: 44px; height: 44px; }
  .dc-stats { font-size: 13px; }
  .btn-skew .bs-text { display: none; }
  .btn-skew { padding: 9px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .dc-frame { animation: none; }
}
.footer { padding: 50px 0 80px; border-top: 1px solid var(--line); background: #000; text-align: center; color: var(--muted); }
.footer img { width: 54px; margin: 0 auto 14px; opacity: 0.85; }
.footer p { margin: 4px 0; }
.legal { font-size: 14px; opacity: 0.7; }

/* ---------- modal / panel ---------- */
.form { display: grid; gap: 16px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label.f { display: grid; gap: 6px; font-size: 14px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.f input, .f select, .f textarea {
  width: 100%; padding: 12px 14px; font: 500 18px var(--ui); color: var(--text); letter-spacing: 0.02em;
  background: #050102; border: 1px solid #3a0a10; outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
.f input:focus, .f select:focus, .f textarea:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(255, 0, 25, 0.15); }
.f textarea { min-height: 80px; resize: vertical; }
.err { color: #ff6a6a; min-height: 1.2em; margin: 0; }
.toast { position: fixed; left: 50%; bottom: 70px; z-index: 95; transform: translate(-50%, 20px); padding: 14px 22px; background: #160405; border: 1px solid var(--red); box-shadow: 0 0 30px rgba(255, 0, 25, 0.3); opacity: 0; pointer-events: none; transition: opacity 0.3s, transform 0.3s; font-weight: 600; letter-spacing: 0.04em; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 1000px) {
  .nav { display: none; }
  .account { margin-left: auto; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .brand span { display: none; }
  .row { grid-template-columns: 1fr; }
  .hero-title { font-size: clamp(38px, 11vw, 60px); }
  .account .btn span:not(.avatar) { display: none; }
  .account a.btn:not(.btn-discord) { display: none; }
}
/* Fuera de pantalla, las animaciones infinitas del final se paran (scenes.js pone .is-off). */
.final.is-off .final-glow, .final.is-off .dc-frame { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .grain, .final-glow { animation: none !important; }
}
