/*
 * Plantilla SAIKO 2.0 para DmN MuCMS
 * Estilo: launcher de juego, amatista y plata lunar.
 * Para cambiar colores, edita las variables de :root.
 */
:root {
	--ink: #0a0614;        /* fondo general */
	--void: #100a1d;       /* fondo de bandas */
	--panel: #171029;      /* paneles */
	--panel-2: #20173a;    /* paneles elevados / seleccion */
	--line: #2d2149;       /* lineas y bordes */
	--line-2: #45346e;
	--text: #e8e2f6;       /* texto principal */
	--muted: #a99dc7;      /* texto secundario */
	--dim: #7b6f9b;        /* texto terciario */
	--frost: #d9ceff;      /* titulos */
	--amethyst: #8a55ff;   /* color principal */
	--amethyst-2: #b38cff;
	--soul: #ff4fd8;       /* acentos vivos (en vivo, ahora) */
	--mint: #4fe3a9;       /* en linea */
	--notch: 14px;
	--rail: 88px;
	--content: 1280px;
	--f-display: "Cinzel", "Trajan Pro", Georgia, serif;
	--f-ui: "Chakra Petch", "Segoe UI", system-ui, sans-serif;
	color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0; background: var(--ink); color: var(--text);
	font: 400 15px/1.6 var(--f-ui);
	min-height: 100vh; overflow-x: hidden;
}
body {
	/* Fondo de abajo: imagen borrosa y oscurecida, fija mientras bajas */
	background:
		linear-gradient(180deg, rgba(10, 6, 20, .42) 0%, rgba(10, 6, 20, .58) 100%),
		url("../images/fondo-abajo.jpg") center / cover no-repeat fixed,
		var(--ink);
}

/* ------------------------------------------------------------------ Fondo ilustrado
 * La imagen va en assets/SAIKO/images/fondo.jpg (1920 x 1080 o mas grande).
 * Si el archivo no esta, la pagina se ve con el fondo morado normal. */
:root { --bg-art: url("../images/fondo.jpg"); }
/* El fondo de arriba se desvanece suavemente sobre el de abajo */
body { position: relative; }
body::before {
	content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: 0; height: 1150px; pointer-events: none;
	-webkit-mask-image: linear-gradient(180deg, #000 0%, #000 62%, transparent 100%); mask-image: linear-gradient(180deg, #000 0%, #000 62%, transparent 100%);
	background:
		linear-gradient(180deg, rgba(10, 6, 20, .15) 0%, rgba(10, 6, 20, .35) 100%),
		radial-gradient(ellipse 80% 70% at 50% 40%, transparent 45%, rgba(10, 6, 20, .45) 100%),
		var(--bg-art) var(--bg-pos, center top) / var(--bg-size, cover) no-repeat;
}
body.is-inner::before {
	height: 560px;
	background:
		linear-gradient(180deg, rgba(10, 6, 20, .55) 0%, rgba(10, 6, 20, .75) 100%),
		var(--bg-art) center 20% / cover no-repeat;
}
img { max-width: 100%; height: auto; }
a { color: var(--amethyst-2); text-decoration: none; }
a:hover { color: var(--frost); }
:focus-visible { outline: 2px solid var(--soul); outline-offset: 3px; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
p { margin: 0; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--soul); color: var(--ink); padding: 8px 14px; font-weight: 600; }
.skip-link:focus { left: calc(var(--rail) + 12px); }

/* Esquinas recortadas, el sello visual de la plantilla */
.notch, .stage__hall, .realm__block, .realm__discord, .notice, .chronicle__panel, .classes__stage, .box-style1, .dl__item, .acct__hero, .acct__facts, .tool, .lk-block,
.timeline, .events__next, .champion, .ladder, .step, .codex, .modal_div, #select_server {
	clip-path: polygon(0 0, calc(100% - var(--notch)) 0, 100% var(--notch), 100% 100%, var(--notch) 100%, 0 calc(100% - var(--notch)));
}

/* ------------------------------------------------------------------ Botones */
.btn {
	--cut: 8px;
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	font: 600 14px/1 var(--f-ui); letter-spacing: .02em;
	padding: 12px 18px; border: 0; cursor: pointer; color: var(--text);
	background: transparent; text-decoration: none; white-space: nowrap;
	clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
	transition: background-color .2s, color .2s, filter .2s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--amethyst); color: #fff; }
.btn--primary:hover { background: #9b6dff; color: #fff; }
.btn--quiet { color: var(--muted); padding-inline: 10px; clip-path: none; }
.btn--quiet:hover { color: var(--frost); }
.btn--sm { padding: 10px 14px; font-size: 13px; }
.btn--block { width: 100%; }
.btn--outline { color: var(--frost); background: rgba(217, 206, 255, .06); box-shadow: inset 0 0 0 1px var(--line-2); padding: 16px 22px; font-size: 15px; }
.btn--outline:hover { background: rgba(217, 206, 255, .12); color: #fff; }
.btn--play {
	--cut: 12px;
	padding: 18px 28px; font-size: 17px; color: #fff;
	background: linear-gradient(100deg, #7a45ff 0%, #a64dff 55%, #e04de0 100%);
	box-shadow: 0 0 0 1px rgba(255, 255, 255, .12) inset;
}
.btn--play:hover { filter: brightness(1.12); color: #fff; }
.btn--play svg { width: 22px; height: 22px; }

.link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; color: var(--amethyst-2); }
.link::after { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 2px 2px 0 0; transform: rotate(45deg); transition: transform .2s; }
.link:hover { color: var(--frost); }
.link:hover::after { transform: translateX(3px) rotate(45deg); }

/* ------------------------------------------------------------------ Riel lateral */
.rail {
	position: fixed; z-index: 60; left: 0; top: 0; bottom: 0; width: var(--rail);
	padding-left: env(safe-area-inset-left, 0px);
	background: linear-gradient(180deg, #120b22, #0c0718);
	border-right: 1px solid var(--line);
	display: flex; flex-direction: column; align-items: center;
	padding-top: calc(16px + env(safe-area-inset-top, 0px));
	padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
}
.rail__brand { display: grid; place-items: center; width: 82px; height: 60px; margin-bottom: 14px; }
.rail__crown { width: 80px; height: auto; filter: drop-shadow(0 0 10px rgba(255, 79, 216, .45)); transition: filter .2s; }
.rail__brand:hover .rail__crown { filter: drop-shadow(0 0 16px rgba(255, 79, 216, .8)); }
.rail__sigil {
	display: grid; place-items: center; width: 48px; height: 48px;
	font: 800 32px/1 var(--f-display); color: var(--frost);
	background: radial-gradient(circle at 50% 40%, rgba(255, 79, 216, .35), rgba(138, 85, 255, .15) 60%, transparent 70%);
	border: 1px solid var(--line-2); transform: rotate(45deg);
}
.rail__sigil { text-shadow: 0 0 18px rgba(255, 79, 216, .6); }
.rail__brand .rail__sigil > * { transform: rotate(-45deg); }
.rail__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; width: 100%; flex: 1; }
.rail__account { margin-top: auto; }
.rail__link {
	position: relative; display: flex; flex-direction: column; align-items: center; gap: 5px;
	padding: 10px 4px; color: var(--dim); font-size: 11px; font-weight: 600; letter-spacing: .02em;
	transition: color .2s;
}
.rail__link svg { width: 24px; height: 24px; }
.rail__link:hover { color: var(--frost); }
.rail__link[aria-current="page"] { color: var(--frost); }
.rail__link[aria-current="page"]::before {
	content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px;
	background: var(--soul); box-shadow: 0 0 12px var(--soul);
}

/* ------------------------------------------------------------------ Contenedor general */
.shell {
	margin-left: var(--rail); min-height: 100vh; display: flex; flex-direction: column;
	padding-left: max(28px, env(safe-area-inset-left, 0px));
	padding-right: max(28px, env(safe-area-inset-right, 0px));
}
.shell > * { width: 100%; max-width: var(--content); margin-inline: auto; }

.topbar {
	position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
	display: flex; align-items: center; gap: 20px; min-height: 68px;
	max-width: none !important;
	margin-inline: calc(-1 * max(28px, env(safe-area-inset-left, 0px))) calc(-1 * max(28px, env(safe-area-inset-right, 0px))) !important;
	width: auto !important;
	padding-left: max(28px, env(safe-area-inset-left, 0px));
	padding-right: max(28px, env(safe-area-inset-right, 0px));
	background: rgba(10, 6, 20, .82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid rgba(45, 33, 73, .7);
}
.topbar__name { font: 700 24px/1 var(--f-display); color: var(--frost); display: flex; align-items: center; }
.topbar__name.brand-text { font-size: 24px; --o: .6px; }
.topbar__name img { display: block; height: 38px; width: auto; filter: drop-shadow(0 0 10px rgba(190, 80, 255, .35)); }
.is-home .topbar__name { visibility: hidden; }
.topbar__emblem { display: none; }
.topbar__emblem img { display: block; width: 66px; height: auto; filter: drop-shadow(0 0 8px rgba(255, 79, 216, .45)); }
.topbar__crumb { display: flex; gap: 10px; align-items: center; color: var(--dim); font-size: 13px; }
.topbar__crumb a { color: var(--muted); }
.topbar__right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.server-clock { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; margin-right: 12px; }
.server-clock svg { width: 16px; height: 16px; color: var(--dim); }
.server-clock time { font-weight: 600; color: var(--frost); font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------ Escenario de portada */
.stage { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 16px; margin-top: 24px; }
.stage__hall {
	position: relative; overflow: hidden; min-height: 600px;
	display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); align-items: center; padding-right: 32px;
	background:
		radial-gradient(520px 420px at 76% 48%, rgba(190, 80, 255, .18), transparent 68%),
		linear-gradient(90deg, rgba(10, 6, 20, .9) 0%, rgba(10, 6, 20, .72) 38%, rgba(10, 6, 20, .2) 68%, rgba(10, 6, 20, 0) 100%);
}

.stage__hall::after {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background-image:
		radial-gradient(1.5px 1.5px at 12% 18%, rgba(255, 255, 255, .7), transparent),
		radial-gradient(1px 1px at 32% 72%, rgba(255, 255, 255, .5), transparent),
		radial-gradient(1.5px 1.5px at 58% 12%, rgba(217, 206, 255, .7), transparent),
		radial-gradient(1px 1px at 84% 82%, rgba(255, 255, 255, .5), transparent),
		radial-gradient(1px 1px at 92% 30%, rgba(255, 255, 255, .6), transparent),
		radial-gradient(1.5px 1.5px at 46% 46%, rgba(255, 79, 216, .6), transparent),
		radial-gradient(1px 1px at 22% 90%, rgba(255, 255, 255, .4), transparent);
}
.stage__art {
	position: relative; z-index: 0; grid-column: 2; grid-row: 1; align-self: center;
	width: 100%; aspect-ratio: 1; margin: 28px 0; display: grid; place-items: center; pointer-events: none;
}
.sigil { position: absolute; inset: -4%; width: 108%; height: 108%; overflow: visible; }
/* Emblema dentro del circulo */
.stage__emblem {
	position: relative; z-index: 1; width: 100%; max-width: none; height: auto;
	filter: drop-shadow(0 22px 40px rgba(6, 3, 14, .75)) drop-shadow(0 0 34px rgba(190, 80, 255, .35));
	animation: sk-float 8s ease-in-out infinite;
}
@keyframes sk-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.sigil__ring { transform-origin: 300px 300px; transform-box: view-box; }
.sigil__ring--outer { animation: sk-spin 120s linear infinite; }
.sigil__ring--mid { animation: sk-spin 80s linear infinite reverse; }
.sigil__ring--inner { animation: sk-spin 40s linear infinite; }
@keyframes sk-spin { to { transform: rotate(360deg); } }

.stage__main { position: relative; z-index: 1; grid-column: 1; grid-row: 1; padding: 56px 8px 56px 48px; min-width: 0; }
.stage__title, .stage__logo {
	font: 800 clamp(64px, 8.4vw, 132px)/.86 var(--f-display); letter-spacing: -.01em;
	background: linear-gradient(180deg, #ffffff 10%, #d9ceff 55%, #a98bff 100%);
	-webkit-background-clip: text; background-clip: text; color: transparent;
	filter: drop-shadow(0 0 28px rgba(255, 79, 216, .35));
}
.stage__logo { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: inherit; line-height: 0; margin-left: -10px; filter: drop-shadow(0 0 26px rgba(190, 80, 255, .35)); }
.stage__logo img { display: block; max-width: 520px; width: 100%; height: auto; filter: drop-shadow(0 12px 26px rgba(6, 3, 14, .7)); }
.stage__season { margin-top: 10px; font-weight: 600; font-size: 16px; color: var(--soul); letter-spacing: .08em; }
.stage__lead { margin-top: 18px; font-size: 17px; color: var(--muted); max-width: 46ch; }

.launch { margin-top: 32px; }
.launch__label { font-size: 13px; color: var(--dim); }
.launch__title { margin-top: 2px; font: 700 22px/1.2 var(--f-display); color: var(--frost); }
.launch__clock {
	margin-top: 14px; display: inline-grid; grid-template-columns: repeat(4, minmax(72px, auto));
	background: rgba(10, 6, 20, .66); box-shadow: inset 0 0 0 1px var(--line-2);
	clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}
.launch__cell { display: flex; flex-direction: column; align-items: center; padding: 14px 18px 12px; }
.launch__cell + .launch__cell { border-left: 1px solid var(--line); }
.launch__num { font: 700 40px/1 var(--f-ui); color: #fff; font-variant-numeric: tabular-nums; }
.launch__unit { margin-top: 6px; font-size: 12px; color: var(--dim); }
.stage__actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }

/* Panel derecho: estado del reino */
.realm { display: flex; flex-direction: column; gap: 16px; }
.realm__block { background: rgba(23, 16, 41, .74); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); padding: 22px 22px 24px; }
.realm__heading { font: 600 13px/1 var(--f-ui); color: var(--dim); letter-spacing: .04em; margin-bottom: 14px; }
.realm__servers { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.realm__server { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; }
.realm__name { font: 700 24px/1.1 var(--f-display); color: var(--frost); }
.realm__exp { grid-row: 2; font-size: 13px; color: var(--muted); }
.realm__online { grid-row: 1 / 3; grid-column: 2; align-self: center; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--dim); }
.realm__online::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--dim); }
.realm__online.is-live { color: var(--text); }
.realm__online.is-live::before { background: var(--mint); box-shadow: 0 0 10px var(--mint); }
.realm__online b { font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.next__name { font: 700 30px/1.05 var(--f-display); color: #fff; }
.next__meta { margin-top: 8px; display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--muted); }
.next__left { color: var(--soul); font-weight: 600; font-variant-numeric: tabular-nums; }
.next__bar { margin: 12px 0 16px; height: 4px; background: var(--line); }
.next__bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--amethyst), var(--soul)); box-shadow: 0 0 10px rgba(255, 79, 216, .6); transition: width 1s linear; }
.realm__discord {
	display: flex; align-items: center; gap: 14px; padding: 18px 22px;
	background: linear-gradient(110deg, #2a2266, #1d1640); color: var(--text);
}
.realm__discord svg { width: 34px; height: 34px; color: #a9b2ff; flex: none; }
.realm__discord span { display: flex; flex-direction: column; font-size: 13px; color: var(--muted); }
.realm__discord b { font-size: 15px; color: #fff; }
.realm__discord:hover { color: var(--text); filter: brightness(1.15); }

/* Avisos del plugin */
.notices { margin-top: 16px; }
.notices__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.notice { display: flex; gap: 14px; background: var(--panel); padding: 18px 20px; box-shadow: inset 3px 0 0 var(--soul); }
.notice__img { width: 64px; height: 64px; object-fit: cover; flex: none; }
.notice__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.notice__date { font-size: 12px; color: var(--dim); }
.notice__title { font: 700 20px/1.15 var(--f-display); color: var(--frost); }
.notice__text { font-size: 14px; color: var(--muted); }
.notice .link { margin-top: 4px; }

/* ------------------------------------------------------------------ Bandas de la portada */
.home .sk-content { display: block; }
.band { margin-top: 80px; }
.band__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 24px; }
.band__title { font: 700 clamp(34px, 4vw, 46px)/1 var(--f-display); color: var(--frost); }
.band__note { color: var(--muted); font-size: 14px; max-width: 52ch; }
.empty-note { color: var(--muted); }

/* Noticias: indice + lector */
.chronicle__grid { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 16px; align-items: start; }
.chronicle__index { display: flex; flex-direction: column; gap: 2px; }
.chronicle__tab {
	display: grid; grid-template-columns: 52px 1fr; gap: 14px; align-items: center; text-align: left;
	padding: 14px 16px; border: 0; background: transparent; color: var(--muted); cursor: pointer;
	font: 500 15px/1.3 var(--f-ui); box-shadow: inset 0 -1px 0 var(--line); transition: background-color .2s, color .2s;
}
.chronicle__tab:hover { background: rgba(32, 23, 58, .5); color: var(--text); }
.chronicle__tab[aria-selected="true"] { background: var(--panel-2); color: #fff; box-shadow: inset 3px 0 0 var(--soul); }
.chronicle__day { display: flex; flex-direction: column; align-items: center; font-size: 11px; color: var(--dim); line-height: 1.1; }
.chronicle__day b { font: 700 26px/1 var(--f-ui); color: var(--frost); font-variant-numeric: tabular-nums; }
.chronicle__panel { background: var(--panel); padding: 32px 36px 34px; min-height: 100%; }
.chronicle__img { display: block; width: 100%; max-height: 300px; object-fit: cover; margin-bottom: 22px; }
.chronicle__date { font-size: 13px; color: var(--dim); }
.chronicle__title { margin-top: 6px; font: 700 clamp(30px, 3vw, 40px)/1.05 var(--f-display); color: #fff; }
.chronicle__text { margin: 16px 0 20px; font-size: 16px; line-height: 1.75; color: var(--text); max-width: 68ch; }
.chronicle__text p { margin: 0 0 12px; }
.chronicle__text img { height: auto; }

/* Clases */
.classes__picker { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.classes__tab {
	flex: 1 0 86px; display: flex; flex-direction: column; align-items: center; gap: 8px;
	padding: 16px 8px 12px; border: 0; cursor: pointer; color: var(--muted);
	background: var(--panel); font: 700 13px/1 var(--f-ui); letter-spacing: .06em;
	clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
	transition: background-color .2s, color .2s;
}
.classes__tab-icon { width: 34px; height: 34px; }
.classes__tab:hover { color: var(--frost); background: var(--panel-2); }
.classes__tab[aria-selected="true"] { color: #fff; background: linear-gradient(160deg, #6b3fe0, #3a2280); }
.classes__stage {
	margin-top: 12px; display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 40px; align-items: center;
	background: linear-gradient(120deg, var(--panel), #130d22); padding: 40px 48px;
}
.classes__art { display: grid; place-items: center; aspect-ratio: 1; max-width: 380px; width: 100%; position: relative; }
.classes__art::before {
	content: ""; position: absolute; inset: 8%; border-radius: 50%;
	background: radial-gradient(circle, rgba(255, 79, 216, .22), rgba(138, 85, 255, .1) 55%, transparent 70%);
	box-shadow: inset 0 0 0 1px rgba(179, 140, 255, .25);
}
.classes__art::after { content: ""; position: absolute; inset: 18%; border-radius: 50%; border: 1px dashed rgba(217, 206, 255, .2); }
.classes__emblem { position: relative; z-index: 1; width: 46%; height: 46%; color: var(--frost); filter: drop-shadow(0 0 18px rgba(255, 79, 216, .55)); }
.classes__art img { position: relative; z-index: 1; max-height: 420px; width: auto; }
/* Retrato de la clase */
.classes__art.has-img { aspect-ratio: auto; place-items: center; }
.classes__art.has-img::before { inset: -6% -14%; border-radius: 50%; box-shadow: none; }
.classes__art.has-img::after { display: none; }
.classes__portrait {
	display: block; width: 100%; max-width: 280px !important; max-height: none !important; aspect-ratio: 127 / 225; object-fit: cover; object-position: 50% 20%;
	clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px));
	filter: saturate(1.05) contrast(1.05);
	animation: sk-portrait .45s ease-out;
}
.classes__art.has-img { filter: drop-shadow(0 0 1px rgba(179, 140, 255, .9)) drop-shadow(0 18px 40px rgba(138, 85, 255, .45)); }
.classes__badge {
	position: absolute; z-index: 2; right: calc(50% - 160px); bottom: -14px; width: 64px; height: 64px; padding: 12px;
	color: #fff; background: linear-gradient(160deg, #6b3fe0, #3a2280); border-radius: 50%;
	box-shadow: 0 0 0 3px var(--panel), 0 0 18px rgba(255, 79, 216, .55);
}
@keyframes sk-portrait { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.classes__tab.has-img { padding: 0 0 10px; overflow: hidden; gap: 10px; }
.classes__tab-img { display: block; width: 100%; height: 64px; object-fit: cover; object-position: 50% 22%; opacity: .55; filter: grayscale(.6); transition: opacity .2s, filter .2s; }
.classes__tab.has-img:hover .classes__tab-img { opacity: .85; filter: none; }
.classes__tab.has-img[aria-selected="true"] .classes__tab-img { opacity: 1; filter: none; }
.classes__role { font-size: 14px; font-weight: 600; color: var(--soul); }
.classes__name { margin-top: 4px; font: 800 clamp(40px, 5vw, 64px)/.95 var(--f-display); color: #fff; }
.classes__tag { margin-top: 10px; font-size: 17px; color: var(--frost); }
.classes__text { margin-top: 12px; color: var(--muted); max-width: 56ch; }
.stats { margin: 24px 0 0; display: grid; gap: 10px; max-width: 420px; }
.stats__row { display: grid; grid-template-columns: 96px 1fr; align-items: center; gap: 12px; }
.stats dt { font-size: 13px; color: var(--muted); }
.stats dd { margin: 0; }
.stats__bar {
	display: block; height: 10px;
	background: linear-gradient(90deg, var(--amethyst-2) calc(var(--v) * 20%), var(--line) 0);
	-webkit-mask: repeating-linear-gradient(90deg, #000 0 calc(20% - 4px), transparent calc(20% - 4px) 20%);
	mask: repeating-linear-gradient(90deg, #000 0 calc(20% - 4px), transparent calc(20% - 4px) 20%);
}
.evo { margin-top: 24px; }
.evo__label { font-size: 13px; color: var(--dim); }
.evo__path { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.evo__path li { font-weight: 600; color: var(--frost); }
.evo__path li + li::before { content: "›"; margin-right: 10px; color: var(--soul); font-weight: 700; }

/* Eventos */
.events__grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.timeline { background: var(--panel); padding: 24px 24px 20px; }
.timeline__scroll { overflow-x: auto; scrollbar-width: thin; }
.timeline__inner { --name: 128px; position: relative; min-width: 620px; padding-top: 26px; }
.timeline__hours { position: absolute; top: 0; left: var(--name); right: 0; height: 20px; }
.timeline__hours span { position: absolute; left: calc(var(--p) * 100%); transform: translateX(-50%); font-size: 11px; color: var(--dim); font-variant-numeric: tabular-nums; }
.timeline__hours span:first-child { transform: none; }
.timeline__hours span:last-child { transform: translateX(-100%); }
.timeline__row { display: grid; grid-template-columns: var(--name) 1fr; align-items: center; min-height: 44px; border-top: 1px solid var(--line); }
.timeline__name { font-size: 14px; font-weight: 600; color: var(--text); }
.timeline__track { position: relative; height: 44px; background: repeating-linear-gradient(90deg, rgba(45, 33, 73, .55) 0 1px, transparent 1px calc(100% / 8)); }
.timeline__dot {
	position: absolute; top: 50%; left: calc(var(--p) * 100%); width: 9px; height: 9px;
	background: var(--amethyst-2); transform: translate(-50%, -50%) rotate(45deg);
}
.timeline__now {
	position: absolute; top: 20px; bottom: 0; width: 2px;
	left: calc(var(--name) + (100% - var(--name)) * var(--p, 0));
	background: var(--soul); box-shadow: 0 0 12px var(--soul);
}
.timeline__now::before { content: ""; position: absolute; top: -4px; left: -4px; width: 10px; height: 10px; background: var(--soul); transform: rotate(45deg); }
.events__next { list-style: none; margin: 0; padding: 8px 0; background: var(--panel); }
.next-item { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 14px 22px; border-bottom: 1px solid var(--line); }
.next-item:last-child { border-bottom: 0; }
.next-item__name { font-weight: 600; color: var(--text); }
.next-item__at { font-weight: 700; color: var(--frost); font-variant-numeric: tabular-nums; }
.next-item__left { grid-column: 1 / 3; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.next-item.is-soon { box-shadow: inset 3px 0 0 var(--soul); background: rgba(255, 79, 216, .06); }
.next-item.is-soon .next-item__left { color: var(--soul); font-weight: 600; }

/* Salon de la fama */
.fame__grid { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 16px; }
.champion {
	position: relative; overflow: hidden; padding: 28px 28px 30px; min-height: 300px;
	display: flex; flex-direction: column; justify-content: flex-end;
	background: radial-gradient(420px 300px at 85% 10%, rgba(255, 79, 216, .2), transparent 70%), linear-gradient(150deg, #2a1a4e, #150e27);
}
.champion__art {
	position: absolute; z-index: 0; top: 0; right: 0; height: 100%; width: 66%; object-fit: cover; object-position: 50% 22%;
	-webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 38%); mask-image: linear-gradient(90deg, transparent 0%, #000 38%);
	opacity: .95; transition: transform .6s ease;
}
.champion:hover .champion__art { transform: scale(1.03); }
.champion.has-art::after {
	content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
	background: linear-gradient(0deg, rgba(14, 9, 26, .9) 0%, rgba(14, 9, 26, .35) 38%, transparent 60%);
}
.champion.has-art .champion__rank { right: auto; left: 18px; top: -24px; z-index: 0; }
.champion > *:not(.champion__art) { z-index: 1; }
.champion__label { z-index: 1; position: absolute; top: 26px; left: 28px; font-size: 13px; font-weight: 600; color: var(--soul); }
.champion__rank { position: absolute; right: 14px; top: -34px; font: 800 260px/1 var(--f-display); color: rgba(217, 206, 255, .07); pointer-events: none; }
.champion__name { position: relative; font: 800 clamp(38px, 4vw, 52px)/1 var(--f-display); }
.champion__name a { color: #fff; }
.champion__class { position: relative; margin-top: 6px; color: var(--frost); }
.champion__empty { color: var(--muted); }
.champion__stats { position: relative; margin: 18px 0 0; display: flex; gap: 28px; }
.champion__stats div { display: flex; flex-direction: column; }
.champion__stats dt { font-size: 12px; color: var(--dim); }
.champion__stats dd { margin: 0; font: 700 26px/1.1 var(--f-ui); color: #fff; font-variant-numeric: tabular-nums; }
.ladder { background: var(--panel); padding: 22px 22px 14px; }
.ladder__title { font: 700 24px/1 var(--f-display); color: var(--frost); margin-bottom: 10px; }
.ladder__list { list-style: none; margin: 0; padding: 0; }
.ladder__row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.ladder__row:last-child { border-bottom: 0; }
.ladder__pos { width: 22px; font-weight: 700; color: var(--dim); font-variant-numeric: tabular-nums; }
.ladder__mark { flex: none; image-rendering: pixelated; }
.ladder__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; color: var(--text); }
.ladder__val { font-weight: 600; color: var(--frost); font-variant-numeric: tabular-nums; }
.ladder__val small { font-size: 12px; font-weight: 500; color: var(--dim); }
.ladder__empty { color: var(--muted); padding: 10px 0; }

/* Como empezar */
.start__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.step { counter-increment: step; background: var(--panel); padding: 24px 22px 24px; display: flex; flex-direction: column; gap: 8px; }
.step::before { content: counter(step); font: 800 54px/1 var(--f-display); color: var(--amethyst-2); text-shadow: 0 0 20px rgba(138, 85, 255, .6); }
.step__title { font: 700 24px/1.05 var(--f-display); color: #fff; }
.step p { color: var(--muted); font-size: 14px; flex: 1; }
.codex { background: var(--panel); padding: 24px 26px; }
.codex__title { font: 700 26px/1 var(--f-display); color: var(--frost); margin-bottom: 14px; }
.codex__list { margin: 0; padding: 0 0 0 20px; display: grid; gap: 10px; color: var(--muted); font-size: 14px; }
.codex__list li::marker { color: var(--soul); font-weight: 700; }

/* ------------------------------------------------------------------ Pie */
.foot {
	margin-top: 96px; padding: 28px 0 32px; border-top: 1px solid var(--line);
	display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px;
}
.foot__name { font: 700 24px/1 var(--f-display); color: var(--frost); }
.foot__name.brand-text { font-size: 28px; --o: .7px; }
.foot__name img { display: block; height: 46px; width: auto; }

/* Nombre "Saiko Mu" con el acabado del logo: plata, filo dorado y brillo morado */
.brand-text {
	font-family: "Cinzel Decorative", "Cinzel", Georgia, serif; font-weight: 900; letter-spacing: .01em; line-height: 1;
	color: transparent; text-transform: none;
	background: linear-gradient(180deg, #ffffff 0%, #f6f1ff 26%, #b3a3d6 49%, #6f5b9c 53%, #efe8ff 64%, #d6c8f2 82%, #9583c2 100%);
	-webkit-background-clip: text; background-clip: text;
	--o: 1.2px; --glow: rgba(200, 90, 255, .55);
	filter: drop-shadow(var(--o) 0 0 #e2ad5c) drop-shadow(calc(var(--o) * -1) 0 0 #e2ad5c) drop-shadow(0 var(--o) 0 #b9792f) drop-shadow(0 calc(var(--o) * -1) 0 #ffe0a0)
		drop-shadow(0 0 1px #2a0f4a) drop-shadow(0 0 18px var(--glow));
}
a.brand-text:hover { color: transparent; --glow: rgba(255, 79, 216, .85); }
.stage__title.brand-text { font-size: clamp(46px, 4.9vw, 78px); line-height: 1.02; padding: 6px 0 4px; }
.foot__links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot__links a { color: var(--muted); font-size: 14px; }
.foot__links a:hover { color: var(--frost); }
.foot__legal { flex-basis: 100%; font-size: 12px; color: var(--dim); }

/* ------------------------------------------------------------------ Paginas internas */
.page-head { margin-top: 32px; }
.page-head__title { font: 800 clamp(40px, 5vw, 60px)/1 var(--f-display); color: var(--frost); }
.page { margin-top: 20px; }
.page__body { display: block; }

/* ------------------------------------------------------------------ Ventanas, avisos y carga */
#overlay { display: none; position: fixed; inset: 0; z-index: 900; background: rgba(5, 3, 10, .78); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.modal_div, #select_server {
	display: none; opacity: 0; position: fixed; z-index: 1000; top: 45%; left: 50%;
	width: min(400px, calc(100% - 32px)); transform: translateX(-50%);
	background: var(--panel-2); padding: 32px 30px 28px; box-shadow: inset 0 0 0 1px var(--line-2);
}
#select_server { width: min(420px, calc(100% - 32px)); padding: 0; }
#select_server .modal-header { padding: 18px 22px; border-bottom: 1px solid var(--line); }
#select_server h2 { font: 700 24px/1 var(--f-display); color: var(--frost); }
.modal_close { position: absolute; top: 12px; right: 16px; width: 36px; height: 36px; border: 0; background: transparent; color: var(--muted); font-size: 28px; line-height: 1; cursor: pointer; }
.modal_close:hover { color: #fff; }
.modal__title { font: 800 36px/1 var(--f-display); color: #fff; margin-bottom: 20px; }
.form-login { display: flex; flex-direction: column; }
.form-login label { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.form-login input { margin-bottom: 16px; }
.form-login .btn { margin-top: 6px; padding: 14px; font-size: 15px; }
.form-login__links { margin-top: 16px; display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }

input[type="text"], input[type="password"], input[type="email"], input[type="number"], select, textarea {
	width: 100%; padding: 12px 14px; font: 500 15px/1.3 var(--f-ui); color: var(--text);
	background: var(--ink); border: 1px solid var(--line-2); border-radius: 0; outline: 0;
	transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus { border-color: var(--amethyst); box-shadow: 0 0 0 3px rgba(138, 85, 255, .25); }

#loading {
	display: none; position: fixed; z-index: 1100; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px));
	background: var(--panel-2); color: var(--text); padding: 10px 16px; font-size: 13px; box-shadow: inset 0 0 0 1px var(--line-2);
}
.loading__spin { display: inline-block; width: 12px; height: 12px; margin-right: 6px; border: 2px solid var(--line-2); border-top-color: var(--soul); border-radius: 50%; animation: sk-spin .8s linear infinite; vertical-align: -1px; }
#notifier-box { position: fixed; z-index: 1200; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 10px; width: min(380px, calc(100% - 40px)); }
#notifier-box .message-box { position: relative; background: var(--panel-2); color: var(--text); padding: 14px 40px 14px 16px; box-shadow: inset 3px 0 0 var(--amethyst), 0 10px 30px rgba(0, 0, 0, .4); }
#notifier-box .message-box .success { color: var(--mint); font-weight: 700; }
#notifier-box .message-box .error { color: #ff6b8b; font-weight: 700; }
#notifier-box .message-close { position: absolute; top: 10px; right: 12px; width: 18px; height: 18px; }
#notifier-box .message-close::before { content: "×"; color: var(--muted); font-size: 20px; line-height: 18px; }

/* ------------------------------------------------------------------ Adaptable */
@media (max-width: 1180px) {
	.stage { grid-template-columns: 1fr; }
	.realm { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
	.fame__grid { grid-template-columns: 1fr 1fr; }
	.start__grid { grid-template-columns: 1fr; }
	.classes__stage { grid-template-columns: 280px minmax(0, 1fr); gap: 28px; padding: 32px; }
}
@media (max-width: 900px) {
	:root { --rail: 0px; }
	.rail {
		top: auto; right: 0; width: auto; height: auto; flex-direction: row;
		padding: 0 max(8px, env(safe-area-inset-right, 0px)) env(safe-area-inset-bottom, 0px) max(8px, env(safe-area-inset-left, 0px));
		border-right: 0; border-top: 1px solid var(--line);
		background: rgba(14, 9, 26, .96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
	}
	.rail__brand, .rail__extra { display: none; }
	.topbar__emblem { display: block; margin-right: -6px; }
	.rail__list { flex-direction: row; justify-content: space-around; gap: 0; }
	.rail__list > li { flex: 1; }
	.rail__account { margin-top: 0; }
	.rail__link { padding: 10px 2px 8px; }
	.rail__link[aria-current="page"]::before { left: 20%; right: 20%; top: 0; bottom: auto; width: auto; height: 3px; }
	.shell { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
	.chronicle__grid, .events__grid { grid-template-columns: minmax(0, 1fr); }
	.timeline, .chronicle__index { min-width: 0; }
	.chronicle__index { flex-direction: row; overflow-x: auto; gap: 8px; scrollbar-width: none; }
	.chronicle__tab { flex: 0 0 240px; background: var(--panel); box-shadow: none; }
	.chronicle__tab[aria-selected="true"] { box-shadow: inset 0 -3px 0 var(--soul); }
	.classes__stage { grid-template-columns: 1fr; text-align: left; }
	.classes__art { max-width: 220px; margin-inline: auto; }
	.classes__art.has-img { max-width: 240px; }
	.classes__badge { right: -12px; width: 54px; height: 54px; }
	.steps { grid-template-columns: 1fr; }
	.timeline__inner { --name: 104px; }
	.skip-link:focus { left: 12px; }
}
@media (max-width: 640px) {
	.shell { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
	.topbar { margin-inline: calc(-1 * max(16px, env(safe-area-inset-left, 0px))) calc(-1 * max(16px, env(safe-area-inset-right, 0px))) !important; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); min-height: 58px; gap: 10px; }

	.server-clock__label, .topbar__right .btn--quiet, .topbar__crumb { display: none; }
	.server-clock { margin-right: 4px; }
	.stage { margin-top: 12px; }
	.stage__hall { min-height: 0; grid-template-columns: minmax(0, 1fr); padding-right: 0; background: linear-gradient(180deg, rgba(10, 6, 20, .15) 0%, rgba(10, 6, 20, .55) 42%, rgba(10, 6, 20, .85) 60%, rgba(10, 6, 20, .9) 100%); }
	.stage__art { grid-column: 1; grid-row: 1; width: min(100%, 360px); margin: 24px auto -8px; }
	.stage__main { grid-row: 2; }
	.stage__main { padding: 8px 22px 32px; }
	.stage__lead { font-size: 15px; }
	.launch__clock { grid-template-columns: repeat(4, 1fr); width: 100%; }
	.launch__cell { padding: 12px 4px 10px; }
	.launch__num { font-size: 30px; }
	.stage__actions .btn { flex: 1 1 100%; }
	.band { margin-top: 56px; }
	.fame__grid { grid-template-columns: 1fr; }
	.chronicle__panel { padding: 24px 20px; }
	.classes__stage { padding: 24px 20px; }
	.classes__tab { flex: 0 0 72px; }

}
@media (prefers-reduced-motion: reduce) {
	.sigil__ring, .classes__portrait, .stage__emblem { animation: none; }
	html { scroll-behavior: auto; }
	* { transition-duration: .01ms !important; }
}

/* ==================================================================
 * PAGINAS INTERNAS DEL CMS
 * Estas reglas visten el HTML que genera el CMS en registro, rankings,
 * tienda, soporte, mercado, panel de cuenta, etc.
 * ================================================================== */
.page { color: var(--text); }
.page #content, .page #box1, .page #content_center, .page .lk-page { display: block; width: auto; float: none; margin: 0; padding: 0; background: none; }
.page .title1 { display: none; }
.page [style*="margin-bottom:55px"], .page [style*="margin-bottom: 55px"] { margin-bottom: 16px !important; }
.page .box-style1 { background: var(--panel); padding: 28px 32px 30px; margin: 0 0 16px !important; }
.page .box-style1 h2.title, .page .box-style3 h2, .page .lk-block h3, .page .lk-page > h3 {
	font: 700 28px/1.1 var(--f-display); color: var(--frost); margin: 0 0 20px; padding: 0; background: none; border: 0; text-align: left;
}
.page .entry { color: var(--text); font-size: 15px; line-height: 1.6; padding: 0; }
.page .entry p { margin: 0 0 12px; }
.page .entry b, .page .entry strong { color: #fff; }
.page .entry a:not(.btn):not(.custom_button):not(.button-style) { color: var(--amethyst-2); }
.page hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }

/* Formularios en tabla */
.page .form table, .page form table { width: 100%; border-collapse: separate; border-spacing: 0 10px; }
.page .form td, .page form td { padding: 0 12px 0 0; vertical-align: middle; color: var(--muted); font-size: 14px; font-weight: 500; }
.page .form td:last-child, .page form td:last-child { padding-right: 0; color: var(--text); }
.page .form td[colspan], .page form td[colspan] { padding-top: 6px; }
.page textarea { min-height: 140px; resize: vertical; }
.page select, .page .custom-select { appearance: none; -webkit-appearance: none; padding-right: 36px;
	background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(-45deg, transparent 50%, var(--muted) 50%);
	background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.page input[type="checkbox"], .page input[type="radio"] { accent-color: var(--amethyst); width: 18px; height: 18px; vertical-align: -3px; }
.page label { color: var(--muted); }
.page .g-recaptcha { margin: 6px 0; }

/* Botones del CMS */
.page .custom_button, .page .custom_button2, .page .button-style, .page .button_rank, .page .lkButton, .page .buttonn,
.page button[type="submit"], .page input[type="submit"], .page input[type="button"], .page .add_to_card, .page #vote-options li button {
	--cut: 8px;
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	margin: 4px 4px 4px 0; padding: 12px 20px; min-height: 0; width: auto; height: auto;
	font: 600 14px/1 var(--f-ui); letter-spacing: .02em; color: #fff; text-shadow: none; text-transform: none;
	background: var(--amethyst); border: 0; border-radius: 0; box-shadow: none; cursor: pointer;
	clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
	transition: background-color .2s, filter .2s;
}
.page .custom_button:hover, .page .custom_button2:hover, .page .button-style:hover, .page .button_rank:hover, .page .lkButton:hover,
.page button[type="submit"]:hover, .page input[type="submit"]:hover, .page input[type="button"]:hover, .page .add_to_card:hover { background: #9b6dff; color: #fff; }
.page .custom_button.selected, .page .button_rank.selected, .page .custom_button.active { background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--soul); }
.page [id^="rankings_select_"] { display: flex; flex-wrap: wrap; justify-content: flex-start !important; gap: 6px; margin-bottom: 20px; text-align: left !important; }
.page [id^="rankings_select_"] .custom_button { margin: 0; background: var(--panel-2); color: var(--muted); }
.page [id^="rankings_select_"] .custom_button:hover { color: #fff; background: #2b1f4d; }
.page [id^="rankings_select_"] .custom_button:focus, .page [id^="rankings_select_"] .custom_button:active { color: #fff; box-shadow: inset 0 -2px 0 var(--soul); }

/* Filtro por clase en rankings */
.page #rank_by_class { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; text-align: left !important; }
.page #rank_by_class br { display: none; }
.page #rank_by_class .custom_button { margin: 0; padding: 8px 12px; font-size: 12px; background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-2); }
.page #rank_by_class .custom_button:hover, .page #rank_by_class .custom_button:focus { color: #fff; background: rgba(138, 85, 255, .18); }
.page .rankings > br, .page [id^="rankings_content_"] > br { display: none; }

/* Pestanas (servidores, secciones) */
.page .tabrow { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0 0 20px; padding: 0; border-bottom: 1px solid var(--line); text-align: left; line-height: 1.3; }
.page .tabrow::before, .page .tabrow li::before, .page .tabrow li::after { display: none !important; }
.page .tabrow li { margin: 0; padding: 0; border: 0; background: none; box-shadow: none; border-radius: 0; z-index: auto; }
.page .tabrow a { display: block; padding: 10px 16px; color: var(--muted); font-weight: 600; font-size: 14px; }
.page .tabrow a:hover { color: #fff; }
.page .tabrow li.selected { background: none; }
.page .tabrow li.selected a { color: #fff; box-shadow: inset 0 -3px 0 var(--soul); }

/* Tablas de rankings y listados */
.page .ranking-table, .page .lk-table, .page table.table, .page .rankings table {
	width: 100%; border-collapse: collapse; border: 0; background: transparent; font-size: 14px; margin: 0 0 16px;
}
.page .ranking-table th, .page .ranking-table .main-tr td, .page .ranking-table thead td, .page .lk-table th {
	background: var(--panel-2); color: var(--muted); font-weight: 600; font-size: 13px; text-align: left;
	padding: 12px 14px; border: 0; border-bottom: 1px solid var(--line-2); text-shadow: none; text-align: left !important;
}
.page .ranking-table td, .page .lk-table td { padding: 12px 14px; border: 0; border-bottom: 1px solid var(--line); color: var(--text); background: transparent; text-align: left !important; }
.page .ranking-table tbody tr:hover td { background: rgba(138, 85, 255, .07); }
.page .ranking-table a { color: #fff; font-weight: 600; }
.page .ranking-table a:hover { color: var(--amethyst-2); }
.page .ranking-table sup { color: var(--soul) !important; }
.page .ranking-table img { vertical-align: middle; }
.page .rankings, .page [id^="rankings_content_"] { overflow-x: auto; }

/* Avisos del CMS */
.page .i_note, .page .s_note, .page .w_note, .page .e_note, .page .alert-box, .page .discount_notice {
	position: relative; display: block; margin: 0 0 16px; padding: 14px 18px 14px 20px;
	background: var(--panel-2); color: var(--text); border: 0; border-radius: 0; text-align: left;
	font-size: 14px; line-height: 1.5; text-shadow: none; box-shadow: inset 3px 0 0 var(--amethyst-2); background-image: none;
}
.page .s_note { box-shadow: inset 3px 0 0 var(--mint); }
.page .w_note, .page .discount_notice { box-shadow: inset 3px 0 0 #ffb547; }
.page .e_note, .page .alert-box { box-shadow: inset 3px 0 0 #ff5c84; }
.page .discount_notice .ribbon-discount-green { display: none; }

/* Paginacion */
.page #pagination, .page .pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin: 16px 0 0; }
.page #pagination ul { display: flex; flex-wrap: wrap; gap: 4px; padding: 0; margin: 0; list-style: none; }
.page #pagination a, .page .pagination a, .page .pagination strong, .page .pagination span {
	display: inline-grid; place-items: center; min-width: 38px; height: 38px; padding: 0 10px;
	background: var(--panel-2); color: var(--muted); border: 0; border-radius: 0; font-weight: 600;
}
.page #pagination a:hover, .page .pagination a:hover { color: #fff; background: #2b1f4d; }
.page #pagination a.on, .page .pagination strong, .page .pagination .active { background: var(--amethyst); color: #fff; }

/* Tienda y mercado */
.page #ucp_info { background: none; border: 0; margin-bottom: 16px; }
.page #ucp_info td { border: 0; color: var(--muted); }
.page #ucp_info a { display: inline-block; margin: 2px; padding: 8px 12px; background: var(--panel-2); color: var(--muted); font-weight: 600; font-size: 13px; }
.page #ucp_info a:hover, .page #ucp_info a.selected { color: #fff; background: #2b1f4d; }
.page .item_table { width: 100%; border-collapse: separate; border-spacing: 10px; }
.page .item_table > tbody > tr > td { vertical-align: top; }
.page .each_item { width: 100%; background: var(--panel-2); border: 0; border-collapse: collapse; }
.page .each_item td { border: 0; background: none; }
.page .each_item .item_name { padding: 10px 10px 4px; text-align: center; font-weight: 600; font-size: 13px; }
.page .each_item .item_name a { color: var(--frost); }
.page .each_item .item_bg { padding: 10px; height: 130px; text-align: center; background: radial-gradient(circle, rgba(138, 85, 255, .18), transparent 70%); }
.page .item_image { cursor: pointer; }
.page .each_item:hover { box-shadow: inset 0 0 0 1px var(--amethyst); }

/* Ventanas del CMS (compra, filtro, subasta) */
#buy_windows, #add_to_card_windows, #auction_bet, #item_filter {
	background: var(--panel-2) !important; color: var(--text); border: 0 !important; border-radius: 0 !important; box-shadow: inset 0 0 0 1px var(--line-2), 0 30px 60px rgba(0, 0, 0, .5) !important;
}
.modal-header, .modal-header2 { background: none !important; border-bottom: 1px solid var(--line) !important; }
.modal-header h2, .modal-header2 h2 { font: 700 24px/1.2 var(--f-display) !important; color: var(--frost) !important; text-shadow: none !important; }
#tooltip { background: rgba(10, 6, 20, .96) !important; border: 1px solid var(--line-2) !important; color: var(--text) !important; border-radius: 0 !important; }

/* Panel de cuenta (otras paginas que usan el formato anterior) */
.page #character-info table { width: 100%; border-collapse: separate; border-spacing: 8px; }
.page #character-info td { background: var(--panel-2); border: 0; padding: 16px; vertical-align: top; color: var(--muted); font-size: 13px; }
.page #character-info ul { list-style: none; margin: 0; padding: 0; }
.page #character-info a p { margin: 0 0 4px; font-weight: 700; font-size: 15px; color: #fff; }
.page .lk-block { background: var(--panel); padding: 26px 28px; margin-top: 16px; }

/* Panel de cuenta nuevo */
.acct { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; }
.acct__hero {
	padding: 30px 32px; display: flex; flex-direction: column; gap: 24px;
	background: radial-gradient(420px 260px at 90% 0%, rgba(255, 79, 216, .18), transparent 70%), linear-gradient(150deg, #2a1a4e, #150e27);
}
.acct__hello { font-size: 14px; color: var(--soul); font-weight: 600; }
.acct__name { margin-top: 4px; font: 800 clamp(40px, 5vw, 58px)/1 var(--f-display); color: #fff; overflow-wrap: anywhere; }
.acct__server { margin-top: 6px; color: var(--muted); }
.acct__wallet { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.acct__wallet div { background: rgba(10, 6, 20, .45); padding: 12px 14px; }
.acct__wallet dt { font-size: 12px; color: var(--dim); }
.acct__wallet dd { margin: 2px 0 0; font: 700 24px/1.1 var(--f-ui); color: #fff; font-variant-numeric: tabular-nums; }
.acct__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.acct__facts { background: var(--panel); padding: 26px 28px; }
.acct__facts dl { margin: 0; display: grid; gap: 0; }
.acct__facts dl div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.acct__facts dl div:last-child { border-bottom: 0; }
.acct__facts dt { color: var(--muted); font-size: 14px; }
.acct__facts dd { margin: 0; color: #fff; font-weight: 600; text-align: right; overflow-wrap: anywhere; min-width: 0; }
.acct__tools { grid-column: 1 / -1; margin-top: 40px; }
.acct__tools .band__title { margin-bottom: 20px; }
.tools { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.tool { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 18px 20px 20px; background: var(--panel); color: var(--muted); transition: background-color .2s; }
.tool__name { color: #fff; font-size: 16px; }
.tool__text { font-size: 13px; line-height: 1.5; }
.tool:hover { background: var(--panel-2); color: var(--text); box-shadow: inset 0 -2px 0 var(--soul); }

/* Descargas */
.dl__intro { color: var(--muted); max-width: 70ch; margin-bottom: 24px; }
.dl__intro b { color: var(--frost); }
.dl__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.dl__item { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 30px; background: var(--panel); }
.dl__name { font: 700 30px/1.05 var(--f-display); color: #fff; }
.dl__desc { margin-top: 6px; color: var(--muted); }
.dl__meta { margin: 12px 0 0; display: flex; gap: 28px; }
.dl__meta div { display: flex; flex-direction: column; }
.dl__meta dt { font-size: 12px; color: var(--dim); }
.dl__meta dd { margin: 0; font-weight: 600; color: var(--frost); }

@media (max-width: 900px) {
	.acct { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
	.page .box-style1 { padding: 22px 18px 24px; }
	.page .form table, .page .form tbody, .page .form tr, .page .form td,
	.page form table, .page form tbody, .page form tr, .page form td { display: block; width: 100% !important; }
	.page .form td, .page form td { padding: 0 0 6px; }
	.page .form tr, .page form tr { margin-bottom: 10px; }
	.page .item_table, .page .item_table > tbody, .page .item_table > tbody > tr { display: block; }
	.page .item_table > tbody > tr > td { display: inline-block; width: calc(50% - 4px); }
	.page .ranking-table th, .page .ranking-table td { padding: 10px 8px; }
	.acct__hero, .acct__facts { padding: 22px 20px; }
	.acct__wallet { grid-template-columns: 1fr 1fr; }
	.dl__item { flex-direction: column; align-items: stretch; padding: 22px 20px; }
}

/* Noticia completa */
.article { display: flex; justify-content: center; }
.article__card { width: 100%; max-width: 820px; background: rgba(23, 16, 41, .88); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); padding: 40px 48px 36px; clip-path: polygon(0 0, calc(100% - var(--notch)) 0, 100% var(--notch), 100% 100%, var(--notch) 100%, 0 calc(100% - var(--notch))); }
.article__meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--dim); }
.article__meta span { color: var(--soul); font-weight: 600; }
.article__title { margin-top: 8px; font: 800 clamp(34px, 4vw, 50px)/1.05 var(--f-display); color: #fff; }
.article__body { margin-top: 22px; font-size: 16px; line-height: 1.8; color: var(--text); text-align: left; }
.article__body > * { max-width: 100% !important; }
.article__body p { margin: 0 0 14px; }
.article__body img { max-width: 100%; height: auto; }
.article__body [style*="text-align: center"], .article__body [align="center"] { text-align: center; }
.article__back { margin-top: 24px; }
.page-home .page-head { max-width: 820px; margin-left: auto; margin-right: auto; }
@media (max-width: 640px) { .article__card { padding: 26px 20px; } }

/* Galeria */
.gallery__tabs { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.gallery__tabs a { padding: 10px 16px; color: var(--muted); font-weight: 600; font-size: 14px; }
.gallery__tabs a:hover { color: #fff; }
.gallery__tabs a[aria-current="page"] { color: #fff; box-shadow: inset 0 -3px 0 var(--soul); }
.gallery__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.gallery__link { display: block; position: relative; overflow: hidden; aspect-ratio: 16 / 10; background: var(--panel); clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px)); }
.gallery__link img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease, filter .3s; filter: saturate(.9); }
.gallery__link::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(179, 140, 255, .25); pointer-events: none; transition: box-shadow .2s; }
.gallery__link:hover img, .gallery__link:focus-visible img { transform: scale(1.05); filter: saturate(1.1); }
.gallery__link:hover::after { box-shadow: inset 0 0 0 2px var(--soul); }
.gallery__empty { color: var(--muted); padding: 24px 0; }
.lightbox { position: fixed; inset: 0; z-index: 1300; display: grid; place-items: center; background: rgba(5, 3, 10, .92); padding: 56px max(16px, env(safe-area-inset-right, 0px)) 56px max(16px, env(safe-area-inset-left, 0px)); }
.lightbox[hidden] { display: none !important; }
.lightbox__img { max-width: min(1400px, 100%); max-height: calc(100vh - 120px); object-fit: contain; box-shadow: 0 20px 60px rgba(0, 0, 0, .6); }
.lightbox__close { position: absolute; top: calc(12px + env(safe-area-inset-top, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); width: 44px; height: 44px; border: 0; background: transparent; color: #fff; font-size: 34px; cursor: pointer; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 64px; border: 0; background: rgba(23, 16, 41, .7); color: #fff; font-size: 40px; line-height: 1; cursor: pointer; }
.lightbox__nav:hover, .lightbox__close:hover { color: var(--soul); }
.lightbox__prev { left: max(12px, env(safe-area-inset-left, 0px)); }
.lightbox__next { right: max(12px, env(safe-area-inset-right, 0px)); }
.lightbox__count { position: absolute; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); left: 0; right: 0; text-align: center; color: var(--muted); font-size: 13px; }
body.lightbox-open { overflow: hidden; }
@media (max-width: 640px) { .gallery__grid { grid-template-columns: 1fr 1fr; gap: 8px; } }

/* ==================================================================
 * BARRA LATERAL DE LAS PAGINAS INTERNAS + SEÑOR DEL CASTILLO
 * ================================================================== */
.page-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
.page-layout:has(> .side) { grid-template-columns: minmax(0, 1fr) 320px; }
.side { display: flex; flex-direction: column; gap: 14px; }
.side__panel {
	background: rgba(23, 16, 41, .86); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); padding: 18px 20px 14px;
	clip-path: polygon(0 0, calc(100% - var(--notch)) 0, 100% var(--notch), 100% 100%, var(--notch) 100%, 0 calc(100% - var(--notch)));
}
.side__title { font: 700 22px/1 var(--f-display); color: var(--frost); margin-bottom: 10px; }
.side__panel .link { margin-top: 8px; }
.side__discord { clip-path: polygon(0 0, calc(100% - var(--notch)) 0, 100% var(--notch), 100% 100%, var(--notch) 100%, 0 calc(100% - var(--notch))); }
.ladder__row { animation: sk-rise .35s ease-out both; }
@keyframes sk-rise { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* Campeon en la barra lateral */
.champion--side { min-height: 230px; padding: 22px 22px 22px; }
.champion--side .champion__label { top: 18px; left: 22px; }
.champion--side .champion__name { font-size: 36px; }
.champion--side .champion__stats { gap: 18px; margin-top: 12px; }
.champion--side .champion__stats dd { font-size: 20px; }
.champion--side .champion__rank { font-size: 200px; }
.champion--side .champion__art { width: 72%; }

/* Señor del castillo */
.castle {
	position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 14px; padding: 26px 26px 24px; min-height: 230px;
	background:
		radial-gradient(360px 240px at 100% 0%, rgba(255, 196, 92, .16), transparent 70%),
		linear-gradient(150deg, #24163f, #120c22);
	box-shadow: inset 0 0 0 1px rgba(226, 173, 92, .22);
	clip-path: polygon(0 0, calc(100% - var(--notch)) 0, 100% var(--notch), 100% 100%, var(--notch) 100%, 0 calc(100% - var(--notch)));
}
.castle::after {
	content: ""; position: absolute; right: -30px; bottom: -40px; width: 200px; height: 200px; opacity: .08; pointer-events: none;
	background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath fill='%23ffd88a' d='M8 58V30h6v6h6v-6h6v6h4v-6h6v6h4v-6h6v6h6v-6h6v28H38V46a6 6 0 0 0-12 0v12z'/%3E%3Cpath fill='%23ffd88a' d='M14 30V18l6-6 6 6v12M38 30V18l6-6 6 6v12M28 30V10l4-6 4 6v20'/%3E%3C/svg%3E");
}
.castle__label { font-size: 13px; font-weight: 600; color: #f2c46d; }
.castle__owner { display: flex; align-items: center; gap: 14px; position: relative; z-index: 1; }
.castle__mark { width: 64px; height: 64px; image-rendering: pixelated; box-shadow: 0 0 0 2px #e2ad5c, 0 0 18px rgba(242, 196, 109, .45); background: #000; }
.castle__crest { width: 56px; height: 64px; flex: none; background: linear-gradient(160deg, #f2c46d, #8a5a1f); clip-path: polygon(50% 0, 100% 15%, 100% 55%, 50% 100%, 0 55%, 0 15%); opacity: .85; }
.castle__guild { font: 800 30px/1 var(--f-display); }
.castle__guild a { color: #fff; }
.castle__master { margin-top: 4px; font-size: 13px; color: var(--muted); }
.castle__info { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; position: relative; z-index: 1; }
.castle__info dt { font-size: 12px; color: var(--dim); }
.castle__info dd { margin: 0; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.castle__timer { color: #f2c46d !important; }
.castle .link { position: relative; z-index: 1; color: #f2c46d; margin-top: auto; }
.castle--side { min-height: 0; padding: 20px 22px; }
.castle--side .castle__guild { font-size: 26px; }

/* Guild #1 */
.king { display: none; align-items: center; gap: 12px; padding: 10px 12px; margin-bottom: 6px; background: rgba(138, 85, 255, .12); box-shadow: inset 3px 0 0 var(--soul); }
.king.is-ready { display: flex; }
.king__mark { width: 48px; height: 48px; image-rendering: pixelated; background: #000; box-shadow: 0 0 0 1px var(--line-2); flex: none; }
.king__label { font-size: 11px; color: var(--soul); font-weight: 600; }
.king__name { display: block; font: 700 22px/1.05 var(--f-display); color: #fff; }
.king__meta { font-size: 12px; color: var(--muted); }

/* Tablas que genera el CMS (asesinos, en linea, votantes, BC, DS, CC, mercado) */
.side__table table, .side__table .sidebar_rank { width: 100%; border-collapse: collapse; font-size: 13px; }
.side__table th { text-align: left; font-weight: 600; color: var(--dim); font-size: 12px; padding: 6px 4px; border-bottom: 1px solid var(--line-2); }
.side__table td { padding: 8px 4px; border-bottom: 1px solid var(--line); color: var(--text); }
.side__table tr:last-child td { border-bottom: 0; }
.side__table a { color: #fff; font-weight: 600; }
.side__table sup { color: var(--soul) !important; }
.side__table .i_note { padding: 10px 0; color: var(--muted); font-size: 13px; background: none; box-shadow: none; }

/* Records en la portada */
.records { margin-top: 16px; background: rgba(23, 16, 41, .86); padding: 6px 22px 18px; clip-path: polygon(0 0, calc(100% - var(--notch)) 0, 100% var(--notch), 100% 100%, var(--notch) 100%, 0 calc(100% - var(--notch))); }
.records__tabs { display: flex; flex-wrap: wrap; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.records__tabs button { border: 0; background: none; cursor: pointer; padding: 12px 14px; color: var(--muted); font: 600 14px/1 var(--f-ui); }
.records__tabs button:hover { color: #fff; }
.records__tabs button[aria-selected="true"] { color: #fff; box-shadow: inset 0 -3px 0 var(--soul); }

/* Portada: salon de la fama en 2 x 2 */
.fame__grid { grid-template-columns: 1.2fr 1fr; }
.fame__grid .champion, .fame__grid .castle { min-height: 300px; }

@media (max-width: 1180px) {
	.page-layout:has(> .side) { grid-template-columns: minmax(0, 1fr); }
	.side { position: static; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
}
@media (max-width: 640px) {
	.fame__grid { grid-template-columns: 1fr; }
	.side { grid-template-columns: 1fr; }
	.castle__info { grid-template-columns: 1fr 1fr; }
}

/* Pie de pagina centrado */
.foot { flex-direction: column; justify-content: center; text-align: center; gap: 14px; }
.foot__name img { margin: 0 auto; }
.foot__links { justify-content: center; }
.foot__legal { flex-basis: auto; }

/* Titulos en Cinzel (la letra de "MU ONLINE" del logo): un poco mas
   compactos que la letra anterior, con acabado plateado */
.band__title, .page-head__title, .stage__title:not(.brand-text), .classes__name, .champion__name, .castle__guild,
.chronicle__title, .article__title, .acct__name, .dl__name, .modal__title, .step__title, .codex__title,
.ladder__title, .side__title, .realm__name, .next__name, .notice__title, .launch__title, .king__name,
.foot__name.brand-text, .topbar__name:not(.brand-text) {
	font-weight: 700; letter-spacing: .01em; line-height: 1.1;
}
.band__title, .page-head__title, .classes__name, .champion__name, .acct__name, .chronicle__title, .article__title {
	background: linear-gradient(180deg, #ffffff 0%, #ece4ff 55%, #b9a6e8 100%);
	-webkit-background-clip: text; background-clip: text; color: transparent;
}
.band__title { font-size: clamp(28px, 3.2vw, 38px); }
.page-head__title { font-size: clamp(32px, 4vw, 48px); }
.classes__name { font-size: clamp(32px, 4vw, 50px); }
.champion__name { font-size: clamp(28px, 3vw, 40px); }
.champion--side .champion__name { font-size: 28px; }
.champion__name a, .castle__guild a { color: inherit; }
.champion__name a { -webkit-text-fill-color: transparent; }
.castle__guild { font-size: 24px; }
.castle--side .castle__guild { font-size: 21px; }
.chronicle__title, .article__title { font-size: clamp(26px, 2.6vw, 34px); }
.acct__name { font-size: clamp(32px, 4vw, 46px); }
.dl__name { font-size: 24px; }
.modal__title { font-size: 28px; }
.step__title { font-size: 19px; }
.step::before { font-family: var(--f-display); font-weight: 900; }
.codex__title, .ladder__title, .side__title { font-size: 19px; }
.realm__name { font-size: 20px; }
.next__name { font-size: 24px; }
.notice__title { font-size: 17px; }
.launch__title { font-size: 18px; }
.king__name { font-size: 18px; }
.champion__rank { font-weight: 900; }
.page .box-style1 h2.title, .page .box-style3 h2, .page .lk-block h3, .page .lk-page > h3 { font-size: 22px; font-weight: 700; }

/* Recuadros que contienen elementos flotantes (baul, mercado, soporte...):
   el recuadro crece hasta abarcarlos y no los recorta */
.page .box-style1, .page .entry, .page .box-style3 { display: flow-root; }
/* Baul: los dos cofres centrados, uno junto al otro */
.wh-pair { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; margin-top: 18px; }
.wh-pair .wh_items { float: none !important; margin: 0 !important; position: relative; flex: none; }

/* Baul: botones al seleccionar un objeto */
.wh-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 16px 0 4px; }
.wh-pair .square { z-index: 2; }

/* "Season 9" centrado bajo MU ONLINE del logo (el texto MU ONLINE esta
   un poco a la derecha del centro de la imagen) */
.stage__logo + .stage__season { max-width: 520px; margin-left: -10px; text-align: center; transform: translateX(1.4%); }
/* Saldos de la cuenta: se adaptan a 1, 2 o 3 casillas */
.acct__wallet { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)) !important; }


/* =========================================================================
 * EVENTOS 2.1: lista corta (barra lateral y portada) + pagina /eventos
 * ========================================================================= */
.is-home #eventos { display: none; }
.realm__next .next-list { margin: 6px -22px 4px; }
.next-list { list-style: none; margin: 0; padding: 0; }
.side__panel .next-list { margin: 4px -20px 2px; }
.nl { display: grid; grid-template-columns: 50px 1fr auto; align-items: center; gap: 0 10px; padding: 9px 20px; border-top: 1px solid var(--line); }
.realm__next .nl { padding: 9px 22px; }
.nl:first-child { border-top: 0; }
.nl__time { font-weight: 700; color: var(--frost); font-variant-numeric: tabular-nums; font-size: 14px; }
.nl__main { display: flex; flex-direction: column; min-width: 0; }
.nl__name { font-weight: 600; color: var(--text); font-size: 14px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nl__map { font-size: 12px; color: var(--dim); line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nl__left { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.nl.is-soon { background: rgba(138, 85, 255, .10); box-shadow: inset 3px 0 0 var(--amethyst); }
.nl.is-soon .nl__left { color: var(--amethyst-2); }
.nl.is-live { background: rgba(255, 79, 216, .08); box-shadow: inset 3px 0 0 var(--soul); }
.nl.is-live .nl__time { color: var(--soul); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.nl.is-live .nl__left { color: #ffb3ef; }

/* Pagina /eventos */
.evp { --ev-evento: var(--amethyst-2); --ev-invasion: #ff7ad9; --ev-jefe: #ffcf5a; --ev-bono: var(--mint); }
.evp__bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 20px; margin-bottom: 10px; }
.evp__filters, .evp__tz { display: flex; flex-wrap: wrap; gap: 8px; }
.evp__chip, .evp__tzbtn {
	font: 600 14px var(--f-ui); color: var(--muted); background: var(--panel); border: 1px solid var(--line-2);
	padding: 8px 14px; cursor: pointer; transition: color .15s, background .15s, border-color .15s;
}
.evp__chip b { font-weight: 700; color: var(--dim); margin-left: 4px; }
.evp__chip:hover, .evp__tzbtn:hover { color: var(--text); border-color: var(--amethyst); }
.evp__chip[aria-pressed="true"], .evp__tzbtn[aria-pressed="true"] { color: #fff; background: var(--amethyst); border-color: var(--amethyst); }
.evp__chip[aria-pressed="true"] b { color: rgba(255, 255, 255, .8); }
.evp__chip:focus-visible, .evp__tzbtn:focus-visible { outline: 2px solid var(--soul); outline-offset: 2px; }
.evp__note { color: var(--muted); font-size: 14px; margin: 0 0 26px; }
.evp__h { font: 700 20px var(--f-display); color: var(--frost); letter-spacing: .03em; margin: 0 0 14px; }

.evp__up { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-bottom: 36px; }
.evc {
	--ac: var(--ev-evento); position: relative; background: var(--panel); padding: 18px 20px 16px;
	border-top: 3px solid var(--ac);
	clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--notch)), calc(100% - var(--notch)) 100%, 0 100%);
}
.evc--invasion { --ac: var(--ev-invasion); } .evc--jefe { --ac: var(--ev-jefe); } .evc--bono { --ac: var(--ev-bono); }
.evc__tag { margin: 0 0 6px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ac); display: flex; align-items: center; gap: 6px; }
.evc__tag .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--soul); animation: evpulse 1.6s infinite; }
.evc.is-live .evc__tag { color: var(--soul); }
.evc__name { margin: 0; font: 700 19px var(--f-display); color: var(--text); line-height: 1.2; }
.evc__map { margin: 2px 0 12px; color: var(--muted); font-size: 14px; }
.evc__count { margin: 0; font-size: 14px; color: var(--muted); }
.evc__count b { display: block; font-size: 26px; line-height: 1.15; color: var(--frost); font-variant-numeric: tabular-nums; }
.evc.is-live .evc__count b { color: #ffb3ef; }
.evc__at { margin: 4px 0 0; font-size: 13px; color: var(--dim); }
.evc .next__bar { margin: 12px 0 0; }

.evp__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.evx {
	--ac: var(--ev-evento); background: rgba(23, 16, 41, .86); padding: 18px 20px; border-left: 3px solid var(--ac);
	display: flex; flex-direction: column; gap: 8px;
	clip-path: polygon(0 0, calc(100% - var(--notch)) 0, 100% var(--notch), 100% 100%, 0 100%);
}
.evx--invasion { --ac: var(--ev-invasion); } .evx--jefe { --ac: var(--ev-jefe); } .evx--bono { --ac: var(--ev-bono); }
.evx.is-live { background: rgba(255, 79, 216, .07); }
.evx__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.evx__name { margin: 0; font: 700 18px var(--f-display); color: var(--text); line-height: 1.2; }
.evx__map { margin: 3px 0 0; font-size: 14px; color: var(--muted); }
.evx__cat { flex: none; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ac); border: 1px solid currentColor; padding: 3px 8px; }
.evx__info { margin: 0; font-size: 14px; line-height: 1.5; color: var(--text); opacity: .88; }
.evx__freq { margin: 0; font-size: 13px; color: var(--dim); }
.evx__left { margin: 0; font-size: 14px; font-weight: 600; color: var(--frost); font-variant-numeric: tabular-nums; }
.evx.is-live .evx__left { color: #ffb3ef; }
.evx__times { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tchip { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; padding: 4px 8px; background: var(--void); border: 1px solid var(--line); color: var(--text); }
.tchip--past { color: var(--dim); opacity: .55; }
.tchip--next { background: var(--amethyst); border-color: var(--amethyst); color: #fff; }
.tchip--live { background: var(--soul); border-color: var(--soul); color: #1a0716; }
.evp__empty { color: var(--muted); }
@keyframes evpulse { 0% { box-shadow: 0 0 0 0 rgba(255, 79, 216, .7); } 70% { box-shadow: 0 0 0 8px rgba(255, 79, 216, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 79, 216, 0); } }
@media (prefers-reduced-motion: reduce) { .evc__tag .dot { animation: none; } }
@media (max-width: 640px) {
	.evp__bar { flex-direction: column; align-items: stretch; }
	.evp__grid { grid-template-columns: 1fr; }
	.evc__count b { font-size: 22px; }
}

.tchip--more { background: none; border-color: transparent; color: var(--dim); font-weight: 500; }
