/* ==========================================================================
   Lunakai · Crónica Celeste — capa del juego
   ds.generated.css = el sistema de diseño exacto (generado con
   tools/port_css.py desde celeste.html; no editar a mano).
   Este archivo solo añade lo que el juego necesita y el sistema no tiene:
   el contenedor .lk-ui, la ventana modal sobre el canvas, retratos con
   imagen real y capas (z-index) por encima del HUD actual.
   ========================================================================== */

/* Raíz de cualquier pantalla nueva (equivale al body del sistema de diseño) */
.lk-ui {
  font-family: var(--lk-font-ui);
  font-size: 15px;
  line-height: 1.6;
  font-weight: 600;
  color: var(--lk-ivory-100);
  -webkit-font-smoothing: antialiased;
}

/* Capas por encima del HUD existente */
.lk-tooltip-float { z-index: 2000; }
.lk-toast { z-index: 2100; }

/* Ventana modal sobre el juego: fondo que oscurece + .lk-panel-modal-window */
.lk-backdrop {
  position: fixed; inset: 0; z-index: 1500; display: grid; place-items: center; padding: 20px;
  background: radial-gradient(80% 70% at 50% 40%, rgba(11, 15, 28, .45), rgba(8, 10, 18, .82));
  opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s;
}
.lk-backdrop.lk-is-open { opacity: 1; visibility: visible; }
.lk-backdrop > .lk-panel-modal-window {
  width: min(980px, 100%); max-height: calc(100vh - 40px); display: flex; flex-direction: column;
  transform: translateY(10px) scale(.985); transition: transform .3s var(--lk-ease);
}
.lk-backdrop.lk-is-open > .lk-panel-modal-window { transform: none; }
/* Rendimiento: dentro de la capa modal el fondo ya está oscurecido. El desenfoque (backdrop-filter)
   se recalculaba en cada fotograma sobre toda la ventana porque el mundo 3D sigue dibujándose
   detrás: era la causa principal del tirón al abrir Mochila, Forja y Tienda. Mismo tono, opaco. */
.lk-backdrop > .lk-panel-modal-window { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(20, 27, 45, .94); }

/* Diálogo con NPC (etapa 2): el escenario del sistema de diseño es la propia escena 3D.
   La capa no bloquea el mundo; solo la caja, las respuestas y el registro reciben clics. */
.lk-dlg-layer { position: fixed; inset: 0; z-index: 105; pointer-events: none; --lk-dlg-side: max(24px, calc(50% - 520px)); }
.lk-dlg-layer::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(11, 15, 28, .55)); pointer-events: none; }
.lk-dlg-layer .lk-dlg { left: var(--lk-dlg-side); right: var(--lk-dlg-side); }
.lk-dlg-layer .lk-dlg__choices { right: var(--lk-dlg-side); }
.lk-dlg-layer .lk-dlg__log { left: var(--lk-dlg-side); right: var(--lk-dlg-side); top: 24px; }
.lk-dlg-layer .lk-dlg__box,
.lk-dlg-layer .lk-dlg__choices,
.lk-dlg-layer .lk-dlg__log { pointer-events: auto; }
@media (max-width: 760px) { .lk-dlg-layer { --lk-dlg-side: 12px; } }

/* Retrato con imagen real (assets/portraits) dentro del medallón del sistema */
.lk-med > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
/* Hito 136: los retratos de Axie vienen muy ajustados (orejas y patas tocan el borde): enteros y con aire dentro del medallón */
.lk-med.lk-med--axie > img { inset: 11%; width: 78%; height: 78%; object-fit: contain; object-position: 50% 60%; }

@media (prefers-reduced-motion: reduce) {
  .lk-backdrop, .lk-backdrop > .lk-panel-modal-window { transition: none; }
}

/* Victoria y derrota (etapa 3): el tablero queda desenfocado detrás, como en el sistema de diseño. */
.lk-end-layer { backdrop-filter: blur(3px) saturate(.9); -webkit-backdrop-filter: blur(3px) saturate(.9); background: radial-gradient(80% 70% at 50% 40%, rgba(11, 15, 28, .35), rgba(11, 15, 28, .82)); }
.lk-end-layer.lk-is-defeat { backdrop-filter: blur(3px) grayscale(.75) brightness(.7); -webkit-backdrop-filter: blur(3px) grayscale(.75) brightness(.7); background: radial-gradient(80% 70% at 50% 40%, rgba(30, 12, 16, .45), rgba(8, 10, 18, .9)); }
.lk-end-layer > .lk-end { max-height: calc(100vh - 40px); display: flex; flex-direction: column; overflow: hidden; }
/* Solo el cuerpo se desplaza: el emblema y la barra de acciones («Volver al dojo») quedan siempre a la vista */
.lk-end-layer > .lk-end > .lk-end__crest, .lk-end-layer > .lk-end > .lk-end__foot { flex: none; }
.lk-end-layer > .lk-end > .lk-end__body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(211, 174, 108, .35) transparent; }
.lk-end-layer > .lk-end > .lk-end__foot { position: relative; z-index: 1; background: rgba(11, 15, 28, .82); box-shadow: 0 -10px 18px -10px rgba(0, 0, 0, .55); }
@media (max-height: 820px) { .lk-end-layer .lk-end__crest { padding: 18px 24px 14px; gap: 2px; } .lk-end-layer .lk-end__emblem { width: 46px; height: 46px; } .lk-end-layer .lk-end__title { font-size: clamp(2rem, 5vw, 2.8rem); } }
.lk-sup.lk-xp-only { grid-template-columns: 32px 118px minmax(0, 1fr); }
.lk-sup:not(.lk-xp-only) { grid-template-columns: 32px 92px minmax(0, 1fr) minmax(0, 1fr); }
.lk-sup > b { display: grid; min-width: 0; line-height: 1.2; }
.lk-sup > b > span { white-space: nowrap; }
.lk-sup-up { margin-left: 0; }
/* styles.css da estilo propio a #btn-return-overworld (id): se devuelve al botón del sistema de diseño */
#gameover-modal #btn-return-overworld { min-width: 0; padding: 3px 18px 3px 3px; font-size: .84rem; border-radius: var(--lk-r-pill); letter-spacing: .02em; transition: box-shadow .25s var(--lk-ease), transform .12s var(--lk-ease-soft), filter .2s; }
#gameover-modal #btn-return-overworld:hover { transform: none; box-shadow: 0 0 0 1px rgba(255, 255, 255, .4) inset, 0 4px 18px rgba(238, 211, 154, .35), 0 0 0 3px var(--ring) !important; }
.lk-sup-up { font: 800 .62rem var(--lk-font-ui); color: var(--lk-gilt-100); margin-left: 4px; }
.lk-end-empty { margin: 0; font-size: .8rem; font-weight: 700; color: #8D97AF; }
.lk-demo-tag { padding: 1px 7px; border-radius: var(--lk-r-pill); font: 900 .56rem var(--lk-font-ui); letter-spacing: .1em; text-transform: uppercase; color: #8D97AF; box-shadow: inset 0 0 0 1px rgba(141, 151, 175, .45); cursor: help; }
.lk-axp-meta .lk-demo-tag { margin-left: auto; }

/* Transición de cierre de combate: en el juego cubre la pantalla, por encima del HUD y por debajo del panel final */
.lk-cine-layer { position: fixed; z-index: 1450; }

/* Inicio de sesión y selección de aventura (etapa 4): la «pantalla» del sistema ocupa toda la ventana */
.lk-start { position: fixed; inset: 0; z-index: 1000; min-height: 0; border-radius: 0; box-shadow: none; overflow-y: auto; transition: opacity .6s var(--lk-ease); }
.lk-start::before, .lk-start > .lk-vista, .lk-start > .lk-sky { position: fixed; }
.lk-start.lk-is-leaving { opacity: 0; pointer-events: none; }
.lk-start[data-view="login"] .lk-start__select, .lk-start[data-view="select"] .lk-start__login { display: none; }
.lk-start__login { min-height: 100%; display: grid; place-items: center; }
.lk-start__select { min-height: 100%; display: flex; flex-direction: column; --lk-start-w: 1180px; --lk-start-pad: max(22px, calc((100% - var(--lk-start-w)) / 2 + 22px)); }
/* La barra superior ocupa todo el ancho; su contenido y el resto de la pantalla se alinean a la misma columna */
.lk-start__select > .lk-sel-top { padding-inline: var(--lk-start-pad); }
.lk-start__select > .lk-guest-banner { margin-inline: var(--lk-start-pad); }
.lk-start__select > .lk-sel-body, .lk-start__select > .lk-sel-foot, .lk-start__select > .lk-sel-legal { padding-inline: var(--lk-start-pad); }
.lk-start__select .lk-sel-body { flex: 1; align-content: center; }
.lk-start.lk-view-in .lk-start__select { animation: lkStartIn .5s var(--lk-ease); }
@keyframes lkStartIn { from { opacity: 0; transform: translateY(12px); } }
.lk-start__acct { position: relative; }
.lk-start__acct .lk-kmenu { top: 48px; right: 0; }
button.lk-acct { border: 0; cursor: pointer; font: inherit; color: inherit; text-align: left; }
.lk-start .lk-slot__art .lk-med > img { object-position: 50% 18%; }

/* Creación de personaje (etapa 5): pantalla completa; la vista previa 3D llena el escenario */
.lk-cc-layer { position: fixed; inset: 0; z-index: 1100; }
.lk-cc-screen { position: absolute; inset: 0; min-height: 0; border-radius: 0; box-shadow: none; display: flex; flex-direction: column; }
.lk-cc-screen > .lk-cc-body { flex: 1; min-height: 0; }
.lk-cc-screen .lk-cc-stage { min-height: 0; }
.lk-cc-screen .lk-cc-canvas { position: absolute; inset: 0; z-index: -1; }
.lk-cc-screen .lk-cc-canvas canvas { display: block; width: 100% !important; height: 100% !important; }
.lk-cc-screen .lk-cc-badges, .lk-cc-screen .lk-cc-rot { position: relative; z-index: 1; }
.lk-cc-screen .lk-cc-scene { pointer-events: none; }
.lk-cc-screen .lk-cc-panel { min-height: 0; }
.lk-cc-screen .lk-cc-pane { max-height: none; min-height: 0; overflow-y: auto; scrollbar-gutter: stable; }
.lk-crest > img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .55)); } /* Hito 95: emblemas con fondo transparente */
.lk-opt .dofus-item-svg { width: 30px; height: 30px; }
.lk-stat-chips svg { width: 14px; height: 14px; color: var(--lk-pm, #8CF09B); }
.lk-spell .lk-spell-part { position: absolute; right: 2px; bottom: 2px; width: 24px; height: 24px; object-fit: contain; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .8)); }
.lk-tooltip-tactical .lk-tt-part { width: 40px; height: 40px; }
.lk-tt-crest { flex: none; display: grid; }

/* Mochila y equipo (etapa 6): ventana del sistema de diseño a pantalla de juego.
   Alto fijo: cambiar de héroe, de pestaña o de filtro no cambia el tamaño (sin saltos de diseño). */
.lk-bag-layer { z-index: 1500; }
.lk-bag-layer > .lk-bag { width: min(1080px, 100%); height: min(760px, calc(100vh - 40px)); }
.lk-bag-layer .lk-bag__body { flex: 1; min-height: 0; grid-template-rows: minmax(0, 1fr); }
.lk-bag-layer .lk-bag__doll { overflow-y: auto; scrollbar-width: thin; scrollbar-gutter: stable; scrollbar-color: rgba(211, 174, 108, .35) transparent; }
.lk-bag-layer .lk-bag__grid-wrap { min-height: 0; display: flex; flex-direction: column; }
.lk-bag-layer .lk-bag__grid { flex: 1; max-height: none; min-height: 0; align-content: start; scrollbar-gutter: stable; }
.lk-bag-layer .lk-bag__grid-wrap[hidden] { display: none; }
.lk-bag-layer .lk-panel-head .lk-segmented button { position: relative; }
.lk-bag .lk-it .lk-emoji, .lk-tt-item .lk-tt-art .lk-emoji, .lk-eq-slot .lk-emoji { position: relative; font-size: 30px; line-height: 1; }
.lk-tt-item { z-index: 1600; pointer-events: none; }
.lk-tt-item.lk-is-pinned { pointer-events: auto; }
.lk-drag-ghost { z-index: 1700; }
body.lk-is-dragging, body.lk-is-dragging * { cursor: grabbing !important; }
.lk-bag .lk-it[data-slot], .lk-bag .lk-eq-slot.lk-has { touch-action: none; }
.lk-bag .lk-it.lk-is-dragging { opacity: .35; }
.lk-bag__grid-wrap.lk-is-drop .lk-bag__grid { box-shadow: inset 0 0 0 1.5px var(--lk-gilt-300); border-radius: var(--lk-r-sm); }

/* Marcas del escuadrón: puntos sin asignar */
.lk-sq-pip .lk-bag-pend { position: absolute; left: -3px; top: -3px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: var(--lk-gilt-300); color: #3D2C0E; font: 900 .7rem var(--lk-font-ui); box-shadow: 0 0 0 2px #121829; }
.lk-bag-dot { position: absolute; right: 4px; top: 4px; width: 7px; height: 7px; border-radius: 50%; background: var(--lk-gilt-300); box-shadow: 0 0 6px rgba(238, 211, 154, .8); }

/* Nivel, XP y atributos (progresión real de EquipmentManager) */
.lk-bag-xp { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; font-size: .72rem; font-weight: 800; color: #AEB6CB; padding: 2px 0 6px; }
.lk-bag-xp .lk-bar { width: auto; height: 6px; }
.lk-bag-xp b { color: #8D97AF; font-variant-numeric: tabular-nums; }
.lk-hero-stats .lk-hero-stats--grid { margin: 0; }
/* Tres columnas (atributos · ranuras · objetos): se amplía la ventana y cada columna hace scroll por su cuenta */
.lk-bag-layer > .lk-bag { width: min(1180px, 100%); }
.lk-bag-layer .lk-bag__attrs { overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(211, 174, 108, .35) transparent; }
.lk-bag-layer .lk-bag__attrs > .lk-hero-stats { gap: 10px; }
.lk-bag-layer .lk-hero-stats .lk-hero-stats--grid { margin: 0; }
.lk-bag-layer .lk-attr-block { margin-top: 8px; }
.lk-attr-add:focus-visible { outline: 2px solid var(--lk-gilt-100); outline-offset: 2px; }

/* Columna central: modelo 3D del héroe con las ranuras a los lados */
@media (min-width: 1101px) { .lk-bag-layer .lk-bag__body--3 { grid-template-columns: 268px 320px minmax(0, 1fr); } }
.lk-bag-layer .lk-bag__doll--model { padding: 0; overflow: hidden; display: block; }
.lk-doll.lk-doll--model { position: relative; height: 100%; min-height: 380px; }
.lk-doll__stage { position: absolute; inset: 0; }
.lk-doll__stage::before { content: ""; position: absolute; left: 50%; bottom: 14%; width: 70%; height: 46%; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(111, 164, 242, .18), transparent); pointer-events: none; }
.lk-doll__stage canvas { position: relative; display: block; width: 100% !important; height: 100% !important; }
.lk-doll__stage.lk-is-loading::after { content: ""; position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px; border-radius: 50%; border: 3px solid rgba(238, 211, 154, .25); border-top-color: var(--lk-gilt-300); animation: lkSpin .9s linear infinite; }
@keyframes lkSpin { to { transform: rotate(360deg); } }
.lk-model-fallback { position: absolute; left: calc(50% - 46px); top: 50%; width: 62%; max-height: 80%; object-fit: contain; transform: translate(-50%, -50%); filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .5)); pointer-events: none; }
.lk-doll--model .lk-eq-slot { z-index: 2; }
.lk-doll__rail { position: absolute; top: 0; right: 0; bottom: 0; width: 92px; z-index: 1; pointer-events: none; border-left: 1px solid rgba(211, 174, 108, .12); background: linear-gradient(90deg, rgba(11, 15, 28, 0), rgba(11, 15, 28, .45)); }
.lk-doll--model .lk-doll__stage::before { left: calc(50% - 46px); }
.lk-doll--model .lk-doll__hint { right: 92px; }
.lk-doll__hint { position: absolute; left: 0; right: 0; bottom: 12px; z-index: 1; text-align: center; font-size: .68rem; font-weight: 800; letter-spacing: .08em; color: #6E7894; pointer-events: none; }
.lk-bag-layer .lk-bag__attrs > .lk-sq-strip { margin-bottom: 2px; }

/* Aviso del tutorial y foco sobre el objeto que hay que equipar */
.lk-bag-tut { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-radius: var(--lk-r-sm); font-size: .8rem; font-weight: 700; color: var(--lk-ivory-50); background: linear-gradient(90deg, rgba(238, 211, 154, .16), rgba(238, 211, 154, .04)); box-shadow: inset 0 0 0 1px rgba(238, 211, 154, .4); }
.lk-bag-tut[hidden] { display: none; }
.lk-bag-tut img { width: 22px; height: 22px; flex: none; }
.lk-bag-tut.lk-ok { background: linear-gradient(90deg, rgba(140, 240, 155, .16), rgba(140, 240, 155, .04)); box-shadow: inset 0 0 0 1px rgba(140, 240, 155, .45); }
.lk-bag-tut kbd { padding: 0 6px; border-radius: 4px; font: 800 .72rem var(--lk-font-mono, monospace); background: rgba(11, 15, 28, .6); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15); }
.lk-bag .lk-it.lk-tut-spot { animation: lkTutSpot 1.4s ease-in-out infinite; }
@keyframes lkTutSpot { 0%, 100% { box-shadow: 0 0 0 2px var(--lk-gilt-300), 0 0 10px rgba(238, 211, 154, .4); } 50% { box-shadow: 0 0 0 3px var(--lk-gilt-100), 0 0 26px rgba(238, 211, 154, .85); } }
.lk-bag-empty { grid-column: 1 / -1; margin: 30px 0; display: grid; gap: 4px; justify-items: center; text-align: center; font-size: .8rem; font-weight: 700; color: #8D97AF; }
.lk-bag-empty b { font: 400 1.15rem var(--lk-font-display); color: var(--lk-ivory-50); }

/* Pestaña Habilidades */
.lk-bag-skills { overflow-y: auto; scrollbar-width: thin; scrollbar-gutter: stable; align-content: start; }
.lk-bag-skill { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; padding: 14px; border-radius: var(--lk-r-md); background: rgba(18, 24, 41, .6); box-shadow: inset 0 0 0 1px rgba(211, 174, 108, .16), inset 3px 0 0 var(--cc); }
.lk-bag-skill .lk-spell { width: 64px; align-self: start; }
.lk-bag-skill .lk-spell .lk-emoji { font-size: 30px; }
.lk-bag-skill__main { display: grid; gap: 6px; min-width: 0; }
.lk-bag-skill__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.lk-bag-skill__top b { font: 400 1.12rem var(--lk-font-display); color: var(--lk-ivory-50); }
.lk-bag-pips { display: flex; gap: 4px; }
.lk-bag-pips i { width: 10px; height: 10px; transform: rotate(45deg); border-radius: 2px; background: rgba(11, 15, 28, .8); box-shadow: inset 0 0 0 1px rgba(211, 174, 108, .4); }
.lk-bag-pips i.lk-on { background: linear-gradient(135deg, var(--lk-gilt-100), var(--lk-gilt-500)); box-shadow: 0 0 6px rgba(238, 211, 154, .6); }
.lk-bag-skill__stats { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .74rem; font-weight: 800; color: #AEB6CB; }
.lk-bag-skill__stats > span { display: inline-flex; align-items: center; gap: 5px; }
.lk-bag-skill__stats img { width: 15px; height: 15px; }
.lk-bag-skill__stats .lk-bag-dmg b { color: var(--lk-ivory-50); margin-left: 4px; }
.lk-bag-skill p { margin: 0; font-size: .8rem; font-weight: 600; color: #AEB6CB; }
.lk-bag-skill__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding-top: 8px; border-top: 1px solid rgba(211, 174, 108, .12); }
.lk-bag-mult { font: 800 .72rem var(--lk-font-ui); color: var(--lk-gilt-100); }
.lk-bag-need, .lk-bag-max { font-size: .72rem; font-weight: 800; color: #8D97AF; }
.lk-bag-max { color: var(--lk-gilt-300); }

@media (max-width: 1100px) {
  .lk-bag-layer .lk-bag__body, .lk-bag-layer .lk-bag__body--3 { grid-template-rows: none; overflow-y: auto; }
  .lk-doll.lk-doll--model { height: 420px; }
  .lk-bag-layer .lk-bag__attrs, .lk-bag-layer .lk-bag__doll { overflow: visible; }
  .lk-bag-layer .lk-bag__grid-wrap { min-height: 420px; }
}
@media (max-width: 820px) {
  .lk-bag-layer > .lk-bag { height: calc(100vh - 24px); }
  .lk-bag-layer .lk-bag__body { grid-template-columns: 1fr; overflow-y: auto; }
  .lk-bag-layer .lk-bag__doll { overflow: visible; border-right: 0; }
  .lk-bag-layer .lk-bag__attrs { grid-template-columns: 1fr; }
}
.lk-bag-skills > * { flex: none; }

/* Mochila: botón Escuadrón en la cabecera (abre el panel de la tecla K) */
.lk-bag .lk-panel-head .lk-bag__squad { margin-left: auto; }
.lk-bag .lk-panel-head .lk-bag__squad + .lk-segmented { margin-left: 0; }

/* Escuadrón (etapa 7): misma ventana fija que la mochila; colección y ficha hacen scroll por su cuenta */
.lk-squad-layer > .lk-squad { width: min(1180px, 100%); height: min(760px, calc(100vh - 40px)); }
.lk-squad-layer .lk-squad__body { flex: 1; min-height: 0; grid-template-rows: minmax(0, 1fr); }
.lk-squad-layer .lk-squad__col, .lk-squad-layer .lk-squad__detail { overflow-y: auto; scrollbar-width: thin; scrollbar-gutter: stable; scrollbar-color: rgba(211, 174, 108, .35) transparent; }
.lk-squad-layer .lk-sq-slot, .lk-squad-layer .lk-ax-card { touch-action: none; }
.lk-sq-ghost { z-index: 1700; }
.lk-squad .lk-sqd-top .lk-no { font: 700 .7rem var(--lk-font-mono, monospace); color: #8D97AF; }
.lk-squad .lk-asc-note .lk-demo-tag { margin-left: auto; }
.lk-squad .lk-bondrow > span { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 1100px) {
  .lk-squad-layer .lk-squad__body { grid-template-rows: none; overflow-y: auto; }
  .lk-squad-layer .lk-squad__col, .lk-squad-layer .lk-squad__detail { overflow: visible; }
}
.lk-squad .lk-b-ico .lk-heart-ico { width: 16px; height: 16px; object-fit: contain; filter: none; }

/* Crónica de misiones (etapa 8): el diario del sistema de diseño dentro de una ventana fija; lista y página hacen scroll */
.lk-chron-layer > .lk-chron { width: min(1080px, 100%); height: min(720px, calc(100vh - 40px)); }
.lk-chron .lk-journal { flex: 1; min-height: 0; border-radius: 0 0 var(--lk-r-lg) var(--lk-r-lg); box-shadow: none; grid-template-rows: minmax(0, 1fr); }
.lk-chron .lk-j-list, .lk-chron .lk-j-page { overflow-y: auto; scrollbar-width: thin; scrollbar-gutter: stable; }
.lk-chron .lk-j-list { scrollbar-color: rgba(211, 174, 108, .35) transparent; }
.lk-chron .lk-j-page { scrollbar-color: rgba(157, 122, 66, .45) transparent; }
.lk-chron .lk-panel-head .lk-chron__hide { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; font-size: .78rem; font-weight: 800; color: #AEB6CB; cursor: pointer; }
.lk-chron .lk-j-rail button img { width: 22px; height: 22px; }
.lk-chron .lk-j-rail button:not(.lk-is-on) img { opacity: .55; filter: grayscale(.4); }
.lk-chron .lk-q-item { gap: 10px; }
.lk-chron .lk-q-item .lk-q-name { flex: 1; min-width: 0; }
.lk-q-tag { flex: none; display: inline-flex; align-items: center; padding: 1px 7px; border-radius: var(--lk-r-pill); font: 900 .58rem var(--lk-font-ui); letter-spacing: .08em; text-transform: uppercase; }
.lk-q-tag img { width: 16px; height: 16px; }
.lk-q-tag.lk-turn { color: #3D2C0E; background: var(--lk-gilt-300); }
.lk-j-empty, .lk-j-foot { margin: 6px 10px 12px; font-size: .78rem; font-weight: 700; line-height: 1.5; color: #8D97AF; }
.lk-j-foot { margin-top: 18px; font-size: .72rem; color: #6E7894; }
.lk-chron kbd { padding: 0 6px; border-radius: 4px; font: 800 .72rem var(--lk-font-mono, monospace); background: rgba(11, 15, 28, .55); color: var(--lk-ivory-50); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15); }
.lk-j-page .lk-j-blank kbd { background: var(--lk-ivory-200, #E8DFCB); color: var(--lk-ink-900); box-shadow: inset 0 0 0 1px var(--lk-ivory-300); }
.lk-j-page .lk-giver { position: relative; }
.lk-j-page .lk-giver .lk-face { position: relative; overflow: hidden; flex: none; }
.lk-j-page .lk-giver .lk-face img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.lk-j-page .lk-giver b { font-family: var(--lk-font-display); font-weight: 400; font-size: 1.1rem; }
.lk-j-page .lk-giver small { color: var(--lk-ink-600); font-weight: 700; }
.lk-j-page .lk-j-track { margin-left: auto; }
.lk-j-page h4 { padding-right: 100px; }
.lk-j-page .lk-j-quote { font-family: var(--lk-font-display); font-size: 1.04rem; line-height: 1.5; color: var(--lk-ink-900); margin: 0 0 12px; }
.lk-j-objs { display: grid; gap: 2px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--lk-ivory-300); }
.lk-j-objs .lk-j-sum { margin: 2px 0 6px; font-size: .86rem; }
.lk-j-page .lk-obj { margin-top: 8px; color: var(--lk-ink-600); }
.lk-j-page .lk-obj.lk-is-next { color: var(--lk-ink-900); }
.lk-j-page .lk-obj.lk-is-next i { box-shadow: 0 0 0 3px rgba(157, 122, 66, .25); }
.lk-j-page .lk-obj.lk-is-done { color: #6E7A63; text-decoration: line-through; text-decoration-color: rgba(110, 122, 99, .6); }
.lk-j-page .lk-obj.lk-is-done i { background: #4F7A58; }
.lk-j-page .lk-obj:not(.lk-is-done):not(.lk-is-next) i { background: none; box-shadow: inset 0 0 0 1.5px var(--lk-gilt-700); }
.lk-j-rew { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--lk-ivory-300); }
.lk-j-rew .lk-rewards { margin-top: 10px; }
.lk-j-rew .lk-slot-item .lk-cap { max-width: 84px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lk-j-rew .lk-slot-item .lk-emoji { font-size: 28px; }
.lk-j-rew .lk-recruit .lk-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.lk-j-blank { height: 100%; display: grid; place-content: center; justify-items: center; gap: 8px; text-align: center; color: var(--lk-ink-600); }
.lk-j-blank img { width: 54px; height: 54px; opacity: .55; }
.lk-j-blank h4 { padding: 0; margin: 0; }
.lk-j-blank p { margin: 0 auto; max-width: 36ch; }
@media (max-width: 900px) {
  .lk-chron .lk-journal { grid-template-columns: 52px minmax(0, 1fr); grid-template-rows: none; overflow-y: auto; }
  .lk-chron .lk-j-page { grid-column: 1 / -1; overflow: visible; }
  .lk-chron .lk-j-list { overflow: visible; }
}

/* ==========================================================================
   Exploración (etapa 9): HUD del sistema de diseño (pantalla 20) sobre la escena 3D.
   Solo reciben clics los elementos interactivos; el resto deja pasar el ratón al mundo.
   ========================================================================== */
.lk-ow-hud { position: absolute; inset: 0; z-index: 95; pointer-events: none; }
.lk-ow-hud::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(520px 360px at 0 0, rgba(11, 15, 28, .5), transparent 70%), radial-gradient(420px 380px at 100% 20%, rgba(11, 15, 28, .38), transparent 70%); }
.lk-ow-hud > * { z-index: 1; }
.lk-ow-hud .lk-ow-left { pointer-events: none; }
.lk-ow-hud .lk-btn-circle-icon, .lk-ow-hud .lk-res-pill, .lk-ow-hud .lk-party-row, .lk-ow-hud .lk-quest-widget, .lk-ow-hud .lk-minimap, .lk-ow-hud .lk-minimap button { pointer-events: auto; }
.lk-ow-hud .lk-btn-circle-icon img { width: 22px; height: 22px; }
.lk-ow-hud .lk-btn-circle-icon .lk-key { position: absolute; right: -6px; bottom: -6px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 4px; display: grid; place-items: center; font: 800 .6rem/1 var(--lk-font-ui); background: var(--lk-ivory-100); color: var(--lk-ink-900); }
/* Botones bloqueados por el tutorial (OverworldTutorialManager añade hud-btn-locked y disabled) */
.lk-ow-hud .lk-btn-circle-icon.hud-btn-locked, .lk-ow-hud .lk-btn-circle-icon[disabled] { opacity: .4; cursor: not-allowed; filter: grayscale(.7); }

/* Minimapa */
.lk-ow-minimap { display: grid; justify-items: center; gap: 6px; }
.lk-ow-minimap.hidden { display: none; }
.lk-ow-minimap .lk-minimap { width: 150px; height: 150px; cursor: pointer; overflow: visible; background: #0B0F1C; }
.lk-ow-minimap .lk-minimap::before, .lk-ow-minimap .lk-minimap::after { display: none; }
.lk-ow-minimap #minimap-canvas { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; }
.lk-ow-minimap .lk-n { z-index: 2; }
.lk-minimap__zoom { position: absolute; right: -8px; bottom: 2px; z-index: 2; display: grid; gap: 4px; }
.lk-minimap__zoom button { width: 22px; height: 22px; border: 0; border-radius: 50%; cursor: pointer; display: grid; place-items: center; font: 800 .86rem/1 var(--lk-font-ui); color: var(--lk-ivory-100); background: rgba(18, 24, 41, .85); box-shadow: inset 0 0 0 1px var(--lk-gilt-line); }
.lk-minimap__zoom button:hover { color: var(--lk-gilt-100); box-shadow: inset 0 0 0 1px var(--lk-gilt-300); }
.lk-minimap__meta { display: flex; gap: 8px; align-items: center; font: 800 .68rem var(--lk-font-ui); letter-spacing: .06em; color: var(--lk-ivory-50); text-shadow: 0 1px 3px #000; }
.lk-minimap__dist { color: var(--lk-gilt-100); }
.lk-minimap__meta { flex-wrap: wrap; justify-content: center; max-width: 190px; row-gap: 2px; }
.lk-minimap__coords { flex-basis: 100%; text-align: center; font-weight: 700; letter-spacing: .04em; color: rgba(169, 204, 255, .85); font-variant-numeric: tabular-nums; }
.lk-minimap__dist.hidden { display: none; }

/* Misión */
.lk-ow-hud .lk-quest-widget { cursor: pointer; }
.lk-ow-hud .lk-quest-widget header .lk-ico svg { width: 11px; height: 11px; }
.lk-ow-hud .lk-quest-widget .lk-min-btn { flex: none; width: 22px; height: 22px; border: 0; border-radius: 50%; cursor: pointer; display: grid; place-items: center; font: 800 .9rem/1 var(--lk-font-ui); color: var(--lk-ivory-100); background: rgba(11, 15, 28, .55); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); text-shadow: none; }
.lk-ow-hud .lk-quest-widget .lk-min-btn:hover { color: var(--lk-gilt-100); }
.lk-ow-hud .lk-qbody { gap: 6px; }
.lk-ow-nav { display: flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 800; color: var(--lk-gilt-100); }
.lk-ow-nav.hidden { display: none; }
.lk-ow-nav__arrow { width: 20px; height: 20px; flex: none; display: grid; place-items: center; border-radius: 50%; font-size: .66rem; color: #3D2C0E; background: linear-gradient(135deg, var(--lk-gilt-100), var(--lk-gilt-500)); text-shadow: none; }
.lk-ow-zone { display: flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 800; color: #DCE2EE; }
.lk-ow-zone .hud-biome-dot { width: 7px; height: 7px; transform: rotate(45deg); border-radius: 1px; box-shadow: 0 0 6px currentColor; }
.lk-ow-zone .hud-zone-coord { color: var(--lk-gilt-300); font-variant-numeric: tabular-nums; }
.lk-ow-zone .hud-subq-badge { padding: 0 5px; border-radius: 4px; font-size: .6rem; letter-spacing: .08em; background: rgba(11, 15, 28, .55); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); }

/* Escuadrón (derecha): medallones con marco dorado neutro, nivel y vida; el detalle en el tooltip */
.lk-ow-hud .lk-party { top: 18px; gap: 14px; justify-items: end; }
.lk-party-med { pointer-events: auto; position: relative; display: grid; justify-items: center; gap: 9px; padding: 0; border: 0; background: none; cursor: pointer; }
.lk-pm-frame { position: relative; width: 58px; height: 58px; border-radius: 50%; background: radial-gradient(circle at 50% 35%, #2A3A62, #121829 75%); box-shadow: 0 0 0 2px rgba(11, 15, 28, .75), 0 0 0 3.5px var(--lk-gilt-500), 0 0 0 5px rgba(11, 15, 28, .45), 0 6px 14px rgba(0, 0, 0, .45); transition: box-shadow .2s, transform .2s var(--lk-ease); }
.lk-pm-frame::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(238, 211, 154, .35), inset 0 -10px 18px rgba(11, 15, 28, .35); pointer-events: none; }
.lk-pm-frame img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: 50% 20%; }
/* Hito 136: los retratos de Axie vienen muy ajustados (orejas y patas tocan el borde): enteros y con aire dentro del medallón */
.lk-pm-frame img.lk-pm-axie { inset: 11%; width: 78%; height: 78%; border-radius: 0; object-fit: contain; object-position: 50% 60%; }
.lk-party-med:hover .lk-pm-frame, .lk-party-med:focus-visible .lk-pm-frame { transform: translateY(-1px); box-shadow: 0 0 0 2px rgba(11, 15, 28, .75), 0 0 0 3.5px var(--lk-gilt-100), 0 0 0 7px rgba(239, 232, 218, .2), 0 6px 14px rgba(0, 0, 0, .45); }
.lk-party-med:focus-visible { outline: none; }
.lk-pm-lv { position: absolute; left: -6px; bottom: -4px; z-index: 2; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; display: grid; place-items: center; font: 900 .66rem/1 var(--lk-font-ui); color: #3D2C0E; background: linear-gradient(180deg, var(--lk-gilt-100), var(--lk-gilt-500)); box-shadow: 0 0 0 2px rgba(11, 15, 28, .8); }
.lk-pm-hp { width: 50px; height: 4px; border-radius: 2px; overflow: hidden; background: rgba(11, 15, 28, .7); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 1px 3px rgba(0, 0, 0, .5); }
.lk-pm-hp i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #57B86B, var(--lk-hp-vital-green)); transition: width .5s var(--lk-ease); }
.lk-pm-hp.lk-is-low i { background: linear-gradient(90deg, #C94C49, var(--lk-enemy-red, #E0605C)); }
.lk-party-tip { position: fixed; z-index: 2000; width: 236px; left: 0; top: 0; pointer-events: none; opacity: 0; visibility: hidden; transform: translateX(6px); transition: opacity .14s, transform .14s, visibility .14s; --c: var(--lk-gilt-500); }
.lk-party-tip.lk-is-on { opacity: 1; visibility: visible; transform: none; }
.lk-party-tip header b { font-size: 1.05rem; }
.lk-party-tip .lk-tt-stats { grid-template-columns: 1fr 1fr; }
.lk-pt-role { display: block; font-size: .74rem; font-weight: 800; color: var(--lk-ink-600); }
.lk-pt-xp { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; margin: 0; font-size: .74rem; font-weight: 800; color: var(--lk-ink-900); }
.lk-pt-xp .lk-bar { height: 6px; background: rgba(11, 15, 28, .15); box-shadow: none; }
.lk-pt-xp b { color: var(--lk-ink-600); }
.lk-party-tip .lk-tt-hint { display: flex; gap: 6px; align-items: center; font-size: .7rem; font-weight: 800; color: var(--lk-ink-600); padding-top: 8px; border-top: 1px dashed var(--lk-ivory-300, #D8CDB6); }
.lk-party-tip .lk-tt-body { gap: 8px; }
body.state-combat .lk-party-tip { display: none; }
.lk-bar.lk-bar--low > i { background: linear-gradient(90deg, #C94C49, var(--lk-enemy-red, #E0605C)); }

/* Teclas y coordenadas (abajo a la izquierda, discretas) */
.lk-ow-keys { position: absolute; left: 20px; bottom: 16px; display: flex; flex-wrap: wrap; gap: 4px 12px; max-width: 32vw; font-size: .68rem; font-weight: 700; color: rgba(239, 232, 218, .72); text-shadow: 0 1px 3px #000; }
.lk-ow-keys kbd { margin-right: 3px; padding: 0 5px; border-radius: 4px; font: 800 .62rem var(--lk-font-ui); background: rgba(11, 15, 28, .55); color: var(--lk-ivory-50); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); text-shadow: none; }
.lk-ow-keys .lk-ow-coord { color: rgba(169, 204, 255, .75); font-variant-numeric: tabular-nums; }
@media (max-width: 900px) { .lk-ow-keys { display: none; } }
body.state-combat .lk-ow-hud, body.state-combat .lk-ow-minimap { display: none !important; }

/* Pantalla de carga entre zonas (LoadingScreen.js dentro de #zone-transition-curtain) */
.zone-curtain.lk-load { background: #0B0F1C; display: block; overflow: hidden; isolation: isolate; }
.lk-load > .lk-vista { z-index: -2; }
.lk-load > svg.lk-sky { z-index: -1; }
.lk-load__shade { position: absolute; inset: 0; z-index: 0; pointer-events: none; background: linear-gradient(180deg, rgba(11, 15, 28, .55), transparent 28%, transparent 50%, rgba(11, 15, 28, .88)); }
.lk-load__logo { position: absolute; left: 50%; top: 9vh; z-index: 1; width: min(380px, 52vw); transform: translateX(-50%); filter: drop-shadow(0 12px 24px rgba(5, 8, 18, .6)); }
.lk-load__bottom { position: absolute; left: max(24px, 4vw); right: max(24px, 4vw); bottom: max(24px, 5vh); z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px 28px; align-items: end; }
.lk-load .lk-tip-card { max-width: 520px; }
.lk-load .lk-moon-spin { display: grid; width: 40px; height: 40px; color: var(--lk-gilt-300); animation: lk-spin 2.4s linear infinite; }
.lk-load .lk-moon-spin svg { width: 100%; height: 100%; }
.lk-load .lk-load-bar .lk-moon svg { width: 100%; height: 100%; }
.lk-load__brand { font: 800 .62rem var(--lk-font-ui); letter-spacing: .24em; color: var(--lk-gilt-300); }
.lk-load .lk-fill { width: 0; }
.lk-load .lk-load-bar .lk-moon { left: 0; }
.lk-load.lk-load--run .lk-fill { animation: lkLoadFill 2.6s cubic-bezier(.2, .7, .3, 1) forwards; }
.lk-load.lk-load--run .lk-load-bar .lk-moon { animation: lkLoadMoon 2.6s cubic-bezier(.2, .7, .3, 1) forwards; }
@keyframes lkLoadFill { from { width: 0; } to { width: 92%; } }
@keyframes lkLoadMoon { from { left: 0; } to { left: 92%; } }
@media (prefers-reduced-motion: reduce) {
  .lk-load .lk-moon-spin { animation: none; }
  .lk-load.lk-load--run .lk-fill, .lk-load.lk-load--run .lk-load-bar .lk-moon { animation-duration: .01s; }
}
@media (max-width: 700px) { .lk-load__bottom { grid-template-columns: 1fr; } .lk-load .lk-moon-spin { display: none; } }

/* Avisos de misión en exploración (#turn-banner.quest-notification, OverworldManager/NPCManager): cartela del sistema de diseño.
   El aviso de turno de combate (misma caja, otras clases) se rediseña en la etapa 11. */
#turn-banner.quest-notification .banner-content { position: relative; padding: 14px 72px 16px; border: 0; background: linear-gradient(90deg, transparent, rgba(18, 24, 41, .94) 18%, rgba(18, 24, 41, .94) 82%, transparent); box-shadow: none; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
#turn-banner.quest-notification .banner-content::before, #turn-banner.quest-notification .banner-content::after { content: ""; position: absolute; left: 12%; right: 12%; height: 1px; background: linear-gradient(90deg, transparent, var(--lk-gilt-300), transparent); }
#turn-banner.quest-notification .banner-content::before { top: 0; }
#turn-banner.quest-notification .banner-content::after { bottom: 0; }
#turn-banner.quest-notification #banner-title { display: block; font: 400 1.9rem/1.15 var(--lk-font-display); letter-spacing: .02em; color: var(--lk-ivory-50); text-shadow: 0 2px 10px rgba(0, 0, 0, .7), 0 0 22px rgba(238, 211, 154, .35); }
#turn-banner.quest-notification #banner-subtitle { display: block; margin: 0 0 4px; font: 800 .74rem var(--lk-font-ui); letter-spacing: .14em; text-transform: none; color: var(--lk-gilt-100); }
#turn-banner.quest-notification.quest-completed #banner-subtitle { color: #8CF09B; }
#turn-banner.quest-notification.quest-completed #banner-title { text-shadow: 0 2px 10px rgba(0, 0, 0, .7), 0 0 22px rgba(140, 240, 155, .35); }

/* Marcador 3D del objetivo de la misión */
#hud-3d-quest-pin { display: flex; align-items: center; gap: 6px; padding: 3px 10px 3px 4px; border: 0; border-radius: var(--lk-r-pill, 999px); background: rgba(11, 15, 28, .62); color: var(--lk-ivory-50); font: 800 .72rem var(--lk-font-ui, sans-serif); box-shadow: inset 0 0 0 1px var(--lk-gilt-line, rgba(211, 174, 108, .4)); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
#hud-3d-quest-pin .hud-quest-pin-icon { width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; font-size: .7rem; background: linear-gradient(135deg, var(--lk-gilt-100), var(--lk-gilt-500)); }
#hud-3d-quest-pin .hud-quest-pin-dist { color: var(--lk-gilt-100); }
.lk-party-tip header { display: flex; align-items: center; gap: 10px; }
.lk-pt-cls { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: rgba(11, 15, 28, .45); box-shadow: inset 0 0 0 1px rgba(238, 211, 154, .45); }
.lk-pt-cls img { width: 24px; height: 24px; object-fit: contain; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .6)); }
.lk-pt-cls.lk-is-sapi img { width: 100%; height: 100%; object-fit: contain; }
/* Vínculo del principal: orbe con corazón arriba a la derecha (en diagonal con la ficha de nivel) */
.lk-pm-bond { position: absolute; right: -8px; top: -6px; z-index: 2; width: 26px; height: 26px; display: block; filter: drop-shadow(0 0 5px rgba(242, 123, 160, .55)) drop-shadow(0 2px 3px rgba(0, 0, 0, .55)); }
.lk-pm-bond svg { width: 100%; height: 100%; display: block; }
/* Menú (mochila, escuadrón, crónica, mapa, opciones) abajo a la derecha, lejos de los retratos */
.lk-ow-hud .lk-ow-menu { position: absolute; right: 20px; bottom: 20px; display: flex; gap: 12px; align-items: center; }

/* Tutorial guiado: el velo oscuro (#tutorial-focus-overlay, z 9998) solo debe cubrir el HUD mientras señala el botón.
   En cuanto la mochila o la Crónica están abiertas, se oculta para que el panel quede por encima y se pueda usar. */
body:has(.lk-bag-layer:not(.hidden)) #tutorial-focus-overlay,
body:has(.lk-chron-layer:not(.hidden)) #tutorial-focus-overlay { display: none !important; }

/* ── Globo del NPC (al acercarse) y opción de interacción [E] · Crónica Celeste ──────────────────────── */
/* NPCManager coloca el globo en el punto proyectado sobre la cabeza del NPC (left/top) */
.lk-npc-bubble { position: fixed; z-index: 900; transform: translate(-50%, calc(-100% - 12px)); width: max-content; max-width: 300px; padding: 22px 18px 12px; border-radius: var(--lk-r-md); color: var(--lk-ink-900); pointer-events: none;
  background: var(--lk-lattice), linear-gradient(180deg, var(--lk-ivory-50), var(--lk-ivory-100));
  box-shadow: 0 14px 30px rgba(5, 8, 18, .45), inset 0 0 0 1px rgba(157, 122, 66, .45), inset 0 0 0 4px rgba(255, 255, 255, .35), inset 0 0 0 5px rgba(157, 122, 66, .22);
  animation: lkBubbleIn .22s var(--lk-ease, ease-out) both, lkBubbleBob 3.2s 0.22s ease-in-out infinite; }
.lk-npc-bubble.hidden { display: none !important; }
/* Cola del globo: rombo de papel apuntando al NPC */
.lk-npc-bubble::after { content: ""; position: absolute; left: 50%; bottom: -7px; width: 14px; height: 14px; transform: translateX(-50%) rotate(45deg); background: var(--lk-ivory-100); box-shadow: 1px 1px 0 rgba(157, 122, 66, .45); }
.lk-npc-bubble__plate { position: absolute; left: 14px; top: -14px; display: flex; align-items: center; gap: 8px; max-width: calc(100% - 40px); padding: 4px 14px 4px 11px; border-radius: var(--lk-r-pill); background: linear-gradient(180deg, #26345E, #1A2236); box-shadow: 0 5px 12px rgba(0, 0, 0, .35), inset 0 0 0 1px var(--lk-gilt-500); }
.lk-npc-bubble__plate i { flex: none; width: 6px; height: 6px; transform: rotate(45deg); background: var(--lk-gilt-300); }
.lk-npc-bubble__plate b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 400 .95rem/1.2 var(--lk-font-display); color: var(--lk-gilt-100); letter-spacing: .02em; }
.lk-npc-bubble__text { margin: 0; font-size: .86rem; line-height: 1.45; font-weight: 700; font-style: italic; color: #2E3448; text-wrap: pretty; }
/* Marca de estado (rombo) en la esquina: ! misión disponible · ? entregar · ⚔ combate · ✦ reclutar */
.lk-npc-mark { position: absolute; right: -9px; top: -11px; width: 26px; height: 26px; display: grid; place-items: center; font: 900 .82rem/1 var(--lk-font-ui); color: #3D2C0E; }
.lk-npc-mark::before { content: ""; position: absolute; inset: 3px; z-index: -1; transform: rotate(45deg); border-radius: 4px; background: linear-gradient(180deg, var(--lk-gilt-100), var(--lk-gilt-500)); box-shadow: 0 0 0 2px rgba(11, 15, 28, .75), 0 0 12px rgba(238, 211, 154, .55); }
.lk-npc-mark[data-mark="talk"] { display: none; }
.lk-npc-mark[data-mark="quest"] { animation: lkMarkPulse 1.6s ease-in-out infinite; }
.lk-npc-mark[data-mark="turnin"] { color: #3D2C0E; animation: lkMarkPulse 1.6s ease-in-out infinite; }
.lk-npc-mark[data-mark="turnin"]::before { box-shadow: 0 0 0 2px rgba(11, 15, 28, .75), 0 0 16px rgba(255, 241, 207, .9); }
.lk-npc-mark[data-mark="combat"] { color: #fff; font-size: .78rem; }
.lk-npc-mark[data-mark="combat"]::before { background: linear-gradient(180deg, #F08A84, var(--lk-danger-crimson)); box-shadow: 0 0 0 2px rgba(11, 15, 28, .75), 0 0 12px rgba(224, 96, 90, .55); }
.lk-npc-mark[data-mark="recruit"] { color: #fff; }
.lk-npc-mark[data-mark="recruit"]::before { background: linear-gradient(180deg, #F9A9C2, var(--lk-bond-heart-magenta)); box-shadow: 0 0 0 2px rgba(11, 15, 28, .75), 0 0 12px rgba(242, 123, 160, .6); }
@keyframes lkBubbleIn { from { opacity: 0; translate: 0 6px; } to { opacity: 1; translate: 0 0; } }
@keyframes lkBubbleBob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -4px; } }
@keyframes lkMarkPulse { 0%, 100% { scale: 1; } 50% { scale: 1.12; } }

/* Opción de interacción: píldora marfil con la tecla, abajo al centro sobre la barra del Sapidae */
.lk-interact-prompt { position: fixed; left: 50%; bottom: 84px; z-index: 950; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 4px 18px 4px 4px; min-width: 200px; border-radius: var(--lk-r-pill); pointer-events: none;
  background: linear-gradient(90deg, rgba(239, 232, 218, .96), rgba(239, 232, 218, .8)); color: var(--lk-ink-900);
  box-shadow: 0 8px 22px rgba(5, 8, 18, .4), inset 0 0 0 1px rgba(157, 122, 66, .4); animation: lkPromptIn .18s ease-out both; }
.lk-interact-prompt.hidden { display: none !important; }
.lk-ip__key { flex: none; width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center; font: 900 .8rem/1 var(--lk-font-ui); color: var(--lk-ivory-50); background: linear-gradient(180deg, #323D5A, #1A2236); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .35), 0 0 0 1px rgba(211, 174, 108, .5); }
.lk-ip__text { font-size: .86rem; font-weight: 800; white-space: nowrap; letter-spacing: .01em; }
@keyframes lkPromptIn { from { opacity: 0; translate: 0 6px; } to { opacity: 1; translate: 0 0; } }

body.state-combat #npc-speech-bubble,
body.state-combat #npc-interaction-prompt { display: none !important; }

/* ── Prólogo cinematográfico (CinematicFlythrough) · franjas de cine de la Crónica Celeste ───────────── */
.lk-prologue { position: absolute; inset: 0; z-index: 120; overflow: hidden; pointer-events: none; --bar: clamp(56px, 9vh, 92px); --p: 0; transition: opacity .6s var(--lk-ease, ease); }
.lk-prologue.hidden { display: none !important; }
.lk-prologue.fade-out { opacity: 0; }
.lk-prologue__bar { position: absolute; left: 0; right: 0; height: var(--bar); z-index: 3; background: #05070E; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(18px, 3vw, 40px); }
.lk-prologue__bar::after { content: ""; position: absolute; left: 0; right: 0; height: 1px; opacity: .8; background: linear-gradient(90deg, transparent, rgba(211, 174, 108, .45) 20%, var(--lk-gilt-300) 50%, rgba(211, 174, 108, .45) 80%, transparent); }
.lk-prologue__bar--top { top: 0; }
.lk-prologue__bar--top::after { bottom: 0; }
.lk-prologue__bar--bot { bottom: 0; justify-content: center; }
.lk-prologue__bar--bot::after { top: 0; }
.lk-prologue--in .lk-prologue__bar--top { animation: lkProBarTop .7s var(--lk-ease, ease-out) both; }
.lk-prologue--in .lk-prologue__bar--bot { animation: lkProBarBot .7s var(--lk-ease, ease-out) both; }
@keyframes lkProBarTop { from { transform: translateY(-100%); } to { transform: none; } }
@keyframes lkProBarBot { from { transform: translateY(100%); } to { transform: none; } }

/* Rótulo del prólogo y botón Saltar, dentro de la franja superior */
.lk-prologue__kicker { display: flex; align-items: center; gap: 12px; font: 800 .72rem/1 var(--lk-font-ui); letter-spacing: .26em; text-transform: uppercase; color: var(--lk-gilt-500); }
.lk-prologue__kicker i { width: 7px; height: 7px; transform: rotate(45deg); background: var(--lk-gilt-300); box-shadow: 0 0 8px rgba(238, 211, 154, .6); }
.lk-prologue__kicker::after { content: ""; width: 64px; height: 1px; background: linear-gradient(90deg, var(--lk-gilt-500), transparent); }
.lk-prologue__skip { pointer-events: auto; display: flex; align-items: center; gap: 10px; padding: 7px 14px 7px 18px; border: 0; border-radius: var(--lk-r-pill); cursor: pointer; font: 800 .8rem/1 var(--lk-font-ui); letter-spacing: .02em; color: var(--lk-ivory-100); background: rgba(239, 232, 218, .06); box-shadow: inset 0 0 0 1px rgba(211, 174, 108, .35); transition: background .18s, box-shadow .18s, color .18s; }
.lk-prologue__skip svg { width: 16px; height: 16px; color: var(--lk-gilt-300); }
.lk-prologue__skip:hover, .lk-prologue__skip:focus-visible { outline: none; color: var(--lk-ivory-50); background: rgba(211, 174, 108, .16); box-shadow: inset 0 0 0 1px var(--lk-gilt-300), 0 0 18px rgba(238, 211, 154, .25); }

/* Subtítulo: tipografía de títulos sobre un velo suave, encima de la franja inferior */
.lk-prologue__scrim { position: absolute; left: 0; right: 0; bottom: var(--bar); height: 34vh; z-index: 1; background: linear-gradient(0deg, rgba(5, 7, 14, .78), rgba(5, 7, 14, .35) 45%, transparent); opacity: 0; transition: opacity .6s; }
.lk-prologue__sub { position: absolute; left: 50%; bottom: calc(var(--bar) + clamp(20px, 4vh, 40px)); z-index: 2; width: min(880px, calc(100% - 48px)); transform: translateX(-50%); display: grid; justify-items: center; gap: 12px; text-align: center; }
.lk-prologue__orn { display: flex; align-items: center; gap: 12px; width: min(280px, 60%); color: var(--lk-gilt-300); opacity: 0; transition: opacity .5s; }
.lk-prologue__orn::before, .lk-prologue__orn::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, currentColor); }
.lk-prologue__orn::after { background: linear-gradient(270deg, transparent, currentColor); }
.lk-prologue__orn i { width: 7px; height: 7px; border: 1px solid currentColor; transform: rotate(45deg); }
.lk-prologue__text { margin: 0; font: 400 clamp(1.15rem, 2.1vw, 1.6rem)/1.5 var(--lk-font-display); letter-spacing: .015em; color: var(--lk-ivory-50); text-wrap: balance; text-shadow: 0 2px 14px rgba(0, 0, 0, .85), 0 0 2px rgba(0, 0, 0, .6); opacity: 0; transform: translateY(8px); transition: opacity .55s var(--lk-ease, ease), transform .55s var(--lk-ease, ease); }
.lk-prologue__dots { display: flex; gap: 8px; opacity: 0; transition: opacity .5s; }
.lk-prologue__dots i { width: 6px; height: 6px; transform: rotate(45deg); background: rgba(239, 232, 218, .22); transition: background .3s, box-shadow .3s; }
.lk-prologue__dots i.lk-is-done { background: rgba(211, 174, 108, .6); }
.lk-prologue__dots i.lk-is-on { background: var(--lk-gilt-300); box-shadow: 0 0 8px rgba(238, 211, 154, .8); }
.lk-prologue--sub .lk-prologue__scrim, .lk-prologue--sub .lk-prologue__orn, .lk-prologue--sub .lk-prologue__dots { opacity: 1; }
.lk-prologue--sub .lk-prologue__text { opacity: 1; transform: none; }

/* Hilo dorado de progreso en la franja inferior */
.lk-prologue__prog { position: relative; width: min(320px, 40vw); height: 2px; border-radius: 2px; background: rgba(239, 232, 218, .1); overflow: hidden; }
.lk-prologue__prog i { position: absolute; inset: 0; transform-origin: left; transform: scaleX(var(--p)); background: linear-gradient(90deg, var(--lk-gilt-500), var(--lk-gilt-100)); box-shadow: 0 0 8px rgba(238, 211, 154, .7); }

@media (prefers-reduced-motion: reduce) { .lk-prologue--in .lk-prologue__bar { animation: none; } }

/* ── Presentación del héroe al empezar (OverworldManager · HERO_PRESENTATION) ─────────────────────────── */
/* Rótulo en el tercio inferior izquierdo: el héroe, que saluda en el centro, queda a la vista */
.lk-intro { position: absolute; inset: 0; z-index: 130; cursor: pointer; --intro-ms: 4200ms; transition: opacity .35s var(--lk-ease, ease); }
.lk-intro.hidden { display: none !important; }
.lk-intro.fade-out { opacity: 0; }
.lk-intro__scrim { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 90% at 0% 100%, rgba(5, 7, 14, .78), rgba(5, 7, 14, .35) 42%, transparent 65%); animation: lkIntroFade .6s ease-out both; }
.lk-intro__card { position: absolute; left: clamp(24px, 6vw, 96px); bottom: clamp(40px, 13vh, 140px); display: grid; justify-items: start; gap: 10px; max-width: min(560px, calc(100% - 48px)); }
.lk-intro__kicker { display: flex; align-items: center; gap: 12px; font: 800 .74rem/1 var(--lk-font-ui); letter-spacing: .26em; text-transform: uppercase; color: var(--lk-gilt-500); animation: lkIntroUp .5s var(--lk-ease, ease-out) .05s both; }
.lk-intro__kicker i { width: 7px; height: 7px; transform: rotate(45deg); background: var(--lk-gilt-300); box-shadow: 0 0 8px rgba(238, 211, 154, .6); }
.lk-intro__name { margin: 0; font: 600 clamp(2.6rem, 6vw, 4.4rem)/1.02 var(--lk-font-brand, var(--lk-font-display)); letter-spacing: .08em; color: transparent; background: linear-gradient(180deg, #FFF8E6, var(--lk-gilt-300) 55%, #A9844A); -webkit-background-clip: text; background-clip: text; filter: drop-shadow(0 4px 16px rgba(0, 0, 0, .6)); animation: lkIntroUp .6s var(--lk-ease, ease-out) .12s both; }
.lk-intro__line { display: flex; align-items: center; gap: 10px; width: min(340px, 70vw); color: var(--lk-gilt-300); animation: lkIntroLine .6s var(--lk-ease, ease-out) .3s both; transform-origin: left; }
.lk-intro__line::before { content: ""; width: 34px; height: 1px; background: currentColor; }
.lk-intro__line::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, currentColor, transparent); }
.lk-intro__line i { width: 7px; height: 7px; border: 1px solid currentColor; transform: rotate(45deg); }
.lk-intro__meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; animation: lkIntroUp .5s var(--lk-ease, ease-out) .4s both; }
.lk-intro__chip { display: flex; align-items: center; gap: 10px; padding: 5px 16px 5px 5px; border-radius: var(--lk-r-pill); background: rgba(11, 15, 28, .62); box-shadow: inset 0 0 0 1px rgba(211, 174, 108, .3); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lk-intro__cls, .lk-intro__med { flex: none; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: radial-gradient(circle at 50% 35%, #2C3A62, #141B2E); box-shadow: 0 0 0 2px rgba(11, 15, 28, .8), 0 0 0 3px rgba(211, 174, 108, .55); }
.lk-intro__cls img { width: 100%; height: 100%; object-fit: contain; }
.lk-intro__med img { width: 118%; height: 118%; object-fit: contain; }
.lk-intro__txt { display: grid; gap: 1px; line-height: 1.15; }
.lk-intro__txt small { font: 800 .64rem/1.2 var(--lk-font-ui); letter-spacing: .14em; text-transform: uppercase; color: #9AA3BA; }
.lk-intro__txt b { font: 400 1.02rem/1.2 var(--lk-font-display); color: var(--lk-ivory-50); }
.lk-intro__go { display: flex; align-items: center; gap: 12px; margin-top: 10px; font-size: .8rem; font-weight: 800; color: #C8CFDF; text-shadow: 0 1px 4px rgba(0, 0, 0, .7); animation: lkIntroFade .5s ease-out .55s both; }
.lk-intro__hint { display: flex; align-items: center; gap: 8px; }
/* Hebra dorada: se llena durante el tiempo que el rótulo permanece en pantalla */
.lk-intro__prog { position: relative; width: 120px; height: 2px; border-radius: 2px; overflow: hidden; background: rgba(239, 232, 218, .14); }
.lk-intro__prog i { position: absolute; inset: 0; transform-origin: left; background: linear-gradient(90deg, var(--lk-gilt-500), var(--lk-gilt-100)); box-shadow: 0 0 8px rgba(238, 211, 154, .7); animation: lkIntroProg var(--intro-ms) linear both; }
.lk-intro.hidden .lk-intro__prog i { animation: none; }
@keyframes lkIntroUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes lkIntroFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes lkIntroLine { from { opacity: 0; transform: scaleX(0); } to { opacity: 1; transform: none; } }
@keyframes lkIntroProg { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .lk-intro__kicker, .lk-intro__name, .lk-intro__line, .lk-intro__meta { animation: none; } }

/* ── Tutorial guiado: franja de guía arriba al centro (maqueta «hint-line») ──────────────────────────── */
/* Arriba al centro: el minimapa queda a la izquierda y el escuadrón a la derecha, sin solaparse */
.lk-tut { position: fixed; left: 50%; top: 16px; z-index: 900; transform: translateX(-50%); width: max-content; max-width: min(640px, calc(100vw - 2 * 300px)); min-width: 360px; padding: 9px 56px 11px; text-align: center; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(11, 15, 28, .82) 14%, rgba(11, 15, 28, .82) 86%, transparent); }
.lk-tut::before, .lk-tut::after { content: ""; position: absolute; left: 14%; right: 14%; height: 1px; background: linear-gradient(90deg, transparent, rgba(238, 211, 154, .7), transparent); }
.lk-tut::before { top: 0; }
.lk-tut::after { bottom: 0; }
.lk-tut.hidden { display: none !important; }
.lk-tut--new { animation: lkTutIn .45s var(--lk-ease, ease-out) both; }
.lk-tut__head { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.lk-tut__phases { display: inline-flex; gap: 5px; }
.lk-tut__phases i { width: 8px; height: 8px; transform: rotate(45deg); box-shadow: inset 0 0 0 1px var(--lk-lumen-300); }
.lk-tut__phases i.lk-is-full { background: var(--lk-lumen-300); }
.lk-tut__phases i.lk-is-half { background: linear-gradient(135deg, var(--lk-gilt-300) 50%, transparent 50%); box-shadow: inset 0 0 0 1px var(--lk-gilt-300), 0 0 8px rgba(238, 211, 154, .7); }
.lk-tut__badge { font: 800 .66rem/1 var(--lk-font-ui); letter-spacing: .2em; text-transform: uppercase; color: var(--lk-gilt-500); }
.lk-tut__title { margin: 0; font: 400 1.06rem/1.25 var(--lk-font-display); color: var(--lk-ivory-50); letter-spacing: .01em; text-shadow: 0 1px 6px rgba(0, 0, 0, .6); }
.lk-tut__text { margin: 4px 0 0; font-size: .8rem; line-height: 1.5; font-weight: 700; color: #C8CFDF; text-wrap: pretty; max-width: 600px; margin-inline: auto; }
.lk-tut__text b { color: var(--lk-gilt-300); }
.lk-tut__text kbd { height: 20px; min-width: 22px; margin: 0 2px; vertical-align: 1px; }
.lk-tut.is-completed .lk-tut__badge { color: #8CF09B; }
.lk-tut.is-completed .lk-tut__phases i { background: #8CF09B; box-shadow: inset 0 0 0 1px #8CF09B; }
/* Con el velo del tutorial activo, la franja sigue visible por encima para explicar qué hacer */
.lk-tut.tutorial-spotlight-banner { z-index: 10002 !important; border: 0 !important; box-shadow: none !important; }
@keyframes lkTutIn { from { opacity: 0; translate: 0 -8px; } to { opacity: 1; translate: 0 0; } }
@media (max-width: 1100px) { .lk-tut { max-width: calc(100vw - 2 * 230px); min-width: 0; padding-inline: 32px; } }

/* Foco del tutorial sobre un botón del HUD y su indicador, con el dorado del sistema de diseño */
.lk-ow-hud .tutorial-spotlight-target { border-color: transparent !important; box-shadow: 0 0 0 2px var(--lk-gilt-300), 0 0 22px rgba(238, 211, 154, .75) !important; animation: lkTutTarget 1.6s ease-in-out infinite !important; }
@keyframes lkTutTarget { 0%, 100% { box-shadow: 0 0 0 2px var(--lk-gilt-300), 0 0 14px rgba(238, 211, 154, .5); } 50% { box-shadow: 0 0 0 3px var(--lk-gilt-100), 0 0 28px rgba(238, 211, 154, .9); } }
#tutorial-spotlight-box { border: 0; border-radius: 50%; box-shadow: 0 0 0 2px rgba(238, 211, 154, .9), 0 0 26px rgba(238, 211, 154, .6); animation: none; }
#tutorial-spotlight-pointer { gap: 10px; padding: 8px 16px 8px 12px; border: 0; border-radius: var(--lk-r-pill); font: 800 .8rem/1.2 var(--lk-font-ui); color: var(--lk-ink-900); background: linear-gradient(90deg, rgba(250, 246, 238, .97), rgba(239, 232, 218, .92)); box-shadow: 0 10px 24px rgba(5, 8, 18, .5), inset 0 0 0 1px rgba(157, 122, 66, .45); }
#tutorial-spotlight-pointer .pointer-hand { display: none; }
#tutorial-spotlight-pointer::before { content: ""; width: 8px; height: 8px; transform: rotate(45deg); background: var(--lk-gilt-500); }
#tutorial-spotlight-pointer::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 12px; height: 12px; transform: translateX(-50%) rotate(45deg); background: var(--lk-ivory-100); }
#tutorial-spotlight-pointer kbd { display: inline-grid; place-items: center; min-width: 24px; height: 22px; padding: 0 6px; border: 0; border-radius: 6px; font: 800 .66rem var(--lk-font-ui); color: var(--lk-ivory-100); background: linear-gradient(180deg, #323D5A, #1A2236); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .35); }
/* Aviso de la cinemática de la quimera, como cartela del sistema */
#tutorial-cutscene-alert { border: 0; border-radius: 0; padding: 14px 72px 16px; background: linear-gradient(90deg, transparent, rgba(18, 24, 41, .94) 18%, rgba(18, 24, 41, .94) 82%, transparent); box-shadow: none; }
#tutorial-cutscene-alert::before, #tutorial-cutscene-alert::after { content: ""; position: absolute; left: 12%; right: 12%; height: 1px; background: linear-gradient(90deg, transparent, var(--lk-danger-crimson), transparent); }
#tutorial-cutscene-alert::before { top: 0; }
#tutorial-cutscene-alert::after { bottom: 0; }

/* ══ HUD de combate táctico (CombatHUD.js · maqueta «13 · Combate táctico») ═══════════════════════════════ */
/* Los contenedores conservan sus clases antiguas (.battle-header, .tactical-hud, .camera-controls) para que main.js
   los muestre y oculte; con #ui-overlay delante, estas reglas pesan más que las de styles.css. */
#ui-overlay .lk-cb-top { position: absolute; left: 20px; right: 20px; top: 16px; display: flex; align-items: flex-start; gap: 16px; padding: 0; background: none; pointer-events: none; }
#ui-overlay .lk-cb-top > * { pointer-events: auto; }
#ui-overlay .lk-cb-spacer { flex: 1; pointer-events: none; }
#ui-overlay .lk-cb-tracker { padding: 6px 18px 18px 6px; gap: 14px; max-width: calc(100vw - 360px); }
#ui-overlay .lk-cb-tracker::before { top: 30px; }
#ui-overlay .lk-round-badge { flex: none; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; display: grid; flex-direction: initial; }
#ui-overlay .lk-round-badge b { font: 400 1.15rem/1 var(--lk-font-display); color: var(--lk-ivory-50); }
#ui-overlay .lk-cb-timeline { position: relative; display: flex; align-items: center; gap: 14px; padding: 6px 4px 0; overflow: visible; }
#ui-overlay .lk-cb-tools { display: flex; gap: 10px; }
#ui-overlay .lk-btn-circle-icon { background: rgba(18, 24, 41, .82); box-shadow: inset 0 0 0 1px rgba(211, 174, 108, .35), 0 6px 14px rgba(0, 0, 0, .35); padding: 0; border: 0; }
#ui-overlay .lk-btn-circle-icon svg { width: 19px; height: 19px; }
#ui-overlay .lk-btn-circle-icon .lk-ai { width: 20px; height: 20px; }

/* Reloj del turno del jugador (TurnTimerHUD.js): vive en el botón «Pasar turno», la acción que dispara a 0.
   Barra que se vacía en el borde inferior + «21 s · Espacio»; ≤10 s ámbar, ≤5 s carmesí con halo; notas encima. */
#ui-overlay .lk-btn-end-turn { position: relative; overflow: visible; }
#ui-overlay .lk-btn-end-turn .lk-et-time { display: none; min-width: 4.2ch; margin-right: 2px; text-align: right; font: 900 .82rem/1 var(--lk-font-ui); letter-spacing: 0; font-variant-numeric: tabular-nums; color: var(--lk-ink-900); }
#ui-overlay .lk-btn-end-turn.lk-has-timer .lk-et-time { display: inline-block; }
#ui-overlay .lk-btn-end-turn .lk-et-bar { position: absolute; left: 12px; right: 12px; bottom: 6px; height: 3px; border-radius: 2px; background: rgba(46, 52, 72, .14); overflow: hidden; opacity: 0; transition: opacity .25s var(--lk-ease); pointer-events: none; }
#ui-overlay .lk-btn-end-turn.lk-has-timer .lk-et-bar { opacity: 1; }
#ui-overlay .lk-btn-end-turn .lk-et-bar > i { display: block; height: 100%; border-radius: inherit; background: var(--lk-gilt-500); transform-origin: left center; transition: transform .12s linear, background-color .3s; }
#ui-overlay .lk-btn-end-turn.lk-is-low .lk-et-bar > i { background: #D9861C; }
#ui-overlay .lk-btn-end-turn.lk-is-low .lk-et-time { color: #9A5B0C; }
#ui-overlay .lk-btn-end-turn.lk-is-critical .lk-et-bar > i { background: var(--lk-danger-crimson); }
#ui-overlay .lk-btn-end-turn.lk-is-critical .lk-et-time { color: #B3423C; }
#ui-overlay .lk-btn-end-turn.lk-is-critical { animation: lk-et-halo 1s var(--lk-ease-soft, ease-in-out) infinite; }
@keyframes lk-et-halo { 0%, 100% { box-shadow: 0 0 0 0 rgba(224, 96, 90, 0); } 50% { box-shadow: 0 0 0 3px rgba(224, 96, 90, .55), 0 0 18px rgba(224, 96, 90, .45); } }
/* Notas sobre el botón: vidrio del sistema con filo de 1 px */
#ui-overlay .lk-btn-end-turn .lk-et-note { position: absolute; right: 0; bottom: calc(100% + 10px); max-width: 320px; width: max-content; padding: 6px 12px; white-space: nowrap; border-radius: var(--lk-r-pill); font: 800 .74rem/1.25 var(--lk-font-ui); letter-spacing: 0; text-align: right; color: var(--lk-ivory-50); background: rgba(18, 24, 41, .9); box-shadow: inset 0 0 0 1px rgba(211, 174, 108, .35), 0 6px 16px rgba(0, 0, 0, .35); opacity: 0; transform: translateY(4px); transition: opacity .2s var(--lk-ease), transform .3s var(--lk-ease); pointer-events: none; }
#ui-overlay .lk-btn-end-turn .lk-et-note.lk-is-on { opacity: 1; transform: none; }
#ui-overlay .lk-btn-end-turn .lk-et-note.lk-is-warn { box-shadow: inset 0 0 0 1px rgba(240, 163, 58, .7), 0 6px 16px rgba(0, 0, 0, .35); color: #FFD9A3; }
#ui-overlay .lk-btn-end-turn .lk-et-note.lk-is-bad { box-shadow: inset 0 0 0 1px rgba(224, 96, 90, .75), 0 6px 16px rgba(0, 0, 0, .35); color: #FFB4AE; }
#ui-overlay .lk-btn-end-turn .lk-et-note.lk-is-good { box-shadow: inset 0 0 0 1px rgba(140, 240, 155, .55), 0 6px 16px rgba(0, 0, 0, .35); color: #B9F5C3; }
@media (prefers-reduced-motion: reduce) {
  #ui-overlay .lk-btn-end-turn.lk-is-critical { animation: none; box-shadow: 0 0 0 3px rgba(224, 96, 90, .6); }
  #ui-overlay .lk-btn-end-turn .lk-et-bar > i, #ui-overlay .lk-btn-end-turn .lk-et-note { transition: none; }
}

/* Línea de iniciativa: los retratos de main.js como nodos del sistema */
#ui-overlay .lk-cb-timeline .timeline-card { position: relative; flex: none; width: 42px; height: 42px; min-width: 0; padding: 0; margin: 0; border: 0; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 50% 35%, #33416B, #161D33); box-shadow: 0 0 0 2px rgba(11, 15, 28, .8), 0 0 0 3px var(--lk-hp-vital-green); transform: none; transition: width .35s var(--lk-ease), height .35s var(--lk-ease), box-shadow .35s; overflow: visible; }
#ui-overlay .lk-cb-timeline .timeline-card.team-enemy { box-shadow: 0 0 0 2px rgba(11, 15, 28, .8), 0 0 0 3px var(--lk-enemy-red); background: radial-gradient(circle at 50% 35%, #5A2A33, #22141B); }
#ui-overlay .lk-cb-timeline .timeline-card.active-turn { width: 54px; height: 54px; box-shadow: 0 0 0 2px rgba(11, 15, 28, .8), 0 0 0 4px var(--lk-gilt-300), 0 0 20px rgba(238, 211, 154, .6); }
#ui-overlay .lk-cb-timeline .timeline-card.active-turn::after { content: ""; position: absolute; top: -13px; left: 50%; width: 8px; height: 8px; transform: translateX(-50%) rotate(45deg); background: var(--lk-gilt-300); }
#ui-overlay .lk-cb-timeline .card-avatar { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; display: grid; place-items: center; width: auto; height: auto; margin: 0; border: 0; background: none; box-shadow: none; font-size: 20px; }
#ui-overlay .lk-cb-timeline .timeline-avatar-img { width: 120%; height: 120%; object-fit: contain; margin-top: 6%; }
#ui-overlay .lk-cb-timeline .card-info { position: absolute; left: 50%; top: calc(100% + 5px); transform: translateX(-50%); display: grid; justify-items: center; gap: 2px; width: 62px; margin: 0; padding: 0; background: none; }
#ui-overlay .lk-cb-timeline .card-name { max-width: 62px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 800 .6rem/1.1 var(--lk-font-ui); color: #C8CFDF; text-shadow: 0 1px 2px #000; }
#ui-overlay .lk-cb-timeline .timeline-card.active-turn .card-name { color: var(--lk-gilt-100); }
#ui-overlay .lk-cb-timeline .card-hp-bar { width: 34px; height: 3px; margin: 0; border-radius: 2px; background: rgba(11, 15, 28, .8); overflow: hidden; }
#ui-overlay .lk-cb-timeline .card-hp-fill { height: 100%; background: var(--lk-hp-vital-green); border-radius: 0; }
#ui-overlay .lk-cb-timeline .team-enemy .card-hp-fill { background: var(--lk-enemy-red); }

/* Cámara: botones circulares con su tecla, arriba a la derecha junto al sonido y la ayuda */
#ui-overlay .lk-cb-cams { position: absolute; right: 124px; top: 16px; bottom: auto; flex-direction: row; gap: 10px; }
#ui-overlay .lk-cb-cams .cam-btn { width: 40px; height: 40px; justify-content: center; transform: none; }
#ui-overlay .lk-cb-cams .cam-btn span.lk-key { position: absolute; right: -6px; bottom: -6px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 4px; display: grid; place-items: center; font: 800 .62rem/1 var(--lk-font-ui); background: var(--lk-ivory-100); color: var(--lk-ink-900); }

/* Registro y aviso de turno enemigo */
#ui-overlay .lk-cb-log { top: 84px; right: 20px; z-index: 2; }
#ui-overlay .lk-cb-log p { margin: 0; }
#ui-overlay .lk-cb-log .lk-cb-dmg { color: #FFB4AE; }
#ui-overlay .lk-cb-log .lk-is-crit .lk-cb-dmg { color: #FFD88A; }
#ui-overlay .lk-cb-log .lk-cb-heal { color: #A8F0B6; }
#ui-overlay .lk-cb-log .lk-cb-shield { color: #B7F2EC; }
#ui-overlay .lk-cb-log .lk-is-ko { color: #FFD6D3; }
#ui-overlay .lk-cb-enemy { top: auto; bottom: 178px; transform: translateX(-50%); z-index: 1; }
body:not(.state-combat) #ui-overlay .lk-cb-enemy, body:not(.state-combat) #ui-overlay .lk-cb-log { display: none; }

/* Barra inferior de vidrio */
#ui-overlay .lk-cb-bottom { position: absolute; left: 0; right: 0; bottom: 0; height: 0; padding: 0; width: auto; display: block; pointer-events: none; }
#ui-overlay .lk-cb-bar { pointer-events: auto; border: 0; gap: 16px; grid-template-columns: 210px auto auto auto; align-items: end; }
#ui-overlay .lk-cb-bar.lk-is-enemy { opacity: .45; pointer-events: none; }
#ui-overlay .lk-unit-sheet { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 12px; align-items: center; padding: 0; background: none; border: 0; }
#ui-overlay .lk-unit-sheet .lk-portrait { position: relative; overflow: hidden; width: 52px; height: 52px; min-width: 0; padding: 0; border: 0; border-radius: 50%; font-size: 26px; }
#ui-overlay .lk-unit-sheet .lk-portrait img { width: 118%; height: 118%; object-fit: contain; margin-top: 8%; border: 0; border-radius: 0; }
#ui-overlay .lk-cb-who { min-width: 0; }
#ui-overlay .lk-cb-who b.unit-name { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 400 1.2rem/1.1 var(--lk-font-display); color: var(--lk-ivory-50); letter-spacing: 0; text-transform: none; }
#ui-overlay .lk-cb-who small { display: flex; align-items: center; gap: 6px; margin: 2px 0 6px; min-width: 0; }
#ui-overlay .lk-cb-who .unit-archetype { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 800 .68rem/1.3 var(--lk-font-ui); color: #AEB6CB; letter-spacing: .02em; text-transform: none; }
#ui-overlay .lk-cb-cls-badge { flex: none; width: 18px; height: 18px; display: grid; place-items: center; }
#ui-overlay .lk-cb-cls-badge img { width: 18px; height: 18px; object-fit: contain; }
#ui-overlay .lk-cb-who .lk-bar-read { margin-bottom: 3px; }
#ui-overlay .lk-cb-who .lk-bar-read span:last-child { color: var(--lk-ivory-50); }
#ui-overlay .lk-cb-hp { height: 7px; }
#ui-overlay .lk-cb-hp > i { width: 100%; }
#ui-overlay .lk-cb-hp > em { width: 0; }
#ui-overlay .lk-cb-status { display: flex; flex-wrap: nowrap; gap: 4px; margin-top: 6px; min-height: 1.1rem; overflow: hidden; } /* Hito 111: fila reservada, sin saltos */
#ui-overlay .lk-cb-st { display: inline-flex; align-items: center; gap: 2px; padding: 1px 6px 1px 4px; border-radius: var(--lk-r-pill); font-size: .7rem; line-height: 1.3; background: rgba(11, 15, 28, .6); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
#ui-overlay .lk-cb-st b { font: 900 .62rem var(--lk-font-ui); color: var(--lk-ivory-100); }
#ui-overlay .lk-res-meters { display: grid; gap: 10px; align-self: center; }
#ui-overlay .lk-meter b { min-width: 34px; }
#ui-overlay .lk-meter .lk-orb svg { position: relative; width: 14px; height: 14px; color: #fff; }

/* Cartas: los huecos de hechizo de main.js con la anatomía de la carta táctica */
#ui-overlay .lk-tray { display: flex; align-items: flex-end; gap: 10px; padding-top: 16px; margin: 0; background: none; border: 0; }
#ui-overlay .spell-slot.lk-card-tactical { width: 84px; height: 116px; padding: 0; border: 0; border-radius: 10px; display: block; font-size: inherit; background: linear-gradient(180deg, var(--lk-night-700), var(--lk-night-900)); box-shadow: inset 0 0 0 1px rgba(211, 174, 108, .35), 0 6px 16px rgba(0, 0, 0, .4); }
#ui-overlay .spell-slot .spell-icon { position: absolute; inset: 0; width: auto; height: auto; display: block; z-index: 0; font-size: 30px; }
#ui-overlay .spell-slot .spell-icon:not(:has(img)) { display: grid; place-items: center; }
#ui-overlay .spell-slot .spell-img-icon { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0; filter: none; transition: transform .5s var(--lk-ease); }
#ui-overlay .spell-slot:hover .spell-img-icon { transform: scale(1.08); }
#ui-overlay .spell-slot .lk-card-tactical__art::before { z-index: 1; opacity: .25; }
#ui-overlay .spell-slot .lk-card-tactical__art::after { z-index: 1; background: linear-gradient(0deg, rgba(11, 15, 28, .75), transparent 45%); }
#ui-overlay .spell-slot .pa-cost-badge { position: relative; padding: 0; border: 0; background: none; box-shadow: none; font: inherit; color: inherit; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
#ui-overlay .spell-slot .range-badge { position: static; padding: 0; border: 0; background: none; box-shadow: none; font: inherit; color: inherit; }
#ui-overlay .spell-slot .lk-card-tactical__range .lk-ai { width: 11px; height: 11px; }
#ui-overlay .spell-slot .lk-los { display: inline-flex; color: var(--lk-lumen-300); }
#ui-overlay .spell-slot .lk-los.lk-nolos { opacity: .55; filter: grayscale(1); }
#ui-overlay .spell-slot .lk-cb-cls { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: rgba(11, 15, 28, .7); }
#ui-overlay .spell-slot .lk-cb-cls img { width: 15px; height: 15px; object-fit: contain; }
#ui-overlay .spell-slot .lk-cb-cls.lk-has-part { width: 22px; height: 22px; }
#ui-overlay .spell-slot .lk-cb-cls.lk-has-part img { width: 18px; height: 18px; filter: var(--lk-ico-tint,) drop-shadow(0 1px 1px rgba(0, 0, 0, .6)); }
#ui-overlay .spell-slot .lk-card-dmg:empty { display: none; }
#ui-overlay .spell-slot .lk-card-dmg.lk-heal { color: #A8F0B6; }
#ui-overlay .spell-slot .lk-card-dmg.lk-shield { color: #B7F2EC; }
#ui-overlay .spell-slot .lk-hk { opacity: .7; top: -18px; }
#ui-overlay .spell-slot:hover:not(.disabled) { transform: translateY(-8px); border: 0; box-shadow: inset 0 0 0 1px var(--lk-gilt-300), 0 0 0 3px rgba(239, 232, 218, .25), 0 14px 26px rgba(0, 0, 0, .5); }
#ui-overlay .spell-slot.active { transform: translateY(-10px); border: 0; background: linear-gradient(180deg, var(--lk-night-700), var(--lk-night-900)); box-shadow: inset 0 0 0 1.5px var(--lk-gilt-100), 0 0 0 3px var(--lk-gilt-500), 0 0 24px rgba(238, 211, 154, .5); }
#ui-overlay .spell-slot.disabled { opacity: 1; cursor: not-allowed; filter: none; }
#ui-overlay .spell-slot.lk-is-unaffordable { filter: saturate(.25) brightness(.62); }
#ui-overlay .spell-slot.lk-is-unaffordable .lk-card-cost::before { background: linear-gradient(135deg, #FFD6D3, var(--lk-danger-crimson) 50%, #8A2622); box-shadow: 0 0 0 1.5px var(--lk-night-900), 0 0 0 2.5px #FF9C95; }
#ui-overlay .spell-slot.lk-is-idle { filter: saturate(.6) brightness(.8); }
/* Hito 97: carta en recarga (número de turnos que faltan) o sin usos este turno */
#ui-overlay .spell-slot[data-cd], #ui-overlay .spell-slot[data-spent] { filter: saturate(.15) brightness(.55); }
#ui-overlay .spell-slot .lk-cd-badge { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; pointer-events: none; font: 800 2.6rem/1 var(--lk-font-display, inherit); color: #F4EBDD; text-shadow: 0 2px 0 rgba(11, 15, 28, .9), 0 0 14px rgba(11, 15, 28, .85); }
#ui-overlay .spell-slot .lk-cd-badge:empty { display: none; }
/* Hito 98: carta bloqueada por nivel (candado y «Nv. N») */
#ui-overlay .spell-slot[data-locked] { filter: saturate(0) brightness(.45); }
#ui-overlay .spell-slot .lk-lock-badge { position: absolute; inset: 0; z-index: 4; display: grid; place-content: center; justify-items: center; gap: 2px; pointer-events: none; color: #F4EBDD; text-shadow: 0 2px 0 rgba(11, 15, 28, .9); }
#ui-overlay .spell-slot .lk-lock-badge:empty { display: none; }
#ui-overlay .spell-slot .lk-lock-badge svg { width: 30px; height: 30px; filter: drop-shadow(0 2px 2px rgba(11, 15, 28, .9)); }
#ui-overlay .spell-slot .lk-lock-badge b { font: 800 .85rem/1 var(--lk-font-ui, system-ui, sans-serif); letter-spacing: .02em; padding: 3px 7px; border-radius: 999px; background: rgba(11, 15, 28, .78); box-shadow: inset 0 0 0 1px rgba(211, 174, 108, .45); }
#ui-overlay .spell-slot[data-locked] .lk-card-dmg { visibility: hidden; }
.lk-new-skill { color: var(--lk-gilt-200, #EED39A); }
.lk-new-skill b { color: #FFF4D6; }
/* Hito 98: runas y charms · habilidad aún bloqueada por nivel */
.lk-part-row.lk-is-locked { cursor: not-allowed; }
.lk-part-row.lk-is-locked .lk-bag-runes__spell, .lk-part-row.lk-is-locked .lk-pn { filter: saturate(0) brightness(.6); opacity: .8; }
.lk-part-row.lk-is-locked .lk-socket-charm.lk-is-empty { filter: saturate(0); opacity: .55; cursor: not-allowed; }
.lk-part-row.lk-is-locked .lk-socket-charm.lk-is-filled { filter: saturate(.3) brightness(.7); }
.lk-bag-runes__lock { font-weight: 800; color: var(--lk-gilt-200, #EED39A); }
/* Hito 98: fichas y cartas fuera del combate */
.lk-spell.lk-is-locked img:not(.lk-spell-part) { filter: saturate(0) brightness(.5); }
.lk-spell .lk-spell-lock { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2; font: 800 .72rem/1 var(--lk-font-display, inherit); color: #F4EBDD; text-shadow: 0 1px 0 rgba(11, 15, 28, .9), 0 0 8px rgba(11, 15, 28, .9); white-space: nowrap; pointer-events: none; }
#ui-overlay .spell-slot.lk-cd-ready { animation: lkCdReady .9s var(--lk-ease, ease-out) 1; }
@keyframes lkCdReady { 0% { box-shadow: inset 0 0 0 2px #FFF4D6, 0 0 0 4px rgba(238, 211, 154, .9), 0 0 30px rgba(238, 211, 154, .9); } 100% { box-shadow: inset 0 0 0 1px rgba(211, 174, 108, .35), 0 6px 16px rgba(0, 0, 0, .4); } }
@media (prefers-reduced-motion: reduce) { #ui-overlay .spell-slot.lk-cd-ready { animation: none; } }
#ui-overlay .spell-slot.tut-highlight, #ui-overlay .lk-btn-end-turn.tut-highlight { border: 0 !important; box-shadow: 0 0 0 3px var(--lk-gilt-300), 0 0 26px rgba(238, 211, 154, .85) !important; animation: lkTutTarget 1.4s ease-in-out infinite !important; }

/* Pasar turno */
#ui-overlay .lk-btn-end-turn { display: inline-flex; flex-direction: column; align-items: center; min-width: 156px; border: 0; box-shadow: none; } /* ancho fijo: con y sin reloj */
#ui-overlay .lk-btn-end-turn small { display: block; margin-top: 2px; }

/* Tooltip del hechizo (marfil) y el antiguo, siempre oculto */
#spell-tooltip.lk-cb-legacy { display: none !important; }
.lk-cb-tip { position: fixed; z-index: 2000; }
.lk-cb-tip .lk-tooltip-tactical { width: 310px; }
.lk-cb-tip header .lk-cb-tip-cls { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: rgba(11, 15, 28, .55); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); }
.lk-cb-tip header .lk-cb-tip-cls img { width: 24px; height: 24px; object-fit: contain; }
.lk-cb-tip header .lk-cb-tip-cls.lk-has-part img { width: 28px; height: 28px; filter: var(--lk-ico-tint,) drop-shadow(0 1px 2px rgba(0, 0, 0, .6)); }
/* Mech, Dawn y Dusk no tienen iconos de partes: se tiñe el de su iconClass con el color de su clase */
img.lk-part-ico--mech { --lk-ico-tint: grayscale(1) brightness(1.3) contrast(1.05); }
img.lk-part-ico--dawn { --lk-ico-tint: grayscale(1) sepia(1) hue-rotate(200deg) saturate(2) brightness(1.2); }
img.lk-part-ico--dusk { --lk-ico-tint: grayscale(1) sepia(1) hue-rotate(130deg) saturate(2.2); }
.lk-cb-tip .lk-cb-tip-warn { margin: 0; font-size: .76rem; font-weight: 800; color: #B3423C; }
.lk-tooltip-tactical .lk-cb-tip-warn { margin: 0; font-size: .76rem; font-weight: 800; color: #B3423C; } /* Hito 98: también fuera del combate */

/* Pronóstico del objetivo */
#ui-overlay .lk-cb-forecast { position: absolute; right: 20px; top: auto; bottom: 190px; left: auto; transform: none; width: 250px; padding: 0; border: 0; border-radius: var(--lk-r-md); overflow: hidden; color: var(--lk-ink-900); background: var(--lk-ivory-100); box-shadow: 0 14px 30px rgba(0, 0, 0, .45), 0 0 0 1px rgba(0, 0, 0, .3); backdrop-filter: none; pointer-events: none; animation: none; }
#ui-overlay .lk-cb-forecast.hidden { display: none !important; }
#ui-overlay .lk-cb-fc__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 10px 14px; color: var(--lk-ivory-50); background: linear-gradient(110deg, color-mix(in srgb, var(--lk-enemy-red) 50%, #1A2236), #1A2236 80%); }
#ui-overlay .lk-cb-fc__head b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 400 1.05rem/1.15 var(--lk-font-display); }
#ui-overlay .lk-cb-fc__head .forecast-hp { flex: none; font: 800 .72rem var(--lk-font-ui); color: #FFD6D3; background: none; padding: 0; border: 0; }
#ui-overlay .lk-cb-fc__body { display: grid; gap: 6px; padding: 10px 14px 12px; }
#ui-overlay .lk-cb-forecast .forecast-row { display: flex; justify-content: space-between; gap: 10px; padding: 0 0 5px; margin: 0; border-bottom: 1px solid var(--lk-ivory-200); font-size: .8rem; font-weight: 700; color: var(--lk-ink-600); background: none; }
#ui-overlay .lk-cb-forecast .forecast-row.hidden { display: none; }
#ui-overlay .lk-cb-forecast .forecast-row b { padding: 0; border: 0; background: none; font-weight: 900; color: var(--lk-ink-900); box-shadow: none; }
#ui-overlay .lk-cb-forecast .damage-badge { color: #B3423C !important; }
#ui-overlay .lk-cb-forecast .collision-alert { display: flex; align-items: center; gap: 6px; padding: 6px 8px; margin: 0; border: 0; border-radius: var(--lk-r-sm); font-size: .74rem; font-weight: 800; color: #8A2622; background: rgba(224, 96, 90, .14); animation: none; }
#ui-overlay .lk-cb-forecast .collision-alert.hidden { display: none; }
#ui-overlay .lk-cb-forecast .collision-alert svg { width: 14px; height: 14px; flex: none; }

/* Cartel de turno: la cartela del sistema con el hilo del color de quien actúa */
#turn-banner.lk-turn-banner:not(.quest-notification) .banner-content { position: relative; padding: 12px 80px 14px; border: 0; background: linear-gradient(90deg, transparent, rgba(18, 24, 41, .94) 18%, rgba(18, 24, 41, .94) 82%, transparent); box-shadow: none; backdrop-filter: blur(6px); }
#turn-banner.lk-turn-banner:not(.quest-notification) .banner-content::before, #turn-banner.lk-turn-banner:not(.quest-notification) .banner-content::after { content: ""; position: absolute; left: 12%; right: 12%; height: 1px; background: linear-gradient(90deg, transparent, var(--tint, var(--lk-gilt-300)), transparent); }
#turn-banner.lk-turn-banner:not(.quest-notification) .banner-content::before { top: 0; }
#turn-banner.lk-turn-banner:not(.quest-notification) .banner-content::after { bottom: 0; }
#turn-banner.lk-turn-banner:not(.quest-notification) #banner-subtitle { display: block; font: 800 .7rem/1.4 var(--lk-font-ui); letter-spacing: .26em; text-transform: uppercase; color: var(--lk-gilt-500); }
#turn-banner.lk-turn-banner:not(.quest-notification) #banner-title { display: block; margin: 0; font: 400 2rem/1.15 var(--lk-font-display); letter-spacing: .02em; color: var(--lk-ivory-50); text-transform: none; text-shadow: 0 2px 10px rgba(0, 0, 0, .7); }
#turn-banner.lk-turn-banner.turn-enemy #banner-subtitle { color: #FF9C95; }
#turn-banner.lk-turn-banner.turn-enemy #banner-title { color: #FFD6D3; }

@media (max-width: 1180px) {
  #ui-overlay .lk-cb-bar { grid-template-columns: 170px auto auto auto; gap: 12px; padding: 12px; }
  #ui-overlay .lk-cb-log { display: none; }
}
#ui-overlay .lk-cb-bar [hidden] { display: none !important; }
#ui-overlay .lk-cb-bar .points-container, #ui-overlay .lk-cb-bar .spell-hotbar, #ui-overlay .lk-cb-bar .unit-profile { border: 0; padding-left: 0; padding-right: 0; margin: 0; background: none; box-shadow: none; }
#ui-overlay .lk-tray { padding-top: 16px; }
#ui-overlay .spell-slot .spell-img-icon { font-size: 0; color: transparent; }
#ui-overlay .lk-cb-timeline { gap: 24px; padding-left: 6px; }
#ui-overlay .lk-cb-timeline .card-info { width: 58px; }
#ui-overlay .lk-cb-timeline .card-name { max-width: 58px; }
#ui-overlay .lk-cb-log { width: 290px; }

/* Seis habilidades + Ultimate en la barra de combate */
#ui-overlay .lk-cb-bar { grid-template-columns: 210px auto auto auto auto; }
#ui-overlay .lk-tray { gap: 8px; }
#ui-overlay .lk-cb-ult-wrap { align-self: center; padding-top: 6px; }
#ui-overlay .lk-cb-ult { width: 76px; height: 76px; font-size: 12px; }
#ui-overlay .lk-cb-ult .lk-glyph svg { width: 26px; height: 26px; display: block; }
#ui-overlay .lk-cb-ult .lk-lock { width: 22px; height: 22px; }
#ui-overlay .lk-cb-ult .lk-lock .lk-ai { width: 12px; height: 12px; }
#ui-overlay .lk-cb-ult .lk-pct { color: var(--lk-gilt-100); box-shadow: inset 0 0 0 1px rgba(211, 174, 108, .5); }
#ui-overlay .lk-cb-ult .lk-ring .lk-val { stroke: var(--lk-gilt-500); }
#ui-overlay .lk-cb-ult:not(.lk-is-ready) { cursor: default; }
#ui-overlay .lk-cb-ult.lk-is-ready:hover .lk-medal { transform: scale(1.06); }
#ui-overlay .lk-cb-ult.lk-is-selected .lk-medal { box-shadow: inset 0 0 0 1.5px var(--lk-gilt-100), 0 0 0 3px var(--lk-gilt-500), 0 0 28px rgba(238, 211, 154, .7); }
#ui-overlay .lk-cb-ult.lk-is-unaffordable .lk-medal { filter: saturate(.3) brightness(.7); }
#ui-overlay .lk-cb-ult.lk-is-spent { opacity: .55; }
#ui-overlay .lk-cb-ult.lk-is-spent .lk-lock { display: none; }
.lk-cb-tip .lk-cb-tip-ult { color: var(--lk-gilt-300); }
.lk-cb-tip .lk-cb-tip-ult svg { width: 20px; height: 20px; }
/* Pantallas estrechas: la barra completa se reduce en bloque para que no se corte */
@media (max-width: 1340px) { #ui-overlay .lk-cb-bar { transform: translateX(-50%) scale(.88); transform-origin: 50% 100%; } }
@media (max-width: 1180px) { #ui-overlay .lk-cb-bar { transform: translateX(-50%) scale(.78); grid-template-columns: 190px auto auto auto auto; } }

/* Coste de PA centrado en el rombo (anula la posición absoluta del estilo antiguo .pa-cost-badge) */
#ui-overlay .spell-slot .lk-card-cost { display: grid; place-items: center; }
#ui-overlay .spell-slot .lk-card-cost .pa-cost-badge { position: relative; inset: auto; top: auto; left: auto; transform: none; display: block; width: auto; min-width: 0; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; line-height: 1; font: 900 .86rem/1 var(--lk-font-ui); color: #fff; text-align: center; z-index: 1; }

/* Tooltip de unidad en el tablero (aliado o enemigo) al señalarla */
.lk-cb-unit-tip { position: fixed; z-index: 1900; left: 0; top: 0; }
.lk-cb-unit-tip .lk-cb-ut { width: 248px; }
.lk-cb-ut header { gap: 10px; padding: 10px 12px; }
.lk-cb-ut .lk-cb-ut-por { flex: none; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--c) 60%, #fff), var(--c) 60%, color-mix(in srgb, var(--c) 50%, #000)); box-shadow: 0 0 0 2px rgba(11, 15, 28, .7), 0 0 0 3px rgba(255, 255, 255, .25); }
.lk-cb-ut .lk-cb-ut-por img { width: 120%; height: 120%; object-fit: contain; margin-top: 8%; }
.lk-cb-ut header > div { min-width: 0; flex: 1; }
.lk-cb-ut header b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 1.08rem; }
.lk-cb-ut .lk-cb-ut-now { flex: none; align-self: flex-start; padding: 2px 8px; border-radius: var(--lk-r-pill); font: 800 .6rem/1.5 var(--lk-font-ui); letter-spacing: .08em; text-transform: uppercase; color: #3D2C0E; background: var(--lk-gilt-300); }
.lk-cb-ut .lk-tt-body { gap: 9px; padding: 10px 12px 12px; }
.lk-cb-ut .lk-cb-ut-read { display: flex; justify-content: space-between; margin-bottom: 4px; font-size: .74rem; font-weight: 800; color: var(--lk-ink-600); }
.lk-cb-ut .lk-cb-ut-read b { color: var(--lk-ink-900); font-variant-numeric: tabular-nums; }
.lk-cb-ut .lk-cb-ut-read i { font-style: normal; color: #1E8C83; }
/* Hito 95: función del gólem en la ficha de unidad */
.lk-cb-ut .lk-cb-ut-golem { margin: 6px 0 0; font-size: .74rem; line-height: 1.35; font-weight: 700; color: var(--lk-ink-700, #3b3326); max-width: 15rem; }
.lk-cb-ut .lk-cb-ut-golem small { font-weight: 600; color: var(--lk-ink-500, #6b5e4a); }
.lk-cb-ut .lk-bar { height: 7px; background: rgba(46, 52, 72, .18); box-shadow: inset 0 0 0 1px rgba(46, 52, 72, .12); }
.lk-cb-ut .lk-tt-stat .lk-tl svg { width: 14px; height: 14px; color: #14876C; }
.lk-cb-ut .lk-cb-ut-sts { display: flex; flex-wrap: wrap; gap: 4px; }
.lk-cb-ut .lk-cb-ut-st { display: inline-flex; align-items: center; gap: 4px; padding: 2px 4px 2px 8px; border-radius: var(--lk-r-pill); font-size: .7rem; font-weight: 800; }
.lk-cb-ut .lk-cb-ut-st b { min-width: 16px; height: 16px; display: grid; place-items: center; border-radius: 50%; font-size: .62rem; color: #fff; }
.lk-cb-ut .lk-cb-ut-st.lk-is-good { color: #1F6B3A; background: rgba(87, 184, 107, .16); }
.lk-cb-ut .lk-cb-ut-st.lk-is-good b { background: #2E7D46; }
.lk-cb-ut .lk-cb-ut-st.lk-is-bad { color: #8A2622; background: rgba(224, 96, 90, .14); }
.lk-cb-ut .lk-cb-ut-st.lk-is-bad b { background: #B3423C; }

/* ══ Mapa de Lunacia (WorldMapModal.js) · Crónica Celeste ═══════════════════════════════════════════════════════ */
#world-map-modal.lk-wmap-layer { position: fixed; inset: 0; z-index: 1500; display: grid; place-items: center; padding: 20px; background: rgba(5, 8, 18, .74); /* sin backdrop-filter: el mundo se sigue dibujando detrás (coste por fotograma) */ }
#world-map-modal.lk-wmap-layer.hidden { display: none !important; }
#world-map-modal .world-map-backdrop { position: absolute; inset: 0; background: none; }
#world-map-modal .lk-wmap { position: relative; display: flex; flex-direction: column; width: min(1120px, 100%); height: min(720px, calc(100vh - 40px)); max-width: none; max-height: none; padding: 0; border: 0; overflow: hidden; }
#world-map-modal .lk-panel-head h3 { flex: 1; min-width: 0; }
#world-map-modal .lk-panel-head h3 > span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#world-map-modal .lk-panel-head .lk-emblem .lk-ai { width: 20px; height: 20px; position: relative; }
#world-map-modal .world-map-tabs { flex: none; gap: 2px; margin: 0; }
#world-map-modal .world-map-tabs .map-tab-btn { padding: 7px 16px; border: 0; border-radius: 16px; cursor: pointer; font: 800 .78rem/1 var(--lk-font-ui); color: #AEB6CB; background: transparent; box-shadow: none; transition: color .15s, background .15s; }
#world-map-modal .world-map-tabs .map-tab-btn:hover { color: var(--lk-ivory-50); }
#world-map-modal .world-map-tabs .map-tab-btn.active { color: var(--lk-ink-900); background: linear-gradient(180deg, var(--lk-ivory-50), var(--lk-ivory-200)); }
#world-map-modal .world-map-close-btn { flex: none; position: static; width: 36px; height: 36px; padding: 0; display: grid; place-items: center; }
#world-map-modal .world-map-close-btn svg { width: 15px; height: 15px; }

#world-map-modal .lk-wmap__body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 0; padding: 0; }
#world-map-modal .world-map-view-panel.hidden { display: none !important; }
#world-map-modal .lk-wmap__stage { position: relative; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 8px; min-width: 0; min-height: 0; padding: 18px 18px 12px 22px; }
#world-map-modal .lk-wmap__hint { margin: 0; text-align: center; font-size: .72rem; font-weight: 700; color: #6E7894; }

/* Mar nocturno con rutas y rosa de los vientos */
#world-map-modal .lk-wmap__sea { position: relative; min-height: 0; border-radius: var(--lk-r-md); overflow: hidden; display: grid; place-items: center;
  background: var(--lk-lattice), radial-gradient(70% 70% at 50% 50%, #12305A 0%, #0B1B36 45%, #070E1E 100%); box-shadow: inset 0 0 0 1px rgba(211, 174, 108, .25), inset 0 0 60px rgba(0, 0, 0, .55); }
#world-map-modal .lk-wmap__routes { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
#world-map-modal .lk-wmap__routes .sea-route-line { stroke: rgba(238, 211, 154, .35); stroke-width: 1.2; stroke-dasharray: 3 6; fill: none; animation: none; }
#world-map-modal .lk-wmap__routes .sea-route-circle { stroke: rgba(169, 204, 255, .14); stroke-width: 1; stroke-dasharray: 2 7; fill: none; }
#world-map-modal .lk-wmap__routes .lk-wmap__ring2 { stroke: rgba(169, 204, 255, .08); }
#world-map-modal .lk-wmap__compass { position: absolute; right: 16px; top: 14px; width: 54px; height: 54px; color: var(--lk-gilt-300); opacity: .75; pointer-events: none; }
#world-map-modal .lk-wmap__compass svg { width: 100%; height: 100%; }
#world-map-modal .lk-wmap__compass b { position: absolute; left: 50%; top: -12px; transform: translateX(-50%); font: 400 .8rem var(--lk-font-display); color: var(--lk-gilt-100); }

/* Islas en cruz */
#world-map-modal .lk-wmap__grid { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 14px; width: min(100%, 560px); aspect-ratio: 1; max-height: 100%; padding: 6px; background: none; }
#world-map-modal .lk-wmap__sea-cell { background: none; border: 0; box-shadow: none; }
#world-map-modal .lk-isle { --ic: #EED39A; position: relative; display: grid; justify-items: center; align-content: center; gap: 4px; min-width: 0; padding: 22px 8px 12px; border: 0; border-radius: 16px; cursor: pointer; text-align: center; color: var(--lk-ivory-50); font: inherit;
  background: radial-gradient(90% 80% at 50% 35%, color-mix(in srgb, var(--ic) 22%, transparent), transparent 70%), linear-gradient(180deg, rgba(26, 34, 54, .92), rgba(13, 19, 34, .94));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ic) 45%, transparent), 0 10px 22px rgba(0, 0, 0, .4); transition: transform .2s var(--lk-ease), box-shadow .2s; }
#world-map-modal .lk-isle:hover, #world-map-modal .lk-isle:focus-visible { outline: none; transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--ic), 0 0 0 3px color-mix(in srgb, var(--ic) 25%, transparent), 0 14px 26px rgba(0, 0, 0, .45); }
#world-map-modal .lk-isle.lk-is-sel { box-shadow: inset 0 0 0 1.5px var(--lk-gilt-100), 0 0 0 3px var(--lk-gilt-500), 0 0 26px rgba(238, 211, 154, .4); }
#world-map-modal .lk-isle__dir { position: absolute; left: 10px; top: 8px; font: 800 .56rem/1 var(--lk-font-ui); letter-spacing: .16em; text-transform: uppercase; color: #8D97AF; }
#world-map-modal .lk-isle__med { position: relative; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; font-size: 24px;
  background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--ic) 55%, #fff), color-mix(in srgb, var(--ic) 70%, #10162A) 60%, color-mix(in srgb, var(--ic) 35%, #000)); box-shadow: 0 0 0 2px rgba(11, 15, 28, .8), 0 0 0 3px color-mix(in srgb, var(--ic) 70%, transparent), 0 0 18px color-mix(in srgb, var(--ic) 45%, transparent); }
#world-map-modal .lk-isle__med span { filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .45)); }
#world-map-modal .lk-isle__name { margin-top: 4px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 400 1.02rem/1.15 var(--lk-font-display); color: var(--lk-ivory-50); }
#world-map-modal .lk-isle__tag { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .66rem; font-weight: 700; color: #AEB6CB; }
#world-map-modal .lk-isle__lvl { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; padding: 2px 9px; border-radius: var(--lk-r-pill); font: 800 .64rem/1.5 var(--lk-font-ui); color: var(--lk-gilt-100); background: rgba(11, 15, 28, .6); box-shadow: inset 0 0 0 1px rgba(211, 174, 108, .35); }
#world-map-modal .lk-isle__lvl.lk-is-hard { color: #FFB4AE; box-shadow: inset 0 0 0 1px rgba(224, 96, 90, .5); }
#world-map-modal .lk-isle__lvl .lk-ai { width: 11px; height: 11px; }
#world-map-modal .lk-isle.lk-is-hard .lk-isle__med { filter: saturate(.55) brightness(.85); }
#world-map-modal .lk-isle__here { position: absolute; left: 50%; top: -10px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px; border-radius: var(--lk-r-pill); white-space: nowrap; font: 800 .6rem/1.5 var(--lk-font-ui); letter-spacing: .06em; text-transform: uppercase; color: #3D2C0E; background: linear-gradient(180deg, var(--lk-gilt-100), var(--lk-gilt-500)); box-shadow: 0 0 0 2px rgba(11, 15, 28, .85), 0 0 14px rgba(238, 211, 154, .6); }
#world-map-modal .lk-isle__here i { width: 6px; height: 6px; transform: rotate(45deg); background: #3D2C0E; animation: lkTutTarget 1.6s ease-in-out infinite; }

/* Mapa de la isla actual */
#world-map-modal .lk-wmap__canvas { position: relative; min-height: 0; border-radius: var(--lk-r-md); overflow: hidden; display: grid; place-items: center; background: #030D17; box-shadow: inset 0 0 0 1px rgba(211, 174, 108, .25); }
#world-map-modal .lk-wmap__canvas canvas { display: block; max-width: 100%; cursor: grab; }
#world-map-modal .lk-wmap__canvas canvas:active { cursor: grabbing; }
#world-map-modal .lk-wmap__ctrl { position: absolute; right: 12px; top: 12px; display: grid; gap: 8px; }
#world-map-modal .lk-wmap__ctrl .lk-btn-circle-icon { width: 36px; height: 36px; padding: 0; border: 0; font: 800 1.1rem/1 var(--lk-font-ui); color: var(--lk-ivory-100); background: rgba(18, 24, 41, .85); box-shadow: inset 0 0 0 1px rgba(211, 174, 108, .35); }
#world-map-modal .lk-wmap__ctrl svg { width: 17px; height: 17px; }
#world-map-modal .lk-wmap__mark { position: absolute; left: 12px; bottom: 10px; display: grid; gap: 1px; padding: 0; background: none; border: 0; text-align: left; pointer-events: none; }
#world-map-modal .lk-wmap__mark #island-watermark-title { font: 400 .95rem/1.2 var(--lk-font-display); letter-spacing: .02em; color: var(--lk-gilt-100); text-shadow: 0 1px 4px #000; }
#world-map-modal .lk-wmap__mark #island-cursor-coords { font: 800 .62rem/1.3 var(--lk-font-ui); color: #8D97AF; font-variant-numeric: tabular-nums; }
#world-map-modal .lk-wmap__tip { position: absolute; z-index: 3; max-width: 240px; padding: 8px 12px; border: 0; border-radius: var(--lk-r-sm); color: var(--lk-ink-900); background: var(--lk-ivory-100); box-shadow: 0 10px 22px rgba(0, 0, 0, .45); pointer-events: none; }
#world-map-modal .lk-wmap__tip.hidden { display: none; }
#world-map-modal .lk-wmap__tip .tooltip-title { font: 400 .98rem/1.2 var(--lk-font-display); color: var(--lk-ink-900); }
#world-map-modal .lk-wmap__tip .tooltip-desc { margin-top: 2px; font-size: .72rem; font-weight: 700; color: var(--lk-ink-600); }
#world-map-modal .lk-wmap__tip .tooltip-coords { margin-top: 3px; font-size: .62rem; font-weight: 800; color: #9D7A42; }

/* Ficha de la isla: papel marfil (como la Crónica) */
#world-map-modal .lk-wmap__page { --ic: #D3AE6C; position: relative; display: flex; flex-direction: column; gap: 14px; min-height: 0; overflow-y: auto; padding: 22px 22px 16px; margin: 0; border: 0; border-radius: 0; color: var(--lk-ink-900);
  background: var(--lk-lattice), linear-gradient(180deg, var(--lk-ivory-50), var(--lk-ivory-100)); box-shadow: inset 1px 0 0 rgba(157, 122, 66, .45); scrollbar-width: thin; scrollbar-color: rgba(157, 122, 66, .45) transparent; }
#world-map-modal .lk-wmap__page::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(180deg, var(--ic), color-mix(in srgb, var(--ic) 30%, transparent)); }
#world-map-modal .lk-wmap__ph { display: grid; gap: 4px; padding: 0; border: 0; }
#world-map-modal .lk-wmap__biome { justify-self: start; padding: 0; border: 0; background: none; font: 800 .64rem/1.3 var(--lk-font-ui); letter-spacing: .2em; text-transform: uppercase; color: #9D7A42; }
#world-map-modal .lk-wmap__ph .detail-zone-name { margin: 0; font: 400 1.6rem/1.1 var(--lk-font-display); color: var(--lk-ink-900); }
#world-map-modal .lk-wmap__ph .detail-zone-coord { font-size: .76rem; font-weight: 700; color: var(--lk-ink-600); letter-spacing: 0; text-transform: none; }
#world-map-modal .lk-wmap__meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0; border: 0; background: none; }
#world-map-modal .lk-wmap__meta .detail-meta-item { display: grid; gap: 2px; padding: 8px 10px; border-radius: var(--lk-r-sm); background: rgba(157, 122, 66, .1); box-shadow: inset 0 0 0 1px rgba(157, 122, 66, .2); }
#world-map-modal .lk-wmap__meta .meta-label { font: 800 .6rem/1.3 var(--lk-font-ui); letter-spacing: .12em; text-transform: uppercase; color: #8A7756; }
#world-map-modal .lk-wmap__meta .meta-val { font: 900 .9rem/1.3 var(--lk-font-ui); color: var(--lk-ink-900); }
#world-map-modal .lk-wmap__meta .meta-val.lk-is-here { color: #9D7A42; }
#world-map-modal .lk-wmap__meta .meta-val.lk-is-hard { color: #B3423C; }
#world-map-modal .lk-wmap__meta .meta-val.lk-is-ok { color: #2E7D46; }
#world-map-modal .lk-wmap__warn { margin: -4px 0 0; padding: 8px 10px; border-radius: var(--lk-r-sm); font-size: .74rem; font-weight: 800; line-height: 1.4; color: #8A2622; background: rgba(224, 96, 90, .12); box-shadow: inset 0 0 0 1px rgba(224, 96, 90, .3); }
#world-map-modal .lk-wmap__warn[hidden] { display: none; }
#world-map-modal .lk-wmap__page .detail-section { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; background: none; }
#world-map-modal .lk-wmap__label { font: 800 .62rem/1.3 var(--lk-font-ui); letter-spacing: .18em; text-transform: uppercase; color: #9D7A42; }
#world-map-modal .lk-wmap__page .detail-desc-text { margin: 0; font-size: .84rem; line-height: 1.55; font-weight: 600; color: #3B4258; }
#world-map-modal .lk-wmap__page .detail-landmarks-list { display: grid; gap: 6px; max-height: none; overflow: visible; padding: 0; }
#world-map-modal .lk-wmap__poi { display: flex; align-items: center; gap: 10px; padding: 7px 10px 7px 7px; margin: 0; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .55); box-shadow: inset 0 0 0 1px rgba(157, 122, 66, .22); transition: box-shadow .15s, transform .15s; }
#world-map-modal .lk-wmap__poi[title]:hover { transform: translateY(-1px); box-shadow: inset 0 0 0 1px #9D7A42, 0 4px 10px rgba(46, 52, 72, .12); }
#world-map-modal .lk-wmap__poi .landmark-icon { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; font-size: 18px; background: #1A2236; box-shadow: inset 0 0 0 1px rgba(211, 174, 108, .35); }
#world-map-modal .lk-wmap__poi .landmark-info { flex: 1; min-width: 0; display: grid; gap: 1px; }
#world-map-modal .lk-wmap__poi .landmark-name { font-size: .8rem; font-weight: 900; color: var(--lk-ink-900); }
#world-map-modal .lk-wmap__poi .landmark-desc { font-size: .7rem; font-weight: 600; line-height: 1.35; color: var(--lk-ink-600); }
#world-map-modal .lk-wmap__poi-go { flex: none; padding: 2px 9px; border-radius: var(--lk-r-pill); font: 800 .62rem/1.5 var(--lk-font-ui); color: var(--lk-ivory-50); background: #1A2236; }
#world-map-modal .lk-wmap__actions { margin-top: auto; padding: 0; border: 0; background: none; }
#world-map-modal .lk-wmap__actions .detail-action-btn { width: 100%; justify-content: center; }
#world-map-modal .lk-wmap__keys { margin: 0; text-align: center; font-size: .7rem; font-weight: 700; color: var(--lk-ink-600); }
#world-map-modal .lk-wmap__keys kbd { color: var(--lk-ivory-100); }

@media (max-width: 980px) { #world-map-modal .lk-wmap__body { grid-template-columns: minmax(0, 1fr) 290px; } #world-map-modal .lk-isle__tag { display: none; } }
/* Tamaño fijo: no cambia al pasar de una pestaña a otra */
#world-map-modal .lk-wmap { width: min(1120px, calc(100vw - 40px)); flex: none; }
#world-map-modal .lk-wmap__sea { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; border: 0; }
#world-map-modal .lk-isle { padding: 20px 8px 10px; gap: 3px; overflow: visible; }
#world-map-modal .lk-isle__tag { display: none; }
#world-map-modal .lk-isle__med { width: 48px; height: 48px; font-size: 22px; }
#world-map-modal .lk-wmap__actions { position: sticky; bottom: -16px; margin: auto -22px -16px; padding: 12px 22px 16px; background: linear-gradient(180deg, rgba(239, 232, 218, 0), var(--lk-ivory-100) 30%); }
#world-map-modal .lk-wmap__keys { margin-top: -6px; }
#world-map-modal .lk-wmap__stage { grid-template-columns: minmax(0, 1fr); justify-content: stretch; align-content: stretch; align-items: stretch; border: 0; border-radius: 0; background: radial-gradient(80% 60% at 50% 40%, rgba(26, 34, 62, .6), transparent 70%), #0B0F1C; overflow: hidden; }
#world-map-modal .lk-wmap__keys { display: none; }
#world-map-modal .lk-wmap__grid { width: min(540px, 92%, calc(100vh - 230px)); height: auto; max-width: none; max-height: none; gap: 16px; }
#world-map-modal .lk-isle__tag { display: block; }
/* Viaje entre islas: solo con el barquero (sin viaje rápido desde el mapa) */
#world-map-modal .lk-wmap__travel { display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 10px 12px; border-radius: var(--lk-r-sm); font-size: .76rem; font-weight: 700; line-height: 1.45; color: var(--lk-ink-600); background: rgba(157, 122, 66, .1); box-shadow: inset 0 0 0 1px rgba(157, 122, 66, .25); }
#world-map-modal .lk-wmap__travel[hidden] { display: none; }
#world-map-modal .lk-wmap__travel svg { flex: none; width: 20px; height: 20px; color: #9D7A42; }
#world-map-modal .lk-wmap__travel b { color: var(--lk-ink-900); }
/* Emblemas dibujados por bioma (sin emojis), centrados en el medallón */
#world-map-modal .lk-isle__med { display: grid; place-items: center; color: var(--lk-ivory-50); font-size: 0; line-height: 0; }
#world-map-modal .lk-isle__med svg { display: block; width: 58%; height: 58%; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .45)); }
/* Textos centrados: el lema puede ocupar dos líneas en vez de cortarse */
#world-map-modal .lk-isle > * { justify-self: center; }
#world-map-modal .lk-isle__name, #world-map-modal .lk-isle__tag { width: 100%; padding: 0 4px; box-sizing: border-box; text-align: center; }
#world-map-modal .lk-isle__tag { white-space: normal; text-overflow: clip; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.3; text-wrap: balance; }
/* «Estás aquí» en el borde inferior: no tapa la orientación de la esquina */
#world-map-modal .lk-isle__here { top: auto; bottom: -11px; }
/* Todas las islas son accesibles: sin candado ni medallón apagado; solo el nivel en rojo si supera el tuyo */
#world-map-modal .lk-isle.lk-is-hard .lk-isle__med { filter: none; }

/* ══ Carta del cartógrafo (IslandChart.js) · pestaña «Isla actual» del mapa ═════════════════════════════════════ */
#world-map-modal .lk-wmap__chart { position: relative; min-height: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 10px; }
#world-map-modal #island-canvas-wrapper[hidden] { display: none !important; }
.lk-chart__filters { display: flex; flex-wrap: wrap; gap: 6px; }
.lk-chart__filters button { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border: 0; border-radius: var(--lk-r-pill); cursor: pointer; font: 800 .72rem var(--lk-font-ui); color: #8D97AF; background: rgba(11, 15, 28, .55); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); transition: color .15s, box-shadow .15s; }
.lk-chart__filters button i { width: 8px; height: 8px; transform: rotate(45deg); background: var(--c); opacity: .35; }
.lk-chart__filters button[aria-pressed="true"] { color: var(--lk-ivory-50); box-shadow: inset 0 0 0 1px rgba(211, 174, 108, .45); }
.lk-chart__filters button[aria-pressed="true"] i { opacity: 1; }
.lk-chart__filters .lk-chart__fogbtn { margin-left: auto; }
.lk-chart__frame { position: relative; min-height: 0; border-radius: 6px; overflow: hidden; background: #E9DFC9; box-shadow: inset 0 0 0 1px rgba(157, 122, 66, .6), inset 0 0 0 6px #EFE6D3, inset 0 0 0 7px rgba(157, 122, 66, .35), 0 14px 30px rgba(0, 0, 0, .45); }
.lk-chart__frame::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 60px rgba(120, 86, 40, .35), inset 0 0 0 1px rgba(157, 122, 66, .6), inset 0 0 0 6px #EFE6D3, inset 0 0 0 7px rgba(157, 122, 66, .35); border-radius: inherit; }
.lk-chart__svg { position: absolute; inset: 0; display: block; width: 100%; height: 100%; cursor: grab; user-select: none; touch-action: none; }
.lk-chart__svg.is-drag { cursor: grabbing; }
.lk-chart__svg [data-layer].is-off { display: none; }
.lk-chart__cartouche { position: absolute; left: 14px; top: 12px; z-index: 1; width: 240px; height: auto; pointer-events: none; filter: drop-shadow(0 3px 6px rgba(90, 60, 20, .25)); }
.lk-chart__ct { font-family: var(--lk-font-display); fill: #3A2A16; }
.lk-chart__cs { font-family: var(--lk-font-ui); font-weight: 800; letter-spacing: .16em; fill: #8A6A3E; }
.lk-chart__compass { position: absolute; right: 16px; bottom: 46px; z-index: 1; width: 82px; height: auto; pointer-events: none; }
.lk-chart__scale { position: absolute; right: 18px; bottom: 16px; z-index: 1; display: grid; justify-items: start; gap: 2px; pointer-events: none; font: 800 .58rem/1 var(--lk-font-ui); letter-spacing: .14em; text-transform: uppercase; color: #8A6A3E; }
.lk-chart__scale i { display: block; height: 6px; border: 2px solid #5B4026; border-top: 0; background: linear-gradient(90deg, #5B4026 50%, transparent 50%); }
.lk-chart__ctrl { position: absolute; right: 12px; top: 12px; z-index: 1; display: grid; gap: 8px; }
.lk-chart__ctrl .lk-btn-circle-icon { width: 36px; height: 36px; padding: 0; border: 0; font: 800 1.1rem/1 var(--lk-font-ui); color: var(--lk-ivory-100); background: rgba(26, 34, 54, .88); box-shadow: inset 0 0 0 1px rgba(211, 174, 108, .35); }
.lk-chart__ctrl svg { width: 17px; height: 17px; }
.lk-chart__legend { position: absolute; left: 12px; bottom: 10px; z-index: 1; display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 5px 10px; border-radius: var(--lk-r-pill); font: 800 .64rem var(--lk-font-ui); color: #5A4426; background: rgba(242, 234, 218, .88); box-shadow: inset 0 0 0 1px rgba(157, 122, 66, .35); pointer-events: none; }
.lk-chart__legend span { display: inline-flex; align-items: center; gap: 5px; }
.lk-chart__legend i { width: 9px; height: 9px; transform: rotate(45deg); border-radius: 2px; }
.lk-chart__legend .lg-you { background: var(--lk-lumen-500, #5E8DE8); border-radius: 50%; transform: none; }
.lk-chart__legend .lg-quest { background: var(--lk-gilt-500); }
.lk-chart__legend .lg-poi { background: #2A2F44; }
.lk-chart__legend .lg-npc { background: #F6C35B; }
.lk-chart__legend .lg-ferry { background: #4F7DB8; }
.lk-chart__loading { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; font: 400 1.1rem var(--lk-font-display); color: #5A4426; background: rgba(233, 223, 201, .82); }
.lk-chart__loading[hidden] { display: none; }

/* Marcas: tamaño constante en pantalla (escaladas por --k desde JS) */
.lk-chart__mk { cursor: pointer; }
.lk-chart__mk .hit { fill: transparent; }
.lk-chart__mk .body { transition: transform .18s var(--lk-ease); }
.lk-chart__mk.is-hot .body, .lk-chart__mk:hover .body { transform: scale(1.18); }
.lk-chart__mk .ring { fill: none; stroke: var(--lk-gilt-500); stroke-width: 2; stroke-dasharray: 3 3; opacity: 0; }
.lk-chart__mk.is-follow .ring { opacity: 1; }
.lk-mk-foe, .lk-mk-me { cursor: default; }
.lk-chart__lbl { font: 400 14px var(--lk-font-display); fill: #4A3620; paint-order: stroke; stroke: #F2EADA; stroke-width: 3px; stroke-linejoin: round; pointer-events: none; }
.lk-chart__mark { font: 900 12px var(--lk-font-ui); fill: #3D2C0E; pointer-events: none; }
.lk-chart__pulse { fill: none; stroke: #D3AE6C; stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: lkChartPulse 2s ease-out infinite; }
@keyframes lkChartPulse { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(2.4); opacity: 0; } }
.lk-chart__route { fill: none; stroke: #B8892E; stroke-linecap: round; animation: lkChartDash 1.2s linear infinite; }
@keyframes lkChartDash { to { stroke-dashoffset: -22; } }
.lk-chart__svg.is-anim { transition: none; }
.lk-chart__tip { position: fixed; z-index: 2100; width: 240px; }
.lk-chart__tip .lk-tooltip-tactical { width: 240px; }
.lk-chart__tip .lk-tt-body p { margin: 0; }
.lk-chart__tip .lk-chart__tiphint { margin-top: 4px !important; font-size: .72rem; font-weight: 800; color: #9D7A42; }

/* Ficha lateral en la pestaña de la isla: destino y exploración */
#world-map-modal .lk-wmap__track { display: grid; gap: 3px; padding: 10px 12px; border-radius: var(--lk-r-sm); background: linear-gradient(90deg, rgba(211, 174, 108, .22), rgba(211, 174, 108, .06)); box-shadow: inset 0 0 0 1px rgba(157, 122, 66, .4); }
#world-map-modal .lk-wmap__track[hidden], #world-map-modal .lk-wmap__explored[hidden] { display: none; }
#world-map-modal .lk-wmap__track small { font: 800 .6rem var(--lk-font-ui); letter-spacing: .16em; text-transform: uppercase; color: #9D7A42; }
#world-map-modal .lk-wmap__track b { font: 400 1.05rem/1.2 var(--lk-font-display); color: var(--lk-ink-900); }
#world-map-modal .lk-wmap__track span { font-size: .72rem; font-weight: 700; color: var(--lk-ink-600); }
#world-map-modal .lk-wmap__explored .lk-bar-read { color: var(--lk-ink-600); }
#world-map-modal .lk-wmap__explored .lk-bar-read b { color: var(--lk-ink-900); }
#world-map-modal .lk-wmap__explored .lk-bar { background: rgba(46, 52, 72, .15); }
#world-map-modal .lk-wmap__explored .lk-bar > i { position: static; display: block; height: 100%; }
#world-map-modal .lk-wmap__poi.lk-is-hot { transform: translateY(-1px); box-shadow: inset 0 0 0 1px #9D7A42, 0 4px 10px rgba(46, 52, 72, .12); }
#world-map-modal .lk-wmap__poi.lk-is-follow { box-shadow: inset 0 0 0 1.5px var(--lk-gilt-500), 0 0 0 3px rgba(211, 174, 108, .25); }
#world-map-modal .lk-wmap__poi.lk-is-follow .lk-wmap__poi-go { color: #3D2C0E; background: linear-gradient(180deg, var(--lk-gilt-100), var(--lk-gilt-500)); }

/* ══ Rótulo de zona al entrar (ZoneBanner.js) · banner de juego del DS con medallón de bioma ════════════════ */
.lk-zone { position: fixed; left: 50%; top: clamp(86px, 12vh, 128px); z-index: 880; transform: translateX(-50%); pointer-events: none; --zc: var(--lk-gilt-300); }
.lk-zone.hidden { display: none !important; }
.lk-zone__band { position: relative; display: grid; justify-items: center; gap: 4px; min-width: 420px; max-width: min(640px, calc(100vw - 48px)); padding: 30px 84px 12px; text-align: center;
  background: linear-gradient(90deg, transparent, rgba(18, 24, 41, .92) 20%, rgba(18, 24, 41, .92) 80%, transparent);
  border-block: 1px solid; border-image: linear-gradient(90deg, transparent, var(--lk-gilt-500), transparent) 1; }
.lk-zone__med { position: absolute; left: 50%; top: 0; width: 46px; height: 46px; transform: translate(-50%, -55%); display: grid; place-items: center; border-radius: 50%; color: var(--zc);
  background: radial-gradient(circle at 50% 35%, #2C3A62, #141B2E); box-shadow: 0 0 0 2px rgba(11, 15, 28, .9), 0 0 0 3px rgba(211, 174, 108, .7), 0 0 18px color-mix(in srgb, var(--zc) 45%, transparent); }
.lk-zone__med svg { width: 26px; height: 26px; }
.lk-zone__kicker { display: flex; align-items: center; gap: 10px; font: 800 .68rem/1 var(--lk-font-ui); letter-spacing: .28em; text-transform: uppercase; color: var(--zc); }
.lk-zone__kicker i { width: 5px; height: 5px; transform: rotate(45deg); background: currentColor; opacity: .8; }
.lk-zone__name { margin: 2px 0 0; font: 400 clamp(1.5rem, 2.6vw, 2.05rem)/1.12 var(--lk-font-display); letter-spacing: .02em; color: transparent;
  background: linear-gradient(180deg, #FFF8E6, var(--lk-gilt-300) 60%, #B8915A); -webkit-background-clip: text; background-clip: text; filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .7)); }
.lk-zone__line { display: flex; align-items: center; gap: 8px; width: min(260px, 60%); color: rgba(211, 174, 108, .75); }
.lk-zone__line::before, .lk-zone__line::after { content: ""; flex: 1; height: 1px; }
.lk-zone__line::before { background: linear-gradient(90deg, transparent, currentColor); }
.lk-zone__line::after { background: linear-gradient(90deg, currentColor, transparent); }
.lk-zone__line i { width: 6px; height: 6px; border: 1px solid currentColor; transform: rotate(45deg); }
.lk-zone__sub { font: 800 .64rem/1.4 var(--lk-font-ui); letter-spacing: .16em; text-transform: uppercase; color: #9AA3BA; }
.lk-zone__sub b { color: var(--lk-ivory-50); font-weight: 900; }
/* Entrada: la banda se abre desde el centro y el texto sube; salida: se desvanece */
.lk-zone.lk-is-on .lk-zone__band { animation: lkZoneOpen .55s var(--lk-ease, ease-out) both; }
.lk-zone.lk-is-on .lk-zone__med { animation: lkZoneMed .5s var(--lk-ease, ease-out) .12s both; }
.lk-zone.lk-is-on .lk-zone__kicker, .lk-zone.lk-is-on .lk-zone__name, .lk-zone.lk-is-on .lk-zone__line, .lk-zone.lk-is-on .lk-zone__sub { animation: lkZoneUp .5s var(--lk-ease, ease-out) both; }
.lk-zone.lk-is-on .lk-zone__name { animation-delay: .12s; }
.lk-zone.lk-is-on .lk-zone__line { animation-delay: .2s; }
.lk-zone.lk-is-on .lk-zone__sub { animation-delay: .26s; }
.lk-zone.lk-is-out { opacity: 0; transform: translateX(-50%) translateY(-8px); transition: opacity .5s, transform .5s var(--lk-ease, ease); }
@keyframes lkZoneOpen { from { clip-path: inset(0 50% 0 50%); opacity: 0; } to { clip-path: inset(-40px 0 0 0); opacity: 1; } }
@keyframes lkZoneMed { from { opacity: 0; transform: translate(-50%, -55%) scale(.6); } to { opacity: 1; transform: translate(-50%, -55%) scale(1); } }
@keyframes lkZoneUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .lk-zone *, .lk-zone { animation: none !important; transition: opacity .3s !important; } }
@media (max-width: 640px) { .lk-zone__band { min-width: 0; padding-inline: 40px; } }

/* Mapa: sin botón de cambio de vista; la franja inferior solo aparece con el aviso del barquero */
#world-map-modal .lk-wmap__actions:has(#detail-travel-note[hidden]) { display: none; }

/* Mochila: cantidad como chapa en la esquina superior derecha (la franja inferior queda para el efecto) */
.lk-it .lk-qty { position: absolute; right: 4px; top: 4px; min-width: 20px; padding: 1px 6px; border-radius: 9px; text-align: center; font: 900 .62rem/1.35 var(--lk-font-ui); color: var(--lk-ink-900, #2E3448); background: var(--lk-ivory-100, #EFE8DA); box-shadow: 0 0 0 1.5px rgba(11, 15, 28, .55); pointer-events: none; }

/* ══ Transición de entrada / salida del combate (BattleTransition.js) · lenguaje .lk-cine con acento de quimera ══ */
.lk-btl { position: fixed; inset: 0; z-index: 1460; pointer-events: auto; --cine-acc: #E0605A; }
.lk-btl.hidden { display: none !important; }
.lk-btl__night { position: absolute; inset: 0; z-index: -3; opacity: 0; background: radial-gradient(80% 70% at 50% 40%, #1A2440, #070A14 80%); transition: opacity .25s ease; }
.lk-btl__night .lk-vista { position: absolute; inset: 0; opacity: .55; }
.lk-btl.lk-is-cover .lk-btl__night { opacity: 1; }
.lk-btl .lk-cine__veil { background: radial-gradient(70% 60% at 50% 48%, rgba(70, 18, 24, .3), rgba(8, 10, 20, .85) 75%); }
.lk-btl__flash { position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 50% 46%, #FFF4E0, rgba(255, 214, 160, .55) 35%, transparent 70%); opacity: 0; pointer-events: none; }
.lk-btl.lk-is-play .lk-btl__flash { animation: lkBtlFlash .55s ease-out forwards; }
.lk-btl__emblem { color: #FFD6D3; filter: drop-shadow(0 0 18px rgba(224, 96, 90, .75)); }
.lk-btl .lk-cine__title { background: linear-gradient(180deg, #FFF3EC, #F2A79F 52%, #9C3A34); -webkit-background-clip: text; background-clip: text; }
.lk-btl .lk-cine__ring { box-shadow: 0 0 0 2px #E0605A, 0 0 40px rgba(224, 96, 90, .9); }
.lk-btl__sparks { position: absolute; left: 50%; top: 44px; width: 0; height: 0; z-index: -1; }
.lk-btl__sparks i { position: absolute; left: 0; top: 0; width: 3px; height: 16px; border-radius: 2px; background: linear-gradient(#FFF1D6, #F2C46B); transform: rotate(var(--a)) translateY(-40px); opacity: 0; transform-origin: 50% 0; }
.lk-btl.lk-is-play .lk-btl__sparks i { animation: lkBtlSpark .5s ease-out var(--d) forwards; }
/* Carga mientras se monta el tablero */
.lk-btl__load { position: absolute; left: 50%; bottom: clamp(56px, 13vh, 130px); translate: -50% 0; width: min(560px, calc(100vw - 32px)); display: grid; gap: 12px; justify-items: center; opacity: 0; transition: opacity .3s ease; }
.lk-btl.lk-is-loading .lk-btl__load { opacity: 1; }
.lk-btl__bar { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 6px 10px; width: min(420px, 100%); font: 800 .78rem var(--lk-font-ui); color: #C8CFDF; }
.lk-btl__bar .lk-moon-spin { width: 20px; height: 20px; }
.lk-btl__trk { grid-column: 1 / -1; position: relative; display: block; height: 4px; border-radius: 3px; overflow: hidden; background: rgba(239, 232, 218, .12); }
.lk-btl__trk > i { position: absolute; inset: 0 auto 0 0; width: 40%; border-radius: inherit; background: linear-gradient(90deg, transparent, #F2A79F, var(--lk-gilt-300)); animation: lkBtlScan 1.3s ease-in-out infinite; }
.lk-btl.lk-is-ready .lk-btl__trk > i { animation: none; width: 100%; transform: none; transition: width .25s; }
/* Al abrir el telón sobre el tablero: se disuelve toda la capa (bandas incluidas) */
.lk-btl.lk-is-out { opacity: 0; transition: opacity .55s ease; }
.lk-btl.lk-is-out .lk-cine__core { animation: lk-cineOut .45s var(--lk-ease) forwards; }
/* Vuelta al mundo abierto */
.lk-btl--back .lk-btl__night { transition: opacity .45s ease; }
.lk-btl__back { display: flex; align-items: center; gap: 10px; font: 400 1.15rem var(--lk-font-display); color: #DCD3C2; opacity: 0; transition: opacity .35s ease .15s; text-shadow: 0 2px 10px rgba(0, 0, 0, .7); }
.lk-btl__back .lk-moon-spin { width: 22px; height: 22px; }
.lk-btl--back.lk-is-cover .lk-btl__back { opacity: 1; }
.lk-btl--back.lk-is-out .lk-btl__back { opacity: 0; transition-delay: 0s; }
@keyframes lkBtlFlash { 0% { opacity: 0; } 15% { opacity: 1; } 100% { opacity: 0; } }
@keyframes lkBtlSpark { 0% { opacity: 0; transform: rotate(var(--a)) translateY(-30px) scaleY(.4); } 30% { opacity: 1; } 100% { opacity: 0; transform: rotate(var(--a)) translateY(calc(-1 * var(--l))) scaleY(1); } }
/* transform (no `left`): el navegador la anima en el compositor, así sigue moviéndose aunque el hilo
   principal esté ocupado montando el combate */
@keyframes lkBtlScan { 0% { transform: translateX(-100%); } 100% { transform: translateX(250%); } }
@media (prefers-reduced-motion: reduce) { .lk-btl__sparks, .lk-btl__flash { display: none; } .lk-btl__trk > i { animation: none; width: 100%; } }

/* ══ Mochila › «Runas y charms» (RunesCharmsPanel.js · pantalla 17 «Preparación» en la columna derecha) ═══════════ */
.lk-bag-runes { display: flex; flex-direction: column; gap: 14px; overflow-y: auto; scrollbar-width: thin; scrollbar-gutter: stable; scrollbar-color: rgba(211, 174, 108, .35) transparent; }
.lk-bag-runes > * { flex: none; }
.lk-bag-runes[hidden] { display: none; }
.lk-bag-runes__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px 18px; align-items: center; padding: 12px 14px; border-radius: var(--lk-r-md); background: rgba(18, 24, 41, .55); box-shadow: inset 0 0 0 1px rgba(211, 174, 108, .16); }
.lk-bag-runes .lk-rune-row { gap: 12px; }
.lk-bag-runes .lk-socket-master-rune { width: 58px; height: 58px; }
.lk-bag-runes__rname { font: 400 1.12rem/1.2 var(--lk-font-display); color: var(--lk-ivory-50); }
.lk-bag-runes__muted { font-size: .72rem; font-weight: 700; color: #8D97AF; }
.lk-bag-runes .lk-pp-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.lk-bag-runes .lk-pp-readout { font-size: .9rem; }
.lk-bag-runes .lk-pp-readout b { font-size: 1.5rem; }
.lk-bag-runes .lk-pp-gems { flex-wrap: wrap; gap: 4px; }
.lk-bag-runes .lk-parts { display: grid; gap: 2px; }
.lk-bag-runes .lk-part-row { padding: 6px 10px; }
.lk-bag-runes .lk-part-ico { width: 30px; height: 30px; object-fit: contain; }
.lk-bag-runes .lk-socket-charm { width: 42px; height: 42px; }
.lk-bag-runes__shelf { display: grid; gap: 10px; padding-top: 12px; border-top: 1px solid rgba(211, 174, 108, .14); }
.lk-bag-runes__shelf .lk-bag__bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.lk-bag-runes__hint { font-size: .76rem; font-weight: 700; color: #AEB6CB; }
.lk-bag-runes__hint b { color: var(--lk-gilt-300); }
.lk-bag-runes__demo { padding: 2px 10px; border-radius: var(--lk-r-pill); font: 900 .58rem var(--lk-font-ui); letter-spacing: .12em; text-transform: uppercase; color: #8D97AF; box-shadow: inset 0 0 0 1px rgba(141, 151, 175, .45); cursor: help; }
.lk-bag-runes .lk-shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 12px 10px; }
.lk-bag-runes .lk-charm-item { width: auto; }
.lk-bag-runes .lk-charm-item .lk-slot-item { width: 100%; }
.lk-bag-runes__empty { margin: auto; display: grid; justify-items: center; gap: 8px; max-width: 320px; text-align: center; color: #AEB6CB; font-size: .84rem; font-weight: 700; }
.lk-bag-runes__empty img { width: 56px; height: 56px; opacity: .8; }
.lk-bag-runes__empty b { font: 400 1.2rem var(--lk-font-display); color: var(--lk-ivory-50); }
@media (max-width: 760px) { .lk-bag-runes__top { grid-template-columns: minmax(0, 1fr); } }
/* Partes con su habilidad: arte de la carta y el icono de la parte en la esquina */
.lk-bag-runes .lk-part-row { grid-template-columns: 52px minmax(0, 1fr) auto 46px; }
.lk-bag-runes__spell { width: 52px; border-radius: 10px; cursor: help; overflow: hidden; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--cc) 70%, transparent), 0 3px 8px rgba(0, 0, 0, .35); }
.lk-bag-runes__spell .lk-spell-part { width: 22px; height: 22px; right: 1px; bottom: 1px; }
.lk-bag-runes__spell.lk-is-noart .lk-spell-part { position: static; width: 34px; height: 34px; }
.lk-bag-runes .lk-pn small { display: block; }
.lk-bag-runes__charm { display: flex !important; align-items: center; gap: 4px; margin-top: 1px; font-size: .68rem !important; color: #6E7894 !important; }
.lk-bag-runes__charm img { width: 14px; height: 14px; opacity: .55; }
.lk-bag-runes__charm.lk-is-on { color: var(--lk-gilt-300) !important; }
.lk-bag-runes__charm.lk-is-on img { opacity: 1; }
/* Runas y charms · UX (DS §27): filas compactas, «+» en ranuras vacías, rombos de PP con vista previa del coste,
   arrastrar y soltar con lumen y destello en la ranura en vez de avisos de éxito */
.lk-bag-runes { gap: 12px; }
.lk-bag-runes__top { padding: 10px 14px; }
.lk-bag-runes .lk-socket-master-rune { width: 52px; height: 52px; }
/* Hito 136: la ranura mide 52 px pero la runa seguía a 58 px (del sistema) y se salía hacia abajo a la derecha: centrada y a su medida */
.lk-bag-runes .lk-socket-master-rune { justify-content: center; align-content: center; }
.lk-bag-runes .lk-socket-master-rune img.lk-rune-art { width: 2.75rem; height: 2.75rem; }
.lk-bag-runes .lk-parts { gap: 0; }
.lk-bag-runes .lk-part-row { grid-template-columns: 44px minmax(0, 1fr) auto 40px; gap: 10px; padding: 4px 10px; cursor: pointer; position: relative; }
.lk-bag-runes__spell { width: 44px; height: 44px; border-radius: 9px; }
.lk-bag-runes__spell .lk-spell-part { width: 19px; height: 19px; }
.lk-bag-runes__spell.lk-is-noart .lk-spell-part { width: 30px; height: 30px; }
.lk-bag-runes .lk-pn b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lk-bag-runes .lk-pn small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lk-bag-runes__pk { margin-left: 4px; font: 900 .58rem var(--lk-font-ui); letter-spacing: .12em; text-transform: uppercase; color: #6E7894; }
.lk-bag-runes__chn { color: var(--lk-gilt-300); }
.lk-bag-runes .lk-pp { font-size: .7rem; font-weight: 900; color: var(--lk-gilt-300); text-align: right; }
/* Selección en lumen: hilo de 2px a la izquierda y aro en la ranura */
.lk-bag-runes .lk-part-row.lk-is-target { background: linear-gradient(90deg, rgba(111, 164, 242, .14), transparent 70%); }
.lk-bag-runes .lk-part-row.lk-is-target::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 2px; border-radius: 2px; background: var(--lk-lumen-500); }
.lk-bag-runes .lk-socket-charm { width: 38px; height: 38px; transition: box-shadow .25s var(--lk-ease, ease), transform .12s var(--lk-ease, ease); }
.lk-bag-runes .lk-socket-charm img.lk-charm-art { width: 26px; height: 30px; }
.lk-bag-runes .lk-socket-charm.lk-is-target { box-shadow: 0 0 0 2px var(--lk-lumen-500), 0 0 12px rgba(111, 164, 242, .45); }
.lk-bag-runes .lk-socket-charm:active, .lk-bag-runes__rsock:active { transform: scale(.97); }
.lk-bag-runes__plus { font: 400 1.3rem/1 var(--lk-font-display); color: rgba(211, 174, 108, .7); pointer-events: none; }
.lk-bag-runes .lk-socket-charm.lk-is-empty:hover .lk-bag-runes__plus, .lk-bag-runes__rsock.lk-is-empty:hover .lk-bag-runes__plus { color: var(--lk-lumen-300); }
.lk-bag-runes__rsock { display: grid; place-items: center; cursor: pointer; }
.lk-bag-runes__rsock .lk-bag-runes__plus { font-size: 1.6rem; }
/* PP: 15 rombos (unidad lunar) */
.lk-bag-runes__pp { display: grid; gap: 7px; }
.lk-bag-runes__ppread { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-weight: 800; color: #AEB6CB; font-size: .84rem; }
.lk-bag-runes__ppread b { font: 400 1.4rem var(--lk-font-display); color: var(--lk-ivory-50); }
.lk-bag-runes__ppread small { font-size: .72rem; color: #8D97AF; transition: color .2s; }
.lk-bag-runes__ppread small.lk-is-bad { color: var(--lk-danger-crimson); }
.lk-bag-runes__pips { display: flex; flex-wrap: wrap; gap: 5px; }
.lk-bag-runes__pip { width: 10px; height: 10px; transform: rotate(45deg); border-radius: 2px; background: linear-gradient(135deg, var(--lk-gilt-300), #B98A45); box-shadow: 0 0 6px rgba(211, 174, 108, .35); transition: background .2s, box-shadow .2s, opacity .2s; }
.lk-bag-runes__pip.lk-is-spent { background: rgba(141, 151, 175, .18); box-shadow: inset 0 0 0 1px rgba(141, 151, 175, .35); }
.lk-bag-runes__pip.lk-is-preview { background: var(--lk-lumen-300); box-shadow: 0 0 8px rgba(111, 164, 242, .7); }
.lk-bag-runes__pip.lk-is-over { background: var(--lk-danger-crimson); box-shadow: 0 0 8px rgba(224, 96, 90, .6); }
/* PP por clase (Hito 44): cada rombo del color de la clase que lo aporta, agrupados por clase */
.lk-bag-runes__pips { column-gap: 10px; row-gap: 6px; }
.lk-bag-runes__pipgrp { display: inline-flex; gap: 5px; }
.lk-bag-runes__pip.lk-has-cls { background: var(--c); box-shadow: 0 0 6px color-mix(in srgb, var(--c) 55%, transparent); }
.lk-bag-runes__pip.lk-has-cls.lk-is-spent { background: color-mix(in srgb, var(--c) 16%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 45%, transparent); }
.lk-bag-runes__pip.lk-has-cls.lk-is-preview { background: color-mix(in srgb, var(--c) 45%, #fff); box-shadow: 0 0 0 1px #fff, 0 0 9px color-mix(in srgb, var(--c) 80%, transparent); }
.lk-bag-runes__pip.lk-has-cls.lk-is-over { background: var(--lk-danger-crimson); box-shadow: 0 0 8px rgba(224, 96, 90, .6); }
.lk-bag-runes__ppleg { font-size: .72rem; font-weight: 700; color: #8D97AF; }
.lk-bag-runes__ppleg b { font-weight: 900; }
.lk-bag-runes__ppwarn { font-size: .72rem; color: var(--lk-danger-crimson); }
/* Estantería */
.lk-bag-runes__shelf { gap: 8px; scroll-margin-top: 8px; }
.lk-bag-runes__bar { display: flex; align-items: center; justify-content: space-between; gap: 8px 10px; flex-wrap: wrap; }
.lk-bag-runes__tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.lk-bag-runes .lk-codex__filters .lk-fchip { padding: 3px 10px; font-size: .72rem; }
.lk-bag-runes__kind button { padding: 6px 14px; }
.lk-bag-runes__kind .lk-ai { width: 18px; height: 18px; }
.lk-bag-runes .lk-slot-item.lk-is-poor { opacity: .55; }
/* Hito 54: cuántas tienes libres de una runa o charm */
.lk-bag-runes .lk-slot-item { position: relative; }
/* Cantidad abajo a la derecha (misma altura que el sello Ronin): arriba a la derecha tapaba el icono de clase */
.lk-rc-qty { position: absolute; bottom: 26px; right: 4px; z-index: 3; font-style: normal; font-size: 11px; font-weight: 700; line-height: 16px; padding: 0 5px; border-radius: 8px; color: #fff; background: rgba(10, 14, 28, .78); pointer-events: none; }
.lk-bag-runes .lk-slot-item[draggable="true"] { cursor: grab; }
.lk-bag-runes__tt-on { margin: 0 0 6px; font-size: .74rem; color: var(--lk-lumen-300); }
.lk-bag-runes__pick { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 6px; }
/* Arrastrar y soltar: destinos válidos en lumen, el resto apagado */
.lk-bag-runes.lk-drag-charm .lk-part-row:not(.lk-can-drop) { opacity: .4; }
.lk-bag-runes.lk-drag-charm .lk-part-row.lk-can-drop .lk-socket-charm,
.lk-bag-runes.lk-drag-rune .lk-bag-runes__rsock { box-shadow: 0 0 0 2px var(--lk-lumen-300), 0 0 14px rgba(111, 164, 242, .5); }
.lk-bag-runes .lk-part-row.lk-is-over { background: rgba(111, 164, 242, .16); }
.lk-bag-runes .lk-part-row.lk-is-over .lk-socket-charm, .lk-bag-runes__rsock.lk-is-over { transform: scale(1.08); }
/* Confirmación en la propia ranura (sustituye al aviso de éxito) */
@keyframes lk-sockSet { 0% { transform: scale(.82); box-shadow: 0 0 0 0 rgba(169, 204, 255, .9); } 60% { transform: scale(1.04); box-shadow: 0 0 0 8px rgba(169, 204, 255, 0); } 100% { transform: scale(1); } }
.lk-bag-runes .lk-is-set { animation: lk-sockSet .32s var(--lk-ease, ease) both; }
@media (prefers-reduced-motion: reduce) {
  .lk-bag-runes .lk-is-set { animation: none; box-shadow: 0 0 0 2px var(--lk-lumen-300); }
  .lk-bag-runes__pip, .lk-bag-runes .lk-socket-charm { transition: none; }
}
/* Estantería de runas y charms: mismo tamaño que las casillas de la Mochila (.lk-bag__grid · minmax 76px, hueco 10px) */
.lk-bag-runes .lk-shelf { grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 10px; align-items: start; }
.lk-bag-runes .lk-shelf .lk-charm-item { align-content: start; }
.lk-bag-runes .lk-charm-item { gap: 4px; }
.lk-bag-runes .lk-shelf .lk-slot-item .lk-art { height: 66px; display: grid; place-items: center; }
.lk-bag-runes .lk-shelf .lk-slot-item .lk-art img.lk-charm-art { width: 40px; height: 40px; }
.lk-bag-runes .lk-shelf .lk-slot-item .lk-cap { padding: 3px 4px 4px; font-size: .64rem; line-height: 14px; white-space: nowrap; }
.lk-bag-runes .lk-shelf .lk-slot-item .lk-cc { transform: scale(.85); transform-origin: top right; }
.lk-bag-runes .lk-charm-item small { font-size: .62rem; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* Selector compacto (Orden de la Mochila y de la estantería de charms): cristal, filo dorado, chevrón dorado,
   foco lumen y lista desplegable oscura (color-scheme) en lugar del blanco del sistema */
.lk-ui select.lk-select, select.lk-select {
  appearance: none; -webkit-appearance: none; color-scheme: dark;
  width: auto; min-height: 32px; padding: 0 30px 0 12px; border: 0; border-radius: var(--lk-r-pill); cursor: pointer;
  font: 800 .78rem var(--lk-font-ui); color: var(--lk-ivory-50);
  background: rgba(18, 24, 41, .75) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23D3AE6C' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 11px center / 10px 7px;
  box-shadow: inset 0 0 0 1px rgba(211, 174, 108, .35);
  transition: box-shadow .25s var(--lk-ease, ease), background-color .25s var(--lk-ease, ease);
}
select.lk-select:hover { background-color: rgba(28, 36, 60, .85); box-shadow: inset 0 0 0 1px var(--lk-gilt-300); }
select.lk-select:focus-visible { outline: none; box-shadow: inset 0 0 0 1px var(--lk-lumen-300), 0 0 0 3px rgba(111, 164, 242, .35); }
select.lk-select option { background: #121829; color: var(--lk-ivory-50); font-weight: 700; }
select.lk-select option:checked { background: #22304F; color: var(--lk-lumen-300); }
@media (prefers-reduced-motion: reduce) { select.lk-select { transition: none; } }
/* Barra de la estantería: tipo a la izquierda y orden a la derecha; debajo, «Solo compatibles» y para qué parte */
.lk-bag-runes__sort { margin-left: auto; }
.lk-bag-runes__bar--fit { justify-content: flex-start; }
/* Runas y partes fijas; solo la estantería se desplaza. Si la ventana es tan baja que no caben dos filas de
   estantería, se desplaza todo el panel (mínimo de la estantería ≈ fila y media) */
.lk-bag-runes { overflow-y: auto; gap: 10px; }
.lk-bag-runes__top { padding: 8px 14px; }
.lk-bag-runes .lk-part-row { padding: 3px 10px; }
.lk-bag-runes__spell { width: 40px; height: 40px; }
.lk-bag-runes .lk-part-row { grid-template-columns: 40px minmax(0, 1fr) auto 40px; }
.lk-bag-runes .lk-socket-charm { width: 36px; height: 36px; }
.lk-bag-runes__shelf { flex: 1 1 auto; min-height: 210px; display: flex; flex-direction: column; padding-top: 10px; }
.lk-bag-runes__shelf > * { flex: none; }
.lk-bag-runes .lk-shelf { flex: 1 1 0; min-height: 0; overflow-y: auto; align-content: start; padding: 4px 4px 8px; margin: 0 -4px; scrollbar-width: thin; scrollbar-gutter: stable; scrollbar-color: rgba(211, 174, 108, .35) transparent; overscroll-behavior: contain; }
.lk-bag-runes__shelf .lk-drag-hint { display: none; }
/* Mochila · fila de personajes: columnas iguales alineadas a la izquierda (sin hueco en el centro con 2 personajes) */
.lk-bag .lk-sq-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); justify-content: start; gap: 0.5rem 0.25rem; } /* Hito 136: el escuadrón (Sapidae + 3 Axies) en una sola fila */
.lk-bag .lk-sq-strip .lk-sq-pip { width: 100%; }
.lk-bag .lk-sq-strip .lk-sq-pip .lk-nm { max-width: 100%; }
/* Hito 136: con 4 en fila, el «!» del vecino tapaba el corazón del vínculo: el corazón baja a la esquina inferior derecha del medallón */
.lk-bag .lk-sq-strip .lk-sq-pip .lk-hb { top: 1.95rem; right: calc(50% - 1.75rem); }

/* ══ Forja (ForgePanel.js · pantalla 25 «Forja · Crear y evolucionar») ═══════════ */
.lk-forge-layer > .lk-forge { width: min(1120px, 100%); height: min(760px, calc(100vh - 40px)); }
.lk-forge-layer .lk-forge-body { flex: 1; min-height: 0; }
.lk-forge-layer .lk-forge-list { min-height: 0; }
.lk-forge-layer .lk-forge-rows { max-height: none; min-height: 0; }
.lk-forge-layer .lk-forge-stage { min-height: 0; overflow-y: auto; scrollbar-width: thin; }
.lk-forge-layer .lk-emblem .lk-ic { width: 22px; height: 22px; color: var(--lk-gilt-300); }
.lk-forge-layer .lk-emoji { font-size: 30px; line-height: 1; }
.lk-mat-tip { z-index: 2050; }
/* Sin saltos en la cabecera cuando cambian las cantidades */
.lk-forge-layer .lk-forge-wallet .lk-res-pill { min-width: 76px; } /* oro · SLP · AXS · bAXS (Hito 110) */
@media (max-width: 1180px) { .lk-forge-layer .lk-forge-wallet .lk-res-pill { min-width: 0; } }
.lk-forge-layer .lk-forge-wallet { flex-wrap: nowrap; }
@media (max-width: 980px) { .lk-forge-layer > .lk-forge { height: auto; } .lk-forge-layer .lk-forge-body { overflow-y: auto; } }
/* Hito 50: la zona del yunque nunca se monta sobre el panel del botón y el temporizador. Con la ventana
   estrecha (lista arriba, yunque abajo) la lista se queda en 2 filas, la bolsa en una fila con desplazamiento
   lateral y el yunque ocupa lo que necesita; si aun así no cabe, se desplaza el cuerpo de la Forja. */
.lk-forge-layer .lk-forge-stage { grid-template-rows: minmax(250px, 1fr) auto; }
@media (max-width: 980px) {
  .lk-forge-layer .lk-forge-stage { overflow: visible; min-height: auto; grid-template-rows: auto auto; padding: 12px 18px; gap: 10px; }
  .lk-forge-layer .lk-anvil { min-height: 0; }
  .lk-forge-layer .lk-forge-list { min-height: auto; grid-template-rows: auto auto; }
  .lk-forge-layer .lk-forge-rows { max-height: 128px; }
  .lk-forge-layer .lk-forge-pouch { padding: 8px 22px 10px; gap: 6px; }
  .lk-forge-layer .lk-forge-mats { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 52px; overflow-x: auto; overflow-y: hidden; padding-bottom: 10px; }
}
/* Forja · Evolucionar: el SLP va en el botón, la comisión en bAXS justo debajo y la rapidez solo al acelerar una pieza en curso */
.lk-forge-go .lk-b-ico .lk-cur-ico { width: 22px; height: 22px; }
.lk-forge-fee { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: .74rem; font-weight: 700; color: #C8CFDF; }
.lk-forge-fee img { width: 16px; height: 16px; object-fit: contain; }
.lk-forge-fee b { color: #F0B8F6; font-weight: 900; }
.lk-forge-fee.lk-is-short, .lk-forge-fee.lk-is-short b { color: #FF9C95; }
.lk-forge-speedup .lk-speed__opts button { transition: box-shadow .25s var(--lk-ease), transform .12s var(--lk-ease); }
.lk-forge-speedup .lk-speed__opts button:hover:not(:disabled) { box-shadow: inset 0 0 0 1.5px var(--lk-gilt-300), 0 0 0 3px rgba(239, 232, 218, .14); }
.lk-forge-speedup .lk-speed__opts button:active:not(:disabled) { transform: scale(.97); }
.lk-forge-speedup .lk-speed__opts button:disabled { opacity: .45; cursor: not-allowed; }
.lk-forge-layer .lk-forge-cost.lk-is-job > div:first-child { display: grid; gap: 4px; }

/* ══ Tienda (ShopPanel.js · pantalla 24 «Tienda · Comprar y vender») ═══════════ */
.lk-shop-layer > .lk-shop { width: min(1080px, 100%); height: min(720px, calc(100vh - 40px)); }
.lk-shop-layer .lk-shop-body { flex: 1; min-height: 0; }
.lk-shop-layer .lk-shop-main { min-height: 0; }
.lk-shop-layer .lk-shop-grid { max-height: none; min-height: 0; }
.lk-shop-layer .lk-shop-page { min-height: 0; }
.lk-shop-layer .lk-emoji { font-size: 30px; line-height: 1; }
.lk-shop-layer .lk-res-pill { min-width: 92px; }
@media (max-width: 980px) { .lk-shop-layer > .lk-shop { height: auto; } .lk-shop-layer .lk-shop-body { overflow-y: auto; } }
#ui-overlay .lk-btn-end-turn .lk-et-sep { display: none; }
#ui-overlay .lk-btn-end-turn.lk-has-timer .lk-et-sep { display: inline; }
/* Monedas en la cabecera de la Mochila y la Tienda (oro · SLP · AXS · bAXS), igual que en la Forja; ancho fijo: sin saltos */
.lk-wallet { display: flex; gap: 6px; flex-wrap: nowrap; }
.lk-wallet .lk-res-pill { min-width: 76px; }
.lk-shop-layer .lk-wallet .lk-res-pill { min-width: 76px; }
@media (max-width: 1180px) { .lk-wallet .lk-res-pill, .lk-shop-layer .lk-wallet .lk-res-pill { min-width: 0; } }
/* Hito 110: sello «NFT» de lo que se comercia en AXS (equipo T1–3, runas y charms) en el Mercado */
/* Sello NFT (logo de Ronin) del equipo T1–3, runas y charms del Mercado: abajo a la izquierda del dibujo, como en Runas */
/* (img.lk-nft-seal y !important: las reglas de las imágenes de casilla, p. ej. `.lk-it .lk-art img` a 46 px, no deben agrandarlo) */
.lk-it img.lk-nft-seal, .lk-fcard__art img.lk-nft-seal { position: absolute !important; left: 4px; bottom: 4px; z-index: 3; width: 18px !important; height: 18px !important; object-fit: contain; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .55)); pointer-events: auto; }
.lk-eq-slot img.lk-nft-seal--slot { position: absolute !important; right: 2px; bottom: 2px; z-index: 3; width: 15px !important; height: 15px !important; object-fit: contain; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .55)); pointer-events: none; }
.lk-nft-chip img.lk-nft-seal--chip { position: static !important; width: 13px !important; height: 13px !important; margin-right: 4px; filter: none; }
.lk-nft-chip { display: inline-flex; align-items: center; margin-left: 6px; padding: 2px 8px 2px 6px; border-radius: var(--lk-r-pill); font-size: .66rem; font-weight: 900; letter-spacing: .08em; color: var(--lk-gilt-300); background: #121829; box-shadow: inset 0 0 0 1px rgba(238, 211, 154, .6); vertical-align: middle; }
@media (max-width: 900px) { .lk-wallet .lk-res-pill.lk-cur { display: none; } }

/* ── Recolección (GatheringHUD): barra de progreso donde sale «E · …» y tarjeta con el botín ── */
.lk-gather { position: fixed; left: 50%; bottom: 104px; z-index: 120; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; pointer-events: none; }
body.state-combat .lk-gather { display: none; }
.lk-gather__bar { --g: #D3AE6C; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; row-gap: 6px; align-items: center; min-width: 220px; padding: 8px 14px 9px 10px; border-radius: 14px; background: rgba(18, 24, 41, .9); box-shadow: inset 0 0 0 1px rgba(211, 174, 108, .35), 0 8px 20px rgba(0, 0, 0, .35); color: var(--lk-ivory-50); font-family: var(--lk-font-ui); }
.lk-gather__bar[hidden] { display: none; }
.lk-gather__ico { grid-row: 1 / 3; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #121829; background: var(--g); box-shadow: 0 0 0 2px rgba(11, 15, 28, .8); }
.lk-gather__ico svg { width: 20px; height: 20px; }
.lk-gather__txt { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.lk-gather__txt b { font: 800 .86rem/1.1 var(--lk-font-ui); }
.lk-gather__txt small { font: 700 .66rem/1 var(--lk-font-ui); color: #8D97AF; white-space: nowrap; }
.lk-gather__track { height: 6px; border-radius: 99px; overflow: hidden; background: rgba(255, 255, 255, .1); }
.lk-gather__track > i { display: block; height: 100%; border-radius: inherit; background: var(--g); transform-origin: left center; transform: scaleX(0); }
.lk-gather__loot { order: -1; opacity: 0; transform: translateY(8px) scale(.96); transition: opacity .25s var(--lk-ease, ease), transform .35s var(--lk-ease, ease); }
.lk-gather__loot.lk-is-on { opacity: 1; transform: none; }
.lk-gather__card { --g: #D3AE6C; min-width: 200px; padding: 8px 14px 10px; border-radius: 14px; background: rgba(18, 24, 41, .92); box-shadow: inset 0 0 0 1px var(--g), 0 10px 24px rgba(0, 0, 0, .4); font-family: var(--lk-font-ui); color: var(--lk-ivory-50); }
.lk-gather__card > small { display: block; margin-bottom: 4px; font: 900 .6rem/1.2 var(--lk-font-ui); letter-spacing: .1em; text-transform: uppercase; color: #8D97AF; }
.lk-gather__row { display: flex; align-items: center; gap: 8px; padding: 2px 0; font: 700 .86rem/1.2 var(--lk-font-ui); }
.lk-gather__row b { font-weight: 900; color: #B9F5C3; min-width: 24px; }
.lk-gather__mi { width: 22px; height: 22px; display: grid; place-items: center; color: var(--g); }
.lk-gather__mi svg { width: 18px; height: 18px; }
.lk-gather__row.lk-is-rare b, .lk-gather__row.lk-is-rare .lk-gather__mi { color: var(--lk-gilt-300, #EED39A); }
.lk-gather__row em { margin-left: auto; padding: 1px 7px; border-radius: 99px; font: 900 .58rem/1.4 var(--lk-font-ui); font-style: normal; letter-spacing: .08em; text-transform: uppercase; color: #3D2C0E; background: var(--lk-gilt-300, #EED39A); }
@media (prefers-reduced-motion: reduce) { .lk-gather__loot { transition: none; } }
/* Hito 87: reto de pesca */
.lk-gather__bar.lk-is-fish .lk-gather__track { display: none; }
/* Hito 114: panel único de pesca, tamaño fijo en todos los estados (cabecera · corcho y texto · barra o resultado · teclas) */
.lk-fish { --fc: var(--lk-class-aquatic); order: -1; pointer-events: auto; cursor: pointer; touch-action: manipulation; box-sizing: border-box; width: min(21rem, 92vw); display: grid; grid-template-rows: auto 3.6rem 2.75rem auto; gap: .45rem; padding: .55rem .9rem .6rem; border-radius: var(--lk-r-md); background: linear-gradient(180deg, color-mix(in srgb, var(--lk-night-800) 96%, transparent), color-mix(in srgb, var(--lk-night-900) 96%, transparent)); box-shadow: inset 0 0 0 1px var(--lk-gilt-line), var(--lk-shadow-2); color: var(--lk-ivory-50); font-family: var(--lk-font-ui); user-select: none; transition: box-shadow .25s var(--lk-ease); }
.lk-fish[hidden] { display: none; }
.lk-fish__head { display: flex; align-items: center; gap: .5rem; min-width: 0; padding-bottom: .4rem; border-bottom: 1px solid color-mix(in srgb, var(--lk-gilt-300) 18%, transparent); }
.lk-fish__ico { flex: none; width: 1.45rem; height: 1.45rem; display: grid; place-items: center; border-radius: 50%; color: var(--lk-night-900); background: var(--fc); }
.lk-fish__ico svg { width: .95rem; height: .95rem; }
.lk-fish__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 800 .82rem/1.2 var(--lk-font-ui); }
.lk-fish__head small, .lk-fish__keys { font: 700 .66rem/1.2 var(--lk-font-ui); color: color-mix(in srgb, var(--lk-ivory-200) 62%, transparent); white-space: nowrap; }
.lk-fish__keys { text-align: center; }
/* Corcho: medio rojo, medio marfil, sobre el agua (la franja inferior lo «hunde» al bajar) */
.lk-fish__stage { display: grid; grid-template-columns: 3.4rem minmax(0, 1fr); align-items: center; gap: .75rem; min-width: 0; }
.lk-fish__bob { position: relative; width: 3.4rem; height: 3.4rem; border-radius: 50%; overflow: hidden; background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--fc) 22%, var(--lk-night-800)), var(--lk-night-900) 75%); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fc) 40%, transparent); }
.lk-fish__bob::after { content: ""; position: absolute; left: 0; right: 0; top: 56%; bottom: 0; z-index: 2; background: linear-gradient(180deg, color-mix(in srgb, var(--fc) 55%, transparent), color-mix(in srgb, var(--fc) 25%, var(--lk-night-900))); box-shadow: 0 -1px 0 color-mix(in srgb, var(--lk-lumen-100) 55%, transparent); }
.lk-fish__float { position: absolute; z-index: 1; left: 50%; top: 50%; width: 1.05rem; height: 1.05rem; margin: -.7rem 0 0 -.525rem; border-radius: 50%; background: linear-gradient(180deg, var(--lk-danger-crimson) 0 50%, var(--lk-ivory-50) 50%); box-shadow: 0 0 0 1.5px var(--lk-night-900); transition: transform .25s var(--lk-ease), opacity .25s; }
.lk-fish__ring { position: absolute; z-index: 3; left: 50%; top: 56%; width: 2.4rem; height: .7rem; margin: -.35rem 0 0 -1.2rem; border-radius: 50%; border: 1.5px solid color-mix(in srgb, var(--lk-lumen-100) 70%, transparent); opacity: 0; }
.lk-fish__catch { position: absolute; z-index: 4; inset: 0; display: grid; place-items: center; color: var(--lk-ivory-50); opacity: 0; transform: scale(.5); transition: transform .35s var(--lk-ease), opacity .2s; }
.lk-fish__catch svg { width: 2rem; height: 2rem; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .45)); }
.lk-fish__txt { min-width: 0; font: 900 1rem/1.2 var(--lk-font-ui); letter-spacing: .01em; transition: color .2s; }
/* Zona inferior: la barra (recoger) y la nota (resultado) ocupan la misma celda: nada se mueve al cambiar */
.lk-fish__low { display: grid; min-width: 0; }
.lk-fish__reel, .lk-fish__note { grid-area: 1 / 1; min-width: 0; }
.lk-fish__reel { visibility: hidden; }
.lk-fish[data-state="reel"] .lk-fish__reel { visibility: visible; }
.lk-fish[data-state="reel"] .lk-fish__note { visibility: hidden; }
.lk-fish__note { display: flex; flex-direction: column; justify-content: center; gap: 2px; font: 700 .78rem/1.3 var(--lk-font-ui); color: var(--lk-ivory-200); }
.lk-fish__note .lk-gather__row { padding: 0; }
.lk-fish[data-state="wait"] .lk-fish__note { font-weight: 600; color: color-mix(in srgb, var(--lk-ivory-200) 75%, transparent); }
.lk-fish__track { position: relative; display: block; height: .8rem; margin-top: .3rem; border-radius: var(--lk-r-pill); background: color-mix(in srgb, var(--lk-ivory-50) 10%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--lk-ivory-50) 8%, transparent); }
.lk-fish__zone { position: absolute; top: 0; bottom: 0; border-radius: var(--lk-r-pill); background: color-mix(in srgb, var(--lk-hp-vital-green) 45%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--lk-hp-vital-green) 85%, transparent); }
.lk-fish__zone b { position: absolute; top: 0; bottom: 0; left: 50%; width: var(--p, 28%); transform: translateX(-50%); border-radius: var(--lk-r-pill); background: var(--lk-gilt-300); box-shadow: 0 0 8px color-mix(in srgb, var(--lk-gilt-300) 80%, transparent); }
.lk-fish__rail { position: absolute; top: -.3rem; bottom: -.3rem; left: -3px; right: -3px; overflow: hidden; pointer-events: none; }
.lk-fish__slide { position: absolute; top: 0; bottom: 0; left: 3px; width: calc(100% - 6px); will-change: transform; }
.lk-fish__mark { position: absolute; top: 0; bottom: 0; left: -2px; width: 4px; border-radius: 2px; background: var(--lk-ivory-50); box-shadow: 0 0 0 1px var(--lk-night-900), 0 0 8px color-mix(in srgb, var(--lk-ivory-50) 80%, transparent); }
.lk-fish__meta { display: flex; align-items: center; gap: .6rem; margin-top: .5rem; }
.lk-fish__hooks { display: flex; gap: 3px; }
.lk-fish__hooks i { display: grid; width: 1.1rem; height: 1.1rem; color: var(--lk-gilt-300); transition: opacity .2s; }
.lk-fish__hooks i.lk-is-spent { opacity: .22; }
.lk-fish__hooks svg { width: 100%; height: 100%; }
.lk-fish__time { flex: 1; height: 3px; border-radius: var(--lk-r-pill); overflow: hidden; background: color-mix(in srgb, var(--lk-ivory-50) 10%, transparent); }
.lk-fish__time i { display: block; height: 100%; background: var(--fc); transform-origin: left center; }
.lk-fish.lk-is-timing .lk-fish__time i { animation: lk-fish-time var(--t, 7s) linear forwards; }
/* Estados */
.lk-fish[data-state="cast"] .lk-fish__float { transform: translateY(-.35rem); opacity: .65; }
.lk-fish[data-state="wait"] .lk-fish__float { animation: lk-fish-bob 2.4s ease-in-out infinite; }
.lk-fish[data-state="wait"] .lk-fish__ring { animation: lk-fish-ring 2.6s ease-out infinite; }
.lk-fish[data-state="wait"] .lk-fish__ring + .lk-fish__ring { animation-delay: 1.3s; }
.lk-fish.lk-is-nib .lk-fish__float { animation: lk-fish-nib .45s ease-out; }
.lk-fish[data-state="bite"] { box-shadow: inset 0 0 0 2px var(--lk-gilt-300), 0 0 22px color-mix(in srgb, var(--lk-gilt-300) 45%, transparent), var(--lk-shadow-2); }
.lk-fish[data-state="bite"] .lk-fish__txt { color: var(--lk-gilt-300); font-size: 1.15rem; }
.lk-fish[data-state="bite"] .lk-fish__float { transform: translateY(.55rem); animation: lk-fish-tug .16s ease-in-out infinite alternate; }
.lk-fish[data-state="bite"] .lk-fish__ring { animation: lk-fish-ring .7s ease-out infinite; }
.lk-fish[data-state="bite"] .lk-fish__ring + .lk-fish__ring { animation-delay: .35s; }
.lk-fish[data-state="reel"] .lk-fish__float { transform: translateY(.35rem); animation: lk-fish-tug .3s ease-in-out infinite alternate; }
.lk-fish.lk-is-miss .lk-fish__txt { color: color-mix(in srgb, var(--lk-danger-crimson) 45%, var(--lk-ivory-50)); }
.lk-fish.lk-is-miss .lk-fish__track { animation: lk-fish-shake .3s ease-in-out; }
.lk-fish[data-state="caught"] { box-shadow: inset 0 0 0 1px var(--lk-hp-vital-green), var(--lk-shadow-2); }
.lk-fish[data-state="caught"] .lk-fish__txt { color: color-mix(in srgb, var(--lk-hp-vital-green) 55%, var(--lk-ivory-50)); }
.lk-fish[data-state="perfect"] { box-shadow: inset 0 0 0 2px var(--lk-gilt-300), 0 0 26px color-mix(in srgb, var(--lk-gilt-300) 55%, transparent), var(--lk-shadow-2); }
.lk-fish[data-state="perfect"] .lk-fish__txt { color: var(--lk-gilt-300); }
.lk-fish[data-state="perfect"] .lk-fish__bob { background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--lk-gilt-300) 45%, var(--lk-night-800)), var(--lk-night-900) 78%); }
.lk-fish[data-state="caught"] .lk-fish__float, .lk-fish[data-state="perfect"] .lk-fish__float { opacity: 0; transform: translateY(-.8rem); }
.lk-fish[data-state="caught"] .lk-fish__catch, .lk-fish[data-state="perfect"] .lk-fish__catch { opacity: 1; transform: none; }
.lk-fish[data-state="lost"] { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--lk-danger-crimson) 60%, transparent), var(--lk-shadow-2); }
.lk-fish[data-state="lost"] .lk-fish__txt { color: color-mix(in srgb, var(--lk-danger-crimson) 30%, var(--lk-ivory-50)); font-size: .92rem; }
.lk-fish[data-state="lost"] .lk-fish__float { opacity: .45; }
.lk-fish[data-state="lost"] .lk-fish__keys, .lk-fish[data-state="caught"] .lk-fish__keys, .lk-fish[data-state="perfect"] .lk-fish__keys { visibility: hidden; }
@keyframes lk-fish-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(.14rem); } }
@keyframes lk-fish-nib { 0% { transform: translateY(0); } 35% { transform: translateY(.4rem); } 100% { transform: translateY(0); } }
@keyframes lk-fish-tug { from { translate: -1.5px 0; } to { translate: 1.5px 0; } }
@keyframes lk-fish-ring { from { transform: scale(.35); opacity: .9; } to { transform: scale(1.35); opacity: 0; } }
@keyframes lk-fish-shake { 0%, 100% { transform: none; } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
@keyframes lk-fish-time { from { transform: scaleX(1); } to { transform: scaleX(0); } }
/* Sin movimiento: el corcho y las ondas quedan quietos (cada estado se sigue leyendo por su posición y color); el hilo del tiempo es información y se mantiene */
@media (prefers-reduced-motion: reduce) {
  .lk-fish__float, .lk-fish__ring, .lk-fish.lk-is-miss .lk-fish__track { animation: none !important; }
  .lk-fish__float, .lk-fish__catch, .lk-fish { transition: none; }
}
#world-map-modal .lk-wmap__gather .landmark-icon svg { width: 20px; height: 20px; }
/* Materiales en la mochila (bolsa de la Forja) */
.lk-bag .lk-it .lk-mat-art, .lk-tt-art .lk-mat-art { display: grid; place-items: center; width: 100%; height: 100%; }
.lk-bag .lk-it .lk-mat-art svg { width: 30px; height: 30px; }
.lk-tt-art .lk-mat-art svg { width: 26px; height: 26px; }

/* ══ Forja · materiales: casillas compactas (dibujo + «tienes/necesitas» en la esquina), bolsa amplia y ficha completa ══ */
.lk-forge-need { display: flex; flex-wrap: wrap; gap: 10px; padding: 2px 4px 6px; }
.lk-fneed { position: relative; flex: none; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 12px; background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--r) 70%, #fff 10%), var(--r) 75%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22), 0 4px 10px rgba(0, 0, 0, .3); cursor: help; transition: transform .2s var(--lk-ease), box-shadow .25s var(--lk-ease); }
.lk-fneed > img, .lk-fneed > svg { width: 40px !important; height: 40px !important; color: #fff; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .35)); }
.lk-fneed em { position: absolute; right: -6px; bottom: -6px; min-width: 30px; padding: 2px 6px; border-radius: 9px; font: 900 .66rem/1.2 var(--lk-font-ui); font-style: normal; text-align: center; font-variant-numeric: tabular-nums; color: #0E2A16; background: #8CF09B; box-shadow: 0 0 0 2px #121829; }
.lk-fneed.lk-is-short { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22), 0 0 0 2px var(--lk-danger-crimson), 0 4px 10px rgba(0, 0, 0, .3); }
.lk-fneed.lk-is-short > img, .lk-fneed.lk-is-short > svg { opacity: .55; }
.lk-fneed.lk-is-short em { color: #fff; background: var(--lk-danger-crimson); }
.lk-fneed:hover, .lk-fneed:focus-visible { outline: none; transform: translateY(-2px); }
.lk-forge-cost .lk-cost-list + .lk-forge-need { margin-top: 10px; }

/* Bolsa: título arriba y casillas a todo el ancho (sin barra de desplazamiento) */
.lk-forge-layer .lk-forge-pouch { display: grid; gap: 10px; padding: 12px 22px 16px; }
.lk-forge-pouch__head { display: flex; align-items: baseline; gap: 12px; }
.lk-forge-pouch__head small { font-size: .72rem; font-weight: 800; color: #8D97AF; font-variant-numeric: tabular-nums; }
.lk-forge-pouch__hint { margin-left: auto; font-size: .7rem; font-weight: 700; color: #6E7894; }
.lk-forge-layer .lk-forge-mats { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 10px 8px; overflow: visible; padding: 4px 6px 6px 2px; }
.lk-forge-layer .lk-fm { width: 52px; height: 52px; border-radius: 12px; justify-self: start; cursor: help; background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--r) 70%, #fff 10%), var(--r) 75%); transition: transform .2s var(--lk-ease), box-shadow .25s var(--lk-ease), filter .2s; }
.lk-forge-layer .lk-fm > img, .lk-forge-layer .lk-fm > svg { width: 38px !important; height: 38px !important; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .35)); }
.lk-forge-layer .lk-fm em { right: -6px; bottom: -6px; min-width: 22px; height: 18px; font-size: .64rem; box-shadow: 0 0 0 2px #121829; }
.lk-forge-layer .lk-fm.lk-is-zero { filter: grayscale(1) brightness(.5); }
.lk-forge-layer .lk-fm.lk-is-zero em { opacity: .7; }
.lk-forge-layer .lk-fm:hover, .lk-forge-layer .lk-fm:focus-visible { outline: none; transform: translateY(-2px); filter: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25), 0 0 0 2px var(--lk-ivory-100); }
.lk-forge-layer .lk-fm.lk-is-need { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2), 0 0 0 2px var(--lk-lumen-300); }

/* Ficha del material (papel marfil del sistema) */
.lk-mat-tip { width: 270px; }
.lk-mat-tt { width: 270px; }
.lk-mat-tt header { align-items: center; }
.lk-mat-tt__art { flex: none; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 11px; background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--r) 70%, #fff 10%), var(--r) 75%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.lk-mat-tt__art > img, .lk-mat-tt__art > svg { width: 34px !important; height: 34px !important; color: #fff; }
.lk-mat-tt header .lk-rar-chip { margin-top: 4px; }
.lk-mat-tt .lk-tt-body { display: grid; gap: 8px; }
.lk-mat-tt__desc { margin: 0; font-size: .76rem; line-height: 1.4; }
.lk-mat-tt__row { display: flex; gap: 8px; align-items: flex-start; font-size: .72rem; line-height: 1.35; color: var(--lk-ink-700, #3A4157); }
.lk-mat-tt__row .lk-ai { flex: none; width: 18px; height: 18px; margin-top: 1px; }
.lk-mat-tt__row b { display: block; font: 900 .6rem var(--lk-font-ui); letter-spacing: .12em; text-transform: uppercase; color: #9D7A42; }
.lk-mat-tt__have { display: flex; justify-content: space-between; align-items: baseline; padding-top: 8px; border-top: 1px dashed rgba(157, 122, 66, .4); font-size: .72rem; font-weight: 800; color: var(--lk-ink-600); }
.lk-mat-tt__have b { font: 400 1.1rem var(--lk-font-display); color: var(--lk-ink-900); font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { .lk-fneed, .lk-forge-layer .lk-fm { transition: none; } .lk-fneed:hover, .lk-forge-layer .lk-fm:hover { transform: none; } }
/* Materiales del coste centrados en su columna (el oro y el SLP ya van en el botón) */
.lk-forge-cost .lk-forge-matbox { align-self: stretch; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.lk-forge-cost .lk-forge-matbox .lk-label { margin: 0 !important; }
.lk-forge-cost .lk-forge-matbox .lk-forge-need { justify-content: center; padding: 2px 6px 8px; }
/* Recomprar: la fila nunca ensancha la columna (antes empujaba la cuadrícula bajo la ficha) */
.lk-shop-layer .lk-shop-main > * { min-width: 0; }
.lk-shop-layer .lk-shop-buyback { min-width: 0; overflow: hidden; }
.lk-shop-layer .lk-shop-buyback .lk-bb-list { flex: 1; min-width: 0; overflow-x: auto; overflow-y: hidden; padding-bottom: 2px; scroll-snap-type: x proximity; }
.lk-shop-layer .lk-shop-buyback .lk-bb { flex: none; scroll-snap-align: start; }
.lk-shop-layer .lk-shop-buyback .lk-bb .lk-bn { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lk-shop-layer .lk-shop-buyback .lk-bb .lk-bp { display: inline-flex; align-items: center; gap: 4px; padding-left: 6px; border-left: 1px solid rgba(211, 174, 108, .25); font-variant-numeric: tabular-nums; }

/* ══ Creación · «Cargar un Axie por su ID» (StartScreenUI · panel de Mis axies) ═══════════ */
.lk-ax-id { display: grid; gap: 10px; text-align: left; }
.lk-ax-id__form { display: flex; gap: 10px; align-items: stretch; margin: 0; }
.lk-ax-id__field { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; height: 52px; padding: 0 14px; border-radius: var(--lk-r-md); background: rgba(11, 15, 28, .6); box-shadow: inset 0 0 0 1px rgba(211, 174, 108, .35); cursor: text; transition: box-shadow .25s var(--lk-ease); }
.lk-ax-id__field:hover { box-shadow: inset 0 0 0 1px var(--lk-gilt-300); }
.lk-ax-id__field:focus-within { box-shadow: inset 0 0 0 1px var(--lk-lumen-300), 0 0 0 3px rgba(111, 164, 242, .3); }
.lk-ax-id__field.lk-is-bad { box-shadow: inset 0 0 0 1px var(--lk-danger-crimson), 0 0 0 3px rgba(224, 96, 90, .2); }
.lk-ax-id__hash { font: 400 1.5rem/1 var(--lk-font-display); color: var(--lk-gilt-300); }
.lk-ax-id__field input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; font: 800 1.15rem/1 var(--lk-font-ui); letter-spacing: .04em; font-variant-numeric: tabular-nums; color: var(--lk-ivory-50); }
.lk-ax-id__field input::placeholder { color: #5E6884; font-weight: 700; }
.lk-ax-id__field input:read-only { opacity: .7; }
.lk-ax-id__form .lk-btn { min-height: 52px; width: 156px; flex: none; justify-content: center; } /* ancho fijo: «Buscando…» no mueve el campo */
.lk-ax-id__form .lk-btn:disabled { opacity: .5; cursor: not-allowed; }
.lk-ax-id__help { margin: 0; font-size: .74rem; font-weight: 700; color: #8D97AF; }
.lk-ax-id__help code { font: 700 .72rem var(--lk-font-ui); color: #AEB6CB; background: rgba(11, 15, 28, .5); padding: 1px 6px; border-radius: 6px; }
.lk-ax-id__help code b { color: var(--lk-gilt-300); }
/* Zona de resultado con alto mínimo: los estados no mueven el panel */
.lk-ax-id__out { min-height: 22px; display: flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 800; color: #C8CFDF; }
.lk-ax-id__out.lk-is-err { color: #FF9C95; }
.lk-ax-id__ico { width: 20px; height: 20px; flex: none; display: grid; place-items: center; border-radius: 50%; font: 900 .72rem var(--lk-font-ui); color: #fff; background: var(--lk-danger-crimson); }
.lk-ax-id__spin { width: 16px; height: 16px; flex: none; border-radius: 50%; border: 2px solid rgba(211, 174, 108, .3); border-top-color: var(--lk-gilt-300); animation: lk-ax-spin .8s linear infinite; }
@keyframes lk-ax-spin { to { transform: rotate(360deg); } }
.lk-ax-id__out.lk-is-found { display: block; }
.lk-ax-id__card { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 12px 14px; border-radius: var(--lk-r-md); background: linear-gradient(90deg, color-mix(in srgb, var(--cc) 16%, transparent), rgba(26, 34, 54, .85) 55%); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--cc) 55%, transparent); animation: lk-ax-in .3s var(--lk-ease) both; }
@keyframes lk-ax-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.lk-ax-id__art { width: 96px; height: 76px; display: grid; place-items: center; overflow: visible; } /* sin marco: el Axie solo, como en las cartas */
.lk-ax-id__art img { width: 112px; height: 92px; object-fit: contain; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .45)); }
.lk-ax-id__info { display: grid; gap: 3px; min-width: 0; }
.lk-ax-id__info small { font: 900 .62rem var(--lk-font-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--lk-gilt-300); }
.lk-ax-id__info b { font: 400 1.25rem/1.15 var(--lk-font-display); color: var(--lk-ivory-50); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lk-ax-id__cls { display: inline-flex; align-items: center; gap: 5px; font-size: .74rem; font-weight: 800; color: color-mix(in srgb, var(--cc) 70%, #fff); }
.lk-ax-id__cls img { width: 16px; height: 16px; }
.lk-ax-id__acts { display: grid; gap: 6px; justify-items: center; }
.lk-ax-id__again, .lk-ax-id__back { border: 0; background: none; cursor: pointer; padding: 2px 4px; font: 800 .74rem var(--lk-font-ui); color: #AEB6CB; text-decoration: underline; text-underline-offset: 3px; }
.lk-ax-id__again:hover, .lk-ax-id__back:hover { color: var(--lk-ivory-50); }
.lk-ax-id__back { justify-self: start; text-decoration: none; }
@media (max-width: 560px) { .lk-ax-id__card { grid-template-columns: 72px minmax(0, 1fr); } .lk-ax-id__art { width: 72px; height: 64px; } .lk-ax-id__art img { width: 84px; height: 72px; } .lk-ax-id__acts { grid-column: 1 / -1; justify-items: stretch; } }
@media (prefers-reduced-motion: reduce) { .lk-ax-id__spin { animation-duration: 2.4s; } .lk-ax-id__card { animation: none; } }

/* ══ Tutorial del tablero (TutorialManager · #tutorial-overlay) ═══════════
   Mismo lenguaje que la franja de guía del mundo abierto: vidrio, filo dorado de 1 px y progreso en fases lunares.
   · Presentación y cierre: tarjeta con el Maestro Paladill, conceptos PM/PA y un solo botón dorado (Intro).
   · Pasos de acción: franja compacta sin botón (se avanza haciendo lo que pide); el objetivo lo marca la flecha. */
#tutorial-overlay.lk-ctut { position: fixed; top: 88px; left: 50%; transform: translateX(-50%); z-index: 60; width: min(640px, calc(100vw - 32px)); pointer-events: none; }
#tutorial-overlay.lk-ctut.hidden { display: none !important; }
.lk-ctut__card { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 14px 18px 14px 14px; border-radius: var(--lk-r-lg); pointer-events: auto;
  background: linear-gradient(180deg, rgba(30, 39, 64, .94), rgba(18, 24, 41, .94)); backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px rgba(211, 174, 108, .45), 0 14px 34px rgba(0, 0, 0, .5); }
.lk-ctut__card::before, .lk-ctut__card::after { content: ""; position: absolute; left: 18%; right: 18%; height: 1px; background: linear-gradient(90deg, transparent, rgba(238, 211, 154, .8), transparent); }
.lk-ctut__card::before { top: 0; } .lk-ctut__card::after { bottom: 0; }
.lk-ctut__coach { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; flex: none; background: radial-gradient(circle at 50% 30%, #3A2A1A, #171B2A); box-shadow: 0 0 0 2px var(--lk-gilt-300), 0 0 0 4px rgba(11, 15, 28, .9), 0 6px 14px rgba(0, 0, 0, .45); }
.lk-ctut__coach img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.lk-ctut__body { min-width: 0; display: grid; gap: 4px; }
.lk-ctut__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lk-ctut__phases { display: inline-flex; gap: 5px; }
.lk-ctut__phases:empty { display: none; }
.lk-ctut__phases i { width: 8px; height: 8px; transform: rotate(45deg); box-shadow: inset 0 0 0 1px var(--lk-lumen-300); }
.lk-ctut__phases i.lk-is-full { background: var(--lk-lumen-300); }
.lk-ctut__phases i.lk-is-half { background: linear-gradient(135deg, var(--lk-gilt-300) 50%, transparent 50%); box-shadow: inset 0 0 0 1px var(--lk-gilt-300), 0 0 8px rgba(238, 211, 154, .7); }
.lk-ctut__badge { font: 800 .64rem/1 var(--lk-font-ui); letter-spacing: .18em; text-transform: uppercase; color: var(--lk-gilt-500); }
.lk-ctut__title { margin: 0; font: 400 1.18rem/1.2 var(--lk-font-display); color: var(--lk-ivory-50); text-shadow: 0 1px 6px rgba(0, 0, 0, .5); }
.lk-ctut__text { margin: 0; font-size: .82rem; line-height: 1.5; font-weight: 700; color: #C8CFDF; text-wrap: pretty; }
.lk-ctut__text b { color: var(--lk-gilt-300); font-weight: 800; }
.lk-ctut__text kbd { height: 20px; min-width: 22px; margin: 0 2px; vertical-align: 1px; }
.lk-ctut__concepts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.lk-ctut__concepts:empty { display: none; }
.lk-ctut__concept { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 6px; border-radius: var(--lk-r-pill); font-size: .72rem; font-weight: 700; color: #C8CFDF; background: rgba(11, 15, 28, .55); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.lk-ctut__concept i { width: 10px; height: 10px; transform: rotate(45deg); border-radius: 2px; }
.lk-ctut__concept--pm i { background: var(--lk-pm-wind-teal); box-shadow: 0 0 6px var(--lk-pm-wind-teal); }
.lk-ctut__concept--pa i { background: var(--lk-pa-mana-blue); box-shadow: 0 0 6px var(--lk-pa-mana-blue); }
.lk-ctut__concept b { font: 900 .7rem var(--lk-font-ui); color: var(--lk-ivory-50); }
.lk-ctut__go { flex-direction: column; align-items: center; text-align: center; gap: 2px; padding-inline: 20px !important; min-width: 156px; min-height: 54px; justify-content: center; }
.lk-ctut__go small { font: 800 .56rem var(--lk-font-ui); letter-spacing: .2em; text-transform: uppercase; opacity: .65; }
.lk-ctut__go.hidden { display: none !important; }
/* Pasos de acción: franja compacta sin retrato ni botón */
.lk-ctut--hint .lk-ctut__card { grid-template-columns: minmax(0, 1fr); padding: 10px 22px 12px; text-align: center; border-radius: var(--lk-r-md); }
.lk-ctut--hint .lk-ctut__coach { display: none; }
.lk-ctut--hint .lk-ctut__head { justify-content: center; }
.lk-ctut--hint .lk-ctut__title { font-size: 1.06rem; }
/* Cierre */
.lk-ctut--done .lk-ctut__badge { color: #8CF09B; }
.lk-ctut--done .lk-ctut__phases i { background: #8CF09B; box-shadow: inset 0 0 0 1px #8CF09B; }
.lk-ctut--in .lk-ctut__card { animation: lkCtutIn .32s var(--lk-ease) both; }
@keyframes lkCtutIn { from { opacity: 0; translate: 0 -8px; } to { opacity: 1; translate: 0 0; } }
@media (max-width: 640px) { .lk-ctut__card { grid-template-columns: auto minmax(0, 1fr); } .lk-ctut__go { grid-column: 1 / -1; width: 100%; } }
@media (prefers-reduced-motion: reduce) { .lk-ctut--in .lk-ctut__card { animation: none; } }

/* ══ Reglas y controles del combate (#help-modal · botón «?» del HUD) ═══════════ */
.lk-rules-layer { z-index: 2200; }
.lk-rules-layer.hidden { display: none !important; }
.lk-rules-layer > .lk-rules { width: min(860px, 100%); max-height: calc(100vh - 40px); }
.lk-rules__body { flex: 1; min-height: 0; overflow-y: auto; display: grid; gap: 18px; padding: 18px 22px; scrollbar-width: thin; scrollbar-color: rgba(211, 174, 108, .35) transparent; }
.lk-rules__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.lk-rules__card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; padding: 14px; border-radius: var(--lk-r-md); background: rgba(11, 15, 28, .5); box-shadow: inset 0 0 0 1px rgba(211, 174, 108, .16); }
.lk-rules__ico { width: 38px; height: 38px; display: grid; place-items: center; transform: rotate(45deg); border-radius: 8px; background: radial-gradient(circle at 50% 35%, #2C3A62, #141B2E); box-shadow: inset 0 0 0 1px rgba(211, 174, 108, .5); margin: 6px 4px 0; }
.lk-rules__ico .lk-ai { width: 22px; height: 22px; transform: rotate(-45deg); }
.lk-rules__card h4 { margin: 0 0 4px; font: 400 1.02rem/1.25 var(--lk-font-display); color: var(--lk-ivory-50); }
.lk-rules__card p { margin: 0; font-size: .78rem; line-height: 1.5; font-weight: 600; color: #C8CFDF; text-wrap: pretty; }
.lk-rules__card b { color: var(--lk-gilt-300); font-weight: 800; }
.lk-rules__card b.lk-pa { color: var(--lk-pa-mana-blue); }
.lk-rules__card b.lk-pm { color: var(--lk-pm-wind-teal); }
/* Triángulo de clases: tres grupos con sus iconos y la flecha de ventaja */
.lk-rules__tri { display: grid; gap: 10px; padding: 14px; border-radius: var(--lk-r-md); background: rgba(11, 15, 28, .35); box-shadow: inset 0 0 0 1px rgba(211, 174, 108, .16); }
.lk-rules__cycle { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.lk-rules__group { display: flex; gap: 4px; padding: 6px; border-radius: var(--lk-r-pill); background: rgba(26, 34, 54, .9); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); }
.lk-rules__cls { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px 3px 4px; border-radius: var(--lk-r-pill); font-size: .72rem; font-weight: 800; color: color-mix(in srgb, var(--c) 65%, #fff); }
.lk-rules__cls img { width: 18px; height: 18px; }
.lk-rules__beats { font: 400 1.6rem/1 var(--lk-font-display); color: var(--lk-gilt-300); }
.lk-rules__loop { font-size: 1.3rem; }
.lk-rules__note { margin: 0; text-align: center; font-size: .76rem; font-weight: 700; color: #AEB6CB; }
.lk-rules__note .lk-up { color: #8CF09B; } .lk-rules__note .lk-down { color: #FF9C95; }
/* Controles: tecla a la izquierda, acción a la derecha */
.lk-rules__controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.lk-rules__controls ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 2px; }
.lk-rules__controls li { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 10px; align-items: center; padding: 6px 4px; border-bottom: 1px solid rgba(211, 174, 108, .1); font-size: .76rem; font-weight: 700; color: #C8CFDF; }
.lk-rules__controls li:last-child { border-bottom: 0; }
.lk-rules__keys { display: flex; flex-wrap: wrap; align-items: center; gap: 3px; font-size: .66rem; color: #8D97AF; }
.lk-rules__keys kbd { min-width: 22px; height: 22px; padding: 0 6px; }
.lk-rules__foot { display: flex; justify-content: flex-end; padding: 12px 22px 16px; border-top: 1px solid rgba(211, 174, 108, .14); }
.lk-rules__foot .lk-btn { min-width: 170px; justify-content: center; }
@media (max-width: 760px) { .lk-rules__grid, .lk-rules__controls { grid-template-columns: minmax(0, 1fr); } .lk-rules__controls li { grid-template-columns: 112px minmax(0, 1fr); } }
/* Con las reglas abiertas, el cartel «Turno de…» (z-index 10000) no se pinta encima */
body:has(#help-modal:not(.hidden)) #turn-banner { visibility: hidden; }

/* Menú de opciones dentro del combate (SettingsModal · .lk-in-combat) */
.lk-pause__cnote { display: none; margin: 0; padding: 10px 12px; border-radius: var(--lk-r-sm); font-size: .72rem; line-height: 1.45; font-weight: 700; color: #C8CFDF; background: rgba(11, 15, 28, .5); box-shadow: inset 0 0 0 1px rgba(211, 174, 108, .2); }
.lk-pause__cnote b { display: block; margin-bottom: 2px; font: 900 .6rem var(--lk-font-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--lk-gilt-300); }
.lk-in-combat .lk-pause__cnote { display: block; }
.lk-in-combat [data-act="save"], .lk-in-combat [data-act="exit"], .lk-in-combat [data-ref="saveChip"] { display: none !important; }
#ui-overlay .lk-cb-tools #btn-mute[hidden] { display: none !important; }

/* Creador · opciones con imagen de Ema / Kai (21-oct): peinado y atuendo (render del modelo), ojos y boca (atlas de la cara) */
.lk-opt.lk-opt--img { display: inline-grid; justify-items: center; align-content: start; gap: 4px; padding: 6px 8px 7px; min-width: 78px; }
.lk-opt--img span { line-height: 1.15; }
.lk-opt-img { display: block; object-fit: contain; pointer-events: none; }
.lk-opt-img--look { width: 60px; height: 60px; }
.lk-opt-img--eyes { width: 68px; height: 34px; }
.lk-opt-img--mouth { width: 34px; height: 34px; }

/* Oro con el ícono de moneda (assets/currency/gold.png) en lugar de la bolita dibujada */
img.lk-coin { width: 15px; height: 15px; object-fit: contain; background: none; box-shadow: none; border-radius: 0; vertical-align: -3px; filter: drop-shadow(0 1px 1px rgba(0,0,0,.35)); }
.lk-btn .lk-b-ico .lk-cur-ico { width: 22px; height: 22px; object-fit: contain; }

/* Hito 80 · iconos de los estados alterados (assets/ui/buff y debuff) */
.lk-st-ico { width: 16px; height: 16px; object-fit: contain; flex: none; vertical-align: -3px; }
#ui-overlay .lk-cb-st .lk-st-ico { width: 15px; height: 15px; }
.lk-cb-ut .lk-cb-ut-st .lk-st-ico { width: 16px; height: 16px; margin-left: -4px; }
.lk-fc-chip .lk-st-ico { width: 14px; height: 14px; vertical-align: -3px; }


/* ============================================================================================================
   Hito 107 · Números de combate (FloatingCombatText) — sistema de diseño «Números de combate»:
   Nunito Sans 900 cursiva, sin contornos gruesos. Blanco = daño que haces · carmesí suave = daño que recibes.
   ============================================================================================================ */
.lk-fct {
  position: absolute; left: 0; top: 0; display: none;
  pointer-events: none; white-space: nowrap; text-align: center;
  will-change: transform, opacity; transform-origin: 50% 60%;
  font-family: var(--lk-font-ui); font-weight: 900; font-style: italic; line-height: 1;
  font-variant-numeric: tabular-nums; letter-spacing: -.01em;
  --lk-fct-taken: #FFB4AE; --lk-fct-heal: #9FF0B0;
}
.lk-fct .lk-fct__row { display: inline-flex; align-items: center; gap: .16em; }
.lk-fct .lk-fct__k {
  display: block; margin: 0 auto .2rem; font: 900 .7rem/1 var(--lk-font-ui); font-style: normal;
  letter-spacing: .16em; text-transform: uppercase; color: var(--lk-ivory-200);
  text-shadow: 0 1px 0 rgba(0, 0, 0, .55), 0 0 8px rgba(0, 0, 0, .5);
}
/* Principal */
.lk-fct-main { font-size: 2rem; color: #FFFFFF; text-shadow: 0 1px 0 rgba(8, 10, 20, .6), 0 2px 0 rgba(0, 0, 0, .35), 0 0 14px rgba(0, 0, 0, .45); }
.lk-fct--taken { color: var(--lk-fct-taken); }
.lk-fct--heal { color: var(--lk-fct-heal); }
.lk-fct--shield { color: #B7F2EC; }
.lk-fct--miss { font-size: 1.3rem; font-style: normal; letter-spacing: .1em; text-transform: uppercase; color: #C8CFDF; }
.lk-fct-main .lk-fct__ico { width: .72em; height: .72em; object-fit: contain; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .7)); }
.lk-fct .lk-fct__adv { font-style: normal; font-size: .42em; align-self: flex-start; margin-top: .1em; color: var(--lk-gilt-300); text-shadow: 0 1px 0 rgba(0, 0, 0, .6), 0 0 8px rgba(238, 211, 154, .6); }
.lk-fct-dis .lk-fct__adv { color: #AEB6CB; text-shadow: 0 1px 0 rgba(0, 0, 0, .6); }
/* Crítico: dorado, etiqueta encima, destello de un fotograma y chispas (una sola vez) */
.lk-fct--crit { font-size: 2.6rem; color: #FFD88A; text-shadow: 0 1px 0 rgba(8, 10, 20, .6), 0 2px 0 rgba(0, 0, 0, .35), 0 0 18px rgba(255, 190, 90, .55); }
.lk-fct--crit .lk-fct__k { color: var(--lk-gilt-100); letter-spacing: .2em; }
.lk-fct--crit .lk-fct__v { animation: lkFctFlash .2s ease-out 1; }
.lk-fct--crit::before, .lk-fct--crit::after { content: ""; position: absolute; left: 50%; top: 62%; pointer-events: none; }
.lk-fct--crit::before { width: 1.9em; height: 1.9em; border-radius: 50%; border: 2px solid rgba(255, 216, 138, .85); animation: lkFctRing .42s cubic-bezier(.22, 1, .36, 1) forwards; }
.lk-fct--crit::after {
  width: 5px; height: 5px; border-radius: 50%;
  box-shadow: 0 -30px 0 #FFE7B0, 21px -21px 0 #FFD88A, 30px 0 0 #FFE7B0, 21px 21px 0 #FFD88A, 0 30px 0 #FFE7B0, -21px 21px 0 #FFD88A, -30px 0 0 #FFE7B0, -21px -21px 0 #FFD88A;
  animation: lkFctSpark .5s cubic-bezier(.22, 1, .36, 1) forwards;
}
@keyframes lkFctFlash { from { color: #FFFFFF; text-shadow: 0 0 6px #FFFFFF, 0 0 24px rgba(255, 230, 170, .95); } }
@keyframes lkFctRing { from { transform: translate(-50%, -50%) scale(.35); opacity: 1; } to { transform: translate(-50%, -50%) scale(1.7); opacity: 0; } }
@keyframes lkFctSpark { from { transform: translate(-50%, -50%) scale(.3); opacity: 1; } to { transform: translate(-50%, -50%) scale(1.55); opacity: 0; } }
/* Etiquetas: píldora de vidrio con el color del recurso o estado */
.lk-fct-tag {
  --c: var(--lk-ivory-100);
  font: 800 .78rem/1 var(--lk-font-ui); font-style: normal; letter-spacing: .06em; text-transform: uppercase; text-align: left;
  color: var(--c); padding: .32rem .62rem .32rem .55rem; border-radius: 999px;
  background: rgba(14, 19, 34, .82); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), inset 3px 0 0 var(--c), 0 4px 12px rgba(0, 0, 0, .35);
}
.lk-fct-tag .lk-fct__ico { width: 1.1rem; height: 1.1rem; margin: -.15rem 0; object-fit: contain; }
.lk-fct--pa { --c: var(--lk-pa-mana-blue); }
.lk-fct--pm { --c: var(--lk-pm-wind-teal); }
.lk-fct--buff { --c: #A8F0B6; }
.lk-fct--debuff { --c: #FFB4AE; }
.lk-fct--gilt { --c: var(--lk-gilt-300); }
.lk-fct--shieldBreak { --c: var(--lk-shield-cyan); }
/* Derribo */
.lk-fct-stamp { font: 900 1rem/1 var(--lk-font-ui); font-style: normal; letter-spacing: .24em; }
.lk-fct-stamp .lk-fct__row {
  padding: .3rem .5rem .3rem .74rem; border-radius: 6px; transform: rotate(-7deg);
  color: #FFE6E2; background: linear-gradient(180deg, rgba(150, 32, 40, .92), rgba(96, 18, 26, .92));
  box-shadow: inset 0 0 0 1px rgba(255, 180, 174, .55), 0 6px 14px rgba(0, 0, 0, .45);
}
/* Total de un ataque en área */
.lk-fct-total {
  font: 900 1rem/1 var(--lk-font-ui); font-style: italic; color: var(--lk-gilt-100);
  padding: .38rem .85rem; border-radius: 999px;
  background: linear-gradient(180deg, rgba(211, 174, 108, .24), rgba(14, 19, 34, .88));
  box-shadow: inset 0 0 0 1px var(--lk-gilt-line), 0 6px 16px rgba(0, 0, 0, .4);
}
/* Título de Ultimate */
.lk-fct-title { font-family: var(--lk-font-display); font-weight: 400; font-style: normal; font-size: 1.7rem; letter-spacing: .04em; color: var(--lk-gilt-100); text-shadow: 0 2px 0 rgba(0, 0, 0, .45), 0 0 18px rgba(238, 211, 154, .55); }
.lk-fct-title .lk-fct__row::before, .lk-fct-title .lk-fct__row::after { content: "✦"; font-size: .55em; color: var(--lk-gilt-300); }
.lk-fct-tag.lk-fct-left { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), inset -3px 0 0 var(--c), 0 4px 12px rgba(0, 0, 0, .35); padding: .32rem .55rem .32rem .62rem; }

/* Hito 108 · PA y PM: solo el valor actual; rombos dinámicos (los que pasan del máximo, en dorado) */
#ui-overlay .lk-meter b { min-width: 1.6em; text-align: center; display: inline-block; }
#ui-overlay .lk-meter .lk-pips { width: 84px; align-items: center; }
#ui-overlay .lk-meter .lk-pips.lk-dense { gap: 2px; }
#ui-overlay .lk-meter .lk-pips.lk-dense i { width: 5px; height: 5px; }
#ui-overlay .lk-meter .lk-pips i.lk-on.lk-extra { background: var(--lk-gilt-300); box-shadow: 0 0 6px rgba(238, 211, 154, .9); }
#ui-overlay .lk-meter .lk-pips i.lk-new { animation: lkPipIn .38s cubic-bezier(.22, 1, .36, 1); }
@keyframes lkPipIn { from { transform: rotate(45deg) scale(2.2); opacity: 0; } 60% { opacity: 1; } to { transform: rotate(45deg) scale(1); } }
#ui-overlay .lk-meter b.lk-gain { animation: lkResGain .45s cubic-bezier(.22, 1, .36, 1); }
#ui-overlay .lk-meter b.lk-loss { animation: lkResLoss .3s ease-out; }
@keyframes lkResGain { from { transform: scale(1.45); color: var(--lk-gilt-100); text-shadow: 0 0 10px rgba(238, 211, 154, .9); } }
@keyframes lkResLoss { from { transform: scale(.82); opacity: .7; } }
#ui-overlay .lk-meter.lk-has-extra b { color: var(--lk-gilt-100); }
html.lk-reduce-motion #ui-overlay .lk-meter .lk-pips i.lk-new, html.lk-reduce-motion #ui-overlay .lk-meter b.lk-gain, html.lk-reduce-motion #ui-overlay .lk-meter b.lk-loss { animation: none; }

/* ═══════════════════════════════════════════════════════════════════════════
   Hito 111 · Responsive de PC (ventanas bajas y estrechas: 1366×768, 1280×720, 1280×600, 1024×768)
   Principio: cabecera y acción principal siempre a la vista; el cuerpo hace scroll solo si hace falta, con una barra
   visible y un degradado en el borde; y lo que sobra se compacta por ALTURA, no solo por ancho. Todo es CSS salvo
   la cola de turnos y los chips de estado (CombatHUD.js). Sin saltos de layout: nada cambia de tamaño al interactuar.
   ═══════════════════════════════════════════════════════════════════════════ */

/* Barra de scroll visible (dorada, fina) en los cuerpos con scroll propio de las ventanas */
.lk-rules__body, .lk-forge-layer .lk-forge-stage, .lk-forge-layer .lk-forge-rows, .lk-shop-layer .lk-shop-page,
.lk-bag-layer .lk-bag__attrs, .lk-bag-layer .lk-bag__doll, .lk-bag-runes, .lk-bag-skills {
  scrollbar-width: thin; scrollbar-color: rgba(211, 174, 108, .62) rgba(11, 15, 28, .35);
}
.lk-shop-layer .lk-shop-page { scrollbar-color: rgba(157, 122, 66, .7) rgba(157, 122, 66, .12); }

/* Forja: la franja de coste y el botón «Forjar» quedan pegados al pie de la columna central; si el yunque no cabe, es lo
   de arriba lo que se desplaza, nunca el botón. */
.lk-forge-layer .lk-forge-stage > .lk-forge-cost { position: sticky; bottom: 0; z-index: 2; background: linear-gradient(rgba(14, 19, 34, .97), rgba(14, 19, 34, .97)); }
@media (max-height: 700px) {
  .lk-forge-layer .lk-forge-stage { padding: 10px 18px; gap: 8px; grid-template-rows: auto auto; align-content: start; }
  .lk-forge-layer .lk-anvil { min-height: 0; gap: 8px; }
  .lk-forge-layer .lk-anvil__pair { gap: 12px; }
  .lk-forge-layer .lk-fcard { width: 188px; }
  .lk-forge-layer .lk-fcard__art { height: 62px; }
  .lk-forge-layer .lk-fcard__art img { width: 46px; height: 46px; }
  .lk-forge-layer .lk-fcard__body { padding: 6px 10px 8px; gap: 2px; }
  .lk-forge-layer .lk-fcard__body b { font-size: .94rem; }
  .lk-forge-layer .lk-fcard .lk-sp-stat { padding: 2px 0; font-size: .72rem; }
  .lk-forge-layer .lk-forge-cost { padding: 10px 14px; gap: 12px; }
  .lk-forge-layer .lk-forge-pouch { padding: 6px 22px 8px; gap: 4px; }
  .lk-forge-layer .lk-forge-pouch__hint { display: none; }
}

/* Tienda: el botón «Comprar / Vender» se queda al pie del panel de detalle y los bloques informativos se compactan */
.lk-shop-layer .lk-sp-act { position: sticky; bottom: 0; z-index: 2; margin: 0 -20px -18px; padding: 8px 20px 18px; background: linear-gradient(180deg, rgba(247, 241, 229, 0), var(--lk-ivory-100) 26%); }
@media (max-height: 700px) {
  .lk-shop-layer .lk-shop-page { padding: 14px 18px 0; gap: 8px; }
  .lk-shop-layer .lk-sp-art { width: 56px; height: 56px; }
  .lk-shop-layer .lk-sp-art img { width: 40px; height: 40px; }
  .lk-shop-layer .lk-sp-head b { font-size: 1.1rem; }
  .lk-shop-layer .lk-sp-desc { font-size: .78rem; line-height: 1.35; }
  .lk-shop-layer .lk-sp-note { padding: 5px 8px; font-size: .72rem; line-height: 1.3; }
  .lk-shop-layer .lk-sp-sum { padding: 7px 10px; }
  .lk-shop-layer .lk-sp-act { margin: 0 -18px; padding: 10px 18px 12px; }
  .lk-shop-layer .lk-sp-act .lk-btn { min-height: 42px; }
}

/* Mochila: en PC estrecho (981–1100 px) se conservan las tres columnas, más angostas, en lugar de apilarlas */
@media (min-width: 981px) and (max-width: 1100px) {
  .lk-bag-layer .lk-bag__body, .lk-bag-layer .lk-bag__body--3 { grid-template-columns: 224px 252px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); overflow-y: visible; }
  .lk-bag-layer .lk-bag__body--3 .lk-bag__attrs { grid-column: auto; grid-template-columns: none; border-right: 1px solid rgba(211, 174, 108, .14); border-bottom: 0; overflow-y: auto; padding: 16px 12px; }
  .lk-bag-layer .lk-bag__doll--model { overflow: hidden; }
  .lk-doll.lk-doll--model { height: 100%; min-height: 0; }
  .lk-bag-layer .lk-bag__grid-wrap { min-height: 0; padding: 14px; }
}
/* El muñeco 3D no fija un alto: ocupa la columna y se ajusta con la altura de la ventana */
@media (max-height: 700px) { .lk-doll.lk-doll--model { min-height: 0; } .lk-bag-layer .lk-bag__attrs { padding: 14px 14px; gap: 12px; } }

/* Reglas y controles: con poca altura se compacta en dos escalones (≤ 900 y ≤ 740 px de alto); por debajo sigue haciendo scroll, con barra visible */
.lk-rules-layer > .lk-rules { display: flex; flex-direction: column; grid-template-columns: none; }
@media (max-height: 900px) {
  .lk-rules-layer > .lk-rules { max-height: calc(100vh - 24px); }
  .lk-rules__body { gap: 8px; padding: 10px 20px; }
  .lk-rules__grid { gap: 8px; }
  .lk-rules__card { padding: 9px 11px; gap: 10px; }
  .lk-rules__ico { width: 30px; height: 30px; margin: 4px 4px 0; }
  .lk-rules__ico .lk-ai { width: 18px; height: 18px; }
  .lk-rules__card h4 { font-size: .94rem; margin-bottom: 2px; }
  .lk-rules__card p { font-size: .74rem; line-height: 1.4; }
  .lk-rules__tri { padding: 9px 12px; gap: 6px; }
  .lk-rules__cycle { flex-wrap: nowrap; gap: 6px; }
  .lk-rules__beats { font-size: 1.25rem; }
  .lk-rules__note { font-size: .72rem; }
  .lk-rules__controls { gap: 12px; }
  .lk-rules__controls ul { margin-top: 4px; }
  .lk-rules__controls li { padding: 4px 4px; }
  .lk-rules__foot { padding: 8px 20px 10px; }
}
/* Segundo escalón (≤ 740 px de alto): lo justo para que todo quepa sin scroll a 1280×720 */
@media (max-height: 740px) {
  .lk-rules__body { gap: 6px; padding: 8px 20px; }
  .lk-rules__grid { gap: 6px; }
  .lk-rules__card { padding: 7px 10px; }
  .lk-rules__card p { line-height: 1.3; }
  .lk-rules__tri { padding: 7px 12px; gap: 4px; }
  .lk-rules__controls li { padding: 3px 4px; }
  .lk-rules__foot { padding: 6px 20px 8px; }
}
/* Forja: las chispas del yunque (SVG decorativo) ocupaban su tamaño natural y creaban un scroll fantasma de ~500 px en la columna central */
.lk-forge-layer .lk-anvil__fx { width: 100%; height: 100%; }

/* Cola de turnos (Hito 111): se recorta al ancho libre en vez de pasar bajo los botones de la esquina. El colchón de
   relleno/margen negativo deja sitio al rombo, al halo del turno activo y a los nombres sin mover nada de sitio. */
#ui-overlay .lk-cb-tracker { min-width: 0; }
#ui-overlay .lk-cb-timeline { min-width: 0; flex: 0 1 auto; overflow-x: auto; overflow-y: hidden; margin: -16px -10px -24px; padding: 22px 14px 24px; scrollbar-width: none; }
#ui-overlay .lk-cb-timeline::-webkit-scrollbar { display: none; }
#ui-overlay .lk-cb-timeline.lk-tl-clip { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 26px), transparent); mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 26px), transparent); }
#ui-overlay .lk-cb-timeline.lk-tl-dense { gap: 8px; }
#ui-overlay .lk-cb-timeline.lk-tl-dense .timeline-card { width: 34px; height: 34px; }
#ui-overlay .lk-cb-timeline.lk-tl-dense .timeline-card.active-turn { width: 44px; height: 44px; }
#ui-overlay .lk-cb-timeline.lk-tl-dense .card-name { display: none; }
#ui-overlay .lk-cb-st--more { padding: 1px 7px; cursor: help; }

/* ===== Hito 112: Escuadra, inicio y scrollbars visibles (PC) ===== */
/* Scrollbars visibles: fondo oscuro (dorado claro) y pergamino (dorado oscuro) */
.lk-end-layer > .lk-end > .lk-end__body,
.lk-squad-layer .lk-squad__col, .lk-squad-layer .lk-squad__detail, .lk-squad-layer .lk-squad__body,
.lk-chron .lk-j-list { scrollbar-width: thin; scrollbar-color: rgba(211, 174, 108, .62) rgba(11, 15, 28, .35); }
.lk-chron .lk-j-page, #world-map-modal .lk-wmap__page { scrollbar-width: thin; scrollbar-color: rgba(157, 122, 66, .7) rgba(157, 122, 66, .14); }
#world-map-modal .lk-wmap__stage, #world-map-modal .lk-wmap__map { scrollbar-width: thin; scrollbar-color: rgba(211, 174, 108, .62) rgba(11, 15, 28, .35); }

/* Escuadra: con poca altura las 4 ranuras se compactan para dejar sitio a colección y ficha */
@media (min-width: 1101px) and (max-height: 820px) {
  .lk-squad-layer .lk-squad__top { padding: 12px 18px; gap: 10px; }
  .lk-squad-layer .lk-sq-slot { padding: 8px 8px 8px; gap: 3px; }
  .lk-squad-layer .lk-sq-slot .lk-pfw { margin: 2px 0 0; }
  .lk-squad-layer .lk-sq-slot .lk-med { --s: 52px; }
  .lk-squad-layer .lk-sq-slot b { font-size: 1rem; }
  .lk-squad-layer .lk-sq-slot .lk-mini { margin-top: 2px; padding-top: 5px; }
  .lk-squad-layer .lk-sq-slot.lk-is-empty .lk-ph-d { width: 36px; height: 36px; margin: 8px 0 4px; }
}
@media (min-width: 1101px) and (max-height: 680px) {
  .lk-squad-layer .lk-sq-slot .lk-med { --s: 40px; }
  .lk-squad-layer .lk-sq-slot .lk-meta { font-size: .66rem; }
  .lk-squad-layer .lk-sq-slot .lk-bondtag { display: none; }
}

/* Inicio / login: el logo y los márgenes se ajustan a la altura para evitar scroll */
@media (max-height: 820px) {
  .lk-start .lk-login { gap: 12px; padding: 24px 20px 16px; }
  .lk-start .lk-login__logo { width: min(300px, 80%, 40vh); }
  .lk-start .lk-login__card { padding: 20px 24px 16px; gap: 10px; min-height: 0; }
}
@media (max-height: 680px) {
  .lk-start .lk-login { gap: 8px; padding-top: 14px; }
  .lk-start .lk-login__logo { width: min(220px, 80%, 36vh); }
  .lk-start .lk-login__card { padding: 14px 22px 12px; gap: 8px; }
}

/* Fin de combate: encabezado más bajo con poca altura (más sitio para el resumen) */
@media (max-height: 700px) {
  .lk-end-layer > .lk-end .lk-end__crest { padding: 18px 24px 12px; gap: 3px; }
  .lk-end-layer > .lk-end .lk-end__emblem { width: 44px; height: 44px; }
  .lk-end-layer > .lk-end .lk-end__title { font-size: 2.4rem; }
}

/* ===== Hito 114: tarjetas de la Mochila iguales y nueva interfaz de pesca ===== */
/* Mochila: cada casilla es un <button>, que centra su contenido en vertical. Con pies de 1 y 2 líneas en la misma fila,
   las de 1 línea bajaban el arte (franja marfil arriba y abajo). Ahora el arte va siempre arriba y el pie reserva 2 líneas. */
.lk-bag__grid .lk-it { display: flex; flex-direction: column; justify-content: flex-start; }
.lk-bag__grid .lk-it > .lk-art { flex: none; }
.lk-bag__grid .lk-it > .lk-cap { flex: 1 0 auto; display: flex; align-items: center; justify-content: center; line-height: 1.2; min-height: calc(2.4em + 7px); }

/* Aviso del Rastro de Miasma al pasar el ratón por una casilla infectada (main._showZoneWarn) */
.lk-zone-warn { position: fixed; z-index: 60; transform: translate(-50%, -135%); pointer-events: none; white-space: nowrap;
  padding: 5px 10px; border-radius: 7px; background: rgba(46, 10, 66, 0.94); border: 1px solid #c46bff;
  color: #f6e3ff; font-weight: 700; font-size: 13px; line-height: 1.2; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35); }
.lk-zone-warn[hidden] { display: none; }

/* ===== Hito 121: formulario de feedback (ui/FeedbackPanel.js) ===== */
/* Por encima del velo de la guía del tutorial (2147483000) y de su franja (2147483003): se puede usar en cualquier paso */
.lk-fb-layer.lk-backdrop { z-index: 2147483004; }
.lk-fb-layer > .lk-fb { width: min(560px, 100%); max-height: min(640px, calc(100vh - 40px)); }
.lk-fb .lk-panel-head .lk-btn-close-x { margin-left: auto; }
.lk-fb__body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 18px 24px 20px; }
.lk-fb__body section[hidden] { display: none; }
.lk-fb__lead { margin: 0 0 14px; font-size: .95rem; line-height: 1.55; color: #D6DBE7; }
.lk-fb__label { display: block; margin-bottom: 6px; font: 800 .72rem/1 var(--lk-font-ui); letter-spacing: .14em; text-transform: uppercase; color: #D9B46A; }
.lk-fb__text { display: block; width: 100%; box-sizing: border-box; min-height: 140px; max-height: 40vh; resize: vertical; padding: 12px 14px; border: 0; border-radius: 10px;
  font: 600 .95rem/1.5 var(--lk-font-ui); color: var(--lk-ivory-50, #FBF6EA); background: rgba(8, 11, 22, .72);
  box-shadow: inset 0 0 0 1px rgba(211, 174, 108, .35), inset 0 2px 6px rgba(0, 0, 0, .35); outline: none; transition: box-shadow .15s; }
.lk-fb__text::placeholder { color: rgba(214, 219, 231, .42); }
.lk-fb__text:focus { box-shadow: inset 0 0 0 2px rgba(238, 211, 154, .8), 0 0 0 4px rgba(238, 211, 154, .12); }
.lk-fb__text[readonly] { opacity: .7; }
.lk-fb__meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; font-size: .78rem; font-weight: 700; color: #AEB6CB; }
.lk-fb__count { font-variant-numeric: tabular-nums; }
.lk-fb__count.lk-is-warn { color: #F2B36B; }
.lk-fb__err { margin: 10px 0 0; padding: 8px 12px; border-radius: 8px; font-size: .85rem; font-weight: 700; color: #FFD9D2; background: rgba(140, 32, 32, .35); box-shadow: inset 0 0 0 1px rgba(255, 120, 100, .45); }
.lk-fb__err[hidden] { display: none; }
.lk-fb__foot { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 16px; }
.lk-fb__foot--center { justify-content: center; }
.lk-fb__hint { margin-right: auto; font-size: .72rem; font-weight: 700; color: rgba(239, 232, 218, .45); }
/* .lk-btn--sm reserva el hueco del icono a la izquierda (3px 18px 3px 3px): sin icono, relleno simétrico y texto centrado */
.lk-fb .lk-btn--sm[data-act="later"] { padding: 3px 18px; justify-content: center; min-width: 110px; }
.lk-fb [data-act="send"][disabled] { opacity: .5; cursor: not-allowed; filter: grayscale(.5); }
.lk-fb [data-act="send"].lk-is-busy { cursor: progress; }
.lk-fb__done { display: grid; justify-items: center; text-align: center; padding: 8px 0 4px; }
.lk-fb__seal { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 50% 35%, #3a5a3e, #121726);
  box-shadow: 0 0 0 2px rgba(11, 15, 28, .9), 0 0 0 3px rgba(211, 174, 108, .6), 0 0 22px rgba(238, 211, 154, .3); animation: lkFbSeal .45s cubic-bezier(.2, 1.4, .4, 1) both; }
.lk-fb__seal img { width: 36px; height: 36px; }
.lk-fb__done h4 { margin: 12px 0 4px; font: 400 1.35rem/1.2 var(--lk-font-display); color: #FBF6EA; }
.lk-fb__done p { margin: 0; max-width: 40ch; font-size: .92rem; color: #D6DBE7; }
@keyframes lkFbSeal { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .lk-fb__seal { animation: none; } .lk-fb__text { transition: none; } }
/* Ventanas bajas (Hito 111): menos aire y área de texto más corta */
@media (max-height: 700px) {
  .lk-fb__body { padding: 12px 18px 14px; }
  .lk-fb__lead { margin-bottom: 10px; font-size: .88rem; }
  .lk-fb__text { min-height: 96px; }
  .lk-fb__foot { margin-top: 12px; }
}

/* ===== Koliseo, fase B1 (ui/KoliseoPanel.js): Arena PvP · Desafío de la Bruma · Clasificación ===== */
.lk-kol-layer > .lk-kol { width: min(1000px, 100%); max-height: min(680px, calc(100vh - 40px)); min-height: min(520px, calc(100vh - 40px)); }
.lk-kol .lk-panel-head { flex-wrap: wrap; row-gap: 10px; }
.lk-kol .lk-panel-head .lk-kol__tabs { margin-left: auto; }
.lk-kol .lk-panel-head .lk-btn-close-x { margin-left: 8px; }
.lk-kol__body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 18px 24px 22px; }
.lk-kol__state { min-height: 260px; display: grid; place-content: center; justify-items: center; gap: 14px; text-align: center; color: #AEB6CB; }
.lk-kol__state p { margin: 0; max-width: 46ch; }
.lk-kol__spin { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(238, 211, 154, .2); border-top-color: #EED39A; animation: lkKolSpin .9s linear infinite; }
@keyframes lkKolSpin { to { transform: rotate(360deg); } }

/* Desafío de la Bruma */
.lk-kol__bruma { --biome: #7BC47F; display: grid; gap: 18px; }
.lk-kol__hero { display: flex; gap: 18px; align-items: stretch; justify-content: space-between; padding: 18px 20px; border-radius: 14px;
  background: linear-gradient(120deg, color-mix(in srgb, var(--biome) 26%, transparent), rgba(11, 15, 28, .2) 60%), rgba(11, 15, 28, .55);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--biome) 45%, transparent); }
.lk-kol__hero small { font: 800 .7rem/1 var(--lk-font-ui); letter-spacing: .16em; text-transform: uppercase; color: #D9B46A; }
.lk-kol__hero h4 { margin: 8px 0 6px; font: 400 1.6rem/1.15 var(--lk-font-display); color: #FBF6EA; }
.lk-kol__count { font-size: .88rem; font-weight: 800; color: color-mix(in srgb, var(--biome) 70%, #fff); font-variant-numeric: tabular-nums; }
.lk-kol__mod { flex: 0 1 300px; display: grid; gap: 4px; align-content: center; padding: 10px 14px; border-radius: 10px; background: rgba(8, 11, 22, .55); box-shadow: inset 0 0 0 1px rgba(211, 174, 108, .3); }
.lk-kol__mod b { font: 400 1.05rem/1.2 var(--lk-font-display); color: #FBF6EA; }
.lk-kol__mod span { font-size: .82rem; color: #C9CFDC; line-height: 1.4; }
.lk-kol__stages { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.lk-kol__stage { position: relative; display: grid; gap: 4px; align-content: start; padding: 14px 12px 12px; border-radius: 12px; background: rgba(11, 15, 28, .55); box-shadow: inset 0 0 0 1px rgba(211, 174, 108, .22); }
.lk-kol__stage b { font: 400 1rem/1.2 var(--lk-font-display); color: #FBF6EA; }
.lk-kol__stage small { font-size: .78rem; color: #AEB6CB; line-height: 1.3; }
.lk-kol__num { position: absolute; top: -9px; left: 10px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; font: 900 .75rem/1 var(--lk-font-ui); color: #2a1d08; background: linear-gradient(180deg, #EED39A, #C9A867); box-shadow: 0 2px 6px rgba(0, 0, 0, .4); }
.lk-kol__mult { margin-top: 4px; font-size: .8rem; font-weight: 800; color: color-mix(in srgb, var(--biome) 75%, #fff); }
.lk-kol__tag { justify-self: start; padding: 2px 8px; border-radius: 999px; font: 800 .62rem/1.4 var(--lk-font-ui); font-style: normal; letter-spacing: .1em; text-transform: uppercase; color: #FBF6EA; background: rgba(211, 174, 108, .25); }
.lk-kol__tag.lk-is-boss { color: #2a1d08; background: linear-gradient(180deg, #F6C66B, #D9913A); }
.lk-kol__stage.lk-is-bossstage { box-shadow: inset 0 0 0 1px rgba(246, 198, 107, .6), 0 0 18px rgba(246, 198, 107, .12); }
.lk-kol__stage.lk-is-done { opacity: .72; }
.lk-kol__stage.lk-is-now { box-shadow: inset 0 0 0 2px #EED39A, 0 0 18px rgba(238, 211, 154, .25); }
.lk-kol__st { display: inline-flex; align-items: center; gap: 4px; font-size: .74rem; font-weight: 800; color: #9FD8A3; }
.lk-kol__st img { width: 14px; height: 14px; }
.lk-kol__st.lk-is-now { color: #EED39A; }
.lk-kol__foot { display: flex; gap: 20px; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; }
.lk-kol__side { flex: 1 1 380px; display: grid; gap: 8px; }
.lk-kol__stats { margin: 0; display: flex; flex-wrap: wrap; gap: 10px 26px; }
.lk-kol__stats dt { font: 800 .66rem/1 var(--lk-font-ui); letter-spacing: .14em; text-transform: uppercase; color: #D9B46A; }
.lk-kol__stats dd { margin: 4px 0 0; font-weight: 800; color: #FBF6EA; }
.lk-kol__rules, .lk-kol__prizes, .lk-kol__note { margin: 0; font-size: .82rem; line-height: 1.5; color: #AEB6CB; }
.lk-kol__note { color: #C9CFDC; }
.lk-kol__link { border: 0; padding: 0; background: none; cursor: pointer; font: inherit; font-weight: 800; color: #EED39A; text-decoration: underline; text-underline-offset: 2px; }
.lk-kol__cta { display: grid; justify-items: end; gap: 6px; }
.lk-kol__cta small { max-width: 30ch; text-align: right; font-size: .76rem; color: #AEB6CB; }
.lk-kol__cta .lk-btn[disabled] { opacity: .5; cursor: not-allowed; filter: grayscale(.5); }

/* Arena PvP (próximamente) */
.lk-kol__soon { max-width: 620px; margin: 24px auto; display: grid; justify-items: center; gap: 10px; text-align: center; }
.lk-kol__soon-ico { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 50% 35%, #5a3a2a, #121726); box-shadow: 0 0 0 2px rgba(11, 15, 28, .9), 0 0 0 3px rgba(211, 174, 108, .6); }
.lk-kol__soon-ico img { width: 34px; height: 34px; }
.lk-kol__soon h4 { margin: 4px 0 0; font: 400 1.4rem/1.2 var(--lk-font-display); color: #FBF6EA; }
.lk-kol__soon p { margin: 0; color: #C9CFDC; }
.lk-kol__soon ul { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; text-align: left; }
.lk-kol__soon li { padding-left: 18px; position: relative; font-size: .88rem; color: #AEB6CB; }
.lk-kol__soon li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 7px; height: 7px; transform: rotate(45deg); background: #EED39A; }

/* Clasificación */
.lk-kol__boardhead { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.lk-kol__boardhead h4 { margin: 0; font: 400 1.2rem/1.2 var(--lk-font-display); color: #FBF6EA; }
.lk-kol__table { width: 100%; border-collapse: separate; border-spacing: 0 4px; font-size: .9rem; }
.lk-kol__table th { padding: 4px 10px; text-align: left; font: 800 .66rem/1 var(--lk-font-ui); letter-spacing: .14em; text-transform: uppercase; color: #D9B46A; }
.lk-kol__table td { padding: 8px 10px; background: rgba(11, 15, 28, .5); color: #EFE8DA; }
.lk-kol__table td:first-child { border-radius: 10px 0 0 10px; width: 46px; }
.lk-kol__table td:last-child { border-radius: 0 10px 10px 0; }
.lk-kol__table .lk-kol__n { text-align: right; font-variant-numeric: tabular-nums; }
.lk-kol__table tr.lk-is-me td { background: rgba(238, 211, 154, .16); box-shadow: inset 0 1px 0 rgba(238, 211, 154, .35), inset 0 -1px 0 rgba(238, 211, 154, .35); }
.lk-kol__who { font-weight: 800; }
.lk-kol__who em { margin-left: 6px; padding: 1px 7px; border-radius: 999px; font: 800 .62rem/1.4 var(--lk-font-ui); font-style: normal; text-transform: uppercase; color: #2a1d08; background: #EED39A; }
.lk-kol__axie { display: inline-flex; align-items: center; gap: 6px; color: #C9CFDC; }
.lk-kol__axie img { width: 18px; height: 18px; object-fit: contain; }
.lk-kol__gap td { padding: 0 10px; background: none !important; text-align: center; color: #6F7891; letter-spacing: .3em; }
.lk-kol__rk { display: inline-block; min-width: 24px; text-align: center; font-weight: 800; color: #AEB6CB; }
.lk-kol__medal { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font: 900 .74rem/1 var(--lk-font-ui); color: #2a1d08; box-shadow: 0 2px 5px rgba(0, 0, 0, .4); }
.lk-kol__medal.lk-is-m1 { background: linear-gradient(180deg, #FFE7A3, #D9A93E); }
.lk-kol__medal.lk-is-m2 { background: linear-gradient(180deg, #F1F4FA, #A9B2C3); }
.lk-kol__medal.lk-is-m3 { background: linear-gradient(180deg, #F2C29A, #B8754A); }
.lk-kol__empty { margin: 30px 0; text-align: center; color: #AEB6CB; }
.lk-kol__prizebox { margin: 14px 0 10px; padding: 12px 14px; border-radius: 12px; display: grid; gap: 8px; background: rgba(11, 15, 28, .45); box-shadow: inset 0 0 0 1px rgba(211, 174, 108, .22); }
.lk-kol__prizebox small { font: 800 .66rem/1 var(--lk-font-ui); letter-spacing: .14em; text-transform: uppercase; color: #D9B46A; }
.lk-kol__prizebox > div { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.lk-kol__pz { display: inline-flex; align-items: center; gap: 5px; font-weight: 800; font-size: .86rem; color: #EFE8DA; }
.lk-kol__pz img { width: 22px; height: 22px; object-fit: contain; }

@media (prefers-reduced-motion: reduce) { .lk-kol__spin { animation: none; } }
/* Ventanas bajas o estrechas (Hito 111) */
@media (max-width: 900px) { .lk-kol__stages { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 16px; } }
@media (max-height: 720px) {
  .lk-kol__body { padding: 12px 18px 14px; }
  .lk-kol__hero { padding: 12px 16px; }
  .lk-kol__hero h4 { font-size: 1.3rem; margin: 4px 0; }
  .lk-kol__bruma { gap: 12px; }
}
.lk-kol__warn { margin: 0; padding: 8px 12px; border-radius: 8px; font-size: .84rem; font-weight: 700; color: #FFE2B8; background: rgba(140, 82, 20, .3); box-shadow: inset 0 0 0 1px rgba(242, 179, 107, .45); }
/* Koliseo, fase B2: resultado del último combate y preparación entre combates */
.lk-kol__flash { display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 14px; border-radius: 10px; font-weight: 800; font-size: .9rem; animation: lkKolFlash .35s ease both; }
.lk-kol__flash span { flex: 1; }
.lk-kol__flash .lk-btn-close-x { width: 28px; height: 28px; flex: none; }
.lk-kol__flash.lk-is-good { color: #DDF5DF; background: rgba(46, 110, 60, .35); box-shadow: inset 0 0 0 1px rgba(123, 196, 127, .55); }
.lk-kol__flash.lk-is-warn { color: #FFE2B8; background: rgba(140, 82, 20, .3); box-shadow: inset 0 0 0 1px rgba(242, 179, 107, .5); }
.lk-kol__flash.lk-is-bad  { color: #FFD9D2; background: rgba(140, 32, 32, .32); box-shadow: inset 0 0 0 1px rgba(255, 120, 100, .5); }
@keyframes lkKolFlash { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.lk-kol__prep { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border-radius: 12px; background: rgba(11, 15, 28, .45); box-shadow: inset 0 0 0 1px rgba(211, 174, 108, .22); }
.lk-kol__prep small { margin-right: auto; font: 800 .66rem/1.2 var(--lk-font-ui); letter-spacing: .14em; text-transform: uppercase; color: #D9B46A; }
.lk-kol__cta .lk-btn.lk-is-busy { cursor: progress; opacity: .7; }
@media (prefers-reduced-motion: reduce) { .lk-kol__flash { animation: none; } }

/* ── Koliseo, fase B3 (B4: sin marco, centrados y uno al lado del otro): retratos de los enemigos de cada combate ── */
.lk-kol__foes { display: flex; align-items: flex-end; justify-content: center; gap: 2px; margin-top: 8px; }
.lk-kol__foe { width: 44px; height: 44px; flex: none; }
.lk-kol__foe img { width: 100%; height: 100%; object-fit: contain; display: block; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .45)); }
.lk-kol__foe.lk-is-boss { width: 54px; height: 54px; }
.lk-kol__foe.lk-is-boss img { filter: drop-shadow(0 0 6px rgba(246, 198, 107, .55)) drop-shadow(0 3px 4px rgba(0, 0, 0, .45)); }
.lk-kol__stage.lk-is-done .lk-kol__foe img { filter: grayscale(.8) drop-shadow(0 3px 4px rgba(0, 0, 0, .45)); opacity: .8; }

/* ── Koliseo (ajuste tras B4): número junto al título, estado arriba a la derecha y etiqueta en la fila del daño,
      para que los retratos de las 5 tarjetas queden a la misma altura ─────────────────────────────────────── */
.lk-kol__stage { display: flex; flex-direction: column; gap: 4px; padding: 12px 12px 10px; }
.lk-kol__head { display: flex; align-items: center; gap: 8px; min-width: 0; }
.lk-kol__head b { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lk-kol__head .lk-kol__num { position: static; flex: none; width: 22px; height: 22px; font-size: .7rem; }
.lk-kol__head .lk-kol__st { flex: none; }
.lk-kol__head .lk-kol__st img { width: 16px; height: 16px; }
.lk-kol__head .lk-kol__st.lk-is-now { width: 9px; height: 9px; border-radius: 50%; background: #EED39A; box-shadow: 0 0 0 3px rgba(238, 211, 154, .25), 0 0 10px rgba(238, 211, 154, .6); }
.lk-kol__meta { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 4px; }
.lk-kol__meta .lk-kol__mult { margin-top: 0; }
.lk-kol__meta .lk-kol__tag { justify-self: auto; }
.lk-kol__stage .lk-kol__foes { margin-top: auto; padding-top: 8px; }
/* ── Arena PvP, fase P3: pestaña del Koliseo, presentación del rival, barra del combate y pantalla final ── */
.lk-kol__arena { display: grid; gap: 14px; }
.lk-kol__slp { display: inline-flex; align-items: center; gap: 6px; }
.lk-kol__slp img, .lk-pvpe__slp img { width: 18px; height: 18px; }
.lk-kol__search { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 12px; background: rgba(11, 15, 28, .5); box-shadow: inset 0 0 0 1px rgba(211, 174, 108, .3); }
.lk-kol__search > span:last-child { display: grid; gap: 2px; text-align: left; }
.lk-kol__search b { color: #FBF6EA; }
.lk-kol__search small { font-size: .76rem; color: #AEB6CB; }
.lk-kol__sub { margin: 10px 0 4px; font: 800 .66rem/1.2 var(--lk-font-ui); letter-spacing: .14em; text-transform: uppercase; color: #D9B46A; }
.lk-kol__recent { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.lk-kol__recent li { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 8px; font-size: .86rem; background: rgba(11, 15, 28, .45); color: #EFE8DA; }
.lk-kol__recent li b { min-width: 72px; }
.lk-kol__recent li em { margin-left: auto; font-style: normal; font-weight: 800; }
.lk-kol__recent li.lk-is-win b, .lk-kol__recent li.lk-is-win em { color: #9FD8A3; }
.lk-kol__recent li.lk-is-loss b, .lk-kol__recent li.lk-is-loss em { color: #FF9C8C; }
.lk-kol__kinds { margin: 0 auto 12px; width: max-content; }
.lk-kol__prizebox--arena { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.lk-kol__prizebox--arena small { grid-column: 1 / -1; }

.lk-pvpi { position: fixed; inset: 0; z-index: 2050; display: grid; place-items: center; padding: 20px; cursor: pointer;
  background: radial-gradient(80% 70% at 50% 45%, rgba(40, 20, 12, .55), rgba(8, 10, 18, .9)); opacity: 0; transition: opacity .25s; }
.lk-pvpi.lk-is-in { opacity: 1; }
.lk-pvpi__card { width: min(760px, 100%); display: grid; justify-items: center; gap: 16px; text-align: center; transform: scale(.96); transition: transform .35s var(--lk-ease); }
.lk-pvpi.lk-is-in .lk-pvpi__card { transform: none; }
.lk-pvpi__title { display: flex; align-items: center; gap: 10px; margin: 0; font: 400 2rem/1.1 var(--lk-font-display); color: #F6D58E; text-shadow: 0 2px 12px rgba(0, 0, 0, .6); }
.lk-pvpi__title img { width: 36px; height: 36px; }
.lk-pvpi__teams { width: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.lk-pvpi__team { display: grid; gap: 6px; padding: 16px; border-radius: 14px; background: rgba(20, 27, 45, .9); box-shadow: inset 0 0 0 1px rgba(255, 110, 90, .45); }
.lk-pvpi__team.lk-is-me { box-shadow: inset 0 0 0 1px rgba(0, 210, 255, .55); }
.lk-pvpi__team small { font: 800 .66rem/1 var(--lk-font-ui); letter-spacing: .14em; text-transform: uppercase; color: #D9B46A; }
.lk-pvpi__name { font: 400 1.35rem/1.15 var(--lk-font-display); color: #FBF6EA; overflow-wrap: anywhere; }
.lk-pvpi__line { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: .9rem; color: #D7DCEA; }
.lk-pvpi__line img { width: 18px; height: 18px; }
.lk-pvpi__vs { font: 400 2.2rem/1 var(--lk-font-display); color: #F6D58E; text-shadow: 0 0 18px rgba(246, 198, 107, .5); }
.lk-pvpi__map { margin: 0; color: #EFE8DA; }
.lk-pvpi__map small { font: 800 .66rem/1 var(--lk-font-ui); letter-spacing: .14em; text-transform: uppercase; color: #D9B46A; margin-right: 6px; }
.lk-pvpi__prep { margin: 0; display: inline-flex; align-items: center; gap: 10px; font-size: .86rem; color: #AEB6CB; }
@media (max-width: 620px) { .lk-pvpi__teams { grid-template-columns: 1fr; } }

/* Debajo de la fila superior del HUD de combate (orden de turnos a la izquierda, herramientas a la derecha) */
.lk-pvp { position: fixed; top: 88px; left: 50%; transform: translateX(-50%); z-index: 1400; display: grid; justify-items: center; gap: 8px; pointer-events: none; }
.lk-pvp > * { pointer-events: auto; }
.lk-pvp__bar { display: flex; align-items: center; gap: 14px; padding: 8px 10px 8px 16px; border-radius: 14px; background: rgba(20, 27, 45, .92);
  box-shadow: inset 0 0 0 1px rgba(255, 110, 90, .4), 0 6px 18px rgba(0, 0, 0, .35); }
.lk-pvp.lk-is-mine .lk-pvp__bar { box-shadow: inset 0 0 0 1px rgba(0, 210, 255, .6), 0 0 18px rgba(0, 210, 255, .18); }
.lk-pvp__turn { display: grid; gap: 2px; min-width: 150px; }
.lk-pvp__turn b { font: 400 1.05rem/1.1 var(--lk-font-display); color: #FBF6EA; }
.lk-pvp__turn small { font-size: .72rem; color: #AEB6CB; }
.lk-pvp__clock { min-width: 52px; text-align: center; font: 900 1.2rem/1 var(--lk-font-ui); font-variant-numeric: tabular-nums; color: #EED39A; }
.lk-pvp__clock.lk-is-low { color: #F2B36B; }
.lk-pvp__clock.lk-is-critical { color: #FF7A66; text-shadow: 0 0 10px rgba(255, 90, 70, .6); }
.lk-pvp__rival { display: inline-flex; align-items: center; gap: 6px; max-width: 18ch; font-size: .84rem; color: #EFE8DA; }
.lk-pvp__rival span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lk-pvp__dot { width: 9px; height: 9px; flex: none; border-radius: 50%; background: #7BC47F; box-shadow: 0 0 6px rgba(123, 196, 127, .8); }
.lk-pvp__rival.lk-is-off .lk-pvp__dot { background: #8a8f9e; box-shadow: none; }
.lk-pvp__rival.lk-is-off span { opacity: .6; }
.lk-pvp__give { display: inline-flex; align-items: center; gap: 8px; }
.lk-pvp__confirm { display: inline-flex; align-items: center; gap: 6px; }
.lk-pvp__confirm small { font-size: .76rem; color: #FFD9D2; }
.lk-pvp__toast { max-width: min(560px, 90vw); padding: 8px 14px; border-radius: 10px; font-size: .86rem; font-weight: 700; color: #EFE8DA; background: rgba(20, 27, 45, .92);
  opacity: 0; transform: translateY(-4px); transition: opacity .2s, transform .2s; pointer-events: none; }
.lk-pvp__toast.lk-is-on { opacity: 1; transform: none; }
.lk-pvp__toast.lk-is-warn { color: #FFE2B8; box-shadow: inset 0 0 0 1px rgba(242, 179, 107, .5); }
.lk-pvp__toast.lk-is-bad { color: #FFD9D2; box-shadow: inset 0 0 0 1px rgba(255, 120, 100, .5); }
.lk-pvp__toast.lk-is-good { color: #DDF5DF; box-shadow: inset 0 0 0 1px rgba(123, 196, 127, .55); }
.lk-pvp__wait { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 10px; font-size: .86rem; color: #EFE8DA; background: rgba(20, 27, 45, .92); }
.lk-pvp .hidden { display: none !important; }

.lk-pvpe.lk-backdrop { z-index: 2040; }
.lk-pvpe__win { width: min(460px, 100%) !important; padding: 26px 24px 22px; display: grid !important; justify-items: center; gap: 12px; text-align: center; }
.lk-pvpe__title { margin: 0; font: 400 2.1rem/1.1 var(--lk-font-display); color: #F6D58E; }
.lk-pvpe.lk-is-loss .lk-pvpe__title { color: #FF9C8C; }
.lk-pvpe.lk-is-review .lk-pvpe__title, .lk-pvpe.lk-is-aborted .lk-pvpe__title { color: #D7DCEA; }
.lk-pvpe__reason, .lk-pvpe__vs { margin: 0; color: #AEB6CB; font-size: .9rem; }
.lk-pvpe__text { margin: 0; max-width: 42ch; color: #EFE8DA; }
.lk-pvpe__rows { margin: 4px 0; display: flex; gap: 26px; justify-content: center; flex-wrap: wrap; }
.lk-pvpe__rows dt { font: 800 .66rem/1 var(--lk-font-ui); letter-spacing: .14em; text-transform: uppercase; color: #D9B46A; }
.lk-pvpe__rows dd { margin: 6px 0 0; }
.lk-pvpe__delta { font: 900 1.6rem/1 var(--lk-font-ui); }
.lk-pvpe__delta.lk-is-up { color: #9FD8A3; }
.lk-pvpe__delta.lk-is-down { color: #FF9C8C; }
.lk-pvpe__slp { display: inline-flex; align-items: center; gap: 6px; font: 900 1.3rem/1 var(--lk-font-ui); color: #F3B6D3; }
.lk-pvpe__muted { font-size: .82rem; color: #AEB6CB; }
@media (prefers-reduced-motion: reduce) { .lk-pvpi, .lk-pvpi__card, .lk-pvp__toast { transition: none; } }

/* ===== Hito 125: Koliseo más claro (Arena en dos tarjetas, Bruma con amenaza y barra de intentos, Clasificación en una barra) ===== */
/* Altura fija: cambiar de pestaña ya no hace saltar la ventana (antes, de 520 a 631 px); el cuerpo hace scroll si hace falta */
.lk-kol-layer > .lk-kol { height: min(640px, calc(100vh - 40px)); }
.lk-kol__tabs button img, .lk-kol__kinds button img { width: 1.05rem; height: 1.05rem; margin-right: 6px; vertical-align: -3px; }

/* Tarjeta base del Koliseo */
.lk-kol__card { padding: 16px 18px; border-radius: 14px; background: color-mix(in srgb, var(--lk-night-900) 55%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--lk-gilt-300) 22%, transparent); }

/* Arena: temporada · jugar · historial */
.lk-kol__arena--v2 { display: grid; gap: 14px; }
.lk-kol__arenagrid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 14px; }
.lk-kol__season { background: linear-gradient(160deg, color-mix(in srgb, var(--lk-gilt-300) 12%, transparent), transparent 55%), color-mix(in srgb, var(--lk-night-900) 55%, transparent); }
.lk-kol__cardhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.lk-kol__cardhead small { font: 800 .7rem/1 var(--lk-font-ui); letter-spacing: .16em; text-transform: uppercase; color: var(--lk-gilt-300); }
.lk-kol__pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 6px; border-radius: var(--lk-r-pill); font: 800 .74rem/1.4 var(--lk-font-ui); color: var(--lk-ivory-100); background: color-mix(in srgb, var(--lk-night-900) 70%, transparent); font-variant-numeric: tabular-nums; }
.lk-kol__pill img { width: 16px; height: 16px; }
.lk-kol__score { display: flex; align-items: center; gap: 14px; margin: 14px 0 12px; }
.lk-kol__rankbadge { flex: none; min-width: 3.2rem; height: 3.2rem; padding: 0 6px; display: grid; place-items: center; border-radius: var(--lk-r-pill); font: 900 1.05rem/1 var(--lk-font-ui); color: var(--lk-ivory-50); background: var(--lk-night-700); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--lk-gilt-300) 55%, transparent), 0 3px 8px rgba(0, 0, 0, .35); }
.lk-kol__rankbadge.lk-is-m1 { color: var(--lk-night-900); background: linear-gradient(180deg, #FFE7A3, #D9A93E); }
.lk-kol__rankbadge.lk-is-m2 { color: var(--lk-night-900); background: linear-gradient(180deg, #F1F4FA, #A9B2C3); }
.lk-kol__rankbadge.lk-is-m3 { color: var(--lk-night-900); background: linear-gradient(180deg, #F2C29A, #B8754A); }
.lk-kol__pts { display: grid; gap: 4px; min-width: 0; }
.lk-kol__pts b { font: 400 2.1rem/1 var(--lk-font-display); color: var(--lk-ivory-50); font-variant-numeric: tabular-nums; }
.lk-kol__pts small { font: 800 .68rem/1.2 var(--lk-font-ui); letter-spacing: .14em; text-transform: uppercase; color: color-mix(in srgb, var(--lk-ivory-200) 70%, transparent); }
.lk-kol__streak { margin-left: auto; padding: 4px 10px; border-radius: var(--lk-r-pill); font: 800 .74rem/1.3 var(--lk-font-ui); color: var(--lk-gilt-300); background: color-mix(in srgb, var(--lk-gilt-300) 14%, transparent); white-space: nowrap; }
.lk-kol__record { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.lk-kol__record li { display: grid; gap: 2px; padding: 8px 10px; border-radius: 10px; background: color-mix(in srgb, var(--lk-night-900) 60%, transparent); }
.lk-kol__record b { font: 900 1.15rem/1.1 var(--lk-font-ui); color: var(--lk-ivory-50); font-variant-numeric: tabular-nums; }
.lk-kol__record small { font: 800 .64rem/1.2 var(--lk-font-ui); letter-spacing: .12em; text-transform: uppercase; color: color-mix(in srgb, var(--lk-ivory-200) 62%, transparent); }
.lk-kol__record .lk-is-win b { color: color-mix(in srgb, var(--lk-hp-vital-green) 55%, var(--lk-ivory-50)); }
.lk-kol__record .lk-is-loss b { color: color-mix(in srgb, var(--lk-danger-crimson) 45%, var(--lk-ivory-50)); }
.lk-kol__slpline { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; font: 700 .84rem/1.35 var(--lk-font-ui); color: var(--lk-ivory-100); }
.lk-kol__slpline img { width: 20px; height: 20px; flex: none; }
.lk-kol__slpline.lk-is-done { color: color-mix(in srgb, var(--lk-ivory-200) 65%, transparent); }
.lk-kol__play { display: flex; flex-direction: column; gap: 10px; }
.lk-kol__play h5 { margin: 0; font: 400 1.25rem/1.2 var(--lk-font-display); color: var(--lk-ivory-50); }
.lk-kol__lead { margin: 0; font-size: .84rem; line-height: 1.45; color: color-mix(in srgb, var(--lk-ivory-200) 78%, transparent); }
.lk-kol__cta--block { justify-items: stretch; }
.lk-kol__cta--block > .lk-btn { width: 100%; justify-content: center; }
.lk-kol__cta--block small, .lk-kol__cta--block .lk-kol__note { max-width: none; text-align: left; }
.lk-kol__rulelist { list-style: none; margin: auto 0 0; padding: 10px 0 0; display: grid; gap: 8px; border-top: 1px solid color-mix(in srgb, var(--lk-gilt-300) 16%, transparent); }
.lk-kol__rulelist li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; align-items: start; font-size: .8rem; line-height: 1.45; color: color-mix(in srgb, var(--lk-ivory-200) 78%, transparent); }
.lk-kol__rulelist img { width: 18px; height: 18px; margin-top: 1px; opacity: .85; }
.lk-kol__history .lk-kol__sub { margin-top: 0; }
.lk-kol__arena--v2 .lk-kol__recent li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; padding: 8px 12px; }
.lk-kol__arena--v2 .lk-kol__recent li b { min-width: 0; color: var(--lk-ivory-50); }
.lk-kol__res { min-width: 5.8rem; display: inline-flex; justify-content: center; padding: 3px 10px; border-radius: var(--lk-r-pill); font: 800 .74rem/1.4 var(--lk-font-ui); color: var(--lk-ivory-100); background: color-mix(in srgb, var(--lk-ivory-200) 12%, transparent); }
.lk-kol__recent li.lk-is-win .lk-kol__res { color: color-mix(in srgb, var(--lk-hp-vital-green) 55%, var(--lk-ivory-50)); background: color-mix(in srgb, var(--lk-hp-vital-green) 20%, transparent); }
.lk-kol__recent li.lk-is-loss .lk-kol__res { color: color-mix(in srgb, var(--lk-danger-crimson) 40%, var(--lk-ivory-50)); background: color-mix(in srgb, var(--lk-danger-crimson) 22%, transparent); }
.lk-kol__vs { display: grid; gap: 1px; min-width: 0; }
.lk-kol__vs b { font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lk-kol__vs small { font-size: .74rem; color: color-mix(in srgb, var(--lk-ivory-200) 62%, transparent); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lk-kol__arena--v2 .lk-kol__recent li em { font-weight: 900; font-variant-numeric: tabular-nums; }

/* Bruma: el multiplicador es una amenaza (del dorado al carmesí), «Siguiente» con texto, barra de intentos y fichas de reglas */
.lk-kol__stage .lk-kol__mult { padding: 2px 8px; border-radius: var(--lk-r-pill); color: color-mix(in srgb, color-mix(in srgb, var(--lk-danger-crimson) 55%, var(--lk-ivory-50)) calc(var(--threat, 0) * 100%), var(--lk-gilt-300)); background: color-mix(in srgb, currentColor 14%, transparent); }
.lk-kol__head .lk-kol__st.lk-is-now.lk-is-label { width: auto; height: auto; padding: 2px 8px; border-radius: var(--lk-r-pill); font: 800 .6rem/1.4 var(--lk-font-ui); letter-spacing: .1em; text-transform: uppercase; color: var(--lk-night-900); background: var(--lk-gilt-300); box-shadow: none; }
.lk-kol__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px; border-radius: 14px; background: color-mix(in srgb, var(--lk-night-900) 55%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--lk-gilt-300) 22%, transparent); }
.lk-kol__bar .lk-kol__side { flex: 1 1 auto; display: grid; gap: 6px; min-width: 0; }
.lk-kol__bar .lk-kol__cta { flex: none; }
.lk-kol__bar .lk-kol__cta small { max-width: 26ch; }
.lk-kol__barstats { margin: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; }
.lk-kol__barstats dt { font: 800 .66rem/1 var(--lk-font-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--lk-gilt-300); }
.lk-kol__barstats dd { margin: 6px 0 0; display: flex; align-items: center; gap: 8px; font-weight: 800; color: var(--lk-ivory-50); }
.lk-kol__barstats .lk-is-run dd { color: var(--lk-gilt-300); }
.lk-kol__pips { display: inline-flex; gap: 5px; }
.lk-kol__pips i { width: 9px; height: 9px; transform: rotate(45deg); box-shadow: inset 0 0 0 1.5px var(--lk-gilt-300); }
.lk-kol__pips i.lk-is-on { background: var(--lk-gilt-300); }
.lk-kol__info { display: flex; align-items: center; justify-content: space-between; gap: 10px 18px; flex-wrap: wrap; }
.lk-kol__chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.lk-kol__chips li { padding: 4px 10px; border-radius: var(--lk-r-pill); font: 700 .74rem/1.35 var(--lk-font-ui); color: var(--lk-ivory-200); background: color-mix(in srgb, var(--lk-night-900) 60%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--lk-gilt-300) 18%, transparent); }
.lk-kol__prizeline { margin: 0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: .8rem; }
.lk-kol__prizeline small { margin-right: 2px; font: 800 .66rem/1 var(--lk-font-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--lk-gilt-300); }
.lk-kol__prizeline img { width: 20px; height: 20px; object-fit: contain; }
.lk-kol__prizeline .lk-kol__link { margin-left: 6px; }

/* Clasificación: tipo y periodo en una sola barra; premio en cada fila; tira de premios agrupada */
.lk-kol__boardbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.lk-kol__boardbar .lk-kol__kinds { margin: 0; width: auto; }
.lk-kol__dash { color: color-mix(in srgb, var(--lk-ivory-200) 40%, transparent); }
.lk-kol__prizestrip { margin: 12px 0 8px; padding: 10px 14px; border-radius: 12px; display: flex; align-items: center; gap: 10px 18px; flex-wrap: wrap; background: color-mix(in srgb, var(--lk-night-900) 45%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--lk-gilt-300) 22%, transparent); }
.lk-kol__prizestrip small { font: 800 .66rem/1 var(--lk-font-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--lk-gilt-300); }
.lk-kol__prizestrip ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.lk-kol__prizestrip li { display: inline-flex; align-items: center; gap: 8px; }
.lk-kol__prizestrip .lk-kol__rk { min-width: 0; font-variant-numeric: tabular-nums; }

/* Tamaños */
@media (max-width: 860px) { .lk-kol__arenagrid { grid-template-columns: minmax(0, 1fr); } }
@media (max-height: 700px) {
  .lk-kol__card { padding: 12px 14px; }
  .lk-kol__score { margin: 10px 0 8px; }
  .lk-kol__pts b { font-size: 1.7rem; }
  .lk-kol__rankbadge { min-width: 2.7rem; height: 2.7rem; }
  .lk-kol__record li { padding: 6px 10px; }
  .lk-kol__bar { padding: 10px 14px; }
}
/* Hito 125 · ajustes: «Siguiente» como insignia sobre el borde (no recorta el título); Bruma más compacta; SLP al fondo de la tarjeta */
.lk-kol__head .lk-kol__st.lk-is-now.lk-is-label { position: absolute; top: -9px; right: 10px; box-shadow: 0 2px 6px rgba(0, 0, 0, .4); }
.lk-kol__bruma { gap: 12px; }
.lk-kol__bruma .lk-kol__hero { padding: 14px 18px; }
.lk-kol__season { display: flex; flex-direction: column; }
.lk-kol__season .lk-kol__slpline { margin-top: auto; padding-top: 12px; }
.lk-kol__search--inline { padding: 8px 8px 8px 14px; }
.lk-kol__search--inline > span[role="status"] { flex: 1 1 auto; min-width: 0; }
.lk-kol__search--inline .lk-kol__spin { width: 26px; height: 26px; flex: none; }
.lk-kol__search--inline .lk-btn { flex: none; }
.lk-kol__search--inline > span[role="status"] { display: grid; gap: 2px; text-align: left; }
.lk-kol__season { justify-content: space-between; gap: 10px; }
.lk-kol__season .lk-kol__score { margin: 4px 0; }
.lk-kol__season .lk-kol__slpline { margin-top: 0; padding-top: 0; }

/* ══ Hito 126 · Códice de Lunacia (rpg/ui/CodexModal.js) ════════════════════════════════════════════════
   Libro de marfil: carril de capítulos sobre vidrio y doble página (ilustración · texto). Por encima de los
   demás paneles (se abre desde sus botones «?»). Prefijo lk-cdx (lk-codex__ ya lo usa la Forja). */
.lk-cdx-layer.lk-backdrop { z-index: 1550; }
.lk-cdx-layer > .lk-cdx { width: min(1180px, 100%); height: min(720px, calc(100vh - 40px)); }
.lk-cdx .lk-panel-head .lk-cdx__count { font: 800 .74rem/1 var(--lk-font-ui); letter-spacing: .06em; text-transform: uppercase; color: var(--lk-gilt-300); margin-right: 6px; }
.lk-cdx__body { flex: 1; min-height: 0; display: grid; grid-template-columns: 236px minmax(0, 1fr); border-radius: 0 0 var(--lk-r-lg) var(--lk-r-lg); overflow: hidden; }
.lk-cdx__rail { display: flex; flex-direction: column; gap: 2px; padding: 12px 10px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(211, 174, 108, .35) transparent; border-right: 1px solid rgba(211, 174, 108, .18); }
.lk-cdx__rail button { position: relative; display: grid; grid-template-columns: 26px 22px 1fr; align-items: center; gap: 8px; padding: 8px 24px 8px 10px; border: 0; border-radius: 10px; background: none; color: #AEB6CB; text-align: left; font: 700 .86rem/1.2 var(--lk-font-ui); cursor: pointer; transition: background .15s, color .15s; }
.lk-cdx__rail button img { width: 24px; height: 24px; opacity: .6; filter: grayscale(.35); }
.lk-cdx__rail button:hover { background: rgba(239, 232, 218, .06); color: var(--lk-ivory-50); }
.lk-cdx__rail button.lk-is-on { background: linear-gradient(90deg, rgba(211, 174, 108, .24), rgba(211, 174, 108, .06)); color: var(--lk-ivory-50); box-shadow: inset 3px 0 0 var(--lk-gilt-300); }
.lk-cdx__rail button.lk-is-on img { opacity: 1; filter: none; }
.lk-cdx__ch-n { font: 800 .7rem/1 var(--lk-font-mono, monospace); color: var(--lk-gilt-500); opacity: .8; }
.lk-cdx__new { position: absolute; right: 10px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: #F2C14E; box-shadow: 0 0 8px rgba(242, 193, 78, .8); }
.lk-cdx__book { min-height: 0; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 0; padding: 18px; background: rgba(8, 11, 22, .35); }
.lk-cdx__page { min-height: 0; color: var(--lk-ink-900); background: var(--lk-lattice), linear-gradient(180deg, var(--lk-ivory-50), var(--lk-ivory-100)); }
.lk-cdx__page--art { display: grid; place-items: center; padding: 18px; overflow: hidden; border-radius: 14px 4px 4px 14px; box-shadow: inset -14px 0 22px -14px rgba(90, 64, 30, .35); }
.lk-cdx__page--text { display: flex; flex-direction: column; padding: 26px 30px 18px; overflow-y: auto; border-radius: 4px 14px 14px 4px; box-shadow: inset 14px 0 22px -14px rgba(90, 64, 30, .35); scrollbar-width: thin; scrollbar-color: rgba(157, 122, 66, .45) transparent; }
.lk-cdx__img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 10px; box-shadow: 0 0 0 1px rgba(90, 64, 30, .25), 0 10px 26px rgba(40, 26, 10, .28); background: #1a2033; }
.lk-cdx__art { width: 100%; height: 100%; display: grid; place-items: center; }
.lk-cdx__art svg { width: 100%; height: 100%; max-height: 520px; font-family: var(--lk-font-ui); }
.lk-cdx__img--none { width: 70%; aspect-ratio: 16 / 10; background: repeating-linear-gradient(45deg, rgba(157, 122, 66, .08) 0 10px, transparent 10px 20px); box-shadow: inset 0 0 0 1px rgba(157, 122, 66, .3); }
.lk-cdx__kicker { display: flex; align-items: center; gap: 10px; font: 800 .72rem/1 var(--lk-font-ui); letter-spacing: .1em; text-transform: uppercase; color: var(--lk-gilt-700); }
.lk-cdx__stamp { padding: 4px 8px; border-radius: 999px; border: 1.5px solid #B4472F; color: #B4472F; letter-spacing: .08em; transform: rotate(-4deg); }
.lk-cdx__title { margin: 10px 0 12px; font: 700 1.6rem/1.15 var(--lk-font-display, var(--lk-font-ui)); color: var(--lk-ink-900); }
.lk-cdx__text { font: 500 1rem/1.55 var(--lk-font-ui); color: var(--lk-ink-900); }
.lk-cdx__text p { margin: 0 0 12px; }
.lk-cdx__text b { color: #6B3F12; }
/* tecla: el estilo global de kbd (:where(.lk-ui)) pone el texto en marfil, que no se ve sobre el papel */
.lk-cdx__text kbd, .lk-cdx__tip kbd { display: inline-grid; place-items: center; min-width: 24px; height: 22px; margin: 0 2px; padding: 0 6px; vertical-align: 1px; border-radius: 6px; font: 800 .74rem/1 var(--lk-font-ui); color: var(--lk-ivory-50); background: linear-gradient(180deg, #4A3A22, #2A2014); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .35), 0 0 0 1px rgba(157, 122, 66, .5); }
.lk-cdx__tip { margin: 4px 0 14px; padding: 10px 14px; border-radius: 12px; background: rgba(211, 174, 108, .18); border: 1px solid rgba(157, 122, 66, .3); font: 500 .92rem/1.45 var(--lk-font-ui); color: var(--lk-ink-900); }
.lk-cdx__tip b { color: var(--lk-gilt-700); }
.lk-cdx__go { align-self: flex-start; margin-bottom: 12px; padding: 8px 18px; }
.lk-cdx__nav { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; border-top: 1px solid rgba(157, 122, 66, .25); }
.lk-cdx__arrow { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(157, 122, 66, .45); background: rgba(255, 255, 255, .55); color: var(--lk-gilt-700); font: 800 1.4rem/1 var(--lk-font-ui); cursor: pointer; transition: background .15s, transform .15s; }
.lk-cdx__arrow:hover:not([disabled]) { background: #fff; transform: scale(1.06); }
.lk-cdx__arrow[disabled] { opacity: .35; cursor: default; }
.lk-cdx__dots { display: inline-flex; gap: 6px; }
.lk-cdx__dots button { width: 9px; height: 9px; padding: 0; border-radius: 50%; border: 0; background: rgba(157, 122, 66, .35); cursor: pointer; }
.lk-cdx__dots button.lk-is-on { background: var(--lk-gilt-700); transform: scale(1.25); }
.lk-cdx-help { font: 800 1.05rem/1 var(--lk-font-ui); }
.lk-panel-head .lk-cdx-help + .lk-btn-close-x { margin-left: 8px; }
@media (max-width: 900px) {
  .lk-cdx__body { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); }
  .lk-cdx__rail { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid rgba(211, 174, 108, .18); }
  .lk-cdx__rail button { grid-template-columns: 24px auto; white-space: nowrap; flex: none; }
  .lk-cdx__ch-n { display: none; }
  .lk-cdx__new { right: 8px; top: 8px; margin-top: 0; }
  .lk-cdx__img { max-height: 30vh; }
  .lk-cdx__book { grid-template-columns: 1fr; grid-template-rows: minmax(0, 40%) minmax(0, 1fr); padding: 10px; }
  .lk-cdx__page--art, .lk-cdx__page--text { border-radius: 12px; }
}

/* Hito 126 · C3: páginas generadas del Códice (Bestiario, cartas, clase, Ultimate) */
.lk-cdx__art--gen { padding: 4px; }
.lk-cdx-beast { position: relative; width: min(100%, 360px); aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 50% 42%, #FFF9EC, #EADBBE 70%); box-shadow: inset 0 0 0 3px rgba(157, 122, 66, .35), 0 12px 26px rgba(70, 48, 20, .25); }
.lk-cdx-beast img { width: 82%; height: 82%; object-fit: contain; filter: drop-shadow(0 8px 10px rgba(40, 26, 10, .35)); }
.lk-cdx-beast.lk-is-locked img { filter: brightness(0) opacity(.55); }
.lk-cdx-beast__q { position: absolute; font: 900 4.5rem/1 var(--lk-font-display, serif); color: #FFF4D6; text-shadow: 0 2px 10px rgba(0, 0, 0, .5); }
.lk-cdx-beast__biome { position: absolute; top: 6%; left: 50%; transform: translateX(-50%); padding: 5px 12px; border-radius: 999px; background: #2B3350; color: #EED39A; font: 800 .72rem/1 var(--lk-font-ui); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.lk-cdx-gen__role { margin: -4px 0 10px; font: 800 .82rem/1.2 var(--lk-font-ui); letter-spacing: .06em; text-transform: uppercase; color: var(--lk-gilt-700); }
.lk-cdx-gen__h { margin: 14px 0 6px; font: 800 .78rem/1 var(--lk-font-ui); letter-spacing: .1em; text-transform: uppercase; color: var(--lk-gilt-700); }
.lk-cdx-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.lk-cdx-stats span { display: flex; flex-direction: column; align-items: center; padding: 8px 4px; border-radius: 10px; background: rgba(211, 174, 108, .16); border: 1px solid rgba(157, 122, 66, .25); font: 700 .74rem/1.2 var(--lk-font-ui); color: var(--lk-ink-900); }
.lk-cdx-stats b { font: 800 1.2rem/1.1 var(--lk-font-ui); }
.lk-cdx-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.lk-cdx-list li { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: start; }
.lk-cdx-list li > img { width: 34px; height: 34px; border-radius: 8px; object-fit: cover; background: #2B3350; }
.lk-cdx-list li > span { font: 600 .9rem/1.35 var(--lk-font-ui); color: var(--lk-ink-900); }
.lk-cdx-list em { font-style: normal; font-weight: 700; color: var(--lk-gilt-700); font-size: .8rem; }
.lk-cdx-list small { display: block; margin-top: 2px; font: 500 .82rem/1.35 var(--lk-font-ui); opacity: .8; }
.lk-cdx-list--ult li { grid-template-columns: 6px 1fr; }
.lk-cdx-list--ult li::before { content: ''; width: 6px; height: 100%; min-height: 36px; border-radius: 3px; background: var(--c); }
.lk-cdx-drops { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.lk-cdx-drops span { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 999px; background: rgba(211, 174, 108, .16); border: 1px solid rgba(157, 122, 66, .25); font: 700 .82rem/1 var(--lk-font-ui); }
.lk-cdx-drops img { width: 24px; height: 24px; object-fit: contain; }
.lk-cdx-cards { position: relative; width: 100%; height: 100%; min-height: 300px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; align-content: center; padding: 6px; }
.lk-cdx-cards img { width: 100%; border-radius: 10px; box-shadow: 0 8px 18px rgba(40, 26, 10, .3); transform: rotate(calc((var(--i) - 2.5) * 1.2deg)); }
.lk-cdx-class { display: grid; justify-items: center; gap: 16px; }
.lk-cdx-class__ico { width: 150px; height: 150px; object-fit: contain; filter: drop-shadow(0 10px 16px rgba(40, 26, 10, .35)); }
.lk-cdx-class__grid { display: grid; grid-template-columns: repeat(3, 64px); gap: 10px; }
.lk-cdx-class__grid img { width: 64px; height: 64px; border-radius: 12px; background: #2B3350; box-shadow: 0 0 0 2px rgba(157, 122, 66, .5); }
.lk-cdx-ults { display: grid; gap: 14px; width: min(100%, 340px); }
.lk-cdx-ult { position: relative; padding: 16px 18px; border-radius: 14px; background: #FFF8EA; border: 3px solid var(--c); box-shadow: 0 8px 18px rgba(40, 26, 10, .18); }
.lk-cdx-ult__triad { display: block; font: 800 .72rem/1 var(--lk-font-ui); letter-spacing: .1em; text-transform: uppercase; color: var(--lk-gilt-700); margin-bottom: 4px; }
.lk-cdx-ult b { font: 700 1.15rem/1.2 var(--lk-font-display, var(--lk-font-ui)); color: var(--lk-ink-900); }
.lk-cdx-ult em { position: absolute; top: 12px; right: 12px; padding: 3px 9px; border-radius: 999px; background: var(--c); color: #fff; font: 800 .7rem/1.2 var(--lk-font-ui); font-style: normal; }
.lk-cdx-ult.lk-is-mine { transform: scale(1.04); box-shadow: 0 0 0 4px rgba(242, 193, 78, .45), 0 10px 22px rgba(40, 26, 10, .25); }
.lk-cdx__dots--many { flex-wrap: wrap; justify-content: center; max-width: 70%; gap: 4px; }
.lk-cdx__dots--many button { width: 7px; height: 7px; }
.lk-cdx__dots button.lk-is-locked { background: rgba(43, 51, 80, .25); }

/* ===== Hito 127: Códice más claro (índice del capítulo, imágenes ampliables, pasar página con texto, progreso en el carril) ===== */
/* Carril: el progreso de lectura de cada capítulo (✓ leído · 1/3 a medias · punto si está sin empezar) */
.lk-cdx__rail button { grid-template-columns: 26px 22px minmax(0, 1fr) auto; padding-right: 10px; }
.lk-cdx__rail .lk-cdx__new { position: static; margin: 0 4px; }
.lk-cdx__prog { font: 800 .66rem/1 var(--lk-font-ui); font-style: normal; color: var(--lk-gilt-300); padding: 3px 7px; border-radius: var(--lk-r-pill); background: color-mix(in srgb, var(--lk-gilt-300) 14%, transparent); font-variant-numeric: tabular-nums; }
.lk-cdx__done { width: 16px; height: 16px; display: grid; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--lk-gilt-300) 85%, transparent); }
.lk-cdx__done::before { content: '✓'; font: 900 .66rem/1 var(--lk-font-ui); font-style: normal; color: var(--lk-night-900); }

/* Página de la ilustración: la imagen como lámina y, debajo, el índice del capítulo */
.lk-cdx__page--art { display: flex; flex-direction: column; gap: 16px; padding: 22px 22px 18px; place-items: initial; }
.lk-cdx__media { position: relative; flex: 1 1 auto; min-height: 0; display: grid; place-items: center; }
.lk-cdx__plate { position: relative; margin: 0; width: 100%; height: 100%; display: grid; place-items: center; }
.lk-cdx__plate .lk-cdx__img { max-width: 100%; max-height: 100%; cursor: zoom-in; border: 6px solid #FFFDF8; transform: rotate(-.6deg); box-shadow: 0 0 0 1px rgba(90, 64, 30, .22), 0 12px 26px rgba(40, 26, 10, .3); }
.lk-cdx__zoom { position: absolute; right: 4px; bottom: 4px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--lk-gilt-700) 45%, transparent); background: color-mix(in srgb, var(--lk-ivory-50) 92%, transparent); box-shadow: 0 4px 10px rgba(40, 26, 10, .22); cursor: pointer; transition: transform .15s var(--lk-ease), background .15s; }
.lk-cdx__zoom:hover { transform: scale(1.06); background: #fff; }
.lk-cdx__zoom span { width: 14px; height: 14px; border: 2.5px solid var(--lk-gilt-700); border-radius: 50%; position: relative; margin: -3px 0 0 -3px; }
.lk-cdx__zoom span::after { content: ''; position: absolute; width: 7px; height: 2.5px; right: -7px; bottom: -4px; background: var(--lk-gilt-700); border-radius: 2px; transform: rotate(45deg); }
.lk-cdx__toc { flex: none; padding-top: 12px; border-top: 1px solid color-mix(in srgb, var(--lk-gilt-700) 25%, transparent); }
.lk-cdx__toc small { font: 800 .7rem/1 var(--lk-font-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--lk-gilt-700); }
.lk-cdx__toc ol { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 2px; }
.lk-cdx__toc button { width: 100%; display: grid; grid-template-columns: 22px minmax(0, 1fr); align-items: center; gap: 10px; padding: 6px 10px; border: 0; border-radius: 8px; background: none; text-align: left; font: 600 .88rem/1.25 var(--lk-font-ui); color: color-mix(in srgb, var(--lk-ink-900) 78%, transparent); cursor: pointer; transition: background .15s; }
.lk-cdx__toc button:hover { background: color-mix(in srgb, var(--lk-gilt-300) 14%, transparent); }
.lk-cdx__toc button.lk-is-on { font-weight: 800; color: var(--lk-ink-900); background: color-mix(in srgb, var(--lk-gilt-300) 22%, transparent); box-shadow: inset 3px 0 0 var(--lk-gilt-700); }
.lk-cdx__toc-n { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; font: 800 .7rem/1 var(--lk-font-ui); color: var(--lk-gilt-700); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--lk-gilt-700) 55%, transparent); }
.lk-cdx__toc button.lk-is-read .lk-cdx__toc-n { background: color-mix(in srgb, var(--lk-gilt-300) 30%, transparent); }
.lk-cdx__toc button.lk-is-on .lk-cdx__toc-n { color: var(--lk-ivory-50); background: var(--lk-gilt-700); box-shadow: none; }
.lk-cdx__toc-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Imagen ampliada: ocupa toda la doble página (Esc o el mismo botón vuelven) */
.lk-cdx__book--zoom { grid-template-columns: minmax(0, 1fr); }
.lk-cdx__book--zoom .lk-cdx__page--text, .lk-cdx__book--zoom .lk-cdx__toc { display: none; }
.lk-cdx__book--zoom .lk-cdx__page--art { border-radius: 14px; }
.lk-cdx__book--zoom .lk-cdx__img { cursor: zoom-out; transform: none; }

/* Pasar página: botones con texto; al final de un capítulo dicen cuál sigue y se resaltan */
.lk-cdx__arrow { width: auto; min-width: 38px; max-width: 42%; height: 38px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: var(--lk-r-pill); font-size: 1.2rem; }
.lk-cdx__arrow em { font: 800 .8rem/1 var(--lk-font-ui); font-style: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lk-cdx__arrow:hover:not([disabled]) { transform: none; }
.lk-cdx__arrow.lk-is-chapter:not([disabled]) { color: var(--lk-ivory-50); border-color: transparent; background: var(--lk-gilt-700); box-shadow: 0 4px 10px rgba(90, 64, 30, .25); }
.lk-cdx__arrow.lk-is-chapter:not([disabled]):hover { background: color-mix(in srgb, var(--lk-gilt-700) 85%, black); }
.lk-cdx__dots { gap: 0; }
.lk-cdx__dots button { width: 22px; height: 22px; display: grid; place-items: center; background: none; }
.lk-cdx__dots button::after { content: ''; width: 9px; height: 9px; border-radius: 50%; background: rgba(157, 122, 66, .35); transition: transform .15s, background .15s; }
.lk-cdx__dots button.lk-is-on { background: none; transform: none; }
.lk-cdx__dots button.lk-is-on::after { background: var(--lk-gilt-700); transform: scale(1.3); }
.lk-cdx__dots button.lk-is-locked::after { background: rgba(43, 51, 80, .25); }
.lk-cdx__counter { display: grid; justify-items: center; gap: 5px; font: 700 .8rem/1 var(--lk-font-ui); color: var(--lk-gilt-700); font-variant-numeric: tabular-nums; }
.lk-cdx__counter b { font-weight: 900; color: var(--lk-ink-900); }
.lk-cdx__counter i { position: relative; width: 110px; height: 4px; border-radius: var(--lk-r-pill); background: color-mix(in srgb, var(--lk-gilt-700) 20%, transparent); overflow: hidden; }
.lk-cdx__counter i::after { content: ''; position: absolute; inset: 0 auto 0 0; width: calc(var(--p, 0) * 100%); background: var(--lk-gilt-700); border-radius: inherit; }

/* Al pasar página, el contenido aparece suave (sin movimiento con «reducir movimiento») */
.lk-cdx__page { animation: lkCdxIn .22s var(--lk-ease) both; }
@keyframes lkCdxIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .lk-cdx__page { animation: none; } .lk-cdx__plate .lk-cdx__img { transform: none; } }

/* Poca altura: el índice se oculta para dejar sitio a la ilustración */
@media (max-height: 700px) { .lk-cdx__toc { display: none; } }
/* Hito 127 · ajustes: «Ampliar la imagen» bajo la lámina; contador en una línea; carril algo más ancho */
.lk-cdx__plate { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
.lk-cdx__plate .lk-cdx__img { max-height: calc(100% - 48px); }
.lk-cdx__zoom { position: static; width: auto; height: 32px; padding: 0 14px 0 10px; gap: 8px; display: inline-flex; align-items: center; border-radius: var(--lk-r-pill); }
.lk-cdx__zoom:hover { transform: none; }
.lk-cdx__zoom span { width: 12px; height: 12px; border-width: 2px; margin: -2px 2px 0 0; }
.lk-cdx__zoom span::after { width: 6px; height: 2px; right: -6px; bottom: -3px; }
.lk-cdx__zoom em { font: 800 .78rem/1 var(--lk-font-ui); font-style: normal; color: var(--lk-gilt-700); }
.lk-cdx__counter > span { white-space: nowrap; }
@media (min-width: 1101px) { .lk-cdx__body { grid-template-columns: 256px minmax(0, 1fr); } }
/* Hito 127 · pantallas estrechas (≤ 900 px): se mantiene el diseño de una columna del Hito 126 */
@media (max-width: 900px) {
  .lk-cdx__rail button { grid-template-columns: 24px auto auto; padding-right: 10px; }
  .lk-cdx__page--art { display: grid; place-items: center; padding: 12px; }
  .lk-cdx__plate .lk-cdx__img { max-height: 24vh; }
  .lk-cdx__zoom, .lk-cdx__toc { display: none; }
}
/* Hito 127 · corrección: las capturas verticales (p. ej. «Cuidar el vínculo») tapaban el índice. La rejilla de la
   ilustración tenía una fila de alto automático y el límite de altura de la imagen no tenía referencia. Ahora la
   lámina reparte su alto fijo entre la imagen (lo que quede) y el botón «Ampliar». */
.lk-cdx__media { display: flex; flex-direction: column; overflow: hidden; }
.lk-cdx__media > * { flex: 1 1 auto; min-height: 0; }
.lk-cdx__plate { display: grid; grid-template-rows: minmax(0, 1fr) auto; justify-items: center; align-items: center; gap: 12px; height: auto; }
.lk-cdx__plate .lk-cdx__img { max-width: 100%; max-height: 100%; min-height: 0; }

/* Hito 126 · Etiqueta «Nuevo» de runas y charms. Antes iba en línea con `font: … inherit`, que el navegador
   descarta entera (inherit no vale dentro del atajo font) y la etiqueta heredaba el tamaño grande del contenedor. */
.lk-rc-new { position: absolute; top: -6px; left: -6px; z-index: 2; padding: 1px 6px; border-radius: 8px; background: #E5B85C; color: #2a1a05;
  font-family: var(--lk-font-ui); font-size: 10px; font-weight: 800; font-style: normal; line-height: 1.4; letter-spacing: .02em; white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .4); pointer-events: none; }
/* Hito 126 · Las fichas flotantes (materiales de la Forja, objetos de la Mochila) nunca roban un clic */
.lk-mat-tip, .lk-tt-item { pointer-events: none; }

/* ══ Hito 131 · Selector de aventura: escenario de la ranura elegida + lista de ranuras ══════════════════════════ */
.lk-start__select .lk-sel-body.lk-sel2 { display: grid; grid-template-columns: minmax(0, 1fr) 21.5rem; gap: 1.25rem; align-content: start; align-items: stretch; padding-block: 1.25rem 0.5rem; }
/* Escenario */
.lk-advstage { position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-rows: minmax(0, 1fr) auto; height: clamp(21rem, calc(100vh - 15.5rem), 40rem);
  border-radius: var(--lk-r-lg); box-shadow: var(--lk-shadow-2, 0 1.25rem 2.5rem rgba(0, 0, 0, .45)), inset 0 0 0 1px var(--lk-gilt-line); }
.lk-advstage::before { content: ''; position: absolute; inset: auto -5% 0; height: 62%; z-index: -1; background: rgba(255, 255, 255, .1);
  clip-path: polygon(0 58%, 12% 30%, 24% 50%, 38% 18%, 52% 44%, 66% 22%, 80% 46%, 92% 28%, 100% 40%, 100% 100%, 0 100%); }
.lk-advstage::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, transparent 30%, color-mix(in srgb, var(--lk-night-900) 55%, transparent) 62%, var(--lk-night-900) 100%); }
.lk-advstage.lk-is-empty::before { background: rgba(255, 255, 255, .05); }
.lk-advstage__view { position: relative; min-height: 0; }
.lk-advstage__fig { position: absolute; inset: 12% 0 22%; display: flex; align-items: flex-end; justify-content: center; pointer-events: none; }
.lk-advstage__sapi { height: 100%; max-height: 24rem; aspect-ratio: 3 / 4; object-fit: contain; object-position: 50% 100%; filter: drop-shadow(0 0.6rem 0.8rem rgba(0, 0, 0, .35)); }
.lk-advstage__axie { height: 46%; max-height: 10.5rem; aspect-ratio: 1; object-fit: contain; margin-left: -3.5rem; filter: drop-shadow(0 0.5rem 0.6rem rgba(0, 0, 0, .35)); }
.lk-advstage__plus { width: 4.5rem; height: 4.5rem; margin-bottom: 2.4rem; display: grid; place-items: center; transform: rotate(45deg); border-radius: 0.75rem;
  box-shadow: inset 0 0 0 1.5px var(--lk-gilt-300), 0 0 1.5rem color-mix(in srgb, var(--lk-gilt-300) 25%, transparent); color: var(--lk-gilt-300); font: 300 2rem/1 var(--lk-font-ui); }
.lk-advstage__plus span { transform: rotate(-45deg); }
/* Capa 3D (Fase B): encima del retrato; aparece con un fundido cuando el modelo está listo */
.lk-advstage__3d { position: absolute; inset: 0; z-index: 1; opacity: 0; transition: opacity .45s var(--lk-ease); }
.lk-advstage__3d canvas { display: block; width: 100% !important; height: 100% !important; }
.lk-advstage.lk-has-3d .lk-advstage__3d { opacity: 1; }
.lk-advstage.lk-has-3d .lk-advstage__fig { opacity: 0; transition: opacity .3s var(--lk-ease) .15s; }
.lk-advstage__hint { position: absolute; left: 50%; bottom: 0.4rem; transform: translateX(-50%); z-index: 2; pointer-events: none; opacity: 0;
  font: 700 0.68rem/1 var(--lk-font-ui); letter-spacing: 0.04em; color: color-mix(in srgb, var(--lk-ivory-50) 75%, transparent); transition: opacity .3s; }
.lk-advstage.lk-has-3d .lk-advstage__view:hover .lk-advstage__hint { opacity: 1; }
/* Flechas */
.lk-advstage__nav { position: absolute; top: 50%; z-index: 3; width: 2.75rem; height: 2.75rem; margin-top: -1.375rem; display: grid; place-items: center; cursor: pointer;
  border: 0; border-radius: 50%; color: var(--lk-gilt-100); font: 400 1.7rem/1 var(--lk-font-display); background: color-mix(in srgb, var(--lk-night-900) 62%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--lk-gilt-300) 45%, transparent), 0 0.4rem 0.9rem rgba(0, 0, 0, .35); transition: transform .15s var(--lk-ease), background .15s; }
.lk-advstage__nav span { margin-top: -0.15rem; }
.lk-advstage__nav.lk-is-prev { left: 1rem; }
.lk-advstage__nav.lk-is-next { right: 1rem; }
.lk-advstage__nav:hover { background: color-mix(in srgb, var(--lk-night-700) 85%, transparent); transform: scale(1.06); }
.lk-advstage__nav:focus-visible { outline: none; box-shadow: inset 0 0 0 1.5px var(--lk-lumen-300), 0 0 0 0.25rem color-mix(in srgb, var(--lk-lumen-300) 30%, transparent); }
/* Placa: nivel, nombre, clase + Axie y zona a la izquierda; Jugar a la derecha (deja el alto al personaje) */
.lk-advstage__plate { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "eb play" "nm play" "mt play" "wh play";
  align-items: center; column-gap: 1.5rem; row-gap: 0.2rem; padding: 0.25rem 1.75rem 1.4rem; text-align: left; }
.lk-advstage__eyebrow { grid-area: eb; display: inline-flex; align-items: center; gap: 0.6rem; font: 800 0.68rem/1 var(--lk-font-ui); letter-spacing: 0.2em; text-transform: uppercase; color: var(--lk-gilt-300); }
.lk-advstage__eyebrow::after { content: ''; width: 2rem; height: 1px; background: color-mix(in srgb, var(--lk-gilt-300) 60%, transparent); }
.lk-advstage__name { grid-area: nm; margin: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 400 2.1rem/1.1 var(--lk-font-display); color: var(--lk-ivory-50); text-shadow: 0 0.15rem 0.6rem rgba(0, 0, 0, .5); }
.lk-advstage__meta { grid-area: mt; margin: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 0.3rem; font: 700 0.86rem/1.35 var(--lk-font-ui); color: var(--lk-ivory-200, #E6DCC6); }
.lk-advstage__meta img { width: 1rem; height: 1rem; vertical-align: -0.2rem; margin-right: 0.2rem; }
.lk-advstage__where { grid-area: wh; margin: 0; min-height: 1.1rem; display: flex; align-items: center; gap: 0.35rem; font: 700 0.76rem/1.3 var(--lk-font-ui); color: #AEB6CB; }
.lk-advstage__where img { width: 0.9rem; height: 0.9rem; }
.lk-advstage__where i { font-style: normal; opacity: .6; }
.lk-advstage.lk-is-empty .lk-advstage__meta { max-width: 24rem; font-weight: 600; color: #AEB6CB; }
.lk-advstage__play { grid-area: play; align-self: end; min-width: 14rem; justify-content: center; }
@media (max-width: 720px) {
  .lk-advstage__plate { grid-template-columns: minmax(0, 1fr); grid-template-areas: "eb" "nm" "mt" "wh" "play"; }
  .lk-advstage__play { justify-self: stretch; margin-top: 0.5rem; }
}
/* Cambio de ranura: el personaje y la placa entran suaves (sin mover el diseño) */
.lk-advstage--swap .lk-advstage__fig, .lk-advstage--swap .lk-advstage__plate > :not(.lk-advstage__play) { animation: lkStageIn .35s var(--lk-ease) both; }
@keyframes lkStageIn { from { opacity: 0; transform: translateY(0.4rem); } }
/* Lista de ranuras */
.lk-sel-side { display: flex; flex-direction: column; gap: 0.75rem; min-width: 0; }
.lk-sel-side .lk-sel-head { align-items: baseline; }
.lk-sel-side .lk-sel-head h3 { font-size: 1.45rem; }
.lk-sel-count { font: 800 0.72rem/1 var(--lk-font-ui); letter-spacing: 0.08em; color: var(--lk-gilt-500); }
.lk-slist { display: grid; gap: 0.625rem; }
.lk-srow { position: relative; display: grid; grid-template-columns: 3.5rem minmax(0, 1fr) auto; align-items: center; gap: 0.8rem; min-height: 5.25rem; padding: 0.7rem 0.6rem 0.7rem 0.8rem;
  border-radius: var(--lk-r-md); cursor: pointer; outline: none; background: linear-gradient(180deg, rgba(26, 34, 54, .92), rgba(14, 20, 38, .94));
  box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, .32), inset 0 0 0 1px rgba(211, 174, 108, .16); transition: box-shadow .2s var(--lk-ease), transform .2s var(--lk-ease); }
.lk-srow:hover { box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, .32), inset 0 0 0 1px rgba(211, 174, 108, .4); } /* Hito 135: sin desplazarse */
.lk-srow[aria-selected="true"]:hover { box-shadow: 0 0.75rem 1.6rem rgba(0, 0, 0, .4), inset 0 0 0 1.5px var(--lk-gilt-100, #F5E6C4), 0 0 1.6rem color-mix(in srgb, var(--lk-gilt-300) 26%, transparent); }
.lk-srow[aria-selected="true"] { background: linear-gradient(180deg, rgba(38, 46, 72, .96), rgba(20, 27, 48, .96));
  box-shadow: 0 0.75rem 1.6rem rgba(0, 0, 0, .4), inset 0 0 0 1.5px var(--lk-gilt-300), 0 0 1.4rem color-mix(in srgb, var(--lk-gilt-300) 18%, transparent); }
.lk-srow[aria-selected="true"]::before { content: ''; position: absolute; left: -0.45rem; top: 50%; width: 0.5rem; height: 0.5rem; margin-top: -0.25rem; transform: rotate(45deg);
  background: var(--lk-gilt-300); box-shadow: 0 0 0.6rem color-mix(in srgb, var(--lk-gilt-300) 60%, transparent); }
.lk-srow:focus-visible { box-shadow: inset 0 0 0 1.5px var(--lk-lumen-300), 0 0 0 0.25rem color-mix(in srgb, var(--lk-lumen-300) 28%, transparent); }
.lk-srow__av { width: 3.5rem; height: 3.5rem; border-radius: 50%; overflow: hidden; background: radial-gradient(circle at 50% 30%, #33457A, #0E1426 78%);
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--lk-lumen-500) 70%, transparent); }
.lk-srow__av img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; } /* Hito 135: como el medallón de antes (sin ampliar) */
.lk-srow__txt { display: grid; gap: 0.12rem; min-width: 0; }
.lk-srow__txt b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 400 1.15rem/1.2 var(--lk-font-display); color: var(--lk-ivory-50); }
.lk-srow__txt small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 0.74rem/1.3 var(--lk-font-ui); color: #AEB6CB; }
.lk-srow__txt small.lk-srow__when { font-size: 0.68rem; color: #6E7894; }
.lk-srow__n { display: flex; align-items: center; gap: 0.4rem; font: 800 0.6rem/1.2 var(--lk-font-ui); letter-spacing: 0.18em; text-transform: uppercase; color: var(--lk-gilt-500); }
.lk-srow__n .lk-recent { letter-spacing: 0.08em; font-size: 0.54rem; padding: 0.1rem 0.4rem; }
.lk-srow .lk-kebab { margin: 0; align-self: start; }
.lk-srow .lk-kmenu { right: 0.5rem; top: 2.6rem; }
.lk-srow:has(.lk-kmenu.lk-is-on) { z-index: 6; }
.lk-srow.lk-is-empty { background: rgba(11, 15, 28, .45); box-shadow: inset 0 0 0 1.5px rgba(211, 174, 108, .22); }
.lk-srow.lk-is-empty[aria-selected="true"] { background: rgba(20, 27, 48, .7); box-shadow: inset 0 0 0 1.5px var(--lk-gilt-300), 0 0 1.4rem color-mix(in srgb, var(--lk-gilt-300) 14%, transparent); }
.lk-srow__plus { justify-self: center; width: 2.4rem; height: 2.4rem; display: grid; place-items: center; transform: rotate(45deg); border-radius: 0.5rem;
  box-shadow: inset 0 0 0 1.5px var(--lk-gilt-300); color: var(--lk-gilt-300); font: 400 1.2rem/1 var(--lk-font-ui); }
.lk-srow__plus span { transform: rotate(-45deg); }
.lk-sel-keys { margin-top: auto; display: flex; align-items: center; flex-wrap: wrap; gap: 0.35rem; font: 700 0.72rem/1.4 var(--lk-font-ui); color: #8D97AF; }
@media (max-width: 960px) {
  .lk-start__select .lk-sel-body.lk-sel2 { grid-template-columns: minmax(0, 1fr); }
  .lk-advstage { height: clamp(20rem, 58vh, 30rem); }
}
@media (max-height: 640px) {
  .lk-advstage__name { font-size: 1.7rem; }
  .lk-advstage__plate { gap: 0.2rem; padding-bottom: 0.9rem; }
  .lk-srow { min-height: 4.5rem; padding-block: 0.5rem; }
}
html.lk-reduce-motion .lk-advstage--swap .lk-advstage__fig, html.lk-reduce-motion .lk-advstage--swap .lk-advstage__plate > * { animation: none; }
html.lk-reduce-motion .lk-srow, html.lk-reduce-motion .lk-advstage__3d, html.lk-reduce-motion .lk-advstage__fig { transition: none; }
@media (prefers-reduced-motion: reduce) {
  .lk-advstage--swap .lk-advstage__fig, .lk-advstage--swap .lk-advstage__plate > * { animation: none; }
  .lk-srow, .lk-advstage__3d, .lk-advstage__fig { transition: none; }
}

/* ══ Hito 132 · Panel «Tu partida» (y ranura vacía) ══════════════════════════════════ */
/* (Hito 133: la isla SVG pasa a ser 3D, SlotIsland.js) */
.lk-advstage.lk-is-empty .lk-advstage__plus { margin-bottom: 0; }
.lk-advstage.lk-is-empty .lk-advstage__fig { align-items: flex-end; padding-bottom: 1rem; }
/* Panel «Tu partida» */
.lk-sel-info { display: grid; gap: 0.6rem; padding: 0.85rem 0.95rem; border-radius: var(--lk-r-md); background: color-mix(in srgb, var(--lk-night-900) 55%, transparent);
  box-shadow: inset 0 0 0 1px rgba(211, 174, 108, .14); }
.lk-sel-info[hidden] { display: none; }
.lk-sel-info__t { margin: 0; font: 800 0.62rem/1 var(--lk-font-ui); letter-spacing: 0.18em; text-transform: uppercase; color: var(--lk-gilt-500); }
.lk-sel-info__quest { display: grid; grid-template-columns: 1.75rem minmax(0, 1fr); gap: 0.6rem; align-items: start; }
.lk-sel-info__quest img { width: 1.75rem; height: 1.75rem; }
.lk-sel-info__quest span { display: grid; gap: 0.12rem; min-width: 0; }
.lk-sel-info__quest small { font: 700 0.66rem/1.2 var(--lk-font-ui); color: #8D97AF; }
.lk-sel-info__quest b { font: 400 1.02rem/1.25 var(--lk-font-display); color: var(--lk-ivory-50); }
.lk-sel-info__quest em { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font: 600 0.76rem/1.35 var(--lk-font-ui); font-style: normal; color: #C8CFDF; }
.lk-sel-info__quest kbd { padding: 0 0.3rem; border-radius: 0.25rem; font: 800 0.66rem/1.4 var(--lk-font-ui); color: var(--lk-ink-900); background: var(--lk-ivory-100); }
.lk-sel-info__stats { margin: 0; display: flex; flex-wrap: wrap; gap: 0.4rem 1.1rem; padding-top: 0.55rem; border-top: 1px solid rgba(211, 174, 108, .12); }
.lk-sel-info__stats div { display: flex; align-items: center; gap: 0.4rem; }
.lk-sel-info__stats dt { display: flex; align-items: center; gap: 0.3rem; font: 700 0.7rem/1 var(--lk-font-ui); color: #8D97AF; }
.lk-sel-info__stats dt img { width: 1rem; height: 1rem; }
.lk-sel-info__stats dd { margin: 0; font: 800 0.76rem/1 var(--lk-font-ui); color: var(--lk-ivory-50); }
/* La columna nunca es más alta que el escenario: su alto lo marca la fila (contain), y el panel cede si no cabe */
/* Hito 135: margen interior para que el brillo y el rombo de la fila elegida no queden recortados */
.lk-start__select .lk-sel2 > .lk-sel-side { contain: size; overflow: hidden; padding: 0.6rem 0.6rem 0.2rem 0.75rem; margin: -0.6rem -0.6rem -0.2rem -0.75rem; }
@media (max-height: 740px) { .lk-sel-info__quest em { -webkit-line-clamp: 1; } .lk-sel-info { padding-block: 0.6rem; gap: 0.45rem; } .lk-sel-keys { display: none; } }
@media (max-height: 680px) { .lk-sel-info { display: none; } .lk-sel-keys { display: flex; } }
@media (max-width: 960px) { .lk-start__select .lk-sel2 > .lk-sel-side { contain: none; overflow: visible; } }

/* ══ Hito 133 · Cielo estrellado del título dentro del escenario + isla 3D por bioma (SlotIsland.js) ═════════════ */
/* Noche del título, luz de luna detrás del personaje y un brillo de horizonte con el color de la isla (--hz) */
.lk-advstage { --hz: #5FBF8A;
  background:
    radial-gradient(ellipse 52% 40% at 50% 30%, rgba(169, 204, 255, .2), transparent 70%),
    radial-gradient(ellipse 85% 30% at 50% 78%, color-mix(in srgb, var(--hz) 34%, transparent), transparent 72%),
    radial-gradient(1.6px 1.6px at 9% 14%, rgba(255, 255, 255, .85), transparent),
    radial-gradient(1px 1px at 21% 31%, rgba(255, 255, 255, .7), transparent),
    radial-gradient(1.3px 1.3px at 33% 9%, rgba(255, 255, 255, .8), transparent),
    radial-gradient(1px 1px at 46% 22%, rgba(255, 255, 255, .55), transparent),
    radial-gradient(1.6px 1.6px at 63% 12%, rgba(255, 255, 255, .85), transparent),
    radial-gradient(1px 1px at 74% 27%, rgba(255, 255, 255, .65), transparent),
    radial-gradient(1.3px 1.3px at 86% 8%, rgba(255, 255, 255, .8), transparent),
    radial-gradient(1px 1px at 93% 35%, rgba(255, 255, 255, .6), transparent),
    radial-gradient(1px 1px at 4% 44%, rgba(255, 255, 255, .5), transparent),
    radial-gradient(1.2px 1.2px at 57% 40%, rgba(255, 255, 255, .45), transparent),
    linear-gradient(180deg, #121A36 0%, #1B2550 55%, #111833 100%); }
.lk-advstage[data-biome="savannah"] { --hz: #F2A65A; }
.lk-advstage[data-biome="arctic"] { --hz: #9FD0FF; }
.lk-advstage[data-biome="mystic"] { --hz: #FF9EC4; }
.lk-advstage[data-biome="genesis"] { --hz: #5FD0C8; }
.lk-advstage[data-biome="none"] { --hz: #8FA3D8; }
/* Montañas lejanas en silueta, teñidas apenas por el horizonte */
.lk-advstage::before { height: 46%; background: color-mix(in srgb, var(--hz) 10%, #141C3C); opacity: .9; }
.lk-advstage.lk-is-empty::before { background: color-mix(in srgb, var(--hz) 6%, #141C3C); }
.lk-advstage::after { background: linear-gradient(180deg, transparent 55%, color-mix(in srgb, var(--lk-night-900) 70%, transparent) 82%, var(--lk-night-900) 100%); }
/* Anillo de luz en la línea de los pies: bajo el retrato mientras carga el 3D y en la ranura vacía */
.lk-advstage__ring { position: absolute; left: 50%; top: calc(78% - 1.4rem); width: min(20rem, 60%); height: 3.2rem; transform: translateX(-50%); border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--lk-gilt-300) 36%, transparent), color-mix(in srgb, var(--lk-gilt-300) 10%, transparent) 60%, transparent 74%);
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--lk-gilt-300) 65%, transparent), 0 0 2rem color-mix(in srgb, var(--lk-gilt-300) 22%, transparent);
  transition: opacity .35s var(--lk-ease); }
.lk-advstage.lk-has-3d .lk-advstage__ring { opacity: 0; }
.lk-advstage.lk-is-empty .lk-advstage__fig { padding-bottom: 1.4rem; }
/* El botón y los textos de la placa quedan por encima de la isla, que cuelga entre ellos */
.lk-advstage__plate { pointer-events: none; }
.lk-advstage__plate > * { pointer-events: auto; }
.lk-advstage__name, .lk-advstage__meta, .lk-advstage__where { text-shadow: 0 0.1rem 0.5rem rgba(6, 9, 18, .85); }
html.lk-reduce-motion .lk-advstage__ring { transition: none; }
@media (prefers-reduced-motion: reduce) { .lk-advstage__ring { transition: none; } }

/* Hito 139 · Creador: luna de carga mientras el Sapidae o el Axie llegan y se compilan (StartScreenUI._cc3d) */
.lk-cc-screen .lk-cc-loading { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); pointer-events: none; }
.lk-cc-screen .lk-cc-loading:not([hidden]) { display: grid; place-items: center; }
.lk-cc-screen .lk-cc-loading .lk-moon-spin { width: 2.25rem; height: 2.25rem; filter: drop-shadow(0 0 0.5rem rgba(238, 211, 154, .35)); }
html.lk-reduce-motion .lk-cc-screen .lk-cc-loading .lk-moon-spin { animation: none; }
@media (prefers-reduced-motion: reduce) { .lk-cc-screen .lk-cc-loading .lk-moon-spin { animation: none; } }
