/* Curate the Wall */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media (min-width:651px){.wall-section .section-head{align-items:end}}
.wall-lede{max-width:430px;color:var(--muted);font-size:16px;line-height:1.6}

.wall-app{--orange:#171717;position:relative;border:1px solid var(--line);border-radius:4px;background:white;overflow:hidden}
.wall-stage{position:relative;aspect-ratio:16/9;background:#d6d1c9;overflow:hidden;outline:none;user-select:none;-webkit-user-select:none}
.wall-canvas{position:absolute;inset:0;width:100%;height:100%;display:block;touch-action:pan-y}
.wall-stage.is-dragging .wall-canvas{cursor:grabbing!important}
.wall-guides{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;overflow:visible}

/* loading + fallback */
.wall-loading{position:absolute;inset:0;display:grid;place-items:center;font-family:monospace;font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:#6d6860;background:radial-gradient(ellipse at 50% 38%,#efebe5,#d6d1c9 70%);transition:opacity .6s}
.wall-loading span:before{content:'';display:block;width:34px;height:2px;margin:0 auto 14px;background:var(--blue);animation:wall-pulse 1.4s ease-in-out infinite}
@keyframes wall-pulse{50%{transform:scaleX(.3);opacity:.5}}
.wall-app.is-ready .wall-loading{opacity:0;pointer-events:none}
.wall-fallback{display:none}
.wall-app.no-webgl .wall-stage{background:#d6d1c9 url(../assets/wall/poster.jpg) center/cover}
.wall-app.no-webgl .wall-loading,.wall-app.no-webgl .wall-drawer{display:none}
.wall-app.no-webgl .wall-fallback{display:flex;position:absolute;left:16px;right:16px;bottom:16px;justify-content:center}
.wall-fallback p{background:white;border:1px solid var(--line);border-radius:3px;padding:12px 16px;font-size:14px}
.wall-fallback a{border-bottom:1px solid var(--ink)}

/* empty wall: vinyl lettering */
.wall-empty{position:absolute;left:50%;top:28%;transform:translateX(-50%);text-align:center;width:min(90%,520px);color:#5f5a53;transition:opacity .5s;pointer-events:none}
.wall-empty-kicker{font-family:monospace;font-size:12px;letter-spacing:.16em;text-transform:uppercase;opacity:.75}
.wall-empty-line{font-family:Manrope,Arial,sans-serif;font-weight:500;letter-spacing:-.05em;font-size:clamp(2rem,4.4vw,3.6rem);line-height:1.1;margin:10px 0 14px;color:#4d4943}
.wall-empty-hint{font-size:14px;color:#6d6860}
.wall-empty-hint button{pointer-events:auto;background:none;border:0;padding:0;color:var(--blue);border-bottom:1px solid currentColor;font-size:inherit}
.hint-touch{display:none}
@media (pointer:coarse){.hint-touch{display:inline}.hint-desktop{display:none}}
.wall-app:not(.is-empty) .wall-empty,.wall-app:not(.is-ready) .wall-empty{opacity:0}
.wall-app:not(.is-empty) .wall-empty button{pointer-events:none}

/* ghost hand: shows the gesture once, then retires */
.wall-ghost-hand{position:absolute;left:50%;bottom:4%;width:54px;height:42px;margin-left:-27px;pointer-events:none;opacity:0}
.wall-ghost-hand span{position:absolute;inset:0;border-radius:2px;background:linear-gradient(135deg,#e7a067,#9a6b8a 60%,#49607e);box-shadow:0 0 0 3px #c7a25a,0 10px 24px rgba(0,0,0,.25)}
.wall-ghost-hand:after{content:'';position:absolute;right:-12px;bottom:-14px;width:22px;height:22px;border-radius:50%;background:rgba(21,23,27,.55);box-shadow:0 0 0 6px rgba(21,23,27,.12)}
.wall-app.is-ready.is-empty:not(.has-interacted) .wall-ghost-hand{animation:wall-hint 3.4s 1.2s ease-in-out 3 both}
@keyframes wall-hint{0%{opacity:0;transform:translate(0,0) scale(.8)}12%{opacity:1}55%{transform:translate(-120px,-210%) scale(1.25);opacity:1}70%{transform:translate(-120px,-200%) scale(1.25) rotate(4deg);opacity:1}85%,100%{transform:translate(-120px,-200%) scale(1.25);opacity:0}}
@media (max-width:650px){@keyframes wall-hint{0%{opacity:0;transform:translate(0,0) scale(.8)}12%{opacity:1}55%{transform:translate(0,-260%) scale(1.1);opacity:1}85%,100%{opacity:0;transform:translate(0,-250%) scale(1.1)}}}

/* toolbar */
.wall-toolbar{position:absolute;top:14px;left:14px;display:flex;gap:6px;flex-wrap:wrap;opacity:0;transition:opacity .4s}
.wall-app.is-ready .wall-toolbar{opacity:1}
.wall-toolbar button{display:inline-flex;align-items:center;gap:7px;height:34px;padding:0 12px;border:1px solid rgba(21,23,27,.12);border-radius:3px;background:rgba(255,255,255,.82);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);font-size:13px;font-weight:500;color:var(--ink);transition:background .2s,color .2s,border-color .2s}
.wall-toolbar button:hover{background:var(--ink);color:white;border-color:var(--ink)}
.wall-toolbar button[data-act="suggest"]{background:var(--blue);border-color:var(--blue);color:white}
.wall-toolbar button[data-act="suggest"]:hover{background:var(--ink);border-color:var(--ink)}
.wall-toolbar svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.wall-toolbar .only-icon{padding:0 9px}
.wall-app.is-empty .wall-toolbar [data-act="share"],.wall-app.is-empty .wall-toolbar [data-act="save"],.wall-app.is-empty .wall-toolbar [data-act="clear"]{display:none}
.wall-count{position:absolute;right:16px;bottom:12px;font-family:monospace;font-size:11px;letter-spacing:.06em;color:#6d6860;pointer-events:none}
.wall-stage:has(.wall-card:not([hidden])) .wall-count{opacity:0}

/* info card */
.wall-card{position:absolute;top:14px;right:14px;width:320px;max-width:calc(100% - 28px);background:white;border:1px solid var(--line);border-radius:4px;padding:20px 20px 18px;box-shadow:0 18px 40px -18px rgba(21,23,27,.35);animation:wall-card .25s ease both}
@keyframes wall-card{from{opacity:0;transform:translateY(-6px)}}
.card-close{position:absolute;top:10px;right:10px;width:30px;height:30px;display:grid;place-items:center;border:0;background:none;color:var(--muted);border-radius:3px}
.card-close:hover{background:#f2f2f2;color:var(--ink)}
.card-close svg{width:16px;height:16px;stroke:currentColor;stroke-width:1.6;fill:none}
.card-kicker{font-family:monospace;font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:var(--blue)}
.wall-card h3{font-size:1.3rem;letter-spacing:-.03em;line-height:1.2;margin:10px 30px 6px 0}
.card-artist{font-size:14px;color:var(--ink)}
.card-meta{display:flex;justify-content:space-between;gap:10px;font-family:monospace;font-size:12px;color:var(--muted);border-top:1px solid var(--line);margin-top:14px;padding-top:12px}
.card-frames{display:flex;gap:8px;margin-top:14px}
.card-frames button{width:26px;height:26px;border-radius:50%;border:2px solid white;background:var(--sw);box-shadow:0 0 0 1px var(--line);padding:0}
.card-frames button[aria-pressed="true"]{box-shadow:0 0 0 2px var(--blue)}
.card-actions{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:16px}
.card-link{font-size:13px;font-weight:500;border-bottom:1px solid var(--ink);padding-bottom:2px;white-space:nowrap}
.card-link:hover{color:var(--blue);border-color:var(--blue)}
.card-remove{border:0;background:none;padding:0;font-size:13px;color:var(--muted);white-space:nowrap}
.card-remove:hover{color:var(--orange)}

/* guides */
.wl-guide{stroke:var(--blue);stroke-width:1}
.wl-eye{stroke:var(--blue);stroke-width:1;stroke-dasharray:3 5;opacity:.45}
.wl-eye.on{stroke-dasharray:none;opacity:1}
.wl-cross{stroke:var(--blue);stroke-width:1}
.wl-gap{stroke:var(--orange);stroke-width:1;fill:none}
.wl-gap.eq{stroke:var(--blue)}
.wl-select{fill:none;stroke:var(--blue);stroke-width:1.5}
.wl-handle{fill:white;stroke:var(--blue);stroke-width:1.5}
.wl-label rect{fill:var(--orange)}
.wl-label text{fill:white;font:500 11px/1 'DM Sans',Arial,sans-serif;letter-spacing:.01em}
.wl-label.on rect{fill:var(--blue)}
.wl-label.muted rect{fill:rgba(255,255,255,.88)}
.wl-label.muted text{fill:var(--blue)}

/* drag feedback */
.wall-ghost{position:fixed;left:0;top:0;z-index:1000;pointer-events:none;opacity:0;transition:opacity .15s}
.wall-ghost.show{opacity:1}
.wall-ghost img{display:block;max-width:110px;max-height:110px;transform:translate(-50%,-50%) rotate(-3deg);box-shadow:0 18px 30px -10px rgba(0,0,0,.45)}
.wall-ghost[data-kind="object"] img{box-shadow:none;filter:drop-shadow(0 14px 14px rgba(0,0,0,.35))}
.wall-remove-hint{position:absolute;left:50%;bottom:16px;transform:translate(-50%,10px);background:var(--orange);color:white;font-size:13px;font-weight:500;padding:8px 14px;border-radius:3px;opacity:0;transition:opacity .2s,transform .2s;pointer-events:none}
.wall-stage.will-remove .wall-remove-hint{opacity:1;transform:translate(-50%,0)}
.wall-toast{position:absolute;left:50%;top:14px;transform:translate(-50%,-8px);background:var(--ink);color:white;font-size:13px;padding:9px 14px;border-radius:3px;opacity:0;transition:opacity .25s,transform .25s;pointer-events:none;white-space:nowrap;max-width:calc(100% - 28px);overflow:hidden;text-overflow:ellipsis}
.wall-toast.show{opacity:1;transform:translate(-50%,0)}

/* drawer */
.wall-drawer{border-top:1px solid var(--line);background:white}
.drawer-head{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:12px 18px 0}
.drawer-tabs{display:flex;gap:22px;overflow-x:auto;scrollbar-width:none}
.drawer-tabs::-webkit-scrollbar{display:none}
.drawer-tabs button{border:0;background:none;padding:8px 0;font-size:14px;color:var(--muted);white-space:nowrap;display:flex;gap:6px;align-items:baseline}
.drawer-tabs button[aria-selected="true"]{color:var(--ink);box-shadow:0 2px var(--blue)}
.drawer-n{font-family:monospace;font-size:11px;color:#9aa0ab}
.drawer-search{display:flex;align-items:center;gap:8px;margin:0;border:1px solid var(--line);border-radius:3px;padding:0 10px;height:36px;width:240px;flex-shrink:0;font-weight:400}
.drawer-search svg{width:16px;height:16px;flex-shrink:0;fill:none;stroke:var(--muted);stroke-width:1.5}
.drawer-search input{border:0;margin:0;padding:0;height:100%;font-size:14px;background:none;min-width:0}
.drawer-search input:focus{outline:none}
.drawer-search:focus-within{border-color:var(--blue);box-shadow:0 0 0 1px var(--blue)}
.drawer-list{display:flex;gap:12px;overflow-x:auto;padding:14px 18px 16px;scroll-snap-type:x proximity;touch-action:pan-x;scrollbar-color:#c4c7ce transparent;scrollbar-width:thin;min-height:212px}
.wall-thumb{flex:0 0 140px;scroll-snap-align:start;position:relative;display:flex;flex-direction:column;gap:9px;text-align:left;border:0;background:none;padding:0;cursor:grab;color:var(--ink);touch-action:pan-x}
.wall-thumb:active{cursor:grabbing}
.thumb-img{display:grid;place-items:center;height:112px;background:#f3f1ed;border-radius:3px;padding:12px;transition:background .2s,box-shadow .2s}
.thumb-img img{max-width:100%;max-height:88px;width:auto;height:auto;object-fit:contain;box-shadow:0 6px 12px -6px rgba(0,0,0,.35);pointer-events:none}
.wall-thumb[data-kind="object"] .thumb-img img{box-shadow:none;filter:drop-shadow(0 6px 6px rgba(0,0,0,.18))}
.wall-thumb:hover .thumb-img{background:#eceae4}
.wall-thumb:focus-visible{outline:2px solid var(--blue);outline-offset:3px}
.thumb-cap{display:flex;flex-direction:column;gap:1px;font-size:12px;line-height:1.35;min-width:0}
.thumb-cap strong{font-weight:600;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.thumb-cap span{color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.thumb-cap em{font-style:normal;font-family:monospace;font-size:11px;color:#8b909a;margin-top:2px}
.thumb-on{position:absolute;top:8px;left:8px;font-family:monospace;font-size:10px;letter-spacing:.06em;text-transform:uppercase;background:var(--blue);color:white;padding:3px 6px;border-radius:2px;opacity:0}
.wall-thumb.is-placed{cursor:pointer}
.wall-thumb.is-placed .thumb-img{box-shadow:inset 0 0 0 2px var(--blue)}
.wall-thumb.is-placed .thumb-on{opacity:1}
.drawer-empty{color:var(--muted);font-size:14px;padding:30px 0}
.drawer-foot{display:flex;justify-content:space-between;gap:20px;border-top:1px solid var(--line);padding:11px 18px;font-size:12px;color:var(--muted)}
.drawer-foot a{border-bottom:1px solid var(--line)}
.drawer-foot a:hover{color:var(--blue)}
.drawer-keys{font-family:monospace;font-size:11px}

/* fullscreen */
.wall-app:fullscreen{display:flex;flex-direction:column;border:0;border-radius:0}
.wall-app:fullscreen .wall-stage{flex:1;aspect-ratio:auto}

@media (max-width:900px){
  .drawer-keys{display:none}
  .wall-toolbar button span:not(.sr-only){display:none}
  .wall-toolbar button{padding:0 9px}
}
@media (max-width:650px){
  .wall-lede{font-size:15px}
  .wall-stage{aspect-ratio:1/1}
  .wall-count{display:none}
  .drawer-head{flex-direction:column;align-items:stretch;gap:8px;padding:10px 14px 0}
  .drawer-search{width:100%}
  .drawer-list{padding:12px 14px 14px;min-height:190px}
  .wall-thumb{flex-basis:118px}
  .thumb-img{height:96px}
  .thumb-img img{max-height:74px}
  .drawer-foot{padding:10px 14px}
  .wall-card{top:auto;bottom:10px;left:10px;right:10px;width:auto;max-width:none;padding:12px 14px}
  .card-kicker,.card-frames,.card-meta{display:none}
  .wall-card h3{font-size:1rem;margin:0 34px 2px 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .card-artist{font-size:13px;color:var(--muted)}
  .card-actions{margin-top:8px}
  .card-close{top:6px;right:6px}
  .wall-empty{top:22%}
  .wall-toast{white-space:normal;text-align:center}
}
@media (prefers-reduced-motion:reduce){
  .wall-ghost-hand{display:none}
  .wall-card{animation:none}
}

.wall-stage:focus-visible{outline:3px solid var(--blue);outline-offset:-3px}.wall-toolbar button,.drawer-tabs button{min-height:42px}.wall-card .card-frames button{width:34px;height:34px}.wall-app:not(.is-empty) .wall-empty{visibility:hidden}.drawer-foot{line-height:1.6}

.wall-export { border: 1px solid var(--rule); border-radius: 6px; padding: 28px; background: var(--paper, #fafafa); color: var(--ink); width: min(960px, calc(100% - 32px)); max-height: 90vh; overflow: auto; }
.wall-export::backdrop { background: rgb(21 23 27 / .7); }
.wall-export h3 { margin: 0 44px 8px 0; font-size: 28px; letter-spacing: -.03em; }
.wall-export p { margin: 0 0 18px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.wall-export img { display: block; width: 100%; height: auto; margin-bottom: 20px; }
.wall-export .export-close { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border: 1px solid var(--rule); background: transparent; color: var(--ink); cursor: pointer; }
.wall-export .export-close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; }

/* Search feedback and a visible, removable selection queue. */
.drawer-head{flex-wrap:wrap;gap:12px 24px}.drawer-tabs{flex:1;min-width:0}.drawer-search{height:42px}
.drawer-results{font-size:12px;color:var(--muted);padding:12px 18px 0;margin:0}
.wall-selection{padding:16px 18px;border-top:1px solid var(--line);background:#fafafa}
.selection-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-bottom:10px;font-size:13px}
.selection-count{color:var(--muted);margin-left:6px;font-family:monospace;font-size:11px}.selection-head p{color:var(--muted);font-size:12px;margin:0}
.selection-list{display:flex;gap:12px;overflow-x:auto;scrollbar-width:thin;padding:2px 0}
.selection-piece{display:flex;align-items:center;flex:0 0 auto;border:1px solid var(--line);background:white;border-radius:4px;max-width:260px}
.selection-view{display:flex;align-items:center;gap:10px;border:0;background:none;padding:8px 0 8px 10px;min-width:0;color:var(--ink);text-align:left;font-size:12px}
.selection-view img{width:36px;height:36px;object-fit:contain;flex-shrink:0}.selection-view span{max-width:155px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.selection-remove{width:44px;height:44px;display:grid;place-items:center;background:none;border:0;color:#737373;flex-shrink:0;border-radius:50%}
.selection-remove svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.5}.selection-remove:hover{background:#eee;color:var(--ink)}
.selection-view:focus-visible,.selection-remove:focus-visible{outline:2px solid var(--ink);outline-offset:-2px}
.selection-empty{font-size:12px;color:var(--muted);margin:0}.drawer-foot:has(.drawer-keys){justify-content:flex-end;margin:0}.drawer-foot:has(.drawer-keys) .drawer-keys{color:#737373}
@media(max-width:900px){.drawer-foot{display:none}}
@media(max-width:650px){.drawer-results{padding:10px 14px 0}.wall-selection{padding:14px}.selection-head{align-items:start;flex-direction:column;gap:5px}.drawer-tabs{width:100%;flex:auto;gap:18px}}
