/* v65 · the promo deck box (js/deckbox.js). Ron's real shelf (photo 8 Nov 23:38): a matte black card box, his sealed promos stood
   upright in it in their clear factory cello, the front one showing its art and the crimped tops of the rest running back behind it.
   Matte blacks and clear film only; the ×N badge is the only label. */
.db-root{position:fixed;inset:0;z-index:45;pointer-events:none;--db-ease:cubic-bezier(.2,.9,.25,1.02)}
.db-scrim{position:absolute;inset:0;pointer-events:auto;-webkit-tap-highlight-color:transparent;opacity:0;transition:opacity .3s ease;
  background:radial-gradient(110% 60% at 50% 88%,rgba(40,38,36,.55),rgba(6,6,7,.82) 62%,rgba(3,3,4,.9))}
.db-root.on .db-scrim{opacity:1}
.db-root.off .db-scrim{opacity:0;transition-duration:.26s}
.db-stage{position:absolute;inset:0;pointer-events:none;transform:translateY(105vh);transition:transform .42s var(--db-ease);will-change:transform}
.db-root.on .db-stage{transform:none}
.db-root.off .db-stage{transform:translateY(70vh);transition:transform .28s cubic-bezier(.55,0,.8,.35)}
.db-root.rm .db-stage,.db-root.rm .db-scrim{transition-duration:.01s!important}
.db-scene{position:absolute;inset:0;pointer-events:none}
.db-o{position:absolute;width:0;height:0}
.db-f{position:absolute;left:0;top:0;display:block;pointer-events:none}
/* the box: matte black board, a little lighter where the light from above falls */
.db-shadow{border-radius:50%;background:radial-gradient(closest-side,rgba(0,0,0,.8),rgba(0,0,0,.45) 60%,transparent);filter:blur(4px)}
.db-floor{background:linear-gradient(180deg,#040405,#0c0c0e 70%,#111113)}
.db-back{background:linear-gradient(180deg,#1d1d20,#0d0d0f 55%,#060607)}
.db-side{background:
   repeating-linear-gradient(0deg,rgba(255,255,255,.022) 0 1px,transparent 1px 3px),
   linear-gradient(180deg,#19191c,#0b0b0d 60%,#050506)}
.db-side.l{background:repeating-linear-gradient(90deg,rgba(255,255,255,.022) 0 1px,transparent 1px 3px),linear-gradient(180deg,#1b1b1e,#0c0c0e 60%,#050506)}
.db-side.r{background:repeating-linear-gradient(90deg,rgba(255,255,255,.018) 0 1px,transparent 1px 3px),linear-gradient(180deg,#141416,#09090a 60%,#040405)}
.db-rim{background:linear-gradient(180deg,#2e2e32,#232326)}
.db-rim.s{background:linear-gradient(90deg,#26262a,#36363b 50%,#232327)}
/* the front: fine vertical ribs, a soft sheen across the top, the thumb notch, and the lip catching the light */
.db-front{border-radius:1px 1px 4px 4px;
  background:
   radial-gradient(120% 60% at 50% 0,rgba(255,255,255,.07),transparent 60%),
   repeating-linear-gradient(90deg,rgba(255,255,255,.035) 0 1px,rgba(0,0,0,.22) 1px 2px,transparent 2px 3.5px),
   url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E"),
   linear-gradient(180deg,#202024,#141417 45%,#0a0a0c);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.18),inset 0 -3px 5px rgba(0,0,0,.65),inset 3px 0 5px -2px rgba(255,255,255,.05),inset -4px 0 6px -2px rgba(0,0,0,.6),0 10px 22px rgba(0,0,0,.6)}
.db-front::before{content:"";position:absolute;left:50%;top:0;width:46px;height:14px;margin-left:-23px;border-radius:0 0 23px 23px;background:linear-gradient(180deg,rgba(0,0,0,.0),rgba(0,0,0,.25));box-shadow:inset 0 -1px 0 rgba(255,255,255,.14),0 1px 0 rgba(0,0,0,.5)}
.db-lip{background:linear-gradient(180deg,#3a3a3f,#26262a);box-shadow:inset 0 -1px 0 rgba(255,255,255,.2)}

/* each copy: its cello sleeve, the card inside, a light layer and a glint as it tips */
.db-c{position:absolute;left:0;top:0;transform-origin:0 0;pointer-events:none;will-change:transform;contain:layout paint style}
.db-c.hot .db-dk,.db-c.hot .db-gl{will-change:opacity}
.db-c .pic,.db-big .pic{position:absolute;left:4.5%;right:4.5%;top:8.5%;bottom:4.5%;display:block;margin:0!important;filter:none!important}
.db-c .pic>img,.db-big .pic>img{display:block;width:100%;height:100%;max-height:none!important;object-fit:cover;filter:none!important;animation:none!important;border-radius:3.5%/2.5%}
.db-c .pic.own>img,.db-c .pic:not(.celloed)>img{object-fit:contain}
.db-c .cl-gl,.db-big .cl-gl{animation:none!important}
.db-c .cello{box-shadow:inset 0 0 0 1px rgba(255,255,255,.34),inset 2.5px 0 0 -1px rgba(255,255,255,.34),inset -2.5px 0 0 -1px rgba(255,255,255,.26),inset 5px 0 7px -5px rgba(255,255,255,.45),inset -5px 0 7px -5px rgba(255,255,255,.35)}
.db-bk{position:absolute;display:none;left:3.2%;right:3.2%;top:5.6%;bottom:5.6%;border-radius:3px}
.db-c .cello,.db-big .cello{top:-9.3%!important;bottom:-5%!important;left:-4.9%!important;right:-4.9%!important}
.db-bk{left:2.5%!important;right:2.5%!important;top:6%!important;bottom:3.5%!important}
.bk-teal .db-bk{display:block;background:radial-gradient(90% 60% at 50% 30%,#3d8f95,#2a6d74 60%,#1f555b);box-shadow:inset 0 0 0 1px rgba(255,255,255,.08)}
.db-dk{position:absolute;inset:0;opacity:0;background:linear-gradient(180deg,rgba(0,0,0,.18),rgba(0,0,0,.42) 1.2%,rgba(0,0,0,.7) 2.6%,rgba(0,0,0,.88) 7%,rgba(0,0,0,.95));border-radius:2px}
.db-gl{position:absolute;inset:0;opacity:0;border-radius:2px;
  background:linear-gradient(115deg,rgba(255,255,255,0) 28%,rgba(255,255,255,.26) 44%,rgba(255,255,255,.08) 52%,rgba(255,255,255,0) 64%)}
.db-touch{position:absolute;inset:0;pointer-events:auto;touch-action:none;outline:none;-webkit-tap-highlight-color:transparent;cursor:grab}
.db-touch:active{cursor:grabbing}
.db-touch:focus-visible{outline:2px solid rgba(226,194,122,.5);outline-offset:-6px}
.db-qty{position:absolute;right:auto;bottom:auto;z-index:3;transform:translate(-100%,-50%)}
.db-x{position:absolute;top:calc(env(safe-area-inset-top,0px) + 14px);right:14px;width:40px;height:40px;border-radius:50%;border:0;padding:0;pointer-events:auto;cursor:pointer;
  background:rgba(30,28,26,.72);box-shadow:inset 0 0 0 1px rgba(226,194,122,.22),0 4px 12px rgba(0,0,0,.5);opacity:0;transition:opacity .3s ease .12s;-webkit-tap-highlight-color:transparent}
.db-x svg{width:18px;height:18px;fill:none;stroke:rgba(236,224,198,.8);stroke-width:1.8;stroke-linecap:round}
.db-root.on .db-x{opacity:1}.db-root.off .db-x{opacity:0;transition-delay:0s}
.db-x:focus-visible{outline:2px solid rgba(226,194,122,.6);outline-offset:2px}
/* a copy taken out for a closer look */
.db-big{position:absolute;z-index:5;pointer-events:auto;cursor:zoom-out;transform-origin:50% 50%;will-change:transform;filter:drop-shadow(0 26px 30px rgba(0,0,0,.75))}
.db-root .db-scene,.db-root .db-qty{transition:opacity .25s ease}
.db-root.peeking .db-scene{opacity:.5}
.db-root.peeking .db-qty{opacity:0}
/* the promo on the shelf hands over its copies while the box is out */
.dsp-it.db-src .dsp-pic{opacity:.14;transition:opacity .18s ease}
@media (prefers-reduced-motion:reduce){ .db-stage,.db-scrim,.db-x{transition-duration:.01s!important} }
/* v65 (Ron 23:59 "For sealed cases I don't want to display out of case"): a case's details show the closed cardboard case, never the
   product out of it. The same kraft case as on the racks, drawn bigger. */
.c-hero.case-hero{align-items:center;--sc:2.3}
@media (max-width:380px){ .c-hero.case-hero{--sc:2} }
.case-big{position:relative;display:block;filter:drop-shadow(0 22px 26px rgba(0,0,0,.7));animation:rise .8s cubic-bezier(.2,.8,.2,1) both}
.case-big .sstk>.mk-qty{display:none}
@media (prefers-reduced-motion:reduce){ .case-big{animation:none} }
.m-slab .case-big.m-case{--sc:2.2;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);animation:none}
.db-c .db-im{position:absolute;left:0;top:0;width:100%;height:100%;display:block;pointer-events:none;-webkit-user-select:none;user-select:none}
.db-c.baked .db-bk{display:none}

/* v66 · the way to a promo's details from its box (Ron 9 Nov 06:27): an ⓘ beside the ×, and a Details pill under a copy you lift out.
   Both open the same detail sheet a single promo opens. On hand-over the box sinks and fades while the sheet rises. */
.db-i{position:absolute;top:calc(env(safe-area-inset-top,0px) + 14px);right:64px;width:40px;height:40px;border-radius:50%;border:0;padding:0;pointer-events:auto;cursor:pointer;
  background:rgba(30,28,26,.72);box-shadow:inset 0 0 0 1px rgba(226,194,122,.22),0 4px 12px rgba(0,0,0,.5);opacity:0;transition:opacity .3s ease .12s,transform .15s ease;-webkit-tap-highlight-color:transparent}
.db-i svg,.db-det svg{width:20px;height:20px;fill:none;stroke:rgba(236,224,198,.85);stroke-width:1.7;stroke-linecap:round}
.db-i svg .dot,.db-det svg .dot{fill:rgba(236,224,198,.95);stroke-width:1.4}
.db-root.on .db-i{opacity:1}.db-root.off .db-i{opacity:0;transition-delay:0s}
.db-i:active,.db-x:active{transform:scale(.92)}
.db-i:focus-visible,.db-det:focus-visible{outline:2px solid rgba(226,194,122,.6);outline-offset:2px}
.db-det{position:absolute;left:50%;z-index:6;display:inline-flex;align-items:center;gap:7px;height:38px;padding:0 18px 0 13px;border:0;border-radius:999px;pointer-events:auto;cursor:pointer;
  font-family:var(--display,inherit);font-size:11.5px;letter-spacing:.2em;text-transform:uppercase;color:rgba(240,228,200,.92);
  background:rgba(30,28,26,.82);box-shadow:inset 0 0 0 1px rgba(226,194,122,.32),0 6px 16px rgba(0,0,0,.55);-webkit-tap-highlight-color:transparent;
  transform:translate(-50%,8px);opacity:0;animation:dbDetIn .3s cubic-bezier(.2,.85,.25,1) .2s forwards}
.db-det svg{width:17px;height:17px}
.db-det:active{transform:translate(-50%,0) scale(.95)}
.db-det.gone{animation:none;opacity:0;transform:translate(-50%,6px);transition:opacity .15s ease,transform .15s ease}
@keyframes dbDetIn{to{opacity:1;transform:translate(-50%,0)}}
/* hand-over to the detail sheet: no drop, the whole box sinks a little and fades as the sheet comes up over the shelf */
.db-root.todet.off .db-stage{transform:translateY(34px) scale(.97);opacity:0;transition:transform .26s cubic-bezier(.4,0,.6,1),opacity .22s ease}
.db-root.todet.off .db-big,.db-root.todet.off .db-det{opacity:0;transition:opacity .16s ease}
.db-root.todet.off .db-det{animation:none}
@media (prefers-reduced-motion:reduce){ .db-i{transition-duration:.01s!important} .db-det{animation-duration:.01s;animation-delay:0s} }
