/* Robot Toes trading cards. Layers on top of /styles.css (tokens, type, header,
   buttons, eyebrows, steps, footer, dialog chrome) and adds the card, pack,
   binder and showcase components. No inline styles anywhere: the CSP is
   style-src 'self', so every per-card value travels through CSS custom
   properties set from JS. */

@property --rx { syntax: "<angle>"; inherits: true; initial-value: 0deg; }
@property --ry { syntax: "<angle>"; inherits: true; initial-value: 0deg; }
@property --posx { syntax: "<percentage>"; inherits: true; initial-value: 50%; }
@property --posy { syntax: "<percentage>"; inherits: true; initial-value: 50%; }
@property --mx { syntax: "<number>"; inherits: true; initial-value: 50; }
@property --my { syntax: "<number>"; inherits: true; initial-value: 50; }
@property --hyp { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --spin { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

:root {
  --gold: #f0c27a;
  --gold-dark: #a5641f;
  --rose: #ff7d9c;
  --violet: #b48cff;
}

/* ---------- header: sticky on this longer page ---------- */
.site-header { position: sticky; top: 0; background: linear-gradient(to bottom, rgba(7, 8, 15, .94), rgba(7, 8, 15, .72)); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.packs-button { display: inline-flex; align-items: center; gap: .55rem; }
.packs-dot { width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--foil-3); box-shadow: 0 0 10px var(--foil-3); }
.packs-button[data-empty="true"] .packs-dot { border-color: var(--dim); box-shadow: none; }

/* ---------- hero ---------- */
.cards-hero { min-height: auto; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: clamp(1rem, 4vw, 4rem); padding: 0 max(1.25rem, calc((100vw - var(--max)) / 2)); }
.cards-hero .hero-content { width: auto; margin-left: 0; padding: clamp(3rem, 7vw, 6rem) 0 clamp(2.5rem, 5vw, 4rem); }
.cards-hero .hero-copy { max-width: 540px; }
.cards-hero h1 { font-size: clamp(2.3rem, 4.6vw, 4.4rem); }
.hero-glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 72% 45%, rgba(45, 60, 255, .26), transparent 34%), radial-gradient(circle at 20% 90%, rgba(255, 79, 216, .14), transparent 40%); }
.cards-hero .hero-grid { mask-image: linear-gradient(90deg, transparent 20%, black 60%); }
.hero-stage { position: relative; z-index: 2; height: clamp(330px, 36vw, 500px); perspective: 1400px; }
.hero-card { position: absolute; top: 50%; left: 50%; width: clamp(150px, 15vw, 224px); z-index: var(--hz, 1); transform: translate(-50%, -50%) translate(var(--hx, 0%), var(--hy, 0%)) rotate(var(--hr, 0deg)) translate(calc(var(--px) * var(--hpx, 8px)), calc(var(--py) * var(--hpy, 6px))); transition: transform 1.2s var(--ease-out); }
.hero-card:hover, .hero-card:focus-within { z-index: 6; }
.hero-card .float { animation: card-float var(--fdur, 7s) ease-in-out var(--fdelay, 0s) infinite; }
@keyframes card-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }
.hero-card .scene:not(.active) { animation: card-sway var(--sdur, 9s) ease-in-out infinite; }
@keyframes card-sway {
  0% { --rx: 0deg; --ry: 0deg; --posx: 50%; --posy: 50%; }
  25% { --rx: 5deg; --ry: -8deg; --posx: 70%; --posy: 35%; }
  50% { --rx: 0deg; --ry: 0deg; --posx: 50%; --posy: 50%; }
  75% { --rx: -5deg; --ry: 8deg; --posx: 30%; --posy: 65%; }
  100% { --rx: 0deg; --ry: 0deg; --posx: 50%; --posy: 50%; }
}
.hero-hint { position: absolute; left: 50%; bottom: -.4rem; transform: translateX(-50%); white-space: nowrap; color: var(--dim); font: 600 .6rem/1 var(--label); letter-spacing: .24em; text-transform: uppercase; }

/* ---------- sections ---------- */
.dark-section { background: transparent; color: var(--ink); }
.packs-section { background: var(--band-light); }
.binder-section { background: var(--band-dark); }
.how-section { background: var(--band-light); }
.dark-section .section-heading > p { color: var(--muted); }
.status-line { color: var(--muted); font: 600 .68rem/1.6 var(--label); letter-spacing: .16em; text-transform: uppercase; }
.status-line.success { color: var(--foil-3); }
.status-line.error { color: var(--coral); }

/* ---------- toolbar ---------- */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.2rem; margin-bottom: 2rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { display: inline-flex; align-items: center; gap: .5rem; min-height: 38px; padding: .5rem .95rem; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--ink-2); font: 600 .64rem/1 var(--label); letter-spacing: .14em; text-transform: uppercase; cursor: pointer; transition: border-color .2s ease, background .2s ease, color .2s ease, transform .2s ease; }
.chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--foil-1)); box-shadow: 0 0 8px var(--c, var(--foil-1)); }
.chip b { font-weight: 500; color: var(--dim); }
.chip:hover { border-color: var(--line-2); background: var(--surface); color: var(--ink); transform: translateY(-1px); }
.chip[aria-pressed="true"] { border-color: var(--c, var(--foil-1)); background: var(--surface-2); color: var(--ink); }
.seg { display: inline-flex; margin-left: auto; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.seg button { min-height: 32px; padding: .45rem 1rem; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: 600 .62rem/1 var(--label); letter-spacing: .16em; text-transform: uppercase; cursor: pointer; transition: background .2s ease, color .2s ease; }
.seg button[aria-pressed="true"] { background: var(--surface-2); color: var(--ink); box-shadow: 0 0 0 1px var(--line-2) inset; }

/* ====================================================================
   THE CARD
   .scene (button, container) > .tilt > .flip > .face.front / .face.back
   ==================================================================== */
.scene {
  position: relative; display: block; width: 100%; aspect-ratio: 63 / 88; margin: 0; padding: 0; border: 0; background: none;
  perspective: 1100px; transform-style: preserve-3d; container-type: inline-size; cursor: pointer; text-align: left; color: inherit;
  --rx: 0deg; --ry: 0deg; --mx: 50; --my: 50; --hyp: 0; --posx: 50%; --posy: 50%; --accent: var(--foil-1);
  touch-action: pan-y; border-radius: 4.6% / 3.3%; -webkit-tap-highlight-color: transparent;
}
.scene:focus-visible { outline: 2px solid var(--foil-1); outline-offset: 8px; }
.scene:not(.active):not(.hero-scene):not(.locked) { animation: card-shimmer 11s ease-in-out infinite; }
@keyframes card-shimmer { 0% { --posx: 50%; --posy: 50%; } 33% { --posx: 26%; --posy: 62%; } 66% { --posx: 74%; --posy: 38%; } 100% { --posx: 50%; --posy: 50%; } }
.tilt { position: absolute; inset: 0; transform-style: preserve-3d; will-change: transform; transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: scale .4s var(--ease-out); }
.scene:hover .tilt, .scene:focus-visible .tilt { scale: 1.04; }
.scene.locked:hover .tilt { scale: 1.015; }
.halo { position: absolute; inset: 8%; border-radius: 50%; background: var(--accent); filter: blur(34px); opacity: 0; transform: translateZ(-30px); transition: opacity .5s var(--ease-out); }
.scene:hover .halo, .scene:focus-visible .halo, .scene.lit .halo { opacity: .5; }
.scene.locked .halo { display: none; }
.flip { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .95s cubic-bezier(.45, 0, .15, 1); transform: rotateY(0deg); }
.scene.flipped .flip { transform: rotateY(180deg); }
.face { position: absolute; inset: 0; overflow: hidden; border-radius: 4.6% / 3.3%; isolation: isolate; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08) inset, 0 30px 60px -24px rgba(0, 0, 0, .9); background: var(--frame, #12162a); }
.face.back { transform: rotateY(180deg); }
.inner { position: absolute; inset: 3.2cqw; border-radius: 3cqw; background: var(--card-bg, #12162a); color: var(--card-ink, #eef0ff); overflow: hidden; }
.foil, .glare, .sweep { position: absolute; inset: 0; pointer-events: none; }

/* frames by rarity */
.frame-paper { --frame: linear-gradient(160deg, #f8f2e6, #d5cab7 55%, #efe6d6); --card-bg: #f2eadc; --card-ink: #0a0d1c; --card-muted: #5b6270; --accent: var(--foil-2); }
.frame-ink { --frame: linear-gradient(160deg, #2b3a7a, #12162a 52%, #1b2350); --card-bg: #12162a; --card-ink: var(--ink); --card-muted: var(--muted); --accent: var(--foil-1); }
.frame-chrome { --frame: linear-gradient(135deg, #f4fffe 0%, #9beeff 16%, #1f7fd6 40%, #dbfbff 58%, #2b7cff 78%, #f4fffe 100%); --card-bg: #07080f; --card-ink: #eef8ff; --card-muted: #8fb5d6; --accent: var(--foil-1); }
.frame-gold { --frame: linear-gradient(135deg, #fff1cf 0%, #f0c27a 16%, #a5641f 40%, #ffe4a8 58%, #b8752c 78%, #fff1cf 100%); --card-bg: #1a1109; --card-ink: #fff3dc; --card-muted: #bfa27a; --accent: var(--foil-3); }
.frame-iridescent { --frame: conic-gradient(from var(--spin), #4ff2ff, #ffe66d, #ff7d9c, #b48cff, #4ff2ff); --card-bg: #050814; --card-ink: #f4f7ff; --card-muted: #a9b6cc; --accent: var(--rose); animation: frame-spin 14s linear infinite; }
@keyframes frame-spin { to { --spin: 360deg; } }

/* front layout, all sizes relative to the card's own width */
.plate { position: absolute; top: 4.5cqw; left: 6cqw; right: 6cqw; height: 15cqw; display: grid; grid-template-columns: 1fr auto; align-items: center; }
.kicker { display: block; color: var(--card-muted); font: 600 2.7cqw/1 var(--label); letter-spacing: .18em; text-transform: uppercase; }
.card-name { margin: 1.2cqw 0 0; font: 700 6.2cqw/1 var(--display); letter-spacing: -.01em; text-transform: uppercase; color: var(--card-ink); }
.toe-badge { width: 13cqw; height: 13cqw; display: grid; place-items: center; border-radius: 50%; border: .6cqw solid var(--accent); background: rgba(0, 0, 0, .25); box-shadow: 0 0 3cqw rgba(0, 0, 0, .3); }
.frame-paper .toe-badge { background: rgba(255, 255, 255, .55); }
.toe-badge img { width: 84%; height: 84%; object-fit: contain; }
.gem-badge { width: 13cqw; height: 13cqw; display: grid; place-items: center; }
.gem-badge i { width: 6cqw; height: 6cqw; background: var(--accent); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); box-shadow: 0 0 3cqw var(--accent); }
.art { position: absolute; top: 21cqw; left: 6cqw; right: 6cqw; height: 74cqw; border-radius: 2cqw; overflow: hidden; box-shadow: 0 0 0 .4cqw rgba(0, 0, 0, .35) inset; }
.art-bg { position: absolute; inset: 0; background: radial-gradient(circle at 50% 80%, rgba(45, 60, 255, .55), transparent 48%), linear-gradient(rgba(79, 242, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(79, 242, 255, .07) 1px, transparent 1px), linear-gradient(160deg, #1b2350, #07080f); background-size: auto, 7cqw 7cqw, 7cqw 7cqw, auto; }
.frame-gold .art-bg { background: radial-gradient(circle at 50% 80%, rgba(255, 179, 87, .45), transparent 48%), linear-gradient(rgba(255, 230, 109, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 230, 109, .08) 1px, transparent 1px), linear-gradient(160deg, #2a190c, #120a05); background-size: auto, 7cqw 7cqw, 7cqw 7cqw, auto; }
.frame-paper .art-bg { background: radial-gradient(circle at 50% 62%, #fffaf0, #e6dccb 72%), linear-gradient(rgba(43, 124, 255, .14) 1px, transparent 1px), linear-gradient(90deg, rgba(43, 124, 255, .14) 1px, transparent 1px); background-size: auto, 7cqw 7cqw, 7cqw 7cqw; }
.frame-iridescent .art-bg { background: linear-gradient(160deg, #181d36, #07080f); }
.art-floor { position: absolute; left: 12%; right: 12%; bottom: 9%; height: 1px; background: rgba(79, 242, 255, .4); box-shadow: 0 0 5cqw rgba(79, 242, 255, .45); }
.frame-gold .art-floor { background: rgba(255, 230, 109, .5); box-shadow: 0 0 5cqw rgba(255, 230, 109, .45); }
.frame-paper .art-floor { background: rgba(255, 79, 216, .45); box-shadow: 0 0 4cqw rgba(255, 79, 216, .3); }
.art-robot { position: absolute; left: 50%; bottom: 7%; width: 88%; height: 88%; translate: -50% 0; object-fit: contain; object-position: bottom; filter: drop-shadow(0 4cqw 4cqw rgba(0, 0, 0, .45)); }
.kind-toe .art-robot { width: 68%; height: 68%; bottom: 14%; }
.kind-scene .art-robot { inset: 0; width: 100%; height: 100%; translate: 0; object-fit: cover; object-position: 62% center; filter: none; }
.kind-scene .art-floor { display: none; }
.art-rays { position: absolute; inset: -30%; background: conic-gradient(from 0deg, transparent 0 8%, rgba(255, 255, 255, .06) 10% 12%, transparent 14% 22%, rgba(255, 255, 255, .06) 24% 26%, transparent 28% 38%, rgba(255, 255, 255, .06) 40% 42%, transparent 44% 56%, rgba(255, 255, 255, .06) 58% 60%, transparent 62% 72%, rgba(255, 255, 255, .06) 74% 76%, transparent 78% 88%, rgba(255, 255, 255, .06) 90% 92%, transparent 94%); }
.card-body { position: absolute; top: 97.5cqw; left: 6cqw; right: 6cqw; height: 27cqw; }
.ability { margin: 0; font-size: 3.3cqw; line-height: 1.32; color: var(--card-ink); }
.ability b { display: block; margin-bottom: .6cqw; color: var(--accent); font: 700 3cqw/1.2 var(--label); letter-spacing: .14em; text-transform: uppercase; }
.frame-paper .ability b { color: #c2189f; }
.stats { position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: 1.2cqw; margin: 0; padding: 0; list-style: none; }
.stats li { display: grid; grid-template-columns: 11cqw 1fr 5cqw; align-items: center; gap: 1.5cqw; }
.stats span { color: var(--card-muted); font: 600 2.5cqw/1 var(--label); letter-spacing: .14em; text-transform: uppercase; }
.stats em { font: 700 2.7cqw/1 var(--label); font-style: normal; text-align: right; color: var(--card-ink); }
.bar { display: flex; gap: .7cqw; }
.bar i { flex: 1; height: 2.2cqw; border-radius: .5cqw; background: rgba(140, 150, 190, .28); }
.frame-paper .bar i { background: rgba(10, 13, 28, .14); }
.bar i.on { background: var(--accent); box-shadow: 0 0 1.5cqw color-mix(in srgb, var(--accent) 60%, transparent); }
.frame-paper .bar i.on { background: var(--foil-2); box-shadow: none; }
.card-foot { position: absolute; left: 6cqw; right: 6cqw; bottom: 3.6cqw; display: flex; justify-content: space-between; align-items: center; gap: 2cqw; color: var(--card-muted); font: 600 2.4cqw/1 var(--label); letter-spacing: .14em; text-transform: uppercase; }
.card-foot .number { color: var(--card-ink); }
.rarity-mark { display: inline-flex; gap: .8cqw; }
.rarity-mark i { width: 2.6cqw; height: 2.6cqw; background: var(--accent); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.rarity-mark.secret i { width: 3.2cqw; height: 3.2cqw; clip-path: polygon(50% 0, 62% 36%, 100% 38%, 70% 60%, 80% 100%, 50% 76%, 20% 100%, 30% 60%, 0 38%, 38% 36%); background: linear-gradient(135deg, #4ff2ff, #ffe66d, #ff7d9c); }
.frame-paper .rarity-mark i { background: var(--foil-2); }

/* locked binder slots keep the number and silhouette only */
.scene.locked { --frame: linear-gradient(160deg, #1b2040, #0c1020 55%, #161b38); --card-bg: #0c1020; --card-ink: #6f759c; --card-muted: #4d5378; --accent: #3a4270; cursor: pointer; }
.scene.locked .art-bg { background: linear-gradient(rgba(79, 242, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(79, 242, 255, .05) 1px, transparent 1px), linear-gradient(160deg, #121736, #090c1a); background-size: 7cqw 7cqw, 7cqw 7cqw, auto; }
.scene.locked .art-robot { filter: brightness(0) drop-shadow(0 0 3cqw rgba(0, 0, 0, .3)); opacity: .55; }
.scene.locked.kind-scene .art-robot { filter: brightness(.08) grayscale(1); opacity: .9; }
.scene.locked .art-floor { background: rgba(79, 242, 255, .12); box-shadow: none; }
.scene.locked .toe-badge { border-color: #3a4270; background: rgba(0, 0, 0, .2); }
.scene.locked .toe-badge img { filter: brightness(0); opacity: .55; }
.scene.locked .foil, .scene.locked .glare, .scene.locked .sweep { display: none; }
.scene.locked .bar i.on { background: #3a4270; box-shadow: none; }
.scene.locked .face.front::after { content: "?"; position: absolute; left: 50%; top: 58cqw; translate: -50% -50%; color: rgba(79, 242, 255, .22); font: 900 36cqw/1 var(--display); pointer-events: none; }

/* ---------- glare: the light that follows the cursor ---------- */
.glare { background: radial-gradient(farthest-corner circle at calc(var(--mx) * 1%) calc(var(--my) * 1%), rgba(255, 255, 255, .75) 0%, rgba(255, 255, 255, .26) 24%, rgba(0, 0, 0, .4) 78%); mix-blend-mode: overlay; opacity: calc(var(--hyp) * .55 + .12); transition: opacity .3s ease; }
.face.back .glare { background: radial-gradient(farthest-corner circle at calc((100 - var(--mx)) * 1%) calc(var(--my) * 1%), rgba(255, 255, 255, .65) 0%, rgba(255, 255, 255, .2) 24%, rgba(0, 0, 0, .4) 78%); }
.frame-paper .glare { opacity: calc(var(--hyp) * .35 + .06); }

/* ---------- foil finishes: black-backed so color-dodge only lifts the bright pattern ---------- */
.foil { mix-blend-mode: color-dodge; background-color: #000; opacity: calc(var(--hyp) * .6 + var(--foil-rest, .14)); transition: opacity .3s ease; }
.foil:not(.full) { clip-path: inset(17.3% 9.2% 29.7% 9.2% round 2cqw); }
.finish-matte .foil { display: none; }
.finish-sheen .foil { background-image: linear-gradient(118deg, transparent 40%, rgba(255, 255, 255, .6) 50%, transparent 60%); background-size: 320% 100%; background-position: var(--posx) 0; --foil-rest: .05; }
.finish-prism .foil {
  background-image:
    repeating-linear-gradient(0deg, #000 0 1.5px, transparent 1.5px 13px),
    repeating-linear-gradient(90deg, #000 0 1.5px, transparent 1.5px 13px),
    repeating-linear-gradient(115deg, #000 0%, hsl(0 100% 62%) 4%, hsl(50 100% 60%) 8%, hsl(120 100% 55%) 12%, hsl(200 100% 62%) 16%, hsl(280 100% 68%) 20%, #000 24%);
  background-size: 100% 100%, 100% 100%, 320% 320%;
  background-position: 0 0, 0 0, var(--posx) var(--posy);
  background-blend-mode: multiply, multiply, normal;
  filter: brightness(.8) contrast(1.5) saturate(1.3);
}
.finish-etched_gold .foil {
  background-image:
    repeating-linear-gradient(45deg, #000 0 3px, hsl(42 100% 64%) 3px 4px, #000 4px 9px),
    repeating-linear-gradient(-45deg, #000 0 3px, hsl(30 100% 70%) 3px 4px, #000 4px 9px),
    repeating-linear-gradient(118deg, hsl(42 100% 60%) 0%, hsl(0 0% 100%) 10%, hsl(28 100% 58%) 20%, hsl(46 100% 72%) 30%, hsl(42 100% 60%) 40%);
  background-size: 100% 100%, 100% 100%, 380% 380%;
  background-position: 0 0, 0 0, var(--posx) var(--posy);
  background-blend-mode: screen, screen, multiply;
  filter: brightness(1.35) contrast(1.2) saturate(1.1);
  --foil-rest: .1;
}
.finish-cosmos .foil {
  background-image:
    repeating-linear-gradient(112deg, hsl(196 100% 64%) 0%, hsl(262 100% 70%) 9%, hsl(322 100% 68%) 18%, hsl(48 100% 70%) 27%, hsl(176 100% 62%) 36%, hsl(196 100% 64%) 45%),
    radial-gradient(circle at 30% 40%, #fff 0 .7px, transparent 1.9px),
    radial-gradient(circle at 70% 20%, #fff 0 .9px, transparent 2.2px),
    radial-gradient(circle at 50% 80%, #fff 0 .6px, transparent 1.6px),
    radial-gradient(circle at 15% 65%, #fff 0 1.1px, transparent 2.6px),
    radial-gradient(circle at 85% 55%, #fff 0 .5px, transparent 1.4px);
  background-size: 420% 420%, 37px 43px, 53px 47px, 29px 31px, 71px 67px, 23px 27px;
  background-position: var(--posx) var(--posy), calc(var(--posx) * .35) calc(var(--posy) * .35), calc(var(--posx) * -.5) calc(var(--posy) * .6), calc(var(--posx) * .8) calc(var(--posy) * -.4), calc(var(--posx) * -.25) calc(var(--posy) * -.3), calc(var(--posx) * 1.2) calc(var(--posy) * .9);
  background-blend-mode: multiply, screen, screen, screen, screen, normal;
  filter: brightness(1.35) contrast(1.15);
}
.sweep { opacity: 0; mix-blend-mode: screen; background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, .7) 50%, transparent 62%); background-size: 300% 100%; }
.scene.sweeping .sweep { animation: card-sweep 1.1s var(--ease-out) 1; }
@keyframes card-sweep { 0% { opacity: 0; background-position: 200% 0; } 20% { opacity: 1; } 100% { opacity: 0; background-position: -100% 0; } }

/* ---------- the back: schematic side ---------- */
.face.back .inner { background: #07080f linear-gradient(rgba(79, 242, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(79, 242, 255, .07) 1px, transparent 1px); background-size: 5.5cqw 5.5cqw; color: var(--ink-2); }
.face.back .inner::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 36% 48%, rgba(45, 60, 255, .26), transparent 42%), linear-gradient(to bottom, rgba(7, 8, 15, .7), transparent 18%, transparent 78%, rgba(7, 8, 15, .8)); pointer-events: none; }
.bp-head { position: absolute; top: 5cqw; left: 6cqw; right: 6cqw; z-index: 2; display: flex; justify-content: space-between; align-items: baseline; gap: 2cqw; color: var(--foil-1); font: 600 2.6cqw/1 var(--label); letter-spacing: .18em; text-transform: uppercase; }
.bp-head b { color: var(--foil-3); }
.bp-robot { position: absolute; left: 4cqw; top: 15cqw; width: 58cqw; height: 84cqw; z-index: 1; object-fit: contain; object-position: bottom; filter: grayscale(1) sepia(1) hue-rotate(150deg) saturate(3) brightness(1.15) drop-shadow(0 0 4cqw rgba(79, 242, 255, .45)); opacity: .85; }
.kind-toe .bp-robot { width: 46cqw; height: 46cqw; top: 34cqw; left: 10cqw; }
.kind-scene .bp-robot { left: 6cqw; right: 6cqw; width: auto; height: 60cqw; top: 22cqw; object-fit: cover; opacity: .6; }
.bp-callouts { position: absolute; top: 20cqw; right: 6cqw; width: 36cqw; height: 78cqw; margin: 0; padding: 0; list-style: none; z-index: 2; }
.bp-callouts li { position: absolute; right: 0; width: 100%; padding-left: 5cqw; color: #9fe9ff; font: 600 2.2cqw/1.35 var(--label); letter-spacing: .12em; text-transform: uppercase; }
.bp-callouts li::before { content: ""; position: absolute; left: -12cqw; top: 1.4cqw; width: 15cqw; height: 1px; background: rgba(79, 242, 255, .55); }
.bp-callouts li::after { content: ""; position: absolute; left: -13cqw; top: .4cqw; width: 2cqw; height: 2cqw; border-radius: 50%; border: 1px solid var(--foil-1); background: #07080f; }
.bp-callouts b { display: block; color: var(--foil-3); font-weight: 700; }
.bp-callouts li.c-1 { top: 2cqw; }
.bp-callouts li.c-2 { top: 18cqw; }
.bp-callouts li.c-3 { top: 34cqw; }
.bp-callouts li.c-4 { top: 50cqw; }
.bp-callouts li.c-5 { top: 66cqw; }
.bp-callouts li.dim { color: #4d5378; }
.bp-callouts li.dim b { color: #6f759c; }
.bp-callouts li.dim::before { background: rgba(79, 242, 255, .2); }
.bp-plate { position: absolute; left: 6cqw; right: 6cqw; bottom: 4.5cqw; z-index: 2; padding-top: 3cqw; border-top: 1px solid rgba(79, 242, 255, .3); }
.bp-plate h4 { margin: 0; font: 700 5.4cqw/1 var(--display); letter-spacing: -.01em; text-transform: uppercase; color: var(--ink); }
.bp-plate p { margin: 1.4cqw 0 0; font: italic 400 3cqw/1.3 var(--body); color: var(--ink-2); }
.bp-plate small { display: flex; justify-content: space-between; margin-top: 2.4cqw; color: var(--dim); font: 600 2.3cqw/1 var(--label); letter-spacing: .14em; text-transform: uppercase; }

/* sealed cards show a neutral edge so the frame cannot give the rarity away */
.scene.sleeved { --frame: linear-gradient(160deg, #f8f2e6, #d5cab7 55%, #efe6d6); --accent: var(--foil-1); }

/* the sleeve: a generic pack back that hides the schematic until a card is revealed */
.sleeve { position: absolute; inset: 0; z-index: 4; display: none; place-items: center; background: radial-gradient(circle at 50% 40%, rgba(45, 60, 255, .45), transparent 45%), repeating-linear-gradient(115deg, rgba(255, 255, 255, .05) 0 2px, transparent 2px 9px), linear-gradient(rgba(79, 242, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(79, 242, 255, .05) 1px, transparent 1px), linear-gradient(160deg, #1b2350, #07080f 55%, #12162a); background-size: auto, auto, 6cqw 6cqw, 6cqw 6cqw, auto; color: var(--ink); }
.scene.sleeved .sleeve { display: grid; }
.sleeve-mark { display: grid; justify-items: center; gap: 3cqw; }
.sleeve-mark .brand-mark { height: 9cqw; gap: 1cqw; }
.sleeve-mark .brand-mark i { width: 2.6cqw; }
.sleeve-mark .brand-mark i:nth-child(1) { height: 5.6cqw; }
.sleeve-mark .brand-mark i:nth-child(2) { height: 8.6cqw; }
.sleeve-mark .brand-mark i:nth-child(3) { height: 6.8cqw; }
.sleeve-mark strong { font: 900 7.4cqw/1 var(--display); letter-spacing: -.02em; text-transform: uppercase; }
.sleeve-mark strong b { color: var(--foil-3); font-weight: 900; }
.sleeve-mark span { color: var(--muted); font: 600 2.5cqw/1 var(--label); letter-spacing: .3em; text-transform: uppercase; }
.sleeve::before { content: ""; position: absolute; inset: 4cqw; border: 1px solid rgba(79, 242, 255, .35); border-radius: 2cqw; }
.sleeve::after { content: ""; position: absolute; inset: 6cqw; border: 1px solid rgba(255, 230, 109, .25); border-radius: 1.4cqw; }

/* managed artwork: a card may carry its own front image with a fit, and its own back image; the pack may carry wrapper art.
   Locked slots keep their silhouette treatment whatever the fit. */
.scene.fit-cover .art-robot { inset: 0; width: 100%; height: 100%; translate: 0; object-fit: cover; filter: none; }
.scene.fit-contain .art-robot { inset: auto; left: 50%; bottom: 7%; width: 88%; height: 88%; translate: -50% 0; object-fit: contain; object-position: bottom; filter: drop-shadow(0 4cqw 4cqw rgba(0, 0, 0, .45)); }
.scene.kind-toe.fit-contain .art-robot { width: 68%; height: 68%; bottom: 14%; }
.scene.locked.fit-cover .art-robot, .scene.locked.fit-contain .art-robot { filter: brightness(0) drop-shadow(0 0 3cqw rgba(0, 0, 0, .3)); opacity: .55; }
.scene.locked.kind-scene .art-robot { filter: brightness(.08) grayscale(1); opacity: .9; }
.scene.custom-back .bp-robot { left: 6cqw; right: 6cqw; top: 15cqw; width: auto; height: 78cqw; border-radius: 2cqw; object-fit: cover; object-position: center; filter: none; opacity: .92; }
.pack-window.has-art { padding: 0; }
.pack-window .pack-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; translate: 0; filter: none; opacity: 1; }

/* ---------- packs section ---------- */
.pack-shelf { display: grid; grid-template-columns: minmax(280px, .9fr) 1.1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.pack-preview { display: grid; place-items: center; min-height: 420px; padding: 2rem; border: 1px solid var(--line); border-radius: var(--radius); background: radial-gradient(circle at 50% 60%, rgba(45, 60, 255, .3), transparent 46%), linear-gradient(rgba(79, 242, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(79, 242, 255, .05) 1px, transparent 1px), rgba(12, 15, 30, .6); background-size: auto, 32px 32px, 32px 32px, auto; perspective: 1200px; }
.pack-preview .pack { animation: pack-hover 6.5s ease-in-out infinite; }
@keyframes pack-hover { 0%, 100% { transform: rotateY(-14deg) rotateX(4deg) translateY(0); } 50% { transform: rotateY(12deg) rotateX(-3deg) translateY(-10px); } }
.pack-brief h3 { margin-bottom: 1rem; font: 700 1.8rem/1.05 var(--display); letter-spacing: -.01em; }
.slot-list { display: grid; gap: .55rem; margin: 1.5rem 0; padding: 0; list-style: none; counter-reset: slot; }
.slot-list li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem; padding: .7rem .9rem; border: 1px solid var(--line); border-radius: 12px; background: rgba(18, 22, 42, .55); font-size: .86rem; }
.slot-list li::before { counter-increment: slot; content: "0" counter(slot); color: var(--foil-2); font: 700 .62rem/1 var(--label); }
.slot-list li span { color: var(--ink-2); }
.slot-list li small { color: var(--dim); font: 600 .6rem/1.3 var(--label); letter-spacing: .1em; text-transform: uppercase; text-align: right; }
.pack-brief .brief-actions { margin-top: 1.4rem; gap: .75rem; }
.pack-brief .button-outline { margin-top: 0; }

/* the pack itself (shared by the preview and the opening stage) */
.pack { position: relative; width: clamp(200px, 30vh, 260px); aspect-ratio: 5 / 7.2; transform-style: preserve-3d; --mx: 50; --my: 50; }
.pack-body { position: absolute; inset: 0; border-radius: 6px; background: repeating-linear-gradient(115deg, rgba(255, 255, 255, .06) 0 2px, transparent 2px 10px), linear-gradient(160deg, #22307a 0%, #12162a 40%, #1b2350 70%, #0c0f1e 100%); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .08) inset; overflow: hidden; }
.pack-body::before { content: ""; position: absolute; inset: 0; background: radial-gradient(farthest-corner circle at calc(var(--mx) * 1%) calc(var(--my) * 1%), rgba(255, 255, 255, .55), rgba(255, 255, 255, .12) 28%, transparent 60%); mix-blend-mode: overlay; }
.pack-body::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(112deg, hsl(196 100% 64%) 0%, hsl(262 100% 70%) 9%, hsl(322 100% 68%) 18%, hsl(48 100% 70%) 27%, hsl(176 100% 62%) 36%, hsl(196 100% 64%) 45%); background-size: 400% 400%; background-position: calc(100% - var(--mx) * 1%) calc(100% - var(--my) * 1%); mix-blend-mode: color-dodge; opacity: .18; filter: brightness(.6) contrast(1.4); }
.pack-crimp { position: absolute; left: -2px; right: -2px; height: 14px; background: #1b2350; z-index: 3; }
.pack-crimp.top { top: -1px; }
.pack-crimp.bottom { bottom: -1px; }
.pack-face { position: absolute; inset: 0; z-index: 2; display: grid; grid-template-rows: auto 1fr auto; gap: 4%; padding: 14% 9% 10%; text-align: center; color: var(--ink); pointer-events: none; }
.pack-face .brand-mark { justify-self: center; height: 22px; }
.pack-face strong { display: block; font: 900 clamp(1.25rem, 2.8vh, 1.6rem)/1 var(--display); letter-spacing: -.02em; text-transform: uppercase; }
.pack-face strong b { color: var(--foil-3); font-weight: 900; }
.pack-face .pack-sub { display: block; margin-top: .4rem; color: var(--muted); font: 600 .52rem/1 var(--label); letter-spacing: .3em; text-transform: uppercase; }
.pack-window { position: relative; align-self: stretch; display: flex; align-items: flex-end; justify-content: center; gap: 2%; padding: 6% 4% 4%; border: 1px solid rgba(79, 242, 255, .35); border-radius: 6px; background: radial-gradient(circle at 50% 100%, rgba(45, 60, 255, .6), transparent 60%), rgba(7, 8, 15, .55); overflow: hidden; }
.pack-window::before { content: ""; position: absolute; left: 8%; right: 8%; bottom: 10%; height: 1px; background: rgba(79, 242, 255, .5); box-shadow: 0 0 14px rgba(79, 242, 255, .6); }
.pack-window img { width: 24%; height: 78%; object-fit: contain; object-position: bottom; filter: grayscale(1) sepia(1) hue-rotate(150deg) saturate(3) brightness(1.1) drop-shadow(0 0 6px rgba(79, 242, 255, .5)); opacity: .85; }
.pack-window img:nth-child(2) { translate: 0 -8%; }
.pack-window img:nth-child(3) { translate: 0 -4%; }
.pack-footer { display: grid; gap: .3rem; color: var(--ink-2); font: 600 .55rem/1.3 var(--label); letter-spacing: .2em; text-transform: uppercase; }
.pack-footer b { color: var(--foil-3); }
.pack-tear { position: absolute; left: 0; right: 0; top: 0; height: 19%; z-index: 4; border-radius: 6px 6px 0 0; overflow: hidden; transform-origin: 0 100%; transform: translateX(calc(var(--tear, 0) * 12%)) rotate(calc(var(--tear, 0) * -4deg)); }
.pack-tear > .pack-body { position: absolute; left: 0; right: 0; top: 0; bottom: auto; height: 526.3%; border-radius: 6px 6px 0 0; box-shadow: none; }
.pack-wrap .pack { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.pack-cut { position: absolute; left: 0; right: 0; top: 19%; z-index: 5; height: 0; border-top: 2px dashed rgba(255, 255, 255, .5); }
.pack-cut::after { content: "drag →"; position: absolute; right: 6%; top: -1.35rem; color: rgba(238, 240, 255, .8); font: 600 .55rem/1 var(--label); letter-spacing: .22em; text-transform: uppercase; animation: cut-hint 1.6s ease-in-out infinite; }
@keyframes cut-hint { 0%, 100% { translate: 0 0; } 50% { translate: 6px 0; } }
.pack.grabbing { cursor: grabbing; }
.pack.tearing .pack-tear { animation: tear-off .75s cubic-bezier(.4, 0, .9, .6) forwards; }
@keyframes tear-off { 0% { transform: translate(0, 0) rotate(0); opacity: 1; } 40% { transform: translate(8%, -40%) rotate(-8deg); opacity: 1; } 100% { transform: translate(30%, -260%) rotate(-24deg); opacity: 0; } }
.pack.tearing { animation: pack-shake .5s ease-in-out 1; }
@keyframes pack-shake { 0%, 100% { translate: 0 0; } 20% { translate: -4px 0; } 40% { translate: 4px 0; } 60% { translate: -3px 0; } 80% { translate: 3px 0; } }
.pack.tearing .pack-cut { opacity: 0; }
.pack.spent { animation: pack-drop .7s .35s cubic-bezier(.4, 0, .8, .4) forwards; }
@keyframes pack-drop { to { transform: translateY(60%) rotate(4deg); opacity: 0; } }

/* ---------- binder ---------- */
.binder-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: clamp(1.4rem, 3vw, 2.4rem) clamp(1rem, 2vw, 1.6rem); }
.slot { position: relative; display: flex; flex-direction: column; gap: .8rem; animation: slot-rise .7s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 45ms); }
.slot[hidden] { display: none; }
@keyframes slot-rise { from { opacity: 0; translate: 0 18px; } to { opacity: 1; translate: 0 0; } }
.slot.pulled .scene { animation: slot-pulse 1.4s var(--ease-out) 1; }
@keyframes slot-pulse { 0% { filter: brightness(1); } 25% { filter: brightness(1.6) drop-shadow(0 0 30px rgba(255, 230, 109, .7)); } 100% { filter: brightness(1); } }
.slot-caption { display: flex; justify-content: space-between; align-items: flex-start; gap: .6rem; padding: 0 .15rem; }
.slot-caption strong { display: block; font: 700 .92rem/1.15 var(--display); letter-spacing: -.01em; color: var(--ink); }
.slot-caption span { display: block; margin-top: .3rem; color: var(--dim); font: 600 .58rem/1.4 var(--label); letter-spacing: .14em; text-transform: uppercase; }
.slot.locked .slot-caption strong { color: var(--dim); }
.count-badge { position: absolute; top: -.6rem; right: -.4rem; z-index: 5; min-width: 2.2rem; padding: .35rem .5rem; border-radius: 999px; background: var(--foil-3); color: #0a0d1c; font: 700 .62rem/1 var(--label); text-align: center; box-shadow: 0 8px 20px rgba(0, 0, 0, .45); pointer-events: none; }
.new-badge { position: absolute; top: -.6rem; left: -.4rem; z-index: 5; padding: .35rem .55rem; border-radius: 999px; background: var(--foil-1); color: #0a0d1c; font: 700 .58rem/1 var(--label); letter-spacing: .14em; text-transform: uppercase; box-shadow: 0 8px 20px rgba(0, 0, 0, .45); pointer-events: none; }
.pill { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .6rem; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2); font: 600 .55rem/1 var(--label); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.pill.common { color: var(--muted); }
.pill.uncommon { border-color: rgba(79, 242, 255, .45); color: var(--foil-1); }
.pill.rare { border-color: rgba(79, 242, 255, .7); color: #dbfbff; background: rgba(43, 124, 255, .25); }
.pill.legendary { border-color: rgba(240, 194, 122, .7); color: var(--gold); background: rgba(165, 100, 31, .25); }
.pill.secret { border-color: transparent; background: linear-gradient(120deg, #4ff2ff, #ffe66d, #ff7d9c); color: #0a0d1c; }

/* ---------- how it works + rarity odds ---------- */
.how-section .steps p { max-width: 320px; }
.table-wrap { margin-top: 3rem; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.odds-table { width: 100%; min-width: 520px; border-collapse: collapse; color: var(--ink-2); font-size: .88rem; }
.odds-table th, .odds-table td { padding: .95rem 1.1rem; border-bottom: 1px solid var(--line); text-align: left; }
.odds-table tbody tr:last-child td { border-bottom: 0; }
.odds-table th { color: var(--muted); font: 600 .6rem/1 var(--label); letter-spacing: .18em; text-transform: uppercase; }
.odds-table td:last-child, .odds-table th:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.odds-table .finish-name { color: var(--ink); font: 700 .95rem/1.2 var(--display); }
.odds-note { margin-top: 1rem; color: var(--muted); font-size: .82rem; }

footer .footer-note { color: var(--dim); font: 500 .58rem/1.6 var(--label); letter-spacing: .12em; text-transform: uppercase; }

/* ====================================================================
   PACK OPENING DIALOG
   ==================================================================== */
.pack-dialog { width: min(1180px, calc(100% - 2rem)); height: min(780px, calc(100dvh - 2rem)); padding: 0; overflow: hidden; border: 1px solid rgba(79, 242, 255, .38); border-radius: 18px; background: var(--bg-2); color: var(--ink-2); box-shadow: 0 35px 120px rgba(0, 0, 0, .72), 0 0 80px rgba(45, 60, 255, .18); }
.pack-dialog::backdrop { background: rgba(4, 5, 12, .9); backdrop-filter: blur(12px); }
.pack-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr); height: 100%; }
.pack-stage { position: relative; overflow: hidden; background: radial-gradient(circle at 50% 45%, rgba(45, 60, 255, .3), transparent 40%), linear-gradient(155deg, var(--surface-2), var(--bg)); perspective: 1400px; }
.stage-grid { position: absolute; inset: 0; opacity: .4; background: linear-gradient(rgba(79, 242, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(79, 242, 255, .06) 1px, transparent 1px); background-size: 32px 32px; mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent); pointer-events: none; }
.stage-sparks { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 6; pointer-events: none; }
.stage-flash { position: absolute; inset: 0; z-index: 7; background: radial-gradient(circle, rgba(255, 246, 210, .95), rgba(255, 230, 109, .4) 40%, transparent 70%); opacity: 0; pointer-events: none; }
.stage-flash.go { animation: stage-flash .9s ease-out 1; }
@keyframes stage-flash { 0% { opacity: 0; } 12% { opacity: 1; } 100% { opacity: 0; } }
.stage-rings { position: absolute; z-index: 5; left: 50%; top: 44%; width: 1px; height: 1px; pointer-events: none; }
.stage-rings::before, .stage-rings::after { content: ""; position: absolute; left: 0; top: 0; width: 220px; aspect-ratio: 1; border: 1px solid rgba(79, 242, 255, .6); border-radius: 50%; opacity: 0; transform: translate(-50%, -50%) scale(.25); }
.stage-rings.go::before { animation: activation-ring 1.15s cubic-bezier(.2, .8, .2, 1) both; }
.stage-rings.go::after { border-color: rgba(255, 230, 109, .65); animation: activation-ring 1.15s .16s cubic-bezier(.2, .8, .2, 1) both; }
.stage-rings.gold::before { border-color: rgba(240, 194, 122, .8); }
.stage-burst { position: absolute; z-index: 5; left: 50%; top: 44%; width: 1px; height: 1px; pointer-events: none; }
.stage-burst i { --angle: 0deg; position: absolute; left: -3px; top: -12px; width: 6px; height: 24px; border-radius: 999px; opacity: 0; background: linear-gradient(var(--foil-1), var(--foil-3)); transform-origin: 50% 12px; }
.stage-burst i:nth-child(2) { --angle: 45deg; }
.stage-burst i:nth-child(3) { --angle: 90deg; }
.stage-burst i:nth-child(4) { --angle: 135deg; }
.stage-burst i:nth-child(5) { --angle: 180deg; }
.stage-burst i:nth-child(6) { --angle: 225deg; }
.stage-burst i:nth-child(7) { --angle: 270deg; }
.stage-burst i:nth-child(8) { --angle: 315deg; }
.stage-burst.go i { animation: activation-spark .9s .08s cubic-bezier(.16, .8, .3, 1) both; }
.pack-wrap { position: absolute; inset: 0; display: grid; place-items: center; z-index: 3; }
.pack-wrap[hidden] { display: none; }
.pack-wrap .pack { cursor: grab; transition: transform .4s var(--ease-out); }
.pack-cards { position: absolute; left: 0; right: 0; top: 6%; bottom: 24%; z-index: 4; display: grid; place-items: center; }
.pack-card { position: absolute; width: clamp(160px, 30vh, 240px); transform: translate(calc(var(--sx, 0) * 1px), calc(var(--sy, 0) * 1px)) rotate(var(--sr, 0deg)); transition: transform .5s var(--ease-out), opacity .4s ease; }
.pack-card .scene { animation: none; }
.pack-card.entering { animation: card-enter .7s var(--ease-out) both; animation-delay: calc(var(--k, 0) * 90ms); }
@keyframes card-enter { from { transform: translate(0, 60%) rotate(0); opacity: 0; } to { transform: translate(calc(var(--sx, 0) * 1px), calc(var(--sy, 0) * 1px)) rotate(var(--sr, 0deg)); opacity: 1; } }
.pack-card.revealing { z-index: 20; transform: translate(0, -6%) scale(1.08); }
.pack-card.leaving { z-index: 20; pointer-events: none; }
.pack-tray { position: absolute; left: 0; right: 0; bottom: 3%; z-index: 4; display: flex; justify-content: center; align-items: flex-end; gap: .6rem; padding: 0 1rem; }
.tray-card { width: clamp(52px, 8vh, 78px); transition: width .5s var(--ease-out), transform .5s var(--ease-out); }
.tray-card .scene { animation: none; }
.pack-stage.done .pack-cards { display: none; }
.pack-stage.done .pack-tray { bottom: auto; top: 50%; translate: 0 -50%; gap: 0; }
.pack-stage.done .tray-card { width: clamp(120px, 20vh, 168px); margin: 0 -1.6rem; transform: rotate(calc((var(--t, 0) - var(--mid, 2)) * 7deg)) translateY(calc((var(--t, 0) - var(--mid, 2)) * (var(--t, 0) - var(--mid, 2)) * 6px)); }
.pack-stage.done .tray-card:hover { z-index: 3; transform: rotate(0) translateY(-14px) scale(1.06); }
.pack-copy { position: relative; display: flex; flex-direction: column; justify-content: center; padding: clamp(2rem, 5vw, 4rem); }
.pack-copy h2 { max-width: 520px; margin: .8rem 0; font-size: clamp(1.8rem, 3.2vw, 2.9rem); line-height: 1; }
.pack-copy > p:not(.eyebrow) { color: var(--muted); }
.reveal-list { display: grid; grid-template-columns: repeat(var(--n, 5), 1fr); gap: .4rem; margin: 1.4rem 0; padding: 0; list-style: none; }
.reveal-list li { min-height: 52px; padding: .55rem .35rem; border: 1px solid var(--line); border-radius: 10px; color: var(--dim); font: 600 .5rem/1.35 var(--label); letter-spacing: .06em; text-align: center; text-transform: uppercase; }
.reveal-list li.next { border-color: rgba(255, 230, 109, .65); color: var(--foil-3); box-shadow: 0 0 24px rgba(255, 230, 109, .12); }
.reveal-list li.done { border-color: rgba(79, 242, 255, .45); background: rgba(79, 242, 255, .08); color: var(--foil-1); }
.reveal-list li.done.rare, .reveal-list li.done.legendary, .reveal-list li.done.secret { border-color: rgba(240, 194, 122, .7); color: var(--gold); background: rgba(165, 100, 31, .18); }
.pack-actions { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; }
.pack-actions .button { min-height: 42px; }
.pack-hint { margin: 1.2rem 0 0; color: var(--dim); font: 600 .58rem/1.7 var(--label); letter-spacing: .16em; text-transform: uppercase; }
.pack-dialog .dialog-close { z-index: 9; }

/* ====================================================================
   SHOWCASE DIALOG
   ==================================================================== */
.showcase-dialog { width: min(1120px, calc(100% - 2rem)); max-height: calc(100dvh - 2rem); padding: 0; overflow: auto; border: 1px solid rgba(79, 242, 255, .38); border-radius: 18px; background: var(--bg-2); color: var(--ink-2); box-shadow: 0 35px 120px rgba(0, 0, 0, .72), 0 0 80px rgba(45, 60, 255, .18); }
.showcase-dialog::backdrop { background: rgba(4, 5, 12, .88); backdrop-filter: blur(12px); }
.showcase-layout { display: grid; grid-template-columns: minmax(280px, 440px) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; padding: clamp(2rem, 5vw, 3.5rem); }
.showcase-stage { position: relative; perspective: 1300px; }
.showcase-stage .scene { animation: none; }
.showcase-info .eyebrow { margin-bottom: .8rem; }
.showcase-info h2 { margin: 0; font-size: clamp(2rem, 3.6vw, 3.4rem); line-height: .98; }
.showcase-info .epithet { margin: .7rem 0 0; font: italic 400 1.05rem/1.45 var(--body); color: var(--ink-2); }
.showcase-tags { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1rem; }
.showcase-block { margin-top: 1.5rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.showcase-block h4 { margin: 0 0 .5rem; color: var(--muted); font: 600 .6rem/1 var(--label); letter-spacing: .24em; text-transform: uppercase; }
.showcase-block .ability-name { color: var(--foil-3); font: 700 .9rem/1.3 var(--label); letter-spacing: .1em; text-transform: uppercase; }
.showcase-block p { margin: .4rem 0 0; color: var(--ink-2); max-width: 48ch; }
.showcase-stats { display: grid; grid-template-columns: auto 1fr auto; gap: .55rem .9rem; align-items: center; margin: 0; }
.showcase-stats span { color: var(--muted); font: 600 .6rem/1 var(--label); letter-spacing: .2em; text-transform: uppercase; }
.showcase-stats em { font: 700 .72rem/1 var(--label); font-style: normal; font-variant-numeric: tabular-nums; }
.showcase-stats .track { height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.showcase-stats .track i { display: block; height: 100%; width: calc(var(--v, 0) * 10%); border-radius: inherit; background: linear-gradient(90deg, var(--foil-1), var(--foil-2)); transform-origin: left; animation: stat-grow .9s var(--ease-out) both; }
@keyframes stat-grow { from { transform: scaleX(0); } }
.showcase-meta { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem 1rem; margin: 0; }
.showcase-meta div { padding: .55rem 0; border-bottom: 1px solid var(--line); }
.showcase-meta dt { color: var(--muted); font: 600 .58rem/1 var(--label); letter-spacing: .16em; text-transform: uppercase; }
.showcase-meta dd { margin: .3rem 0 0; color: var(--ink); font: 700 .72rem/1.4 var(--label); font-variant-numeric: tabular-nums; }
.showcase-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.5rem; }
.showcase-actions .button { min-height: 42px; }
.nav-arrow { position: absolute; z-index: 5; top: 50%; translate: 0 -50%; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 50%; background: rgba(18, 22, 42, .85); color: var(--ink); font: 400 1.5rem/1 var(--body); cursor: pointer; transition: background .2s ease, border-color .2s ease; }
.nav-arrow:hover { background: var(--surface-2); border-color: var(--foil-1); }
.nav-arrow.prev { left: .8rem; }
.nav-arrow.next { right: .8rem; }
.showcase-dialog .dialog-close { z-index: 6; }
.showcase-hint { margin-top: 1rem; color: var(--dim); font: 600 .58rem/1.7 var(--label); letter-spacing: .16em; text-transform: uppercase; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .pack-layout { grid-template-columns: minmax(0, 1fr) minmax(280px, .8fr); }
}
@media (max-width: 960px) {
  .cards-hero { grid-template-columns: 1fr; }
  .hero-stage { height: clamp(300px, 58vw, 420px); }
  .hero-card { width: clamp(130px, 27vw, 210px); }
  .pack-shelf { grid-template-columns: 1fr; }
  .pack-preview { min-height: 360px; }
  .pack-dialog { height: auto; max-height: calc(100dvh - 2rem); overflow: auto; }
  .pack-layout { grid-template-columns: 1fr; height: auto; }
  .pack-stage { min-height: min(520px, 68dvh); }
  .showcase-layout { grid-template-columns: 1fr; justify-items: center; }
  .showcase-stage { width: min(72vw, 360px); }
  .showcase-info { width: 100%; max-width: 520px; }
}
@media (max-width: 720px) {
  .packs-button span:last-child { display: none; }
  .cards-hero .hero-content { padding-top: 2.5rem; }
  .cards-hero h1 { font-size: clamp(1.9rem, 8.4vw, 2.8rem); }
  /* minmax(0, 1fr), not 1fr: a bare 1fr track cannot shrink below its content's
     min-content, and the no-wrap rarity pill beside each caption made both
     columns 257 px, pushing the page 175 px past a 375 px screen. */
  .binder-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .slot-caption { flex-wrap: wrap; }
  .slot-caption > div { min-width: 0; }
  /* six footer controls do not fit one 335 px row */
  body > footer > div { flex-wrap: wrap; row-gap: .6rem; }
  .seg { margin-left: 0; }
  .pack-card { width: clamp(150px, 46vw, 200px); }
  .pack-stage { min-height: 460px; }
  .pack-stage.done .tray-card { width: clamp(84px, 24vw, 120px); margin: 0 -.9rem; }
  .reveal-list { grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); }
  .reveal-list li { padding-inline: .15rem; font-size: .44rem; }
}

/* ---------- motion preferences (styles.css already shortens every animation and transition) ---------- */
@media (prefers-reduced-motion: reduce) {
  .scene, .hero-card .scene, .hero-card .float, .pack-preview .pack, .frame-iridescent, .slot { animation: none !important; }
  .tilt { transform: none !important; }
  .halo, .sweep, .stage-rings, .stage-burst, .stage-flash, .pack-cut::after { display: none !important; }
  .pack-card.revealing { transform: none; }
}
body.reduce-motion .scene, body.reduce-motion .hero-card .scene, body.reduce-motion .hero-card .float, body.reduce-motion .pack-preview .pack, body.reduce-motion .frame-iridescent, body.reduce-motion .slot { animation: none !important; }
body.reduce-motion .tilt { transform: none !important; }
body.reduce-motion .halo, body.reduce-motion .sweep, body.reduce-motion .stage-rings, body.reduce-motion .stage-burst, body.reduce-motion .stage-flash, body.reduce-motion .pack-cut::after { display: none !important; }
