/* lunakai-tutorial.css — Hito 48: cinemática del prólogo y tutorial nuevo (TutorialDirector).
   Mismo lenguaje que el resto de la Crónica Celeste: franjas oscuras con filo dorado, rombos y marfil. */

/* ══ Cinemática ═══════════════════════════════════════════════════════════════════════════════════════ */
#lk-cine.lk-cine { position: fixed; inset: 0; z-index: 2147482000; pointer-events: none; --bar: clamp(48px, 8vh, 84px); opacity: 0; transition: opacity .6s ease; }
#lk-cine.lk-cine.lk-is-on { opacity: 1; }
#lk-cine .lk-cine__bar { position: absolute; left: 0; right: 0; height: var(--bar); background: #030202; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(16px, 3vw, 40px); }
#lk-cine .lk-cine__bar::after { content: ""; position: absolute; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(211, 174, 108, .4) 20%, #EED39A 50%, rgba(211, 174, 108, .4) 80%, transparent); opacity: .7; }
#lk-cine .lk-cine__bar--top { top: 0; } #lk-cine .lk-cine__bar--top::after { bottom: 0; }
#lk-cine .lk-cine__bar--bot { bottom: 0; justify-content: center; } #lk-cine .lk-cine__bar--bot::after { top: 0; }
#lk-cine.lk-cine.lk-is-on .lk-cine__bar--top { animation: lkCineTop .9s cubic-bezier(.2, .8, .2, 1) both; }
#lk-cine.lk-cine.lk-is-on .lk-cine__bar--bot { animation: lkCineBot .9s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes lkCineTop { from { transform: translateY(-100%); } to { transform: none; } }
@keyframes lkCineBot { from { transform: translateY(100%); } to { transform: none; } }
#lk-cine .lk-cine__kicker { display: flex; align-items: center; gap: 12px; font: 800 .7rem/1 var(--lk-font-ui, 'Nunito Sans', sans-serif); letter-spacing: .26em; text-transform: uppercase; color: #C9A867; }
#lk-cine .lk-cine__kicker i { width: 7px; height: 7px; transform: rotate(45deg); background: #EED39A; box-shadow: 0 0 8px rgba(238, 211, 154, .6); }
#lk-cine .lk-cine__skip { pointer-events: auto; display: flex; align-items: center; gap: 10px; padding: 7px 14px 7px 18px; border: 0; border-radius: 999px; cursor: pointer; font: 800 .8rem/1 var(--lk-font-ui, 'Nunito Sans', sans-serif); color: #F4EEDF; background: rgba(239, 232, 218, .06); box-shadow: inset 0 0 0 1px rgba(211, 174, 108, .35); transition: background .18s, box-shadow .18s; }
#lk-cine .lk-cine__skip svg { width: 16px; height: 16px; color: #EED39A; }
#lk-cine .lk-cine__skip kbd { font: 800 .62rem var(--lk-font-ui, sans-serif); padding: 3px 6px; border-radius: 5px; background: rgba(0, 0, 0, .4); color: #EED39A; }
#lk-cine .lk-cine__skip:hover, #lk-cine .lk-cine__skip:focus-visible { outline: none; background: rgba(211, 174, 108, .16); box-shadow: inset 0 0 0 1px #EED39A, 0 0 18px rgba(238, 211, 154, .25); }
#lk-cine .lk-cine__sub { position: absolute; left: 50%; bottom: calc(var(--bar) + clamp(18px, 4vh, 40px)); width: min(900px, calc(100% - 48px)); transform: translate(-50%, 8px); display: grid; justify-items: center; gap: 6px; text-align: center; opacity: 0; transition: opacity .5s ease, transform .5s ease; }
#lk-cine .lk-cine__sub.lk-is-on { opacity: 1; transform: translate(-50%, 0); }
#lk-cine .lk-cine__sub small { font: 800 .64rem/1 var(--lk-font-ui, sans-serif); letter-spacing: .24em; text-transform: uppercase; color: #D9B46A; text-shadow: 0 1px 6px rgba(0, 0, 0, .9); }
#lk-cine .lk-cine__sub small:empty { display: none; }
#lk-cine .lk-cine__sub p { margin: 0; font: 400 clamp(1.15rem, 2.2vw, 1.7rem)/1.45 var(--lk-font-display, 'Marcellus', serif); color: #FBF6EA; text-wrap: balance; text-shadow: 0 2px 16px rgba(0, 0, 0, .95), 0 0 3px rgba(0, 0, 0, .8); }
#lk-cine .lk-cine__sub.lk-is-big p { font: 700 clamp(1.8rem, 4vw, 3rem)/1.1 'Cinzel', var(--lk-font-display, serif); letter-spacing: .08em; color: #FFE7A8; text-shadow: 0 0 24px rgba(255, 200, 90, .8), 0 2px 10px rgba(0, 0, 0, .9); }
#lk-cine .lk-cine__prog { position: relative; width: min(320px, 40vw); height: 2px; border-radius: 2px; background: rgba(239, 232, 218, .1); overflow: hidden; }
#lk-cine .lk-cine__prog i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: linear-gradient(90deg, #C9A867, #FFF1C9); box-shadow: 0 0 8px rgba(238, 211, 154, .7); }

/* Velo negro mientras se pasa de la cinemática al Dojo */
.lk-cine-veil { position: fixed; inset: 0; z-index: 2147481999; background: #000; opacity: 1; transition: opacity .9s ease; pointer-events: none; }
.lk-cine-veil.lk-is-off { opacity: 0; }

/* ══ Franja del tutorial: botón «Saltar tutorial» ════════════════════════════════════════════════════ */
.lk-tut__skip { pointer-events: auto; position: absolute; right: 10px; top: 50%; transform: translateY(-50%); display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 0; border-radius: 999px; cursor: pointer;
  font: 800 .62rem/1 var(--lk-font-ui); letter-spacing: .06em; text-transform: uppercase; color: rgba(239, 232, 218, .7); background: rgba(239, 232, 218, .06); box-shadow: inset 0 0 0 1px rgba(211, 174, 108, .25); transition: color .15s, background .15s; }
.lk-tut__skip:hover, .lk-tut__skip:focus-visible { outline: none; color: var(--lk-ivory-50); background: rgba(211, 174, 108, .18); }
.lk-tut { padding-right: 130px !important; }
.lk-tut__confirm { pointer-events: auto; margin-top: 8px; display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; font: 700 .76rem/1.3 var(--lk-font-ui); color: #E7DCC4; }
.lk-tut__confirm button { border: 0; border-radius: 999px; padding: 5px 12px; cursor: pointer; font: 800 .7rem/1 var(--lk-font-ui); }
.lk-tut__confirm .lk-yes { background: linear-gradient(180deg, #EED39A, #C9A867); color: #2a1d08; }
.lk-tut__confirm .lk-no { background: rgba(239, 232, 218, .1); color: #EFE8DA; box-shadow: inset 0 0 0 1px rgba(211, 174, 108, .3); }
.lk-tut__confirm[hidden] { display: none; }

/* ══ Tarjeta de recompensa ══════════════════════════════════════════════════════════════════════════ */
.lk-reward { position: fixed; left: 50%; top: 42%; z-index: 10050; transform: translate(-50%, -50%) scale(.92); opacity: 0; pointer-events: auto; cursor: pointer;
  width: min(440px, calc(100vw - 32px)); padding: 22px 26px 18px; text-align: center; border-radius: 18px;
  background: radial-gradient(120% 120% at 50% 0%, rgba(54, 42, 24, .97), rgba(14, 17, 30, .97) 70%);
  box-shadow: 0 0 0 1px rgba(238, 211, 154, .55), 0 0 0 5px rgba(11, 15, 28, .8), 0 0 0 6px rgba(211, 174, 108, .35), 0 24px 60px rgba(0, 0, 0, .6), 0 0 80px rgba(238, 211, 154, .18);
  transition: opacity .35s ease, transform .45s cubic-bezier(.2, 1.4, .4, 1); }
.lk-reward.lk-is-on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.lk-reward__kicker { display: inline-flex; align-items: center; gap: 10px; font: 800 .66rem/1 var(--lk-font-ui); letter-spacing: .26em; text-transform: uppercase; color: #D9B46A; }
.lk-reward__kicker::before, .lk-reward__kicker::after { content: ""; width: 7px; height: 7px; transform: rotate(45deg); background: #EED39A; box-shadow: 0 0 8px rgba(238, 211, 154, .7); }
.lk-reward__title { margin: 8px 0 14px; font: 400 1.4rem/1.2 var(--lk-font-display); color: #FBF6EA; }
.lk-reward__items { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.lk-reward__it { width: 96px; display: grid; justify-items: center; gap: 6px; animation: lkRewIt .5s cubic-bezier(.2, 1.4, .4, 1) both; }
.lk-reward__it:nth-child(2) { animation-delay: .08s; } .lk-reward__it:nth-child(3) { animation-delay: .16s; } .lk-reward__it:nth-child(4) { animation-delay: .24s; }
.lk-reward__ico { position: relative; width: 64px; height: 64px; border-radius: 14px; display: grid; place-items: center; background: radial-gradient(circle at 50% 35%, var(--rc, #3a4a6e), #121726); box-shadow: 0 0 0 2px rgba(11, 15, 28, .9), 0 0 0 3px var(--rb, rgba(211, 174, 108, .6)), 0 0 18px var(--rg, rgba(238, 211, 154, .25)); }
.lk-reward__ico img { width: 52px; height: 52px; object-fit: contain; }
.lk-reward__ico span { font: 800 1.4rem/1 var(--lk-font-ui); color: #EED39A; }
.lk-reward__ico em { position: absolute; right: -6px; bottom: -6px; font: 800 .7rem/1 var(--lk-font-ui); font-style: normal; padding: 3px 6px; border-radius: 999px; background: #EED39A; color: #2a1d08; }
.lk-reward__it b { font: 800 .72rem/1.2 var(--lk-font-ui); color: #EFE8DA; }
.lk-reward__note { margin: 14px 0 0; font: 700 .76rem/1.4 var(--lk-font-ui); color: #BFC6D6; }
.lk-reward__hint { margin-top: 10px; font: 800 .6rem/1 var(--lk-font-ui); letter-spacing: .18em; text-transform: uppercase; color: rgba(239, 232, 218, .45); }
@keyframes lkRewIt { from { opacity: 0; transform: translateY(10px) scale(.8); } to { opacity: 1; transform: none; } }

/* ══ Consejo del maestro en combate (duelo y prueba de la Ultimate) ═══════════════════════════════ */
#lk-tut-coach { position: fixed; top: 88px; left: 50%; transform: translateX(-50%); z-index: 60; width: min(560px, calc(100vw - 32px)); pointer-events: none; }
#lk-tut-coach.hidden { display: none !important; }
#lk-tut-coach .lk-ctut__card { grid-template-columns: auto minmax(0, 1fr); }
#lk-tut-coach .lk-ctut__coach { width: 52px; height: 52px; }
#ui-overlay .tut-highlight, .lk-cb-ult-wrap .tut-highlight { box-shadow: 0 0 0 3px #EED39A, 0 0 26px rgba(238, 211, 154, .85) !important; animation: lkTutTarget 1.4s ease-in-out infinite !important; border-radius: 50%; }

/* Barra de vida del duelo: marca del 30 % */
.lk-duel-mark { position: fixed; z-index: 61; left: 50%; top: 150px; transform: translateX(-50%); padding: 4px 12px; border-radius: 999px; font: 800 .66rem/1 var(--lk-font-ui); letter-spacing: .14em; text-transform: uppercase; color: #2a1d08; background: linear-gradient(180deg, #EED39A, #C9A867); box-shadow: 0 4px 12px rgba(0, 0, 0, .4); }
.lk-duel-mark.hidden { display: none; }

/* Franja del tutorial al pie de la pantalla (pasos dentro de la Forja y de la Mochila) */
.lk-tut.lk-tut--low { top: auto; bottom: 18px; }
.lk-tut__skip[hidden] { display: none; }
.lk-tut.is-completed { padding-right: 56px !important; }

/* Carga de la cinemática sobre el velo negro */
.lk-cine-veil__load { position: absolute; left: 50%; bottom: 14vh; transform: translateX(-50%); display: grid; justify-items: center; gap: 10px; font: 800 .72rem/1 var(--lk-font-ui, sans-serif); letter-spacing: .24em; text-transform: uppercase; color: #C9A867; }
.lk-cine-veil__load i { display: block; width: 200px; height: 2px; border-radius: 2px; background: rgba(239, 232, 218, .12); overflow: hidden; }
.lk-cine-veil__load b { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #C9A867, #FFF1C9); transition: width .2s; }

/* ── Guía paso a paso del tutorial (22-oct): el velo va por encima de todas las ventanas; solo el hueco
   (lo que hay que pulsar) responde. La franja del tutorial y su botón «Saltar tutorial» quedan encima. */
.tutorial-focus-overlay.lk-tut-guide {
  z-index: 2147483000 !important;
  background: rgba(4, 7, 18, 0.62);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.tutorial-focus-overlay.lk-tut-guide .tutorial-spotlight-highlight-box { z-index: 2147483001; border-radius: 12px; }
.tutorial-focus-overlay.lk-tut-guide .tutorial-spotlight-pointer { z-index: 2147483002; }
.lk-tut-catch {
  position: fixed;
  z-index: 2147483001;
  cursor: pointer;
  background: transparent;
}
.lk-tut-catch[hidden] { display: none !important; }
body .lk-tut.tutorial-spotlight-banner { z-index: 2147483003 !important; }
.tutorial-spotlight-pointer.lk-tut-nudge { animation: lkTutNudge 0.42s ease-in-out; }
@keyframes lkTutNudge {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-9px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-6px); }
  80% { transform: translateX(4px); }
}

/* Combate guiado: lo que no toca en este paso queda apagado; al intentarlo, la franja se sacude */
#ui-overlay .tut-dim, .lk-cb-ult-wrap .tut-dim, #btn-end-turn.tut-dim { opacity: 0.38 !important; filter: grayscale(0.75) !important; }
.lk-ctut.lk-ctut--nudge .lk-ctut__card { animation: lkTutFlash 0.5s ease-in-out; }
@keyframes lkTutFlash {
  0%, 100% { box-shadow: none; }
  35% { box-shadow: 0 0 0 3px #EED39A, 0 0 28px rgba(238, 211, 154, 0.9); }
}
/* La guía también se ve con la Mochila abierta (lunakai-ui.css ocultaba el velo antiguo en ese caso) */
body:has(.lk-bag-layer:not(.hidden)) #tutorial-focus-overlay.lk-tut-guide:not(.hidden) { display: block !important; }

/* Hito 54: con un diálogo abierto no se ven los avisos de interacción («E · Usar la forja», «Hablar con…») */
body.lk-dialog-open #npc-interaction-prompt,
body.lk-dialog-open .lk-interact-prompt { display: none !important; }
/* Hito 54: el consejo de Paladill en combate muestra su retrato */
#lk-tut-coach.lk-ctut--hint .lk-ctut__card { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px; text-align: left; }
#lk-tut-coach.lk-ctut--hint .lk-ctut__coach { display: block; }
#lk-tut-coach.lk-ctut--hint .lk-ctut__head { justify-content: flex-start; }

/* ── Tutorial rápido (combate 1 y combate final) ─────────────────────────────────────────────── */
/* Aviso amable cuando se intenta otra cosa («Primero muévete a la casilla marcada») */
.lk-ctut .lk-ctut__nudge { display: none; margin: 6px 0 0; padding: 5px 10px; border-radius: 8px; font: 700 .82rem/1.3 var(--lk-font-ui, 'Nunito Sans', sans-serif); color: #3B2A10; background: #F3D58A; box-shadow: 0 1px 0 rgba(0, 0, 0, .25); }
.lk-ctut .lk-ctut__nudge.lk-is-on { display: block; }
/* Barra de turnos iluminada 2 s cuando Paladill la señala */
#initiative-timeline.lk-tut-timeline { border-radius: 14px; animation: lkTutTimeline 1s ease-in-out 2; box-shadow: 0 0 0 2px #F3D58A, 0 0 18px 4px rgba(243, 213, 138, .55); }
@keyframes lkTutTimeline { 50% { box-shadow: 0 0 0 3px #FFE7A6, 0 0 26px 8px rgba(255, 231, 166, .75); } }
/* Ultimate lista en el combate final: el botón brilla más */
#spell-slot-ult.lk-tut-ult-call { animation: lkTutUlt 1.1s ease-in-out infinite; }
@keyframes lkTutUlt { 50% { filter: brightness(1.35) drop-shadow(0 0 14px rgba(255, 214, 102, .95)); transform: scale(1.06); } }
@media (prefers-reduced-motion: reduce) {
  #initiative-timeline.lk-tut-timeline, #spell-slot-ult.lk-tut-ult-call { animation: none; }
  #spell-slot-ult.lk-tut-ult-call { filter: brightness(1.25) drop-shadow(0 0 10px rgba(255, 214, 102, .9)); }
}
/* Forja: aviso de la demo bajo el tiempo restante */
.lk-forge-demo { display: block; margin-top: 4px; font-style: italic; opacity: .78; }
/* «Pasar turno» en el tutorial: misma forma, solo parpadea (sin cambiar borde, sombra, radio ni tamaño) */
#ui-overlay #btn-end-turn.lk-tut-blink { animation: lkTutBlink 0.9s ease-in-out infinite; }
@keyframes lkTutBlink { 50% { filter: brightness(1.35) saturate(1.15); opacity: .72; } }
@media (prefers-reduced-motion: reduce) { #ui-overlay #btn-end-turn.lk-tut-blink { animation: none; filter: brightness(1.25); } }

/* ══ Hito 126 · Recorridos de paneles (rpg/ui/PanelTour.js: Escuadrón, Koliseo) y punto de «Nuevo» en el HUD (Escuadrón, Koliseo, Códice) ═════════════ */
.lk-sqt { position: fixed; z-index: 1600; box-sizing: border-box; pointer-events: auto; padding: 14px 16px 12px; border-radius: 16px; color: #EFE8DA;
  background: radial-gradient(120% 120% at 50% 0%, rgba(54, 42, 24, .97), rgba(14, 17, 30, .97) 72%);
  box-shadow: 0 0 0 1px rgba(238, 211, 154, .55), 0 0 0 4px rgba(11, 15, 28, .75), 0 18px 44px rgba(0, 0, 0, .55);
  opacity: 0; transform: translateY(6px); transition: opacity .22s ease, transform .28s cubic-bezier(.2, 1.3, .4, 1), top .25s ease, left .25s ease; }
.lk-sqt.lk-sqt--in { opacity: 1; transform: none; }
.lk-sqt__head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.lk-sqt__dots { display: inline-flex; gap: 4px; }
.lk-sqt__dots i { width: 18px; height: 5px; border-radius: 3px; background: rgba(239, 232, 218, .18); }
.lk-sqt__dots i.lk-is-full { background: #D3AE6C; }
.lk-sqt__dots i.lk-is-half { background: linear-gradient(90deg, #EED39A 50%, rgba(239, 232, 218, .18) 50%); }
.lk-sqt__badge { font: 800 .68rem/1 var(--lk-font-ui); letter-spacing: .08em; text-transform: uppercase; color: #D3AE6C; }
.lk-sqt__title { margin: 2px 0 6px; font: 700 1.05rem/1.2 var(--lk-font-display, var(--lk-font-ui)); color: #FFF4D6; }
.lk-sqt__text { margin: 0 0 12px; font: 500 .9rem/1.45 var(--lk-font-ui); }
.lk-sqt__text b { color: #EED39A; }
.lk-sqt__acts { display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
.lk-sqt__skip { border: 0; background: none; color: rgba(239, 232, 218, .7); font: 700 .8rem/1 var(--lk-font-ui); cursor: pointer; padding: 6px 8px; }
.lk-sqt__skip:hover { color: #FFF4D6; }
.lk-sqt-focus { position: relative; z-index: 2; border-radius: 14px; box-shadow: 0 0 0 2px #EED39A, 0 0 22px 4px rgba(238, 211, 154, .45) !important; animation: lkSqtPulse 1.6s ease-in-out infinite; }
@keyframes lkSqtPulse { 50% { box-shadow: 0 0 0 3px #EED39A, 0 0 30px 8px rgba(238, 211, 154, .6); } }
.lk-sq-help { font: 800 1.05rem/1 var(--lk-font-ui); margin-left: auto; }
.lk-sq-help + .lk-btn-close-x { margin-left: 8px; }
.lk-ow-menu .lk-btn-circle-icon.lk-has-new { position: relative; }
/* (Hito 130: el punto de «Nuevo» pasa a .lk-nb, de NewBadges.js; bloque al final del archivo) */
html.lk-reduce-motion .lk-sqt-focus { animation: none; }
@media (prefers-reduced-motion: reduce) { .lk-sqt-focus { animation: none; } .lk-sqt { transition: none; } }
.lk-sqt .lk-btn { min-height: 34px; padding: 6px 16px; font-size: .84rem; }

/* ══ Hito 129 · Recorridos de paneles como «coach marks»: foco que atenúa el resto, flecha hacia la zona, Atrás y Esc ══ */
/* Foco: hueco con borde dorado y una sombra enorme que oscurece lo demás; no recibe clics y se desliza entre pasos */
.lk-sqt-spot { position: fixed; left: 0; top: 0; z-index: 1599; pointer-events: none; border-radius: 14px;
  box-shadow: 0 0 0 2px var(--lk-gilt-300), 0 0 0 100vmax rgba(6, 9, 18, .52), 0 0 26px 6px color-mix(in srgb, var(--lk-gilt-300) 45%, transparent);
  transition: transform .32s var(--lk-ease), width .32s var(--lk-ease), height .32s var(--lk-ease), opacity .2s; }
.lk-sqt-spot.lk-is-off { opacity: 0; }
/* La zona resaltada ya no necesita su propio anillo (lo dibuja el foco) */
.lk-sqt-focus { box-shadow: none !important; animation: none !important; }

/* Tarjeta: cristal nocturno con filo dorado (Crónica Celeste) */
.lk-sqt { padding: 14px 16px 12px; border-radius: 16px; color: var(--lk-ivory-100);
  background: linear-gradient(180deg, color-mix(in srgb, var(--lk-night-800) 98%, transparent), color-mix(in srgb, var(--lk-night-900) 98%, transparent));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--lk-gilt-300) 55%, transparent), 0 18px 44px rgba(0, 0, 0, .55); }
.lk-sqt:focus-within { outline: none; }
/* Flecha que apunta a la zona (--ax = centro de la zona dentro de la tarjeta) */
.lk-sqt__arrow { position: absolute; left: var(--ax, 50%); width: 14px; height: 14px; margin-left: -7px; transform: rotate(45deg);
  background: var(--lk-night-800); box-shadow: inset 1px 1px 0 color-mix(in srgb, var(--lk-gilt-300) 55%, transparent); }
.lk-sqt[data-side="below"] .lk-sqt__arrow { top: -7px; }
.lk-sqt[data-side="above"] .lk-sqt__arrow { bottom: -7px; background: var(--lk-night-900); box-shadow: inset -1px -1px 0 color-mix(in srgb, var(--lk-gilt-300) 55%, transparent); }
.lk-sqt[data-side="none"] .lk-sqt__arrow, .lk-sqt.lk-sqt--free .lk-sqt__arrow { display: none; }
/* Cabecera: paso actual y «Saltar» */
.lk-sqt__head { justify-content: space-between; margin-bottom: 6px; }
.lk-sqt__badge { color: var(--lk-gilt-300); letter-spacing: .12em; }
.lk-sqt__skip { margin: -6px -8px -6px 0; color: color-mix(in srgb, var(--lk-ivory-200) 70%, transparent); }
.lk-sqt__skip:hover, .lk-sqt__skip:focus-visible { color: var(--lk-ivory-50); }
.lk-sqt__title { margin: 0 0 6px; font: 400 1.2rem/1.2 var(--lk-font-display); color: var(--lk-ivory-50); }
.lk-sqt__text { margin: 0 0 12px; font-size: .88rem; line-height: 1.5; color: var(--lk-ivory-100); }
.lk-sqt__text b { color: var(--lk-gilt-300); }
/* Enlace al Códice (último paso) */
.lk-sqt__codex { display: inline-flex; align-items: center; gap: 8px; margin: -4px 0 12px; padding: 0; border: 0; background: none; cursor: pointer;
  font: 800 .8rem/1.3 var(--lk-font-ui); color: var(--lk-gilt-300); text-decoration: underline; text-underline-offset: 3px; }
.lk-sqt__codex svg { width: 16px; height: 16px; flex: none; }
.lk-sqt__codex:hover { color: var(--lk-ivory-50); }
/* Pie: progreso a la izquierda, acciones a la derecha */
.lk-sqt__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 10px; border-top: 1px solid color-mix(in srgb, var(--lk-gilt-300) 18%, transparent); }
.lk-sqt__dots { gap: 6px; }
.lk-sqt__dots i { width: 8px; height: 8px; border-radius: 50%; background: color-mix(in srgb, var(--lk-ivory-200) 25%, transparent); transition: width .2s, background .2s; }
.lk-sqt__dots i.lk-is-done { background: color-mix(in srgb, var(--lk-gilt-300) 60%, transparent); }
.lk-sqt__dots i.lk-is-on { width: 20px; border-radius: var(--lk-r-pill); background: var(--lk-gilt-300); }
.lk-sqt__acts { display: inline-flex; align-items: center; gap: 6px; }
.lk-sqt__back { border: 0; background: none; cursor: pointer; padding: 6px 10px; border-radius: var(--lk-r-pill); font: 700 .8rem/1 var(--lk-font-ui); color: color-mix(in srgb, var(--lk-ivory-200) 80%, transparent); }
.lk-sqt__back:hover, .lk-sqt__back:focus-visible { color: var(--lk-ivory-50); background: color-mix(in srgb, var(--lk-ivory-50) 8%, transparent); }
@media (prefers-reduced-motion: reduce) { .lk-sqt-spot, .lk-sqt__dots i { transition: none; } }
html.lk-reduce-motion .lk-sqt-spot, html.lk-reduce-motion .lk-sqt { transition: none; }

/* ══ Hito 130 · Avisos de «Nuevo» en los botones del HUD (NewBadges.js): punto o número, late 3 veces y queda fijo ══ */
.lk-nb { position: absolute; top: -0.125rem; right: -0.125rem; z-index: 1; pointer-events: none; box-sizing: border-box;
  display: grid; place-items: center; background: var(--lk-gold-atia-bright); color: var(--lk-ink-900);
  box-shadow: 0 0 0 0.125rem var(--lk-ink-900), 0 0 0.5rem color-mix(in srgb, var(--lk-gold-atia-bright) 55%, transparent); }
.lk-nb--dot { width: 0.75rem; height: 0.75rem; border-radius: 50%; }
.lk-nb--count { top: -0.3125rem; right: -0.3125rem; min-width: 1.125rem; height: 1.125rem; padding: 0 0.3rem; border-radius: 999px;
  font: 800 0.66rem/1 var(--lk-font-ui); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.lk-nb--ping { animation: lkNbPing 0.9s var(--lk-ease-soft, ease-in-out) 3; }
@keyframes lkNbPing {
  45% { transform: scale(1.3); box-shadow: 0 0 0 0.125rem var(--lk-ink-900), 0 0 0 0.375rem color-mix(in srgb, var(--lk-gold-atia-bright) 30%, transparent), 0 0 0.75rem color-mix(in srgb, var(--lk-gold-atia-bright) 70%, transparent); }
}
html.lk-reduce-motion .lk-nb--ping { animation: none; }
@media (prefers-reduced-motion: reduce) { .lk-nb--ping { animation: none; } }
