/* Sistema del Cazador · NL4F — ventanas del Sistema (azul eléctrico sobre noche) */
.kcz {
	--z-fondo: #070C1A;
	--z-panel: rgba(13, 24, 48, .92);
	--z-borde: rgba(92, 200, 255, .38);
	--z-brillo: #5CC8FF;
	--z-brillo2: #9BE7FF;
	--z-tinta: #E6F1FF;
	--z-suave: #8EA3C4;
	--z-oro: #FFD166;
	--z-mal: #FF6B81;
	--z-bien: #6FE3A5;
	--z-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
	background: radial-gradient(1200px 600px at 50% -10%, #12306A 0%, transparent 60%), linear-gradient(180deg, #081022, var(--z-fondo));
	color: var(--z-tinta);
	min-height: 70vh;
	padding: 18px 0 96px;
	font-size: 15px;
	line-height: 1.45;
}
.kcz *, .kcz *::before, .kcz *::after { box-sizing: border-box; }
.kcz a { color: var(--z-brillo2); }
.kcz p { margin: 6px 0; }
.kcz-marco { max-width: 1180px; margin: 0 auto; padding: 0 14px; }
.kcz-suave { color: var(--z-suave); font-size: 13.5px; }
.kcz-mal { color: var(--z-mal); }
.kcz-grande { font-size: 26px; color: var(--z-brillo2); text-shadow: 0 0 12px rgba(92, 200, 255, .6); }
.kcz-titulo { font-family: var(--z-mono); font-size: clamp(22px, 4vw, 32px); letter-spacing: .02em; margin: 6px 0 10px; color: #fff; text-shadow: 0 0 18px rgba(92, 200, 255, .55); line-height: 1.15; }
.kcz-sistema-msg { font-family: var(--z-mono); color: var(--z-brillo); font-size: 13px; letter-spacing: .06em; margin: 0 0 6px; }
.kcz-intro { color: var(--z-suave); margin: 4px 0 14px; }

/* Cabecera */
.kcz-cab { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin-bottom: 14px; }
.kcz-cab__titulo { font-family: var(--z-mono); font-weight: 700; letter-spacing: .14em; font-size: 14px; color: var(--z-brillo2); display: flex; gap: 8px; align-items: center; text-shadow: 0 0 10px rgba(92, 200, 255, .7); }
.kcz-tabs { display: flex; gap: 6px; overflow-x: auto; flex: 1 1 100%; order: 3; padding-bottom: 2px; scrollbar-width: none; }
.kcz-tabs::-webkit-scrollbar { display: none; }
.kcz-tabs a { flex: 0 0 auto; display: inline-flex; gap: 6px; align-items: center; padding: 8px 13px; border: 1px solid var(--z-borde); border-radius: 10px; color: var(--z-tinta); text-decoration: none; font-size: 14px; background: rgba(13, 24, 48, .7); min-height: 42px; }
.kcz-tabs a.es-activa { background: linear-gradient(180deg, rgba(92, 200, 255, .28), rgba(92, 200, 255, .08)); border-color: var(--z-brillo); box-shadow: 0 0 14px rgba(92, 200, 255, .35) inset; }
.kcz-yo { margin-left: auto; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; font-family: var(--z-mono); font-size: 13px; }
.kcz-yo__nv { color: var(--z-brillo2); font-weight: 700; }
.kcz-yo__exp { width: 90px; }
.kcz-yo__dato { white-space: nowrap; }

/* Paneles */
.kcz-rejilla { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .kcz-rejilla { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .kcz-rejilla--inv { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); } }
.kcz-panel { position: relative; display: block; background: var(--z-panel); border: 1px solid var(--z-borde); border-radius: 14px; padding: 16px 16px 14px; box-shadow: 0 0 0 1px rgba(92, 200, 255, .06) inset, 0 10px 30px rgba(0, 0, 0, .35); margin-bottom: 14px; }
.kcz-rejilla > .kcz-panel { margin-bottom: 0; }
.kcz-panel::before { content: ''; position: absolute; inset: 0 0 auto; height: 2px; border-radius: 14px 14px 0 0; background: linear-gradient(90deg, transparent, var(--z-brillo), transparent); opacity: .8; }
.kcz-panel--aviso { border-color: rgba(255, 209, 102, .5); }
.kcz-panel--aviso p, p.kcz-panel--aviso { font-family: var(--z-mono); font-size: 13.5px; color: var(--z-oro); }
.kcz-panel--gate { display: flex; justify-content: space-between; gap: 10px; align-items: center; text-decoration: none; color: var(--z-tinta) !important; border-color: var(--z-brillo); animation: kcz-latido 2.4s ease-in-out infinite; }
.kcz-h { font-family: var(--z-mono); font-size: 15px; letter-spacing: .08em; color: var(--z-brillo2); margin: 0 0 12px; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-weight: 700; }
.kcz-h:not(:first-of-type) { margin-top: 18px; }
.kcz-sub { font-family: var(--z-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--z-suave); margin: 14px 0 8px; display: flex; gap: 8px; align-items: center; font-weight: 700; }
.kcz-puntos { color: var(--z-oro); font-weight: 400; }
.kcz-acciones { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }

/* Botones */
.kcz-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--z-brillo); background: rgba(92, 200, 255, .14); color: #fff !important; font-weight: 700; font-size: 14px; cursor: pointer; text-decoration: none !important; font-family: inherit; line-height: 1.15; text-align: center; transition: background .15s, box-shadow .15s, transform .1s; }
.kcz-btn:hover:not(:disabled) { background: rgba(92, 200, 255, .26); box-shadow: 0 0 14px rgba(92, 200, 255, .4); }
.kcz-btn:active:not(:disabled) { transform: translateY(1px); }
.kcz-btn:disabled { opacity: .38; cursor: not-allowed; }
.kcz-btn small { font-weight: 400; opacity: .8; font-size: 11.5px; }
.kcz-btn--brillo { background: linear-gradient(180deg, #3AB6FF, #1C6FE0); border-color: #8FDBFF; box-shadow: 0 0 16px rgba(58, 182, 255, .45); }
.kcz-btn--borde { background: transparent; border-color: var(--z-borde); }
.kcz-btn--chico { min-height: 36px; padding: 0 12px; font-size: 13px; }
.kcz-btn--grande { min-height: 52px; padding: 0 26px; font-size: 16px; }
.kcz-btn--hab { border-color: #B57BFF; background: rgba(181, 123, 255, .14); flex-direction: column; padding: 6px 12px; }
.kcz :focus-visible { outline: 2px solid var(--z-brillo2); outline-offset: 2px; }

/* Barras y chips */
.kcz-barra { display: block; height: 7px; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; margin: 4px 0 2px; min-width: 60px; }
.kcz-barra > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #2F80ED, #5CC8FF); box-shadow: 0 0 8px rgba(92, 200, 255, .7); transition: width .35s; }
.kcz-barra--exp > span { background: linear-gradient(90deg, #B57BFF, #5CC8FF); }
.kcz-barra--vida > span { background: linear-gradient(90deg, #E0435A, #FF8A65); box-shadow: 0 0 8px rgba(255, 107, 129, .6); }
.kcz-barra--mana > span { background: linear-gradient(90deg, #2F6BFF, #5CC8FF); }
.kcz-chip { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 6px; font-family: var(--z-mono); font-weight: 700; font-size: 12.5px; color: #071022; background: var(--c, #9AA4B2); box-shadow: 0 0 10px var(--c, #9AA4B2); }
.kcz-chip--sin { background: #2A3550; color: var(--z-suave); box-shadow: none; }
.kcz-chip--hab, .kcz-chip--nv { background: rgba(181, 123, 255, .25); color: #E9D9FF; box-shadow: none; }
.kcz-chip--jefe { background: #FF5470; color: #fff; box-shadow: none; }
.kcz-tag { display: inline-block; font-size: 11.5px; padding: 1px 7px; margin: 0 4px 4px 0; border-radius: 99px; border: 1px solid var(--z-borde); color: var(--z-brillo2); }
.kcz-ok { color: var(--z-bien); font-weight: 700; }

/* Estado */
.kcz-ficha { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 0; align-items: center; }
.kcz-ficha dt { color: var(--z-suave); font-family: var(--z-mono); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; }
.kcz-ficha dd { margin: 0; }
.kcz-attrs { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.kcz-attrs li { display: grid; grid-template-columns: 1fr auto auto; gap: 2px 10px; align-items: center; padding: 7px 10px; border-radius: 9px; background: rgba(255, 255, 255, .03); border: 1px solid transparent; }
.kcz-attrs li.es-subido { border-color: var(--z-oro); }
.kcz-attrs small { grid-column: 1 / -1; color: var(--z-suave); font-size: 12px; }
.kcz-attrs__n { font-weight: 600; }
.kcz-attrs__v { font-family: var(--z-mono); font-size: 16px; }
.kcz-attrs__v em { color: var(--z-bien); font-style: normal; font-size: 13px; }
.kcz-attrs__mas { display: flex; gap: 4px; }
.kcz-attrs__mas button { width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--z-borde); background: rgba(92, 200, 255, .12); color: #fff; font-size: 18px; cursor: pointer; }
.kcz-stats { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.kcz-stats li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 8px; padding: 8px 10px; border-radius: 9px; background: rgba(255, 255, 255, .03); }
.kcz-stats b { font-family: var(--z-mono); color: var(--z-brillo2); }
.kcz-stats small { flex-basis: 100%; color: var(--z-suave); font-size: 11.5px; }
.kcz-misiones { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; }
.kcz-misiones li { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 10px; background: rgba(255, 255, 255, .03); }
.kcz-misiones li.es-hecha { opacity: .6; }
.kcz-misiones__ico { font-size: 20px; }
.kcz-misiones small { color: var(--z-suave); font-size: 12px; }
.kcz-llaves, .kcz-cons { list-style: none; padding: 0; margin: 0 0 10px; display: flex; flex-wrap: wrap; gap: 8px; }
.kcz-llaves li, .kcz-cons li { display: inline-flex; gap: 6px; align-items: center; padding: 5px 9px; border-radius: 8px; background: rgba(255, 255, 255, .04); font-size: 13.5px; }
.kcz-clases { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.kcz-clase { padding: 14px; border-radius: 12px; border: 1px solid var(--z-borde); background: rgba(92, 200, 255, .05); display: flex; flex-direction: column; gap: 4px; }
.kcz-clase h3 { margin: 0; font-size: 18px; color: #fff; }
.kcz-clase .kcz-btn { margin-top: auto; }
.kcz-clase__ico { font-size: 34px; }
.kcz-portada { text-align: center; padding: 34px 18px; }
.kcz-portada__lista { list-style: none; padding: 0; margin: 18px auto; max-width: 560px; text-align: left; display: grid; gap: 8px; }

/* Gates */
.kcz-gates { display: grid; gap: 10px; }
.kcz-gate-card { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--c); background: linear-gradient(90deg, rgba(92, 200, 255, .08), rgba(13, 24, 48, .92) 45%); }
.kcz-gate-card.es-bloqueada { filter: grayscale(.7); opacity: .6; }
.kcz-gate-card__rango { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-family: var(--z-mono); font-weight: 800; font-size: 22px; color: #fff; background: radial-gradient(circle, #1B2B52 0%, #050913 72%); box-shadow: 0 0 18px var(--c), 0 0 0 2px var(--c) inset; animation: kcz-portal 6s linear infinite; }
.kcz-gate-card h3 { margin: 0; font-size: 17px; color: #fff; }
.kcz-gate-card__mons { font-size: 20px; display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; }
.kcz-gate-card__jefe { font-size: 12.5px; padding: 2px 8px; border-radius: 99px; background: rgba(255, 84, 112, .18); color: #FFC2CC; }
.kcz-gate-card__candado { color: var(--z-suave); font-size: 13px; }
@media (max-width: 560px) { .kcz-gate-card { grid-template-columns: 52px 1fr; } .kcz-gate-card__rango { width: 52px; height: 52px; font-size: 18px; } .kcz-gate-card > .kcz-btn, .kcz-gate-card > a, .kcz-gate-card__candado { grid-column: 1 / -1; } }

/* Mapa de la gate */
.kcz-gate { position: relative; }
.kcz-gate.es-ocupado .kcz-mapa { cursor: progress; }
.kcz-hud { position: relative; z-index: 5; background: rgba(7, 12, 26, .94); border: 1px solid var(--z-borde); border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; display: grid; gap: 8px; box-shadow: 0 8px 24px rgba(0, 0, 0, .35); }
.kcz-hud__fila { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.kcz-hud__dato { font-family: var(--z-mono); font-size: 13px; display: inline-flex; gap: 6px; align-items: center; }
.kcz-hud__dato.es-alerta { color: #FF9AA9; animation: kcz-parpadeo 1.2s ease-in-out infinite; }
.kcz-hud__barras { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; font-family: var(--z-mono); font-size: 12.5px; }
.kcz-pasos span { width: 9px; height: 9px; border-radius: 50%; border: 1px solid #8FE3FF; display: inline-block; }
.kcz-pasos span.es-on { background: #8FE3FF; box-shadow: 0 0 6px #8FE3FF; }
.kcz-mapa-caja { position: relative; border-radius: 16px; border: 1px solid var(--z-borde); background: radial-gradient(circle at 50% 45%, #0E1D40, #03060E 78%); overflow: hidden; touch-action: manipulation; box-shadow: 0 0 40px rgba(92, 200, 255, .12) inset; }
.kcz-mapa-caja::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .018) 0 1px, transparent 1px 3px); }
.kcz-mapa { display: block; width: 100%; height: min(68vh, 620px); }
.kcz-niebla { fill: url(#kz-niebla); animation: kcz-niebla 7s ease-in-out infinite alternate; }
.kcz-muro__base { fill: #0B1020; }
.kcz-muro__cara { fill: url(#kz-muro); stroke: #0A0F1D; stroke-width: 1; opacity: .55; }
.kcz-muro.es-vis .kcz-muro__cara { opacity: 1; }
.kcz-hex { stroke: rgba(155, 231, 255, .22); stroke-width: 1; transition: fill .25s, stroke .2s, opacity .3s; }
.kcz-hex--s { fill: url(#kz-suelo-r); }
.kcz-hex--s.es-vis { fill: url(#kz-suelo); }
.kcz-hex--x { fill: url(#kz-secreto); stroke: #C9A8FF; }
.kcz-hex--p { fill: #4A2E1A; stroke: #E0A866; stroke-width: 1.5; }
.kcz-hex--a { fill: #2F2A40; }
.kcz-hex.es-rec { opacity: .62; }
.kcz-hex.es-vis:not(.kcz-hex--m) { cursor: pointer; }
.kcz-hex.es-mov { stroke: #9BE7FF; stroke-width: 1.8; cursor: pointer; filter: brightness(1.18); }
.kcz-hex.es-mov:hover { fill: #3B8CF0; stroke: #fff; }
.kcz-hex.es-atk { fill: #6A1A30; stroke: #FF6B81; stroke-width: 2.2; cursor: crosshair; animation: kcz-latido-hex 1.4s ease-in-out infinite; }
.kcz-hex.es-trap { fill: #5B4310; stroke: var(--z-oro); cursor: pointer; }
.kcz-hex.es-puerta { stroke: var(--z-oro); stroke-width: 2.6; cursor: pointer; animation: kcz-latido-hex 1.4s ease-in-out infinite; }
.kcz-hex.es-nuevo, .kcz-muro.es-nuevo { animation: kcz-revela .45s ease-out both; transform-box: fill-box; transform-origin: center; }
.kcz-hex__n { font: 700 9px var(--z-mono); fill: rgba(230, 248, 255, .7); text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.kcz-ent, .kcz-hex__i { font-size: 26px; text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.kcz-ent-g { pointer-events: none; }
.kcz-ent-g--m .kcz-ent { animation: kcz-flota-ent 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.kcz-ent-g--cofre .kcz-ent:not(.es-usado), .kcz-ent-g--llave .kcz-ent { animation: kcz-brillo-ent 2s ease-in-out infinite; }
.kcz-ent.es-rec, .kcz-ent.es-usado { opacity: .45; }
.kcz-ent--jefe { font-size: 34px; }
.kcz-ent__nv { font: 700 9.5px var(--z-mono); fill: #FFC2CC; text-anchor: middle; dominant-baseline: central; paint-order: stroke; stroke: #0A0F1D; stroke-width: 3px; }
.kcz-aura { fill: rgba(255, 84, 112, .14); stroke: rgba(255, 107, 129, .7); stroke-width: 1.2; }
.kcz-aura--elite { fill: rgba(181, 123, 255, .16); stroke: #B57BFF; }
.kcz-aura--jefe { fill: rgba(255, 84, 112, .22); stroke: #FF5470; stroke-width: 2; animation: kcz-pulso-svg 1.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.kcz-portal { fill: rgba(92, 200, 255, .25); stroke: #9BE7FF; stroke-width: 2; stroke-dasharray: 6 5; animation: kcz-gira 4s linear infinite; transform-box: fill-box; transform-origin: center; }
.kcz-yo-g { pointer-events: none; }
.kcz-yo__luz { fill: url(#kz-luz); }
.kcz-yo__anillo { fill: rgba(92, 200, 255, .18); stroke: #9BE7FF; stroke-width: 2; animation: kcz-pulso-svg 1.8s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.kcz-ent--yo { font-size: 30px; filter: drop-shadow(0 0 6px #5CC8FF); }
.kcz-ruta { fill: none; stroke: #CFF4FF; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 2 7; animation: kcz-ruta 0.6s linear infinite; filter: drop-shadow(0 0 4px #5CC8FF); }
.kcz-ruta--atk { stroke: #FF9AA9; filter: drop-shadow(0 0 4px #FF6B81); }
.kcz-ruta__punto { fill: #CFF4FF; }
.kcz-pista { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); margin: 0 !important; padding: 7px 14px; border-radius: 99px; background: rgba(13, 30, 60, .92); border: 1px solid #8FE3FF; color: #E8F8FF; font: 600 13px var(--z-mono); box-shadow: 0 0 16px rgba(92, 200, 255, .4); white-space: nowrap; pointer-events: none; }
.kcz-leyenda { color: var(--z-suave); font-size: 12.5px; margin: 8px 2px; }
.kcz-log { list-style: none; margin: 8px 0 0; padding: 10px 12px; border-radius: 12px; background: rgba(4, 8, 18, .85); border: 1px solid rgba(92, 200, 255, .2); font-family: var(--z-mono); font-size: 12.5px; max-height: 210px; overflow: auto; display: grid; gap: 4px; }
.kcz-log li { animation: kcz-entra-linea .3s ease-out; }
.kcz-log li::before { content: '› '; color: var(--z-suave); }
.kcz-log--s { color: var(--z-brillo2); }
.kcz-log--a { color: #FF9AA9; }
.kcz-log--b { color: var(--z-oro); }
.kcz-log--d { color: #B9C7DD; }
.kcz-btn--latido { animation: kcz-latido 1.8s ease-in-out infinite; }

/* Combate y ventanas */
.kcz-combate { position: fixed; inset: 0; z-index: 99990; background: rgba(2, 5, 12, .78); display: grid; place-items: center; padding: 12px; overflow: auto; }
.kcz-combate__caja { width: min(760px, 100%); background: linear-gradient(180deg, #0D1A36, #070C1A); border: 1px solid var(--z-brillo); border-radius: 16px; padding: 16px; box-shadow: 0 0 40px rgba(92, 200, 255, .3); color: var(--z-tinta); font-size: 15px; }
.kcz-enemigos { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin-bottom: 12px; }
.kcz-enemigo { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: center; text-align: left; padding: 10px; border-radius: 12px; border: 1px solid rgba(255, 107, 129, .35); background: rgba(255, 107, 129, .06); color: var(--z-tinta); cursor: pointer; font: inherit; }
.kcz-enemigo .kcz-barra, .kcz-enemigo small, .kcz-enemigo .kcz-ef { grid-column: 2; }
.kcz-enemigo.es-obj { border-color: #FF6B81; box-shadow: 0 0 16px rgba(255, 107, 129, .45); }
.kcz-enemigo.es-jefe { border-color: #FF5470; background: rgba(255, 84, 112, .12); }
.kcz-enemigo.es-muerto { opacity: .3; cursor: default; }
.kcz-enemigo__ico { font-size: 34px; grid-row: span 4; }
.kcz-enemigo__n { font-weight: 700; }
.kcz-enemigo small { color: var(--z-suave); font-size: 11.5px; }
.kcz-ef { display: flex; gap: 6px; font-size: 13px; }
.kcz-yo-combate { display: grid; grid-template-columns: auto 1fr 1fr; gap: 6px 12px; align-items: center; padding: 10px; border-radius: 12px; background: rgba(92, 200, 255, .07); font-family: var(--z-mono); font-size: 12.5px; }
.kcz-yo-combate > span:first-child { font-size: 30px; grid-row: span 2; }
.kcz-pa { display: flex; gap: 6px; align-items: center; padding-left: 4px; }
.kcz-pa span { width: 13px; height: 13px; border-radius: 3px; transform: rotate(45deg); border: 1px solid var(--z-oro); }
.kcz-pa span.es-on { background: var(--z-oro); box-shadow: 0 0 8px var(--z-oro); }
.kcz-acc-combate { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.kcz-log--combate { max-height: 170px; }
.kcz-fin__extra { text-align: left; color: var(--z-oro); font-family: var(--z-mono); font-size: 13px; }
.kcz-fin .kcz-combate__caja { text-align: center; max-width: 520px; }

/* Inventario, habilidades, tienda */
.kcz-ranuras { display: grid; gap: 8px; }
.kcz-ranura { padding: 8px; border-radius: 10px; background: rgba(255, 255, 255, .02); border: 1px dashed rgba(92, 200, 255, .2); }
.kcz-ranura__n { font-family: var(--z-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--z-suave); }
.kcz-objs { display: grid; gap: 8px; }
.kcz-obj { display: grid; grid-template-columns: 44px 1fr; gap: 6px 10px; align-items: start; padding: 10px; border-radius: 12px; border: 1px solid var(--r); background: linear-gradient(90deg, rgba(255, 255, 255, .05), transparent 60%); }
.kcz-obj__ico { width: 44px; height: 44px; display: grid; place-items: center; font-size: 24px; border-radius: 10px; background: rgba(0, 0, 0, .35); box-shadow: 0 0 10px var(--r) inset; }
.kcz-obj__n { margin: 0 !important; font-weight: 700; color: var(--r); }
.kcz-obj__meta, .kcz-obj__txt, .kcz-obj__req { margin: 2px 0 0 !important; font-size: 12.5px; color: var(--z-suave); }
.kcz-obj__txt { color: #CFE0FF; }
.kcz-obj__req span { margin-right: 8px; }
.kcz-obj__acc { grid-column: 1 / -1; display: flex; gap: 6px; flex-wrap: wrap; }
.kcz-habs { display: grid; gap: 8px; }
.kcz-hab { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .03); border: 1px solid transparent; }
.kcz-hab.es-aprendida { border-color: rgba(181, 123, 255, .45); }
.kcz-hab__n { margin: 0 !important; font-weight: 700; }
.kcz-hab__acc { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.kcz-equipadas { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.kcz-tienda { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.kcz-tienda li { display: grid; grid-template-columns: 34px 1fr auto auto; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, .03); }
.kcz-tienda li small { display: block; color: var(--z-suave); font-size: 12px; }
.kcz-tienda__ico { font-size: 22px; }
.kcz-cofre-panel { text-align: center; }
.kcz-cofre-panel .kcz-acciones { justify-content: center; }
.kcz-cofre { font-size: 64px; filter: drop-shadow(0 0 18px rgba(255, 209, 102, .6)); animation: kcz-flota 3s ease-in-out infinite; }
.kcz-subtabs { display: flex; gap: 6px; margin-bottom: 10px; }
.kcz-subtabs a { padding: 6px 12px; border-radius: 8px; border: 1px solid var(--z-borde); text-decoration: none; color: var(--z-tinta); }
.kcz-subtabs a.es-activa { background: rgba(92, 200, 255, .2); border-color: var(--z-brillo); }
.kcz-rank { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.kcz-rank li { display: grid; grid-template-columns: 32px 36px minmax(0, 1fr) auto auto auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, .03); }
.kcz-rank li.es-yo { border: 1px solid var(--z-oro); }
.kcz-rank img, .kcz-perfil__cab img { border-radius: 50%; }
.kcz-rank__pos { font-family: var(--z-mono); font-weight: 700; color: var(--z-brillo2); text-align: center; }
.kcz-rank li:nth-child(1) .kcz-rank__pos { color: #FFD166; }
.kcz-rank li:nth-child(2) .kcz-rank__pos { color: #D9E2EC; }
.kcz-rank li:nth-child(3) .kcz-rank__pos { color: #E0A36A; }
.kcz-rank__n { font-weight: 700; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kcz-rank__v { font-family: var(--z-mono); font-size: 13px; color: var(--z-suave); }
@media (max-width: 560px) { .kcz-rank li { grid-template-columns: 26px 36px minmax(0, 1fr) auto; } .kcz-rank__cl, .kcz-rank li > .kcz-chip { display: none; } }
.kcz-bestias { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.kcz-bestia { display: grid; grid-template-columns: 52px 1fr; gap: 10px; padding: 10px; border-radius: 12px; background: rgba(255, 255, 255, .03); }
.kcz-bestia.es-jefe { border: 1px solid rgba(255, 84, 112, .5); }
.kcz-bestia h4 { margin: 0; font-size: 15px; color: #fff; }
.kcz-bestia p { margin: 2px 0; }
.kcz-bestia__ico { font-size: 34px; text-align: center; }
.kcz-perfil__cab { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.kcz-stats--perfil { margin-bottom: 14px; }
.kcz-anuncio { margin: 16px auto 0; max-width: 970px; text-align: center; }

.kcz-toast { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); z-index: 99999; width: max-content; max-width: min(560px, 92vw); padding: 12px 16px; border-radius: 12px; background: #0D1A36; border: 1px solid #5CC8FF; color: #E6F1FF; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13.5px; box-shadow: 0 0 24px rgba(92, 200, 255, .4); }
.kcz-toast.es-mal { border-color: #FF6B81; box-shadow: 0 0 24px rgba(255, 107, 129, .4); }
.kcz-toast[hidden] { display: none; }
.kcz-modal { position: fixed; inset: 0; z-index: 99995; display: grid; place-items: center; background: rgba(2, 5, 12, .82); padding: 14px; }
.kcz-modal__caja { width: min(420px, 100%); text-align: center; padding: 24px 18px; border-radius: 16px; background: linear-gradient(180deg, #0D1A36, #070C1A); border: 1px solid var(--r, #5CC8FF); box-shadow: 0 0 50px var(--r, #5CC8FF); color: #E6F1FF; }
.kcz-modal__ico { font-size: 64px; }
.kcz-modal__n { font-size: 20px; font-weight: 800; color: var(--r); margin: 6px 0 2px; }
.kcz-modal__rar { font-family: monospace; letter-spacing: .1em; text-transform: uppercase; color: var(--r); margin: 0 0 8px; }
.kcz-modal .kcz-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 22px; border-radius: 10px; border: 1px solid #8FDBFF; background: linear-gradient(180deg, #3AB6FF, #1C6FE0); color: #fff; font-weight: 700; cursor: pointer; margin-top: 10px; }
.kcz-modal .kcz-sistema-msg { font-family: monospace; color: #5CC8FF; font-size: 13px; }
.kcz-modal .kcz-suave { color: #8EA3C4; font-size: 13.5px; }
.kcz-revelar { animation: kcz-revelar .5s cubic-bezier(.2, 1.4, .4, 1); }

/* Recuadro bajo los capítulos */
.kcz-aviso-cap { margin: 22px auto; max-width: 720px; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(47, 128, 237, .45); background: linear-gradient(90deg, rgba(47, 128, 237, .1), rgba(47, 128, 237, .02)); font-size: 14.5px; line-height: 1.45; }

/* Menú del tema */
.kcz-nav-sistema { font-weight: 700; }

@keyframes kcz-latido { 0%, 100% { box-shadow: 0 0 0 rgba(92, 200, 255, 0); } 50% { box-shadow: 0 0 22px rgba(92, 200, 255, .45); } }
@keyframes kcz-portal { from { filter: hue-rotate(0deg); } to { filter: hue-rotate(25deg); } }
@keyframes kcz-flota { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes kcz-revelar { from { transform: scale(.7); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .kcz *, .kcz-modal * { animation: none !important; transition: none !important; } }

/* Por encima de los colores de enlace del tema */
.kcz .kcz-tabs a, .kcz .kcz-subtabs a, .kcz .kcz-rank__n, .kcz a.kcz-panel--gate { color: var(--z-tinta); }
.kcz .kcz-btn { color: #fff; }

/* Logros, código y evento */
.kcz-logros { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 6px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.kcz-logros li { display: grid; grid-template-columns: auto 1fr; gap: 0 8px; padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, .03); opacity: .65; }
.kcz-logros li.es-hecho { opacity: 1; border: 1px solid rgba(255, 209, 102, .45); }
.kcz-logros li > span { grid-row: span 2; font-size: 20px; }
.kcz-logros b { font-size: 13.5px; }
.kcz-logros small { color: var(--z-suave); font-size: 11.5px; }
.kcz-codigo { display: grid; gap: 6px; }
.kcz-codigo span { display: flex; gap: 8px; }
.kcz-codigo input { flex: 1; min-width: 0; min-height: 36px; padding: 0 10px; border-radius: 9px; border: 1px solid var(--z-borde); background: rgba(0, 0, 0, .35); color: #fff; font-family: var(--z-mono); text-transform: uppercase; letter-spacing: .08em; }
.kcz-panel--evento { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; border-color: rgba(255, 79, 216, .55); background: linear-gradient(90deg, rgba(255, 79, 216, .14), rgba(13, 24, 48, .92)); }

/* Notificación del Sistema en los capítulos */
.kcz-aviso-cap--llave { border-color: rgba(255, 209, 102, .7); background: linear-gradient(90deg, rgba(255, 209, 102, .14), rgba(255, 209, 102, .02)); }
.kcz-notif { position: fixed; top: 76px; left: 50%; transform: translateX(-50%); z-index: 99999; padding: 12px 18px; border-radius: 12px; background: #0D1A36; border: 1px solid var(--c, #5CC8FF); color: #E6F1FF; font: 600 14px/1.35 ui-monospace, Menlo, Consolas, monospace; box-shadow: 0 0 26px var(--c, #5CC8FF); white-space: nowrap; max-width: 92vw; overflow: hidden; text-overflow: ellipsis; animation: kcz-notif 5.5s ease forwards; pointer-events: none; }
.kcz-notif__t { color: #5CC8FF; }
@keyframes kcz-notif { 0% { opacity: 0; transform: translate(-50%, -14px); } 8%, 82% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, -14px); visibility: hidden; } }

/* Ventanas del Sistema: en el centro, en celeste */
.kcz-sis { position: fixed; inset: 0; z-index: 100000; display: grid; place-items: center; pointer-events: none; padding: 16px; }
.kcz-sis:not(.es-visible) { display: none; }
.kcz-sis__caja { pointer-events: auto; cursor: pointer; position: relative; width: min(460px, 92vw); padding: 16px 20px 18px; text-align: center; border-radius: 6px; background: linear-gradient(180deg, rgba(24, 66, 110, .94), rgba(10, 32, 62, .94)); border: 1px solid #8FE3FF; box-shadow: 0 0 0 1px rgba(143, 227, 255, .25) inset, 0 0 32px rgba(92, 200, 255, .55), 0 0 90px rgba(92, 200, 255, .25); color: #E8F8FF; font-family: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace; animation: kcz-sis-entra .32s cubic-bezier(.2, 1.3, .4, 1) both; overflow: hidden; }
.kcz-sis__caja::before, .kcz-sis__caja::after { content: ''; position: absolute; left: 10px; right: 10px; height: 2px; background: linear-gradient(90deg, transparent, #BFF1FF, transparent); }
.kcz-sis__caja::before { top: 6px; }
.kcz-sis__caja::after { bottom: 6px; }
.kcz-sis__t { margin: 0 0 6px !important; font-size: 12px; letter-spacing: .22em; color: #8FE3FF; text-transform: uppercase; }
.kcz-sis__m { margin: 0 !important; font-size: 15.5px; line-height: 1.45; font-weight: 600; min-height: 1.45em; text-shadow: 0 0 10px rgba(143, 227, 255, .5); }
.kcz-sis__barra { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: #8FE3FF; transform-origin: left; animation: kcz-sis-tiempo var(--dura, 2s) linear forwards; }
.kcz-sis--b .kcz-sis__t { color: #FFE08A; }
.kcz-sis--a .kcz-sis__t, .kcz-sis--e .kcz-sis__t { color: #FFB3C0; }
.kcz-sis--e { border-color: #FFB3C0; box-shadow: 0 0 32px rgba(255, 107, 129, .45); }
.kcz-sis__caja.es-fuera { animation: kcz-sis-sale .22s ease-in forwards; }
/* La notificación de llave en los capítulos, también al centro y en celeste */
.kcz-notif { top: 50% !important; left: 50% !important; transform: translate(-50%, -50%) !important; padding: 16px 22px !important; border-radius: 6px !important; background: linear-gradient(180deg, rgba(24, 66, 110, .95), rgba(10, 32, 62, .95)) !important; border: 1px solid #8FE3FF !important; color: #E8F8FF !important; box-shadow: 0 0 32px rgba(92, 200, 255, .55), 0 0 90px rgba(92, 200, 255, .25) !important; font-size: 15px !important; white-space: normal !important; text-align: center; animation: kcz-notif-c 4.5s ease forwards !important; }
.kcz-notif__t { display: block; font-size: 12px; letter-spacing: .22em; color: #8FE3FF; margin-bottom: 4px; }

/* Combate: daño que flota y sacudida */
.kcz-enemigo, .kcz-yo-combate { position: relative; }
.kcz-flota { position: absolute; right: 12px; top: 6px; font: 800 20px var(--z-mono, monospace); pointer-events: none; animation: kcz-flota-num 1s ease-out forwards; text-shadow: 0 0 10px currentColor; }
.kcz-flota.es-dano { color: #FF8A9A; }
.kcz-flota.es-cura { color: #7FF0B4; }
.es-golpe { animation: kcz-golpe .35s ease; }
.kcz-combate__caja.es-jefe { border-color: #FF6B81; box-shadow: 0 0 46px rgba(255, 84, 112, .35); }
.kcz-combate__caja { animation: kcz-sis-entra .3s ease both; }
.kcz-attrs li.es-pulso b { animation: kcz-pulso-num .35s ease; }

@keyframes kcz-sis-entra { from { opacity: 0; transform: scale(.86) translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes kcz-sis-sale { to { opacity: 0; transform: scale(.94); } }
@keyframes kcz-sis-tiempo { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@keyframes kcz-notif-c { 0% { opacity: 0; transform: translate(-50%, -46%) scale(.9); } 8%, 85% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 100% { opacity: 0; visibility: hidden; } }
@keyframes kcz-revela { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: scale(1); } }
@keyframes kcz-niebla { from { opacity: .75; } to { opacity: 1; } }
@keyframes kcz-latido-hex { 0%, 100% { stroke-opacity: 1; } 50% { stroke-opacity: .35; } }
@keyframes kcz-flota-ent { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes kcz-brillo-ent { 0%, 100% { filter: drop-shadow(0 0 0 #FFD166); } 50% { filter: drop-shadow(0 0 7px #FFD166); } }
@keyframes kcz-pulso-svg { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.12); opacity: .7; } }
@keyframes kcz-gira { to { transform: rotate(360deg); } }
@keyframes kcz-ruta { to { stroke-dashoffset: -9; } }
@keyframes kcz-entra-linea { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }
@keyframes kcz-parpadeo { 50% { opacity: .45; } }
@keyframes kcz-flota-num { from { opacity: 1; transform: translateY(0) scale(1.15); } to { opacity: 0; transform: translateY(-34px) scale(1); } }
@keyframes kcz-golpe { 0%, 100% { transform: none; } 25% { transform: translateX(-5px); } 50% { transform: translateX(4px); } 75% { transform: translateX(-2px); } }
@keyframes kcz-pulso-num { 50% { transform: scale(1.35); color: #FFD166; } }
@media (prefers-reduced-motion: reduce) { .kcz-sis__caja, .kcz-notif { animation: none !important; } }
.kcz-mapa [data-ruta], .kcz-mapa [data-niebla], .kcz-mapa [data-ents], .kcz-mapa [data-yo], .kcz-hex__n, .kcz-muro { pointer-events: none; }

/* Mapa centrado en el cazador: controles, fichas y efectos */
.kcz-zoom { position: absolute; top: 10px; right: 10px; display: grid; gap: 6px; z-index: 3; }
.kcz-zoom button { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--z-borde); background: rgba(10, 22, 46, .88); color: #E8F8FF; font-size: 18px; cursor: pointer; }
.kcz-zoom button:hover { border-color: #8FE3FF; box-shadow: 0 0 12px rgba(92, 200, 255, .45); }
.kcz-tip { position: absolute; z-index: 4; padding: 6px 10px; border-radius: 8px; background: rgba(10, 26, 52, .95); border: 1px solid rgba(255, 107, 129, .6); color: #E8F8FF; font: 600 12.5px/1.35 var(--z-mono); pointer-events: none; white-space: nowrap; box-shadow: 0 0 14px rgba(255, 107, 129, .3); }
.kcz-tip small { color: var(--z-suave); font-weight: 400; }
.kcz-mficha { position: absolute; z-index: 5; width: min(300px, calc(100% - 16px)); padding: 12px 14px; border-radius: 8px; background: linear-gradient(180deg, rgba(24, 66, 110, .97), rgba(10, 32, 62, .97)); border: 1px solid #8FE3FF; color: #E8F8FF; box-shadow: 0 0 26px rgba(92, 200, 255, .45); animation: kcz-sis-entra .22s ease both; }
.kcz-mficha__t { margin: 0 24px 4px 0 !important; font: 700 14px var(--z-mono); }
.kcz-mficha__t small { color: var(--z-suave); font-weight: 400; }
.kcz-mficha__acc { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.kcz-mficha__x { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border: 0; border-radius: 6px; background: transparent; color: #8FE3FF; cursor: pointer; font-size: 14px; }
.kcz-yo__sombra { fill: rgba(0, 0, 0, .45); }
.kcz-yo__cuerpo { animation: kcz-respira 2.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center bottom; }
.kcz-yo-g.es-andando .kcz-yo__cuerpo { animation: none; }
.kcz-yo-g.es-herido .kcz-ent--yo { animation: kcz-herido .5s ease; }
.kcz-fx { pointer-events: none; }
.kcz-fx circle { fill: none; stroke-width: 3; transform-box: fill-box; transform-origin: center; animation: kcz-onda .7s ease-out forwards; }
.kcz-fx--golpe circle { stroke: #FF8A9A; }
.kcz-fx--ping circle { stroke: #FFD166; }
.kcz-fx--tesoro circle { stroke: #FFE08A; }
.kcz-fx__txt { font: 900 22px var(--z-mono); text-anchor: middle; dominant-baseline: central; paint-order: stroke; stroke: #06101F; stroke-width: 4px; animation: kcz-sube-txt 1.1s ease-out forwards; }
.kcz-fx--alerta .kcz-fx__txt { fill: #FFD166; font-size: 26px; }
.kcz-fx--dano .kcz-fx__txt { fill: #FF8A9A; }
.kcz-fx--cura .kcz-fx__txt { fill: #7FF0B4; }
.kcz-fx--sube .kcz-fx__txt { font-size: 20px; }
@keyframes kcz-respira { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05, .97); } }
@keyframes kcz-herido { 0%, 100% { opacity: 1; } 25%, 75% { opacity: .3; } }
@keyframes kcz-onda { from { transform: scale(.4); opacity: 1; } to { transform: scale(2.2); opacity: 0; } }
@keyframes kcz-sube-txt { 0% { opacity: 0; transform: translateY(6px) scale(.7); } 20% { opacity: 1; transform: translateY(0) scale(1.15); } 100% { opacity: 0; transform: translateY(-22px) scale(1); } }

/* ---------- Vestíbulo del Sistema (siempre en movimiento) ---------- */
.kcz-lobby { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); margin-bottom: 16px; }
@media (min-width: 980px) { .kcz-lobby { grid-template-columns: minmax(0, 2.2fr) minmax(260px, 1fr); grid-template-areas: 'escena rank' 'accesos rank'; } .kcz-lobby__escena { grid-area: escena; } .kcz-lobby__accesos { grid-area: accesos; } .kcz-lobby__rank { grid-area: rank; } }
.kcz-lobby__escena { position: relative; min-height: 360px; border-radius: 18px; overflow: hidden; border: 2px solid var(--c, #5CC8FF); box-shadow: 0 0 0 4px rgba(0, 0, 0, .35), 0 0 34px color-mix(in srgb, var(--c, #5CC8FF) 55%, transparent); background: #0A0F24; isolation: isolate; }
.kcz-escena__cielo { position: absolute; inset: 0 0 38% 0; background: radial-gradient(circle at 50% 100%, #FFB86B 0, #FF6FA9 18%, #7B4FD0 42%, #1B1A55 70%, #0A0F24 100%); z-index: -3; }
.kcz-escena__cielo::after { content: ''; position: absolute; left: 50%; bottom: -60px; width: 220px; height: 220px; margin-left: -110px; border-radius: 50%; background: repeating-linear-gradient(0deg, #FFD27A 0 14px, transparent 14px 22px); opacity: .55; filter: blur(.4px); animation: kcz-sol 6s ease-in-out infinite alternate; }
.kcz-escena__suelo { position: absolute; left: -50%; right: -50%; bottom: 0; height: 38%; z-index: -2; background: linear-gradient(180deg, rgba(255, 111, 169, .35), rgba(10, 15, 36, .9)), repeating-linear-gradient(90deg, rgba(155, 231, 255, .55) 0 2px, transparent 2px 70px), repeating-linear-gradient(0deg, rgba(155, 231, 255, .55) 0 2px, transparent 2px 46px); transform: perspective(260px) rotateX(58deg); transform-origin: top; animation: kcz-suelo 1.6s linear infinite; }
.kcz-escena__chispas { position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(2px 2px at 10% 80%, #fff, transparent), radial-gradient(2px 2px at 30% 60%, #9BE7FF, transparent), radial-gradient(1.5px 1.5px at 55% 85%, #FFD166, transparent), radial-gradient(2px 2px at 75% 70%, #fff, transparent), radial-gradient(1.5px 1.5px at 90% 90%, #9BE7FF, transparent); background-size: 100% 100%; animation: kcz-chispas 5s linear infinite; opacity: .8; }
.kcz-portal-g { position: absolute; left: 50%; top: 42%; width: 210px; height: 210px; margin: -105px 0 0 -105px; display: grid; place-items: center; }
.kcz-portal-g span { position: absolute; inset: 0; border-radius: 50%; border: 3px solid var(--c, #5CC8FF); box-shadow: 0 0 24px var(--c, #5CC8FF), inset 0 0 30px var(--c, #5CC8FF); animation: kcz-gira 6s linear infinite; border-top-color: transparent; border-bottom-color: transparent; }
.kcz-portal-g span:nth-child(2) { inset: 18px; animation-duration: 4s; animation-direction: reverse; opacity: .8; }
.kcz-portal-g span:nth-child(3) { inset: 40px; animation-duration: 2.6s; background: radial-gradient(circle, color-mix(in srgb, var(--c, #5CC8FF) 60%, #000) 0, #050916 70%); border-left-color: transparent; }
.kcz-portal-g b { position: relative; font: 900 34px var(--z-mono); color: #fff; text-shadow: 0 0 18px var(--c, #5CC8FF); animation: kcz-latir-txt 2s ease-in-out infinite; }
.kcz-figura { position: relative; width: 120px; height: 150px; display: grid; place-items: end center; }
.kcz-figura__sombra { position: absolute; bottom: 4px; left: 50%; width: 70%; height: 14px; margin-left: -35%; border-radius: 50%; background: rgba(0, 0, 0, .5); filter: blur(2px); animation: kcz-sombra 2.4s ease-in-out infinite; }
.kcz-figura__cuerpo { position: relative; display: block; animation: kcz-salto 2.4s ease-in-out infinite; transform-origin: center bottom; }
.kcz-figura__cuerpo img { display: block; max-width: 120px; max-height: 150px; image-rendering: auto; filter: drop-shadow(0 0 10px rgba(155, 231, 255, .6)); }
.kcz-figura__emoji { display: block; font-size: 86px; line-height: 1; filter: drop-shadow(0 0 14px rgba(155, 231, 255, .7)); }
.kcz-figura--lobby { position: absolute; left: 14%; bottom: 14%; }
.kcz-figura--clase { width: 80px; height: 90px; margin: 0 auto 4px; }
.kcz-figura--clase .kcz-figura__emoji { font-size: 52px; }
.kcz-clase:hover .kcz-figura__cuerpo { animation: kcz-celebra .6s ease; }
.kcz-lobby__ficha { position: absolute; left: 16px; top: 14px; padding: 10px 14px; border-radius: 12px; background: rgba(6, 12, 30, .72); border: 1px solid rgba(155, 231, 255, .4); min-width: 210px; }
.kcz-lobby__nv { margin: 0 0 4px !important; font: 700 15px var(--z-mono); display: flex; gap: 8px; align-items: center; }
.kcz-lobby__nv b { font-size: 22px; color: #fff; text-shadow: 0 0 10px #5CC8FF; }
.kcz-jugar { position: absolute; right: 18px; bottom: 18px; display: inline-grid; grid-template-columns: auto 1fr; gap: 0 12px; align-items: center; padding: 14px 26px 14px 20px; border-radius: 16px; background: linear-gradient(180deg, #FFE27A, #FFB020); color: #3A1C00 !important; text-decoration: none !important; font: 900 22px/1.1 var(--z-mono); border: 3px solid #FFF1B8; box-shadow: 0 6px 0 #B86E00, 0 0 28px rgba(255, 196, 64, .65); overflow: hidden; animation: kcz-jugar 1.8s ease-in-out infinite; }
.kcz-jugar small { grid-column: 2; font: 700 12px var(--z-mono); opacity: .8; }
.kcz-jugar__ico { grid-row: span 2; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #3A1C00; color: #FFE27A; font-size: 18px; }
.kcz-jugar::after { content: ''; position: absolute; top: -40%; bottom: -40%; width: 40px; left: -60px; background: rgba(255, 255, 255, .55); transform: rotate(20deg); animation: kcz-brillo-barrido 2.6s ease-in-out infinite; }
.kcz-jugar:hover { transform: translateY(-2px) scale(1.02); }
.kcz-jugar:active { transform: translateY(3px); box-shadow: 0 2px 0 #B86E00; }
.kcz-lobby__accesos { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .kcz-lobby__accesos { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.kcz-acceso { position: relative; display: grid; gap: 2px; padding: 14px; border-radius: 14px; text-decoration: none !important; color: var(--z-tinta) !important; background: linear-gradient(160deg, rgba(60, 40, 140, .55), rgba(13, 24, 48, .95)); border: 1px solid var(--z-borde); transition: transform .2s, box-shadow .2s, border-color .2s; overflow: hidden; }
.kcz-acceso:hover { transform: translateY(-4px) rotate(-1deg); border-color: #8FE3FF; box-shadow: 0 10px 24px rgba(92, 200, 255, .25); }
.kcz-acceso__ico { font-size: 30px; animation: kcz-flota 3s ease-in-out infinite; }
.kcz-acceso:nth-child(2) .kcz-acceso__ico { animation-delay: -.7s; }
.kcz-acceso:nth-child(3) .kcz-acceso__ico { animation-delay: -1.4s; }
.kcz-acceso:nth-child(4) .kcz-acceso__ico { animation-delay: -2.1s; }
.kcz-acceso small { color: var(--z-suave); font-size: 12px; }
.kcz-lobby__rank { padding: 14px; border-radius: 16px; background: linear-gradient(180deg, rgba(40, 30, 110, .7), rgba(13, 24, 48, .96)); border: 2px solid rgba(155, 231, 255, .45); }
.kcz-lobby__rank ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.kcz-lobby__rank li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, .05); animation: kcz-entra-fila .5s ease both; animation-delay: calc(var(--i) * 80ms); }
.kcz-lobby__rank li a { color: #fff !important; font-weight: 700; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kcz-lobby__rank li span:last-child { font: 12px var(--z-mono); color: var(--z-suave); }
.kcz-lobby__rank li.es-yo { outline: 1px solid var(--z-oro); }
.kcz-lobby__pos { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font: 800 13px var(--z-mono); background: #FF5470; color: #fff; }
.kcz-lobby__rank li:nth-child(1) .kcz-lobby__pos { background: #FFD166; color: #3A1C00; box-shadow: 0 0 12px #FFD166; }
.kcz-lobby__rank li:nth-child(2) .kcz-lobby__pos { background: #D9E2EC; color: #1B2338; }
.kcz-lobby__rank li:nth-child(3) .kcz-lobby__pos { background: #E0A36A; color: #2B1600; }
.kcz-lobby__yo { margin: 10px 0 0 !important; font-size: 13px; color: var(--z-suave); }
@media (max-width: 640px) { .kcz-lobby__escena { min-height: 400px; } .kcz-figura--lobby { left: 50%; margin-left: -60px; bottom: 96px; } .kcz-portal-g { top: 38%; width: 170px; height: 170px; margin: -85px 0 0 -85px; } .kcz-jugar { left: 14px; right: 14px; justify-content: center; font-size: 19px; } }
@keyframes kcz-suelo { from { background-position: 0 0, 0 0, 0 0; } to { background-position: 0 0, 0 0, 0 46px; } }
@keyframes kcz-sol { from { transform: translateY(0); } to { transform: translateY(-10px); } }
@keyframes kcz-chispas { from { transform: translateY(0); opacity: .8; } to { transform: translateY(-60px); opacity: .2; } }
@keyframes kcz-latir-txt { 50% { transform: scale(1.12); } }
@keyframes kcz-salto { 0%, 100% { transform: translateY(0) scale(1, 1); } 45% { transform: translateY(-12px) scale(.98, 1.03); } 55% { transform: translateY(-12px) scale(.98, 1.03); } 90% { transform: translateY(0) scale(1.04, .96); } }
@keyframes kcz-sombra { 0%, 100% { transform: scaleX(1); opacity: .5; } 50% { transform: scaleX(.75); opacity: .3; } }
@keyframes kcz-celebra { 0% { transform: rotate(0); } 30% { transform: translateY(-14px) rotate(-8deg); } 60% { transform: translateY(-6px) rotate(8deg); } 100% { transform: rotate(0); } }
@keyframes kcz-jugar { 0%, 100% { box-shadow: 0 6px 0 #B86E00, 0 0 22px rgba(255, 196, 64, .5); } 50% { box-shadow: 0 6px 0 #B86E00, 0 0 40px rgba(255, 196, 64, .9); } }
@keyframes kcz-brillo-barrido { 0%, 60% { left: -60px; } 100% { left: 120%; } }
@keyframes kcz-entra-fila { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
/* Imágenes en el mapa */
.kcz-mapa image { pointer-events: none; }

/* ---------- Arena de combate: luchadores que se contonean, golpes y efectos ---------- */
.kcz-combate__caja--arena { width: min(860px, 100%); padding: 12px; }
.kcz-arena { position: relative; height: clamp(250px, 42vh, 340px); border-radius: 14px; overflow: hidden; border: 2px solid var(--c, #5CC8FF); box-shadow: inset 0 0 40px rgba(0, 0, 0, .6); isolation: isolate; display: flex; align-items: flex-end; justify-content: space-between; padding: 0 4% 6%; }
.kcz-arena__cielo { position: absolute; inset: 0 0 34% 0; z-index: -2; background: radial-gradient(circle at 50% 110%, color-mix(in srgb, var(--c, #5CC8FF) 70%, #fff) 0, color-mix(in srgb, var(--c, #5CC8FF) 45%, #1B1A55) 30%, #10123A 70%, #070A1C 100%); }
.kcz-arena__suelo { position: absolute; left: -40%; right: -40%; bottom: 0; height: 34%; z-index: -1; background: linear-gradient(180deg, rgba(10, 15, 36, .2), rgba(5, 8, 20, .95)), repeating-linear-gradient(90deg, rgba(155, 231, 255, .35) 0 2px, transparent 2px 64px), repeating-linear-gradient(0deg, rgba(155, 231, 255, .35) 0 2px, transparent 2px 40px); transform: perspective(240px) rotateX(55deg); transform-origin: top; animation: kcz-suelo 2.4s linear infinite; }
.kcz-combate__caja.es-jefe .kcz-arena { border-color: #FF5470; }
.kcz-arena__ronda { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); margin: 0 !important; padding: 4px 12px; border-radius: 99px; background: rgba(5, 10, 26, .75); font: 700 12px var(--z-mono); color: #CFF4FF; letter-spacing: .08em; }
.kcz-arena__son { position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; border-radius: 9px; border: 1px solid rgba(155, 231, 255, .4); background: rgba(5, 10, 26, .7); cursor: pointer; font-size: 16px; }
.kcz-arena__enemigos { display: flex; gap: 2%; align-items: flex-end; justify-content: flex-end; flex: 1; }
.kcz-luchador { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; background: none; border: 0; padding: 0; color: #E8F8FF; font: inherit; cursor: default; min-width: 0; }
.kcz-luchador--en { cursor: pointer; width: min(160px, 30%); }
.kcz-luchador--yo { width: min(170px, 32%); }
.kcz-luchador__n { font: 700 12px var(--z-mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; text-shadow: 0 1px 2px #000; }
.kcz-luchador__n small { color: #FFC2CC; }
.kcz-luchador .kcz-barra { width: 90%; min-width: 0; height: 6px; margin: 0; }
.kcz-luchador .kcz-ef { min-height: 16px; font-size: 12px; }
.kcz-luchador__fig { position: relative; display: grid; place-items: end center; height: clamp(90px, 18vh, 130px); width: 100%; }
.kcz-luchador__sombra { position: absolute; bottom: 0; left: 50%; width: 60%; height: 12px; margin-left: -30%; border-radius: 50%; background: rgba(0, 0, 0, .55); filter: blur(2px); animation: kcz-sombra 1.8s ease-in-out infinite; animation-delay: var(--d, 0s); }
.kcz-luchador__cuerpo { display: block; transform-origin: center bottom; animation: kcz-contoneo 1.8s ease-in-out infinite; animation-delay: var(--d, 0s); }
.kcz-luchador--en .kcz-luchador__cuerpo { animation-name: kcz-contoneo-en; }
.kcz-luchador__cuerpo img { display: block; max-height: clamp(90px, 18vh, 130px); max-width: 100%; }
.kcz-luchador__emoji { display: block; font-size: clamp(54px, 10vh, 78px); line-height: 1; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .5)); }
.kcz-luchador--en .kcz-luchador__emoji { transform: scaleX(-1); }
.kcz-luchador.es-jefe .kcz-luchador__emoji { font-size: clamp(70px, 13vh, 100px); filter: drop-shadow(0 0 14px #FF5470); }
.kcz-luchador.es-elite .kcz-luchador__emoji { filter: drop-shadow(0 0 10px #B57BFF); }
.kcz-luchador__fig--yo .kcz-luchador__emoji { filter: drop-shadow(0 0 12px #5CC8FF); }
.kcz-luchador__mira { position: absolute; top: 40%; left: 50%; transform: translate(-50%, -50%) scale(0); font-size: 26px; transition: transform .2s; pointer-events: none; }
.kcz-luchador.es-obj .kcz-luchador__mira { transform: translate(-50%, -50%) scale(1); animation: kcz-mira 1.2s ease-in-out infinite; }
.kcz-luchador.es-obj .kcz-luchador__n { color: #FFE08A; }
.kcz-luchador.es-muerto, .kcz-luchador.es-cayendo { pointer-events: none; }
.kcz-luchador.es-cayendo .kcz-luchador__cuerpo, .kcz-luchador.es-muerto .kcz-luchador__cuerpo { animation: kcz-cae .6s ease-in forwards; }
.kcz-luchador.es-muerto { opacity: .35; }
.kcz-luchador__cuerpo.es-celebra { animation: kcz-celebra-c .5s ease-in-out 3; }
.kcz-arena__fx { position: absolute; inset: 0; pointer-events: none; }
.kcz-num { position: absolute; transform: translate(-50%, 0); font: 900 22px var(--z-mono); white-space: nowrap; paint-order: stroke; -webkit-text-stroke: 1px #06101F; text-shadow: 0 2px 0 #06101F, 0 0 12px currentColor; animation: kcz-num 1.15s cubic-bezier(.2, .8, .3, 1) forwards; z-index: 3; }
.kcz-num.es-dano { color: #FFE08A; }
.kcz-num.es-yo { color: #FF8A9A; }
.kcz-num.es-critico { font-size: 30px; color: #FF5470; }
.kcz-num.es-fallo { color: #CFF4FF; font-size: 18px; }
.kcz-num.es-cura { color: #7FF0B4; }
.kcz-num.es-dot { color: #C9A8FF; font-size: 18px; }
.kcz-num.es-hab { color: #9BE7FF; font-size: 15px; }
.kcz-num.es-estado { color: #FFB86B; font-size: 15px; }
.kcz-orbe { position: absolute; width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(circle, #fff 0, #9BE7FF 35%, rgba(92, 200, 255, 0) 70%); box-shadow: 0 0 24px #5CC8FF, 0 0 50px #5CC8FF; z-index: 2; }
.kcz-orbe.es-en { background: radial-gradient(circle, #fff 0, #FF8AE6 35%, rgba(255, 84, 112, 0) 70%); box-shadow: 0 0 24px #FF5470, 0 0 50px #B57BFF; }
.kcz-destello { position: absolute; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; border: 4px solid #FFE08A; animation: kcz-destello .55s ease-out forwards; z-index: 2; }
.kcz-destello.es-critico { border-color: #FF5470; border-width: 6px; }
.kcz-destello.es-magia { border-color: #9BE7FF; }
.kcz-destello.es-cura { border-color: #7FF0B4; }
.kcz-destello.es-buff { border-color: #C9A8FF; }
.kcz-arena__banner { position: absolute; left: 50%; top: 45%; transform: translate(-50%, -50%); font: 900 clamp(28px, 6vw, 48px) var(--z-mono); letter-spacing: .08em; color: #fff; text-shadow: 0 0 20px #5CC8FF, 0 4px 0 #06101F; white-space: nowrap; z-index: 4; pointer-events: none; }
.kcz-arena__banner.es-bien { color: #FFE08A; text-shadow: 0 0 24px #FFB020, 0 4px 0 #3A1C00; }
.kcz-arena__banner.es-mal { color: #FF8A9A; text-shadow: 0 0 24px #FF5470, 0 4px 0 #2A0010; }
.kcz-arena__panel { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin: 10px 2px 0; }
.kcz-tuturno { font: 800 13px var(--z-mono); color: #FFE08A; animation: kcz-latir-txt 1.2s ease-in-out infinite; }
.kcz-btn--ataque { background: linear-gradient(180deg, #FF8A6B, #E0435A); border-color: #FFC2B3; box-shadow: 0 0 14px rgba(255, 107, 129, .4); }
.kcz-gate.es-animando .kcz-acc-combate .kcz-btn { opacity: .45; pointer-events: none; }
.kcz-registro { margin-top: 8px; }
.kcz-registro summary { cursor: pointer; color: var(--z-suave); font-size: 12.5px; font-family: var(--z-mono); }
@keyframes kcz-contoneo { 0%, 100% { transform: translateY(0) rotate(-3deg) scale(1, 1); } 25% { transform: translateY(-5px) rotate(0) scale(.98, 1.03); } 50% { transform: translateY(0) rotate(3deg) scale(1.02, .98); } 75% { transform: translateY(-5px) rotate(0) scale(.98, 1.03); } }
@keyframes kcz-contoneo-en { 0%, 100% { transform: translateY(0) rotate(3deg) scale(1); } 50% { transform: translateY(-6px) rotate(-3deg) scale(1.03, .97); } }
@keyframes kcz-mira { 50% { transform: translate(-50%, -50%) scale(1.2) rotate(15deg); } }
@keyframes kcz-cae { 0% { transform: rotate(0); opacity: 1; } 40% { transform: translateY(-10px) rotate(-10deg); } 100% { transform: translateY(20px) rotate(80deg) scale(.7); opacity: 0; } }
@keyframes kcz-celebra-c { 50% { transform: translateY(-22px) rotate(-6deg) scale(1.08); } }
@keyframes kcz-num { 0% { opacity: 0; transform: translate(-50%, 10px) scale(.6); } 18% { opacity: 1; transform: translate(-50%, -6px) scale(1.25); } 100% { opacity: 0; transform: translate(-50%, -46px) scale(1); } }
@keyframes kcz-destello { from { transform: scale(.3); opacity: 1; } to { transform: scale(4); opacity: 0; } }
/* Los monstruos del mapa también se contonean, cada uno a su ritmo */
.kcz-ent-g--m .kcz-ent-cuerpo { animation: kcz-contoneo-en 1.9s ease-in-out infinite; transform-box: fill-box; transform-origin: center bottom; }
.kcz-ent-g--m:nth-child(2n) .kcz-ent-cuerpo { animation-duration: 2.3s; animation-delay: -.6s; }
.kcz-ent-g--m:nth-child(3n) .kcz-ent-cuerpo { animation-duration: 1.6s; animation-delay: -1.1s; }
.kcz-yo__cuerpo { animation: kcz-contoneo 2s ease-in-out infinite !important; transform-box: fill-box; transform-origin: center bottom; }
.kcz-yo-g.es-andando .kcz-yo__cuerpo { animation: none !important; }
