/* Locker Room (/locker-room; locker1, 20-10-2026). The editor's page: picture on the left (sticky on desktop), the four
   steps on the right; one column on phones. Fonts of the bots for the text on the picture. */
@font-face { font-family: 'LockerDino'; src: url('/static/locker/fonts/Dinofans.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'LockerPusab'; src: url('/static/locker/fonts/PUSAB.otf') format('opentype'); font-display: swap; }
/* locker3: four more (Mortimer 20-10-2026: «agregar unas 3 o 4 fonts más»), Latin set, OFL 1.1 / Apache 2.0 (LICENSE-*.txt next to them) */
@font-face { font-family: 'LockerBangers'; src: url('/static/locker/fonts/Bangers.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'LockerBebas'; src: url('/static/locker/fonts/BebasNeue.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'LockerMarker'; src: url('/static/locker/fonts/PermanentMarker.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'LockerPacifico'; src: url('/static/locker/fonts/Pacifico.woff2') format('woff2'); font-display: swap; }

/* basc.css sets overflow-x: hidden on html and body, which turns off position: sticky. This page only uses clip
   (same look, no scroll box) so the picture can stay on screen; the header keeps scrolling away as on every page. */
html:has(.lk), html:has(.lk) body { overflow-x: clip; }
html:has(.lk) .header-nav { position: relative; top: auto; }

.lk-head { position: relative; }
.lk-admin { position: absolute; top: 16px; right: 16px; z-index: 2; padding: 7px 12px; border-radius: 999px; font-size: 0.82rem; font-weight: 700;
    color: #fff; background: rgba(249, 115, 22, 0.9); box-shadow: 0 6px 18px rgba(249, 115, 22, 0.35); }
.lk-admin:hover { background: var(--orange); }
.lk-steps { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 22px 0 0; padding: 0; position: relative; }
.lk-steps li { display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px 7px 7px; border-radius: 999px; background: rgba(7, 2, 15, 0.45);
    border: 1px solid var(--line-strong); font-weight: 600; font-size: 0.92rem; backdrop-filter: blur(6px); }
.lk-steps b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-size: 0.8rem;
    background: linear-gradient(135deg, #9945ff, #14f195); color: #07020f; }

.lk-checker { background-color: #2a2238;
    background-image: linear-gradient(45deg, #3a3150 25%, transparent 25%), linear-gradient(-45deg, #3a3150 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #3a3150 75%), linear-gradient(-45deg, transparent 75%, #3a3150 75%);
    background-size: 16px 16px; background-position: 0 0, 0 8px, 8px -8px, -8px 0; }
.lk .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- the editor ---------- */
.lk { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(340px, 0.88fr); gap: 28px; align-items: start; }
.lk-stage-col { position: sticky; top: 16px; display: grid; gap: 14px; }
.lk-stage { position: relative; padding: 14px; border-radius: 22px; background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.03));
    border: 1px solid var(--line-strong); box-shadow: 0 24px 60px rgba(0,0,0,0.45); }
.lk-stage::before { content: ''; position: absolute; inset: -1px; border-radius: 22px; padding: 1px; pointer-events: none;
    background: linear-gradient(135deg, rgba(153,69,255,0.8), rgba(0,221,235,0.25) 40%, rgba(249,115,22,0.6));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.lk-stage-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 2px 4px 12px; }
.lk-who { display: grid; line-height: 1.2; min-width: 0; }
.lk-who b { font-size: 1.15rem; font-weight: 900; letter-spacing: 0.01em; }
.lk-who em { font-style: normal; color: var(--muted); font-size: 0.84rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lk-scene-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-size: 0.82rem; font-weight: 700;
    background: rgba(0, 221, 235, 0.1); border: 1px solid rgba(0, 221, 235, 0.35); color: #bff9fd; white-space: nowrap; }
.lk-scene-chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); animation: lk-pulse 1.8s ease-in-out infinite; }
.lk-frame { position: relative; aspect-ratio: var(--lk-ratio, 1 / 1); border-radius: 14px; overflow: hidden; background: #0d0718; }
.lk.is-transparent .lk-frame { background-color: #2a2238;
    background-image: linear-gradient(45deg, #3a3150 25%, transparent 25%), linear-gradient(-45deg, #3a3150 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #3a3150 75%), linear-gradient(-45deg, transparent 75%, #3a3150 75%);
    background-size: 24px 24px; background-position: 0 0, 0 12px, 12px -12px, -12px 0; }
.lk-canvas { display: block; width: 100%; height: 100%; cursor: grab; touch-action: none; }
.lk-canvas.is-dragging { cursor: grabbing; }
.lk-canvas.is-touching { cursor: crosshair; touch-action: none; }
/* locker1c: the magnets (bottom edge, middle) light up while the ape sticks to them */
.lk-guide { position: absolute; pointer-events: none; opacity: 0; transition: opacity .15s ease; background: var(--cyan, #00ddeb); box-shadow: 0 0 10px rgba(0, 221, 235, 0.9); }
.lk-guide--bottom { left: 0; right: 0; bottom: 0; height: 3px; }
.lk-guide--centre { top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px; }
.lk-frame.is-snap-bottom .lk-guide--bottom, .lk-frame.is-snap-centre .lk-guide--centre { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .lk-guide { transition: none; } }
.lk-chip:disabled { opacity: 0.45; cursor: default; }
.lk-icon { padding: 5px 9px; }
.lk-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.lk-busy { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; padding: 20px; text-align: center;
    font-weight: 700; background: rgba(7, 2, 15, 0.72); backdrop-filter: blur(6px); }
.lk-busy[hidden] { display: none; }
.lk-spinner { width: 44px; height: 44px; border-radius: 50%; border: 3px solid rgba(255,255,255,0.15); border-top-color: var(--cyan); border-right-color: #9945ff;
    animation: lk-spin 0.8s linear infinite; }
.lk-stage-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 12px 4px 0; }
.lk-info { color: var(--muted); font-size: 0.84rem; font-variant-numeric: tabular-nums; }
.lk-play { display: flex; gap: 8px; align-items: center; }
.lk-hint { margin: 8px 4px 0; color: var(--muted); font-size: 0.8rem; }
[data-play] svg { width: 14px; height: 14px; fill: currentColor; }
[data-play][aria-pressed="true"] .lk-i-play, [data-play][aria-pressed="false"] .lk-i-pause { display: none; }

/* chips and segmented buttons */
.lk-chip { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; padding: 7px 13px; border-radius: 10px;
    font: inherit; font-size: 0.86rem; font-weight: 700; color: #fff; cursor: pointer; background: rgba(255,255,255,0.06); border: 1px solid var(--line-strong);
    transition: background 0.15s, border-color 0.15s, transform 0.15s; }
.lk-chip:hover { background: rgba(255,255,255,0.12); }
.lk-chip.is-on { background: rgba(0, 221, 235, 0.16); border-color: var(--cyan); color: #dffcff; }
.lk-seg { display: inline-flex; gap: 4px; padding: 3px; border-radius: 12px; background: rgba(0,0,0,0.25); border: 1px solid var(--line); }
.lk-seg .lk-chip { border-color: transparent; min-height: 32px; padding: 5px 11px; }
.lk-seg .lk-chip.is-on { border-color: var(--cyan); }
.lk-seg--wide { display: flex; }
.lk-seg--wide .lk-chip { flex: 1; }

/* the files */
.lk-export { display: flex; flex-wrap: wrap; gap: 10px; }
.lk-btn { padding: 13px 18px; border: 0; cursor: pointer; font-family: inherit; white-space: nowrap; }
.lk-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.lk-btn[hidden] { display: none; }
.lk-btn[disabled] { opacity: 0.55; cursor: default; transform: none; }
.lk.is-loading .lk-export .lk-btn { opacity: 0.7; cursor: progress; }
.btn-ghost.lk-btn { border: 1px solid var(--line-strong); }
.lk-gif { display: inline-flex; flex: 1 1 260px; }
.lk-btn--gif { flex: 1; border-radius: 12px 0 0 12px; background: linear-gradient(110deg, #9945ff 0%, #8752f3 28%, #5497d5 55%, #43b4ca 72%, #28e0b9 88%, #19fb9b 100%);
    box-shadow: 0 10px 30px rgba(153, 69, 255, 0.35); color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,0.35); }
.lk-btn--gif:hover { box-shadow: 0 14px 36px rgba(25, 251, 155, 0.35); }
.lk-btn--gif.is-working { animation: lk-shine 1.2s linear infinite; background-size: 200% 100%; }
.lk-gif-size select { height: 100%; padding: 0 10px; border-radius: 0 12px 12px 0; border: 1px solid var(--line-strong); border-left: 0; font: inherit; font-size: 0.85rem;
    font-weight: 700; color: #fff; background: rgba(255,255,255,0.08); cursor: pointer; }
/* locker1c (Mortimer 20-10-2026: «apenas se leen los textos»): the native list of every select here is dark with light text */
.lk select { color-scheme: dark; }
.lk select option { background: #1b1230; color: #f4efff; }
.lk select option:checked { background: #2a1d4a; color: #ffffff; }
.lk-progress { height: 6px; border-radius: 999px; overflow: hidden; background: rgba(255,255,255,0.08); }
.lk-progress[hidden] { display: none; }
.lk-progress span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #9945ff, #14f195); transition: width 0.2s; }
.lk-note { margin: 0; padding: 10px 14px; border-radius: 12px; font-size: 0.9rem; background: rgba(20, 241, 149, 0.08); border: 1px solid rgba(20, 241, 149, 0.3); color: #c9ffe6; }
.lk-note[hidden] { display: none; }
.lk-note.is-bad { background: rgba(239, 68, 68, 0.1); border-color: rgba(239, 68, 68, 0.4); color: #fecaca; }
.lk-page-note { margin-top: 16px; }

/* ---------- the panel ---------- */
.lk-panel { border-radius: 22px; background: var(--panel); border: 1px solid var(--line-strong); overflow: hidden; scroll-margin-top: 100px; }
.lk-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 6px; background: rgba(0,0,0,0.25); border-bottom: 1px solid var(--line); }
.lk-tab { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 6px; border-radius: 12px; border: 0; cursor: pointer;
    font: inherit; font-weight: 800; font-size: 0.95rem; color: var(--muted); background: none; transition: background 0.15s, color 0.15s; }
.lk-tab b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: 0.75rem; background: rgba(255,255,255,0.1); color: #fff; }
.lk-tab:hover { color: #fff; background: rgba(255,255,255,0.05); }
.lk-tab.is-on { color: #fff; background: rgba(255,255,255,0.08); box-shadow: inset 0 -2px 0 var(--orange); }
.lk-tab.is-on b { background: linear-gradient(135deg, var(--orange), #ea580c); }
.lk-pane { padding: 18px 20px 22px; animation: lk-in 0.25s ease-out; }
.lk-pane[hidden] { display: none; }
.lk-h { display: flex; align-items: center; gap: 8px; margin: 18px 0 10px; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.lk-pane > .lk-h:first-child, .lk-only-cut > .lk-h:first-child { margin-top: 0; }
.lk-only-cut { margin-top: 18px; }
.lk:not(.is-cut) .lk-only-cut { display: none; }
.lk-count { padding: 1px 8px; border-radius: 999px; font-size: 0.75rem; letter-spacing: 0; background: rgba(255,255,255,0.1); color: #fff; }
.lk-small { margin: 10px 0 0; color: var(--muted); font-size: 0.84rem; }
.lk-next { width: 100%; margin-top: 20px; border: 0; cursor: pointer; font-family: inherit; }

/* 1 · apes */
.lk-apes-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.lk-apes-head .lk-h { margin: 0; flex: none; }
.lk-find { flex: 0 1 220px; min-width: 0; height: 34px; padding: 6px 12px; font-size: 0.85rem; }
.lk-ape[hidden] { display: none; }
.lk-apes { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; }
.lk-apes.is-many { max-height: 360px; overflow-y: auto; padding-right: 4px; scrollbar-width: thin; }
.lk-ape { position: relative; display: grid; padding: 0; border-radius: 14px; overflow: hidden; cursor: pointer; font: inherit; color: #fff; text-align: left;
    background: #140a26; border: 2px solid transparent; transition: border-color 0.15s, transform 0.15s; }
.lk-ape img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.lk-ape > span { display: flex; align-items: baseline; justify-content: space-between; gap: 4px; padding: 6px 8px; font-size: 0.82rem; }
.lk-ape em { font-style: normal; font-size: 0.7rem; color: var(--muted); }
.lk-ape:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.lk-ape.is-on { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.25); }
.lk-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lk-mode { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; cursor: pointer; font: inherit; color: #fff; text-align: left;
    background: rgba(255,255,255,0.04); border: 2px solid var(--line); transition: border-color 0.15s, background 0.15s; }
.lk-mode:hover { border-color: var(--line-strong); }
.lk-mode.is-on { border-color: var(--cyan); background: rgba(0, 221, 235, 0.08); }
.lk-mode-pic { flex: none; width: 64px; height: 64px; border-radius: 10px; overflow: hidden; background: #140a26; }
.lk-mode-pic img, .lk-mode-pic canvas { width: 100%; height: 100%; object-fit: cover; }
.lk-mode-pic img:not([src]) { visibility: hidden; }
.lk-mode b { display: block; font-size: 0.98rem; }
.lk-mode em { font-style: normal; font-size: 0.8rem; color: var(--muted); }
.lk-range { display: flex; align-items: center; gap: 12px; }
.lk-range input { flex: 1; }
.lk-range output { min-width: 46px; font-weight: 800; font-variant-numeric: tabular-nums; }
.lk input[type="range"] { accent-color: var(--orange); height: 28px; }

/* 2 · scenes */
.lk-families { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.lk-scenes { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; max-height: 470px; overflow-y: auto; padding: 2px 4px 2px 2px; scrollbar-width: thin; }
.lk-scene { display: grid; align-content: start; gap: 6px; padding: 5px 5px 7px; border-radius: 14px; cursor: pointer; font: inherit; color: #fff; text-align: left;
    background: rgba(255,255,255,0.04); border: 2px solid transparent; transition: border-color 0.15s, transform 0.15s, background 0.15s; }
.lk-scene[hidden] { display: none; }
.lk-scene:hover { transform: translateY(-2px); background: rgba(255,255,255,0.08); }
.lk-scene.is-on { border-color: var(--cyan); background: rgba(0, 221, 235, 0.1); box-shadow: 0 0 0 3px rgba(0, 221, 235, 0.18); }
.lk-scene-pic { display: block; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: #140a26; }
.lk-scene-pic img { width: 100%; height: 100%; object-fit: cover; }
.lk-scene-name { min-width: 0; overflow-wrap: anywhere; display: flex; align-items: center; justify-content: space-between; gap: 4px; padding: 0 4px; font-size: 0.8rem; font-weight: 700; line-height: 1.25; }
.lk-scene-name i { font-style: normal; font-size: 0.55rem; color: #14f195; }
.lk-plain { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.lk-scene--plain .lk-scene-name { font-size: 0.74rem; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lk-swatch { display: block; aspect-ratio: 1; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.lk-scene--colour .lk-swatch { position: relative; background: conic-gradient(#ef4444, #f59e0b, #14f195, #00ddeb, #9945ff, #d946ef, #ef4444); }
.lk-scene--colour input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border: 0; padding: 0; }

/* 3 · gear */
.lk-gear { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lk-gear-item { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; cursor: pointer; font: inherit; color: #fff; text-align: left;
    background: rgba(255,255,255,0.04); border: 2px solid var(--line); transition: border-color 0.15s, background 0.15s, transform 0.15s; }
.lk-gear-item:hover:not([disabled]) { transform: translateY(-2px); border-color: var(--line-strong); }
.lk-gear-item.is-on { border-color: var(--orange); background: rgba(249, 115, 22, 0.1); }
.lk-gear-item[disabled] { opacity: 0.4; cursor: not-allowed; }
.lk-gear-pic { flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 10px; overflow: hidden; }
.lk-gear-pic img { max-width: 86%; max-height: 86%; object-fit: contain; }
.lk-gear-pic img:not([src]) { visibility: hidden; }
.lk-gear-pic svg { width: 30px; height: 30px; fill: none; stroke: #14f195; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.lk-gear-item:first-child .lk-gear-pic { background: rgba(20, 241, 149, 0.08); }
.lk-gear-item b { display: block; font-size: 0.98rem; }
.lk-gear-item em { font-style: normal; font-size: 0.78rem; color: var(--muted); line-height: 1.3; display: block; }
.lk-tag { position: absolute; top: 6px; right: 8px; font-style: normal; font-size: 0.62rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #14f195; }

/* 4 · text */
.lk-text-row { display: flex; gap: 8px; align-items: stretch; }
.lk-text { resize: none; font-weight: 700; font-size: 1.05rem; }
.lk-text-row .lk-chip { min-width: 48px; font-size: 1.1rem; }
.lk-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.lk-field { display: grid; gap: 6px; margin-top: 14px; }
.lk-grid2 .lk-field { margin-top: 0; }
.lk-field > span { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.lk-field[hidden] { display: none; }
.lk-swatches { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.lk-dot { width: 32px; height: 32px; border-radius: 50%; cursor: pointer; background: var(--c); border: 2px solid rgba(255,255,255,0.25); transition: transform 0.15s; }
.lk-dot:hover { transform: scale(1.1); }
.lk-dot.is-on { border-color: #fff; box-shadow: 0 0 0 3px rgba(0, 221, 235, 0.6); }
.lk-swatches input[type="color"] { width: 40px; height: 34px; padding: 0; border: 1px solid var(--line-strong); border-radius: 8px; background: none; cursor: pointer; }

/* ---------- before the editor: a glimpse of the scenes ---------- */
.lk-showcase { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-bottom: 22px; }
.lk-show { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--line-strong); box-shadow: 0 14px 34px rgba(0,0,0,0.4);
    animation: lk-rise 0.6s ease-out both; animation-delay: calc(var(--i) * 70ms); }
.lk-show img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.lk-show em { position: absolute; left: 8px; bottom: 8px; padding: 3px 9px; border-radius: 999px; font-style: normal; font-size: 0.75rem; font-weight: 700;
    background: rgba(7, 2, 15, 0.7); backdrop-filter: blur(4px); }
.lk-empty { margin-top: 0; }

@keyframes lk-spin { to { transform: rotate(360deg); } }
@keyframes lk-pulse { 50% { opacity: 0.35; } }
@keyframes lk-in { from { opacity: 0; transform: translateY(6px); } }
@keyframes lk-rise { from { opacity: 0; transform: translateY(14px) scale(0.97); } }
@keyframes lk-shine { to { background-position: -200% 0; } }

@media (max-width: 1080px) {
    .lk { grid-template-columns: minmax(0, 1fr) minmax(320px, 0.95fr); gap: 20px; }
    .lk-showcase { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
    .lk { grid-template-columns: minmax(0, 1fr); }
    .lk-stage-col { position: static; }
    .lk-stage { padding: 10px; border-radius: 18px; }
    .lk-panel { border-radius: 18px; }
    .lk-pane { padding: 16px 14px 18px; }
    .lk-scenes { max-height: 380px; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
}
@media (max-width: 860px) {
    /* phones and tablets: only the picture stays on screen while you go through the steps; the files come after them */
    .lk { gap: 10px; }
    .lk-stage-col, .lk-stage { display: contents; }
    .lk-stage::before { display: none; }
    .lk-stage-top { order: 1; padding: 0 2px; }
    .lk-frame { order: 2; position: sticky; top: 8px; z-index: 5; height: 40vh; aspect-ratio: auto; display: flex; justify-content: center;
        border: 1px solid var(--line-strong); border-radius: 16px; box-shadow: 0 16px 40px rgba(0,0,0,0.55); }
    .lk-canvas { width: auto; height: 100%; max-width: 100%; }
    .lk.is-banner .lk-frame { height: auto; aspect-ratio: var(--lk-ratio, 3 / 1); }
    .lk.is-banner .lk-canvas { width: 100%; height: auto; }
    .lk.is-banner .lk-panel { scroll-margin-top: calc(33vw + 24px); }
    .lk-stage-bar { order: 3; padding: 2px 2px 4px; }
    .lk-hint { display: none; }
    .lk-panel { order: 4; scroll-margin-top: calc(40vh + 24px); }
    .lk-export { order: 5; margin-top: 6px; } .lk-progress { order: 6; } .lk-note { order: 7; }
}
@media (max-width: 520px) {
    .lk-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
    .lk-steps li { padding-right: 10px; }
    .lk-info { flex: 1 1 100%; font-size: 0.78rem; }
    .lk-admin { position: static; display: inline-block; margin-bottom: 12px; }
    .lk-steps li { font-size: 0.84rem; }
    .lk-tab { flex-direction: column; gap: 3px; font-size: 0.82rem; padding: 8px 4px; }
    .lk-modes, .lk-gear { grid-template-columns: 1fr; }
    .lk-plain { gap: 6px; }
    .lk-plain .lk-scene-name { font-size: 0.68rem; padding: 0 1px; }
    .lk-export .lk-btn { flex: 1 1 140px; }
    .lk-gif { flex-basis: 100%; }
    .lk-apes { grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
    .lk-showcase { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
    .lk *, .lk-show { animation: none !important; transition: none !important; }
}

/* locker2: any NFT (Mortimer 20-10-2026: «que colecciones externas puedan usar este locker room … poniendo la mint address») */
.lk-blank { position: absolute; inset: 0; display: grid; place-content: center; gap: 8px; padding: 24px; text-align: center; color: var(--muted);
    background: radial-gradient(120% 90% at 50% 0%, rgba(153, 69, 255, 0.22), transparent 60%), radial-gradient(90% 70% at 50% 100%, rgba(20, 241, 149, 0.12), transparent 70%), #0d0718; }
.lk-blank b { color: #fff; font-size: 1.15rem; }
.lk-blank[hidden] { display: none; }
.lk-none { margin: 0 0 12px; }
.lk-none a { color: var(--cyan, #00ddeb); font-weight: 700; }
.lk-none[hidden] { display: none; }
.lk-mint { margin-top: 16px; display: grid; gap: 6px; }
.lk-mint > label { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.lk-mint-row { display: flex; gap: 8px; }
.lk-mint-row input { flex: 1; min-width: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.85rem; }
.lk-mint-row .lk-chip { flex: none; padding-inline: 18px; }
.lk-mint .lk-small { margin: 0; }
.lk-small.is-bad { color: #ff8a8a; }
.lk-gear-note { color: #ffd38a; }

/* locker3: two texts, and a frame around the one being edited (only on screen, never in the files) */
.lk-texts { margin-bottom: 4px; }
.lk-texts .lk-chip { flex-direction: column; gap: 0; line-height: 1.15; padding-block: 6px; }
.lk-texts .lk-chip em { font-style: normal; font-size: 0.72rem; font-weight: 600; color: var(--muted); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lk-text-sel { position: absolute; pointer-events: none; border: 1.5px dashed rgba(0, 221, 235, 0.9); border-radius: 6px; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35); }
.lk-text-sel[hidden] { display: none; }
/* locker7: the brush (Mortimer 20-10-2026: «un tipo de brush para borrar») and its ring on the picture, never in the files */
.lk-brush-ring { position: absolute; pointer-events: none; border-radius: 50%; transform: translate(-50%, -50%); border: 1.5px solid #fff; box-shadow: 0 0 0 1.5px rgba(0, 0, 0, 0.55), inset 0 0 0 1.5px rgba(0, 0, 0, 0.35); }
.lk-brush-ring[hidden] { display: none; }
.lk-canvas.is-brushing { cursor: none; }
.lk-brush-row { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.lk-brush-row[hidden] { display: none; }
.lk-brush-row input { flex: 1; min-width: 0; accent-color: var(--orange); }
.lk-brush-dot { flex: none; display: grid; place-items: center; width: 44px; height: 44px; }
.lk-brush-dot::before { content: ""; width: var(--lk-brush, 14px); height: var(--lk-brush, 14px); border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.6); }

/* locker4: what you are making (Scene / Party) */
.lk-formats { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.lk-formats-h { flex: 1 1 100%; margin-right: 6px; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.lk-format { flex: 1 1 0; display: flex; align-items: center; gap: 12px; min-width: 0; max-width: 290px; padding: 10px 14px 10px 10px; border-radius: 16px; cursor: pointer;
    font: inherit; color: #fff; text-align: left; background: rgba(255,255,255,0.04); border: 2px solid var(--line);
    transition: border-color 0.15s, background 0.15s, transform 0.15s; }
.lk-format:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.lk-format.is-on { border-color: var(--orange); background: linear-gradient(135deg, rgba(249, 115, 22, 0.16), rgba(153, 69, 255, 0.12)); box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.18); }
.lk-format-ico { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,0.06); }
.lk-format.is-on .lk-format-ico { background: linear-gradient(135deg, #9945ff, #14f195); }
.lk-format-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lk-format b { display: block; font-size: 1rem; }
.lk-format > span:last-child { min-width: 0; }
.lk-format em { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-style: normal; font-size: 0.8rem; color: var(--muted); }
.lk:not(.is-party) .lk-for-party, .lk.is-party .lk-for-scene { display: none !important; }
/* locker5: Market has its own pane (no scene gallery, no confetti) */
.lk:not(.is-market) .lk-for-market, .lk.is-market .lk-for-scene, .lk.is-market .lk-scenes, .lk.is-market .lk-scenes ~ .lk-confetti { display: none !important; }
.lk-market .lk-mint { margin-top: 18px; }
/* locker6: Banner (the Banner bot's 1500 x 500 templates) */
.lk:not(.is-banner) .lk-for-banner, .lk.is-banner .lk-for-scene, .lk.is-banner .lk-not-banner, .lk.is-banner .lk-scenes ~ .lk-confetti { display: none !important; }
.lk.is-banner .lk-scenes { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.lk.is-banner .lk-scene-pic { aspect-ratio: 3 / 1; }
.lk.is-banner [data-play], .lk.is-banner .lk-seg[aria-label="Speed"], .lk.is-banner .lk-gif { display: none; }
.lk-mkt-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.lk-mkt-chips[hidden] { display: none; }
.lk-mkt-chips + .lk-mkt-chips { margin-top: 10px; }
.lk-mkt { font-weight: 800; letter-spacing: 0.02em; }
.lk-mkt--basc { border-color: rgba(249, 115, 22, 0.55); }
.lk-mkt--basc.is-on, .lk-mkt--basc:hover { background: linear-gradient(135deg, rgba(249, 115, 22, 0.28), rgba(153, 69, 255, 0.22)); }
.lk-confetti { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 14px 0 4px; }
.lk-confetti svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lk-confetti .lk-small { margin: 0; }
@media (max-width: 860px) {
    .lk-formats { order: 0; gap: 8px; }
    .lk-formats-h { flex: 1 1 100%; }
    .lk-format { flex: 1 1 0; min-width: 0; padding: 8px 10px 8px 8px; gap: 10px; }
    .lk-format-ico { width: 36px; height: 36px; }
}
/* locker5: three formats on a phone: icon over the name, the line under it only from 520 px */
@media (max-width: 520px) {
    .lk-format { flex-direction: column; justify-content: center; gap: 6px; padding: 10px 6px; text-align: center; }
    .lk-format em { display: none; }
    .lk-format b { font-size: 0.92rem; }
}
