/* css/bop-design-picker.css - the card design picker (js/bop-design-picker.js).
   Bopster's liquid glass, the same recipe as the Studio / Designer (designer.php
   "Glass surfaces"): tinted translucent panels, a specular glint that follows the
   pointer (--lg-mx / --lg-my, set by the script), bright top rims, inset spec
   highlights, a 2px refraction ring, spring motion. Mobile first: a tall glass
   sheet on phones, a centred glass panel from 760px. Everything is bdp-prefixed. */

html.bdp-lock, html.bdp-lock body { overflow: hidden !important; overscroll-behavior: none; }

.bdp-root, .bdp-sum {
    --bdp-spring: cubic-bezier(.22, 1.35, .38, 1);
    --bdp-ease: cubic-bezier(.2, .8, .2, 1);
    --bdp-rim: rgba(255,255,255,.18);
    --bdp-rim-top: rgba(255,255,255,.34);
    --bdp-spec:
        inset 0 1px 1px rgba(255,255,255,.3),
        inset 0 -1px 1px rgba(255,255,255,.08),
        inset 1px 0 1px -.5px rgba(255,255,255,.16),
        inset -1px 0 1px -.5px rgba(255,255,255,.12);
    --bdp-text: #eef1f8;
    --bdp-mute: #a3adc6;
    --bdp-dim: #8b95af;
    --bdp-lav: #e4c1ff;
    --bdp-on-bg: rgba(184,130,255,.18);
    --bdp-primary: linear-gradient(180deg, #ffffff21, transparent 60%), linear-gradient(115deg, #ca438e, #8054d4);
}
@supports (transition-timing-function: linear(0, 1)) {
    .bdp-root, .bdp-sum { --bdp-spring: linear(0, .006, .025 2.4%, .101 5.1%, .287 9%, .539 13.7%, .721 17.6%, .865 21.9%, .974 26.7%, 1.048 31.9%, 1.089 37.6%, 1.105 44%, 1.102 51.2%, 1.087 59.3%, 1.067 68.4%, 1.045 78.8%, 1.024 91.1%, 1.012, 1.005, 1.002); }
}

/* The glint, declared on each glass surface so var(--lg-mx) resolves per element. */
.bdp-sheet, .bdp-card, .bdp-btn, .bdp-chip, .bdp-tabs, .bdp-search, .bdp-foot, .bdp-pv-box, .bdp-x,
.bdp-back, .bdp-mini, .bdp-card-act, .bdp-detail-bar, .bdp-badge, .bdp-check, .bdp-sum, .bdp-zoom {
    --bdp-glass:
        radial-gradient(10rem circle at var(--lg-mx, 50%) var(--lg-my, -40%), rgba(255,255,255,.16), rgba(255,255,255,0) 60%),
        linear-gradient(180deg, rgba(255,255,255,.11), rgba(255,255,255,.02) 35%, rgba(255,255,255,0) 55%, rgba(255,255,255,.05));
}

.bdp-root {
    position: fixed; inset: 0; z-index: 2147482000;
    font-family: inherit; color: var(--bdp-text); -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent; color-scheme: dark;
}
:where(.bdp-root) *, :where(.bdp-root) *::before, :where(.bdp-root) *::after { box-sizing: border-box; }
/* zero-specificity reset: every .bdp- button class below wins over it */
:where(.bdp-root button, .bdp-sum button) { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; margin: 0; padding: 0; }
:where(.bdp-root button:disabled) { cursor: not-allowed; }
.bdp-root :focus-visible, .bdp-sum :focus-visible { outline: 2px solid #c4b5fd; outline-offset: 2px; }
.bdp-i { width: 1.05em; height: 1.05em; flex: none; }

/* Behind the glass: the page, dimmed and softened (designer .dz-sheet-back). */
.bdp-scrim { position: absolute; inset: 0; background: rgba(4,7,17,.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; transition: opacity .25s ease; }
.bdp-root.is-open .bdp-scrim { opacity: 1; }

/* --- the glass sheet ------------------------------------------------------- */
.bdp-sheet {
    position: absolute; left: 0; right: 0; bottom: 0; top: calc(10px + env(safe-area-inset-top));
    display: flex; flex-direction: column; overflow: hidden; isolation: isolate;
    border-radius: 1.6rem 1.6rem 0 0;
    background: var(--bdp-glass), rgba(21,26,46,.74);
    border: 1px solid rgba(255,255,255,.2); border-top-color: rgba(255,255,255,.38);
    backdrop-filter: blur(38px) saturate(180%) brightness(1.07); -webkit-backdrop-filter: blur(38px) saturate(180%) brightness(1.07);
    box-shadow: var(--bdp-spec), 0 -20px 60px -20px rgba(0,0,0,.8);
    transform: translateY(105%); transition: transform .5s var(--bdp-spring);
}
/* ambient light inside the glass, so it glows on any page */
.bdp-sheet::before {
    content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: radial-gradient(60% 40% at 0% 0%, rgba(126,74,216,.28), transparent 70%),
                radial-gradient(50% 35% at 100% 8%, rgba(224,85,162,.18), transparent 70%),
                radial-gradient(70% 40% at 80% 100%, rgba(15,159,184,.16), transparent 70%);
}
/* the 2px refraction ring of Bopster glass */
.bdp-sheet::after, .bdp-foot::after, .bdp-pv-box::after {
    content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; padding: 2px;
    backdrop-filter: blur(2px) saturate(170%) brightness(1.22); -webkit-backdrop-filter: blur(2px) saturate(170%) brightness(1.22);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); mask-composite: exclude;
}
.bdp-root.is-open .bdp-sheet { transform: none; }
.bdp-root.is-closing .bdp-sheet { transform: translateY(105%); transition: transform .26s ease-in; }

@media (min-width: 760px) {
    .bdp-sheet {
        inset: auto; left: 50%; top: 50%; width: min(1080px, calc(100vw - 48px)); height: min(860px, calc(100vh - 48px));
        border-radius: 1.75rem;
        box-shadow: var(--bdp-spec), 0 40px 120px -30px rgba(0,0,0,.85);
        transform: translate(-50%, -47%) scale(.96); opacity: 0; transition: transform .45s var(--bdp-spring), opacity .2s ease;
    }
    .bdp-root.is-open .bdp-sheet { transform: translate(-50%, -50%); opacity: 1; }
    .bdp-root.is-closing .bdp-sheet { transform: translate(-50%, -48%) scale(.97); opacity: 0; transition: transform .22s ease-in, opacity .2s ease-in; }
    .bdp-grab { display: none !important; }
}

/* --- header ---------------------------------------------------------------- */
.bdp-grab { display: flex; justify-content: center; padding: 8px 0 0; touch-action: none; flex: none; cursor: grab; }
.bdp-grab i { width: 40px; height: 5px; border-radius: 99px; background: rgba(255,255,255,.28); box-shadow: inset 0 1px 0 rgba(255,255,255,.2); }
.bdp-head { flex: none; padding: 6px 16px 12px; }
@media (min-width: 760px) { .bdp-head { padding: 22px 26px 14px; } }
.bdp-head-row { display: flex; align-items: flex-start; gap: 12px; }
.bdp-head-txt { flex: 1; min-width: 0; }
.bdp-head h2 { margin: 0; font-size: 1.2rem; font-weight: 800; letter-spacing: -.015em; line-height: 1.2; color: #fff; }
.bdp-head p { margin: 4px 0 0; color: var(--bdp-mute); font-size: .82rem; line-height: 1.45; }
@media (max-width: 759px) { .bdp-head p { display: none; } }
@media (min-width: 760px) { .bdp-head h2 { font-size: 1.45rem; } }

.bdp-x {
    width: 2.6rem; height: 2.6rem; border-radius: 999px; display: grid; place-items: center; flex: none;
    background: var(--bdp-glass), rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.16) !important; border-top-color: rgba(255,255,255,.3) !important;
    box-shadow: var(--bdp-spec);
    transition: transform .35s var(--bdp-spring);
}
.bdp-x:active { transform: scale(.92); }
.bdp-x .bdp-i { width: 18px; height: 18px; }

/* segmented glass tabs (designer .dz-seg) */
.bdp-tabs {
    position: relative; display: grid; grid-template-columns: 1fr 1fr; margin-top: 12px; padding: .22rem;
    border-radius: 999px; background: var(--bdp-glass), rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.14); box-shadow: var(--bdp-spec);
}
@media (min-width: 760px) { .bdp-tabs { max-width: 440px; } }
.bdp-tab { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 7px; height: 2.4rem; border-radius: 999px; font-weight: 700; font-size: .84rem; color: var(--bdp-mute); transition: color .25s; white-space: nowrap; min-width: 0; }
.bdp-tab.is-on { color: #fff; }
.bdp-tab span { overflow: hidden; text-overflow: ellipsis; }
.bdp-tab-glide {
    position: absolute; z-index: 0; top: .22rem; bottom: .22rem; left: .22rem; width: calc(50% - .22rem); border-radius: 999px;
    background: linear-gradient(180deg, #ffffff26, transparent 60%), rgba(184,130,255,.24);
    border: 1px solid rgba(228,193,255,.35); box-shadow: var(--bdp-spec), 0 6px 18px -8px rgba(150,90,255,.7);
    transition: transform .55s var(--bdp-spring);
}
.bdp-root.on-all .bdp-tab-glide { transform: translateX(100%); }

/* --- body ------------------------------------------------------------------ */
.bdp-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 6px 16px 112px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.2) transparent; }
@media (min-width: 760px) { .bdp-body { padding: 8px 26px 120px; } }
.bdp-view[hidden] { display: none !important; }
.bdp-root.in-detail [data-bdp-view="series"], .bdp-root.in-detail [data-bdp-view="all"] { display: none !important; }
.bdp-view { animation: bdp-in .45s var(--bdp-spring); }
.bdp-root.no-anim .bdp-view { animation: none; }
@keyframes bdp-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.bdp-h { display: flex; align-items: center; gap: 8px; margin: 8px 4px 12px; font-size: .68rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--bdp-dim); }
.bdp-h:not(:first-child) { margin-top: 26px; }

/* --- glass cards (series / combined series) ------------------------------- */
.bdp-cards { display: grid; gap: 12px; }
@media (min-width: 860px) { .bdp-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } .bdp-cards.is-cols { grid-template-columns: 1fr; } }
@media (min-width: 1020px) { .bdp-cards.is-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bdp-cards:not(.is-cols) { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.bdp-card {
    position: relative; display: flex; flex-direction: column; border-radius: 1.35rem; overflow: hidden;
    background: var(--bdp-glass), rgba(255,255,255,.035);
    border: 1px solid rgba(255,255,255,.14); border-top-color: rgba(255,255,255,.28);
    box-shadow: var(--bdp-spec), 0 14px 34px -24px rgba(0,0,0,.8);
    transition: border-color .25s, background-color .25s, transform .45s var(--bdp-spring), box-shadow .25s;
}
.bdp-card.is-collection { background: var(--bdp-glass), linear-gradient(135deg, rgba(126,74,216,.16), rgba(224,85,162,.08) 55%, rgba(15,159,184,.1)); }
.bdp-card.is-all { border-color: rgba(228,193,255,.6); border-top-color: rgba(240,220,255,.8); background: var(--bdp-glass), var(--bdp-on-bg); box-shadow: var(--bdp-spec), 0 0 0 1px rgba(228,193,255,.2), 0 16px 40px -22px rgba(150,90,255,.85); }
.bdp-card.is-some { border-color: rgba(228,193,255,.36); }
.bdp-card-open { display: flex; align-items: center; gap: 14px; padding: 14px 14px 12px; text-align: left; width: 100%; flex: 1 0 auto; }
.bdp-card-open:active { transform: scale(.985); transition: transform .3s var(--bdp-spring); }
.bdp-card-cover { flex: none; width: 104px; height: 92px; display: grid; place-items: center; }
.bdp-card.is-collection .bdp-card-cover { width: 112px; height: 112px; }
@media (min-width: 760px) {
    .bdp-card.is-collection .bdp-card-open { padding: 18px 18px 12px; gap: 18px; }
    .bdp-card.is-collection .bdp-card-cover { width: 136px; height: 136px; }
}
.bdp-card-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.bdp-card-name { font-size: 1rem; font-weight: 800; line-height: 1.2; color: #fff; letter-spacing: -.01em; }
.bdp-card.is-collection .bdp-card-name { font-size: 1.1rem; }
.bdp-card-desc { color: var(--bdp-mute); font-size: .78rem; line-height: 1.42; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bdp-card-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: .72rem; color: var(--bdp-dim); font-weight: 650; margin-top: 2px; }
.bdp-card-meta em { font-style: normal; color: var(--bdp-lav); }
.bdp-card-chev { color: var(--bdp-dim); flex: none; }
.bdp-card-act {
    display: flex; align-items: center; justify-content: center; gap: 7px; margin: auto 12px 12px; min-height: 2.6rem; border-radius: .95rem;
    font-weight: 700; font-size: .84rem; color: #e2e8f0; text-decoration: none;
    background: var(--bdp-glass), rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.16) !important; border-top-color: rgba(255,255,255,.3) !important;
    box-shadow: var(--bdp-spec), 0 3px 8px #0000000d;
    transition: transform .4s var(--bdp-spring), background-color .2s;
}
.bdp-card-act:active { transform: scale(.97); }
.bdp-card-act.is-on { color: #fff; background: var(--bdp-glass), rgba(224,176,255,.2); border-color: #e4c1ff66 !important; }
.bdp-card-act.is-support { color: #fbcfe8; }
.bdp-card.is-locked .bdp-card-cover { filter: grayscale(.6) brightness(.7); }

/* glass badges */
.bdp-badges { display: flex; flex-wrap: wrap; gap: 5px; }
.bdp-badge {
    display: inline-flex; align-items: center; gap: 4px; height: 1.35rem; padding: 0 .55rem; border-radius: 999px;
    font-size: .62rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; line-height: 1; white-space: nowrap;
    border: 1px solid rgba(255,255,255,.2); box-shadow: var(--bdp-spec);
}
.bdp-badge .bdp-i { width: 11px; height: 11px; }
.bdp-badge.is-new { background: var(--bdp-glass), rgba(236,72,153,.26); border-color: rgba(249,168,212,.5); color: #fde4f1; }
.bdp-badge.is-rec { background: var(--bdp-glass), rgba(250,204,21,.14); border-color: rgba(253,230,138,.4); color: #fde68a; }
.bdp-badge.is-lock { background: var(--bdp-glass), rgba(255,255,255,.06); color: var(--bdp-mute); }

/* the fanned stack of cards */
.bdp-fan { position: relative; width: 100%; height: 100%; display: block; }
.bdp-fan-card { position: absolute; top: 50%; left: 50%; width: 62%; aspect-ratio: 1; border-radius: .6rem; overflow: hidden; box-shadow: 0 10px 20px -8px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.14);
    transform: translate(-50%, -50%) translateX(calc((var(--i) - (var(--n) - 1) / 2) * 24%)) rotate(calc((var(--i) - (var(--n) - 1) / 2) * 9deg)); transition: transform .55s var(--bdp-spring); }
.bdp-root.is-rect .bdp-fan-card, .bdp-sum.is-rect .bdp-fan-card { aspect-ratio: 90 / 55; width: 72%; }
.bdp-fan-card:nth-child(1) { z-index: 1; } .bdp-fan-card:nth-child(2) { z-index: 2; } .bdp-fan-card:nth-child(3) { z-index: 3; }
.bdp-card-open:hover .bdp-fan-card { transform: translate(-50%, -50%) translateX(calc((var(--i) - (var(--n) - 1) / 2) * 32%)) rotate(calc((var(--i) - (var(--n) - 1) / 2) * 12deg)); }
.bdp-mosaic { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 5px; width: 100%; aspect-ratio: 1; max-height: 100%; }
.bdp-mosaic > span { border-radius: .55rem; overflow: hidden; box-shadow: 0 0 0 1px rgba(255,255,255,.14), 0 6px 14px -8px #000; min-height: 0; }

.bdp-art { display: block; width: 100%; height: 100%; background: #1b2238; }
.bdp-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bdp-art.is-bw { background: #fff; color: #111; display: grid; place-items: center; font-weight: 800; font-size: .9rem; }
.bdp-art.is-empty { background: rgba(255,255,255,.05); }

/* --- individual tab ------------------------------------------------------ */
.bdp-tools { position: sticky; top: -6px; z-index: 3; margin: -6px -16px 12px; padding: 8px 16px 10px; background: linear-gradient(rgba(21,26,46,.92) 70%, rgba(21,26,46,0)); }
@media (min-width: 760px) { .bdp-tools { top: -8px; margin: -8px -26px 14px; padding: 10px 26px 10px; } }
.bdp-search {
    display: flex; align-items: center; gap: 9px; height: 2.9rem; padding: 0 1rem; border-radius: 999px; color: var(--bdp-mute);
    background: var(--bdp-glass), rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.16); border-top-color: rgba(255,255,255,.3); box-shadow: var(--bdp-spec);
}
.bdp-search:focus-within { border-color: #e4c1ff88; }
.bdp-search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--bdp-text); font: inherit; font-size: 16px; }
.bdp-search input::placeholder { color: var(--bdp-dim); }
.bdp-chips { display: flex; gap: 7px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; padding: 2px 1px 4px; -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
.bdp-chips::-webkit-scrollbar { display: none; }
.bdp-chip {
    flex: none; display: inline-flex; align-items: center; min-height: 2.1rem; padding: 0 .8rem; border-radius: 999px; font-size: .74rem; font-weight: 650; color: #d7dcea; white-space: nowrap;
    background: var(--bdp-glass), rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.16) !important; border-top-color: rgba(255,255,255,.3) !important;
    box-shadow: var(--bdp-spec), 0 3px 8px #0000000d;
    transition: transform .4s var(--bdp-spring);
}
.bdp-chip:active { transform: scale(.95); }
.bdp-chip.is-on { color: #fff; background: var(--bdp-glass), rgba(224,176,255,.2); border-color: #e4c1ff66 !important; }
.bdp-chip b { display: inline-grid; min-width: 18px; height: 18px; padding: 0 5px; place-items: center; margin-left: 5px; border-radius: 99px; background: linear-gradient(115deg, #ca438e, #8054d4); color: #fff; font-size: .64rem; }
.bdp-chip b:empty { display: none; }

.bdp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 10px; }
.bdp-root.is-rect .bdp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 520px) { .bdp-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .bdp-root.is-rect .bdp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 760px) { .bdp-grid { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 16px 14px; } .bdp-root.is-rect .bdp-grid { grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); } }
.bdp-none { text-align: center; color: var(--bdp-mute); padding: 40px 0; }

.bdp-tile { position: relative; content-visibility: auto; contain-intrinsic-size: 120px 150px; }
.bdp-tile[hidden] { display: none; }
.bdp-tile-hit { display: block; width: 100%; text-align: left; }
.bdp-tile-hit .bdp-art {
    aspect-ratio: 1; height: auto; border-radius: .9rem; overflow: hidden;
    box-shadow: 0 0 0 1px rgba(255,255,255,.14), inset 0 1px 0 rgba(255,255,255,.2), 0 12px 22px -16px rgba(0,0,0,.95);
    transition: transform .45s var(--bdp-spring), box-shadow .25s, opacity .25s;
}
.bdp-root.is-rect .bdp-tile-hit .bdp-art { aspect-ratio: 90 / 55; }
.bdp-tile-hit:hover .bdp-art { transform: translateY(-3px); }
.bdp-tile-hit:active .bdp-art { transform: scale(.94); }
.bdp-tile.is-on .bdp-art { box-shadow: 0 0 0 2px var(--bdp-lav), 0 0 0 5px rgba(184,130,255,.22), 0 14px 28px -14px rgba(150,90,255,.95); }
.bdp-root .bdp-detail .bdp-tile:not(.is-on) .bdp-art { opacity: .4; }
.bdp-check {
    position: absolute; top: 7px; left: 7px; width: 1.65rem; height: 1.65rem; border-radius: 999px; display: grid; place-items: center; color: transparent;
    background: var(--bdp-glass), rgba(12,16,32,.42);
    border: 1px solid rgba(255,255,255,.55); box-shadow: var(--bdp-spec);
    backdrop-filter: blur(8px) saturate(160%); -webkit-backdrop-filter: blur(8px) saturate(160%);
    transition: transform .45s var(--bdp-spring), background .2s, color .2s;
}
.bdp-check .bdp-i { width: 14px; height: 14px; stroke-width: 3.2; }
.bdp-tile.is-on .bdp-check { color: #fff; background: var(--bdp-primary); border-color: rgba(255,255,255,.45); transform: scale(1.08); }
.bdp-dot-new { position: absolute; top: 9px; right: 9px; padding: 3px 7px; border-radius: 99px; font-size: .56rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #fff;
    background: linear-gradient(180deg, #ffffff30, transparent 60%), rgba(236,72,153,.75); border: 1px solid rgba(249,168,212,.6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.bdp-tile-name { display: block; margin-top: 7px; font-size: .72rem; font-weight: 650; color: #d7dcea; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 30px; }
.bdp-zoom { position: absolute; right: 0; bottom: -5px; width: 1.8rem; height: 1.8rem; border-radius: 999px; display: grid; place-items: center; color: var(--bdp-mute); transition: color .15s, background-color .15s; }
.bdp-zoom:hover { color: #fff; background: var(--bdp-glass), rgba(255,255,255,.06); box-shadow: var(--bdp-spec); }
.bdp-zoom .bdp-i { width: 14px; height: 14px; }
.bdp-tile.is-locked .bdp-art { filter: grayscale(.7) brightness(.6); }

/* --- detail -------------------------------------------------------------- */
.bdp-detail { animation: bdp-slide .5s var(--bdp-spring); }
@keyframes bdp-slide { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
.bdp-detail-head { margin-bottom: 14px; }
.bdp-back {
    display: inline-flex; align-items: center; gap: 4px; min-height: 2.3rem; padding: 0 .9rem 0 .5rem; border-radius: 999px; font-weight: 700; font-size: .8rem; color: #e2e8f0;
    background: var(--bdp-glass), rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.16) !important; border-top-color: rgba(255,255,255,.3) !important; box-shadow: var(--bdp-spec);
}
.bdp-detail-hero { display: flex; align-items: center; gap: 16px; margin: 14px 0 12px; }
.bdp-detail-cover { flex: none; width: 112px; height: 98px; display: grid; place-items: center; }
.bdp-detail-cover:has(.bdp-mosaic) { height: 112px; }
@media (min-width: 760px) { .bdp-detail-cover { width: 150px; height: 128px; } .bdp-detail-cover:has(.bdp-mosaic) { width: 136px; height: 136px; } }
.bdp-detail-hero h3 { margin: 6px 0 4px; font-size: 1.3rem; font-weight: 800; line-height: 1.15; color: #fff; letter-spacing: -.015em; }
.bdp-detail-hero p { margin: 0; color: var(--bdp-mute); font-size: .84rem; line-height: 1.45; max-width: 60ch; }
.bdp-detail-bar {
    display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 8px; padding: .5rem .5rem .5rem .9rem; border-radius: 1.1rem;
    background: var(--bdp-glass), rgba(255,255,255,.035);
    border: 1px solid rgba(255,255,255,.14); border-top-color: rgba(255,255,255,.26); box-shadow: var(--bdp-spec);
}
.bdp-detail-count { min-width: 0; font-weight: 700; font-size: .82rem; color: var(--bdp-lav); }
@media (max-width: 519px) {
    .bdp-detail-bar { grid-template-columns: 1fr 1fr; padding: .7rem; }
    .bdp-detail-count { grid-column: 1 / -1; padding: 0 .2rem; }
    .bdp-detail-bar .bdp-btn { width: 100%; }
}
.bdp-tip { margin: 9px 4px 0; font-size: .76rem; color: var(--bdp-dim); }
.bdp-group-h { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 24px 4px 10px; }
.bdp-group-h b { font-size: .98rem; font-weight: 800; color: #fff; }
.bdp-group-h em { font-style: normal; font-size: .72rem; color: var(--bdp-lav); font-weight: 700; }
.bdp-mini {
    margin-left: auto; display: inline-flex; align-items: center; gap: 5px; min-height: 2rem; padding: 0 .75rem; border-radius: 999px; font-size: .74rem; font-weight: 700; color: #e2e8f0;
    background: var(--bdp-glass), rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.16) !important; border-top-color: rgba(255,255,255,.3) !important; box-shadow: var(--bdp-spec);
}
.bdp-mini.is-on { color: #fff; background: var(--bdp-glass), rgba(224,176,255,.2); border-color: #e4c1ff66 !important; }

/* --- buttons (designer .dz-btn / .dz-primary) ------------------------------ */
.bdp-btn {
    position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 2.75rem; padding: 0 1.1rem; border-radius: .95rem;
    font-weight: 750; font-size: .84rem; white-space: nowrap; color: #e2e8f0;
    transition: transform .4s var(--bdp-spring), opacity .15s;
}
.bdp-btn:active { transform: scale(.96); }
.bdp-btn.is-primary { color: #fff; background-image: var(--bdp-primary); border: 1px solid rgba(255,255,255,.25) !important; border-top-color: rgba(255,255,255,.45) !important; box-shadow: inset 0 1px 0 #ffffff25, 0 8px 22px -10px #d65bccaa; }
.bdp-btn.is-ghost, .bdp-btn.is-soft {
    background: var(--bdp-glass), rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.16) !important; border-top-color: rgba(255,255,255,.3) !important;
    box-shadow: var(--bdp-spec), 0 3px 8px #0000000d;
}
.bdp-btn.is-ghost:disabled { opacity: .4; }
.bdp-btn.is-soft { min-height: 2.25rem; padding: 0 .8rem; font-size: .76rem; border-radius: 999px; }
.bdp-btn.is-wide { width: 100%; }
.bdp-btn.is-on { background: var(--bdp-glass), rgba(224,176,255,.2); background-image: none; border-color: #e4c1ff66 !important; box-shadow: var(--bdp-spec); }

/* --- footer: a floating glass dock (designer .dz-dock) ------------------- */
.bdp-foot {
    position: absolute; z-index: 5; left: max(.6rem, env(safe-area-inset-left)); right: max(.6rem, env(safe-area-inset-right)); bottom: calc(.6rem + env(safe-area-inset-bottom));
    display: flex; align-items: center; gap: .5rem; padding: .45rem .45rem .45rem .7rem; border-radius: 1.4rem;
    background: var(--bdp-glass), rgba(21,27,46,.62);
    backdrop-filter: blur(26px) saturate(180%) brightness(1.06); -webkit-backdrop-filter: blur(26px) saturate(180%) brightness(1.06);
    border: 1px solid rgba(255,255,255,.18); border-top-color: rgba(255,255,255,.34);
    box-shadow: var(--bdp-spec), 0 18px 40px -18px rgba(0,0,0,.8);
}
@media (min-width: 760px) { .bdp-foot { left: 1.1rem; right: 1.1rem; bottom: 1.1rem; padding: .5rem .5rem .5rem .9rem; } }
.bdp-foot-sum { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; }
.bdp-stack { position: relative; flex: none; width: 56px; height: 40px; }
.bdp-stack:empty { display: none; }
.bdp-stack > span { position: absolute; top: 3px; left: calc(var(--i) * 8px); width: 32px; height: 32px; border-radius: .5rem; overflow: hidden; box-shadow: 0 0 0 1px rgba(255,255,255,.25), 0 4px 10px -4px #000; transform: rotate(calc((var(--i) - 1.5) * 6deg)); }
.bdp-root.is-rect .bdp-stack > span { height: 21px; top: 10px; }
.bdp-foot-txt { min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.bdp-foot-txt b { font-size: .88rem; font-weight: 800; color: #fff; }
.bdp-foot.is-empty .bdp-foot-txt b { font-weight: 600; color: var(--bdp-mute); font-size: .76rem; white-space: normal; }
.bdp-foot-txt small { color: var(--bdp-mute); font-size: .7rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 420px) { .bdp-foot [data-bdp-clear] { display: none; } .bdp-foot .bdp-btn { padding: 0 1rem; } }

/* --- preview ------------------------------------------------------------- */
.bdp-preview { position: absolute; inset: 0; z-index: 10; display: grid; place-items: center; padding: 20px; }
.bdp-preview[hidden] { display: none; }
.bdp-pv-scrim { position: absolute; inset: 0; background: rgba(4,7,17,.6); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); opacity: 0; transition: opacity .2s; }
.bdp-preview.is-open .bdp-pv-scrim { opacity: 1; }
.bdp-pv-box {
    position: relative; width: min(420px, 100%); display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 22px 18px 18px; border-radius: 1.6rem;
    background: var(--bdp-glass), rgba(21,26,46,.66);
    border: 1px solid rgba(255,255,255,.2); border-top-color: rgba(255,255,255,.38);
    backdrop-filter: blur(30px) saturate(180%); -webkit-backdrop-filter: blur(30px) saturate(180%);
    box-shadow: var(--bdp-spec), 0 30px 80px -24px rgba(0,0,0,.9);
    transform: scale(.9) translateY(12px); opacity: 0; transition: transform .5s var(--bdp-spring), opacity .2s;
}
.bdp-preview.is-open .bdp-pv-box { transform: none; opacity: 1; }
.bdp-pv-box > .bdp-x { position: absolute; top: 10px; right: 10px; z-index: 2; width: 2.3rem; height: 2.3rem; }
.bdp-pv-card { position: relative; width: min(300px, 70vw); aspect-ratio: 1; perspective: 1200px; padding: 0; margin-top: 18px; }
.bdp-root.is-rect .bdp-pv-card { aspect-ratio: 90 / 55; width: min(360px, 80vw); }
.bdp-pv-face { position: absolute; inset: 0; border-radius: 1.1rem; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; transition: transform .8s var(--bdp-spring); box-shadow: 0 26px 60px -22px rgba(0,0,0,.95), 0 0 0 1px rgba(255,255,255,.16), inset 0 1px 0 rgba(255,255,255,.25); background: #1b2238; }
.bdp-pv-face img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bdp-pv-face.is-back { transform: rotateY(180deg); }
.bdp-pv-card.is-flipped .bdp-pv-face { transform: rotateY(180deg); }
.bdp-pv-card.is-flipped .bdp-pv-face.is-back { transform: rotateY(360deg); }
.bdp-pv-face.is-bw { background: #fff; color: #111; display: grid; place-items: center; font-size: 2rem; font-weight: 800; }
.bdp-pv-hint { display: flex; align-items: center; gap: 6px; margin: 2px 0 0; font-size: .74rem; color: var(--bdp-mute); }
.bdp-pv-info { text-align: center; display: flex; flex-direction: column; }
.bdp-pv-info small { color: var(--bdp-dim); font-size: .7rem; font-weight: 750; text-transform: uppercase; letter-spacing: .1em; }
.bdp-pv-info b { font-size: 1.12rem; font-weight: 800; color: #fff; }

/* --- the deck summary on the host page (a glass panel of its own) -------- */
.bdp-sum {
    position: relative; display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 1.25rem; color: var(--bdp-text); font-family: inherit;
    background: var(--bdp-glass), rgba(255,255,255,.035);
    border: 1px solid rgba(255,255,255,.14); border-top-color: rgba(255,255,255,.28);
    box-shadow: var(--bdp-spec), 0 14px 34px -24px rgba(0,0,0,.8);
}
.bdp-sum-main { display: flex; align-items: center; gap: 12px; text-align: left; width: 100%; border-radius: .9rem; }
.bdp-sum-fan { position: relative; flex: none; width: 84px; height: 64px; }
.bdp-sum-fan > span:not(.bdp-sum-ph) { position: absolute; top: 50%; left: 50%; width: 46px; aspect-ratio: 1; border-radius: .55rem; overflow: hidden; box-shadow: 0 8px 16px -6px #000, 0 0 0 1px rgba(255,255,255,.16);
    transform: translate(-50%, -50%) translateX(calc((var(--i) - (var(--n) - 1) / 2) * 13px)) rotate(calc((var(--i) - (var(--n) - 1) / 2) * 8deg)); transition: transform .55s var(--bdp-spring); }
.bdp-sum-main:hover .bdp-sum-fan > span:not(.bdp-sum-ph) { transform: translate(-50%, -50%) translateX(calc((var(--i) - (var(--n) - 1) / 2) * 17px)) rotate(calc((var(--i) - (var(--n) - 1) / 2) * 11deg)); }
.bdp-sum.is-rect .bdp-sum-fan > span:not(.bdp-sum-ph) { aspect-ratio: 90 / 55; width: 56px; }
.bdp-sum .bdp-art { display: block; width: 100%; height: 100%; background: #1b2238; }
.bdp-sum .bdp-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bdp-sum .bdp-art.is-bw { background: #fff; color: #111; display: grid; place-items: center; font-weight: 800; font-size: .7rem; }
.bdp-sum-ph { position: absolute; inset: 8px 18px; border-radius: .75rem; border: 1.5px dashed rgba(255,255,255,.25); display: grid; place-items: center; color: rgba(255,255,255,.5); }
.bdp-sum-ph .bdp-i { width: 22px; height: 22px; }
.bdp-sum-txt { min-width: 0; display: flex; flex-direction: column; gap: 2px; line-height: 1.3; }
.bdp-sum-txt b { font-weight: 800; font-size: .92rem; color: #fff; }
.bdp-sum-txt small { font-size: .74rem; color: var(--bdp-mute); }
.bdp-sum { container-type: inline-size; }
.bdp-sum-acts { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 8px; }
.bdp-sum .bdp-btn { min-width: 0; min-height: 2.6rem; padding: 0 .75rem; font-size: .8rem; }
@container (max-width: 300px) { .bdp-sum-acts { grid-template-columns: minmax(0, 1fr) auto; } .bdp-sum .bdp-btn.is-ghost span { display: none; } .bdp-sum .bdp-btn.is-ghost { width: 2.6rem; padding: 0; } }
.bdp-sum .bdp-btn span { overflow: hidden; text-overflow: ellipsis; }
.bdp-sum .bdp-i { width: 1rem; height: 1rem; flex: none; }

/* Phones blur only the floating chrome (designer.php: re-blurring on every scroll frame stutters). */
@media (max-width: 759px) { .bdp-check, .bdp-dot-new { backdrop-filter: none; -webkit-backdrop-filter: none; } }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .bdp-sheet { background: #1a2035; } .bdp-foot { background: #1d243b; } .bdp-pv-box { background: #1d243b; }
}
@media (prefers-reduced-motion: reduce) {
    .bdp-root *, .bdp-root *::before, .bdp-root *::after, .bdp-sum * { animation: none !important; transition-duration: .01ms !important; }
}
html.bop-lite .bdp-scrim, html.bop-lite .bdp-pv-scrim, html.bop-lite .bdp-sheet, html.bop-lite .bdp-foot, html.bop-lite .bdp-pv-box,
html.bop-lite .bdp-sheet::after, html.bop-lite .bdp-foot::after, html.bop-lite .bdp-pv-box::after { backdrop-filter: none; -webkit-backdrop-filter: none; }
html.bop-lite .bdp-sheet { background: #182036; } html.bop-lite .bdp-foot { background: #1d243b; }
