/* Pack page (/packs/<id>/): breadcrumb, opening stage, buy panel, top hits, every card, recent pulls,
   more packs, odds note and the sticky buy bar on phones. Behavior lives in pack.js. */

.pd [hidden], .buy-bar [hidden] { display: none !important; }

/* ---------- breadcrumb ---------- */
.pd { padding-top: var(--space-5); }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 14px; color: var(--text-muted); }
.crumbs li { display: inline-flex; align-items: center; gap: 10px; }
.crumbs li + li::before { content: ""; width: 6px; height: 6px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); opacity: 0.55; }
.crumbs a { color: var(--text-muted); transition: color 0.2s; }
.crumbs a:hover { color: var(--text); }
.crumbs [aria-current="page"] { color: var(--text); font-weight: 600; }

.pd-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 420px); gap: var(--space-6) 28px; align-items: start; margin-top: var(--space-5); }
.pd-stage-col { display: grid; gap: var(--space-4); min-width: 0; }
@media (min-width: 901px) and (min-height: 900px) {
  .pd-stage-col { position: sticky; top: calc(var(--header-h) + 16px); }
}

/* ---------- stage ---------- */
.stage {
  --stage-h: 600px;
  position: relative; isolation: isolate; overflow: hidden;
  container: stage / inline-size;
  height: var(--stage-h); border-radius: var(--radius-xl);
  background:
    radial-gradient(ellipse 45% 70% at 50% -10%, rgba(242, 255, 230, 0.16), transparent 70%),
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(79, 160, 60, 0.26), transparent 70%),
    var(--bg-deep);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.045);
  -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent;
}
.stage-cone {
  position: absolute; left: 50%; top: -40px; width: 70%; max-width: 520px; height: 92%; transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(242, 255, 230, 0.15), transparent 80%);
  clip-path: polygon(40% 0, 60% 0, 100% 100%, 0 100%);
  pointer-events: none; animation: stage-cone 6s ease-in-out infinite;
}
@keyframes stage-cone { 50% { opacity: 0.65; } }
.stage .sparkle { z-index: 1; }
.stage-pedestal {
  position: absolute; left: 50%; bottom: 8%; width: min(60%, 340px); height: 64px; transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(ellipse at center, color-mix(in srgb, var(--green-deep) 45%, var(--surface)) 0%, var(--bg-deep) 62%);
  box-shadow: 0 0 60px 10px rgba(130, 221, 90, 0.2), inset 0 6px 14px rgba(242, 255, 230, 0.12);
}
.stage-pedestal::before, .stage-pedestal::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.stage-pedestal::before { inset: 0; border: 1px solid rgba(130, 221, 90, 0.5); animation: stage-ripple 3.2s ease-out infinite; }
.stage-pedestal::after { inset: -12px -28px; border: 1px solid rgba(130, 221, 90, 0.35); animation: stage-aura 3s ease-in-out infinite; }
@keyframes stage-ripple { from { transform: scale(1); opacity: 0.8; } to { transform: scale(1.9); opacity: 0; } }
@keyframes stage-aura { 50% { opacity: 0.4; transform: scale(1.05); } }

.stage-top { position: absolute; top: 16px; left: 16px; right: 16px; z-index: 7; display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); }
.stage-mute {
  display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1); background: rgba(20, 22, 30, 0.6); color: var(--text);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: color 0.2s, transform 0.25s var(--ease-spring), border-color 0.2s;
}
.stage-mute:hover { color: var(--action); border-color: rgba(130, 221, 90, 0.4); transform: scale(1.06); }
.stage-mute:focus-visible { border-radius: 50%; }
.stage-mute svg { width: 20px; height: 20px; }
.stage-mute .icon-off, .stage-mute[aria-pressed="true"] .icon-on { display: none; }
.stage-mute[aria-pressed="true"] .icon-off { display: block; }

/* the pack: a real button; hover tears the strip and lifts a card back out of the top */
.stage-pack {
  --pack-h: min(400px, calc(var(--stage-h) * 0.64));
  position: absolute; left: 50%; bottom: calc(8% + 34px); z-index: 3;
  width: calc(var(--pack-h) * 0.577); height: var(--pack-h); margin-left: calc(var(--pack-h) * -0.2885);
  padding: 0; border: 0; border-radius: 14px; background: none; cursor: pointer;
}
.stage-pack:focus-visible { box-shadow: 0 0 0 2px var(--bg-deep), 0 0 0 4px var(--action); border-radius: 14px; }
.stage-float { position: absolute; inset: 0; animation: stage-float 4.5s ease-in-out infinite; }
@keyframes stage-float { 50% { transform: translateY(-12px); } }
.stage-light {
  position: absolute; left: 50%; top: -6%; width: 130%; height: 34%; transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(242, 255, 230, 0.9), rgba(130, 221, 90, 0.45) 35%, transparent 70%);
  filter: blur(14px); opacity: 0; transition: opacity 0.4s; pointer-events: none;
}
.stage-inner { position: absolute; inset: 0; filter: drop-shadow(0 26px 26px rgba(0, 0, 0, 0.55)); }
.stage-peek {
  position: absolute; left: 50%; top: 12%; width: 78%; aspect-ratio: 5 / 7; transform: translateX(-50%);
  border-radius: 8px; border: 2px solid var(--green-mid);
  background: url("/assets/brand/icone.svg") center 18% / 34% auto no-repeat, radial-gradient(circle at 50% 35%, var(--green-deep), var(--ink) 70%);
  transition: transform 0.55s var(--ease-out), opacity 0.2s;
}
.stage-body, .stage-strip { position: absolute; left: 0; bottom: 0; width: 100%; height: auto; transition: transform 0.6s var(--ease-out), opacity 0.5s; }
.stage-body { clip-path: inset(9.6% 0 0 0); }
.stage-strip { clip-path: inset(0 0 90.4% 0); transform-origin: 90% 6%; }
.stage-pack:hover .stage-strip, .stage-pack:focus-visible .stage-strip { transform: translate(14px, -22px) rotate(10deg); }
.stage-pack:hover .stage-body, .stage-pack:focus-visible .stage-body { transform: translateY(6px); }
.stage-pack:hover .stage-light, .stage-pack:focus-visible .stage-light { opacity: 0.85; }
.stage-pack:hover .stage-peek, .stage-pack:focus-visible .stage-peek { transform: translate(-50%, -15%); }

.stage-hint {
  position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 4; margin: 0;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 13px; color: var(--text-muted); text-align: center; pointer-events: none; transition: opacity 0.3s;
}
.stage-hint svg { width: 16px; height: 16px; color: var(--action); flex: none; }
.hint-touch { display: none; }

.stage-flash {
  position: absolute; left: 50%; top: 42%; width: 520px; height: 520px; margin: -260px 0 0 -260px; z-index: 4;
  border-radius: 50%; pointer-events: none; opacity: 0;
  background: radial-gradient(circle, rgba(242, 255, 230, 0.95), rgba(130, 221, 90, 0.35) 40%, transparent 70%);
}

/* opening: shake, flash, strip flies off, body drops */
.stage.is-opening .stage-inner { animation: stage-shake 0.5s var(--ease-out) both; }
.stage.is-opening .stage-light { opacity: 1; }
.stage.is-opening .stage-strip { transform: translate(6px, -8px) rotate(4deg); }
.stage.is-open .stage-strip { transform: translate(140px, -320px) rotate(48deg); opacity: 0; transition: transform 0.7s var(--ease-out), opacity 0.45s 0.25s; }
.stage.is-open .stage-body { transform: translateY(260px) scale(0.82); opacity: 0; transition: transform 0.75s cubic-bezier(0.55, 0, 0.8, 0.2) 0.25s, opacity 0.4s 0.55s; }
.stage.is-open .stage-peek { opacity: 0; }
.stage.is-open .stage-light { opacity: 0; transition-delay: 0.3s; }
.stage.is-open .stage-pack { pointer-events: none; }
.stage.is-open .stage-flash { animation: stage-flash 1.1s ease-out 0.05s; }
.stage.is-open .stage-hint, .stage.is-opening .stage-hint { opacity: 0; }
.stage.is-returning .stage-inner { animation: stage-return 0.8s var(--ease-spring) both; }
.stage.is-resetting *, .stage.is-resetting *::before, .stage.is-resetting *::after { transition: none !important; animation: none !important; }
@keyframes stage-shake {
  0% { transform: none; }
  18% { transform: rotate(-3deg) scale(1.03); }
  36% { transform: rotate(3deg) scale(1.05); }
  54% { transform: rotate(-2deg) scale(1.06); }
  72% { transform: rotate(1.5deg) scale(1.06); }
  100% { transform: scale(1.05); }
}
@keyframes stage-flash { 0% { opacity: 0; transform: scale(0.4); } 25% { opacity: 1; } 100% { opacity: 0; transform: scale(1.7); } }
@keyframes stage-return { from { opacity: 0; transform: translateY(-48px) scale(0.9); } }

/* the five cards: fan out from the pack, then flip one by one (rarest last, in the center) */
.reveal-fan { position: absolute; left: 50%; top: 46%; z-index: 5; width: 0; height: 0; margin: 0; padding: 0; }
.reveal {
  --card-w: clamp(84px, 18cqw, 150px);
  --step: calc(var(--card-w) * 1.02);
  --tilt: 7deg;
  --flip-at: calc(1.1s + var(--n, 0) * 0.32s);
  --c: var(--rarity-common);
  position: absolute; left: 0; top: 0; z-index: calc(5 - var(--a, 0));
  width: var(--card-w); aspect-ratio: 5 / 7; perspective: 1000px;
  opacity: 0;
  transform: translate(-50%, -50%) translateY(calc(var(--stage-h) * 0.1)) scale(0.4);
  transition: transform 0.8s var(--ease-out), opacity 0.3s;
  transition-delay: calc(0.32s + var(--o, 0) * 0.07s);
}
.reveal[data-rarity="rare"] { --c: var(--rarity-rare); }
.reveal[data-rarity="ultra"] { --c: var(--rarity-ultra); }
.reveal[data-rarity="special"] { --c: var(--rarity-special); }
.stage.is-open .reveal {
  opacity: 1;
  transform: translate(-50%, -50%) translate(calc(var(--k) * var(--step)), calc(var(--k) * var(--k) * var(--card-w) * 0.07)) rotate(calc(var(--k) * var(--tilt)));
}
.reveal-card { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform 0.8s var(--ease-out); transition-delay: var(--flip-at); }
.stage.is-open .reveal-card { transform: rotateY(180deg); }
.reveal-face { position: absolute; inset: 0; overflow: hidden; border-radius: 7% / 5%; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.reveal-back {
  display: grid; place-items: center;
  background:
    repeating-linear-gradient(135deg, rgba(130, 221, 90, 0.07) 0 2px, transparent 2px 9px),
    radial-gradient(circle at 50% 40%, var(--green-deep), var(--ink) 70%);
  border: 3px solid var(--green-mid); box-shadow: 0 18px 28px rgba(0, 0, 0, 0.6);
}
.reveal-back img { width: 46%; height: auto; }
.reveal-front { transform: rotateY(180deg); background: var(--bg-deep); box-shadow: 0 22px 36px rgba(0, 0, 0, 0.65); transition: box-shadow 0.5s calc(var(--flip-at) + 0.3s); }
.reveal-front img { width: 100%; height: 100%; object-fit: cover; }
.stage.is-open .reveal[data-rarity="rare"] .reveal-front { box-shadow: 0 0 0 2px rgba(110, 195, 255, 0.7), 0 0 26px rgba(110, 195, 255, 0.35), 0 22px 36px rgba(0, 0, 0, 0.65); }

.reveal-foil {
  position: absolute; inset: 0; opacity: 0; mix-blend-mode: color-dodge; pointer-events: none;
  background: linear-gradient(110deg, transparent 25%, rgba(130, 221, 90, 0.5) 40%, rgba(110, 190, 255, 0.45) 50%, rgba(255, 120, 220, 0.4) 60%, transparent 75%);
  background-size: 240% 100%;
}
.stage.is-open .reveal.is-hit .reveal-foil { opacity: 0.85; animation: fx-foil 2.6s linear infinite; transition: opacity 0.6s calc(var(--flip-at) + 0.4s); }
.reveal-halo { position: absolute; inset: -10px; z-index: -1; overflow: hidden; border-radius: 16px; opacity: 0; filter: blur(7px); transition: opacity 0.6s; pointer-events: none; }
.reveal-halo::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 200%; height: 200%; margin: -100% 0 0 -100%;
  background: conic-gradient(from 0deg, var(--action), var(--glow), transparent 35%, var(--action) 60%, transparent 80%);
  animation: fx-spin 3s linear infinite;
}
.stage.is-open .reveal.is-hit .reveal-halo { opacity: 1; transition-delay: calc(var(--flip-at) + 0.35s); }
.reveal-rays {
  position: absolute; left: 50%; top: 50%; z-index: -2; width: 340%; aspect-ratio: 1; margin: -170% 0 0 -170%; border-radius: 50%; pointer-events: none;
  background: repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--c) 22%, transparent) 0 5deg, transparent 5deg 15deg);
  -webkit-mask: radial-gradient(circle, #000 16%, transparent 66%); mask: radial-gradient(circle, #000 16%, transparent 66%);
  opacity: 0; transform: scale(0.5);
  transition: opacity 0.8s, transform 1.2s var(--ease-out);
}
.stage.is-open .reveal.is-best .reveal-rays { opacity: 1; transform: scale(1); transition-delay: calc(var(--flip-at) + 0.3s); animation: rays-turn 28s linear infinite; }
@keyframes rays-turn { to { rotate: 360deg; } }
.reveal-label {
  position: absolute; left: 50%; bottom: calc(100% + 14px); z-index: 2;
  padding: 5px 11px; border-radius: var(--radius-pill); white-space: nowrap;
  background: var(--c); color: var(--on-action); font-size: 12px; font-weight: 600; line-height: 1.3;
  box-shadow: 0 10px 24px -8px color-mix(in srgb, var(--c) 70%, transparent);
  opacity: 0; transform: translate(-50%, 8px) scale(0.9);
  transition: opacity 0.4s, transform 0.5s var(--ease-spring);
}
.stage.is-open .reveal.is-best .reveal-label { opacity: 1; transform: translate(-50%, 0); transition-delay: calc(var(--flip-at) + 0.55s); }
.stage.is-open .reveal.is-hit { animation: reveal-pop 0.7s var(--ease-spring) both; animation-delay: calc(var(--flip-at) + 0.3s); }
@keyframes reveal-pop { 0% { scale: 1; } 40% { scale: 1.12; } 100% { scale: 1.04; } }
/* once everything is face up, revealed cards lift on hover */
.stage.is-done .reveal-card { transition: transform 0.35s var(--ease-out); transition-delay: 0s; }
.stage.is-done .reveal:hover { z-index: 9; }
.stage.is-done .reveal:hover .reveal-card { transform: rotateY(180deg) translateY(-12px) scale(1.06); }
@container stage (max-width: 560px) {
  .reveal { --card-w: 25cqw; --step: calc(var(--card-w) * 0.62); --tilt: 9deg; }
  .reveal-label { font-size: 11px; padding: 4px 9px; }
}

/* ---------- result banner ---------- */
.open-result {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-5) var(--space-6);
  padding: var(--space-5) var(--space-6); border-radius: var(--radius-lg);
  background: var(--ink); border: 1px solid rgba(130, 221, 90, 0.28);
  animation: result-in 0.55s var(--ease-out) both;
}
.open-result:focus-visible { border-radius: var(--radius-lg); }
@keyframes result-in { from { opacity: 0; transform: translateY(14px); } }
.open-result-copy { display: grid; gap: 6px; min-width: 0; flex: 1 1 320px; }
.open-result-title { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 600; line-height: 1.3; }
.open-result-title svg { width: 22px; height: 22px; flex: none; color: var(--action); }
.open-result-text { font-size: 14px; color: #b9c4b3; }
.open-result-cards { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.open-result-cards li { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: var(--radius-pill); background: rgba(20, 22, 30, 0.55); font-size: 12px; font-weight: 600; }
.open-result-cards .dot { width: 7px; height: 7px; }
.open-result-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }

/* ---------- buy panel ---------- */
.buy { --warn: #ffc56b; display: grid; gap: 22px; padding: 28px; border-radius: var(--radius-xl); background: var(--bg-card); }
.buy-tags { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.tag { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: var(--radius-pill); border: 1px solid var(--line); color: var(--text-muted); font-size: 13px; font-weight: 600; }
.tag-ink { background: var(--ink); border-color: transparent; color: var(--action); transition: background-color 0.2s, color 0.2s; }
a.tag-ink:hover { background: var(--action); color: var(--on-action); }
.buy-title { display: grid; gap: var(--space-2); }
.buy-title h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.75rem, 1.35rem + 1.2vw, 2.25rem); line-height: 1.08; letter-spacing: -0.02em; }
.buy-title p { font-size: 15px; color: var(--text-muted); }
.odds-box { display: grid; gap: 14px; padding: var(--space-5); border-radius: var(--radius-lg); background: var(--bg); scroll-margin-top: calc(var(--header-h) + 16px); }
.odds-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.odds-head h2 { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.odds-head a { font-size: 13px; font-weight: 600; }
.odds-head a:hover { text-decoration: underline; text-underline-offset: 3px; }
.odds-box .odds { gap: 14px; }
.odds-foot { padding-top: 12px; border-top: 1px dashed var(--line); font-size: 12.5px; color: var(--text-muted); }
.odds-box:target { animation: odds-ping 1.6s var(--ease-out); }
@keyframes odds-ping { 0%, 40% { box-shadow: 0 0 0 2px var(--action); } 100% { box-shadow: 0 0 0 2px transparent; } }

.buy-row { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-4); }
.buy-field { display: grid; gap: 6px; }
.buy-label { font-size: 13px; color: var(--text-muted); }
.buy .stepper output { min-width: 96px; }
.buy-total { display: grid; justify-items: end; gap: 2px; }
.buy-total-num { display: inline-flex; align-items: baseline; gap: 6px; font-family: var(--font-display); font-weight: 800; font-size: 26px; line-height: 1.1; font-variant-numeric: tabular-nums; transition: color 0.3s; }
.buy-total-num small { font-family: var(--font-body); font-size: 13px; font-weight: 600; color: var(--text-muted); }
.buy-total-num.bump { animation: total-bump 0.4s var(--ease-spring); }
@keyframes total-bump { 40% { transform: scale(1.08); } }
.buy.is-short .buy-total-num { color: var(--warn); }

.buy-cta { display: grid; gap: var(--space-3); }
.buy-cta .btn svg.coin { width: 20px; height: 20px; }
.buy-cta .btn.swap-in { animation: cta-swap 0.45s var(--ease-spring); }
@keyframes cta-swap { from { transform: scale(0.94); opacity: 0.4; } }
.buy-short {
  display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--warn) 11%, transparent); border: 1px solid color-mix(in srgb, var(--warn) 32%, transparent);
  color: var(--warn); font-size: 14px; line-height: 1.45;
}
.buy-short svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.buy-short.nudge { animation: short-nudge 0.5s var(--ease-out); }
@keyframes short-nudge { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
.buy-short strong { font-weight: 600; }
.balance-line { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 6px; font-size: 14px; color: var(--text-muted); }
.balance-line strong { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.balance-line a { font-weight: 600; }
.balance-line a:hover { text-decoration: underline; text-underline-offset: 3px; }
.buy-notes { display: grid; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; color: var(--text-muted); }
.buy-notes li { display: flex; align-items: center; gap: 10px; }
.buy-notes svg { width: 18px; height: 18px; flex: none; color: var(--action); }
.buy-notes .seal-18 { min-width: 30px; height: 20px; padding: 0 5px; font-size: 11px; flex: none; }

/* ---------- sections below ---------- */
.pd-section { padding-top: clamp(64px, 8vw, 104px); }
.pd-section .section-head { margin-bottom: var(--space-8); }
.pd-section-last { padding-bottom: var(--section); }

/* top hits: the special illustrations, large, on lit plinths; the center one raised */
.pd-hits { margin-top: clamp(64px, 8vw, 104px); padding-block: clamp(56px, 7vw, 96px); background: var(--bg-deep); overflow: hidden; }
.pd-hits .section-head { margin-bottom: var(--space-6); }
.hits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 3vw, 48px); align-items: end; }
.hit { display: grid; justify-items: center; gap: var(--space-4); text-align: center; }
.hit-stage { position: relative; display: grid; place-items: center; width: 100%; padding: 40px 0 34px; }
.hit-stage::before {
  content: ""; position: absolute; left: 50%; top: 0; width: 120%; height: 100%; transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(ellipse 40% 55% at 50% 42%, color-mix(in srgb, var(--c, var(--action)) 18%, transparent), transparent 70%);
}
.hit-stage::after {
  content: ""; position: absolute; left: 50%; bottom: 10px; width: 64%; height: 28px; transform: translateX(-50%); border-radius: 50%; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.6), transparent 70%);
}
.hit-card {
  z-index: 1; width: min(100%, 220px); aspect-ratio: 5 / 7; border-radius: 5.6% / 4%;
  box-shadow: 0 32px 50px -20px rgba(0, 0, 0, 0.75), 0 0 70px -16px color-mix(in srgb, var(--c, var(--action)) 45%, transparent);
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0));
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
.hit-card.is-tilting { transition: transform 0.1s linear, box-shadow 0.5s var(--ease-out); }
.hit-card img { width: 100%; height: 100%; object-fit: cover; }
.hit-glare {
  position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; transition: opacity 0.3s;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, 0.32), transparent 45%);
}
.hit:hover .hit-card { --lift: -8px; box-shadow: 0 40px 60px -22px rgba(0, 0, 0, 0.8), 0 0 90px -12px color-mix(in srgb, var(--c, var(--action)) 60%, transparent); }
.hit:hover .hit-glare { opacity: 1; }
.hit-center .hit-card { width: min(100%, 260px); }
.hit-center .hit-stage { padding-bottom: 58px; }
.hit-caption { display: grid; justify-items: center; gap: 6px; }
.hit-caption h3 { font-size: 18px; font-weight: 600; }
.hit-meta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 6px; font-size: 13px; color: var(--text-muted); }

/* every card */
.pd-cards .section-head > div:first-child { max-width: none; }
.cards-head-side { display: grid; justify-items: end; gap: var(--space-3); }
.cards-count { font-size: 14px; color: var(--text-muted); }
.cards-count strong { color: var(--text); font-weight: 600; }
.pd-cards .card-grid { grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); }
.pd-cards .tcg { align-content: start; }
.pd-cards .tcg-info { justify-content: flex-start; }
.cards-more { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--space-3) var(--space-5); margin-top: var(--space-10); }
.cards-more p { font-size: 14px; color: var(--text-muted); }

/* recent pulls */
.pulls-box { display: flex; align-items: center; gap: var(--space-5); padding: 14px 18px; border-radius: var(--radius-lg); background: var(--bg-deep); overflow: hidden; }
.pulls-title { display: flex; align-items: center; gap: 10px; flex: none; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.pulls-box .marquee { flex: 1; min-width: 0; --marquee-speed: 40s; }
.pulls-box .pull { background: var(--bg-card); }

/* more packs */
.more-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.more-grid > li { display: grid; }

/* odds note */
.odds-note { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-5) var(--space-8); padding: var(--space-6) var(--space-8); border-radius: var(--radius-xl); background: var(--bg-card); }
.odds-note-icon { display: grid; place-items: center; width: 52px; height: 52px; flex: none; border-radius: 16px; background: var(--ink); color: var(--action); }
.odds-note-icon svg { width: 26px; height: 26px; }
.odds-note-copy { display: grid; gap: 6px; flex: 1 1 380px; }
.odds-note-copy h2 { font-size: var(--text-h3); font-weight: 600; }
.odds-note-copy p { color: var(--text-muted); font-size: 15px; max-width: 680px; }

/* ---------- sticky buy bar (phones) ---------- */
.buy-bar { display: none; }

/* ---------- touch: no hover, so the pack peeks on its own ---------- */
@media (hover: none) {
  .hint-mouse { display: none; }
  .hint-touch { display: inline; }
  .stage:not(.is-opening):not(.is-open) .stage-strip { animation: stage-peek-strip 5s var(--ease-out) infinite 1.4s; }
  .stage:not(.is-opening):not(.is-open) .stage-body { animation: stage-peek-body 5s var(--ease-out) infinite 1.4s; }
  .stage:not(.is-opening):not(.is-open) .stage-peek { animation: stage-peek-card 5s var(--ease-out) infinite 1.4s; }
  .stage:not(.is-opening):not(.is-open) .stage-light { animation: stage-peek-light 5s var(--ease-out) infinite 1.4s; }
}
@keyframes stage-peek-strip { 0%, 55%, 100% { transform: none; } 65%, 88% { transform: translate(12px, -18px) rotate(9deg); } }
@keyframes stage-peek-body { 0%, 55%, 100% { transform: none; } 65%, 88% { transform: translateY(5px); } }
@keyframes stage-peek-card { 0%, 55%, 100% { transform: translateX(-50%); } 67%, 88% { transform: translate(-50%, -13%); } }
@keyframes stage-peek-light { 0%, 55%, 100% { opacity: 0; } 65%, 88% { opacity: 0.8; } }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .more-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .pd-hero { grid-template-columns: minmax(0, 1fr); }
  .buy { max-width: 640px; }
}
@media (max-width: 760px) {
  .pd { padding-top: var(--space-4); }
  .pd-hero { margin-top: var(--space-4); }
  .stage { --stage-h: 420px; border-radius: 22px; }
  .stage-top { top: 12px; left: 12px; right: 12px; }
  .stage-hint { bottom: 12px; }
  .open-result { padding: var(--space-5); }
  .open-result-actions { width: 100%; }
  .open-result-actions .btn { flex: 1 1 auto; }
  .buy { padding: var(--space-5); gap: var(--space-5); }
  .odds-box { padding: var(--space-4); }
  .cards-head-side { width: 100%; grid-template-columns: minmax(0, 1fr); justify-items: stretch; }
  .pd-cards .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 10px; }
  .pd-cards .tcg-name { font-size: 13px; }
  .pd-cards .tcg-info { min-width: 0; }
  .pd-cards .rarity { display: block; max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 11px; }
  .pd-cards .rarity::before { display: inline-block; margin-right: 5px; vertical-align: 1px; }
  .hits { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); gap: var(--space-4); }
  .hits::-webkit-scrollbar { display: none; }
  .hit { flex: 0 0 70%; scroll-snap-align: center; }
  .hit-center { order: -1; }
  .hit-center .hit-stage { padding-bottom: 30px; }
  .pulls-box { flex-direction: column; align-items: stretch; gap: var(--space-3); padding: 14px 0; border-radius: 0; margin-inline: calc(var(--gutter) * -1); }
  .pulls-title { padding-inline: var(--gutter); }
  .pulls-box .marquee { -webkit-mask-image: none; mask-image: none; }
  .odds-note { padding: var(--space-5); }

  body.has-buybar { padding-bottom: calc(68px + 72px + env(safe-area-inset-bottom)); }
  body.has-buybar .toast { bottom: calc(150px + env(safe-area-inset-bottom)); }
  .buy-bar {
    position: fixed; left: 0; right: 0; bottom: calc(64px + env(safe-area-inset-bottom)); z-index: 44;
    display: flex; align-items: center; gap: var(--space-3); padding: 10px var(--gutter);
    background: rgba(20, 22, 30, 0.95); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-top: 1px solid var(--line);
    transition: transform 0.4s var(--ease-out), opacity 0.3s;
  }
  .buy-bar.is-hidden { transform: translateY(110%); opacity: 0; pointer-events: none; }
  .buy-bar-info { display: grid; min-width: 0; line-height: 1.3; }
  .buy-bar-name { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .buy-bar-sub { font-size: 12px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .buy-bar .btn { margin-left: auto; flex: none; padding-inline: 18px; }
}
@media (max-width: 400px) {
  .buy-row { flex-wrap: wrap; }
}
@media (max-width: 360px) {
  .buy-bar-info { display: none; }
  .buy-bar .btn { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .stage-cone, .stage-float, .stage-pedestal::before, .stage-pedestal::after, .reveal-halo::before, .reveal-rays { animation: none !important; }
}
