/* v80 · the box END ON (Ron's photo 11 Nov 19:36): a plain black open tray, seen down its length. (v79 notes follow.)
   v79 · the ETBs (js/etb.js). Empty Elite Trainer Boxes at true scale (188 x 86 mm, base wall 160 mm), seen as the v65 promo deck box
   is seen: straight on, from above and in front. Matte printed navy board outside, plain off white card inside, warm light from above.
   Swipe between boxes; "Box 1 of 3" sits small at the top. */
.etb-root{position:fixed;inset:0;z-index:46;pointer-events:none;--etb-ease:cubic-bezier(.2,.9,.25,1.02);overflow:hidden}
.etb-scrim{position:absolute;inset:0;pointer-events:auto;opacity:0;transition:opacity .3s ease;-webkit-tap-highlight-color:transparent;
  background:radial-gradient(110% 55% at 50% 66%,#2a241e,#0a0a0b 62%,#050506)}
.etb-root.on .etb-scrim{opacity:1}.etb-root.off .etb-scrim{opacity:0;transition-duration:.26s}
.etb-stage{position:absolute;inset:0;pointer-events:auto;touch-action:none;-webkit-user-select:none;user-select:none;cursor:grab;
  transform:translateY(105vh);transition:transform .45s var(--etb-ease);will-change:transform}
.etb-stage:active{cursor:grabbing}
.etb-root.on .etb-stage{transform:none}.etb-root.off .etb-stage{transform:translateY(75vh);transition:transform .28s cubic-bezier(.55,0,.8,.35)}
.etb-root.rm .etb-stage,.etb-root.rm .etb-scrim{transition-duration:.01s!important}
.etb-track{position:absolute;inset:0;will-change:transform}
.etb-box{position:absolute;left:0;top:0;width:100vw;height:100%;pointer-events:none;will-change:transform,opacity}
.etb-o{position:absolute;width:0;height:0}
.etb-f{position:absolute;left:0;top:0;display:block;pointer-events:none}
.etb-shadow{border-radius:50%;background:radial-gradient(closest-side,rgba(0,0,0,.78),rgba(0,0,0,.42) 60%,transparent);filter:blur(5px)}
/* v80: a plain black open tray (Ron's photo), matte black board inside and out, lit softly from above; the cut edge along the top a
   shade lighter so the rim reads */
.etb-floor{background:linear-gradient(180deg,#0b0b0c,#141415 60%,#19191b)}
.etb-back{background:linear-gradient(180deg,#26262a,#141416 45%,#0c0c0d)}
.etb-side{background:linear-gradient(90deg,#1f1f22,#131315 60%,#0d0d0e)}
.etb-side.etb-r{background:linear-gradient(270deg,#1b1b1e,#111113 60%,#0b0b0c)}
.etb-rim{background:linear-gradient(180deg,#3a3a3e,#2a2a2d)}
.etb-rim.etb-rs{background:linear-gradient(90deg,#333337,#46464b 50%,#313134)}
.etb-rim.etb-rf{background:linear-gradient(180deg,#55555a,#38383c)}
/* the near end: matte black, a soft sheen from above */
.etb-front{overflow:hidden;border-radius:1px 1px 3px 3px;background:radial-gradient(120% 60% at 50% 0,rgba(255,255,255,.08),transparent 65%),linear-gradient(180deg,#1c1c1f 0%,#111113 55%,#08080a 100%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.16),inset 0 -4px 7px rgba(0,0,0,.6),inset 3px 0 5px -2px rgba(255,255,255,.05),inset -4px 0 6px -2px rgba(0,0,0,.6),0 12px 26px rgba(0,0,0,.6)}
/* v83: the near end and its rim sit over every copy (copies use z-index 3 and 4 while lifted), so nothing below the rim line shows through */
.etb-rim.etb-rf,.etb-front{z-index:6}
.etb-front-gl{position:absolute;inset:0;background:linear-gradient(115deg,rgba(255,255,255,0) 30%,rgba(255,255,255,.05) 42%,rgba(255,255,255,0) 55%)}
/* each copy: the pack or the sealed promo, a light layer and a glint as it comes up */
.etb-c{position:absolute;left:0;top:0;transform-origin:0 0;pointer-events:none;will-change:transform;contain:layout style} /* v81: no paint containment, it clipped the cello's edges */
.etb-c>img{position:absolute;inset:0;width:100%;height:100%;object-fit:fill;display:block;border-radius:2px}
.etb-c.pk>img{box-shadow:0 1px 1px rgba(0,0,0,.4)}
.etb-c.raw .pic{position:absolute;left:4.5%;right:4.5%;top:8.5%;bottom:4.5%;display:block;margin:0!important}
.etb-c.raw .pic>img{display:block;width:100%;height:100%;object-fit:cover;border-radius:3.5%/2.5%}
.etb-c.raw .cello{top:-9.3%!important;bottom:-5%!important;left:-4.9%!important;right:-4.9%!important}
.etb-c.raw .cl-gl{animation:none!important}
.etb-dk{position:absolute;inset:0;opacity:0;background:linear-gradient(180deg,rgba(0,0,0,0),rgba(0,0,0,.35) 30%,rgba(0,0,0,.75) 70%,rgba(0,0,0,.85));border-radius:2px}
.etb-c::after{content:"";position:absolute;left:0;right:0;top:0;height:2px;border-radius:2px 2px 0 0;background:rgba(255,255,255,.28);pointer-events:none}
.etb-gl{position:absolute;inset:0;opacity:0;border-radius:2px;background:linear-gradient(115deg,rgba(255,255,255,0) 28%,rgba(255,255,255,.24) 44%,rgba(255,255,255,.07) 52%,rgba(255,255,255,0) 64%)}
.etb-count{position:absolute;left:0;right:0;top:calc(env(safe-area-inset-top,0px) + 22px);margin:0;text-align:center;pointer-events:none;opacity:0;transition:opacity .3s .15s;
  font-family:var(--display,serif);font-size:11.5px;letter-spacing:.28em;text-transform:uppercase;color:rgba(226,194,122,.88)}
.etb-count span{color:rgba(226,194,122,.5)}
.etb-root.on .etb-count{opacity:1}
.etb-dots{display:flex;justify-content:center;gap:6px;margin-top:9px}
.etb-dots b{width:5px;height:5px;border-radius:50%;background:rgba(226,194,122,.28);transition:background .25s,transform .25s}
.etb-dots b.on{background:rgba(226,194,122,.95);transform:scale(1.25)}
.etb-x{position:absolute;top:calc(env(safe-area-inset-top,0px) + 14px);right:14px;width:44px;height:44px;border-radius:50%;border:1px solid rgba(255,255,255,.18);
  background:rgba(20,20,22,.6);color:#eee;pointer-events:auto;display:grid;place-items:center;cursor:pointer;padding:0}
.etb-live{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
/* the ways in: a small box icon on the boosters bar, beside sort, and one beside the Sealed promos title */
.pv-etb{margin-right:6px}
.pv-etb svg,.cab-etb svg{fill:none;stroke:currentColor;stroke-width:1.6;stroke-linejoin:round}
.cab-h{position:relative;width:100%}
.cab-etb{position:absolute;right:2px;top:50%;transform:translateY(-50%);width:36px!important;height:36px!important;background:transparent;border:0;padding:0;cursor:pointer}

/* v83: the count sits under the box (dots and a small "1 of 2"), no heading; set in js (top) */
.etb-count{top:auto;display:flex;align-items:center;justify-content:center;gap:10px;letter-spacing:.18em;font-size:10px}
.etb-count[hidden]{display:none}
.etb-count .etb-dots{margin-top:0}
.etb-count .etb-n{color:rgba(226,194,122,.55)}
