/* My Bean Locker (locker-live-v1, 26 Oct 2026). Beanville tokens (beanville.css): --bg --surface --surface-2 --edge --text
   --muted --line --sign --butter-soft --accent. The Locker door is its own green so the page reads as "your closet". */
body.lk-page { --lk-door: #2F7D6B; --lk-door-2: #25645A; --lk-door-ink: #FFF6E6; --lk-rail: #B98A2E; --lk-butter: #FFC93C; }
body.lk-page[data-theme="dark"] { --lk-door: #1F5248; --lk-door-2: #173E37; }
@media (prefers-color-scheme: dark) { body.lk-page:not([data-theme]) { --lk-door: #1F5248; --lk-door-2: #173E37; } }
body.lk-page[data-theme="dood"] { --lk-door: #2a0f4f; --lk-door-2: #1a0836; --lk-rail: #ff3ea5; }

.lk-hero h1 { margin-bottom: 6px; }
.lk-door { position: relative; overflow: hidden; margin: 0 0 16px; padding: 16px 16px 10px; border-radius: 22px; border: 3px solid var(--edge); box-shadow: 0 5px 0 var(--edge);
  background: linear-gradient(180deg, var(--lk-door), var(--lk-door-2)); color: var(--lk-door-ink); }
.lk-door::before { content: ""; position: absolute; inset: auto 0 0 0; height: 8px; background: repeating-linear-gradient(90deg, #0002 0 10px, transparent 10px 16px); }
.lk-door::after { content: ""; position: absolute; right: 16px; top: 16px; width: 12px; height: 46px; border-radius: 6px; background: #E9D9B0; box-shadow: inset 0 -3px 0 #0003; }
body.bm-page main.bm-wrap .lk-door h2 { color: var(--lk-door-ink) !important; margin: 0; font-size: clamp(20px, 4.6vw, 26px); }
body.bm-page main.bm-wrap .lk-door p { color: var(--lk-door-ink) !important; opacity: .92; margin: 4px 0 8px; font-size: 14.5px; max-width: 60ch; }
.lk-vents { position: absolute; right: 44px; top: 18px; display: grid; gap: 4px; }
.lk-vents i { display: block; width: 44px; height: 5px; border-radius: 3px; background: #0003; }
.lk-hooks { display: flex; gap: 10px; overflow-x: auto; padding: 6px 2px 10px; scroll-snap-type: x proximity; }
.lk-door-hint { margin: 6px 0 8px; font-weight: 600; }
.lk-hook { flex: none; scroll-snap-align: start; display: grid; justify-items: center; gap: 4px; background: transparent; border: 0; cursor: pointer; padding: 0; width: 84px; color: var(--lk-door-ink); }
.lk-pin { width: 14px; height: 14px; border-radius: 50%; background: var(--lk-rail); border: 2px solid #0005; margin-bottom: -6px; z-index: 1; }
.lk-mini { position: relative; width: 74px; height: 74px; border-radius: 16px; border: 2px solid #0006; background: var(--surface-2); overflow: hidden; }
.lk-mini img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lk-hook b { font-size: 12.5px; max-width: 84px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lk-hook[aria-pressed="true"] .lk-mini { border-color: var(--lk-butter); box-shadow: 0 0 0 3px var(--lk-butter); }
.lk-hook:focus-visible { outline: 3px solid var(--lk-butter); outline-offset: 2px; border-radius: 12px; }

.lk-room { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); margin-top: 12px; }
.lk-room[hidden] { display: none; }
.lk-room > * { min-width: 0; }
.lk-door, .lk-room { min-width: 0; max-width: 100%; }
@media (min-width: 880px) { .lk-room { grid-template-columns: 330px 1fr; align-items: start; } .lk-mirrorcol { position: sticky; top: 76px; } }
.lk-card { background: var(--surface); border: 3px solid var(--edge); border-radius: 22px; box-shadow: 0 5px 0 var(--edge); padding: 12px; color: var(--text); }
.lk-mirror { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; border: 2px solid var(--edge); background: repeating-conic-gradient(var(--surface-2) 0 25%, var(--surface) 0 50%) 0 0/22px 22px; }
.lk-mirror img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.lk-tag { position: absolute; left: 8px; top: 8px; z-index: 2; background: #2B1B14; color: #FFF6E6; border-radius: 999px; font-size: 12px; font-weight: 700; padding: 3px 9px; }
.lk-paint { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px; padding: 16px; text-align: center; font-weight: 600; color: var(--muted); }
.lk-paint[hidden] { display: none; }
.lk-spin { width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--text); animation: lkspin 1s linear infinite; }
@keyframes lkspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .lk-spin { animation: none; } }
.lk-bornlist { position: absolute; inset: 40px 10px 10px; margin: 0; padding: 10px; list-style: none; display: grid; align-content: start; gap: 4px; background: var(--surface); border-radius: 10px; overflow: auto; font-size: 13.5px; }
.lk-bornlist[hidden] { display: none; }
.lk-bornlist li { display: flex; justify-content: space-between; gap: 8px; border-bottom: 1px dashed var(--line); padding: 3px 0; }
.lk-bornlist span { color: var(--muted); }
.lk-views { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 10px 0 0; }
.lk-view { border: 2px solid var(--edge); border-radius: 10px; background: var(--surface); color: var(--text); padding: 6px 4px; font: 700 13px var(--f-body); cursor: pointer; min-height: 40px; }
.lk-view[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.lk-sum { margin: 10px 0 0; font-size: 13.5px; font-weight: 600; }
.lk-changes { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 4px; font-size: 13.5px; }
.lk-changes li { display: flex; justify-content: space-between; gap: 8px; border-bottom: 1px dashed var(--line); padding: 3px 0; }
.lk-how { font-size: 12px; color: var(--muted); white-space: nowrap; }
.lk-how .free { color: var(--sign); }
.lk-actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 10px; }
body.bm-page main.bm-wrap .lk-wear { text-align: center; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
body.bm-page main.bm-wrap .lk-wear[aria-disabled="true"] { opacity: .45; cursor: default; pointer-events: none; }
.lk-fine { font-size: 12px; color: var(--muted); margin: 8px 0 0; }

.lk-shelfhead { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; margin-bottom: 8px; }
body.bm-page main.bm-wrap .lk-shelfhead h2 { margin: 0; font-size: 24px; }
.lk-stats { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--muted); }
.lk-stats b { color: var(--text); font-family: var(--f-mono, monospace); }
.lk-slots, .lk-chips { display: flex; gap: 6px; overflow-x: auto; padding: 2px 2px 8px; scroll-snap-type: x proximity; }
.lk-slot { flex: none; scroll-snap-align: start; border: 2px solid var(--edge); border-radius: 999px; background: var(--surface); color: var(--text); padding: 6px 12px; font: 700 14px var(--f-body); cursor: pointer; min-height: 40px; white-space: nowrap; }
.lk-slot small { font: 700 11px var(--f-mono, monospace); opacity: .7; margin-left: 4px; }
.lk-slot[aria-pressed="true"] { background: var(--lk-butter); color: #2B1B14; box-shadow: 0 3px 0 var(--edge); }
.lk-slot.empty { opacity: .55; }
.lk-chip { flex: none; border: 2px solid var(--line); border-radius: 999px; background: transparent; color: var(--text); padding: 4px 11px; font: 600 13.5px var(--f-body); cursor: pointer; min-height: 36px; }
.lk-chip[aria-pressed="true"] { border-color: var(--text); background: var(--text); color: var(--bg); }
.lk-shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; padding: 12px; border-radius: 14px; background: var(--surface-2); border: 2px solid var(--line); }
.lk-item { position: relative; border: 2px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--text); padding: 5px; cursor: pointer; text-align: left; display: grid; gap: 3px; box-shadow: 0 3px 0 rgba(43, 27, 20, .12); font-family: var(--f-body); }
.lk-item:hover:not(:disabled) { border-color: var(--edge); }
.lk-item[aria-pressed="true"] { border-color: var(--edge); background: var(--butter-soft, #FFE9A8); box-shadow: 0 3px 0 var(--edge); }
.lk-item.wearing { outline: 2px dashed var(--sign); outline-offset: -6px; }
.lk-item:disabled { opacity: .55; cursor: default; }
.lk-thumb { position: relative; display: grid; place-items: center; aspect-ratio: 1; border-radius: 9px; overflow: hidden; background: var(--surface-2); font-size: 28px; }
.lk-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lk-ph { opacity: .6; }
.lk-iname { font-size: 12.5px; font-weight: 600; line-height: 1.15; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; min-height: 2.3em; }
.lk-badges .bm-tier { font-size: 10px; }
.lk-src { font-size: 11px; color: var(--muted); line-height: 1.15; }
.lk-src.prize { color: var(--sign); font-weight: 700; }
.lk-qty { position: absolute; top: 8px; right: 8px; z-index: 1; background: #2B1B14; color: #FFF6E6; border-radius: 999px; font: 700 11px var(--f-mono, monospace); padding: 1px 6px; }
.lk-empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 20px 8px; }
.lk-drawer { margin-top: 12px; display: grid; grid-template-columns: 72px 1fr; gap: 10px 12px; align-items: center; }
.lk-drawer[hidden] { display: none; }
.lk-drawer .lk-thumb { width: 72px; }
body.bm-page main.bm-wrap .lk-drawer h3 { margin: 0; font: 700 17px var(--f-body); }
.lk-drawer p { margin: 2px 0 0; font-size: 13.5px; }
.lk-drawer-row { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
/* big-win-checks-v1 */
.lk-checks[hidden] { display: none; }
.lk-checklist { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 12px; }
.lk-check { margin: 0; display: grid; gap: 6px; padding: 10px; border: 2px solid rgba(127,127,127,.35); border-radius: 14px; background: rgba(255,255,255,.04); }
.lk-check.on { border-color: #2F7D6B; box-shadow: 0 0 0 2px rgba(47,125,107,.35); }
.lk-check img { width: 100%; height: auto; display: block; }
.lk-check figcaption { display: grid; gap: 4px; }
.lk-check figcaption small { opacity: .8; }
.lk-mirror { position: relative; }
.lk-checkon { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
/* locker-gifts-v1 */
.lk-giftwhy { align-self: center; font-size: 12.5px; opacity: .8; }
.lk-gift { grid-column: 1 / -1; display: grid; gap: 6px; border-top: 1px dashed rgba(127,127,127,.4); padding-top: 10px; }
.lk-gift input { min-height: 44px; padding: 8px 12px; border-radius: 10px; border: 1px solid rgba(127,127,127,.5); font: inherit; width: 100%; box-sizing: border-box; }
.lk-gifthits { display: grid; gap: 6px; }
.lk-gifthit { text-align: left; display: grid; gap: 2px; min-height: 44px; padding: 8px 12px; border-radius: 10px; border: 1px solid rgba(127,127,127,.45); background: transparent; color: inherit; cursor: pointer; font: inherit; }
.lk-gifthit small { opacity: .75; font-size: 12.5px; }
.lk-gifthit[aria-selected="true"] { border-color: currentColor; box-shadow: 0 0 0 2px rgba(46,160,90,.45); }
.lk-soon { font-size: 10.5px; font-weight: 700; background: #FFF0C2; color: #8A5B00; border-radius: 999px; padding: 1px 7px; margin-left: 4px; }

@media (max-width: 879px) {
  .lk-room { display: block; min-width: 0; max-width: 100%; }
  .lk-mirrorcol, .lk-shelfcol { min-width: 0; max-width: 100%; }
  .lk-shelfcol { margin-top: 12px; }
  /* stays in view under the site's fixed header while you browse the rack */
  .lk-mirrorcol { position: sticky; top: 66px; z-index: 5; background: var(--bg); padding: 4px 0 8px; }
  .lk-mirrorcard { display: grid; grid-template-columns: 40% 1fr; gap: 10px; padding: 10px; }
  .lk-views { grid-template-columns: 1fr; gap: 4px; margin: 0; }
  .lk-view { min-height: 34px; font-size: 12.5px; }
  .lk-changes, .lk-fine { display: none; }
  .lk-sum { font-size: 12.5px; margin-top: 6px; }
  .lk-actions { grid-template-columns: 1fr auto; margin-top: 6px; gap: 6px; }
  body.bm-page main.bm-wrap .lk-actions .btn { padding: 6px 12px !important; min-height: 40px; font-size: 14px; white-space: nowrap; }
  .lk-vents { display: none; }
}

/* The site sets overflow-x:hidden on html and body, which makes body a scroll box that never scrolls, so a sticky mirror
   can't stick. On this page only: clip (same look, no scroll box). */
html:has(body.lk-page), body.lk-page { overflow-x: clip !important; overflow-y: visible !important; }

/* v2 (26 Oct, G): the page colours switch sits at the top, under the title */
body.bm-page main.bm-wrap .lk-themebar { justify-content: flex-start; margin: 0 0 10px; }
