/* /products: the index's cards, a category a board, the boards on a wheel as the landing's ring -
   larger and flatter, so the board at the front reads. Without its script the boards stand one under another */
.bd{--eo:cubic-bezier(.16,1,.3,1);position:relative;min-height:100svh;display:flex;flex-direction:column;padding-top:calc(var(--hdr-h,64px) + clamp(16px,3svh,32px))}
.bd-top{display:flex;align-items:baseline;justify-content:center;text-align:center}
.bd-h{font-family:var(--font-display);font-size:clamp(22px,min(2.2vw,4.2svh),34px);font-weight:600;line-height:1;letter-spacing:-0.035em}
.bd-n{font-family:var(--font-mono);font-size:11px;letter-spacing:0.12em;text-transform:uppercase;color:var(--text-faint);white-space:nowrap}
.bd-n b{color:var(--text);font-weight:500}

/* the stage: everything the title and the controls leave, seen from a little above */
.bd-view{position:relative;flex:1;min-height:0;display:flex;flex-direction:column;margin-top:clamp(8px,2svh,20px)}
.bd-stage{position:relative;flex:1;min-height:0}

/* while the script is on its way: an outline of the front board where it will stand, shimmering - never the column
   of boards the page has without its script. The outline gives way as the wheel arrives */
.bd-stage:not(.on) .bd-cam{display:none}
.bd-skel{position:absolute;inset:0 0 6% 0;display:flex;align-items:center;justify-content:center;pointer-events:none;transition:opacity .5s var(--eo),visibility 0s .5s}
.bd.live .bd-skel{opacity:0;visibility:hidden}
.bd-sk{position:relative;height:min(91.5%,38.75vw,760px);aspect-ratio:16/10;border-radius:16px;overflow:hidden;display:flex;flex-direction:column;padding:clamp(12px,1.4vw,20px);
  background:linear-gradient(170deg,#0b1226 0%,#060a16 60%);box-shadow:0 0 0 1px rgba(160,195,255,0.14),0 50px 90px -40px rgba(0,0,0,0.95)}
.bd-sk::after{content:"";position:absolute;inset:0;background:linear-gradient(100deg,transparent 30%,rgba(150,190,255,0.07) 50%,transparent 70%);transform:translateX(-100%);animation:bdSk 1.6s ease-in-out infinite}
@keyframes bdSk{to{transform:translateX(100%)}}
.bd-sk-h{display:flex;justify-content:space-between;align-items:center;margin:0 2px clamp(8px,1vw,14px)}
.bd-sk-h i{display:block;width:20%;height:clamp(14px,1.4vw,20px);border-radius:6px;background:rgba(150,180,255,0.1)}
.bd-sk-h i + i{width:clamp(64px,6vw,84px);height:clamp(24px,2.2vw,30px);border-radius:999px;background:rgba(150,180,255,0.07)}
.bd-sk-g{flex:1;min-height:0;display:grid;grid-template-columns:repeat(20,minmax(0,1fr));grid-template-rows:repeat(3,minmax(0,1fr));gap:clamp(6px,0.8vw,12px)}
.bd-sk-g i{grid-column:span 5;border-radius:8px;background:rgba(150,180,255,0.055);box-shadow:0 0 0 1px rgba(150,180,255,0.08)}
.bd-sk-g i:nth-child(n+9){grid-column:span 4}
.bd-orbit{display:flex;flex-direction:column;gap:var(--s6);padding:0 var(--gutter)}
.bd-stage.on{overflow:hidden;perspective:var(--pv,2200px);perspective-origin:50% var(--po,30%);touch-action:pan-y;cursor:grab;
  -webkit-mask-image:linear-gradient(90deg,transparent 0,#000 7%,#000 93%,transparent 100%);mask-image:linear-gradient(90deg,transparent 0,#000 7%,#000 93%,transparent 100%)}
.bd-stage.on.drag{cursor:grabbing}
.bd-stage.on .bd-cam{position:absolute;left:50%;top:var(--cy,50%);width:0;height:0;transform-style:preserve-3d}
.bd-stage.on .bd-orbit{display:block;padding:0;position:absolute;left:0;top:0;transform-style:preserve-3d}
.bd-stage.on .bd-orbit.moving,.bd-stage.on .bd-orbit.moving .bd-board{will-change:transform}

/* a board: a category, its name and count over its builds */
.bd-board{position:relative;border-radius:16px;overflow:hidden;background:linear-gradient(170deg,#0b1226 0%,#060a16 60%);display:flex;flex-direction:column;
  box-shadow:0 0 0 1px rgba(160,195,255,0.18),0 50px 90px -40px rgba(0,0,0,0.95);padding:clamp(12px,1.4vw,20px)}
.bd-board::after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;z-index:3;box-shadow:inset 0 1px 0 rgba(255,255,255,0.12);
  background:linear-gradient(150deg,rgba(150,210,255,0.08),transparent 40%)}
.bd-stage.on .bd-board{position:absolute;left:calc(var(--bw) / -2);top:calc(var(--bh) / -2);width:var(--bw);height:var(--bh);
  backface-visibility:hidden;-webkit-backface-visibility:hidden;-webkit-box-reflect:below 14px linear-gradient(transparent 76%,rgba(255,255,255,0.1))}
.bd-in{width:100%;flex:1;min-height:0;display:flex;flex-direction:column}
.bd-bh{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 2px clamp(8px,1vw,14px)}
.bd-bh b{font-family:var(--font-display);font-size:clamp(17px,1.6vw,24px);font-weight:600;letter-spacing:-0.025em;line-height:1.2;color:var(--text)}
/* the far side of the wheel sinks into the dark */
.bd-sh{position:absolute;inset:0;z-index:4;background:#03060f;opacity:0;pointer-events:none;border-radius:inherit;will-change:opacity}

/* its builds: as many columns as let the tiles be largest, set by the script */
.bd-grid{display:grid;grid-template-columns:repeat(var(--c,4),var(--tw,minmax(0,1fr)));gap:var(--g,10px)}
.bt{position:relative;display:block;-webkit-user-drag:none;user-select:none;aspect-ratio:5/3;border-radius:8px;overflow:hidden;background:#050811;container-type:inline-size;
  box-shadow:0 0 0 1px rgba(150,180,255,0.14);transition:transform .55s var(--eo),opacity .45s var(--eo)}
.bt img{width:100%;height:100%;object-fit:cover;object-position:top left;display:block;transition:transform 1s var(--eo),opacity .6s ease}
/* a picture shows when it has arrived, not while it arrives */
.bd-stage.on .bt img{opacity:0}
.bd-stage.on .bt img.ok{opacity:1}
.bt::after{content:"";position:absolute;inset:auto 0 0;height:58%;pointer-events:none;background:linear-gradient(180deg,transparent,rgba(3,6,16,0.9))}
.bt-l{position:absolute;left:0;right:0;bottom:0;z-index:2;display:flex;flex-direction:column;gap:2px;padding:0 7cqw 5.5cqw}
.bt-l b{font-family:var(--font-display);font-weight:600;letter-spacing:-0.01em;color:#eef3ff;font-size:clamp(11px,6.2cqw,17px);line-height:1.15;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bt-l i{font-style:normal;font-size:clamp(11px,4.1cqw,12.5px);line-height:1.35;color:rgba(214,226,255,0.74);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bt-off{position:absolute;top:4cqw;right:4cqw;z-index:3;padding:1px 5px;border-radius:999px;background:rgba(6,10,20,0.78);box-shadow:inset 0 0 0 1px rgba(255,181,71,0.28);font-family:var(--font-mono);font-size:clamp(7px,2.2cqw,9px);letter-spacing:0.08em;text-transform:uppercase;color:rgba(255,181,71,0.85);white-space:nowrap;pointer-events:none}
@container (max-width:96px){ .bt-off{display:none} }
.bt-ln{display:flex;flex-wrap:wrap;gap:2px 10px;margin-top:3px}
.bt-ln a{font-family:var(--font-mono);font-size:clamp(11px,3.6cqw,11px);color:#eef3ff;text-decoration:none;border-bottom:1px solid rgba(160,200,255,0.4)}
@container (max-width:220px){ .bt-l i,.bt-ln{display:none} }
/* filled: the rows share the height, a tile takes its cell whatever its shape */
.bd-grid.fill{flex:1;min-height:0}
.bd-grid.fill .bt{aspect-ratio:auto;height:100%;min-height:0}
/* the light a hand brings (builds.js): one ring a board, gliding from build to build in a quarter of a second, the
   build under it lifted with it and the rest of its grid let down; round its edge a brighter light that follows the
   pointer. The first build lit is lit where it stands */
.bt-hl{--he:cubic-bezier(.22,1,.36,1);position:absolute;left:0;top:0;z-index:2;width:0;height:0;border-radius:8px;pointer-events:none;opacity:0;will-change:transform;
  box-shadow:inset 0 0 0 1px rgba(170,210,255,0.5),inset 0 0 26px -8px rgba(120,180,255,0.4),0 12px 28px -14px rgba(80,150,255,0.6);
  transition:transform .24s var(--he),width .24s var(--he),height .24s var(--he),opacity .16s ease}
.bt-hl.on{opacity:1}
.bt-hl.snap{transition:none}
@media (prefers-reduced-motion:reduce){ .bt-hl{transition:opacity .16s ease} .bd-board.front .bt,.bd-board.front .bt img{transition:opacity .2s ease} .bd-board.front .bd-grid .bt.is-hl,.bd-board.front .bt.is-hl img{transform:none} }
/* the light the pointer leaves on the edges it passes, drawn by the script */
.bt-tr{position:absolute;left:0;top:0;width:100%;height:100%;z-index:2;pointer-events:none}
@media (hover:hover){
  .bd-orbit:not(.moving) .bd-board.front .bt{will-change:transform}
  .bd-board.front .bt{transition:transform .24s cubic-bezier(.22,1,.36,1),opacity .2s ease}
  .bd-board.front .bd-grid.hl-on .bt{opacity:.55}
  .bd-board.front .bd-grid .bt.is-hl{opacity:1;transform:translateY(-3px)}
  .bd-board.front .bt img{transition:transform .5s cubic-bezier(.22,1,.36,1),opacity .6s ease}
  .bd-board.front .bt.is-hl img{transform:scale(1.04)}
}
.bt:focus-visible{outline:2px solid rgba(120,200,255,0.9);outline-offset:2px}
/* a build in the spotlight: a soft Hyperliquid-green aura that breathes, and a badge sitting on its top right corner */
.bt.glow{--hlg:151,252,228;z-index:3;overflow:visible;box-shadow:0 0 0 1px rgba(var(--hlg),0.42)}
.bt.glow::before{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;
  box-shadow:0 0 21px 1px rgba(var(--hlg),0.31),0 0 58px 7px rgba(var(--hlg),0.12);opacity:.4;animation:btAura 3.4s ease-in-out infinite alternate}
.bt.glow::after{border-radius:0 0 8px 8px}
.bt-im{position:absolute;inset:0;overflow:hidden;border-radius:inherit}
.bt-new{position:absolute;top:0;right:0;z-index:4;transform:translate(50%,-50%);padding:3px 8px;border-radius:999px;background:rgb(var(--hlg));color:#04201a;
  font-family:var(--font-mono);font-size:10px;font-weight:600;line-height:1.2;letter-spacing:0.1em;text-transform:uppercase;white-space:nowrap;pointer-events:none;
  box-shadow:0 0 0 2px #070c1b,0 0 16px rgba(var(--hlg),0.45)}
@keyframes btAura{to{opacity:1}}
@media (prefers-reduced-motion:reduce){ .bt.glow::before{animation:none;opacity:.7} }

/* the categories: one dark capsule, the one in front lit by a pill that glides to it and fills from the left while
   the wheel waits - when it is full the wheel turns. A hover, a touch or the page scrolled away holds it */
.bd-nav{display:flex;align-items:center;justify-content:center;gap:10px;padding:clamp(12px,2.4svh,26px) var(--gutter) clamp(14px,3svh,28px)}
.bd-cats{position:relative;min-width:0;overflow-x:auto;scrollbar-width:none;border-radius:999px}
.bd-cats::-webkit-scrollbar{display:none}
.bd-cats.over{border-radius:0;-webkit-mask-image:linear-gradient(90deg,transparent,#000 22px,#000 calc(100% - 22px),transparent);mask-image:linear-gradient(90deg,transparent,#000 22px,#000 calc(100% - 22px),transparent)}
.bd-track{position:relative;display:flex;align-items:center;gap:2px;width:max-content;padding:4px;border-radius:999px;
  background:linear-gradient(180deg,rgba(22,32,62,0.66),rgba(10,15,32,0.78));
  box-shadow:inset 0 0 0 1px rgba(160,190,255,0.13),inset 0 1px 0 rgba(255,255,255,0.05),0 18px 40px -22px rgba(0,0,0,0.95)}
.bd-c{position:relative;z-index:1;flex:none;margin:0;padding:9px 16px;border:0;border-radius:999px;background:none;cursor:pointer;white-space:nowrap;
  font-family:var(--font-display);font-size:13.5px;font-weight:500;letter-spacing:-0.01em;line-height:1;color:rgba(196,210,242,0.56);transition:color .35s var(--eo)}
.bd-c:hover{color:rgba(232,239,255,0.92)}
.bd-c[aria-current="true"]{color:#fff}
.bd-c:focus-visible{outline:none;color:#fff;box-shadow:inset 0 0 0 1px rgba(170,210,255,0.5)}
.bd-ind{position:absolute;z-index:0;left:0;top:4px;bottom:4px;width:0;border-radius:999px;overflow:hidden;pointer-events:none;
  background:linear-gradient(180deg,rgba(104,146,255,0.24),rgba(64,102,214,0.14));
  box-shadow:inset 0 0 0 1px rgba(170,205,255,0.3),inset 0 1px 0 rgba(255,255,255,0.12),0 8px 22px -10px rgba(80,140,255,0.7);
  transition:transform .55s var(--eo),width .55s var(--eo)}
.bd-ind i{position:absolute;inset:0;transform:scaleX(0);transform-origin:0 50%;background:linear-gradient(90deg,rgba(120,170,255,0.06),rgba(150,195,255,0.24))}
.bd-ind i.run{animation:bdFill var(--auto,6.5s) linear forwards}
.bd-nav.hold .bd-ind i.run{animation-play-state:paused}
@keyframes bdFill{to{transform:scaleX(1)}}
.bd-ar{flex:none;width:34px;height:34px;padding:0;border:0;border-radius:999px;cursor:pointer;display:grid;place-items:center;color:rgba(196,210,242,0.6);
  background:rgba(14,20,40,0.62);box-shadow:inset 0 0 0 1px rgba(160,190,255,0.13);transition:color .3s var(--eo),box-shadow .3s var(--eo),transform .3s var(--eo)}
.bd-ar:hover{color:#fff;box-shadow:inset 0 0 0 1px rgba(170,205,255,0.34)}
.bd-ar:active{transform:scale(.94)}
.bd-ar svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.bd-nav:not(.on) .bd-ar{visibility:hidden}
@media (max-width:700px){
  .bd-nav{padding-left:0;padding-right:0}
  .bd-ar{display:none}
  /* on a phone a tile's line wraps under its name in full, never cut short with an ellipsis */
  .bt-l i{white-space:normal;overflow:visible;text-overflow:clip}
}

/* a board of views: Trading, four of them two by two, each a small grid of its own */
.bd-subs{flex:1;min-height:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:var(--sg,12px)}
.bd-sub{position:relative;min-width:0;min-height:0;display:flex;flex-direction:column;border-radius:12px;padding:var(--cp,12px);
  background:linear-gradient(180deg,rgba(30,46,92,0.24),rgba(10,16,34,0.36));box-shadow:inset 0 0 0 1px rgba(150,180,255,0.12)}
.bd-sub::after{content:"";position:absolute;inset:0;z-index:2;border-radius:inherit;pointer-events:none;box-shadow:inset 0 0 0 1px rgba(150,200,255,0.3);opacity:0;transition:opacity .18s ease}
.bd-board.front .bd-sub:hover::after{opacity:1}
.bd-ch{display:flex;align-items:baseline;gap:8px;flex:none;margin:0 2px 10px;font:inherit;background:none;border:0;padding:0;color:inherit;text-align:left}
.bd-ch b{font-family:var(--font-display);font-size:clamp(13px,1.15vw,17px);font-weight:600;letter-spacing:-0.015em;color:var(--text)}
.bd-jump{cursor:pointer}
.bd-jump span{color:var(--text-dim);transition:transform .25s var(--ease),color .25s}
.bd-jump:hover span{transform:translateX(3px);color:var(--text)}
.bd-sub .bd-grid{flex:1;min-height:0}
/* a tile too small to read its name is a picture; the details are a hover away */
@container (max-width:96px){ .bt-l{display:none} }

/* the details a hover asks for: over a tile, the build; over a view, what is in it */
.bd-pop{--eo:cubic-bezier(.16,1,.3,1);position:fixed;z-index:60;left:0;top:0;width:min(320px,calc(100vw - 32px));padding:14px 16px 15px;border-radius:12px;pointer-events:none;
  background:linear-gradient(180deg,rgba(16,24,48,0.98),rgba(8,12,26,0.98));box-shadow:0 0 0 1px rgba(160,195,255,0.22),0 30px 60px -20px rgba(0,0,0,0.9);
  will-change:transform,opacity;opacity:0;translate:0 6px;transition:opacity .22s var(--eo),translate .3s var(--eo)}
.bd-pop.on{opacity:1;translate:0 0}
.bd-pop.glide{transition:opacity .22s var(--eo),translate .3s var(--eo),transform .38s var(--eo)}
.bd-pop b{display:block;font-family:var(--font-display);font-size:16px;font-weight:600;letter-spacing:-0.015em;color:var(--text)}
.bd-pop .t{margin-top:3px;font-size:12.5px;color:#a9c4ff}
.bd-pop p{margin-top:8px;font-size:12.5px;line-height:1.5;color:var(--text-dim)}
.bd-pop .k{margin-top:10px;display:flex;flex-wrap:wrap;gap:5px}
.bd-pop .k em{font-style:normal;font-family:var(--font-mono);font-size:11px;letter-spacing:0.04em;color:var(--text-dim);padding:3px 7px;border-radius:999px;border:1px solid var(--line)}
.bd-pop .l{margin-top:10px;font-family:var(--font-mono);font-size:11px;color:var(--text-faint)}
.bd-pop ul{list-style:none;margin:9px 0 0;padding:0;display:grid;gap:6px}
.bd-pop li{display:flex;gap:8px;min-width:0;font-size:12.5px;color:var(--text)}
.bd-pop li b{display:inline;font:inherit;font-weight:500;flex:none}
.bd-pop li i{font-style:normal;color:var(--text-faint);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* the test for the products page: the wheel fills the first screen, the whole index under it */
.px-page.pn{padding-top:0}
.pn-wheel{min-height:100svh}
.pn-cue{display:flex;flex-direction:column;align-items:center;gap:8px;margin:0 auto clamp(10px,2svh,22px);text-decoration:none}
.pn-cue span{font-family:var(--font-mono);font-size:11px;font-weight:500;letter-spacing:0.24em;text-transform:uppercase;color:var(--text-faint);transition:color .25s var(--ease)}
.pn-cue i{position:relative;display:block;width:1px;height:24px;background:linear-gradient(180deg,rgba(170,186,220,0.4),rgba(170,186,220,0))}
.pn-cue:hover span{color:var(--text)}
/* the index opens on its filters, held at the top as it scrolls - no heading of its own */
.pn-index > .px-bar{margin-top:0}
.pn-index .px-group{scroll-margin-top:calc(var(--hdr,64px) + 20px)}
/* the page keeps the header and 16px clear over an anchor; the index lands with its filters where they stick */
#every{scroll-margin-top:-16px}
/* and a scroll down from the wheel locks there too: two stops, the wheel and the index, free inside the index as it is
   taller than the window, and the footer its last stop so the end of the page is still reachable */
html:has(.px-page.pn){scroll-snap-type:y mandatory}
@media (max-width:700px){ html:has(.px-page.pn){scroll-snap-type:y proximity} }
.pn-wheel{scroll-snap-align:start}
#every{scroll-snap-align:start}
.px-page.pn ~ .foot{scroll-snap-align:end}

/* what a board carries from the index: a stage's pill, a section's note, its "also" row, and the way down to it */
.bt-pill{position:absolute;top:5cqw;left:5cqw;z-index:2;font-family:var(--font-mono);font-size:clamp(11px,4cqw,11px);font-weight:600;letter-spacing:0.1em;text-transform:uppercase;
  padding:3px 7px;border-radius:4px;color:#071022;background:linear-gradient(180deg,#bfe0ff,#7fb6ff);box-shadow:0 4px 14px -4px rgba(120,180,255,0.6)}
.bd-note{margin-left:4px;font-family:var(--font-mono);font-size:11px;letter-spacing:0.04em;color:var(--text-dim);text-decoration:none;border-bottom:1px solid var(--line-2)}
.bd-note:hover{color:var(--text)}
.bd-all{margin-left:auto;align-self:center;font-family:var(--font-mono);font-size:11px;letter-spacing:0.04em;color:var(--text-dim);text-decoration:none;
  padding:6px 11px;border-radius:999px;border:1px solid var(--line);background:rgba(17,25,46,0.6);transition:color .2s,border-color .2s;white-space:nowrap}
.bd-all:hover{color:var(--text);border-color:var(--line-2)}
.bd-also{margin-top:clamp(10px,1.2vw,16px);display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.bd-also i{font-style:normal;font-family:var(--font-mono);font-size:11px;letter-spacing:0.08em;text-transform:uppercase;color:var(--text-faint);margin-right:6px}
.bd-also a{font-family:var(--font-mono);font-size:11px;color:var(--text-dim);text-decoration:none;padding:5px 10px;border-radius:999px;border:1px solid var(--line);background:rgba(17,25,46,0.7)}
.bd-also a:hover{color:var(--text);border-color:var(--line-2)}

/* the arrival: the wheel swinging round to the board in front over its outline, its builds one after another. The
   title, the categories and the cue stand where they will from the first paint */
.bd.pre .bd-stage.on{opacity:0}
.bd.go .bd-stage.on{animation:bdIn .8s var(--eo) .06s both}
.bd.go .bd-board.front:not(.bd-multi) .bt,.bd.go .bd-board.front .bd-sub{animation:bdTile .8s var(--eo) both;animation-delay:calc(.26s + var(--i,0) * 26ms)}
@keyframes bdIn{from{opacity:0}}
@keyframes bdTile{from{opacity:0;transform:translateY(16px) scale(.96)}}
@media (prefers-reduced-motion:reduce){ .bd.go *{animation:none!important} }

/* a sideways swipe over the page turns the wheel, never the browser's history */
html:has(.bd-stage.on){overscroll-behavior-x:none}

/* a phone: no wheel - the boards one under another, as they are without the script, two tiles a row with the first
   full width, and the last when it would stand alone. Nothing waits on a script, so no outline and no categories;
   every view of Trading but the one that is a board of its own below */
@media (max-width:700px){
  .bd-stage:not(.on) .bd-cam{display:block}
  .bd-skel,.bd-nav{display:none}
  .bd-orbit{gap:var(--s5)}
  .bd-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .bd-grid > .bt:first-child,.bd-grid > .bt:last-child:nth-child(even){grid-column:span 2}
  .bd-subs{grid-template-columns:minmax(0,1fr);grid-template-rows:none}
  .bd-sub:has(.bd-jump) .bd-grid{display:none}
  .bd-sub:has(.bd-jump) .bd-ch{margin-bottom:0}
  .pn-cue{margin-top:var(--s6)}
}

/* the title held down: a line under it fills for eight seconds, then every build with a page of its own */
.bd-h{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
.bd-h::after{content:"";display:block;height:2px;margin:10px auto 0;width:100%;border-radius:2px;background:linear-gradient(90deg,var(--accent-2),#8fd8ff);
  transform:scaleX(0);transform-origin:left;opacity:0;transition:transform .3s var(--eo),opacity .3s}
.bd-h.hold::after{transform:none;opacity:1;transition:transform 8s linear,opacity .4s}
.bd-pages{width:min(1080px,calc(100vw - 32px));max-height:min(86svh,900px);margin:auto;padding:0;border:1px solid var(--line-2);border-radius:8px;
  background:#060a16;color:var(--text);box-shadow:0 1px 3px rgba(0,0,0,0.1),0 40px 90px -30px rgba(0,0,0,0.9);overflow:hidden}
.bd-pages[open]{display:flex;flex-direction:column;animation:bdPg .45s var(--eo)}
@keyframes bdPg{from{opacity:0;transform:translateY(12px) scale(.985)}}
.bd-pages::backdrop{background:rgba(2,4,12,0.72);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
.bd-pg-h{display:flex;align-items:center;justify-content:space-between;padding:16px 16px 12px 24px;border-bottom:1px solid var(--line-2)}
.bd-pg-h b{font-family:var(--font-display);font-size:24px;font-weight:600;letter-spacing:-0.03em}
.bd-pg-x{width:32px;height:32px;border:0;border-radius:6px;background:rgba(150,180,255,0.08);color:var(--text);font-size:20px;line-height:1;cursor:pointer}
.bd-pg-x:hover{background:rgba(150,180,255,0.16)}
.bd-pg{list-style:none;margin:0;padding:12px;overflow:auto;display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:4px}
.bd-pg a{display:flex;flex-direction:column;gap:2px;padding:8px 12px;border-radius:6px;color:inherit;text-decoration:none}
.bd-pg a:hover,.bd-pg a:focus-visible{background:rgba(150,180,255,0.08)}
.bd-pg b{font-size:14px;font-weight:600}
.bd-pg span{font-size:12px;color:var(--text-dim);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media (prefers-reduced-motion:reduce){ .bd-h.hold::after{transition:opacity .4s} .bd-pages[open]{animation:none} }
