/* MU Drakon · capa cinematográfica "fuego y hielo".
   Solo presentación: se carga al final y no cambia datos, formularios ni lógica. */

:root {
  color-scheme: dark;
  --cine-void: #070504;
  --cine-ash: #0f0b08;
  --cine-coal: #18110c;
  --cine-blood: #d9391a;
  --cine-ember: #ff6f24;
  --cine-flame: #ffb347;
  --cine-bone: #f6efe6;
  --cine-smoke: #bdb1a6;
  --cine-ice: #8fd6ff;
  --cine-edge: rgba(255, 170, 110, .15);
  --cine-edge-hot: rgba(255, 130, 50, .6);
  --cine-fire: linear-gradient(95deg, var(--cine-blood), var(--cine-ember) 45%, var(--cine-flame));
  --cine-card: linear-gradient(165deg, #1a120d, #0d0907 72%);
  --cine-width: 1280px;
  --cine-gutter: clamp(18px, 4vw, 48px);

  --bg-0: #070504;
  --bg-1: #0f0b08;
  --bg-2: #18110c;
  --blood: #7a2410;
  --blood-deep: #1e120b;
  --crimson: #c84a1b;
  --crimson-soft: #ff6f24;
  --crimson-bright: #ffb347;
  --tomato: #ff6f24;
  --tomato-soft: #ff9a4d;
  --tomato-bright: #ffb347;
  --gold: #ff8a2a;
  --gold-bright: #ffb347;
  --ember: #c84a1b;
  --ember-soft: #ff9a4d;
  --text: #f6efe6;
  --text-dim: #bdb1a6;
  --text-faint: #978a7f;
  --line: rgba(255, 170, 110, .18);
  --line-soft: rgba(255, 170, 110, .1);
  --line-strong: rgba(255, 130, 50, .55);
  --panel-bg: #120d09;
  --panel-bg-strong: #0b0806;
  --gamer-panel: var(--cine-card);
  --gamer-metal: linear-gradient(180deg, #ffb347, #ff6f24);
  --section-gap: clamp(64px, 8vw, 120px);
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 18px;
}

html { background: var(--cine-void); scroll-behavior: smooth; }
body { background: var(--cine-void); color: var(--cine-smoke); }
::selection { background: var(--cine-ember); color: #150902; }
:focus-visible { outline: 2px solid var(--cine-ice); outline-offset: 3px; }

/* ---------- Fondo ---------- */
.bg-layer { background: var(--cine-void) !important; opacity: 1; filter: none; }
.bg-overlay { background: radial-gradient(ellipse 90% 45% at 50% 100%, #3a150733, transparent 70%); }
.bg-vignette { background: radial-gradient(ellipse at center, transparent 55%, #00000080); }
.mouse-trail-layer { display: none; }
#gfx-progress { height: 2px; background: var(--cine-fire); box-shadow: 0 0 12px var(--cine-ember); }

/* ---------- Barra superior ---------- */
.topbar, .topbar.gfx-scrolled {
  min-height: 72px; border: 0; border-bottom: 1px solid transparent;
  background: linear-gradient(180deg, #070504e6, #07050400);
  box-shadow: none; backdrop-filter: none; transition: background .3s, border-color .3s;
}
.topbar::after { display: none; }
.topbar.gfx-scrolled { background: #070504f0; border-bottom-color: var(--line-soft); }
.page-home .topbar { position: fixed; inset: 0 0 auto; z-index: 900; width: 100%; }
.brand__title { color: var(--cine-bone); font-family: var(--font-display); letter-spacing: .08em; text-transform: uppercase; }
.brand__sub { color: var(--cine-flame); }
.nav-link { color: #d8cdc2; letter-spacing: .08em; font-weight: 600; }
.nav-link:hover, .nav-link.is-active { color: var(--cine-flame); }
.nav-link--rainbow .nav-link__rainbow { background: none; color: inherit; -webkit-text-fill-color: currentColor; animation: none; }
.hamburger { border: 0; background: transparent; box-shadow: none; }
.hamburger__bar { height: 2px; background: var(--cine-bone); border-radius: 2px; box-shadow: none; }
.topbar__actions .btn, .topbar__actions .btn--secondary { border-radius: 999px; }

.rune-menu { display: none; }

.drawer { background: linear-gradient(180deg, #150e0a, #080504); border-color: var(--line); }
.drawer-backdrop { background: #000000c7; }
.drawer__link { border-radius: 10px; color: #dfd5ca; }
.drawer__link:hover { background: #ff6f241f; color: var(--cine-flame); }
.drawer__link-rainbow { background: none; color: inherit; -webkit-text-fill-color: currentColor; animation: none; }
.drawer__section-title { color: var(--cine-ember); }

/* ---------- Botones ---------- */
.btn { border-radius: 999px; letter-spacing: .1em; }
.btn--blade { clip-path: none; animation: none; }
.btn--primary, .btn--primary:hover {
  border: 0; color: #190a02; font-weight: 700;
  background: linear-gradient(95deg, #f04a1c, var(--cine-ember) 40%, var(--cine-flame));
  box-shadow: 0 10px 34px #ff6f2440, inset 0 1px #ffffff40;
  text-shadow: none;
}
.btn--primary:hover { filter: brightness(1.1); box-shadow: 0 12px 44px #ff6f2470, inset 0 1px #ffffff55; }
.btn--secondary, .btn--secondary:hover, .btn--ghost {
  border: 1px solid #f6efe659; background: #070504a6; color: var(--cine-bone);
  box-shadow: none; backdrop-filter: none;
}
.btn--secondary:hover, .btn--ghost:hover { border-color: var(--cine-ice); color: var(--cine-ice); background: #8fd6ff14; }

/* ---------- Home: estructura a pantalla completa ---------- */
body.page-home .main { max-width: none; margin: 0; padding: 0 0 clamp(64px, 8vw, 110px); overflow-x: clip; }
body.page-home .main > section:not(.hero):not(.realm-strip) {
  width: min(var(--cine-width), calc(100% - var(--cine-gutter) * 2));
  margin-inline: auto;
}

/* ---------- Hero ---------- */
.page-home .hero {
  display: flex; justify-content: center; align-items: center; text-align: center;
  min-height: 100vh; min-height: 100svh; padding: 96px 20px 168px;
  border: 0; border-radius: 0; background: #020100; box-shadow: none;
}
.page-home .hero::after {
  z-index: 0;
  background:
    radial-gradient(ellipse 62% 54% at 50% 52%, #050302d9 10%, #05030280 58%, transparent 100%),
    linear-gradient(180deg, #070504cc, transparent 24%, transparent 62%, var(--cine-void) 98%);
}
.page-home .hero__scene { z-index: -1; }
/* heroes-*-cine.webp ya trae el color aplicado: saturate(1.1) contrast(1.06) brightness(.72). */
.page-home .hero__scene img { object-position: center 42%; filter: none; transform-origin: 50% 45%; will-change: transform; }
.hero__corner, .realm-sparks, .realm-light, .page-home .embers { display: none; }
.page-home .hero__content { width: 100%; max-width: 980px; }
.hero__canvas { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; }

.page-home .hero__title {
  display: flex; flex-direction: column; align-items: center; max-width: none; margin: 0;
  letter-spacing: normal; line-height: 1; white-space: normal;
}
.hero__kicker {
  color: var(--cine-bone); font-family: var(--font-display); font-weight: 400;
  font-size: clamp(30px, min(6.4vw, 9vh), 78px); letter-spacing: .06em; text-transform: uppercase;
  text-shadow: 0 2px 26px #000;
}
.hero__name {
  position: relative; isolation: isolate;
  display: block; padding: .04em .08em .1em; font-family: var(--font-display); font-weight: 400;
  font-size: clamp(66px, min(19.5vw, 25vh), 196px); letter-spacing: .02em; line-height: .98; text-transform: uppercase;
  background: linear-gradient(92deg, #e8391a 4%, var(--cine-ember) 24%, var(--cine-flame) 46%, #fbe9d3 62%, var(--cine-ice) 80%, #5ab8f5) 0 0 / 112% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
/* El resplandor (::before) se pinta una sola vez y el fuego (::after) solo cambia de opacidad:
   la animación corre en la GPU, sin repintar un título gigante en cada cuadro. */
.hero__name::before, .hero__name::after {
  content: attr(data-text); content: attr(data-text) / "";
  position: absolute; inset: 0; padding: inherit; pointer-events: none;
  background-image: inherit; background-repeat: no-repeat; background-size: 112% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__name::before { z-index: -1; filter: drop-shadow(0 0 34px #ff6a2059); }
.hero__name::after { background-position: 100% 0; opacity: 0; }
.page-home .hero__eyebrow {
  margin: 4px 0 18px; color: var(--cine-flame); font-size: clamp(12px, 1.2vw, 15px); font-weight: 600;
  letter-spacing: .32em; text-transform: uppercase; text-shadow: 0 2px 10px #000;
}
.page-home .hero__tagline {
  max-width: 56ch; margin: 0 auto 28px; color: #e7dfd6;
  font-size: clamp(15px, 1.35vw, 18px); line-height: 1.6; text-shadow: 0 2px 12px #000;
}
.page-home .hero__cta { justify-content: center; gap: 14px; }
.page-home .hero__cta .btn { min-width: 196px; min-height: 52px; }
.hero__scroll {
  position: absolute; left: 50%; bottom: 112px; z-index: 3; display: grid; place-items: center;
  width: 44px; height: 44px; margin-left: -22px; color: var(--cine-bone); opacity: .75;
}
.hero__scroll:hover { color: var(--cine-flame); opacity: 1; }

/* Estado del servidor: flota al pie del hero */
.page-home .hud-strip {
  position: absolute; top: calc(100vh - 100px); top: calc(100svh - 100px); left: 50%; z-index: 5;
  display: flex; width: min(760px, calc(100% - 32px)); margin: 0; padding: 0; transform: translateX(-50%);
  border: 1px solid var(--line); border-radius: 999px; background: #0a0705d9; backdrop-filter: blur(10px);
  box-shadow: 0 16px 50px #00000080;
}
.page-home .hud-strip__item { flex: 1 1 0; min-width: 0; min-height: 64px; padding: 10px 24px; gap: 12px; background: none; border: 0; }
.page-home .hud-strip__divider { width: 1px; margin-block: 14px; background: var(--line); }
.page-home .hud-strip__icon { width: 34px; height: 34px; flex: none; border: 0; border-radius: 50%; background: #ff6f241f; color: var(--cine-flame); box-shadow: none; }
.page-home .hud-strip__icon svg { width: 18px; height: 18px; }
.page-home .hud-strip__body { min-width: 0; }
.page-home .hud-strip__label { color: var(--cine-smoke); font-size: 10.5px; letter-spacing: .12em; white-space: nowrap; }
.page-home .hud-strip__value { display: block; overflow: hidden; color: var(--cine-bone); font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.hud-strip__value--online { color: #7be3a6 !important; }
.hud-strip__value--offline { color: #ff7a66 !important; }
.hud-strip__value--castle { color: var(--cine-flame) !important; }

.realm-effects-toggle {
  right: auto; left: 18px; bottom: 18px; border-color: var(--line); border-radius: 999px;
  background: #0a0705b3; color: var(--cine-smoke); font-size: 12px;
}
.realm-effects-toggle:hover { border-color: var(--cine-edge-hot); background: #1a110b; color: var(--cine-bone); }

/* ---------- Rates ---------- */
.main > .realm-strip {
  position: relative; margin: 0 0 var(--section-gap) !important; border: 0; border-radius: 0; background: none;
}
.realm-strip__track { max-width: var(--cine-width); margin-inline: auto; padding-inline: var(--cine-gutter); }
.realm-strip__group { gap: 14px; }
.realm-strip__group > span {
  display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 0; padding: 26px 16px 22px; text-align: center;
  border: 1px solid var(--cine-edge); border-radius: 18px; background: var(--cine-card); box-shadow: none;
}
.realm-strip__group > span:nth-child(n) { border: 1px solid var(--cine-edge); }
.realm-strip small { color: var(--cine-smoke); font-size: 12px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; }
.realm-strip strong {
  font-family: var(--font-display); font-size: clamp(38px, 4.6vw, 64px); font-weight: 400; line-height: 1.1;
  background: var(--cine-fire); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.realm-strip em { color: var(--cine-ice); font-size: 13px; font-style: normal; }
.realm-strip__group > span:last-child em, .realm-strip__group > span:nth-child(3) em { color: var(--cine-smoke); }

/* ---------- Títulos de sección ---------- */
.section-head,
.classes-view > .section-head, .events-view > .section-head, .chaos-view > .section-head {
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-height: 0;
  margin-bottom: clamp(24px, 3vw, 40px); padding: 0; border: 0; border-radius: 0; background: none;
}
.section-head--center { align-items: center; text-align: center; }
.section-head h2,
.classes-view > .section-head h2, .events-view > .section-head h2, .chaos-view > .section-head h2 {
  margin: 0; font-family: var(--font-display); font-size: clamp(34px, 5vw, 66px); font-weight: 400;
  line-height: 1.05; letter-spacing: .015em; text-transform: uppercase; text-shadow: none;
  background: linear-gradient(95deg, var(--cine-bone) 46%, var(--cine-flame) 72%, var(--cine-ember));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section-head h2::before, .section-head h2::after { display: none; }
.section-head__hint,
.classes-view > .section-head .section-head__hint, .events-view > .section-head .section-head__hint, .chaos-view > .section-head .section-head__hint {
  order: -1; color: var(--cine-ember); font-size: 12px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase;
}
.section-head__tools { display: contents; }
.ranking-filter { order: 2; color: var(--cine-smoke); }
.ranking-filter__select { border: 1px solid var(--line); border-radius: 999px; background: var(--cine-coal); color: var(--cine-bone); }
.live-dot { background: #7be3a6; box-shadow: 0 0 10px #7be3a6; }

/* ---------- Tarjetas base ---------- */
.stat-card, .benefit-card, .benefit-card--vip, .event-card, .promo-box, .auth-card,
.coin, .my-char, .chaos-card, .podium, .killer-view--podium, .ranking-view {
  border: 1px solid var(--cine-edge); border-radius: 18px; background: var(--cine-card); box-shadow: none;
}
.killer-view--podium, .ranking-view { padding: clamp(24px, 4vw, 48px); }
.killer-view--podium .podium, .ranking-view .podium { border: 0; background: none; }
@media (hover: hover) and (pointer: fine) {
  .stat-card:hover, .benefit-card:hover, .event-card:hover, .promo-box:hover {
    border-color: var(--cine-edge-hot); box-shadow: 0 14px 44px #ff6f2424;
  }
}

/* Estadísticas */
.stat-card__icon { border: 0; background: #ff6f241a; border-radius: 14px; box-shadow: none; }
.stat-card__label { color: var(--cine-smoke); letter-spacing: .06em; }
.stat-card__value {
  font-family: var(--font-display); font-weight: 400;
  background: var(--cine-fire); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Slider y accesos */
.hslider { border: 1px solid var(--cine-edge); border-radius: 18px; box-shadow: none; }
.hslider__title { color: var(--cine-bone); font-family: var(--font-display); font-weight: 400; text-transform: uppercase; text-shadow: 0 2px 20px #000; }
.hslider__eyebrow { color: var(--cine-flame); letter-spacing: .24em; }
.hslider__desc { color: #e0d7cd; }
.hslider__dot.is-active { background: var(--cine-ember); box-shadow: 0 0 10px var(--cine-ember); }
.hslider__nav { border: 1px solid var(--line); border-radius: 50%; background: #0a0705b3; }

/* Acceso */
.auth-view { display: block; }
.auth-card { width: min(520px, 100%); margin-inline: auto; padding: clamp(24px, 4vw, 40px); }
.auth-title { color: var(--cine-bone); font-family: var(--font-display); font-weight: 400; }
.auth-sub, .field__label { color: var(--cine-smoke); }
.auth-tabs { border-bottom: 1px solid var(--line); }
.auth-tab { color: var(--cine-smoke); }
.auth-tab.is-active { color: var(--cine-flame); border-color: var(--cine-ember); }
.field input, .field select, .field textarea {
  min-height: 46px; border: 1px solid var(--line); border-radius: 10px; background: #0a0705; color: var(--cine-bone);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--cine-ice); box-shadow: 0 0 0 3px #8fd6ff24; outline: none; }

/* ---------- Clases ---------- */
.classes-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.class-card, .class-card:first-child {
  position: relative; grid-column: auto; overflow: hidden; min-height: 460px; border: 1px solid var(--cine-edge); border-radius: 18px;
  background:
    radial-gradient(ellipse 80% 46% at 50% 44%, color-mix(in srgb, var(--c-accent, #ff6f24) 34%, transparent), transparent 72%),
    linear-gradient(180deg, #17100b, #070504 88%);
}
.class-card::before { display: none; }
.class-card:focus-within, .class-card:focus { border-color: var(--cine-ice); }
.class-card__art-wrap { height: 320px; background: none; }
.class-card__art { width: 100%; height: 100%; object-fit: contain; object-position: center bottom; filter: drop-shadow(0 18px 22px #000c); }
.class-card__rune { top: 14px; right: 14px; border: 1px solid var(--line); border-radius: 999px; background: #0a0705b3; color: var(--cine-flame); }
.class-card__info { padding: 14px 18px 20px; text-align: left; background: none; }
.class-card__name { color: var(--cine-bone); font-family: var(--font-display); font-size: 20px; font-weight: 400; letter-spacing: .03em; text-transform: uppercase; }
.class-card__role { color: var(--cine-flame); font-size: 12px; letter-spacing: .04em; text-transform: none; }
.class-card__desc { color: #d8cec3; }
.class-card__stats li span { color: var(--cine-smoke); }
.class-card__stats li b { color: var(--cine-flame); }
@media (hover: hover) and (pointer: fine) {
  .class-card:hover { border-color: color-mix(in srgb, var(--c-accent, #ff6f24) 70%, transparent); box-shadow: 0 18px 54px color-mix(in srgb, var(--c-accent, #ff6f24) 22%, transparent); }
}

/* ---------- Guardián y ranking ---------- */
.killer-view--podium {
  background: radial-gradient(ellipse 50% 60% at 50% 60%, #ff6f2426, transparent 72%), var(--cine-card);
}
.podium__name { color: var(--cine-bone); font-family: var(--font-display); font-weight: 400; }
.podium__class { color: var(--cine-smoke); }
.podium__badge { border: 0; border-radius: 999px; background: var(--cine-fire); color: #190a02; font-weight: 700; box-shadow: 0 8px 26px #ff6f2440; }
.podium__crown { color: var(--cine-flame); }
.podium__pedestal { background: radial-gradient(ellipse at center, #ff6f2466, transparent 70%); border: 0; box-shadow: none; }
.podium__empty-icon { color: #6d5c4f; }
.podium-info { color: var(--cine-smoke); }

.rank-tabs { display: flex; flex-wrap: wrap; gap: 8px; border: 0; background: none; }
.rank-tab { min-height: 40px; min-width: 52px; border: 1px solid var(--line); border-radius: 999px; background: #0a0705; color: var(--cine-smoke); clip-path: none; }
.rank-tab span { transform: none; }
.rank-tab:hover { border-color: var(--cine-edge-hot); color: var(--cine-bone); }
.rank-tab.is-active { border-color: transparent; background: var(--cine-fire); color: #190a02; font-weight: 700; }
.table-wrap { border: 1px solid var(--cine-edge); border-radius: 14px; background: #0a0705; }
.data-table { background: none; color: #dfd5ca; }
.data-table thead th { border-color: var(--line); background: #150e0a; color: var(--cine-smoke); letter-spacing: .1em; }
.data-table td { border-color: var(--line-soft); }
.data-table tbody tr { background: none; }
.data-table tbody tr:nth-child(even) { background: #ffffff05; }
.data-table tbody tr:hover { background: #ff6f2414; }
.char-link { color: var(--cine-bone); font-weight: 600; }
.char-link:hover { color: var(--cine-flame); }
.status-dot--online { background: #7be3a6; box-shadow: 0 0 8px #7be3a6; }
.status-dot--offline { background: #5e524a; box-shadow: none; }

/* ---------- Beneficios ---------- */
.benefit-card--vip {
  border-color: #8fd6ff4d;
  background: radial-gradient(ellipse 70% 50% at 100% 0, #8fd6ff1f, transparent 70%), var(--cine-card);
}
.benefit-card__head { border-color: var(--line); }
.benefit-card__title { color: var(--cine-bone); font-family: var(--font-display); font-weight: 400; }
.benefit-subtitle { color: var(--cine-flame); }
.benefit-list li { color: #dfd5ca; border-color: var(--line-soft); }

/* ---------- Eventos y Chaos ---------- */
.event-card__title { color: var(--cine-bone); font-family: var(--font-display); font-weight: 400; }
.event-card__cadence { border: 0; border-radius: 999px; background: #ff6f241f; color: var(--cine-flame); }
.event-card__toggle { border: 1px solid var(--line); border-radius: 999px; background: none; color: var(--cine-bone); }
.event-card__toggle:hover { border-color: var(--cine-edge-hot); color: var(--cine-flame); }
.event-card__maps li, .event-card__times li { color: #dfd5ca; }
.events-grid__state, .chaos-feed__empty, .state-cell { color: var(--cine-smoke); }
.chaos-more__btn { border: 1px solid var(--line); border-radius: 999px; background: #0a0705; color: var(--cine-bone); }

/* ---------- Galería y descarga ---------- */
.gallery__viewport { border: 1px solid var(--cine-edge); border-radius: 18px; background: #0a0705; }
.gallery__nav { border: 1px solid var(--line); border-radius: 50%; background: #0a0705cc; color: var(--cine-bone); }
.gallery__dot.is-active, .gallery__dots .is-active { background: var(--cine-ember); }
/* La API usa el nombre del archivo como leyenda ("1", "20261102-..."): no aporta nada al visitante. */
.gallery__slide-caption { display: none; }

.download-card {
  min-height: 460px; border: 1px solid var(--cine-edge); border-radius: 22px; box-shadow: none;
  background: linear-gradient(90deg, #070504f5 8%, #070504b3 48%, #07050426), url("img/drakon/gamer/drakon-knight.webp") center / cover;
}
.download-card__eyebrow { color: var(--cine-ember); letter-spacing: .24em; }
.download-card__title {
  font-family: var(--font-display); font-size: clamp(34px, 5vw, 66px); font-weight: 400; line-height: 1.05; text-transform: uppercase;
  background: linear-gradient(95deg, var(--cine-bone) 46%, var(--cine-flame) 80%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.download-card__desc { color: #e7dfd6; }
.download-card__art { display: none; }

/* ---------- Pie ---------- */
.footer { border-top: 1px solid var(--line); background: linear-gradient(180deg, #0f0a07, #050302); }
.footer__rune-cluster, .footer__rune { color: var(--cine-flame); }
.footer__rune-line { background: linear-gradient(90deg, transparent, var(--cine-ember), transparent); }
.footer__brand-title { color: var(--cine-bone); font-family: var(--font-display); }
.footer__brand-sub, .footer__copy { color: var(--cine-smoke); }
.footer__nav a { color: #dfd5ca; }
.footer__nav a:hover { color: var(--cine-flame); }

/* ---------- Modales ---------- */
.dl-modal__card, .chaos-modal__card, .event-editor__card, .lightbox__figure { border-color: var(--line); background: #120d09; }

/* ---------- Páginas internas ---------- */
.cs-hero, .pf-hero, .mk-head, .ws-head {
  border: 1px solid var(--cine-edge); border-radius: 18px; box-shadow: none;
}
.cs-hero { background-image: linear-gradient(90deg, #070504f0, #070504a6 55%, #0705044d), var(--realm-fortress); }
.pf-hero { background-image: linear-gradient(90deg, #070504f5, #070504c9), var(--realm-heroes); }
.mk-head, .ws-head { background: var(--cine-card); }
.mk-card, .ws-item, .lm-card, .mk-item, .cs-schedule { border-color: var(--cine-edge); border-radius: 14px; background: var(--cine-card); }
.page-svfast .bg-layer { background-image: none !important; }
.page-minijuegos .arcade-heading { border-color: var(--cine-edge); border-radius: 18px; background: linear-gradient(90deg, #070504f5, #070504bc 65%, #0705044d), var(--realm-fortress) center 45% / cover; }
.page-minijuegos .arcade-heading h1 { color: var(--cine-flame); }
.page-minijuegos .arcade-heading p { color: var(--cine-smoke); }

/* ---------- Ajustes de composición ---------- */
.page-home .hero__eyebrow { width: fit-content; max-width: 100%; margin-inline: auto; }
.page-home .hero__scene::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 42% 62% at 0 62%, #ff5a1a4d, transparent 72%),
    radial-gradient(ellipse 42% 62% at 100% 36%, #55b4ff33, transparent 72%);
}
.section-head h2 { display: block; padding: 0; }
.section-head { position: relative; }
.section-head .gamer-rail-tools { position: absolute; right: 0; bottom: 4px; margin: 0; }
.gamer-rail-button { border: 1px solid var(--line); border-radius: 50%; background: #0a0705; color: var(--cine-bone); }
.gamer-rail-button:hover { border-color: var(--cine-edge-hot); background: #2a170c; color: var(--cine-flame); }

.hslider__dots { gap: 8px; }
.hslider__dot, .hslider__dot.is-active { width: 28px; height: 6px; min-width: 0; min-height: 0; padding: 0; border: 0; border-radius: 999px; transform: none; }
.hslider__dot { background: #f6efe640; box-shadow: none; }
.hslider__dot.is-active { background: var(--cine-ember); box-shadow: 0 0 10px var(--cine-ember); }

.auth-view { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 16px; align-items: stretch; }
.auth-card { width: 100%; margin: 0; }
.auth-side {
  display: flex; flex-direction: column; justify-content: flex-end; min-height: 100%; padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--cine-edge); border-radius: 18px; box-shadow: none;
  background: linear-gradient(0deg, #070504f7 22%, #07050499 62%, #07050433), var(--realm-heroes) center / cover;
}
.auth-side__title { color: var(--cine-bone); font-family: var(--font-display); font-size: clamp(26px, 3vw, 38px); font-weight: 400; }
.auth-side__text { color: #e7dfd6; }
.auth-side__features li { color: #e7dfd6; }

.class-card, .class-card:first-child, .class-card:nth-child(n+5), .class-card:last-child { grid-column: auto; height: auto; min-height: 0; }
.class-card__info { min-height: 92px; }

.rank-tabs { width: 100%; overflow: visible; padding: 0; }
.rank-tab, .rank-tab span { font-style: normal; transform: none; }
.rank-tab::before, .rank-tab::after { display: none; }
.ranking-view { display: block; }
.podium .podium__name { color: var(--cine-bone); }

.footer__inner { align-items: center; gap: 28px; }
.footer__brand { flex: none; }
.footer__brand-title { white-space: nowrap; }
.footer__nav { flex: 1 1 auto; justify-content: center; flex-wrap: wrap; }
.footer__copy { flex: none; white-space: nowrap; }

.benefit-card__badge { background: none; mix-blend-mode: screen; }

@media (min-width: 1101px) {
  .ranking-view {
    display: grid; grid-template-columns: 300px minmax(0, 1fr); column-gap: 28px; align-items: start;
  }
  .ranking-view > .section-head, .ranking-view > .rank-tabs { grid-column: 1 / -1; margin-bottom: 18px; }
  .ranking-view > .section-head { margin-bottom: 18px; }
  .podium-wrap { position: sticky; top: 92px; }
  .ranking-view .podium__art-wrap { height: 300px; }
  .ranking-view .podium__art { max-height: 280px; }
}
@media (max-width: 1100px) {
  .ranking-view .podium__art-wrap { height: 250px; }
  .ranking-view .podium__art { max-height: 230px; }
  .footer__inner { flex-direction: column; text-align: center; }
  .footer__copy { white-space: normal; }
}
@media (max-width: 900px) {
  .auth-view { grid-template-columns: 1fr; }
  .auth-side { order: -1; min-height: 240px; }
}
@media (max-width: 640px) {
  .section-head .gamer-rail-tools { display: none; }
}

/* ---------- Restos de la paleta azul (lista obtenida escaneando cada página) ---------- */
body :is(
  .ws-sidebar, .ws-wallet, .ws-empty, .ws-modal__card, .ws-cfg__chk, .ws-cfg__price, .ws-cfg__preview, .cart-dialog, .shop-image-dialog,
  .cs-stats, .cs-panel, .cs-timer-frame, .cs-step, .cs-empty, .cs-hero__mark, .pf-state, .mk-tabs, .mk-empty, .mk-modal__card, .svf-card,
  .arcade-game, .arcade-game__head, .mu-arcade-intro, .mu-arcade-hero, .mu-arcade__stat, .arcade-loadout, .bj-game,
  .settings-dialog, .gallery, .chaos-feed__empty
) { background: var(--cine-card); border-color: var(--cine-edge); }
body :is(.mu-arcade__attr, .mu-arcade__ctrl, .bj-chip, .mu-arcade__arena, .bj-table, .arcade-sigil, .bj-score, .bj-card, .arcade-details, .arcade-game__foot, .bj-rules, .bj-footer, .cs-hero__mark-empty) { border-color: var(--line); }
body :is(.mu-arcade__attr, .mu-arcade__ctrl) { background: #1d130c; color: var(--cine-bone); }
body th, body .cs-schedule th { background: #150e0a; }

body :is(.hud-strip) { border-color: var(--line); background: #0a0705d9; }
body .hud-strip__icon { border-color: transparent; background: #ff6f241f; color: var(--cine-flame); }
body :is(.hud-strip__label, .ws-head__hint, .mk-head__hint, .cs-hero__subtitle, .pf-state, .ws-empty, .mk-empty, .ws-sidebar__title, .cart-empty, .svf-field__label, .arcade-eyebrow, .arcade-disclaimer, .arcade-footer, .mu-arcade__hint, .arcade-upgrade-help, .bj-control-help, .bj-table-rule, .download-message) { color: var(--cine-smoke); }
.page-minijuegos :is(h2, h3, strong, b, dd, summary, legend, .arcade-game__head a) { color: var(--cine-bone); }
.page-minijuegos :is(p, small, dt, label) { color: var(--cine-smoke); }
html:has(.page-minijuegos), body.page-minijuegos, .page-minijuegos .main { background: var(--cine-void); }
.page-minijuegos .arcade-quality select { border-color: var(--line); background: #0a0705; color: var(--cine-bone); }
.page-minijuegos .mu-arcade__xpbar { background: #1d130c; }
.page-minijuegos .mu-arcade__xpfill { background: var(--cine-fire); }

body :is(.user-area, .pf-back, .svf-back, .cart-open, .download-add, .download-cancel, .news-close, .chaos-modal__clear) {
  border: 1px solid var(--line); border-radius: 999px; background: #0a0705; color: var(--cine-bone);
}
body :is(.pf-back, .svf-back, .cart-open, .download-add, .download-cancel, .news-close):hover { border-color: var(--cine-edge-hot); background: #2a170c; color: var(--cine-flame); }

body input:not([type="checkbox"], [type="radio"], [type="range"], [type="color"]), body select, body textarea {
  border-color: var(--line); background: #0a0705; color: var(--cine-bone);
}
body input:not([type="checkbox"], [type="radio"], [type="range"], [type="color"]):focus, body select:focus, body textarea:focus {
  border-color: var(--cine-ice); box-shadow: 0 0 0 3px #8fd6ff24; outline: none;
}
body option { background: #120d09; color: var(--cine-bone); }
body label { color: var(--cine-smoke); }

body .drakon-credit { border-color: var(--line); background: #0a0705e6; }
body .mu-tooltip { border-color: var(--line-strong); }
body .drakon-route-transition__veil { background: #070504f5; }
.drakon-route-transition { background: #070504f5; }
.benefit-val { color: var(--cine-flame); }
.benefit-card--free .benefit-val, .benefit-card--free .benefit-card__title { color: var(--cine-ice); -webkit-text-fill-color: currentColor; background: none; }
.benefit-card--vip .benefit-card__title { color: var(--cine-flame); -webkit-text-fill-color: currentColor; background: none; }
.benefit-card { border-color: var(--cine-edge); }
.benefit-card--vip { border-color: #ff823266; background: radial-gradient(ellipse 70% 50% at 100% 0, #ff6f2424, transparent 70%), var(--cine-card); }
.ws-cat.is-active, .ws-cats .is-active, .mk-tab.is-active { background: #ff6f2426; border-color: var(--cine-edge-hot); color: var(--cine-flame); }

/* El menú nunca parte el logo ni los enlaces en dos líneas. */
.brand__title, .brand__sub, .nav-link, .nav-link__rainbow { white-space: nowrap; }
.topbar__nav { gap: clamp(2px, .5vw, 10px); min-width: 0; }
.topbar__nav .nav-link { padding-inline: clamp(6px, .75vw, 14px); font-size: clamp(11.5px, .9vw, 13px); }

/* ---------- Noticias ---------- */
body:not(:has(.news-section:not([hidden]))) [data-nav-news] { display: none; }
.news-section { margin: 0 0 var(--section-gap); padding: 0; border: 0; border-radius: 0; background: none; color: var(--cine-smoke); }
.news-section > .section-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 8px 18px; margin-bottom: clamp(24px, 3vw, 40px); }
.news-section > .section-head .section-head__hint { grid-column: 1; }
.news-section > .section-head h2 { grid-column: 1; }
.news-section > .section-head [data-news-create] { grid-column: 2; grid-row: 1 / span 2; }
.news-section [data-news-status]:empty { display: none; }
.news-section [data-news-status] { color: var(--cine-smoke); }

.news-grid { gap: 16px; align-items: stretch; }
.news-card {
  display: flex; flex-direction: column; min-width: 0; overflow: hidden;
  border: 1px solid var(--cine-edge); border-radius: 18px; background: var(--cine-card);
}
.news-card > img { height: auto; aspect-ratio: 16 / 9; }
.news-card:not(:has(> img)) { background: radial-gradient(ellipse 80% 60% at 0 0, #ff6f2426, transparent 70%), var(--cine-card); }
.news-card-body { display: flex; flex: 1; flex-direction: column; padding: 20px 22px 22px; }
.news-card small { color: var(--cine-flame); font-size: 13px; letter-spacing: .04em; }
.news-card h3 { margin: 8px 0 10px; color: var(--cine-bone); font: 400 clamp(21px, 2vw, 25px) / 1.25 var(--font-display); }
.news-card p { display: -webkit-box; margin: 0 0 18px; overflow: hidden; color: var(--cine-smoke); font-size: 15px; line-height: 1.6; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.news-card .news-actions { margin-top: auto; }
@media (hover: hover) and (pointer: fine) {
  .news-card:hover { border-color: var(--cine-edge-hot); box-shadow: 0 14px 44px #ff6f2424; }
}
/* La noticia más reciente (y una segunda que quede sola) ocupa todo el ancho. */
@media (min-width: 900px) {
  .news-card:first-child, .news-card:nth-child(2):last-child { grid-column: 1 / -1; flex-direction: row; }
  .news-card:first-child > img, .news-card:nth-child(2):last-child > img { width: 58%; flex: none; aspect-ratio: auto; min-height: 340px; }
  .news-card:first-child .news-card-body, .news-card:nth-child(2):last-child .news-card-body { justify-content: center; padding: clamp(28px, 4vw, 48px); }
  .news-card:first-child h3, .news-card:nth-child(2):last-child h3 { font-size: clamp(28px, 3.2vw, 42px); }
}
.news-grid:not(.is-expanded) .news-card:nth-child(n + 5) { display: none; }
.news-more { display: flex; justify-content: center; margin-top: 22px; }
.news-more[hidden] { display: none; }

.news-section button, .news-dialog button {
  min-height: 42px; padding: 9px 18px; border: 1px solid var(--line); border-radius: 999px;
  background: #0a0705; color: var(--cine-bone); font-weight: 600; letter-spacing: .03em;
}
.news-section button:hover, .news-dialog button:hover { border-color: var(--cine-edge-hot); background: #2a170c; color: var(--cine-flame); }
.news-card .news-actions button:first-child, .news-section [data-news-create], .news-editor button[type="submit"] {
  border: 0; background: linear-gradient(95deg, #f04a1c, var(--cine-ember) 40%, var(--cine-flame)); color: #190a02; font-weight: 700;
}
.news-card .news-actions button:first-child:hover, .news-section [data-news-create]:hover, .news-editor button[type="submit"]:hover {
  background: linear-gradient(95deg, #f04a1c, var(--cine-ember) 40%, var(--cine-flame)); color: #190a02; filter: brightness(1.1);
}
.news-card .news-actions button:nth-child(3):hover { border-color: #ff7a66; background: #3a120c; color: #ff9b8b; }
.news-section :focus-visible, .news-dialog :focus-visible { outline: 2px solid var(--cine-ice); outline-offset: 3px; }

.news-dialog { border: 1px solid var(--line); border-radius: 20px; background: #120d09; color: #e7dfd6; box-shadow: 0 30px 100px #000c; }
.news-dialog::backdrop { background: #030201e0; backdrop-filter: blur(6px); }
.news-dialog .news-close { display: grid; place-items: center; width: 42px; height: 42px; min-height: 0; padding: 0; border-radius: 50%; background: #0a0705d9; font-size: 22px; line-height: 1; }
.news-article > h2, .news-editor > h2 { color: var(--cine-bone); font-family: var(--font-display); font-weight: 400; }
.news-article > h2 { margin: 18px 0 8px; padding-right: 0; font-size: clamp(30px, 4vw, 46px); line-height: 1.12; }
.news-article-banner { display: block; width: calc(100% + 72px); max-width: none; max-height: 400px; margin: -36px -36px 0; border-radius: 0; }
.news-date { margin: 0 0 22px; color: var(--cine-flame); }
.news-body { color: #e7dfd6; font-size: 17px; line-height: 1.75; }
.news-body h2, .news-content h2, .news-body h4, .news-content h4 { color: var(--cine-bone); font-family: var(--font-display); font-weight: 400; }
.news-body h3, .news-content h3 { color: var(--cine-flame); font-family: var(--font-display); font-weight: 400; }
.news-body a, .news-content a { color: var(--cine-ice); }
.news-body blockquote, .news-content blockquote { border-left-color: var(--cine-ember); border-radius: 0 10px 10px 0; background: #1d130c; }
.news-body th, .news-content th { background: #1d130c; color: var(--cine-bone); }
.news-body td, .news-body th, .news-content td, .news-content th { border-color: var(--line); }
.news-body pre, .news-content pre { border-radius: 10px; background: #0a0705; }

.news-editor label { color: var(--cine-smoke); }
.news-editor input, .news-editor textarea, .news-editor select { border-color: var(--line); border-radius: 10px; background: #0a0705; color: var(--cine-bone); }
.news-editor input[type="checkbox"] { accent-color: var(--cine-ember); }
.news-toolbar { border-color: var(--line); border-radius: 12px; background: #1d130c; }
.news-toolbar button { min-height: 36px; padding: 6px 12px; font-size: 13px; }
.news-toolbar button[aria-pressed="true"] { border-color: transparent; background: var(--cine-ember); color: #190a02; }
.news-content, .news-source { border-color: var(--line); border-radius: 12px; background: #0a0705; color: #e7dfd6; }
.news-editor-message { color: var(--cine-flame); }
.news-editor-message:empty { display: none; }

/* Barra de herramientas del editor */
.news-toolbar { position: sticky; top: -28px; z-index: 4; gap: 8px 16px; padding: 10px 12px; }
.news-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.news-toolbar select { min-height: 36px; padding: 6px 10px; font-size: 13px; }
.news-toolbar button svg { display: block; }
.news-toolbar button[aria-pressed="true"], .news-context button[aria-pressed="true"] { border-color: transparent; background: var(--cine-ember); color: #190a02; }
.news-dialog button:disabled { cursor: not-allowed; opacity: .4; }
.news-menu { position: relative; }
.news-pop { position: absolute; top: calc(100% + 6px); left: 0; z-index: 6; display: flex; flex-wrap: wrap; gap: 6px; width: 188px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: #1d130c; box-shadow: 0 18px 50px #000c; }
.news-pop[hidden] { display: none; }
.news-dialog button.news-swatch { width: 30px; height: 30px; min-height: 0; padding: 0; border: 1px solid #ffffff33; border-radius: 50%; background: var(--sw); }
.news-dialog button.news-swatch:hover { border-color: var(--cine-bone); background: var(--sw); }
.news-dialog button.news-swatch-clear { width: 100%; min-height: 30px; padding: 4px 10px; font-size: 12px; }
.news-pop--symbols { width: 212px; }
.news-pop--symbols button { width: 38px; min-height: 36px; padding: 0; font-size: 17px; }
.news-pop--grid { width: auto; flex-direction: column; flex-wrap: nowrap; color: var(--cine-smoke); font-size: 12px; }
.news-table-grid { display: grid; grid-template-columns: repeat(6, 22px); gap: 3px; }
.news-dialog .news-table-grid button { width: 22px; height: 22px; min-height: 0; padding: 0; border-radius: 4px; background: #0a0705; }
.news-dialog .news-table-grid button.is-on { border-color: transparent; background: var(--cine-ember); }
.news-context, .news-draft { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: #15100c; color: var(--cine-smoke); font-size: 13px; }
.news-context[hidden], .news-draft[hidden] { display: none; }
.news-context button, .news-draft button { min-height: 32px; padding: 4px 12px; font-size: 13px; }
.news-context__sep { width: 1px; height: 20px; background: var(--line); }
.news-draft { border-color: #ffb34766; color: var(--cine-bone); }
.news-draft span { margin-right: auto; }
.news-count { margin: -8px 0 0; color: var(--cine-smoke); font-size: 12.5px; text-align: right; }
.news-content.is-empty { position: relative; }
.news-content.is-empty::before { content: attr(data-placeholder); position: absolute; color: #8b879f; pointer-events: none; }
.news-content.is-drop { outline: 2px dashed var(--cine-ice); outline-offset: 3px; }
.news-content img { cursor: pointer; }
.news-content img.is-selected { outline: 3px solid var(--cine-ice); outline-offset: 2px; }
.news-dialog.is-full { inset: 0; width: 100vw; height: 100vh; height: 100dvh; max-height: none; margin: 0; border: 0; border-radius: 0; }
.news-dialog.is-full .news-content, .news-dialog.is-full .news-source { height: calc(100vh - 220px); max-height: none; }

/* Formatos de la noticia: iguales en el editor y al leerla */
:is(.news-body, .news-content) .nf-left { text-align: left; }
:is(.news-body, .news-content) .nf-center { text-align: center; }
:is(.news-body, .news-content) .nf-right { text-align: right; }
:is(.news-body, .news-content) .nf-justify { text-align: justify; }
:is(.news-body, .news-content) .nf-c-fire { color: #ff6f24; }
:is(.news-body, .news-content) .nf-c-gold { color: #ffb347; }
:is(.news-body, .news-content) .nf-c-ice { color: #8fd6ff; }
:is(.news-body, .news-content) .nf-c-green { color: #7be3a6; }
:is(.news-body, .news-content) .nf-c-red { color: #ff7a66; }
:is(.news-body, .news-content) .nf-c-violet { color: #c7a6ff; }
:is(.news-body, .news-content) .nf-c-white { color: #fff; }
:is(.news-body, .news-content) .nf-c-gray { color: #a8a4b8; }
:is(.news-body, .news-content) :is(.nf-h-fire, .nf-h-gold, .nf-h-ice, .nf-h-green, .nf-h-red) { padding: .05em .25em; border-radius: 4px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
:is(.news-body, .news-content) .nf-h-fire { background: #ff6f2455; }
:is(.news-body, .news-content) .nf-h-gold { background: #ffb34755; }
:is(.news-body, .news-content) .nf-h-ice { background: #8fd6ff44; }
:is(.news-body, .news-content) .nf-h-green { background: #7be3a644; }
:is(.news-body, .news-content) .nf-h-red { background: #ff7a6655; }
:is(.news-body, .news-content) .nf-s-sm { font-size: .85em; }
:is(.news-body, .news-content) .nf-s-lg { font-size: 1.3em; }
:is(.news-body, .news-content) .nf-s-xl { font-size: 1.7em; line-height: 1.3; }
:is(.news-body, .news-content) .nf-box { margin: 20px 0; padding: 14px 18px; border-left: 4px solid var(--box, var(--cine-ember)); border-radius: 0 12px 12px 0; background: color-mix(in srgb, var(--box, #ff6f24) 12%, #120d09); }
:is(.news-body, .news-content) .nf-box::before { display: block; margin-bottom: 6px; color: var(--box, var(--cine-ember)); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
:is(.news-body, .news-content) .nf-box > :first-child { margin-top: 0; }
:is(.news-body, .news-content) .nf-box > :last-child { margin-bottom: 0; }
:is(.news-body, .news-content) .nf-box-info { --box: #8fd6ff; }
:is(.news-body, .news-content) .nf-box-info::before { content: "Información"; }
:is(.news-body, .news-content) .nf-box-warn { --box: #ff7a66; }
:is(.news-body, .news-content) .nf-box-warn::before { content: "Aviso"; }
:is(.news-body, .news-content) .nf-box-event { --box: #ff6f24; }
:is(.news-body, .news-content) .nf-box-event::before { content: "Evento"; }
:is(.news-body, .news-content) .nf-box-reward { --box: #ffb347; }
:is(.news-body, .news-content) .nf-box-reward::before { content: "Premio"; }
:is(.news-body, .news-content) a.nf-btn { display: inline-block; margin: 4px 0; padding: 10px 24px; border-radius: 999px; background: linear-gradient(95deg, #f04a1c, var(--cine-ember) 40%, var(--cine-flame)); color: #190a02; font-weight: 700; line-height: 1.3; text-decoration: none; }
:is(.news-body, .news-content) a.nf-btn:hover { filter: brightness(1.1); }
:is(.news-body, .news-content) hr { height: 1px; margin: 24px 0; border: 0; background: linear-gradient(90deg, transparent, var(--cine-ember), transparent); }
:is(.news-body, .news-content) img.nf-img-sm { width: 30%; }
:is(.news-body, .news-content) img.nf-img-md { width: 55%; }
:is(.news-body, .news-content) img.nf-img-lg { width: 100%; }
:is(.news-body, .news-content) img.nf-img-left { float: left; margin: 4px 18px 10px 0; }
:is(.news-body, .news-content) img.nf-img-right { float: right; margin: 4px 0 10px 18px; }
:is(.news-body, .news-content) img.nf-img-center { display: block; margin: 10px auto; }
.news-body::after, .news-content::after { content: ""; display: block; clear: both; }
@media (max-width: 600px) {
  .news-toolbar { position: relative; top: auto; }
  .news-menu { position: static; }
  .news-pop, .news-pop--symbols { top: auto; left: 8px; right: 8px; width: auto; margin-top: 6px; }
  :is(.news-body, .news-content) img:is(.nf-img-left, .nf-img-right) { float: none; display: block; margin: 10px auto; }
  :is(.news-body, .news-content) img:is(.nf-img-sm, .nf-img-md) { width: 70%; }
}
@media (max-width: 600px) {
  .news-section > .section-head { grid-template-columns: minmax(0, 1fr); }
  .news-section > .section-head [data-news-create] { grid-column: 1; grid-row: auto; justify-self: start; }
  .news-article-banner { width: calc(100% + 40px); margin: -20px -20px 0; }
  .news-dialog .news-close { right: 10px; top: 10px; }
}

/* ---------- Movimiento ---------- */
@media (prefers-reduced-motion: no-preference) {
  html:not(.drakon-effects-off) .page-home .hero.realm-in-view .hero__scene img { animation: cine-drift 26s ease-in-out infinite alternate; }
  html:not(.drakon-effects-off) .hero__name::after { will-change: opacity; animation: cine-burn 9s ease-in-out infinite alternate; }
  html:not(.drakon-effects-off) .hero__scroll { animation: cine-nudge 2.4s ease-in-out infinite; }
  .class-card { transition: border-color .25s, box-shadow .25s; }
}
html.realm-paused .hero__name::after, html.realm-paused .hero__scene img, html.realm-paused .hero__scroll { animation-play-state: paused !important; }
@keyframes cine-drift { from { transform: scale(1.02); } to { transform: scale(1.1) translateY(-1.2%); } }
@keyframes cine-burn { from { opacity: 0; } to { opacity: 1; } }
@keyframes cine-nudge { 50% { transform: translateY(7px); } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .classes-grid {
    display: flex; gap: 12px; margin-inline: calc(var(--cine-gutter) * -1); padding: 4px var(--cine-gutter) 14px;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin;
  }
  .class-card, .class-card:first-child { flex: 0 0 min(280px, 74vw); scroll-snap-align: center; }
}
@media (max-width: 900px) {
  .realm-strip__group { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .download-card { background: linear-gradient(180deg, #070504cc, #070504f5 70%), url("img/drakon/gamer/drakon-knight.webp") 60% center / cover; }
}
@media (max-width: 640px) {
  .topbar, .topbar.gfx-scrolled { min-height: 62px; }
  .page-home .hero { padding: 84px 16px 156px; }
  .page-home .hero__scene img { object-position: 50% 40%; }
  .page-home .hero__eyebrow { letter-spacing: .2em; font-size: 11px; }
  .page-home .hero__tagline { font-size: 15px; }
  .page-home .hero__cta { flex-direction: column; align-items: stretch; width: min(320px, 100%); margin-inline: auto; }
  .hero__scroll { display: none; }
  .realm-effects-toggle { display: none; }
  .page-home .hud-strip { top: calc(100vh - 88px); top: calc(100svh - 88px); border-radius: 16px; }
  .page-home .hud-strip__icon { display: none; }
  .page-home .hud-strip__item { min-height: 60px; padding: 8px 10px; justify-content: center; text-align: center; }
  .page-home .hud-strip__label { font-size: 9.5px; letter-spacing: .06em; }
  .page-home .hud-strip__value { font-size: 13px; }
  .killer-view--podium, .ranking-view { padding: 20px 14px; }
  .table-wrap { overflow-x: auto; }
  .class-card, .class-card:first-child { min-height: 430px; }
  .class-card__art-wrap { height: 280px; }
}
/* La insignia fija de créditos ocupa la esquina: la franja de estado sube para no chocar. */
@media (min-width: 641px) and (max-width: 860px) {
  .page-home .hero { padding-bottom: 196px; }
  .page-home .hud-strip { top: calc(100vh - 160px); top: calc(100svh - 160px); }
  .hero__scroll { display: none; }
}
@media (max-height: 620px) and (min-width: 641px) {
  .hero__scroll { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---------- Rendimiento ---------- */
/* Desenfocar sobre una imagen y partículas en movimiento obliga a recalcularlo en cada cuadro. */
.page-home .hud-strip { background: #0a0705eb; backdrop-filter: none; }
.page-home .hud-strip__item { backdrop-filter: none; }
/* Lo que no se ve no se anima. */
html:not(.drakon-motion-leaving) .drakon-route-transition,
html:not(.drakon-motion-leaving) .drakon-route-transition *,
html:not(.drakon-motion-leaving) .drakon-route-transition *::before,
html:not(.drakon-motion-leaving) .drakon-route-transition *::after { animation: none !important; }
.is-offscreen, .is-offscreen::before, .is-offscreen::after,
.is-offscreen *, .is-offscreen *::before, .is-offscreen *::after { animation-play-state: paused !important; }
#gfx-progress { animation: none; }
#gfx-cursor-glow { mix-blend-mode: normal; }

/* ---------- Orden: jerarquía de títulos y ritmo ---------- */
:root { --section-gap: clamp(52px, 6vw, 88px); }
html { scroll-padding-top: 88px; }
.section-head h2,
.classes-view > .section-head h2, .events-view > .section-head h2, .chaos-view > .section-head h2 { font-size: clamp(27px, 3.4vw, 44px); }
.section-head__hint,
.classes-view > .section-head .section-head__hint, .events-view > .section-head .section-head__hint, .chaos-view > .section-head .section-head__hint { font-size: 11.5px; letter-spacing: .2em; }
.section-head,
.classes-view > .section-head, .events-view > .section-head, .chaos-view > .section-head { margin-bottom: clamp(18px, 2.2vw, 28px); }
.download-card__title { font-size: clamp(30px, 4vw, 52px); }
.download-card { min-height: 360px; }
.hslider { min-height: 0; }

/* ---------- Orden: menú ---------- */
.topbar__nav { align-items: center; }
.nav-menu { position: relative; display: flex; align-items: center; }
.nav-menu__toggle { display: inline-flex; align-items: center; gap: 5px; border: 0; background: none; font-family: inherit; cursor: pointer; }
body .topbar__nav .nav-link { color: #e9dfd4; }
body .topbar__nav .nav-link:hover, body .topbar__nav .nav-link.is-active { color: var(--cine-flame); }
.nav-menu__chevron { flex: none; transition: transform .2s; }
.nav-menu__panel {
  position: absolute; top: 100%; left: 50%; z-index: 950; display: grid; gap: 2px; min-width: 190px; margin-top: 10px; padding: 8px;
  border: 1px solid var(--line); border-radius: 14px; background: #120d09; box-shadow: 0 22px 60px #000000b3;
  opacity: 0; visibility: hidden; transform: translate(-50%, -6px); transition: opacity .16s, transform .16s, visibility .16s;
}
/* Puente invisible para que el puntero no cierre el menú al bajar. */
.nav-menu__panel::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; }
.nav-menu__panel .nav-link { display: block; padding: 10px 12px; border-radius: 9px; font-size: 13px; }
.nav-menu__panel .nav-link::after, .nav-menu__panel .nav-link::before { display: none; }
.nav-menu__panel .nav-link:hover, .nav-menu__panel .nav-link:focus-visible { background: #ff6f241f; color: var(--cine-flame); }
.nav-menu.is-open .nav-menu__panel, .nav-menu:focus-within:not(.is-dismissed) .nav-menu__panel { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav-menu.is-open .nav-menu__chevron, .nav-menu:focus-within:not(.is-dismissed) .nav-menu__chevron { transform: rotate(180deg); }
body .topbar__nav .nav-menu:has(.nav-menu__panel .is-active) .nav-menu__toggle { color: var(--cine-flame); }
@media (hover: hover) and (pointer: fine) {
  .nav-menu:hover:not(.is-dismissed) .nav-menu__panel { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
  .nav-menu:hover:not(.is-dismissed) .nav-menu__chevron { transform: rotate(180deg); }
  body .topbar__nav .nav-menu:hover .nav-menu__toggle { color: var(--cine-flame); }
}
.topbar__actions { gap: 10px; }
.nav-cta { white-space: nowrap; }
.topbar__actions .user-area { white-space: nowrap; }
/* Con sesión iniciada la barra lleva el usuario: el cliente sigue a mano en el menú y la portada. */
.topbar__actions:has(.user-area:not([hidden])) .nav-cta, .user-area__icon { display: none; }
@media (max-width: 1100px) {
  .nav-cta { display: none; }
}

/* Menú móvil: tres grupos que entran en pantalla, por encima de la barra en todas las páginas. */
body .drawer-backdrop { z-index: 1090; }
body .drawer { z-index: 1100; }
.drawer__section { padding-block: 10px; }
.drawer__link { min-height: 44px; padding-block: 8px; }
.drawer__section-title { margin-bottom: 4px; }

/* ---------- Orden: controles flotantes ---------- */
/* El crédito queda como un sello que se despliega al pasar el puntero o enfocarlo. */
body .drakon-credit { grid-template-columns: 34px minmax(0, 1fr); width: 48px; min-width: 0; min-height: 0; gap: 0; padding: 6px; border-radius: 999px; transition: width .2s, gap .2s, padding .2s, border-color .2s; }
.drakon-credit__copy { max-width: 0; overflow: hidden; opacity: 0; transition: max-width .25s, opacity .2s; }
.drakon-credit__spark { display: none; }
body .drakon-credit:hover, body .drakon-credit:focus-visible { width: 190px; gap: 10px; padding: 6px 14px 6px 6px; }
.drakon-credit:hover .drakon-credit__copy, .drakon-credit:focus-visible .drakon-credit__copy { max-width: 160px; opacity: 1; }

/* Visitas y efectos pasan al pie: dejan de competir con el menú y el contenido. */
.footer__tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; padding: 0 var(--cine-gutter) 22px; }
.footer__tools .drakon-visitors, .footer__tools .realm-effects-toggle { position: static; inset: auto; display: inline-flex; align-items: center; margin: 0; }
.footer__tools .realm-effects-toggle { min-height: 38px; padding: 8px 16px; cursor: pointer; }

/* ---------- Orden: portada ---------- */
.main > .realm-strip { margin-bottom: 14px !important; }
.realm-strip__group > span { padding: 18px 14px 16px; }
.realm-strip strong { font-size: clamp(32px, 3.6vw, 48px); }

/* Estadísticas en vivo: una franja, no otra sección grande. */
body.page-home .main > .stats-view { margin-block: 0 var(--section-gap); padding: 0; }
.stats-view > .section-head { flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 14px; margin-bottom: 10px; }
.stats-view > .section-head h2 { font-size: 15px; font-family: inherit; font-weight: 600; letter-spacing: .14em; }
.stats-view > .section-head .section-head__hint { order: 0; color: var(--cine-smoke); font-size: 11px; letter-spacing: .1em; }
body.page-home .stats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.stat-card { flex-direction: row; justify-content: flex-start; gap: 14px; min-height: 0; padding: 14px 20px; text-align: left; }
.stat-card__icon { flex: none; width: 46px; height: 46px; margin: 0; }
.stat-card__icon img { width: 100%; height: 100%; object-fit: contain; }
.stat-card__body { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; }
.stat-card__label { font-size: 12px; }
.stat-card__value { font-size: clamp(23px, 2.2vw, 30px); line-height: 1.1; }

/* Guardián: una banda horizontal a continuación del ranking. */
body.page-home .main > .killer-view--podium {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px clamp(20px, 4vw, 56px); padding: clamp(18px, 2.4vw, 28px) clamp(20px, 4vw, 48px);
}
.killer-view--podium > .section-head { align-items: flex-start; margin: 0; text-align: left; }
.killer-view--podium .podium {
  display: grid; grid-template-columns: 112px auto; grid-template-rows: auto auto auto; align-items: center; justify-items: start; gap: 4px 20px;
  width: auto; max-width: none; min-height: 0; margin: 0; padding: 0; text-align: left;
}
.killer-view--podium .podium__crown { display: none; }
.killer-view--podium .podium__art-wrap { grid-row: 1 / 4; width: 112px; height: 136px; margin: 0; }
.killer-view--podium .podium__art { max-width: 100%; max-height: 136px; }
.killer-view--podium .podium__empty-icon svg { width: 72px; height: 72px; }
.killer-view--podium .podium__name { margin: 0; font-size: clamp(22px, 2.2vw, 28px); }
.killer-view--podium .podium__class { margin: 0; }
.killer-view--podium .podium__badge { margin: 4px 0 0; }

.vip-badge__crown { display: none; }
body.page-home .main { padding-bottom: clamp(36px, 4vw, 56px); }
.footer { margin-top: 0; }
.benefit-card__badge { width: auto; height: clamp(64px, 7vw, 88px); }

/* El servidor es Season 1 con cinco clases. */
.rank-tab[data-rank-type="sum"], .rank-tab[data-rank-type="rf"] { display: none; }

/* Sin registros, Chaos Machine no aporta nada al visitante. */
.chaos-view:has(.chaos-feed__empty) { display: none !important; }

/* ---------- Orden: acceso en ventana ---------- */
.auth-view.auth-view--modal {
  position: fixed; inset: 0; z-index: 1200; display: none; width: auto; max-width: none; margin: 0; padding: clamp(12px, 3vw, 32px);
  overflow-y: auto; background: #030201e0; backdrop-filter: blur(6px); opacity: 1; transform: none;
}
.auth-view.auth-view--modal.is-open:not([hidden]) { display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; }
.auth-modal__frame { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); gap: 14px; width: min(900px, 100%); }
.auth-modal__close {
  position: absolute; top: 10px; right: 10px; z-index: 2; display: grid; place-items: center; width: 42px; height: 42px; padding: 0;
  border: 1px solid var(--line); border-radius: 50%; background: #0a0705d9; color: var(--cine-bone); font-size: 22px; line-height: 1; cursor: pointer;
}
.auth-modal__close:hover { border-color: var(--cine-edge-hot); color: var(--cine-flame); }
.auth-view--modal .auth-card { background: #120d09; }
.auth-view--modal .auth-tabs { margin-right: 44px; }
body.auth-open { overflow: hidden; }
@media (max-width: 800px) {
  .auth-modal__frame { grid-template-columns: minmax(0, 1fr); width: min(480px, 100%); }
  .auth-view--modal .auth-side { display: none; }
}

/* Editor de información general: Normal y VIP, con sus tres valores en fila. */
.settings-rates { margin: 0 0 14px; padding: 12px 14px 14px; border: 1px solid var(--line); border-radius: 12px; }
.settings-rates legend { padding: 0 8px; color: #ff8a3d; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.settings-rates .settings-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; }
.settings-rates input { width: 100%; min-width: 0; }
@media (max-width: 480px) {
  .settings-rates .settings-row { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Redes sociales: pestaña al margen izquierdo ---------- */
.social-dock {
  --dock-panel: 232px;
  position: fixed; top: 50%; left: 0; z-index: 880; display: flex; align-items: center;
  transform: translate(calc(var(--dock-panel) * -1), -50%); transition: transform .3s cubic-bezier(.2, .8, .2, 1);
}
.social-dock[hidden] { display: none; }
.social-dock.is-open { transform: translate(0, -50%); }
.social-dock__panel {
  width: var(--dock-panel); max-height: 86vh; max-height: 86dvh; padding: 16px 14px; overflow-y: auto; visibility: hidden;
  border: 1px solid #ff823266; border-left: 0; border-radius: 0 16px 16px 0; background: #120d09f7; box-shadow: 12px 0 40px #000000a6;
  transition: visibility .3s;
}
.social-dock.is-open .social-dock__panel { visibility: visible; }
.social-dock__title { margin: 0 0 10px 4px; color: #ff8a3d; font-size: 12px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; }
.social-dock__list { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.social-dock__link { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 6px 8px; border-radius: 12px; color: var(--cine-bone); font-size: 15px; font-weight: 600; text-decoration: none; }
a.social-dock__link:hover, a.social-dock__link:focus-visible { background: #ff6f241f; color: var(--cine-flame); }
.social-dock__link.is-empty { opacity: .55; }
.social-dock__name small { display: block; color: var(--cine-smoke); font-size: 11px; font-weight: 400; }
.social-dock__icon { position: relative; display: grid; flex: none; place-items: center; width: 40px; height: 40px; overflow: hidden; border: 1px solid #ffb34766; border-radius: 10px; background: #1d130c; color: var(--cine-cream); }
.social-dock__icon svg { width: 22px; height: 22px; }
.social-dock__icon img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.social-dock__icon.has-image { border-color: transparent; background: none; }
.social-dock__icon.has-image svg { display: none; }
.social-dock__edit { width: 100%; min-height: 40px; margin-top: 10px; border: 1px solid var(--line); border-radius: 10px; background: #0a0705; color: var(--cine-flame); font-size: 13px; font-weight: 700; cursor: pointer; }
.social-dock__edit[hidden] { display: none; }
.social-dock__edit:hover { border-color: var(--cine-edge-hot); }
.social-dock__tab {
  position: relative; display: flex; flex: none; flex-direction: column; align-items: center; gap: 10px; width: 44px; padding: 16px 0; overflow: hidden; border: 0; border-radius: 0 14px 14px 0; cursor: pointer;
  background: linear-gradient(180deg, var(--cine-flame), var(--cine-ember) 55%, #e8391a); color: #190a02;
  box-shadow: 0 0 18px #ff6f2499, 0 0 44px #ff6f2440;
}
.social-dock__tab svg { flex: none; width: 20px; height: 20px; }
.social-dock__tab span { font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; writing-mode: vertical-rl; transform: rotate(180deg); }
.social-dock__tab:focus-visible { outline: 2px solid var(--cine-ice); outline-offset: 3px; }
/* Halo y destello: solo opacidad y transform, para no sumar repintados. */
.social-dock::after {
  content: ""; position: absolute; top: 50%; right: -14px; z-index: -1; width: 72px; height: 150px; border-radius: 50%; background: radial-gradient(ellipse, #ff8a3dcc, transparent 70%);
  pointer-events: none; transform: translateY(-50%); opacity: .35;
}
.social-dock__tab::after { content: ""; position: absolute; inset: -30% 0 auto; height: 40%; background: linear-gradient(180deg, transparent, #fff9, transparent); pointer-events: none; transform: translateY(-120%); }
@media (prefers-reduced-motion: no-preference) {
  html:not(.drakon-effects-off) .social-dock:not(.is-open)::after { animation: dock-glow 2.4s ease-in-out infinite; }
  html:not(.drakon-effects-off) .social-dock:not(.is-open) .social-dock__tab::after { animation: dock-sheen 3.6s ease-in-out infinite; }
}
@keyframes dock-glow { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }
@keyframes dock-sheen { 0%, 55% { transform: translateY(-120%); } 100% { transform: translateY(420%); } }

.social-editor { width: min(520px, calc(100vw - 28px)); max-height: 92vh; max-height: 92dvh; padding: 26px; overflow: auto; border: 1px solid var(--line); border-radius: 20px; background: #120d09; color: #e7dfd6; box-shadow: 0 30px 100px #000c; }
.social-editor::backdrop { background: #030201e0; }
.social-editor form { display: grid; gap: 14px; }
.social-editor h2 { margin: 0; color: var(--cine-bone); font: 700 26px / 1.2 var(--font-display); text-transform: uppercase; }
.social-editor__help { margin: 0; color: var(--cine-smoke); font-size: 14px; line-height: 1.5; }
.social-editor label { display: grid; gap: 6px; color: var(--cine-smoke); font-size: 13px; font-weight: 600; }
.social-editor input { width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: #0a0705; color: var(--cine-bone); font: inherit; font-weight: 400; }
.social-editor__message { min-height: 18px; margin: 0; color: var(--cine-flame); font-size: 14px; }
.social-editor__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.social-editor__actions button { min-height: 44px; padding: 8px 22px; border: 1px solid var(--line); border-radius: 999px; background: #0a0705; color: var(--cine-bone); font-weight: 700; cursor: pointer; }
.social-editor__actions button[type="submit"] { border: 0; background: linear-gradient(95deg, #f04a1c, var(--cine-ember) 40%, var(--cine-flame)); color: #190a02; }
.social-editor__actions button:disabled { cursor: wait; opacity: .5; }
@media (max-width: 760px) {
  .social-dock { top: 58%; --dock-panel: min(232px, calc(100vw - 72px)); }
  .social-dock__tab { width: 36px; padding: 12px 0; gap: 8px; }
  .social-dock__tab span { font-size: 11.5px; }
}

/* ---------- Estilo Vermillion: tokens y tipografía ---------- */
:root {
  --cine-bone: #f3f1fa; --cine-smoke: #c9c6dc; --cine-cream: #f1e6d2;
  --cine-card: linear-gradient(165deg, #15121b, #0c0a0e 78%);
  --cine-edge: rgba(255, 255, 255, .08); --cine-width: 1200px;
  --text: #f3f1fa; --text-dim: #c9c6dc;
  --font-display: "Cinzel", "Marcellus", Georgia, serif; --font-serif: "Cinzel", "Marcellus", Georgia, serif;
  --font-ui: "Josefin Sans", "Barlow", "Segoe UI", sans-serif;
  --section-gap: clamp(64px, 8vw, 112px);
}
body, button, input, select, textarea { font-family: var(--font-ui); }
/* El título principal conserva su tipografía. */
.hero__kicker, .hero__name { font-family: "Marcellus", Georgia, serif; }

.section-eyebrow, .section-head__hint,
.classes-view > .section-head .section-head__hint, .events-view > .section-head .section-head__hint, .chaos-view > .section-head .section-head__hint,
.download-card__eyebrow {
  display: block; order: -1; padding: 0; border: 0; background: none; box-shadow: none;
  color: #ff8a3d; font-size: 13px; font-weight: 700; letter-spacing: .27em; text-transform: uppercase;
}
.section-title, .section-head h2, .classes-view > .section-head h2, .events-view > .section-head h2, .chaos-view > .section-head h2, .download-card__title {
  margin: 0; background: none; color: var(--cine-bone); -webkit-text-fill-color: currentColor;
  font-family: var(--font-display); font-size: clamp(30px, 4vw, 52px); font-weight: 800; letter-spacing: .02em; line-height: 1.12; text-transform: uppercase;
}
.section-title span, .section-head h2 span, .download-card__title span {
  background: linear-gradient(95deg, var(--cine-flame), var(--cine-ember) 55%, var(--cine-blood));
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}
.section-lead { max-width: 62ch; margin: 6px 0 0; color: var(--cine-smoke); font-size: 17px; line-height: 1.6; }
.section-head { gap: 10px; margin-bottom: clamp(24px, 3vw, 40px); }
.btn { font-family: var(--font-ui); font-weight: 700; letter-spacing: .03em; text-transform: none; }
.btn--cream, .news-section .news-more button {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 12px 30px; border: 0; border-radius: 999px;
  background: var(--cine-cream); color: #14121c; font-size: 16px; font-weight: 700; text-decoration: none; cursor: pointer;
}
.btn--cream:hover, .news-section .news-more button:hover { background: #fff6e6; color: #14121c; }

/* Barra de desplazamiento fina y anaranjada; reemplaza a la barra superior. */
#gfx-progress { display: none; }
html { scrollbar-color: var(--cine-ember) #0a0807; }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: #0a0807; }
::-webkit-scrollbar-thumb { border: 2px solid #0a0807; border-radius: 8px; background: linear-gradient(180deg, var(--cine-flame), var(--cine-ember)); }

/* ---------- Estilo Vermillion: barra superior ---------- */
body .topbar .topbar__nav, body .topbar .nav-cta, body .topbar [data-open-auth] { display: none; }
/* Sin borde: el degradado se repetía debajo de él y dibujaba una línea negra. */
.topbar, .topbar.gfx-scrolled { justify-content: space-between; min-height: 68px; border: 0; }
.page-home .brand__text { display: none; }
.page-home .topbar .brand__logo { width: 50px; height: 50px; }
body .topbar .hamburger { display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 6px; width: 48px; height: 44px; padding: 4px; cursor: pointer; }
body .topbar .hamburger .hamburger__bar { width: 40px; height: 2px; margin: 0; transform: none; opacity: 1; }
body .topbar .hamburger .hamburger__bar:nth-child(2) { width: 24px; }

/* El estado del servidor pasa a una píldora central que se reduce al bajar. */
.page-home .hud-strip {
  position: fixed; top: 8px; left: 50%; z-index: 901; display: grid; grid-template-columns: auto auto; column-gap: 18px; width: auto; min-width: 230px;
  padding: 7px 18px 8px; border: 1px solid #ff823266; border-radius: 14px; background: #0c0907f2; box-shadow: 0 10px 30px #00000080;
  transform: translateX(-50%);
}
.page-home .hud-strip__divider, .page-home .hud-strip__icon { display: none; }
.page-home .hud-strip__item { display: block; min-height: 0; padding: 0; text-align: left; }
.page-home .hud-strip__item:nth-of-type(n) { order: 2; }
.page-home .hud-strip__item:has(.hud-strip__value--castle) { order: 1; grid-column: 1 / -1; padding-bottom: 5px; margin-bottom: 5px; border-bottom: 2px solid transparent; border-image: linear-gradient(90deg, var(--cine-blood), var(--cine-flame)) 1; }
.page-home .hud-strip__item:has(.hud-strip__value--castle) .hud-strip__label { display: block; color: #ff8a3d; font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.page-home .hud-strip__item:has(.hud-strip__value--castle) .hud-strip__value { color: var(--cine-bone) !important; font-size: 15px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; filter: none; }
.page-home .hud-strip__item:not(:has(.hud-strip__value--castle)) .hud-strip__label { display: none; }
.page-home .hud-strip__item:not(:has(.hud-strip__value--castle)) .hud-strip__value { font-size: 12px; font-weight: 700; }
.page-home .hud-strip__item:has(.hud-strip__value--time) { text-align: right; }
.page-home .hud-strip__value--time { color: var(--cine-flame) !important; }
.topbar.gfx-scrolled ~ .hud-strip { min-width: 0; padding: 5px 16px; border-radius: 999px; }
.topbar.gfx-scrolled ~ .hud-strip .hud-strip__item:has(.hud-strip__value--castle) { display: none; }

/* ---------- Estilo Vermillion: menú a pantalla partida ---------- */
body .drawer-backdrop {
  background:
    radial-gradient(ellipse 60% 60% at 26% 50%, #5a200a59, transparent 72%),
    url("img/drakon/cine/menu-bg.webp") left center / auto 100% no-repeat, #0a0807;
  opacity: 1;
}
body .drawer-backdrop::before {
  content: ""; position: absolute; top: 50%; left: calc((100% - min(55vw, 700px)) / 2); width: min(32vw, 420px); aspect-ratio: 850 / 480;
  background: url("img/drakon/mu-drakon-logo.webp") center / contain no-repeat; transform: translate(-50%, -50%);
}
body .drawer {
  width: min(55vw, 700px); max-width: none; padding: 24px clamp(20px, 3.5vw, 44px); border: 0; background: #14121c; box-shadow: none;
  display: flex; flex-direction: column; overflow-y: auto;
}
.drawer__head { padding: 0 0 12px; border: 0; background: none; }
.drawer__head::after { display: none; }
.drawer__brand-title { color: var(--cine-bone); font-family: var(--font-ui); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.drawer__brand-sub { display: none; }
.drawer__close { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid #ffffff2e; border-radius: 50%; background: #ffffff0d; color: var(--cine-bone); }
.drawer__section { padding: 0; border: 0; }
.drawer__section::before, .drawer__section::after { display: none; }
.drawer__section-title, .drawer__link svg { display: none; }
body .drawer .drawer__link {
  display: flex; align-items: center; justify-content: space-between; min-height: 42px; padding: 7px 4px; border: 0; border-radius: 0; background: none; box-shadow: none;
  color: var(--cine-bone); font-family: var(--font-ui); font-size: clamp(16px, 1.5vw, 19px); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; transform: none;
}
body .drawer .drawer__link[hidden] { display: none; }
body .drawer .drawer__link::after { content: "›"; color: #8b879f; font-size: 20px; line-height: 1; }
body .drawer .drawer__link:hover, body .drawer .drawer__link:focus-visible { color: var(--cine-flame); }
.drawer__foot { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding: 18px 0 0; border: 0; background: none; }
.drawer__foot .btn { flex: 1 1 140px; min-height: 48px; border-radius: 12px; }
.drawer__foot .btn--secondary { border-color: #ffb34766; background: none; color: var(--cine-flame); }
.drawer__foot .btn[hidden] { display: none; }
.drawer__foot .user-area { display: flex; flex: 1 1 100%; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 8px 8px 16px; border-radius: 14px; }
.drawer__foot .user-area[hidden] { display: none; }
.drawer__foot .user-area__name { color: var(--cine-flame); font-weight: 700; }

/* ---------- Estilo Vermillion: hero ---------- */
.page-home .hero { padding-block: 96px 96px; }
.hero__online {
  position: absolute; bottom: 74px; left: 50%; z-index: 3; display: flex; align-items: center; gap: 9px; margin: 0; padding: 9px 20px; white-space: nowrap;
  border: 1px solid #ffffff1a; border-radius: 999px; background: #14121ce6; color: var(--cine-smoke); font-size: 14px; font-weight: 600; transform: translateX(-50%);
}
.hero__online b { color: var(--cine-bone); }
.hero__scroll { bottom: 18px; }

/* ---------- Estilo Vermillion: secciones ---------- */
body.page-home .main > .stats-view { margin-top: clamp(40px, 5vw, 64px); }
.stat-card, .benefit-card, .event-card, .coin, .my-char { border-color: var(--cine-edge); border-radius: 16px; background: var(--cine-card); }

/* Noticias como línea de tiempo */
.news-grid, .news-grid.is-expanded { position: relative; display: block; max-width: 980px; margin-inline: auto; padding-left: 22px; }
.news-grid::before { content: ""; position: absolute; top: 12px; bottom: 12px; left: 4px; width: 1px; background: linear-gradient(180deg, var(--cine-ember), #ff6f2433); }
body .news-grid .news-card, body .news-grid .news-card:first-child, body .news-grid .news-card:nth-child(2):last-child {
  position: relative; display: grid; grid-template-columns: 84px minmax(0, 1fr) 176px; column-gap: 20px; flex-direction: initial; padding: 22px 0;
  overflow: visible; border: 0; border-bottom: 1px solid var(--line-soft); border-radius: 0; background: none; box-shadow: none;
}
.news-grid .news-card::before { content: ""; position: absolute; top: 30px; left: -22px; width: 9px; height: 9px; border-radius: 50%; background: var(--cine-ember); box-shadow: 0 0 10px var(--cine-ember); }
.news-grid .news-card-body, .news-grid .news-card:first-child .news-card-body { display: contents; }
.news-grid .news-card small { grid-column: 1; grid-row: 1 / span 3; color: #ff8a3d; font-family: ui-monospace, Consolas, monospace; font-size: 13px; font-weight: 700; letter-spacing: 0; padding-top: 4px; }
body .news-grid .news-card h3 { grid-column: 2; margin: 0 0 6px; color: var(--cine-bone); font: 700 18px / 1.3 var(--font-ui); }
.news-grid .news-card p { grid-column: 2; margin: 0 0 10px; font-size: 15px; -webkit-line-clamp: 2; }
.news-grid .news-card .news-actions { grid-column: 2; margin: 0; }
body .news-grid .news-card > img, body .news-grid .news-card:first-child > img, body .news-grid .news-card:nth-child(2):last-child > img {
  grid-column: 3; grid-row: 1 / span 3; align-self: start; width: 100%; height: auto; min-height: 0; aspect-ratio: 16 / 10; border-radius: 10px; object-fit: cover;
}
body .news-grid .news-card .news-actions button:first-child { min-height: 0; padding: 0; border: 0; background: none; color: var(--cine-flame); font-size: 14px; font-weight: 700; filter: none; }
body .news-grid .news-card .news-actions button:first-child::after { content: " →"; }
body .news-grid .news-card .news-actions button:first-child:hover { background: none; color: var(--cine-bone); }
.news-grid .news-card .news-actions button:not(:first-child) { min-height: 32px; padding: 4px 12px; font-size: 13px; }

/* Tarjeta de rates */
body.page-home .main > .rates-card {
  display: flex; flex-direction: column; align-items: center; gap: 14px; margin-block: 0 var(--section-gap); padding: clamp(40px, 6vw, 76px) clamp(18px, 4vw, 48px); text-align: center;
  border-radius: 24px; background:
    linear-gradient(180deg, #0a080799, #0a0807e0),
    url("img/drakon/cine/rates-bg.webp") center / cover no-repeat,
    url("img/drakon/realm/fortress-1672.webp") center / cover no-repeat;
}
.rates-card__main {
  display: flex; flex-direction: column; align-items: center; gap: 4px; width: min(560px, 100%); margin-top: 6px; padding: 18px 24px 16px;
  border: 1px solid #ff823266; border-radius: 18px; background: linear-gradient(135deg, #2a0f0880, #0c0a0ecc);
}
.rates-card small { color: #ff8a3d; font-size: 12px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; }
.rates-card__main strong {
  background: linear-gradient(95deg, var(--cine-blood), var(--cine-ember) 45%, var(--cine-flame)); -webkit-background-clip: text; background-clip: text; color: transparent;
  font-size: clamp(50px, 8vw, 84px); font-weight: 700; line-height: 1.05;
}
.rates-card em { color: var(--cine-ice); font-size: 13px; font-style: normal; }
.rates-card__row { display: grid; grid-template-columns: repeat(3, minmax(0, 170px)); justify-content: center; gap: 12px; width: 100%; }
.rates-card__row > span { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 14px 16px; text-align: left; border: 1px solid var(--cine-edge); border-radius: 14px; background: #100d14d9; }
.rates-card__row strong { color: var(--cine-ember); font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; line-height: 1.1; }
.rates-card__row small { color: var(--cine-smoke); font-size: 11px; letter-spacing: .14em; }
.rates-card__row > span:not(:first-child) em { color: var(--cine-smoke); }

/* Eventos: destacado y cuenta regresiva */
.events-next { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 22px; margin: 0 0 28px; color: var(--cine-bone); font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.events-next[hidden] { display: none; }
.events-next__time { display: flex; gap: 12px; }
.events-next__time > span { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 56px; }
.events-next__time b { background: linear-gradient(180deg, var(--cine-flame), var(--cine-ember)); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: clamp(30px, 3.6vw, 42px); font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1; }
.events-next__time small { color: var(--cine-smoke); font-size: 10px; font-weight: 600; letter-spacing: .14em; }
.events-next__time i { color: #6d6880; font-style: normal; font-size: 22px; }
.events-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
/* Banda horizontal: su alto no depende de cuántos eventos tenga el servidor. */
.event-feature {
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 10px; min-height: 240px; padding: clamp(20px, 3vw, 36px) clamp(20px, 4vw, 48px); overflow: hidden; color: var(--cine-smoke); text-decoration: none;
  border: 1px solid var(--cine-edge); border-radius: 20px; background:
    linear-gradient(90deg, #0a0807f7 22%, #0a080799 58%, #0a080726),
    url("img/drakon/cine/castle-feature.webp") center / cover no-repeat,
    url("img/drakon/slides/castle-siege.webp") right 35% / cover no-repeat;
}
.event-feature > * { max-width: 560px; }
.event-feature__meta { width: 100%; }
.event-feature:hover { border-color: var(--cine-edge-hot); }
.event-feature__tag { align-self: flex-start; padding: 5px 12px; border-radius: 999px; background: linear-gradient(95deg, var(--cine-ember), var(--cine-flame)); color: #190a02; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.event-feature h3 { margin: 0; color: var(--cine-bone); font: 800 clamp(26px, 3vw, 36px) / 1.1 var(--font-display); text-transform: uppercase; }
.event-feature p { margin: 0; font-size: 15px; line-height: 1.55; }
.event-feature__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; margin-top: 6px; color: var(--cine-bone); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.event-feature__meta b { color: var(--cine-flame); letter-spacing: .02em; text-transform: none; font-size: 15px; }
body .events-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: start; gap: 12px; margin: 0; padding: 0; overflow: visible; scroll-snap-type: none; }
.events-grid__state { grid-column: 1 / -1; }
.events-view .gamer-rail-tools { display: none; }
body .events-grid .event-card { width: auto; height: auto; min-width: 0; min-height: 0; flex: none; padding: 18px; text-align: left; }
body .events-grid .event-card__head { flex-flow: row wrap; align-items: center; justify-content: space-between; gap: 8px; min-height: 0; margin: 0 0 10px; padding: 0; }
body .events-grid .event-card__icon { width: 48px; height: 48px; flex: none; margin: 0; }
body .events-grid .event-card__cadence { padding: 5px 10px; font-size: 10.5px; letter-spacing: .06em; white-space: nowrap; }
/* Todos los logos miden igual, aunque el evento tenga un tamaño propio configurado. */
body .events-grid .event-card__icon { overflow: hidden; }
body .events-grid .event-card__icon img { width: 100% !important; height: 100% !important; max-width: none; margin: 0; object-fit: contain; }
body .events-grid .event-card__head:not(:has(.event-card__icon))::before { flex: none; width: 48px; height: 48px; margin: 0; background: url("img/drakon/mu-drakon-icon.webp") center / contain no-repeat; opacity: .85; }
body .events-grid .event-card__toggle { width: 100%; padding-inline: 8px; letter-spacing: .08em; white-space: nowrap; }
body .events-grid .event-card__icon--model { width: 72px; height: 72px; }
body .events-grid .event-card__model { width: 100%; height: 100%; }
.event-card__title { margin: 0 0 12px; font-family: var(--font-display); font-size: 17px; font-weight: 700; text-align: left; text-transform: uppercase; }
.download-card__eyebrow::before { display: none; }
.event-card__cadence { color: #ff8a3d; }

/* Clases: tarjetas altas de arte a todo el alto */
body .classes-grid {
  display: flex; gap: 16px; margin-inline: calc(var(--cine-gutter) * -1); padding: 4px var(--cine-gutter) 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.classes-grid::-webkit-scrollbar { display: none; }
body .classes-grid .class-card {
  position: relative; flex: 0 0 clamp(250px, 24vw, 300px); aspect-ratio: 3 / 4.4; min-height: 0; overflow: hidden; scroll-snap-align: start;
  border: 0; border-radius: 24px; background: radial-gradient(ellipse 80% 50% at 50% 45%, color-mix(in srgb, var(--c-accent, #ff6f24) 26%, transparent), transparent 74%), #0c0a0e;
}
body .classes-grid .class-card__art-wrap { position: absolute; inset: 0; width: 100%; height: 100%; }
body .classes-grid .class-card__art { width: 100%; height: 100%; object-fit: cover; object-position: center top; filter: none; }
body .classes-grid .class-card__art.is-fallback { height: 82%; object-fit: contain; object-position: center bottom; filter: drop-shadow(0 18px 22px #000c); }
.class-card__rune, .class-card__glow { display: none; }
body .classes-grid .class-card__info {
  position: absolute; inset: auto 0 0; z-index: 2; min-height: 0; padding: 70px 22px 22px; background: linear-gradient(180deg, transparent, #0a0807f0 58%);
}
body .classes-grid .class-card__name { color: var(--cine-bone); font: 700 22px / 1.2 var(--font-ui); letter-spacing: .05em; text-transform: uppercase; }
body .classes-grid .class-card__role { color: var(--cine-smoke); font-size: 14px; }
/* La descripción y los atributos aparecen solo al pasar el puntero o enfocar la tarjeta. */
body .classes-grid .class-card__reveal { display: none; max-height: none; margin-top: 8px; opacity: 1; transform: none; }
body .classes-grid .class-card:focus .class-card__reveal, body .classes-grid .class-card:focus-within .class-card__reveal { display: block; }
@media (hover: hover) and (pointer: fine) {
  body .classes-grid .class-card:hover .class-card__reveal { display: block; }
}
.section-head .gamer-rail-tools { bottom: 8px; }

/* Tienda y descarga: tarjetas con imagen y texto a la izquierda */
body.page-home .main > .promo-card {
  display: flex; align-items: center; min-height: 360px; margin-block: 0 var(--section-gap); padding: clamp(28px, 5vw, 56px); border: 1px solid var(--cine-edge); border-radius: 24px;
  background:
    linear-gradient(90deg, #0a0807f5 18%, #0a080799 58%, #0a080733),
    url("img/drakon/cine/webshop-bg.webp") center / cover no-repeat,
    url("img/drakon/slides/drakon-forge.webp") 70% center / cover no-repeat;
}
.promo-card__body { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; max-width: 520px; }
.download-card {
  min-height: 420px; border-color: var(--cine-edge); border-radius: 24px;
  background:
    linear-gradient(90deg, #0a0807f5 18%, #0a080799 58%, #0a080733),
    url("img/drakon/cine/download-bg.webp") center / cover no-repeat,
    url("img/drakon/gamer/drakon-knight.webp") center / cover no-repeat;
}

/* Pie con llamada final */
.footer { background: #0a0807; border-top: 0; }
.footer__rune-row { display: none; }
.footer__cta { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: clamp(48px, 6vw, 80px) var(--cine-gutter) 28px; text-align: center; }
.footer__cta-logo { width: min(280px, 66vw); height: auto; }
.footer__cta p { margin: 0; color: var(--cine-smoke); }
.footer__cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }
.footer__cta .btn[hidden] { display: none; }
.footer__cta .section-title { background: linear-gradient(95deg, var(--cine-flame), var(--cine-ember)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
body .footer .footer__inner { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.footer__brand { display: none; }
body .footer .footer__nav { flex: 0 0 auto; }
.page-home .footer__inner { padding-top: 8px; }
.footer__nav a { color: var(--cine-smoke); font-weight: 600; }

@media (max-width: 1100px) {
  body .events-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  body .drawer { width: 100%; }
  body .drawer-backdrop::before { display: none; }
  body .news-grid .news-card, body .news-grid .news-card:first-child, body .news-grid .news-card:nth-child(2):last-child { grid-template-columns: minmax(0, 1fr) 96px; column-gap: 14px; }
  .news-grid .news-card small { grid-column: 1; grid-row: auto; padding: 0 0 4px; }
  body .news-grid .news-card h3, .news-grid .news-card p, .news-grid .news-card .news-actions { grid-column: 1; }
  body .news-grid .news-card > img, body .news-grid .news-card:first-child > img, body .news-grid .news-card:nth-child(2):last-child > img { grid-column: 2; grid-row: 1 / span 4; order: 2; }
  .rates-card__row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .rates-card__row > span { padding: 12px 10px; }
  .rates-card em { font-size: 11.5px; }
  body.page-home .main > .promo-card, .download-card { background-position: center; }
  .events-next__time > span { min-width: 44px; }
  body .events-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  body .events-grid .event-card { padding: 14px; }
  .event-feature { min-height: 230px; background:
    linear-gradient(90deg, #0a0807f2 30%, #0a0807a6),
    url("img/drakon/cine/castle-feature.webp") center / cover no-repeat,
    url("img/drakon/slides/castle-siege.webp") 70% center / cover no-repeat; }
  .page-home .hud-strip { min-width: 180px; column-gap: 12px; padding: 6px 14px; }
  .page-home .hud-strip__item:has(.hud-strip__value--castle) .hud-strip__value { font-size: 13px; }
  .page-home .topbar .brand__logo { width: 42px; height: 42px; }
  .hero__online { bottom: 30px; }
  .hero__scroll { display: none; }
  .page-home .hero { padding-block: 92px 88px; }
}

@media (max-width: 760px) {
  body.page-home .stats-grid { gap: 8px; }
  .stat-card { flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px; text-align: center; }
  .stat-card__icon { width: 34px; height: 34px; }
  .stat-card__body { align-items: center; }
  .stat-card__label { font-size: 10.5px; line-height: 1.25; }
  .stat-card__value { font-size: 20px; }
  body.page-home .main > .killer-view--podium { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .realm-strip__group > span { padding: 14px 10px 12px; }
  .realm-effects-toggle { display: inline-flex; }
  .page-home .hero__scene { inset: 0; width: 100%; height: 100%; }
  .page-home .hero__scene img { width: 100%; height: 100%; object-position: 68% 40%; }
  .page-home .hud-strip__item { padding-inline: 5px; }
  .page-home .hud-strip__value { font-size: 12.5px; }
  .auth-tab { padding-inline: 8px; font-size: 12.5px; letter-spacing: .06em; white-space: nowrap; }
}
.footer__tools .drakon-visitors { width: auto; min-height: 38px; }
.footer__tools .drakon-visitors__copy { display: flex; flex-direction: column; }
