/* ═══════════════════════════════════════════════════════════════════════
   Vestuario (Personajes y Accesorios) con la ficha del kit (theme.css):
   nombre grande en amarillo, nivel con la estrella, superpoder, abanico de
   cartas con la caja de cartas (marco dorado) y MEJORAR, el personaje en
   ficha completa sobre el pedestal del foco, el panel de pizarra con las
   estadísticas y, abajo, las pestañas de cristal sobre el estante turquesa
   con la tira de la plantilla. También la ficha («i») y las barras de stats.
   ═══════════════════════════════════════════════════════════════════════ */

.lk {
  --rc: #8fd14f; --rd: #3f7d1c; --rg: #c8ff8a;
  --cw: 6.1rem;                                   /* ancho de las tarjetas de la tira */
  flex: 1; min-height: 0; position: relative;
  display: grid;
  grid-template-columns: minmax(13.5rem, 25%) minmax(0, 1fr) minmax(15.5rem, 27%);
  grid-template-rows: auto minmax(0, 1fr) auto;
  column-gap: 1rem;
  padding: .35rem var(--gutter) 0;
}
.lk-head { grid-column: 1 / 3; grid-row: 1; }
.lk-side { grid-column: 1; grid-row: 2; }
.lk-stage { grid-column: 2; grid-row: 1 / 3; }
.lk-stats { grid-column: 3; grid-row: 1 / 3; }
.lk-bottom { grid-column: 1 / -1; grid-row: 3; }

/* ── Nombre, nivel y superpoder ── */
.lk-head { position: relative; z-index: 3; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: .2rem; pointer-events: none; }
.lk-head > * { pointer-events: auto; }
.lk-name { margin: 0; font-size: 2.7rem; line-height: 1.05; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; padding: .02em .12em .12em .02em; }
.lk-meta { display: flex; align-items: center; gap: .55rem; }
.lk-level { display: inline-flex; align-items: center; gap: .35rem; }
.lk-level > .stroke { font-size: 1.4rem; }
.lk-lvl.level-badge.lvl-lg { width: 3rem; height: 3rem; margin: -.2rem 0; }
.lk-lvl.level-badge.lvl-lg b { font-size: 1.35rem; }
.lk-lvl-lock { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--well); border: 2px solid var(--ink); }
.lk-lvl-lock .ico { width: 64%; height: 64%; }
.lk-kind { display: inline-flex; align-items: center; gap: .45rem; }
/* Chip de rareza con la franja del kit (Común pizarra, Rara azul, Épica morada, Legendaria oro) */
.lk-rar {
  --band: var(--hk-rar-comun-band); --band-text: var(--hk-rar-comun-text);
  padding: .1rem .6rem .14rem; border-radius: 999px; font-family: var(--font-title); font-size: .92rem; line-height: 1.1;
  background: var(--band); color: var(--band-text); border: 1.5px solid var(--ink); box-shadow: inset 0 1.5px 0 rgba(255,255,255,.18);
  -webkit-text-stroke: .2em var(--ink); paint-order: stroke fill;
}
.lk-rar[data-rarity="rara"] { --band: var(--hk-rar-rara-band); --band-text: var(--hk-rar-rara-text); }
.lk-rar[data-rarity="epica"] { --band: var(--hk-rar-epica-band); --band-text: var(--hk-rar-epica-text); }
.lk-rar[data-rarity="legendaria"] { --band: var(--hk-rar-legendaria-band); --band-text: var(--hk-rar-legendaria-text); }
.lk-slot { padding: .08rem .55rem .12rem; border-radius: 999px; font-weight: 800; font-size: max(11px, .8rem); background: var(--well); border: 1.5px solid var(--ink); color: var(--text-dim); }
.lk-flag { width: 1.9rem; }
.lk-super { --pc: #b334ec; display: flex; align-items: center; gap: .3rem; margin-top: .05rem; }
.lk-super-ico { width: 1.7rem; height: 1.7rem; flex: none; }
.lk-super-ico .hk-ico { width: 100%; height: 100%; }
.lk-super-k { color: var(--title); --sc: var(--title-ink); font-size: 1.12rem; }
.lk-super-n { font-size: 1.12rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lk-boost { padding: 0 .45rem; border-radius: 999px; font-family: var(--font-title); font-size: .8rem; color: #fff; background: linear-gradient(180deg, #ffe24a 0 50%, #ffae0a 50% 100%); border: 1.5px solid var(--ink); -webkit-text-stroke: .2em #4d2400; paint-order: stroke fill; }
.lk-info { width: 34px; height: 34px; margin: 0 0 0 .2rem; }
.lk-info::before { content: ''; position: absolute; inset: -5px; }   /* área táctil ≥ 44 px */

/* ── Abanico de cartas y caja de cartas (marco dorado, cuerpo de pizarra) ── */
.lk-side { position: relative; z-index: 2; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding-bottom: .4rem; }
.lk-stack { --c1: #8d99a2; --c2: #6c8497; --c3: #7fa2b4; position: relative; flex: none; width: 10.6rem; height: 7.4rem; margin-bottom: -1.3rem; }
.lk-stack[data-rarity="rara"] { --c1: #7f95a6; --c2: #3d8fd8; --c3: #45b4f2; }
.lk-stack[data-rarity="epica"] { --c1: #8b7fa4; --c2: #b05ad8; --c3: #d36cf2; }
.lk-stack[data-rarity="legendaria"] { --c1: #a9936a; --c2: #f0a22c; --c3: #ffd24a; }
.lk-card {
  position: absolute; bottom: 0; width: 5.5rem; height: 7rem; border-radius: .6rem; overflow: hidden;
  border: 2.5px solid var(--ink); transform-origin: 50% 110%;
  background: linear-gradient(180deg, var(--c1) 0%, var(--c2) 60%, var(--c3) 100%);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.45), 0 .2rem .4rem rgba(0,0,0,.3);
}
.lk-card::after { content: ''; position: absolute; right: .35rem; top: .3rem; width: .6rem; height: .35rem; border-radius: 50%; background: rgba(255,255,255,.8); transform: rotate(35deg); }
.lk-card-3 { left: 4rem; transform: rotate(10deg); filter: brightness(.8); }
.lk-card-2 { left: 3rem; transform: rotate(4deg); filter: brightness(.9); }
.lk-card-1 { left: 1.3rem; transform: rotate(-7deg); }
.lk-card-1 canvas { position: absolute; inset: 7% 2% 9%; width: 96%; height: 84%; }
[data-cat]:not([data-cat="char"]) .lk-card-1 canvas { inset: 16% 12% 18%; width: 76%; height: 66%; }
.lk-stack.is-locked .lk-card { filter: grayscale(1) brightness(.85); }
.lk-stack.lk-dealt .lk-card-1 { animation: lk-deal .6s cubic-bezier(.2,1.4,.4,1); }
@keyframes lk-deal { 0% { transform: translateY(-30%) rotate(-16deg) scale(.8); opacity: 0; } 100% { transform: rotate(-7deg); opacity: 1; } }

.lk-box {
  position: relative; z-index: 1; width: min(15rem, 100%); padding: 0 .6rem .55rem;
  border-radius: .95rem; border: 2.5px solid var(--ink);
  background: rgba(24, 20, 19, .9);
  box-shadow: inset 0 0 0 .28rem #ffae0a, inset 0 0 0 calc(.28rem + 1.5px) rgba(0,0,0,.55), inset 0 .5rem .8rem rgba(0,0,0,.35), 0 .3rem .7rem rgba(0,0,0,.35);
}
.lk-box::before {   /* filo claro del marco dorado */
  content: ''; position: absolute; inset: 0; border-radius: .8rem; pointer-events: none;
  box-shadow: inset 0 1.5px 0 #ffe98a, inset 1.5px 0 0 rgba(255,233,138,.5);
}
.lk-box-head {
  position: relative; display: flex; align-items: center; margin: 0 -.6rem .6rem; padding: .5rem .6rem .5rem 2rem;
  border-radius: .8rem .8rem 0 0;
  background: linear-gradient(180deg, #ffe24a 0 50%, #ffae0a 50% 100%);
  border-bottom: 2px solid var(--ink); box-shadow: inset 0 1.5px 0 rgba(255,255,255,.6);
}
.lk-box-arrow { position: absolute; left: -.35rem; top: -1.15rem; width: 2.6rem; height: 3rem; z-index: 3; filter: drop-shadow(0 .12rem 0 rgba(0,0,0,.35)); }
.lk-box-arrow .hk-ico { width: 100%; height: 100%; }
.lk-box.is-ready .lk-box-arrow { animation: hk-bob 1.1s ease-in-out infinite; }
.lk-progress.hk-bar { flex: 1; height: 1.75rem; background: #2a2b35; border-width: 2px; }
.lk-progress .hk-bar__txt { font-size: 1.22rem; gap: .12em; }
.lk-upgrade { width: 100%; justify-content: space-between; gap: .6em; padding-inline: .7em; font-size: 1.08rem; margin-bottom: .1rem; }
.lk-price { color: #f2f4f6; gap: .15em; }
.lk-price .ico { width: 1.2em; height: 1.2em; }
.lk-price.is-short { color: #ffb4a8; }
.lk-box.is-locked, .lk-box.is-max { padding: .6rem .7rem; }
.lk-hint { display: flex; align-items: center; justify-content: center; gap: .35rem; margin: .35rem 0 0; text-align: center; font-weight: 800; font-size: max(11px, .86rem); color: var(--text-dim); line-height: 1.2; text-shadow: 0 1px 0 rgba(0,0,0,.6); }
.lk-box .lk-hint { margin: 0; color: #fff; }
.lk-hint b { color: var(--accent); }
.lk-hint .ico { width: 1.5rem; height: 1.5rem; }
.lk-max { text-align: center; font-size: 1.35rem; }

/* ── El personaje sobre el pedestal del foco ── */
.lk-stage { position: relative; z-index: 1; min-height: 0; min-width: 0; }
/* El lienzo sube por encima del foco para que el personaje salga grande; la bota se apoya en el centro
   del pedestal. */
.lk-canvas { position: absolute; left: 0; top: -2cqh; width: 100%; height: 92cqh; z-index: 1; }
.lk-canvas.lk-in { animation: lk-in .45s cubic-bezier(.2,1.3,.4,1); transform-origin: 50% 100%; }
@keyframes lk-in { from { opacity: 0; transform: translateY(10px) scale(.92); } to { opacity: 1; transform: none; } }
.lk-canvas.is-sil, .lk-stage.is-locked .lk-canvas { filter: grayscale(1) brightness(.92) contrast(.92); }
.lk-canvas.lk-hop { animation: lk-hop .5s cubic-bezier(.3,1.4,.5,1); transform-origin: 50% 92%; }
@keyframes lk-hop { 30% { transform: translateY(-7%) scale(1.03, .98); } 60% { transform: scale(1.05, .95); } }
.lk-stage .spot-floor { bottom: 9cqh; }
.lk-stage.is-locked .spot-rays, .lk-stage.is-locked .spot-spark { display: none; }
.lk-stage.is-locked .spot-glow { filter: grayscale(1) brightness(.6); }
.lk-stage.is-locked .spot-beam { opacity: .4; filter: grayscale(1); }
.lk-stage-over { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; pointer-events: none; }
.lk-locked { display: flex; flex-direction: column; align-items: center; gap: .3rem; margin-bottom: 14%; }
.lk-locked .lk-lock-ico { width: 3.6rem; height: 3.6rem; filter: drop-shadow(0 3px 0 rgba(0,0,0,.4)); }
.lk-locked .lk-rar { font-size: 1.05rem; }
/* «Elegir» / «Tu jugador» pegado al canto del pedestal */
.lk-cta { position: absolute; z-index: 4; left: 0; right: 0; bottom: 3.5cqh; display: flex; justify-content: center; align-items: center; gap: .5rem; pointer-events: none; }
.lk-cta > * { pointer-events: auto; }
.lk-choose { min-width: 8.5rem; font-size: 1.3rem; }
.lk-chosen {
  display: inline-flex; align-items: center; gap: .3rem; padding: .22rem 1rem .3rem .55rem; border-radius: 999px; font-size: 1.15rem;
  background: linear-gradient(180deg, #c3fb0e 0 50%, #63dc05 50% 100%); border: 2.5px solid var(--ink);
  box-shadow: inset 0 1.5px 0 rgba(255,255,255,.7), inset 0 -3px 0 #3aa000, 0 3px 0 var(--ink);
  --sc: #173f00;
}
.lk-chosen .ico { width: 1.3em; height: 1.3em; }
/* «Quitar» del alto de la píldora «Equipado» (a 44 px tapaba la bota del pedestal); el área táctil sigue
   siendo de 44 px con ::after, como .seg-btn */
.lk-remove { margin-bottom: 0; min-height: 0; padding-top: .26em; padding-bottom: .32em; }
.lk-remove::after { content: ''; position: absolute; inset: -8px -4px; }

/* ── Panel de estadísticas (kit: .hk-panel + .hk-stat) ── */
.lk-stats {
  position: relative; z-index: 2; align-self: center; min-height: 0; overflow: hidden;
  display: flex; flex-direction: column;
  border-radius: var(--r-lg); background: var(--slate); border: 1.5px solid var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--panel-ring), 0 .3rem .7rem rgba(0,0,0,.3);
}
.lk-stats::after { content: ''; position: absolute; right: .55rem; top: .38rem; width: .55rem; height: .3rem; border-radius: 50%; background: rgba(255,255,255,.55); transform: rotate(35deg); pointer-events: none; }
.lk-sec {
  display: flex; align-items: center; justify-content: center; gap: .4rem; margin: 0; padding: .4rem .8rem .45rem;
  background: rgba(8, 8, 12, .5); border-bottom: 1.5px solid rgba(0,0,0,.6); box-shadow: 0 1px 0 rgba(255,255,255,.08);
}
.lk-sec > .hk-ico { width: 2.1rem; height: 2.1rem; }
.lk-sec .t-hero { font-size: 1.55rem; }
.lk-sec-v { font-size: 1.95rem; }
.lk-statlist { list-style: none; margin: 0; padding: .45rem .75rem .65rem .6rem; display: grid; gap: .28rem; }
.lk-stat { display: grid; grid-template-columns: auto minmax(0, 1fr) 2.5rem; grid-template-rows: auto auto; column-gap: .45rem; align-items: center; }
.lk-si.hk-tile { grid-row: 1 / 3; width: 2.35rem; height: 2.35rem; }
.lk-sl { grid-column: 2; text-align: center; font-family: var(--font-title); font-size: 1rem; line-height: 1.1; color: #fff; -webkit-text-stroke: .2em var(--ink); paint-order: stroke fill; }
.lk-sbar.hk-bar { grid-column: 2; height: 1.2rem; }
.lk-sup.hk-bar__plus { font-size: .88rem; }
.lk-sv { grid-column: 3; grid-row: 2; text-align: right; color: var(--hk-value); font-size: 1.15rem; }
.lk-note { margin: 0; padding: 0 .8rem .6rem; font-weight: 700; font-size: max(11px, .84rem); color: var(--text-dim); line-height: 1.3; text-shadow: 0 1px 0 rgba(0,0,0,.6); }
.lk-note-big { padding: .8rem .9rem .9rem; font-size: .98rem; color: #eef3f5; }

/* ── Abajo: pestañas de cristal y el estante turquesa con la tira ── */
.lk-bottom { position: relative; z-index: 2; margin: 0 calc(-1 * var(--gutter)); display: flex; flex-direction: column; }
.lk-cats { display: flex; align-items: flex-end; gap: .3rem; padding: 0 calc(var(--gutter) + 5.8rem) 0 calc(var(--gutter) + 4.6rem); height: 4.4rem; }
.lk-cat {
  position: relative; flex: 1 1 0; min-width: 0; max-width: 12rem; height: 3.4rem; padding: .2rem 0 0; margin: 0 0 -2.5px;
  display: grid; place-items: center;
  border: 2.5px solid var(--ink); border-bottom: 0; border-radius: 1rem 1rem 0 0;
  background: linear-gradient(180deg, #243f4c 0%, #1a3440 100%);
  box-shadow: inset 0 2px 0 rgba(160, 200, 210, .3);
  transition: height .14s ease-out, filter .12s;
}
.lk-cat::before { content: ''; position: absolute; left: .45rem; right: .45rem; top: .32rem; height: 42%; border-radius: .75rem; background: rgba(142, 164, 170, .36); pointer-events: none; }
.lk-cat::after { content: ''; position: absolute; right: .55rem; top: .42rem; width: .5rem; height: .34rem; border-radius: 50%; background: rgba(255,255,255,.5); transform: rotate(40deg); pointer-events: none; }
.lk-cat:hover { filter: brightness(1.1); }
.lk-cat-ico { position: relative; width: 2.8rem; height: 2.8rem; margin-top: .05rem; filter: drop-shadow(0 0 .25rem rgba(60, 220, 255, .35)); transition: transform .2s cubic-bezier(.3,1.6,.5,1); }
.lk-cat-ico svg { width: 100%; height: 100%; }
.lk-cat-label { display: none; }
.lk-cat.active {
  flex-grow: 1.3; height: 4.4rem;
  background: linear-gradient(180deg, #0a93b6 0%, #0a7292 45%, #0e5c7d 100%);
  box-shadow: inset 0 2.5px 0 #5ce6f3, inset 2.5px 0 0 rgba(92, 230, 243, .45), inset -2.5px 0 0 rgba(92, 230, 243, .45);
}
.lk-cat.active::before { background: rgba(178, 222, 236, .62); }
.lk-cat.active::after { background: rgba(255,255,255,.85); }
.lk-cat.active .lk-cat-ico { width: 3.6rem; height: 3.6rem; }
.lk-cat .dot-alert { top: -9px; right: -4px; }

.lk-strip {
  position: relative; min-width: 0; display: flex; align-items: stretch; gap: .5rem;
  padding: .45rem var(--gutter) .5rem;
  background: linear-gradient(180deg, #062a41 0%, #073c58 35%, #0a86ab 100%);
  border-top: 2.5px solid #021a2e; box-shadow: inset 0 2.5px 0 #1283b4;
}
.lk-count {
  flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .1rem; width: 3.9rem;
  border-radius: .8rem; background: rgba(2, 20, 30, .45); box-shadow: inset 0 2px 4px rgba(0,0,0,.4);
}
.lk-count-ico { width: 2.2rem; height: 2.2rem; }
.lk-count-ico .ico { width: 100%; height: 100%; }
.lk-count b { font-size: 1rem; }
.lk-scroll {
  flex: 1; min-width: 0; display: flex; gap: .35rem; padding: .1rem .2rem .05rem; overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x proximity; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 .8rem, #000 calc(100% - 1.4rem), transparent);
          mask-image: linear-gradient(90deg, transparent, #000 .8rem, #000 calc(100% - 1.4rem), transparent);
}
.lk-scroll::-webkit-scrollbar { display: none; }
.lk-scroll.lk-swap .lk-cell { animation: rise-in .32s cubic-bezier(.2,1.2,.4,1) both; animation-delay: calc(min(var(--i), 12) * 18ms); }
.lk-cell { flex: none; width: var(--cw); padding: .15rem 0; scroll-snap-align: center; }

/* Tarjeta de la tira (kit: .hk-card; la marca verde es la del elegido o equipado) */
.gcard.hk-card { --w: var(--cw); }
.gcard.hk-card:hover { filter: brightness(1.06); }
.gcard-item .hk-card__art { left: 14%; top: 8%; width: 72%; height: 64%; }
.gcard.is-locked .hk-card__art { filter: grayscale(1) contrast(.88) brightness(1.08); opacity: .82; }
.gcard-lock { position: absolute; z-index: 3; right: .2rem; top: .15rem; width: calc(var(--w) * .28); height: calc(var(--w) * .28); filter: drop-shadow(0 1px 0 rgba(0,0,0,.4)); }
.gcard-lock .ico { width: 100%; height: 100%; }
.gcard-max { color: #ffe14a; }
.gcard-nv { font-size: 0; }   /* «Nv 3» para leerlo (y en innerText); a la vista, solo el número en la estrella */
.gcard.is-ready { animation: none; }
.gcard.r-legendaria:not(.is-locked)::after { z-index: 2; }
.lk-cell.is-focus .hk-card { border-color: var(--hk-select); box-shadow: 0 0 0 1.5px var(--ink), 0 0 .8rem rgba(45, 227, 245, .75), inset 0 0 0 2px rgba(45, 227, 245, .6); }

/* ── Ficha («i») ── */
.modal.m-char { width: min(100%, 620px); }
.cd { --rc: #8fd14f; --rd: #3f7d1c; --rg: #c8ff8a; display: grid; grid-template-columns: minmax(8rem, 36%) 1fr; gap: .9rem 1.1rem; align-items: start; }
.cd-portrait {
  position: relative; width: 100%; aspect-ratio: 1 / 1.06; border-radius: 16px; overflow: hidden; border: 2.5px solid var(--ink);
  background: radial-gradient(circle at 50% 34%, var(--rg) 0%, var(--rc) 44%, var(--rd) 100%);
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.3), 0 .3rem .6rem rgba(0,0,0,.35);
}
.cd-portrait::before { content: ''; position: absolute; left: 5%; right: 5%; top: 4%; height: 44%; border-radius: .8rem; background: rgba(255,255,255,.18); }
.cd-portrait.is-locked { background: linear-gradient(180deg, var(--card-top), var(--card-bot)); }
.cd-portrait.is-locked .cd-canvas { filter: grayscale(1) brightness(1.05); opacity: .85; }
.cd-canvas { position: relative; width: 100%; height: 100%; }
.cd-level { position: absolute; left: .3rem; bottom: .3rem; z-index: 2; }
.cd-lock { position: absolute; right: .4rem; top: .4rem; width: 2.6rem; height: 2.6rem; z-index: 2; }
.cd-lock .ico { width: 100%; height: 100%; }
.cd-right { display: flex; flex-direction: column; align-items: flex-start; gap: .35rem; min-width: 0; }
.cd-rarity { padding: .08rem .7rem .12rem; border-radius: 999px; background: var(--rc); border: 1.5px solid var(--ink); font-family: var(--font-title); font-size: .85rem;
  -webkit-text-stroke: .2em var(--ink); paint-order: stroke fill; }
.cd-title { display: flex; align-items: center; gap: .6rem; }
.cd-name { margin: 0; font-size: 2rem; line-height: 1.05; color: var(--title); --sc: var(--title-ink); --sw: .2em; }
.cd-from { display: flex; align-items: center; gap: .45rem; margin: 0; font-weight: 800; color: var(--text-dim); }
.cd-flag { width: 1.9rem; }
.cd-bio { margin: 0; color: #eef3f5; font-weight: 700; font-style: italic; line-height: 1.3; }
.cd-power { grid-column: 1 / -1; --pc: #fff; display: flex; gap: .7rem; align-items: flex-start; padding: .6rem .8rem; border-radius: var(--r-md); background: var(--well); border: 1.5px solid var(--ink); box-shadow: inset 4px 0 0 var(--pc), inset 0 0 0 1.5px rgba(255,255,255,.12); }
.cd-power-ico { width: 2.6rem; height: 2.6rem; flex: none; display: grid; place-items: center; border-radius: .6rem; background: radial-gradient(circle at 30% 25%, #e7a0ff 0%, #9f35e0 55%, #4a0e82 100%); border: 2px solid var(--ink); box-shadow: inset 0 2px 0 rgba(255,255,255,.45); }
.cd-power-ico .ico { width: 78%; height: 78%; }
.cd-power b { font-size: 1.15rem; }
.cd-power-kind { font-size: max(11px, .8rem); font-weight: 800; color: var(--text-dim); margin-left: .3rem; }
.cd-power p { margin: .15rem 0 0; font-size: .92rem; font-weight: 700; color: #eef3f5; }

/* Barras de stats (ficha rápida de un jugador: player-card.js) */
.stat-bars { list-style: none; margin: 0; padding: .6rem .8rem; display: grid; gap: .4rem; background: var(--well); border-radius: var(--r-md); box-shadow: inset 0 3px 7px rgba(0,0,0,.5); }
.stat-bars li { display: grid; grid-template-columns: 6rem 1fr 4.2rem; align-items: center; gap: .6rem; }
.sb-label { font-family: var(--font-title); font-size: .95rem; -webkit-text-stroke: .2em var(--ink); paint-order: stroke fill; }
.sb-track { position: relative; height: 1.05rem; border-radius: 999px; background: #1d1b1d; border: 1.5px solid var(--ink); overflow: hidden; }
.sb-now { position: absolute; inset: 0 auto 0 0; width: calc(var(--w) * 100%); background: linear-gradient(180deg, #c3fb0e 0 50%, #5fd906 50% 100%); box-shadow: inset 0 -2px 0 rgba(0,0,0,.18), 1.5px 0 0 var(--ink); transition: width .6s; }
.sb-val { text-align: right; font-size: 1rem; white-space: nowrap; color: var(--hk-value); }

/* ── Móvil apaisado (poca altura) ── */
@media (max-height: 500px) and (orientation: landscape) {
  .lk { --cw: 4.5rem; grid-template-columns: minmax(10.4rem, 23%) minmax(0, 1fr) minmax(13.2rem, 29%); column-gap: .7rem; padding-top: .15rem; }
  .lk-head { gap: 0; }
  .lk-name { font-size: 1.7rem; }
  .lk-level > .stroke { font-size: 1rem; }
  .lk-lvl.level-badge.lvl-lg { width: 2.2rem; height: 2.2rem; }
  .lk-lvl.level-badge.lvl-lg b { font-size: 1rem; }
  .lk-lvl-lock { width: 2rem; height: 2rem; }
  .lk-rar { font-size: .78rem; }
  .lk-flag, .lk-slot { display: none; }
  .lk-super-k, .lk-boost { display: none; }
  .lk-super-ico { width: 1.3rem; height: 1.3rem; }
  .lk-super-n { font-size: .95rem; }
  .lk-info { width: 30px; height: 30px; }
  .lk-stack { display: none; }
  .lk-side { justify-content: flex-end; padding-bottom: .3rem; }
  .lk-box { width: 100%; padding: 0 .4rem .4rem; border-radius: .75rem; box-shadow: inset 0 0 0 .2rem #ffae0a, inset 0 0 0 calc(.2rem + 1.5px) rgba(0,0,0,.55), 0 .2rem .5rem rgba(0,0,0,.35); }
  .lk-box-head { margin: 0 -.4rem .4rem; padding: .3rem .4rem .3rem 1.5rem; border-radius: .65rem .65rem 0 0; }
  .lk-box-arrow { width: 1.9rem; height: 2.2rem; top: -.8rem; left: -.3rem; }
  .lk-progress.hk-bar { height: 1.3rem; }
  .lk-progress .hk-bar__txt { font-size: .95rem; }
  .lk-upgrade { font-size: .92rem; min-height: 38px; }
  .lk-hint { font-size: max(11px, .74rem); margin-top: .2rem; }
  .lk-choose { font-size: 1rem; min-width: 6.4rem; min-height: 40px; }
  .lk-chosen { font-size: .9rem; padding: .1rem .7rem .16rem .4rem; }
  .lk-sec { padding: .2rem .5rem .25rem; }
  .lk-sec > .hk-ico { width: 1.5rem; height: 1.5rem; }
  .lk-sec .t-hero { font-size: 1.1rem; }
  .lk-sec-v { font-size: 1.35rem; }
  .lk-statlist { padding: .25rem .5rem .35rem .4rem; gap: .1rem; }
  .lk-si.hk-tile { width: 1.75rem; height: 1.75rem; border-radius: .42rem; }
  .lk-sl { font-size: .8rem; }
  .lk-sbar.hk-bar { height: .9rem; }
  .lk-sbar.hk-bar::before, .lk-sbar.hk-bar::after { display: none; }
  .lk-sup.hk-bar__plus { font-size: .72rem; }
  .lk-sv { font-size: .95rem; }
  .lk-note { display: none; }
  .lk-note-big { display: block; padding: .5rem .6rem; font-size: .82rem; }
  /* el glifo se lee a primera vista (como en la ficha grande) y no lo muerde el canto del estante */
  .lk-cats { height: 3.25rem; padding: 0 calc(var(--gutter) + 3rem) 0 calc(var(--gutter) + 3.5rem); }
  .lk-cat { height: 2.6rem; padding: 0 0 .3rem; border-radius: .75rem .75rem 0 0; }
  .lk-cat::before { top: .2rem; left: .3rem; right: .3rem; }
  .lk-cat-ico { width: 2.1rem; height: 2.1rem; }
  .lk-cat.active { height: 3.25rem; }
  .lk-cat.active .lk-cat-ico { width: 2.65rem; height: 2.65rem; }
  .lk-cat .dot-alert { top: -8px; transform: scale(.85); }
  .lk-strip { padding: .3rem var(--gutter) .32rem; gap: .35rem; }
  .lk-count { width: 3rem; border-radius: .6rem; }
  .lk-count-ico { width: 1.5rem; height: 1.5rem; }
  .lk-count b { font-size: .8rem; }
  .lk-cell { padding: .1rem 0; }
  .gcard-new { display: none; }
  .modal.m-char { padding-top: 1rem; }
  .cd { grid-template-columns: minmax(7rem, 28%) 1fr; gap: .5rem .8rem; }
  .cd-name { font-size: 1.45rem; }
  .cd-power { padding: .4rem .6rem; }
  .cd-power p { font-size: .82rem; }
  .cd-bio { font-size: .88rem; }
}

/* ── Vertical (menús en el móvil) ── */
@media (orientation: portrait) {
  .lk {
    --cw: 5rem;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    grid-template-rows: auto minmax(14rem, 1fr) auto auto;
    column-gap: .6rem; row-gap: .35rem; overflow-y: auto; overflow-x: hidden;
  }
  .lk-head { grid-column: 1 / -1; grid-row: 1; }
  .lk-stage { grid-column: 1; grid-row: 2; }
  .lk-stats { grid-column: 2; grid-row: 2; }
  .lk-side { grid-column: 1 / -1; grid-row: 3; flex-direction: row; align-items: center; justify-content: center; gap: .6rem; padding: .2rem 0; }
  .lk-bottom { grid-row: 4; }
  .lk-name { font-size: 1.9rem; }
  .lk-super-k { display: none; }
  .lk-stack { width: 5.2rem; height: 5rem; margin: 0; }
  .lk-card { width: 3.6rem; height: 4.6rem; }
  .lk-card-3 { left: 1.9rem; } .lk-card-2 { left: 1.3rem; } .lk-card-1 { left: .3rem; }
  .lk-box { flex: 1; max-width: 17rem; }
  .lk-side > .lk-hint { display: none; }
  .lk-sec .t-hero { font-size: 1.1rem; }
  .lk-sec-v { font-size: 1.3rem; }
  .lk-sec > .hk-ico { width: 1.5rem; height: 1.5rem; }
  .lk-statlist { padding: .3rem .4rem .45rem .35rem; gap: .15rem; }
  .lk-si.hk-tile { width: 1.8rem; height: 1.8rem; }
  .lk-sl { font-size: .82rem; }
  .lk-sv { font-size: .95rem; }
  .lk-stat { grid-template-columns: auto minmax(0, 1fr) 2rem; column-gap: .3rem; }
  .lk-note { display: none; }
  .lk-note-big { display: block; }
  .lk-cats { height: 3.6rem; padding: 0 var(--gutter); }
  .lk-cat { height: 2.8rem; }
  .lk-cat-ico { width: 2.2rem; height: 2.2rem; }
  .lk-cat.active { height: 3.6rem; }
  .lk-cat.active .lk-cat-ico { width: 2.8rem; height: 2.8rem; }
  .lk-count { width: 3.2rem; }
  .lk-choose { font-size: 1.05rem; min-width: 7rem; }
  .lk-chosen { font-size: .95rem; }
  .cd { grid-template-columns: 1fr 1.3fr; }
  .cd-name { font-size: 1.5rem; }
}
