:root:has(.collection-shell){background:#130f0d}
.collection-shell{
 --gallery-wood:url('/collection/walnut.webp');
 --gallery-edge:clamp(18px,5vw,76px);
 min-height:100svh;
 color:#f1e8dc;
 background:radial-gradient(ellipse at 38% 0%,#302219,#181310 47%,#120f0d 82%);
 color-scheme:dark;
}
.collection-shell .shop-header{border-color:#e4cbb026}
.collection-shell .shop-logo img{filter:brightness(0) invert(1)}
.collection-shell .shop-header-back{color:#e5d6c6}
.collection-shell :focus-visible{outline-color:#d5b68b}
.collection-gallery{padding-block:clamp(22px,4vh,42px) 25px}
.gallery-heading{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin:0 var(--gallery-edge) 19px}
.gallery-heading h1{margin:0;font-size:clamp(27px,3vw,42px);font-weight:400;letter-spacing:-.04em}
.collection-status{font-size:13px;color:#edcfae;margin:0}
.collection-status:empty{display:none}
.collection-status[data-confirmation]{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.gallery-scroll{
 overflow-x:auto;
 overflow-y:hidden;
 overscroll-behavior-inline:contain;
 margin-inline:var(--gallery-edge);
 scrollbar-width:thin;
 scrollbar-color:#866c52 #2d2119;
}
.gallery-scroll.is-dragging{cursor:grabbing;user-select:none;scrollbar-color:#ae8961 #2d2119}
.gallery-cabinet{
 display:flex;
 width:max-content;
 min-width:100%;
 padding:10px 0;
 background:linear-gradient(180deg,#30201322,#1a0e06ca),var(--gallery-wood) 0 center/690px auto;
 border-block:1px solid #6f54426b;
 box-shadow:inset 0 1px #b3977340,inset 0 -1px #120b07;
}
.gallery-series{
 --slot-width:clamp(132px,13vw,186px);
 --cue-height:clamp(270px,49vh,485px);
 position:relative;
 isolation:isolate;
 display:grid;
 padding:20px 10px 0;
 flex:none;
 background:
   linear-gradient(180deg,#160d08ef 0,#412a1abd 18px,#69482d9e 72px,#352214df 187px,#160d08f2 100%),
   var(--gallery-wood) center/470px auto;
 box-shadow:inset 0 6px 15px #100905e8,inset 8px 0 15px #160c08aa,inset -8px 0 15px #160c08aa;
 border-inline-start:4px solid #1c120d;
}
.gallery-series:last-child{border-inline-end:4px solid #1c120d}
.gallery-series::before{
 content:"";
 position:absolute;
 z-index:1;
 pointer-events:none;
 inset:3px 6px auto;
 height:3px;
 background:linear-gradient(90deg,transparent,#e0bd88a8 7%,#f7d6a5a3 94%,transparent);
 box-shadow:0 3px 11px #ffd19768,0 11px 22px 4px #dca35b33;
}
.gallery-series h2{
 grid-row:1;
 margin:0 0 3px;
 padding-inline:15px;
 color:#fff1df;
 font-size:clamp(16px,1.35vw,22px);
 letter-spacing:.01em;
 font-weight:400;
 line-height:1.55;
}
.gallery-slots{display:grid;grid-template-columns:repeat(5,var(--slot-width))}
.gallery-slot{min-width:0;position:relative;text-align:center;border-inline-end:1px solid #d5ab7011}
.gallery-slot:last-child{border-inline-end:0}
.gallery-display{position:relative;height:var(--cue-height);isolation:isolate;overflow:hidden}
.gallery-display::after{
 content:"";
 position:absolute;
 inset:auto 13% 2.2%;
 height:2px;
 pointer-events:none;
 background:linear-gradient(90deg,transparent,#90694f60,transparent);
}
.is-owned .gallery-display::before{
 content:"";
 position:absolute;
 z-index:-1;
 inset:0;
 background:
  radial-gradient(ellipse 42% 70% at 50% 32%,#ffd29430 0,#eebd7015 63%,transparent 100%),
  radial-gradient(ellipse 34% 10% at 50% 95%,#c18a514d 0,transparent 100%);
}
.gallery-display img{
 position:absolute;
 inset:0;
 width:100%;
 height:100%;
 object-fit:contain;
 filter:drop-shadow(3px 5px 3px #100903dd) brightness(1.05);
 -webkit-user-drag:none;
 user-select:none;
}
.gallery-label{min-height:77px;padding:8px 6px 10px;background:linear-gradient(180deg,#46302367,#24181077);border-top:1px solid #b98d6234}
.gallery-label h3{margin:0;color:#c9af96;font-size:12px;line-height:1.25;font-weight:400;overflow-wrap:anywhere}
.is-owned h3{color:#f0deca}
.gallery-actions{display:flex;align-items:center;justify-content:center;gap:5px;margin-top:8px}
.gallery-view,.gallery-actions .shop-button{
 display:inline-flex;align-items:center;justify-content:center;
 min-height:29px;min-width:49px;padding:0 9px;
 border:1px solid #d5b18a37;background:#211712;color:#f5e7d8;
 font-size:12px;line-height:1.2;white-space:nowrap;cursor:pointer;transition:background .22s,color .22s;
}
.gallery-view:hover,.gallery-actions .shop-button:not(:disabled):hover{background:#e8d5be;color:#1b120d}
.gallery-actions .shop-button[data-using]{background:#5b5148;color:#f3e5d6;border-color:transparent;cursor:default}
.gallery-navigation{display:flex;justify-content:flex-end;gap:9px;margin:12px var(--gallery-edge) 0}
.gallery-navigation button{width:35px;height:30px;border:1px solid #cfab823b;background:transparent;color:#f1e1ce;font-size:21px;line-height:1;cursor:pointer}
.gallery-navigation button:hover:not(:disabled){background:#423024}
.gallery-navigation button:disabled{opacity:.34;cursor:default}
.cue-view-dialog{
 position:fixed;inset:0;width:100%;height:100%;max-width:none;max-height:none;
 margin:0;padding:0;border:0;color:#f5e9d9;background:#000;
}
.cue-view-dialog::backdrop{background:#000}
.cue-view-dialog [hidden]{display:none!important}
.collection-shell:has(.cue-view-dialog[open]){overflow:hidden}
.viewer-back:hover{text-decoration:underline;text-underline-offset:4px}
.cue-viewer{position:absolute;inset:0;display:grid;grid-template-rows:auto minmax(0,1fr) auto;background:#060606}
.viewer-header{position:relative;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:clamp(16px,3vw,34px)}
.viewer-header h2{margin:0;font-size:clamp(20px,4vw,40px);font-weight:400;line-height:1.04;text-align:right}
.viewer-back{display:inline-flex;align-items:center;gap:6px;border:0;background:none;color:#eee;min-height:36px;padding:0;font-size:13px;cursor:pointer;text-align:left}
.viewer-stage{position:relative;min-width:0;min-height:0;overflow:hidden}
.viewer-stage canvas{display:block;width:100%;height:100%;touch-action:none;cursor:grab}
.viewer-stage canvas:active{cursor:grabbing}
.viewer-status{position:absolute;z-index:2;top:50%;left:50%;transform:translate(-50%,-50%);margin:0;padding:8px;color:#edcfae;text-align:center;pointer-events:none}
.viewer-controls{display:flex;justify-content:center;flex-wrap:wrap;gap:7px;padding:12px 10px clamp(18px,4vw,40px)}
.viewer-controls .gallery-view{min-height:33px;background:#1a1a1a;color:#eee;border-color:#aaa4}
.viewer-controls .gallery-view:hover{background:#e8e4de;color:#141414}
.viewer-controls .viewer-flip{margin-inline-start:6px}
@media(max-width:680px){
 .gallery-scroll{margin-inline:0}
 .gallery-series{--cue-height:clamp(250px,46svh,360px)}
 .gallery-navigation{margin-top:9px}
}
