:root {
  --bg-page: #181D25;
  --bg-card: #212732;
  --bg-card-2: #262E3B;
  --border-line: #2F3744;
  --bn-yellow: #FCD535;
  --bn-gold: #F0B90B;
  --usdt-teal: #26A17B;
  --bn-green: #0ECB81;
  --bn-red: #F6465D;
  --text-main: #EAECEF;
  --text-sub: #848E9C;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: #0D1117;
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

.hidden { display: none !important; }

.desktop-backdrop {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 50% 25%, #1E2530 0%, #090C10 80%);
  pointer-events: none;
}

.app-shell {
  position: relative;
  width: 100%;
  height: 100dvh;
  margin: 0 auto;
  background: var(--bg-page);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Light Theme (Binance App Day Mode matching video recordings) */
.app-shell.theme-light {
  --bg-page: #FFFFFF;
  --bg-card: #F5F6F8;
  --bg-card-2: #EAECEF;
  --border-line: #EAECEF;
  --text-main: #1E2329;
  --text-sub: #707A8A;
  color: #1E2329;
}

.app-shell.theme-light .slab-case {
  background: linear-gradient(160deg, #F1F5F9, #E2E8F0);
  border-color: #CBD5E1;
}

.app-shell.theme-light .pack-strip-item.active {
  background: #F5F6F8;
  border-color: #E2E6EC;
}

.app-shell.theme-light .pool-search-input {
  background: #F5F6F8;
  color: #1E2329;
}

.app-shell.theme-light .qty-stepper {
  background: #F5F6F8;
}

.app-shell.theme-light .balance-pill {
  background: #FFF9DF;
  border-color: #F5E199;
}

.app-shell.theme-light .slide-open-track {
  background: #FFF6CC;
}
.app-shell.theme-light .slide-open-track.is-insufficient {
  background: #F0F1F4;
}
.app-shell.theme-light .slide-open-label {
  color: #5C4E12;
}
.app-shell.theme-light .slide-open-track.is-insufficient .slide-open-label {
  color: #9AA3B2;
}
.app-shell.theme-light .lucky-bonus-banner {
  background: #F5F6F8;
}
.app-shell.theme-light .slab-tile {
  background: #FFFFFF;
  border-color: #E5E7EB;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}
.app-shell.theme-light .slab-tile-stage {
  background: radial-gradient(circle at 50% 42%, #F1F5F9 0%, #E2E8F0 100%);
}
.app-shell.theme-light .slab-tile-foot {
  background: #FFFFFF;
}
.app-shell.theme-light .slab-tile-foot .slab-foot-title {
  color: #1E2329;
}
.app-shell.theme-light .slab-tile-foot .slab-foot-price-row {
  color: #0F172A;
}
.app-shell.theme-light .pack-info-text {
  color: #474D57;
}
.app-shell.theme-light .bottom-sheet {
  background: #FFFFFF;
}
.app-shell.theme-light .fairness-box {
  background: #F5F6F8;
}

@media (min-width: 520px) {
  body {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 0;
  }
  .app-shell {
    max-width: 430px;
    height: min(912px, calc(100dvh - 24px));
    border-radius: 34px;
    border: 1px solid #303743;
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.78);
  }
}

/* Binance Top Notification Pill (✓ 授权 USDT 成功。 / ✓ 卖出成功...) */
.bn-top-banner {
  position: absolute;
  top: calc(10px + var(--safe-top));
  left: 14px;
  right: 54px;
  z-index: 95;
  background: #FFFFFF;
  color: #111827;
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  pointer-events: none;
  animation: bannerDrop 0.22s ease-out;
}

.bn-banner-check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #0ECB81;
  color: #FFF;
  font-size: 11px;
  font-weight: 900;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

@keyframes bannerDrop {
  from { transform: translateY(-16px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Top Header */
.app-header {
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(10px + var(--safe-top)) 14px 8px;
  background: var(--bg-page);
  z-index: 12;
}

.hdr-icon-btn {
  width: 34px;
  height: 34px;
  border: none;
  background: transparent;
  color: var(--text-main);
  display: grid;
  place-items: center;
  cursor: pointer;
  border-radius: 50%;
}
.hdr-icon-btn:active { background: rgba(255, 255, 255, 0.08); }

.hdr-title {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-align: center;
  pointer-events: none;
  white-space: nowrap;
}

.hdr-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Floating Binance Yellow Mascot Diamond */
.bn-mascot-fab {
  position: absolute;
  right: -4px;
  bottom: 68px;
  z-index: 25;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #FCD535, #E6A90A);
  border: none;
  border-radius: 8px;
  transform: rotate(45deg);
  display: grid;
  place-items: center;
  box-shadow: 0 4px 16px rgba(240, 185, 11, 0.4);
  cursor: pointer;
}
.mascot-face {
  transform: rotate(-45deg);
  color: #111;
  font-weight: 900;
  font-size: 14px;
  line-height: 1;
}

/* Main Scrollable Content */
.main-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: clip;
  padding: 2px 14px 20px;
  scrollbar-width: none;
}

.pack-img {
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}
.main-content::-webkit-scrollbar { display: none; }

.tab-view { display: none; flex-direction: column; gap: 14px; }
.tab-view.active { display: flex; }

/* Pack Strip Selector */
.pack-strip-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pack-strip {
  flex: 1;
  min-width: 0;
  display: flex;
  gap: 7px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  touch-action: pan-x;
  cursor: grab;
  user-select: none;
  padding: 2px 14px 2px 0;
  -webkit-mask-image: linear-gradient(to right, #000000 0%, #000000 88%, transparent 100%);
  mask-image: linear-gradient(to right, #000000 0%, #000000 88%, transparent 100%);
}
.pack-strip.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}
.pack-strip::-webkit-scrollbar { display: none; }

.pack-strip-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-sub);
  cursor: pointer;
  text-align: left;
  min-width: 96px;
}

.pack-strip-item.active {
  background: #272E3A;
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
}

.pack-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.hero-3d-host {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 2;
  touch-action: pan-y;
}

.hero-3d-canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
}

.stage-3d-host {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.stage-3d-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.pack-strip-thumb {
  width: 30px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pack-strip-thumb .foil-svg, .pack-strip-thumb .pack-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  -webkit-mask-image: linear-gradient(to bottom, #000000 58%, rgba(0, 0, 0, 0.45) 82%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000000 58%, rgba(0, 0, 0, 0.45) 82%, transparent 100%);
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.50));
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), filter 0.22s ease;
}
.pack-strip-item.active .pack-strip-thumb .pack-img {
  transform: scale(1.06);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.58));
}

.pack-strip-name { font-size: 13px; font-weight: 600; line-height: 1.2; }
.pack-strip-price { font-size: 11.5px; color: var(--text-sub); margin-top: 1px; }

.all-packs-btn {
  position: relative;
  z-index: 3;
  flex-shrink: 0;
  width: 34px;
  height: 42px;
  border: none;
  background: transparent;
  color: var(--text-main);
  display: grid;
  place-items: center;
  cursor: pointer;
}

/* First-Fold Full-Screen Hero Showcase + Metrics (Pushes Bonus & Records Strictly Below Fold) */
.gacha-first-fold {
  min-height: calc(100dvh - 266px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-bottom: 24px;
}

/* Central Pack Stage (1:1 Proportions + Full-Width Ambient Halo + Clipped 3D Drop Viewport) */
.hero-pack-stage {
  position: relative;
  flex: 0 0 auto;
  min-height: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 0;
  overflow: visible;
  touch-action: pan-y;
  user-select: none;
  z-index: 1;
}

.hero-pack-drop-zone {
  position: relative;
  z-index: 2;
  width: 100%;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 64px 0 0;
  perspective: 920px;
  clip-path: inset(0 -120px -120px -120px);
  transition: transform 0.20s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.14s ease;
}
.hero-pack-drop-zone.is-swiping {
  transition: none;
}

.hero-ambient-aura {
  position: absolute;
  top: 52%;
  left: 50%;
  width: 560px;
  height: 510px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(
    ellipse 62% 56% at 50% 52%,
    rgba(214, 128, 76, 0.42) 0%,
    rgba(164, 86, 44, 0.25) 38%,
    rgba(92, 46, 24, 0.11) 66%,
    transparent 86%
  );
  filter: blur(46px);
  pointer-events: none;
  z-index: 0;
  transition: background 0.35s ease, transform 0.16s ease, opacity 0.2s ease;
}
.hero-pack-stage[data-theme="silver"] .hero-ambient-aura {
  background: radial-gradient(
    ellipse 62% 56% at 50% 52%,
    rgba(212, 224, 240, 0.35) 0%,
    rgba(148, 163, 184, 0.20) 38%,
    rgba(76, 88, 108, 0.09) 66%,
    transparent 86%
  );
}
.hero-pack-stage[data-theme="gold"] .hero-ambient-aura {
  background: radial-gradient(
    ellipse 62% 56% at 50% 52%,
    rgba(232, 180, 48, 0.42) 0%,
    rgba(176, 126, 24, 0.24) 38%,
    rgba(102, 72, 14, 0.10) 66%,
    transparent 86%
  );
}
.hero-pack-stage[data-theme="lucky"] .hero-ambient-aura {
  background: radial-gradient(
    ellipse 62% 56% at 50% 52%,
    rgba(214, 178, 44, 0.42) 0%,
    rgba(154, 126, 26, 0.25) 38%,
    rgba(92, 74, 16, 0.12) 66%,
    transparent 86%
  );
}

.hero-pack-stage.is-aura-pulse .hero-ambient-aura {
  animation: heroAuraBloom 0.90s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes heroAuraBloom {
  0% { transform: translate(-50%, -50%) scale(0.84); opacity: 0.48; }
  48% { transform: translate(-50%, -50%) scale(1.06); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 0.96; }
}

.hero-pack-stack {
  position: relative;
  width: 196px;
  height: 300px;
  z-index: 2;
  transform-style: preserve-3d;
  will-change: transform, opacity;
  animation: heroPackFloat 3.4s ease-in-out infinite;
  transition: transform 0.12s ease-out;
}

.hero-pack-stack.is-entering {
  animation:
    heroPackDropBounce 0.92s linear forwards,
    heroPackFloat 3.4s ease-in-out 0.92s infinite;
}

.hero-pack-stack.is-sliding-right {
  animation:
    heroSlideInFromRight 0.28s cubic-bezier(0.22, 1, 0.36, 1) forwards,
    heroPackFloat 3.4s ease-in-out 0.28s infinite;
}

.hero-pack-stack.is-sliding-left {
  animation:
    heroSlideInFromLeft 0.28s cubic-bezier(0.22, 1, 0.36, 1) forwards,
    heroPackFloat 3.4s ease-in-out 0.28s infinite;
}

@keyframes heroSlideInFromRight {
  0% { transform: translate3d(130px, 0px, 0); opacity: 0; }
  100% { transform: translate3d(0px, 0px, 0); opacity: 1; }
}

@keyframes heroSlideInFromLeft {
  0% { transform: translate3d(-130px, 0px, 0); opacity: 0; }
  100% { transform: translate3d(0px, 0px, 0); opacity: 1; }
}

@keyframes heroPackDropBounce {
  0%   { transform: translate3d(-8px, -162px, 0) rotateZ(-6.0deg) rotateX(10deg) rotateY(-6deg); opacity: 0; }
  7%   { transform: translate3d(-6.5px, -112px, 0) rotateZ(-5.2deg) rotateX(8deg) rotateY(-5deg); opacity: 1; }
  17%  { transform: translate3d(-4.2px, -54px, 0) rotateZ(-3.9deg) rotateX(5.2deg) rotateY(-3.4deg); opacity: 1; }
  29%  { transform: translate3d(-2.0px, -12px, 0) rotateZ(-2.5deg) rotateX(2.6deg) rotateY(-1.8deg); opacity: 1; }
  44%  { transform: translate3d(-0.6px, 7px, 0) rotateZ(-1.4deg) rotateX(0.8deg) rotateY(-0.7deg); opacity: 1; }
  62%  { transform: translate3d(-0.4px, 6.5px, 0) rotateZ(-1.2deg) rotateX(0.6deg) rotateY(-0.5deg); opacity: 1; }
  78%  { transform: translate3d(-0.1px, 2.2px, 0) rotateZ(-0.45deg) rotateX(0.2deg) rotateY(-0.15deg); opacity: 1; }
  90%  { transform: translate3d(0px, 0.4px, 0) rotateZ(-0.1deg) rotateX(0deg) rotateY(0deg); opacity: 1; }
  100% { transform: translate3d(0px, 0px, 0) rotateZ(0deg) rotateX(0deg) rotateY(0deg); opacity: 1; }
}

.hero-pack-stage.is-charging .hero-ambient-aura {
  transform: translate(-50%, -50%) scale(calc(1 + var(--charge, 0) * 0.28));
  opacity: calc(0.82 + var(--charge, 0) * 0.18);
}

.pack-layer-shake {
  width: 100%;
  height: 100%;
  transform-origin: center center;
}

.hero-pack-stage.is-charging .pack-layer--front .pack-layer-shake {
  animation: heroPackChargeShake 0.09s linear infinite;
}

.hero-pack-stage.is-burst-charge .pack-layer--front .pack-layer-shake {
  animation: heroPackBurstShake 0.06s linear infinite;
}

@keyframes heroPackChargeShake {
  0% { transform: translate(-1.5px, 1px) scale(calc(1 + var(--charge, 0) * 0.04)) rotate(-0.8deg); }
  50% { transform: translate(1.5px, -1px) scale(calc(1 + var(--charge, 0) * 0.04)) rotate(0.8deg); }
  100% { transform: translate(-1.5px, 1px) scale(calc(1 + var(--charge, 0) * 0.04)) rotate(-0.8deg); }
}

@keyframes heroPackBurstShake {
  0% { transform: translate(-3.5px, 2px) scale(1.06) rotate(-1.8deg); }
  25% { transform: translate(3.5px, -2px) scale(1.07) rotate(1.8deg); }
  50% { transform: translate(-3px, -2px) scale(1.06) rotate(-1.4deg); }
  75% { transform: translate(3px, 2px) scale(1.07) rotate(1.4deg); }
  100% { transform: translate(-3.5px, 2px) scale(1.06) rotate(-1.8deg); }
}

@keyframes heroPackFloat {
  0%, 100% { transform: translate3d(0px, 0px, 0); }
  50% { transform: translate3d(0px, -7px, 0); }
}

.pack-layer {
  position: absolute;
  inset: 0;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s;
}
.pack-layer .foil-svg,
.pack-layer .pack-img {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.6));
}

/* Contour-Masked Metallic Pack Light Sweep (扫光动画) */
.pack-sheen-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  mix-blend-mode: screen;
}

.pack-sheen-layer::before {
  content: "";
  position: absolute;
  inset: -45%;
  background: linear-gradient(
    116deg,
    transparent 26%,
    rgba(255, 255, 255, 0.03) 36%,
    rgba(255, 250, 236, 0.16) 46%,
    rgba(255, 255, 255, 0.28) 50%,
    rgba(255, 250, 236, 0.16) 54%,
    rgba(255, 255, 255, 0.03) 64%,
    transparent 74%
  );
  filter: blur(4px);
  transform: translateX(-115%);
  animation: packContourSheen 8.4s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

.pack-sheen-layer--mini {
  width: 104px;
  height: 152px;
  inset: auto;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.pack-sheen-layer--mini::before {
  opacity: 0.72;
  animation-duration: 9.6s;
}

.hero-pack-stage[data-theme="lucky"] .pack-sheen-layer::before {
  background: linear-gradient(
    116deg,
    transparent 26%,
    rgba(252, 213, 53, 0.04) 36%,
    rgba(255, 236, 158, 0.16) 46%,
    rgba(255, 252, 232, 0.28) 50%,
    rgba(252, 213, 53, 0.14) 54%,
    rgba(252, 213, 53, 0.03) 64%,
    transparent 74%
  );
}

.hero-pack-stage.is-charging .pack-sheen-layer::before {
  animation-duration: 2.2s;
  filter: blur(3px) brightness(1.35);
}

@keyframes packContourSheen {
  0% { transform: translateX(-115%); opacity: 0; }
  6% { opacity: 0.92; }
  36% { transform: translateX(115%); opacity: 0.92; }
  42%, 52% { transform: translateX(115%); opacity: 0; }
  58% { transform: translateX(115%); opacity: 0.72; }
  88% { transform: translateX(-115%); opacity: 0.72; }
  94%, 100% { transform: translateX(-115%); opacity: 0; }
}

.hero-pack-reflection {
  position: relative;
  width: 196px;
  height: 58px;
  margin-top: 12px;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
  will-change: transform, opacity;
  animation: heroReflectFloat 3.4s ease-in-out infinite;
  -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.56) 0%,
    rgba(0, 0, 0, 0.28) 38%,
    rgba(0, 0, 0, 0.08) 72%,
    rgba(0, 0, 0, 0) 100%
  );
  mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.56) 0%,
    rgba(0, 0, 0, 0.28) 38%,
    rgba(0, 0, 0, 0.08) 72%,
    rgba(0, 0, 0, 0) 100%
  );
}

.hero-pack-reflection::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  height: 8px;
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.42), transparent 72%);
  z-index: 2;
}

.pack-reflection-img {
  position: absolute;
  top: -4px;
  left: 0;
  width: 196px;
  height: 300px;
  object-fit: contain;
  transform: scaleY(-1);
  transform-origin: 50% 50%;
  filter: blur(1.1px) brightness(0.96);
  opacity: 0.78;
  display: block;
}

.hero-pack-reflection.is-entering {
  animation:
    heroReflectEnter 0.92s linear forwards,
    heroReflectFloat 3.4s ease-in-out 0.92s infinite;
}

.hero-pack-reflection.is-sliding-right {
  animation:
    heroSlideInFromRight 0.28s cubic-bezier(0.22, 1, 0.36, 1) forwards,
    heroReflectFloat 3.4s ease-in-out 0.28s infinite;
}

.hero-pack-reflection.is-sliding-left {
  animation:
    heroSlideInFromLeft 0.28s cubic-bezier(0.22, 1, 0.36, 1) forwards,
    heroReflectFloat 3.4s ease-in-out 0.28s infinite;
}

@keyframes heroReflectEnter {
  0%, 16% { transform: translate3d(5px, 34px, 0) rotateZ(4.2deg); opacity: 0; }
  32%     { transform: translate3d(1.8px, 10px, 0) rotateZ(2.2deg); opacity: 0.56; }
  44%     { transform: translate3d(0.4px, -5px, 0) rotateZ(1.2deg); opacity: 0.96; }
  62%     { transform: translate3d(0.3px, -4.5px, 0) rotateZ(1.0deg); opacity: 0.94; }
  80%     { transform: translate3d(0.1px, -1.4px, 0) rotateZ(0.35deg); opacity: 0.90; }
  100%    { transform: translate3d(0px, 0px, 0) rotateZ(0deg); opacity: 0.88; }
}

@keyframes heroReflectFloat {
  0%, 100% { transform: translate3d(0px, 0px, 0); opacity: 0.88; }
  50% { transform: translate3d(0px, 5.5px, 0); opacity: 0.68; }
}

/* 3-Column Core Metrics */
.metrics-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
  margin-top: 40px;
  padding: 4px 4px 6px;
}

.metric-col {
  position: relative;
  padding: 0 4px;
}

.metric-col + .metric-col::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16%;
  bottom: 16%;
  width: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.metric-val {
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: -0.2px;
  color: var(--text-main);
  font-variant-numeric: tabular-nums;
}

.metric-lbl {
  font-size: 11.5px;
  color: #7C8594;
  margin-top: 5px;
}

.metric-lbl-dashed {
  background: transparent;
  border: none;
  border-bottom: 1px dashed var(--text-sub);
  padding: 0;
  cursor: pointer;
}

/* Lucky Pikachu Bonus Banner */
.lucky-bonus-banner {
  background: #232934;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
}

.lucky-mini-pack {
  width: 34px;
  height: 52px;
  flex-shrink: 0;
}
.lucky-mini-pack .foil-svg { width: 100%; height: 100%; }

.lucky-banner-title { font-size: 14px; font-weight: 700; color: var(--text-main); }
.lucky-banner-sub { font-size: 12px; font-weight: 600; color: var(--bn-yellow); margin-top: 2px; }

/* Sections Below Fold */
.section-block {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.block-title {
  font-size: 15px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.info-circle {
  display: inline-grid;
  place-items: center;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 1px solid var(--text-sub);
  font-style: normal;
  font-size: 10px;
  color: var(--text-sub);
}

.block-chevron { font-size: 18px; color: var(--text-sub); }

.recent-pulls-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.recent-pull-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 0;
  cursor: pointer;
}

.recent-pull-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.recent-pull-thumb {
  width: 32px;
  height: 44px;
  border-radius: 4px;
  object-fit: cover;
  background: #12161C;
  flex-shrink: 0;
}

.recent-pull-name {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.t-icon {
  display: inline-grid;
  place-items: center;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--usdt-teal);
  color: #FFF;
  font-style: normal;
  font-size: 9px;
  font-weight: 900;
  vertical-align: middle;
}

.usdt-pill-inline {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.pack-info-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: #C2C8D1;
}

.provider-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-sub);
}

.renaiss-brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-main);
  font-size: 14px;
}

.renaiss-cube {
  width: 14px;
  height: 16px;
  border-radius: 3px;
  border: 2.5px solid transparent;
  background:
    linear-gradient(var(--bg-page), var(--bg-page)) padding-box,
    linear-gradient(135deg, #22D3EE, #A855F7, #FCD535, #10B981) border-box;
}

.demo-disclaimer {
  font-size: 10.5px;
  color: var(--text-sub);
  opacity: 0.78;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  padding: 6px 8px;
}

/* Included Cards + Tier Gems */
.included-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-line);
  padding-bottom: 8px;
}

.included-tab-active {
  position: relative;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
}
.included-tab-active::after {
  content: "";
  position: absolute;
  left: 25%;
  right: 25%;
  bottom: -9px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--bn-yellow);
}

.pool-count-pill {
  font-size: 11px;
  color: var(--text-sub);
}

.tier-filter-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.tier-filter-strip::-webkit-scrollbar { display: none; }

.tier-filter-card {
  flex-shrink: 0;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 9px 11px;
  text-align: left;
  color: var(--text-sub);
  cursor: pointer;
  min-width: 122px;
}

.tier-filter-card.active {
  background: #1E242F;
  border-color: rgba(255, 255, 255, 0.07);
  color: var(--text-main);
}

.tier-card-top {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-main);
}

.tier-gem-svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  display: block;
}
.tier-gem-S { filter: drop-shadow(0 1px 4px rgba(252, 213, 53, 0.48)); }
.tier-gem-A { filter: drop-shadow(0 1px 4px rgba(168, 85, 247, 0.48)); }
.tier-gem-B { filter: drop-shadow(0 1px 4px rgba(59, 130, 246, 0.48)); }
.tier-gem-C { filter: drop-shadow(0 1px 4px rgba(45, 212, 191, 0.45)); }

.gem-dot {
  width: 10px;
  height: 10px;
  transform: rotate(45deg);
  border-radius: 2px;
  display: inline-block;
}
.gem-S { background: linear-gradient(135deg, #FCD535, #D97706); }
.gem-A { background: linear-gradient(135deg, #C084FC, #7E22CE); }
.gem-B { background: linear-gradient(135deg, #60A5FA, #1D4ED8); }
.gem-C { background: linear-gradient(135deg, #5EEAD4, #0F766E); }

.tier-card-sub {
  font-size: 11px;
  color: var(--text-sub);
  margin-top: 5px;
  font-variant-numeric: tabular-nums;
}

.pool-search-input {
  width: 100%;
  background: #12161C;
  border: 1px solid var(--border-line);
  border-radius: 10px;
  padding: 8px 11px;
  color: var(--text-main);
  font-size: 12.5px;
  outline: none;
}
.pool-search-input:focus { border-color: var(--bn-yellow); }

/* 2-Col Graded Slab Showcase Grid (1:1 Museum Bay + External Dark Footer) */
.slab-grid-2col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.slab-grid-2col .slab-case {
  --holo-op: 0.14;
  --tilt-p: 0.06;
}

.slab-grid-2col .holo-sunpillar {
  opacity: 0.09 !important;
  filter: brightness(0.55) contrast(1.12) saturate(1.10) !important;
}

.slab-grid-2col .holo-etch {
  opacity: 0.03 !important;
}

.slab-grid-2col .holo-beam {
  opacity: 0.10 !important;
}

.slab-grid-2col .holo-glare {
  opacity: 0.14 !important;
}

.slab-tile {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #1B212C;
  border: 1px solid rgba(255, 255, 255, 0.045);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
  cursor: pointer;
}

.slab-tile-stage {
  background: radial-gradient(circle at 50% 42%, #131822 0%, #0A0D12 100%);
  padding: 16px 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slab-tile--compact .slab-tile-stage {
  padding: 10px 0 9px;
}

.slab-case--tile {
  width: 108px;
  aspect-ratio: 600 / 1012;
  flex-shrink: 0;
  border-radius: 7px;
  box-shadow:
    0 10px 22px rgba(0, 0, 0, 0.62),
    0 0 0 1px rgba(242, 248, 255, 0.34) !important;
}

.slab-tile--compact .slab-case--tile {
  width: 96px;
}

.slab-case--tile .slab-studio-backing {
  border-radius: 5px;
}

.slab-case--tile .slab-top-label--studio {
  padding: 2px 3px !important;
  border-width: 1.5px !important;
  border-radius: 2px;
}

.slab-case--tile .slab-label-row {
  gap: 2px;
}

.slab-case--tile .slab-label-line1 {
  font-size: 3.8px;
  line-height: 1.15;
}

.slab-case--tile .slab-label-line2 {
  font-size: 4.3px;
  line-height: 1.15;
}

.slab-case--tile .slab-label-line3 {
  font-size: 3.4px;
  line-height: 1.15;
}

.slab-case--tile .slab-grade-txt {
  font-size: 3.6px;
}

.slab-case--tile .slab-grade-val {
  font-size: 6.4px;
}

.slab-case--tile .slab-label-bottom {
  margin-top: 1px;
  gap: 2px;
}

.slab-case--tile .slab-barcode-svg {
  width: 24px;
  height: 5px;
}

.slab-case--tile .slab-psa-logo {
  font-size: 4.8px;
}

.slab-case--tile .slab-cert-num {
  font-size: 3.8px;
}

.slab-case--tile .slab-card-slot--studio {
  border-radius: 3px !important;
}

.slab-tile-foot {
  background: #1B212C;
  padding: 10px 11px 11px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.slab-tile-foot .slab-foot-title {
  font-size: 13px;
  font-weight: 600;
  color: #EAECEF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.slab-tile-foot .slab-foot-price-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 0;
  font-size: 13.5px;
  font-weight: 700;
  color: #FFFFFF;
}

.slab-tile-foot .slab-gain-pos {
  font-size: 12px;
  font-weight: 600;
  color: #2EBD85;
}

.slab-tile-foot .slab-gain-neg {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-sub);
}

/* 3D Thick Polycarbonate Acrylic Graded Slab & Angle-Reactive Laser Holo */
.slab-case {
  position: relative;
  min-width: 0;
  background: linear-gradient(
    145deg,
    rgba(244, 248, 255, 0.54) 0%,
    rgba(212, 226, 244, 0.34) 38%,
    rgba(255, 255, 255, 0.48) 72%,
    rgba(196, 212, 232, 0.40) 100%
  );
  border: 2px solid rgba(245, 250, 255, 0.72);
  border-radius: 11px;
  padding: 7px;
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.50),
    inset 0 2px 4px rgba(255, 255, 255, 0.82),
    inset 0 -3px 5px rgba(15, 23, 42, 0.42),
    inset 2px 0 4px rgba(255, 255, 255, 0.48),
    inset -2px 0 4px rgba(15, 23, 42, 0.32);
  overflow: hidden;
  cursor: pointer;
}

.slab-back-photo-wrap {
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.58),
    0 0 0 1px rgba(242, 248, 255, 0.48) !important;
  border-radius: 10px;
}

.slab-back-photo-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 10px;
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.54),
    inset 0 2px 10px rgba(242, 248, 255, 0.24);
  pointer-events: none;
  z-index: 4;
}

.slab-back-photo-img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
  pointer-events: none;
  filter: brightness(1.15) contrast(1.02);
}

.slab-back-cert-overlay {
  position: absolute;
  top: 16.5%;
  right: 10.6%;
  height: 2.9%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.4px;
  color: #1F2937;
  z-index: 3;
  pointer-events: none;
}

/* Studio-sculpted 600x1012 Front Polycarbonate Slab Wrapper matching Back 1:1 */
.slab-case--studio {
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  box-shadow:
    0 22px 48px rgba(0, 0, 0, 0.60),
    0 0 0 1px rgba(242, 248, 255, 0.54),
    inset 0 1px 2px rgba(255, 255, 255, 0.62) !important;
  border-radius: 10px;
}

.slab-studio-backing {
  position: absolute;
  inset: 2%;
  border-radius: 8px;
  background: linear-gradient(
    155deg,
    rgba(228, 238, 250, 0.36) 0%,
    rgba(152, 170, 194, 0.28) 48%,
    rgba(210, 224, 240, 0.34) 100%
  ), #3B4657;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.44);
  z-index: 1;
}

.slab-top-label--studio {
  position: absolute !important;
  left: 7.4%;
  right: 7.4%;
  top: 4.5%;
  height: 15.2%;
  margin: 0 !important;
  padding: 4px 6px !important;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 2;
}

.slab-card-slot--studio {
  position: absolute !important;
  left: 11.4%;
  right: 11.1%;
  top: 27.4%;
  bottom: 8.3%;
  width: auto !important;
  aspect-ratio: auto !important;
  border-radius: 6px !important;
  z-index: 2;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.78);
}

.slab-shell-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  filter: brightness(1.38) contrast(1.04) drop-shadow(0 0 1px rgba(255, 255, 255, 0.35));
  pointer-events: none;
  z-index: 5;
}

.slab-reveal-sheen {
  position: absolute;
  inset: -12% -60%;
  pointer-events: none;
  z-index: 7;
  opacity: 0;
  background: linear-gradient(
    124deg,
    transparent 34%,
    rgba(255, 255, 255, 0.18) 43%,
    rgba(255, 255, 255, 0.88) 49.5%,
    rgba(255, 255, 255, 0.96) 51%,
    rgba(255, 255, 255, 0.24) 57%,
    transparent 66%
  );
  mix-blend-mode: screen;
  transform: translate3d(-115%, 0, 0);
}

.slab-case--studio.is-reveal-sweeping .slab-reveal-sheen {
  animation: slabRevealSweep 0.62s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes slabRevealSweep {
  0% {
    opacity: 0;
    transform: translate3d(-115%, 0, 0);
  }
  18% {
    opacity: 0.95;
  }
  78% {
    opacity: 0.88;
  }
  100% {
    opacity: 0;
    transform: translate3d(120%, 0, 0);
  }
}

.slab-acrylic-gloss {
  position: absolute;
  inset: 0;
  border-radius: 10px;
  background: linear-gradient(
    calc(var(--holo-angle, 120deg) - 18deg),
    transparent 24%,
    rgba(255, 255, 255, 0.05) 41%,
    rgba(255, 255, 255, 0.20) 48%,
    rgba(255, 255, 255, 0.05) 55%,
    transparent 74%
  );
  background-size: 220% 220%;
  background-position: var(--holo-x, 50%) var(--holo-y, 50%);
  mix-blend-mode: screen;
  opacity: calc(var(--holo-op, 0.20) * 0.50);
  pointer-events: none;
  z-index: 6;
}

.slab-acrylic-bevel {
  position: absolute;
  inset: 3px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.28);
  pointer-events: none;
  z-index: 4;
}

/* =========================================================
   Refined Optical Laser Holo Foil (Subtle at Rest, Rich on Tilt)
   ========================================================= */
.holo-sunpillar,
.holo-etch,
.holo-beam,
.holo-glare {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  border-radius: inherit;
}

.holo-sunpillar {
  background-image:
    repeating-linear-gradient(
      118deg,
      rgba(255, 68, 108, 0.32) 0%,
      rgba(252, 211, 77, 0.33) 14%,
      rgba(52, 211, 153, 0.30) 28%,
      rgba(56, 189, 248, 0.36) 42%,
      rgba(168, 85, 247, 0.34) 56%,
      rgba(255, 68, 108, 0.32) 70%
    ),
    repeating-linear-gradient(
      -55deg,
      rgba(18, 26, 48, 0.58) 0%,
      rgba(170, 200, 222, 0.28) 5%,
      rgba(255, 255, 255, 0.36) 7%,
      rgba(170, 200, 222, 0.28) 9%,
      rgba(18, 26, 48, 0.58) 14%
    );
  background-size: 280% 280%, 200% 200%;
  background-position: var(--holo-x, 50%) var(--holo-y, 50%), calc(100% - var(--holo-x, 50%)) calc(100% - var(--holo-y, 50%));
  background-blend-mode: exclusion, color-dodge;
  mix-blend-mode: color-dodge;
  filter:
    brightness(calc(0.52 + var(--tilt-p, 0.10) * 0.26))
    contrast(1.22)
    saturate(1.18);
  opacity: calc(0.08 + var(--tilt-p, 0.08) * 0.38);
  transition: opacity 0.1s linear;
}

.holo-sunpillar[data-holo-level="ultra"] {
  filter:
    brightness(calc(0.56 + var(--tilt-p, 0.12) * 0.28))
    contrast(1.28)
    saturate(1.24);
  opacity: calc(0.11 + var(--tilt-p, 0.10) * 0.44);
}

.holo-etch {
  background-image:
    radial-gradient(circle at 18% 24%, rgba(255, 255, 255, 0.65) 0.7px, transparent 1.8px),
    radial-gradient(circle at 72% 48%, rgba(252, 213, 53, 0.62) 0.8px, transparent 1.9px),
    radial-gradient(circle at 38% 76%, rgba(56, 189, 248, 0.60) 0.8px, transparent 1.9px),
    radial-gradient(circle at 84% 82%, rgba(232, 121, 249, 0.58) 0.7px, transparent 1.8px),
    repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.0) 0px,
      rgba(255, 255, 255, 0.06) 2px,
      rgba(255, 255, 255, 0.0) 4px
    );
  background-size: 22px 22px, 28px 28px, 24px 24px, 32px 32px, 100% 100%;
  background-position:
    calc(100% - var(--holo-x, 50%)) calc(100% - var(--holo-y, 50%)),
    var(--holo-x, 50%) var(--holo-y, 50%),
    calc(var(--holo-x, 50%) * 0.6) calc(var(--holo-y, 50%) * 1.2),
    var(--holo-x, 50%) calc(100% - var(--holo-y, 50%)),
    0 0;
  mix-blend-mode: plus-lighter;
  opacity: calc(0.03 + var(--tilt-p, 0.08) * 0.22);
}

.holo-etch[data-holo-level="ultra"] {
  opacity: calc(0.05 + var(--tilt-p, 0.10) * 0.30);
}

.holo-beam {
  background: linear-gradient(
    var(--holo-angle, 125deg),
    transparent 16%,
    rgba(255, 110, 199, 0.14) 32%,
    rgba(255, 245, 165, 0.28) 44%,
    rgba(255, 255, 255, 0.42) 50%,
    rgba(96, 239, 255, 0.26) 56%,
    rgba(168, 85, 247, 0.14) 68%,
    transparent 84%
  );
  background-size: 260% 260%;
  background-position: var(--holo-x, 50%) var(--holo-y, 50%);
  mix-blend-mode: overlay;
  opacity: calc(0.08 + var(--tilt-p, 0.08) * 0.34);
}

.holo-glare {
  background: radial-gradient(
    circle at var(--holo-x, 50%) var(--holo-y, 50%),
    rgba(255, 255, 255, 0.32) 0%,
    rgba(255, 255, 255, 0.11) 26%,
    transparent 65%
  );
  mix-blend-mode: screen;
  opacity: calc(var(--holo-op, 0.20) * 0.46);
}

.holo-glare--subtle {
  opacity: calc(var(--holo-op, 0.16) * 0.24);
}

/* True 6-Sided 3D Thick Polycarbonate Acrylic Slab Box (Locked 600:1012 Physical PSA Proportions) */
.stage-slab-flip {
  position: absolute;
  left: 50%;
  width: 286px;
  height: 482px;
  z-index: 4;
  perspective: 1200px;
  transform-origin: center top;
  transition: top 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.stage-slab-flip.is-peeking {
  top: 71.2%;
  transform: translateX(-50%) scale(1);
}

.stage-slab-flip.is-peeking.is-rising {
  animation: slabRiseFromBottom 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.stage-slab-flip.is-peeking.beat-1 { top: 69.0%; }
.stage-slab-flip.is-peeking.beat-2 { top: 66.5%; }
.stage-slab-flip.is-peeking.beat-3 { top: 63.8%; transform: translateX(-50%) scale(1.01); }
.stage-slab-flip.is-peeking.beat-3.is-lightning-jolt {
  animation: slabLightningShake 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes slabLightningShake {
  0% { transform: translateX(-50%) scale(1.01); }
  14% { transform: translate(calc(-50% - 8px), -3px) scale(1.02) rotate(-1.4deg); }
  30% { transform: translate(calc(-50% + 7px), 3px) scale(1.02) rotate(1.3deg); }
  48% { transform: translate(calc(-50% - 5px), 2px) scale(1.015) rotate(-0.9deg); }
  68% { transform: translate(calc(-50% + 4px), -2px) scale(1.01) rotate(0.7deg); }
  100% { transform: translateX(-50%) scale(1.01) rotate(0deg); }
}

@keyframes slabRiseFromBottom {
  from { transform: translate(-50%, 88px) scale(0.96); opacity: 0; }
  to { transform: translate(-50%, 0) scale(1); opacity: 1; }
}

.stage-slab-flip.is-centered {
  top: 13.8%;
  transform: translateX(-50%) scale(0.86);
}

.detail-slab-3d-stage {
  width: 214px;
  height: 361px;
  aspect-ratio: 600 / 1012;
  flex-shrink: 0;
  margin: 20px auto 10px;
  perspective: 1100px;
}

.slab-float-wrap {
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  animation: slabHoverFloat 3.4s ease-in-out infinite;
}

.slab-float-wrap.is-dragging {
  animation-play-state: paused;
}

@keyframes slabHoverFloat {
  0%, 100% { transform: translateY(3px); }
  50% { transform: translateY(-7px); }
}

.stage-tier-aura {
  position: absolute;
  inset: -12% -20%;
  transform: none;
  border-radius: 0;
  pointer-events: none;
  z-index: 2;
}

.stage-tier-aura.aura-S {
  background:
    radial-gradient(ellipse 68% 58% at 50% 42%, rgba(252, 213, 53, 0.38) 0%, rgba(245, 158, 11, 0.14) 44%, transparent 74%);
  animation: pulseAura 2.6s ease-in-out infinite;
}

.stage-tier-aura.aura-A {
  background:
    radial-gradient(ellipse 68% 58% at 50% 44%, rgba(168, 85, 247, 0.42) 0%, rgba(147, 51, 234, 0.16) 44%, transparent 74%);
  animation: pulseAura 2.4s ease-in-out infinite;
}

.stage-tier-aura.aura-B {
  background:
    radial-gradient(ellipse 68% 58% at 50% 44%, rgba(56, 189, 248, 0.30) 0%, rgba(29, 78, 216, 0.12) 44%, transparent 74%);
}

.stage-tier-aura.aura-C {
  background:
    radial-gradient(ellipse 68% 58% at 50% 44%, rgba(77, 166, 200, 0.22) 0%, rgba(15, 118, 110, 0.08) 46%, transparent 74%);
}

@keyframes pulseAura {
  0%, 100% { transform: scale(0.98) translateY(0px); opacity: 0.78; }
  50% { transform: scale(1.04) translateY(-6px); opacity: 1; }
}

.stage-action-bar.is-entering {
  animation: actionBarSlideUp 0.36s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes actionBarSlideUp {
  from { transform: translateY(34px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* "请注意" Reminder Modal */
.stage-notice-overlay {
  position: absolute;
  inset: 0;
  z-index: 25;
  background: rgba(0, 0, 0, 0.58);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.stage-notice-card {
  width: 100%;
  max-width: 330px;
  background: #FFFFFF;
  color: #1E2329;
  border-radius: 16px;
  padding: 20px 18px 16px;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.45);
}

.notice-title { font-size: 16px; font-weight: 800; margin-bottom: 10px; }
.notice-body { font-size: 13.5px; line-height: 1.5; color: #474D57; margin-bottom: 14px; }
.notice-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: #474D57;
  margin-bottom: 16px;
  cursor: pointer;
}
.notice-btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.notice-btn-keep {
  height: 42px; border-radius: 10px; border: 1px solid #E5E7EB;
  background: #F5F6F8; color: #1E2329; font-size: 14px; font-weight: 700; cursor: pointer;
}
.notice-btn-sell {
  height: 42px; border-radius: 10px; border: none;
  background: var(--bn-yellow); color: #111; font-size: 14px; font-weight: 800; cursor: pointer;
}

.slab-3d-box {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  will-change: transform;
  contain: layout style;
  touch-action: none;
  user-select: none;
  cursor: grab;
}

.slab-3d-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  will-change: transform;
  border-radius: 11px;
}

/* Pure GPU-composited holo foil during 60fps 3D spin (zero per-frame gradient repaint or blur filter) */
.slab-3d-box .slab-shell-overlay {
  filter: brightness(1.30) contrast(1.03);
}

.slab-3d-box .holo-sunpillar {
  inset: -45%;
  border-radius: 0;
  background-image:
    repeating-linear-gradient(
      118deg,
      rgba(255, 68, 108, 0.30) 0%,
      rgba(252, 211, 77, 0.31) 14%,
      rgba(52, 211, 153, 0.28) 28%,
      rgba(56, 189, 248, 0.34) 42%,
      rgba(168, 85, 247, 0.32) 56%,
      rgba(255, 68, 108, 0.30) 70%
    );
  background-size: 100% 100%;
  background-position: 50% 50%;
  filter: none;
  mix-blend-mode: color-dodge;
  transition: none;
  transform: translate3d(var(--holo-tx, 0px), var(--holo-ty, 0px), 0);
  will-change: transform, opacity;
  opacity: calc(0.10 + var(--tilt-p, 0.08) * 0.42);
}

.slab-3d-box .holo-etch {
  inset: -40%;
  border-radius: 0;
  background-position: 0 0;
  transform: translate3d(calc(var(--holo-tx, 0px) * -0.55), calc(var(--holo-ty, 0px) * -0.55), 0);
  will-change: transform, opacity;
}

.slab-3d-box .holo-beam {
  inset: -50%;
  border-radius: 0;
  background: linear-gradient(
    125deg,
    transparent 24%,
    rgba(255, 110, 199, 0.14) 36%,
    rgba(255, 245, 165, 0.28) 46%,
    rgba(255, 255, 255, 0.40) 50%,
    rgba(96, 239, 255, 0.24) 56%,
    transparent 74%
  );
  background-size: 100% 100%;
  background-position: 50% 50%;
  transform: translate3d(calc(var(--holo-tx, 0px) * 1.15), calc(var(--holo-ty, 0px) * 0.9), 0);
  will-change: transform, opacity;
}

.slab-3d-box .holo-glare {
  inset: -45%;
  border-radius: 0;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(255, 255, 255, 0.32) 0%,
    rgba(255, 255, 255, 0.10) 26%,
    transparent 62%
  );
  transform: translate3d(calc(var(--holo-tx, 0px) * 0.85), calc(var(--holo-ty, 0px) * 0.85), 0);
  will-change: transform, opacity;
}

.slab-3d-box .slab-acrylic-gloss {
  inset: -40%;
  background: linear-gradient(
    112deg,
    transparent 30%,
    rgba(255, 255, 255, 0.06) 44%,
    rgba(255, 255, 255, 0.18) 50%,
    rgba(255, 255, 255, 0.06) 56%,
    transparent 70%
  );
  background-size: 100% 100%;
  background-position: 50% 50%;
  transform: translate3d(calc(var(--holo-tx, 0px) * 0.7), calc(var(--holo-ty, 0px) * 0.7), 0);
  will-change: transform, opacity;
}

.slab-3d-front {
  transform: translateZ(8px);
}

.slab-3d-back {
  transform: rotateY(180deg) translateZ(8px);
}

.slab-3d-front .slab-case,
.slab-3d-back .slab-case {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.slab-3d-edge {
  position: absolute;
  background: linear-gradient(
    90deg,
    rgba(244, 249, 255, 0.94) 0%,
    rgba(202, 218, 238, 0.85) 28%,
    rgba(255, 255, 255, 0.98) 50%,
    rgba(202, 218, 238, 0.85) 72%,
    rgba(212, 226, 244, 0.88) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.84);
  box-shadow: inset 0 0 6px rgba(255, 255, 255, 0.72), inset 0 0 1px rgba(15, 23, 42, 0.30);
  pointer-events: none;
}

.slab-3d-right {
  width: 16px;
  height: 100%;
  right: -8px;
  top: 0;
  transform: rotateY(90deg);
}

.slab-3d-left {
  width: 16px;
  height: 100%;
  left: -8px;
  top: 0;
  transform: rotateY(-90deg);
}

.slab-3d-top {
  width: 100%;
  height: 16px;
  top: -8px;
  left: 0;
  transform: rotateX(90deg);
}

.slab-3d-bottom {
  width: 100%;
  height: 16px;
  bottom: -8px;
  left: 0;
  transform: rotateX(-90deg);
}

.stage-tilt-hint {
  margin-top: 6px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.72);
}

.slab-top-label {
  position: relative;
  z-index: 2;
  background: #F8FAFC;
  color: #0F172A;
  border: 2px solid #DC2626;
  border-radius: 4px;
  padding: 3px 5px;
  margin-bottom: 5px;
}

.slab-top-label.is-cgc {
  background: #F8FAFC;
  color: #0F172A;
  border: 2px solid #1E293B;
}

.slab-top-label.is-cgc .slab-label-row {
  background: #0F172A;
  color: #F8FAFC;
  padding: 2px 4px;
  border-radius: 2px;
}

.slab-top-label.is-cgc .slab-label-grade {
  background: #FFFFFF;
  color: #0F172A;
  padding: 2px 5px;
  border-radius: 2px;
}

.slab-top-label.is-back {
  background: #1B2028;
  color: #E5E7EB;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 5px;
}

.slab-top-label.is-back.is-cgc-back {
  background: #E2E8F0;
  color: #0F172A;
  border-color: #94A3B8;
}

.slab-label-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 4px;
}

.slab-label-info { min-width: 0; flex: 1; }
.slab-label-line1 { font-size: 6.5px; font-weight: 700; opacity: 0.78; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slab-label-line2 { font-size: 7.5px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slab-label-line3 { font-size: 6px; opacity: 0.72; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.slab-label-grade { text-align: right; flex-shrink: 0; }
.slab-grade-txt { font-size: 6px; font-weight: 800; line-height: 1; }
.slab-grade-val { font-size: 11px; font-weight: 900; line-height: 1.05; }

.slab-label-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2px;
  gap: 3px;
}

.slab-psa-logo {
  font-size: 7.5px;
  font-weight: 900;
  color: #1D4ED8;
  font-style: italic;
}
.slab-psa-logo.is-cgc { color: #F59E0B; }

.slab-cert-num {
  font-size: 6.5px;
  font-family: ui-monospace, Menlo, monospace;
}

.slab-back-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.slab-back-left { display: flex; flex-direction: column; gap: 3px; }
.slab-back-psa-ghost { font-size: 13px; font-weight: 900; font-style: italic; color: #374151; }
.slab-back-right { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }

.slab-card-slot {
  position: relative;
  z-index: 2;
  aspect-ratio: 63 / 88;
  width: 100%;
  border-radius: 5px;
  overflow: hidden;
  background: #0F1319;
}

.slab-card-img, .pkmn-back-svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slab-meta-foot {
  position: relative;
  z-index: 2;
  padding-top: 7px;
}

.slab-foot-title {
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.slab-foot-price-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

.slab-gain-pos { font-size: 11px; font-weight: 700; color: var(--bn-green); }
.slab-gain-neg { font-size: 11px; font-weight: 700; color: var(--text-sub); }

.load-more-btn {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-line);
  color: var(--text-main);
  border-radius: 10px;
  padding: 10px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}

/* All Packs 2x2 Grid */
.all-packs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding-top: 4px;
}

.all-pack-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  padding: 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.all-pack-card:active { transform: scale(0.98); }

.all-pack-art {
  height: 156px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.all-pack-art::before {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  filter: blur(18px);
  opacity: 0.65;
  pointer-events: none;
  background: radial-gradient(circle, rgba(214, 128, 76, 0.36) 0%, transparent 72%);
}
.all-pack-art[data-theme="silver"]::before {
  background: radial-gradient(circle, rgba(218, 228, 242, 0.30) 0%, transparent 72%);
}
.all-pack-art[data-theme="gold"]::before {
  background: radial-gradient(circle, rgba(235, 184, 52, 0.36) 0%, transparent 72%);
}
.all-pack-art[data-theme="lucky"]::before {
  background: radial-gradient(circle, rgba(246, 204, 48, 0.36) 0%, transparent 72%);
}
.all-pack-art .foil-svg, .all-pack-art .pack-img {
  position: relative;
  z-index: 1;
  width: 104px;
  height: 152px;
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.58));
}

.all-pack-title { font-size: 14px; font-weight: 700; }
.all-pack-max { font-size: 12px; color: var(--bn-green); font-weight: 600; }
.all-pack-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
}

/* Sticky Dock & Slide-to-Open */
.sticky-gacha-dock {
  flex-shrink: 0;
  background: var(--bg-page);
  border-top: none;
  padding: 10px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.dock-top-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.balance-pill {
  height: 36px;
  border-radius: 8px;
  background: rgba(240, 185, 11, 0.14);
  border: 1px solid rgba(240, 185, 11, 0.25);
  padding: 0 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.plus-yellow-btn {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: none;
  background: var(--bn-yellow);
  color: #111;
  font-weight: 900;
  font-size: 14px;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.qty-stepper {
  height: 36px;
  border-radius: 8px;
  background: #232934;
  display: grid;
  grid-template-columns: 36px 1fr 36px;
  align-items: center;
  text-align: center;
}

.stepper-btn {
  height: 100%;
  border: none;
  background: transparent;
  color: var(--text-main);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}
.stepper-btn:disabled { color: var(--text-sub); opacity: 0.4; }
.stepper-val { font-size: 13.5px; font-weight: 800; font-variant-numeric: tabular-nums; }

.slide-open-track {
  position: relative;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(180deg, #2C220B 0%, #1E1606 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: none;
  user-select: none;
  cursor: pointer;
  border: 1px solid rgba(252, 213, 53, 0.52);
  box-shadow:
    0 0 18px rgba(245, 188, 22, 0.32),
    inset 0 1px 2px rgba(255, 238, 160, 0.22);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.slide-open-track.is-insufficient {
  background: #242A34;
  border-color: transparent;
  box-shadow: none;
}

.slide-open-track.is-dragging:not(.is-insufficient) {
  background: linear-gradient(180deg, #332609 0%, #201705 100%);
  border-color: rgba(254, 240, 138, 0.92);
  box-shadow:
    0 0 calc(16px + var(--slide-p, 0) * 22px) rgba(252, 213, 53, calc(0.48 + var(--slide-p, 0) * 0.42)),
    inset 0 1px 3px rgba(255, 248, 200, 0.35);
}

.slide-open-track.is-opening {
  background: #3A2A06;
  border-color: rgba(255, 248, 196, 0.96);
  box-shadow: 0 0 28px rgba(252, 213, 53, 0.80);
}

/* Radiant Binance Gold Fill & Stochastic Dither Matrix Layer */
.slide-open-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  border-radius: 11px 0 0 11px;
  background: linear-gradient(
    90deg,
    rgba(217, 148, 8, 0.46) 0%,
    rgba(240, 185, 11, 0.82) 55%,
    rgba(254, 240, 138, 0.95) 100%
  );
  pointer-events: none;
  z-index: 1;
  transition: width 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

.slide-open-track.is-dragging .slide-open-fill {
  transition: none;
}

.slide-claude-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  pointer-events: none;
  z-index: 2;
}

.slide-open-track.is-insufficient .slide-claude-canvas,
.slide-open-track.is-insufficient .slide-open-fill {
  display: none;
}

.slide-open-handle {
  position: absolute;
  left: 4px;
  width: 40px;
  height: 38px;
  border-radius: 9px;
  background: linear-gradient(180deg, #FFF7C2 0%, #FCD535 55%, #EAB308 100%);
  color: #1A1202;
  font-size: 18px;
  font-weight: 900;
  display: grid;
  place-items: center;
  z-index: 4;
  box-shadow:
    0 0 12px rgba(252, 213, 53, 0.55),
    0 2px 8px rgba(0, 0, 0, 0.45),
    inset 0 1px 1px rgba(255, 255, 255, 0.85);
  transition:
    transform 0.24s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.16s ease,
    background 0.16s ease;
}

.slide-open-track.is-dragging .slide-open-handle {
  transition: box-shadow 0.16s ease, background 0.16s ease;
}

@keyframes slideHandleNudge {
  0% { transform: translateX(0px); }
  35% { transform: translateX(16px); }
  68% { transform: translateX(4px); }
  100% { transform: translateX(0px); }
}

.slide-open-track.is-nudge-hint .slide-open-handle {
  animation: slideHandleNudge 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.slide-open-track.is-dragging:not(.is-insufficient) .slide-open-handle,
.slide-open-track.is-ultra-hot:not(.is-insufficient) .slide-open-handle {
  background: linear-gradient(180deg, #FFFBEB 0%, #FDE047 60%, #F59E0B 100%);
  color: #1A1202;
  box-shadow:
    0 0 18px rgba(254, 240, 138, 0.95),
    0 2px 8px rgba(0, 0, 0, 0.45);
}

.slide-open-track.is-insufficient .slide-open-handle {
  background: #2E3440;
  color: var(--text-sub);
  box-shadow: none;
}

.slide-open-label {
  position: relative;
  z-index: 3;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.2px;
  color: #FFFDF0;
  text-shadow:
    0 1px 6px rgba(32, 20, 0, 0.95),
    0 0 10px rgba(252, 213, 53, 0.45);
  pointer-events: none;
}

.slide-open-track.is-dragging:not(.is-insufficient) .slide-open-label,
.slide-open-track.is-opening .slide-open-label {
  color: #FFFFFF;
  font-weight: 900;
  text-shadow:
    0 1px 8px rgba(32, 18, 0, 0.96),
    0 0 12px rgba(254, 240, 138, 0.72);
}

.slide-open-track.is-insufficient .slide-open-label {
  color: var(--text-sub);
  text-shadow: none;
}

/* Bottom 3-Tab Nav */
.bottom-nav {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--bg-page);
  border-top: 1px solid var(--border-line);
  padding: 6px 0 calc(6px + var(--safe-bottom));
}

.nav-item {
  position: relative;
  border: none;
  background: transparent;
  color: var(--text-sub);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 10.5px;
  font-weight: 600;
  cursor: pointer;
}
.nav-item.active { color: var(--text-main); }

.mine-badge {
  position: absolute;
  top: -2px;
  right: 28%;
  font-style: normal;
  font-size: 9px;
  font-weight: 800;
  background: var(--bn-yellow);
  color: #111;
  border-radius: 999px;
  padding: 0 5px;
}

/* Market & Mine Views */
.market-head-card, .mine-summary-card {
  background: var(--bg-card);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.market-head-title { font-size: 15px; font-weight: 700; }
.market-head-sub { font-size: 11.5px; color: var(--text-sub); }
.market-filter-row { display: flex; gap: 6px; overflow-x: auto; }

.m-chip {
  border: 1px solid var(--border-line);
  background: var(--bg-page);
  color: var(--text-sub);
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}
.m-chip.active {
  background: rgba(252, 213, 53, 0.14);
  border-color: var(--bn-yellow);
  color: var(--bn-yellow);
}

.mine-kpi-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.mine-kpi-lbl { font-size: 11px; color: var(--text-sub); }
.mine-kpi-val { font-size: 18px; font-weight: 800; margin-top: 2px; font-variant-numeric: tabular-nums; }
.mine-sub-stats { font-size: 11px; color: var(--text-sub); }

.mine-subtabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.mine-subtab {
  border: 1px solid var(--border-line);
  background: var(--bg-card);
  color: var(--text-sub);
  border-radius: 9px;
  padding: 8px 4px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.mine-subtab.active {
  background: var(--bg-card-2);
  border-color: var(--bn-yellow);
  color: var(--bn-yellow);
}

.mine-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--text-sub);
}

.vault-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.vault-tier-chips {
  display: flex;
  align-items: center;
  gap: 5px;
  overflow-x: auto;
  scrollbar-width: none;
  min-width: 0;
  flex: 1;
}
.vault-tier-chips::-webkit-scrollbar { display: none; }

.vault-tier-chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--bg-card);
  color: var(--text-sub);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}
.vault-tier-chip.active {
  background: rgba(252, 213, 53, 0.14);
  border-color: rgba(252, 213, 53, 0.6);
  color: var(--bn-yellow);
}
.vault-tier-chip .tier-gem-svg {
  width: 12px;
  height: 12px;
}

.vault-sort-select {
  flex-shrink: 0;
  height: 28px;
  padding: 0 8px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--bg-card);
  color: var(--text-main);
  font-size: 11.5px;
  font-weight: 600;
  outline: none;
  cursor: pointer;
}
.app-shell.theme-light .vault-tier-chip,
.app-shell.theme-light .vault-sort-select {
  background: #F5F6F8;
  border-color: #E2E6EC;
}
.app-shell.theme-light .vault-tier-chip.active {
  background: #FFF6CC;
  border-color: #E6A90A;
  color: #7A5400;
}

.mini-gold-btn {
  border: none;
  background: var(--bn-yellow);
  color: #111;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
}

.collection-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.collection-status {
  font-size: 10px;
  text-align: center;
  color: var(--bn-yellow);
  background: rgba(252, 213, 53, 0.1);
  border-radius: 6px;
  padding: 3px 5px;
}
.mini-sell-btn {
  width: 100%;
  border: none;
  border-radius: 8px;
  background: var(--bn-yellow);
  color: #111;
  font-size: 11.5px;
  font-weight: 800;
  padding: 7px 4px;
  cursor: pointer;
}
.mini-sell-btn.is-sold {
  background: #2C3340;
  color: var(--text-sub);
}

.records-list { display: flex; flex-direction: column; gap: 8px; }
.record-row {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.record-title { font-size: 12.5px; font-weight: 700; }
.record-sub { font-size: 11px; color: var(--text-sub); margin-top: 2px; }
.record-amt { font-size: 13px; font-weight: 800; text-align: right; }

/* Bottom Sheets */
.sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-end;
  z-index: 50;
  opacity: 0;
  transition: opacity 0.24s ease;
}
.sheet-backdrop.is-open {
  opacity: 1;
}
.bottom-sheet {
  width: 100%;
  background: #1E242E;
  border-radius: 20px 20px 0 0;
  padding: 10px 16px calc(18px + var(--safe-bottom));
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 86%;
  transform: translateY(100%);
  transition: transform 0.30s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.sheet-backdrop.is-open .bottom-sheet {
  transform: translateY(0);
}
.bottom-sheet.is-dragging-sheet {
  transition: none !important;
}
.bottom-sheet--tall { height: 84%; }
.sheet-handle { width: 38px; height: 4px; border-radius: 999px; background: #414957; margin: 0 auto; flex-shrink: 0; }
.sheet-header { display: flex; justify-content: space-between; align-items: center; }
.sheet-header--center { justify-content: center; }
.sheet-title { font-size: 16px; font-weight: 800; }
.sheet-close {
  width: 28px; height: 28px; border-radius: 50%; border: none;
  background: #2B3340; color: var(--text-sub); cursor: pointer;
}
.sheet-scroll-body { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; padding: 4px 2px 6px; }

.guide-fan-preview {
  height: 168px;
  background: #0D1015;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.guide-step h4 { margin: 0 0 4px; font-size: 15px; }
.guide-step p { margin: 0; font-size: 12.5px; line-height: 1.55; color: #C2C8D1; }
.guide-banner-open {
  height: 86px;
  background: #0D1015;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.guide-open-arrow {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--bn-yellow); color: #111;
  display: grid; place-items: center; font-weight: 900; font-size: 20px;
}
.guide-open-text {
  background: linear-gradient(90deg, rgba(252,213,53,0.18), #FCD535);
  color: #111; font-weight: 800; padding: 10px 36px; border-radius: 10px;
}

.fairness-box {
  background: #131820;
  border: 1px solid var(--border-line);
  border-radius: 12px;
  padding: 10px;
  font-size: 11.5px;
  line-height: 1.55;
  word-break: break-all;
}
.mono { font-family: ui-monospace, Menlo, monospace; color: var(--bn-yellow); }
.verify-ok {
  background: rgba(14, 203, 129, 0.14);
  border: 1px solid rgba(14, 203, 129, 0.4);
  color: var(--bn-green);
  border-radius: 10px;
  padding: 9px 11px;
  font-size: 12px;
  font-weight: 700;
}

.wallet-panel-box { display: flex; flex-direction: column; gap: 10px; }
.wallet-row {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* FULLSCREEN 5-STAGE OPENING ANIMATION STAGE */
.opening-stage {
  position: absolute;
  inset: 0;
  z-index: 95;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: calc(14px + var(--safe-top)) 16px calc(22px + var(--safe-bottom));
  overflow: hidden;
}

.stage-bg-layer {
  position: absolute;
  inset: 0;
  background: #000000;
  transition: background 0.55s ease;
  z-index: 0;
}

.fx-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.stage-3d-host {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}

.stage-3d-host canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.stage-open-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  background: #000000;
  pointer-events: none;
  z-index: 3;
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.16s ease-out, transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}
.stage-open-video.is-playing {
  opacity: 1;
  transform: scale(1);
}

.stage-flash {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 44%, #FFFFFF 0%, #FFF7D6 45%, #FCD535 100%);
  opacity: 0;
  pointer-events: none;
  z-index: 8;
  transition: opacity 0.56s cubic-bezier(0.22, 1, 0.36, 1);
}
.stage-flash.flash-on { opacity: 0.72; }
.stage-flash.flash-whiteout {
  background: radial-gradient(circle at 50% 44%, #FFFFFF 22%, #FFF9DF 65%, #FCE694 100%);
  opacity: 1;
  transition: opacity 0.30s ease-in;
}

.stage-header {
  position: relative;
  z-index: 6;
  width: 100%;
  min-height: 36px;
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stage-multi-counter {
  position: absolute;
  left: 0;
  font-size: 12px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.12);
  padding: 4px 10px;
  border-radius: 999px;
}

.stage-top-pill {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #FFFFFF;
  border-radius: 999px;
  padding: 5px 16px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.stage-top-pill.is-pill-zoom {
  animation: topPillZoomSettle 0.44s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes topPillZoomSettle {
  0% { transform: scale(0.76); opacity: 0; }
  42% { transform: scale(1.09); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

.stage-close-x {
  position: absolute;
  right: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: #FFF;
  font-size: 18px;
  cursor: pointer;
}

.stage-mystery-wrap {
  position: absolute;
  top: 44%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.35);
  z-index: 4;
  width: 184px;
  height: 280px;
  perspective: 900px;
}

.stage-mystery-wrap.is-zooming {
  animation: mysteryZoomJitter 1.05s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.stage-mystery-wrap.is-spinning {
  animation: mysteryFastSpin 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.stage-mystery-wrap.is-bursting {
  animation: mysteryBurst 0.18s ease-out forwards;
}

.stage-mystery-pack {
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

.stage-mystery-pack .pack-img {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 26px rgba(252, 213, 53, 0.5));
}

@keyframes mysteryZoomJitter {
  0% { transform: translate(-50%, -50%) scale(0.36); }
  55% { transform: translate(-50%, -50%) scale(1.02); }
  70% { transform: translate(calc(-50% - 2px), calc(-50% + 1px)) scale(1.03) rotate(-1deg); }
  85% { transform: translate(calc(-50% + 2px), calc(-50% - 1px)) scale(1.04) rotate(1deg); }
  100% { transform: translate(-50%, -50%) scale(1.04) rotate(0deg); }
}

@keyframes mysteryFastSpin {
  0% { transform: translate(-50%, -50%) scale(1.04) rotateY(0deg) rotateZ(0deg); }
  45% { transform: translate(-50%, -50%) scale(1.08) rotateY(180deg) rotateZ(6deg); }
  100% { transform: translate(-50%, -50%) scale(1.06) rotateY(360deg) rotateZ(15deg); }
}

@keyframes mysteryBurst {
  to { transform: translate(-50%, -50%) scale(1.38) rotateZ(18deg); opacity: 0; }
}

.stage-white-blank {
  position: absolute;
  top: 44%;
  left: 50%;
  width: 128px;
  height: 182px;
  border-radius: 10px;
  background: #FFFFFF;
  box-shadow: 0 0 42px rgba(255, 255, 255, 0.96), 0 0 95px rgba(252, 213, 53, 0.78);
  transform: translate(-50%, -50%) rotate(13deg) scale(1);
  z-index: 5;
  animation: blankZoom 1.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes blankZoom {
  0% { transform: translate(-50%, -50%) scale(0.55) rotate(6deg); opacity: 0.7; }
  16% { transform: translate(-50%, -50%) scale(1.0) rotate(13deg); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1.05) rotate(14deg); opacity: 1; }
}

/* 3-Beat Suspense Text */
.stage-suspense-zone {
  position: absolute;
  top: 21.5%;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 5;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.stage-suspense-zone.is-beat-out {
  opacity: 0;
  transform: scale(0.93);
}

.stage-suspense-zone.is-beat-zoom .suspense-lbl {
  animation: suspenseLabelZoom 0.44s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.stage-suspense-zone.is-beat-zoom .suspense-val {
  animation: suspenseValZoom 0.48s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes suspenseLabelZoom {
  0% { transform: scale(0.76); opacity: 0; }
  40% { transform: scale(1.10); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes suspenseValZoom {
  0% { transform: scale(0.64); opacity: 0; }
  36% { transform: scale(1.16); opacity: 1; }
  58% { transform: scale(1.12); opacity: 1; }
  84% { transform: scale(0.985); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

.suspense-lbl {
  font-size: 18px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  letter-spacing: 3px;
}

.suspense-val {
  font-size: 56px;
  font-weight: 800;
  color: #FFF;
  margin-top: 14px;
  line-height: 1.08;
  letter-spacing: 0.5px;
}

.suspense-val--compact {
  font-size: 42px;
  letter-spacing: 0px;
}
.tier-glow-S { color: #FCD535; text-shadow: 0 0 24px rgba(252, 213, 53, 0.85); }
.tier-glow-A { color: #E9D5FF; text-shadow: 0 0 22px rgba(192, 132, 252, 0.8); }
.tier-glow-B { color: #BAE6FD; }
.tier-glow-C { color: #CFFAFE; }

.pop-text { animation: suspenseValZoom 0.48s cubic-bezier(0.22, 1, 0.36, 1) both; }

/* Removed old CSS-only slab-flip rules (now handled by 6-sided .slab-3d-box controller) */
.stage-valuation-box {
  position: absolute;
  bottom: 126px;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 5;
  pointer-events: none;
}

.stage-val-amount {
  font-size: 36px;
  font-weight: 900;
  color: #FFFFFF;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
}

.stage-val-amount.is-pika-gold {
  color: #FCD535;
  text-shadow: 0 0 24px rgba(252, 213, 53, 0.55);
}

.stage-val-sub { font-size: 12px; color: rgba(255, 255, 255, 0.65); margin-top: 2px; }
.stage-val-bonus {
  display: inline-block;
  margin-top: 6px;
  font-size: 11px;
  font-weight: 800;
  color: #111;
  background: var(--bn-yellow);
  border-radius: 999px;
  padding: 3px 10px;
}

.stage-skip-btn {
  position: absolute;
  bottom: calc(18px + var(--safe-bottom));
  left: 50%;
  transform: translateX(-50%);
  z-index: 9;
  background: rgba(15, 20, 28, 0.44);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  padding: 6px 20px;
  cursor: pointer;
}

.stage-action-bar {
  position: relative;
  z-index: 7;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.stage-btn-later {
  height: 46px;
  border-radius: 10px;
  border: none;
  background: #F4F5F7;
  color: #111827;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.stage-btn-sell {
  height: 46px;
  border-radius: 10px;
  border: none;
  background: var(--bn-yellow);
  color: #111827;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.stage-btn-sell:disabled { opacity: 0.55; }

.stage-multi-summary {
  position: relative;
  z-index: 6;
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
}
.multi-sum-title { font-size: 16px; font-weight: 800; text-align: center; }
.multi-sum-grid { flex: 1; overflow-y: auto; }
.summary-slot { display: flex; flex-direction: column; gap: 6px; }

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 32px 14px;
  color: var(--text-sub);
  background: var(--bg-card);
  border-radius: 12px;
  font-size: 13px;
}

/* =========================================================
   Pool & Market Card Detail Bottom Sheet (1:1 Match v27)
   ========================================================= */
.slab-tile[data-catalog-card] {
  cursor: pointer;
}

.bottom-sheet--catalog {
  height: 90%;
  max-height: 92%;
  background: #1A1F26;
  padding: 10px 18px calc(22px + var(--safe-bottom));
  gap: 10px;
}

.sheet-header--catalog {
  justify-content: flex-start;
  padding: 2px 0 4px;
}
.sheet-header--catalog .sheet-title {
  font-size: 15px;
  font-weight: 700;
  color: #EAECEF;
}

.cat-detail-body {
  gap: 0;
  padding: 0 0 22px;
  overscroll-behavior-y: contain;
  scrollbar-width: none;
}
.cat-detail-body::-webkit-scrollbar {
  display: none;
}

.cat-carousel-wrap {
  position: relative;
  width: 100%;
  flex-shrink: 0;
}

.cat-carousel-viewport {
  overflow: hidden;
  width: 100%;
  touch-action: pan-y;
  cursor: grab;
}
.cat-carousel-viewport:active {
  cursor: grabbing;
}

.cat-carousel-track {
  display: flex;
  width: 200%;
  transition: transform 0.30s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.cat-carousel-track.is-swiping {
  transition: none !important;
}

.cat-carousel-slide {
  width: 50%;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4px 0 8px;
}

.cat-slab-frame {
  width: 222px;
  height: 374px;
  aspect-ratio: 600 / 1012;
  position: relative;
  flex-shrink: 0;
}
.cat-slab-frame .slab-case {
  width: 100%;
  height: 100%;
}

.cat-expand-btn {
  position: absolute;
  right: 0;
  bottom: 26px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: #848E9C;
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}
.cat-expand-btn:active {
  color: #EAECEF;
  background: rgba(255, 255, 255, 0.06);
}

.cat-carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin: 6px 0 18px;
}

.cat-dot {
  width: 5px;
  height: 3px;
  border-radius: 999px;
  background: #5E6673;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: width 0.22s ease, background-color 0.22s ease;
}
.cat-dot.is-active {
  width: 11px;
  background: #EAECEF;
}

.cat-tier-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 13px;
  font-weight: 600;
  color: #EAECEF;
  width: fit-content;
  margin-bottom: 12px;
}

.cat-card-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.38;
  color: #F5F7FA;
  margin: 0 0 12px;
  word-break: break-word;
}

.cat-chain-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  font-size: 12.5px;
  color: #848E9C;
  margin-bottom: 18px;
}

.cat-chain-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cat-chain-val {
  color: #F0B90B;
  font-weight: 500;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
}
.cat-chain-val:active {
  opacity: 0.78;
}

.cat-price-block {
  margin-bottom: 24px;
}

.cat-price-lbl {
  display: inline-block;
  font-size: 13px;
  color: #848E9C;
  border-bottom: 1px dashed rgba(132, 142, 156, 0.45);
  padding-bottom: 2px;
  margin-bottom: 6px;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  padding-left: 0;
  padding-right: 0;
  padding-top: 0;
  font-family: inherit;
  cursor: pointer;
}

.cat-price-val {
  font-size: 20px;
  font-weight: 700;
  color: #F5F7FA;
  line-height: 1.25;
}

.cat-details-section {
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.cat-details-head {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  padding: 10px 0 10px;
  color: #EAECEF;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.cat-details-chevron {
  color: #848E9C;
  transition: transform 0.22s ease;
}
.cat-details-head[aria-expanded="false"] .cat-details-chevron {
  transform: rotate(180deg);
}

.cat-details-rows.is-collapsed {
  display: none;
}

.cat-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
  padding: 7.5px 0;
  font-size: 13.5px;
  line-height: 1.4;
}

.cat-detail-k {
  color: #848E9C;
  flex-shrink: 0;
}

.cat-detail-v {
  color: #EAECEF;
  text-align: right;
  word-break: break-word;
}

/* Fullscreen Slab Zoom Lightbox */
.cat-zoom-lightbox {
  position: absolute;
  inset: 0;
  z-index: 80;
  background: rgba(8, 10, 14, 0.94);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 20px;
}

.cat-zoom-close {
  position: absolute;
  top: calc(14px + var(--safe-top));
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: #EAECEF;
  font-size: 15px;
  cursor: pointer;
}

.cat-zoom-slab {
  width: min(82vw, 316px);
  aspect-ratio: 600 / 1012;
  position: relative;
}
.cat-zoom-slab .slab-case {
  width: 100%;
  height: 100%;
}

.cat-zoom-tabs {
  display: inline-flex;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  padding: 4px;
  border-radius: 999px;
}
.cat-zoom-tab {
  border: none;
  background: transparent;
  color: #848E9C;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}
.cat-zoom-tab.is-active {
  background: #EAECEF;
  color: #111827;
}

/* Light theme overrides for catalog card sheet */
.app-shell.theme-light .bottom-sheet--catalog {
  background: #FFFFFF;
}
.app-shell.theme-light .sheet-header--catalog .sheet-title,
.app-shell.theme-light .cat-card-title,
.app-shell.theme-light .cat-price-val,
.app-shell.theme-light .cat-details-head,
.app-shell.theme-light .cat-detail-v {
  color: #1E2329;
}
.app-shell.theme-light .cat-tier-pill {
  background: #F1F3F5;
  color: #1E2329;
}
.app-shell.theme-light .cat-dot {
  background: #CBD5E1;
}
.app-shell.theme-light .cat-dot.is-active {
  background: #1E2329;
}
.app-shell.theme-light .cat-details-section {
  border-top-color: #E2E8F0;
}

