: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;
  -webkit-text-size-adjust: 100%;
  touch-action: manipulation;
  overflow: hidden;
}

.app-shell,
button,
a,
input,
select,
textarea,
label,
[role="button"] {
  touch-action: manipulation;
}

.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 .lucky-bonus-banner {
  background: #F5F6F8;
}
.app-shell.theme-light .slab-tile {
  background: #FFFFFF;
  border-color: #E5E7EB;
  box-shadow: none;
}
.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: 120;
  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)) 12px 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-actions .hdr-icon-btn {
  width: 30px;
  height: 30px;
}
.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: 16px;
  font-weight: 700;
  letter-spacing: 0.2px;
  text-align: center;
  pointer-events: none;
  white-space: nowrap;
  max-width: calc(100% - 196px);
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.lang-switch-wrap {
  position: relative;
}
.hdr-actions .hdr-lang-btn,
.hdr-lang-btn {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2px;
  width: auto;
  min-width: 28px;
  height: 28px;
  padding: 0 6px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: var(--bn-yellow);
}
.lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 112px;
  background: var(--bg-card);
  border: 1px solid var(--border-line);
  border-radius: 12px;
  padding: 4px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.48);
  z-index: 90;
}
.lang-menu-item {
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  color: var(--text-main);
  font-size: 12px;
  font-weight: 700;
  padding: 7px 10px;
  border-radius: 8px;
  cursor: pointer;
}
.lang-menu-item:hover {
  background: rgba(255, 255, 255, 0.06);
}
.lang-menu-item.active {
  background: rgba(252, 213, 53, 0.14);
  color: var(--bn-yellow);
}
.app-shell.theme-light .hdr-lang-btn {
  border-color: #CBD5E1;
  background: #F1F5F9;
  color: #B45309;
}
.app-shell.theme-light .lang-menu {
  background: #FFFFFF;
  border-color: #E2E8F0;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.14);
}
.app-shell.theme-light .lang-menu-item {
  color: #1E2329;
}
.app-shell.theme-light .lang-menu-item:hover {
  background: #F1F5F9;
}
.app-shell.theme-light .lang-menu-item.active {
  background: #FEF3C7;
  color: #B45309;
}

/* Floating Binance Yellow Mascot Diamond */
.bn-mascot-fab {
  position: absolute;
  right: -4px;
  bottom: calc(74px + var(--safe-bottom));
  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%);
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}
.pack-strip-item.active .pack-strip-thumb .pack-img {
  transform: scale(1.06);
}

.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 56% 52% at 50% 50%,
    rgba(214, 128, 76, 0.30) 0%,
    rgba(164, 86, 44, 0.16) 36%,
    rgba(92, 46, 24, 0.06) 56%,
    transparent 70%
  );
  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 56% 52% at 50% 50%,
    rgba(212, 224, 240, 0.25) 0%,
    rgba(148, 163, 184, 0.14) 36%,
    rgba(76, 88, 108, 0.05) 56%,
    transparent 70%
  );
}
.hero-pack-stage[data-theme="gold"] .hero-ambient-aura {
  background: radial-gradient(
    ellipse 56% 52% at 50% 50%,
    rgba(232, 180, 48, 0.30) 0%,
    rgba(176, 126, 24, 0.16) 36%,
    rgba(102, 72, 14, 0.06) 56%,
    transparent 70%
  );
}
.hero-pack-stage[data-theme="lucky"] .hero-ambient-aura {
  background: radial-gradient(
    ellipse 56% 52% at 50% 50%,
    rgba(214, 178, 44, 0.30) 0%,
    rgba(154, 126, 26, 0.16) 36%,
    rgba(92, 74, 16, 0.06) 56%,
    transparent 70%
  );
}
.hero-pack-stage[data-theme="storm"] .hero-ambient-aura {
  background: radial-gradient(
    ellipse 58% 54% at 50% 50%,
    rgba(200, 218, 236, 0.30) 0%,
    rgba(132, 156, 182, 0.16) 38%,
    rgba(66, 84, 108, 0.08) 58%,
    transparent 72%
  );
}
.hero-pack-stage[data-theme="battle-duel"] .hero-ambient-aura {
  background: radial-gradient(
    ellipse 58% 54% at 50% 50%,
    rgba(220, 46, 46, 0.28) 0%,
    rgba(252, 213, 53, 0.15) 38%,
    rgba(148, 32, 32, 0.06) 58%,
    transparent 72%
  );
}
.hero-pack-stage[data-theme="battle-reward"] .hero-ambient-aura {
  background: radial-gradient(
    ellipse 58% 54% at 50% 50%,
    rgba(232, 188, 72, 0.32) 0%,
    rgba(176, 134, 34, 0.16) 38%,
    rgba(96, 72, 18, 0.06) 58%,
    transparent 72%
  );
}
.app-shell.theme-light .hero-ambient-aura {
  opacity: 0.42;
}

.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;
  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%;
}
.pack-layer:not(.pack-layer--front) .pack-img {
  filter: brightness(0.86);
}

/* Contour-Masked Metallic Pack Light Sweep (扫光动画) */
.pack-sheen-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.2s ease;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}
.pack-sheen-layer.is-ready {
  opacity: 1;
}

.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%
  );
  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[data-theme="storm"] .pack-sheen-layer::before {
  background: linear-gradient(
    116deg,
    transparent 26%,
    rgba(216, 230, 244, 0.08) 36%,
    rgba(241, 245, 249, 0.24) 46%,
    rgba(255, 255, 255, 0.38) 50%,
    rgba(203, 213, 225, 0.18) 54%,
    rgba(148, 163, 184, 0.04) 64%,
    transparent 74%
  );
}

.hero-pack-stage.is-charging .pack-sheen-layer::before {
  animation-duration: 2.2s;
  opacity: 1;
}

@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-shadow {
  width: 176px;
  height: 22px;
  margin-top: -2px;
  margin-bottom: -10px;
  border-radius: 50%;
  background: radial-gradient(
    ellipse at 50% 50%,
    rgba(0, 0, 0, 0.56) 0%,
    rgba(0, 0, 0, 0.24) 48%,
    transparent 74%
  );
  pointer-events: none;
  z-index: 1;
  animation: heroShadowBreathe 3.4s ease-in-out infinite;
}
.app-shell.theme-light .hero-pack-shadow {
  display: none;
}
@keyframes heroShadowBreathe {
  0%, 100% { transform: scale(1); opacity: 0.96; }
  50% { transform: scale(0.92); opacity: 0.72; }
}

.hero-pack-reflection {
  position: relative;
  width: 196px;
  height: 58px;
  margin-top: 12px;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
  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%
  );
}

.pack-reflection-img {
  position: absolute;
  top: -4px;
  left: 0;
  width: 196px;
  height: 300px;
  object-fit: contain;
  transform: scaleY(-1);
  transform-origin: 50% 50%;
  opacity: 0.52;
  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);
}
.app-shell.theme-light .tier-filter-card.active {
  background: #EEF0F4;
  border-color: #DCE1E8;
  color: #1E2329;
}
.app-shell.theme-light .tier-filter-card.active .tier-card-top {
  color: #1E2329;
}
.app-shell.theme-light .tier-filter-card.active .tier-card-sub {
  color: #5E6673;
}

.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 {
  position: relative;
  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;
}
.app-shell.theme-light .slab-case--tile {
  box-shadow:
    0 2px 6px rgba(15, 23, 42, 0.08),
    0 0 0 1px rgba(148, 163, 184, 0.24) !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 {
  aspect-ratio: 600 / 1012;
  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);
}

/* Performance: static 2-col grid tiles never tilt — avoid 6 offscreen blend/filter GPU passes per card */
.slab-case--tile .holo-sunpillar,
.slab-case--tile .holo-etch,
.slab-case--tile .holo-beam,
.slab-case--tile .holo-glare,
.slab-case--tile .slab-acrylic-gloss {
  display: none;
}
.slab-case--tile .slab-shell-overlay {
  filter: none;
}
.slab-case--tile.is-holo .slab-card-slot::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(125deg, transparent 34%, rgba(255, 255, 255, 0.13) 50%, transparent 66%);
  z-index: 4;
}
.slab-tile,
.collection-wrap {
  content-visibility: auto;
  contain-intrinsic-size: 168px 280px;
}

/* 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-L {
  background:
    radial-gradient(ellipse 72% 62% at 50% 42%, rgba(252, 213, 53, 0.48) 0%, rgba(245, 158, 11, 0.20) 44%, transparent 76%);
  animation: pulseAura 2.4s ease-in-out infinite;
}

.stage-tier-aura.aura-S {
  background:
    radial-gradient(ellipse 68% 58% at 50% 42%, rgba(244, 114, 182, 0.42) 0%, rgba(219, 39, 119, 0.17) 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: visible;
}
.all-pack-art::before {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  opacity: 0.65;
  pointer-events: none;
  background: radial-gradient(circle, rgba(214, 128, 76, 0.28) 0%, transparent 70%);
}
.all-pack-art::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 14px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 50%, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.16) 52%, transparent 74%);
}
.app-shell.theme-light .all-pack-art::after {
  display: none;
}
.all-pack-art[data-theme="silver"]::before {
  background: radial-gradient(circle, rgba(218, 228, 242, 0.24) 0%, transparent 70%);
}
.all-pack-art[data-theme="gold"]::before {
  background: radial-gradient(circle, rgba(235, 184, 52, 0.28) 0%, transparent 70%);
}
.all-pack-art[data-theme="lucky"]::before {
  background: radial-gradient(circle, rgba(246, 204, 48, 0.28) 0%, transparent 70%);
}
.all-pack-art[data-theme="storm"]::before {
  background: radial-gradient(circle, rgba(203, 213, 225, 0.30) 0%, rgba(148, 163, 184, 0.14) 45%, transparent 72%);
}
.all-pack-art .foil-svg, .all-pack-art .pack-img {
  position: relative;
  z-index: 1;
  width: 104px;
  height: 152px;
}

.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 {
  position: relative;
  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;
}

#dock-usdt-val {
  display: inline-block;
  transform-origin: center center;
  transition: transform 0.15s ease, color 0.15s ease, text-shadow 0.15s ease;
}

#dock-usdt-val.is-rolling {
  transform: scale(1.1);
  color: var(--bn-green);
  text-shadow: 0 0 10px rgba(14, 203, 129, 0.42);
}

#dock-usdt-val.is-score-pop {
  animation: arenaScorePop 0.34s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.money-delta-slot {
  position: absolute;
  inset: 0;
  overflow: visible;
  pointer-events: none;
}

.money-delta-pill {
  position: absolute;
  bottom: 100%;
  left: 0;
  margin-bottom: 3px;
  white-space: nowrap;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
  z-index: 20;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.42);
  animation: arenaDeltaFloat 1.15s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.money-delta-pill.is-green {
  background: rgba(13, 31, 24, 0.94);
  border: 1px solid rgba(14, 203, 129, 0.72);
  color: var(--bn-green);
}

.money-delta-pill.is-muted {
  background: rgba(22, 27, 34, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.45);
  color: #CBD5E1;
}

.app-shell.theme-light .money-delta-pill.is-green {
  background: #D1FAE5;
  color: #047857;
}

.app-shell.theme-light .money-delta-pill.is-muted {
  background: #F1F5F9;
  color: #475569;
}

.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;
}

/* Light Theme: Clean Gold & White Slide-to-Open Bar (Zero Outer Shadow, Never Darkens on Drag) */
.app-shell.theme-light .slide-open-track {
  background: linear-gradient(180deg, #FFFFFF 0%, #FFF9E0 100%);
  border: 1px solid #F3D97E;
  box-shadow: none;
}
.app-shell.theme-light .slide-open-track.is-dragging:not(.is-insufficient) {
  background: linear-gradient(180deg, #FFFFFF 0%, #FFF7D4 100%);
  border-color: #F0B90B;
  box-shadow: none;
}
.app-shell.theme-light .slide-open-track.is-opening {
  background: linear-gradient(180deg, #FFFDF2 0%, #FDE68A 100%);
  border-color: #F0B90B;
  box-shadow: none;
}
.app-shell.theme-light .slide-open-track.is-insufficient {
  background: #F0F1F4;
  border-color: transparent;
  box-shadow: none;
}
.app-shell.theme-light .slide-open-fill {
  background: linear-gradient(
    90deg,
    rgba(255, 251, 235, 0.90) 0%,
    rgba(253, 224, 71, 0.86) 58%,
    rgba(252, 213, 53, 0.96) 100%
  );
}
.app-shell.theme-light .slide-open-handle,
.app-shell.theme-light .slide-open-track.is-dragging:not(.is-insufficient) .slide-open-handle,
.app-shell.theme-light .slide-open-track.is-ultra-hot:not(.is-insufficient) .slide-open-handle {
  background: linear-gradient(180deg, #FFF7C2 0%, #FCD535 55%, #F0B90B 100%);
  color: #1A1202;
  box-shadow: none;
}
.app-shell.theme-light .slide-open-track.is-insufficient .slide-open-handle {
  background: #E2E6EC;
  color: #9AA3B2;
  box-shadow: none;
}
.app-shell.theme-light .slide-open-label {
  color: #5C4E12;
  text-shadow: none;
}
.app-shell.theme-light .slide-open-track.is-dragging:not(.is-insufficient) .slide-open-label,
.app-shell.theme-light .slide-open-track.is-opening .slide-open-label {
  color: #4A3806;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.72);
}
.app-shell.theme-light .slide-open-track.is-insufficient .slide-open-label {
  color: #9AA3B2;
  text-shadow: none;
}

/* Bottom 4-Tab Nav */
.bottom-nav {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: repeat(5, 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: 14%;
  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);
}
.app-shell.theme-light .m-chip.active {
  background: #EEF0F4;
  border-color: #D5DCE4;
  color: #1E2329;
}

.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-wrap {
  position: relative;
  display: inline-flex;
  align-items: baseline;
}
.mine-kpi-val {
  font-size: 18px;
  font-weight: 800;
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
  transform-origin: left center;
  transition: transform 0.15s ease, text-shadow 0.15s ease;
}
.mine-kpi-val.is-rolling {
  transform: scale(1.08);
  text-shadow: 0 0 12px rgba(252, 213, 53, 0.38);
}
.mine-kpi-val.is-score-pop {
  animation: arenaScorePop 0.34s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.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);
}
.app-shell.theme-light .mine-subtab.active {
  background: #EEF0F4;
  border-color: #D5DCE4;
  color: #1E2329;
}

.mine-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--text-sub);
}
.mine-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.mini-ghost-btn {
  border: 1px solid var(--border-line);
  background: var(--bg-card-2);
  color: var(--text-main);
  border-radius: 7px;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.app-shell.theme-light .mini-ghost-btn {
  background: #F1F5F9;
  border-color: #CBD5E1;
  color: #1E2329;
}

.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;
  background: #0B0E11;
  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;
}

.opening-stage.is-video-priming {
  display: flex !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.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-L { color: #FCD535; text-shadow: 0 0 26px rgba(252, 213, 53, 0.92); }
.tier-glow-S { color: #F9A8D4; text-shadow: 0 0 24px rgba(244, 114, 182, 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-amount.is-tier-s-pink {
  color: #F9A8D4;
  text-shadow: 0 0 24px rgba(244, 114, 182, 0.72);
}

.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-val-bonus.is-tier-s-pink {
  color: #FFFFFF;
  background: linear-gradient(90deg, #EC4899 0%, #F472B6 100%);
  box-shadow: 0 0 14px rgba(244, 114, 182, 0.45);
}

.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;
  padding: 12px 8px 16px;
  gap: 14px 10px;
  align-content: start;
}
.summary-slot {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 5px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  background: #131820;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.summary-slot.is-tier-l {
  border-color: rgba(252, 213, 53, 0.92);
  background: linear-gradient(165deg, #2D2410 0%, #1B1610 45%, #11161F 100%);
  box-shadow:
    0 0 18px rgba(252, 213, 53, 0.42),
    0 0 34px rgba(245, 158, 11, 0.20),
    inset 0 0 14px rgba(254, 240, 138, 0.14);
  animation: multiGlowPulseL 2.4s ease-in-out infinite;
}
.summary-slot.is-tier-l .slab-tile {
  border-color: rgba(252, 213, 53, 0.55);
}

.summary-slot.is-tier-s {
  border-color: rgba(244, 114, 182, 0.88);
  background: linear-gradient(165deg, #2E1525 0%, #1C121C 45%, #11161F 100%);
  box-shadow:
    0 0 15px rgba(244, 114, 182, 0.36),
    0 0 28px rgba(236, 72, 153, 0.16),
    inset 0 0 12px rgba(251, 207, 232, 0.12);
  animation: multiGlowPulseS 2.8s ease-in-out infinite;
}
.summary-slot.is-tier-s .slab-tile {
  border-color: rgba(244, 114, 182, 0.48);
}

.summary-slot.is-tier-a {
  border-color: rgba(168, 85, 247, 0.72);
  background: linear-gradient(165deg, #221734 0%, #171324 45%, #11161F 100%);
  box-shadow:
    0 0 12px rgba(168, 85, 247, 0.28),
    inset 0 0 10px rgba(216, 180, 254, 0.08);
}
.summary-slot.is-tier-a .slab-tile {
  border-color: rgba(168, 85, 247, 0.40);
}

.summary-slot-sheen {
  position: absolute;
  inset: 0;
  border-radius: 13px;
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
}
.summary-slot-sheen::after {
  content: '';
  position: absolute;
  top: -40%;
  left: -90%;
  width: 55%;
  height: 180%;
  transform: rotate(24deg);
  opacity: 0;
}
.summary-slot.is-tier-l .summary-slot-sheen::after {
  background: linear-gradient(90deg, transparent, rgba(254, 249, 195, 0.34), transparent);
  animation: multiSlotSheen 2.8s ease-in-out infinite;
}
.summary-slot.is-tier-s .summary-slot-sheen::after {
  background: linear-gradient(90deg, transparent, rgba(252, 231, 243, 0.26), transparent);
  animation: multiSlotSheen 3.4s ease-in-out infinite;
}

.summary-tier-pill {
  position: absolute;
  top: -8px;
  right: 8px;
  z-index: 25;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1.25;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
}
.summary-tier-pill .tier-gem-svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}
.summary-tier-pill.is-tier-l {
  background: linear-gradient(135deg, #FEF08A 0%, #FACC15 55%, #D97706 100%);
  color: #1F1400;
  border: 1px solid rgba(255, 251, 235, 0.85);
}
.summary-tier-pill.is-tier-s {
  background: linear-gradient(135deg, #FBCFE8 0%, #EC4899 65%, #9D174D 100%);
  color: #FFF7FB;
  border: 1px solid rgba(252, 231, 243, 0.78);
}
.summary-tier-pill.is-tier-a {
  background: linear-gradient(135deg, #E9D5FF 0%, #9333EA 65%, #581C87 100%);
  color: #FAF5FF;
  border: 1px solid rgba(243, 232, 255, 0.72);
}

@keyframes multiGlowPulseL {
  0%, 100% {
    box-shadow:
      0 0 15px rgba(252, 213, 53, 0.36),
      0 0 28px rgba(245, 158, 11, 0.18),
      inset 0 0 12px rgba(254, 240, 138, 0.12);
  }
  50% {
    box-shadow:
      0 0 24px rgba(252, 213, 53, 0.62),
      0 0 42px rgba(245, 158, 11, 0.30),
      inset 0 0 16px rgba(254, 240, 138, 0.22);
  }
}

@keyframes multiGlowPulseS {
  0%, 100% {
    box-shadow:
      0 0 12px rgba(244, 114, 182, 0.30),
      0 0 22px rgba(236, 72, 153, 0.14),
      inset 0 0 10px rgba(251, 207, 232, 0.10);
  }
  50% {
    box-shadow:
      0 0 20px rgba(244, 114, 182, 0.52),
      0 0 34px rgba(236, 72, 153, 0.24),
      inset 0 0 14px rgba(251, 207, 232, 0.18);
  }
}

@keyframes multiSlotSheen {
  0%, 35% {
    left: -90%;
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  75% {
    left: 145%;
    opacity: 0;
  }
  100% {
    left: 145%;
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .summary-slot.is-tier-l,
  .summary-slot.is-tier-s,
  .summary-slot-sheen::after {
    animation: none;
  }
}

.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;
}
.app-shell.theme-light .cat-slab-frame .slab-case {
  box-shadow:
    0 4px 12px rgba(15, 23, 42, 0.10),
    inset 0 1px 2px rgba(255, 255, 255, 0.85),
    0 0 0 1px rgba(148, 163, 184, 0.28);
}
.app-shell.theme-light .cat-slab-frame .slab-back-photo-wrap {
  box-shadow:
    0 4px 12px rgba(15, 23, 42, 0.10),
    0 0 0 1px rgba(148, 163, 184, 0.28) !important;
}

/* =========================================================
   FULL POKÉDEX ("全图鉴") STYLES
   ========================================================= */

.dex-progress-card {
  background: var(--bg-card);
  border: 1px solid var(--border-line);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dex-prog-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}
.dex-prog-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.dex-prog-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-main);
}
.dex-trainer-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--bg-card-2);
  border: 1px solid var(--border-line);
  color: var(--text-sub);
}
.dex-trainer-badge.is-tier-silver {
  background: rgba(148, 163, 184, 0.14);
  border-color: rgba(148, 163, 184, 0.42);
  color: #CBD5E1;
}
.dex-trainer-badge.is-tier-gold-lite {
  background: rgba(240, 185, 11, 0.14);
  border-color: rgba(240, 185, 11, 0.42);
  color: var(--bn-yellow);
}
.dex-trainer-badge.is-tier-gold-ultra {
  background: linear-gradient(135deg, rgba(252, 213, 53, 0.24), rgba(240, 185, 11, 0.14));
  border-color: rgba(252, 213, 53, 0.52);
  color: var(--bn-yellow);
  box-shadow: 0 0 10px rgba(240, 185, 11, 0.24);
}
.dex-trainer-badge.is-tier-gemini {
  background: linear-gradient(90deg, #4285F4 0%, #9B72CB 35%, #D96570 68%, #38BDF8 100%);
  border-color: rgba(255, 255, 255, 0.48);
  color: #FFFFFF;
  box-shadow: 0 0 14px rgba(155, 114, 203, 0.48);
}
.dex-prog-sub {
  font-size: 11.5px;
  color: var(--text-sub);
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}
.dex-prog-sub strong {
  color: var(--bn-yellow);
}
.dex-all-btn {
  border: 1px solid var(--border-line);
  background: var(--bg-card-2);
  color: var(--text-sub);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}
.dex-all-btn.active {
  border-color: var(--bn-yellow);
  color: var(--bn-yellow);
  background: rgba(252, 213, 53, 0.10);
}

/* Progressive Pokédex Bar: Modest Slate (Lv.1-3) -> Silver (Lv.4-5) -> Gold Lite (Lv.6) -> Gold Ultra (Lv.7-8) -> Gemini Flow (100%) */
.dex-ultra-track {
  position: relative;
  height: 28px;
  border-radius: 8px;
  background: #171C24;
  border: 1px solid var(--border-line);
  overflow: hidden;
  display: flex;
  align-items: center;
}
.dex-css-bar-had {
  position: absolute;
  inset: 0 auto 0 0;
  background: rgba(148, 163, 184, 0.22);
  border-radius: inherit;
  z-index: 1;
  transition: width 0.28s ease;
}
.dex-css-bar-owned {
  position: absolute;
  inset: 0 auto 0 0;
  background: rgba(240, 185, 11, 0.45);
  border-radius: inherit;
  z-index: 1;
  transition: width 0.28s ease;
}
.dex-ultra-track.is-tier-silver {
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(180deg, #1E2532 0%, #151B25 100%);
  border-color: rgba(148, 163, 184, 0.42);
  box-shadow: 0 0 10px rgba(148, 163, 184, 0.14);
}
.dex-ultra-track.is-tier-silver .dex-css-bar-had {
  background: rgba(148, 163, 184, 0.28);
}
.dex-ultra-track.is-tier-silver .dex-css-bar-owned {
  background: linear-gradient(90deg, #475569 0%, #94A3B8 65%, #CBD5E1 100%);
}
.dex-ultra-track.is-tier-gold-lite {
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(180deg, #271E0A 0%, #171206 100%);
  border-color: rgba(240, 185, 11, 0.42);
  box-shadow: 0 0 12px rgba(240, 185, 11, 0.20);
}
.dex-ultra-track.is-tier-gold-ultra {
  height: 34px;
  border-radius: 11px;
  background: linear-gradient(180deg, #2C220B 0%, #191305 100%);
  border-color: rgba(252, 213, 53, 0.56);
  box-shadow:
    0 0 18px rgba(245, 188, 22, 0.30),
    inset 0 1px 2px rgba(255, 238, 160, 0.22);
}
@keyframes geminiAuroraGlow {
  0%, 100% {
    box-shadow: 0 0 18px rgba(66, 133, 244, 0.46), 0 0 28px rgba(155, 114, 203, 0.28);
    border-color: rgba(125, 211, 252, 0.85);
  }
  50% {
    box-shadow: 0 0 22px rgba(217, 101, 112, 0.48), 0 0 32px rgba(56, 189, 248, 0.35);
    border-color: rgba(196, 181, 253, 0.92);
  }
}
.dex-ultra-track.is-tier-gemini {
  height: 34px;
  border-radius: 11px;
  background: linear-gradient(180deg, #161828 0%, #0E101A 100%);
  animation: geminiAuroraGlow 3.2s ease-in-out infinite;
}
.dex-ultra-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  pointer-events: none;
  z-index: 1;
}
.dex-ultra-overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  pointer-events: none;
}
.dex-ultra-rank {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-main);
}
.dex-ultra-track.is-tier-gold-ultra .dex-ultra-rank,
.dex-ultra-track.is-tier-gemini .dex-ultra-rank {
  font-size: 12px;
  font-weight: 800;
  color: #FFFDF0;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85);
}
.dex-rank-lv {
  font-style: normal;
  font-size: 10px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #CBD5E1;
}
.dex-ultra-track.is-tier-gold-lite .dex-rank-lv,
.dex-ultra-track.is-tier-gold-ultra .dex-rank-lv {
  background: rgba(17, 22, 28, 0.72);
  border-color: rgba(252, 213, 53, 0.65);
  color: #FCD535;
}
.dex-ultra-track.is-tier-gemini .dex-rank-lv {
  border-color: rgba(255, 255, 255, 0.65);
  color: #FFFFFF;
  background: rgba(15, 23, 42, 0.62);
}
.dex-ultra-pct {
  font-size: 11.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text-main);
}
.dex-ultra-track.is-tier-gold-ultra .dex-ultra-pct,
.dex-ultra-track.is-tier-gemini .dex-ultra-pct {
  font-size: 12px;
  font-weight: 800;
  color: #FFFDF0;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85);
}
.dex-ultra-pct small {
  font-size: 10.5px;
  font-weight: 600;
  opacity: 0.88;
}
.dex-trainer-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  color: var(--text-sub);
}
.dex-legend-inline {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  flex-shrink: 0;
}
.dex-legend-inline i {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 999px;
}
.dex-legend-inline .dot-owned {
  background: #FCD535;
  box-shadow: 0 0 6px rgba(252, 213, 53, 0.7);
}
.dex-legend-inline .dot-had {
  background: #F59E0B;
  opacity: 0.7;
}

.dex-tier-bar {
  position: relative;
  width: 100%;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.dex-tier-bar-unlocked {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.36);
  transition: width 0.28s ease;
}
.dex-tier-bar-owned {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #F0B90B 0%, #FCD535 100%);
  box-shadow: 0 0 8px rgba(252, 213, 53, 0.45);
  transition: width 0.28s ease;
}
.dex-tier-card.is-tier-a .dex-tier-bar-owned {
  background: linear-gradient(90deg, #8B5CF6 0%, #C084FC 100%);
  box-shadow: 0 0 8px rgba(168, 85, 247, 0.45);
}
.dex-tier-card.is-tier-b .dex-tier-bar-owned {
  background: linear-gradient(90deg, #2563EB 0%, #60A5FA 100%);
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.45);
}
.dex-tier-card.is-tier-c .dex-tier-bar-owned {
  background: linear-gradient(90deg, #059669 0%, #34D399 100%);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.45);
}

.dex-tier-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.dex-tier-card {
  border: 1px solid var(--border-line);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  text-align: left;
  cursor: pointer;
  color: var(--text-main);
  transition: border-color 0.16s ease, background 0.16s ease;
}
.dex-tier-card.active {
  border-color: var(--bn-yellow);
  background: rgba(252, 213, 53, 0.08);
}
.dex-tier-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
}
.dex-tier-name {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.dex-tier-name svg {
  width: 14px;
  height: 14px;
}
.dex-tier-num {
  font-size: 11.5px;
  color: var(--text-sub);
  font-variant-numeric: tabular-nums;
}
.dex-tier-num strong {
  color: var(--text-main);
}
.dex-tier-meta {
  display: flex;
  justify-content: space-between;
  font-size: 10.5px;
  color: var(--text-sub);
  font-variant-numeric: tabular-nums;
}
.dex-tier-card.is-tier-l {
  grid-column: 1 / -1;
  border-color: rgba(252, 213, 53, 0.28);
  background: linear-gradient(90deg, rgba(252, 213, 53, 0.08) 0%, rgba(255, 255, 255, 0.025) 100%);
}
.dex-tier-card.is-tier-s .dex-tier-bar-owned { background: linear-gradient(90deg, #DB2777, #F9A8D4); box-shadow: 0 0 8px rgba(244, 114, 182, 0.45); }
.dex-tier-card.is-tier-a .dex-tier-bar-owned { background: linear-gradient(90deg, #9333EA, #C084FC); }
.dex-tier-card.is-tier-b .dex-tier-bar-owned { background: linear-gradient(90deg, #0284C7, #38BDF8); }
.dex-tier-card.is-tier-c .dex-tier-bar-owned { background: linear-gradient(90deg, #0D9488, #5EEAD4); }

.dex-controls {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 10px 0;
}
.dex-status-chips {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.dex-status-chip {
  border: 1px solid var(--border-line);
  background: var(--bg-card);
  color: var(--text-sub);
  border-radius: 9px;
  padding: 6px 4px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.dex-status-chip.active {
  background: var(--bg-card-2);
  border-color: var(--bn-yellow);
  color: var(--bn-yellow);
}

.dex-tile {
  position: relative;
  cursor: pointer;
}
.dex-corner-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 6;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.2px;
  pointer-events: none;
}
.dex-corner-badge.is-owned {
  background: rgba(14, 203, 129, 0.18);
  border: 1px solid rgba(14, 203, 129, 0.55);
  color: #2EE59D;
  backdrop-filter: blur(6px);
}
.dex-corner-badge.is-ghost {
  background: rgba(148, 163, 184, 0.18);
  border: 1px dashed rgba(148, 163, 184, 0.55);
  color: #CBD5E1;
  backdrop-filter: blur(6px);
}

.dex-tile.is-ghost .slab-tile {
  border-style: dashed;
  border-color: rgba(148, 163, 184, 0.34);
}
.dex-tile.is-ghost .slab-case {
  filter: grayscale(92%) brightness(0.75);
  opacity: 0.48;
}
.dex-tile.is-ghost .slab-tile-foot {
  opacity: 0.65;
}

.dex-tile.is-locked .slab-tile {
  border-color: rgba(255, 255, 255, 0.08);
}
.dex-locked-stage {
  background: radial-gradient(circle at 50% 42%, #1D2532 0%, #10151D 100%);
}
.dex-back-slab {
  width: 112px;
  aspect-ratio: 600 / 1012;
  border-radius: 8px;
  background: linear-gradient(165deg, #252E3D 0%, #141A24 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.45);
}
.dex-back-head {
  height: 20px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 9.5px;
  font-weight: 700;
  color: #94A3B8;
}
.dex-back-head svg {
  width: 11px;
  height: 11px;
}
.dex-back-well {
  position: relative;
  flex: 1;
  border-radius: 5px;
  overflow: hidden;
  background: #0B1018;
}
.dex-back-well img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.56;
  filter: saturate(0.72) contrast(1.04);
  display: block;
}
.dex-back-question {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.84);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
  background: radial-gradient(circle, rgba(11, 16, 24, 0.25) 0%, rgba(11, 16, 24, 0.62) 100%);
}
.dex-locked-title {
  color: var(--text-sub);
}
.dex-locked-sub {
  font-size: 11px;
  color: var(--text-sub);
}

/* Light theme overrides for Pokédex */
.app-shell.theme-light .dex-progress-card {
  background: #FFFFFF;
  border-color: #E5E7EB;
}
.app-shell.theme-light .dex-prog-title,
.app-shell.theme-light .dex-tier-card,
.app-shell.theme-light .dex-tier-num strong {
  color: #1E2329;
}
.app-shell.theme-light .dex-prog-sub strong {
  color: #B45309;
}
.app-shell.theme-light .dex-trainer-badge.is-tier-plain {
  background: #F1F5F9;
  border-color: #CBD5E1;
  color: #475569;
}
.app-shell.theme-light .dex-trainer-badge.is-tier-silver {
  background: #E2E8F0;
  border-color: #94A3B8;
  color: #334155;
}
.app-shell.theme-light .dex-trainer-badge.is-tier-gold-lite,
.app-shell.theme-light .dex-trainer-badge.is-tier-gold-ultra {
  background: #FEF3C7;
  border-color: #F59E0B;
  color: #B45309;
  box-shadow: none;
}
.app-shell.theme-light .dex-trainer-badge.is-tier-gemini {
  background: linear-gradient(90deg, #4285F4 0%, #9B72CB 35%, #D96570 68%, #0EA5E9 100%);
  border-color: rgba(255, 255, 255, 0.8);
  color: #FFFFFF;
}
.app-shell.theme-light .dex-ultra-track.is-tier-plain {
  background: #EEF2F6;
  border-color: #CBD5E1;
}
.app-shell.theme-light .dex-ultra-track.is-tier-plain .dex-css-bar-had {
  background: #CBD5E1;
}
.app-shell.theme-light .dex-ultra-track.is-tier-plain .dex-css-bar-owned {
  background: rgba(217, 119, 6, 0.35);
}
.app-shell.theme-light .dex-ultra-track.is-tier-plain .dex-ultra-rank,
.app-shell.theme-light .dex-ultra-track.is-tier-plain .dex-ultra-pct {
  color: #1E2329;
}
.app-shell.theme-light .dex-ultra-track.is-tier-plain .dex-rank-lv {
  background: #FFFFFF;
  border-color: #CBD5E1;
  color: #475569;
}
.app-shell.theme-light .dex-ultra-track.is-tier-silver {
  background: #E2E8F0;
  border-color: #94A3B8;
}
.app-shell.theme-light .dex-ultra-track.is-tier-silver .dex-ultra-rank,
.app-shell.theme-light .dex-ultra-track.is-tier-silver .dex-ultra-pct {
  color: #0F172A;
}
.app-shell.theme-light .dex-ultra-track.is-tier-gold-lite,
.app-shell.theme-light .dex-ultra-track.is-tier-gold-ultra {
  background: linear-gradient(180deg, #3A2C0A 0%, #241A04 100%);
  border-color: rgba(217, 119, 6, 0.72);
  box-shadow: 0 3px 14px rgba(217, 119, 6, 0.26);
}
.app-shell.theme-light .dex-ultra-track.is-tier-gemini {
  background: linear-gradient(180deg, #1E213A 0%, #141729 100%);
}
.app-shell.theme-light .dex-tier-bar {
  background: #E2E8F0;
}
.app-shell.theme-light .dex-tier-bar-unlocked {
  background: #F59E0B;
  opacity: 0.42;
}
.app-shell.theme-light .dex-tier-card {
  background: #F8FAFC;
  border-color: #E2E8F0;
}
.app-shell.theme-light .dex-tier-card.active {
  background: #FEF9C3;
  border-color: #D97706;
}
.app-shell.theme-light .dex-all-btn,
.app-shell.theme-light .dex-status-chip {
  background: #FFFFFF;
  border-color: #E2E8F0;
  color: #475569;
}
.app-shell.theme-light .dex-all-btn.active,
.app-shell.theme-light .dex-status-chip.active {
  background: #EEF0F4;
  border-color: #94A3B8;
  color: #1E2329;
}
.app-shell.theme-light .dex-corner-badge.is-owned {
  background: #DCFCE7;
  border-color: #22C55E;
  color: #15803D;
}
.app-shell.theme-light .dex-corner-badge.is-ghost {
  background: #F1F5F9;
  border-color: #94A3B8;
  color: #475569;
}
.app-shell.theme-light .dex-tile.is-ghost .slab-case {
  filter: grayscale(92%) brightness(0.92);
  opacity: 0.52;
}
.app-shell.theme-light .dex-tile.is-locked .slab-tile {
  border-color: #E2E8F0;
}
.app-shell.theme-light .dex-locked-stage {
  background: radial-gradient(circle at 50% 42%, #F1F5F9 0%, #E2E8F0 100%);
}
.app-shell.theme-light .dex-back-slab {
  background: linear-gradient(165deg, #E2E8F0 0%, #CBD5E1 100%);
  border-color: #94A3B8;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.12);
}
.app-shell.theme-light .dex-back-head {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(148, 163, 184, 0.35);
  color: #334155;
}
.app-shell.theme-light .dex-back-well img {
  opacity: 0.72;
}
.app-shell.theme-light .dex-back-question {
  background: radial-gradient(circle, rgba(15, 23, 42, 0.18) 0%, rgba(15, 23, 42, 0.45) 100%);
}

/* =========================================================
   LEADERBOARD TAB ("排行") — GACHA-ALIGNED BINANCE × RENAISS STYLE
   ========================================================= */

.rank-strip-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.rank-subtabs {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
}
.rank-subtab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border-radius: 10px;
  padding: 7px 2px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-sub);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  min-width: 0;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}
.rank-subtab.active {
  background: #272E3A;
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
}
.rank-tab-icon {
  width: 17px;
  height: 17px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.45));
  transition: transform 0.18s ease, filter 0.18s ease;
}
.rank-subtab.active .rank-tab-icon {
  transform: scale(1.06);
  filter: drop-shadow(0 0 8px rgba(252, 213, 53, 0.38));
}
.rank-refresh-btn {
  width: 36px;
  height: 36px;
  padding: 0;
  flex-shrink: 0;
  display: grid;
  place-items: center;
}

.rank-my-card {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 85% 60% at 50% -18%, rgba(252, 213, 53, 0.12) 0%, transparent 72%),
    var(--bg-card);
  border: 1px solid var(--border-line);
  border-radius: 14px;
  padding: 12px 13px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rank-my-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.rank-my-title-wrap {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}
.rank-my-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-main);
}
.rank-mode-badge {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(252, 213, 53, 0.12);
  color: var(--bn-yellow);
  border: 1px solid rgba(252, 213, 53, 0.30);
  white-space: nowrap;
}
.rank-mode-badge.is-live {
  background: rgba(14, 203, 129, 0.14);
  color: var(--bn-green);
  border-color: rgba(14, 203, 129, 0.32);
}

.rank-my-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
  padding: 2px 0;
}
.rank-kpi-col {
  position: relative;
  padding: 2px 4px;
}
.rank-kpi-col + .rank-kpi-col::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16%;
  bottom: 16%;
  width: 1px;
  background: rgba(255, 255, 255, 0.10);
}
.rank-kpi-lbl {
  font-size: 11px;
  color: var(--text-sub);
  margin-bottom: 3px;
}
.rank-kpi-val {
  font-size: 13.5px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--text-main);
}
.rank-kpi-val small {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-sub);
}
.rank-kpi-sub {
  font-size: 10px;
  color: var(--text-sub);
  margin-top: 2px;
}

.rank-form-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.rank-nickname-input {
  flex: 1;
  min-width: 0;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border-line);
  background: var(--bg-page);
  color: var(--text-main);
  padding: 0 10px;
  font-size: 12.5px;
  font-weight: 600;
  outline: none;
}
.rank-nickname-input:focus {
  border-color: var(--bn-yellow);
}
.rank-submit-btn {
  flex-shrink: 0;
  height: 36px;
  padding: 0 13px;
  border: 1px solid rgba(255, 248, 196, 0.35);
  border-radius: 10px;
  background: linear-gradient(135deg, #fcd535 0%, #f0b90b 100%);
  color: #11161c;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 0 14px rgba(240, 185, 11, 0.28);
}
.rank-withdraw-btn {
  flex-shrink: 0;
  height: 36px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid rgba(246, 70, 93, 0.45);
  background: rgba(246, 70, 93, 0.12);
  color: var(--bn-red);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.rank-turnstile-box:not(:empty) {
  margin-top: 8px;
  margin-bottom: 6px;
  display: flex;
  justify-content: flex-start;
}
.rank-privacy-note {
  display: block;
  font-size: 11px;
  line-height: 1.45;
  color: var(--text-sub);
}
.rank-lock-svg {
  display: inline-block;
  vertical-align: -2px;
  margin-right: 4px;
  opacity: 0.85;
}
.rank-note-ok {
  color: var(--bn-green);
  font-weight: 800;
  margin-right: 4px;
}
.rank-note-quota {
  display: inline-block;
  color: #FCD535;
  font-weight: 600;
}
.app-shell.theme-light .rank-note-quota {
  color: #B45309;
}

.rank-snapshot-banner {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--text-sub);
  background: var(--bg-card);
  border: 1px solid var(--border-line);
  border-radius: 11px;
}
.rank-snapshot-banner.is-warn {
  color: #FCD535;
  background: rgba(240, 185, 11, 0.08);
  border-color: rgba(240, 185, 11, 0.28);
}
.app-shell.theme-light .rank-snapshot-banner {
  background: #FFFFFF;
  border-color: #E5E9F0;
}
.app-shell.theme-light .rank-snapshot-banner.is-warn {
  color: #B45309;
  background: #FFFBEB;
  border-color: #FCD34D;
}

.rank-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rank-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-line);
  border-radius: 13px;
  padding: 10px 12px;
}
.rank-row.rank-top-1 {
  border-color: rgba(252, 213, 53, 0.42);
  background: linear-gradient(90deg, rgba(252, 213, 53, 0.10) 0%, var(--bg-card) 52%);
}
.rank-row.rank-top-2 {
  border-color: rgba(148, 163, 184, 0.38);
}
.rank-row.rank-top-3 {
  border-color: rgba(217, 119, 6, 0.38);
}
.rank-row.is-me {
  border-color: var(--bn-yellow);
  box-shadow: 0 0 0 1px rgba(252, 213, 53, 0.34);
}

.rank-pos {
  width: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.rank-pos-pill {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 11.5px;
  font-weight: 900;
  color: #11161C;
}
.rank-pos-pill.is-rank-1 {
  background: linear-gradient(135deg, #FEF08A 0%, #F59E0B 100%);
  box-shadow: 0 0 10px rgba(252, 213, 53, 0.45);
}
.rank-pos-pill.is-rank-2 {
  background: linear-gradient(135deg, #F1F5F9 0%, #94A3B8 100%);
}
.rank-pos-pill.is-rank-3 {
  background: linear-gradient(135deg, #FDBA74 0%, #C2410C 100%);
  color: #FFF7ED;
}
.rank-pos-num {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-sub);
  font-variant-numeric: tabular-nums;
}
.rank-info {
  flex: 1;
  min-width: 0;
}
.rank-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.rank-flag-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 21px;
  height: 15px;
  border-radius: 3.5px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.42);
}
.rank-flag-badge::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0) 48%, rgba(0, 0, 0, 0.16) 100%);
  pointer-events: none;
}
.rank-flag-svg {
  width: 100%;
  height: 100%;
  display: block;
}
.rank-nick {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-main);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rank-tag-me {
  font-size: 10px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--bn-yellow);
  color: #11161c;
  flex-shrink: 0;
}
.rank-tag-demo {
  font-size: 9.5px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-sub);
  flex-shrink: 0;
}
.rank-sub {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--text-sub);
  margin-top: 3px;
  min-width: 0;
  overflow: hidden;
}
.rank-sub-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.rank-gem-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  flex-shrink: 0;
  white-space: nowrap;
  border: 1px solid transparent;
}
.rank-gem-pill .tier-gem-svg {
  width: 11px;
  height: 11px;
}
.rank-gem-pill.is-l {
  background: rgba(252, 213, 53, 0.13);
  border-color: rgba(252, 213, 53, 0.35);
  color: #FCD535;
}
.rank-gem-pill.is-s {
  background: rgba(244, 114, 182, 0.14);
  border-color: rgba(244, 114, 182, 0.36);
  color: #F9A8D4;
}
.rank-gem-pill.is-a {
  background: rgba(168, 85, 247, 0.14);
  border-color: rgba(168, 85, 247, 0.36);
  color: #D8B4FE;
}
.rank-metric {
  text-align: right;
  flex-shrink: 0;
}
.rank-metric-main {
  font-size: 14px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}
.rank-metric-sub {
  font-size: 10.5px;
  color: var(--text-sub);
  font-variant-numeric: tabular-nums;
  margin-top: 2px;
}
.rank-empty {
  text-align: center;
  padding: 28px 14px;
  font-size: 12.5px;
  color: var(--text-sub);
  background: var(--bg-card);
  border: 1px dashed var(--border-line);
  border-radius: 13px;
}

/* Light theme overrides for Leaderboard (matching #view-gacha light mode) */
.app-shell.theme-light .rank-subtab.active {
  background: #FFFFFF;
  border-color: #E5E9F0;
  color: #1E2329;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
}
.app-shell.theme-light .rank-my-card {
  background:
    radial-gradient(ellipse 85% 60% at 50% -18%, rgba(240, 185, 11, 0.14) 0%, transparent 72%),
    #FFFFFF;
  border-color: #E5E9F0;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}
.app-shell.theme-light .rank-kpi-col + .rank-kpi-col::before {
  background: #E2E8F0;
}
.app-shell.theme-light .rank-refresh-btn,
.app-shell.theme-light .rank-row,
.app-shell.theme-light .rank-empty {
  background: #FFFFFF;
  border-color: #E5E9F0;
}
.app-shell.theme-light .rank-mode-badge {
  background: #FEF3C7;
  color: #B45309;
  border-color: #FCD34D;
}
.app-shell.theme-light .rank-mode-badge.is-live {
  background: #DCFCE7;
  color: #15803D;
  border-color: #86EFAC;
}
.app-shell.theme-light .rank-nickname-input {
  background: #F8FAFC;
  border-color: #CBD5E1;
  color: #1E2329;
}
.app-shell.theme-light .rank-flag-badge {
  border-color: rgba(15, 23, 42, 0.16);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.16);
}
.app-shell.theme-light .rank-gem-pill.is-l {
  background: #FEF3C7;
  border-color: #F59E0B;
  color: #92400E;
}
.app-shell.theme-light .rank-gem-pill.is-s {
  background: #FCE7F3;
  border-color: #F472B6;
  color: #9D174D;
}
.app-shell.theme-light .rank-gem-pill.is-a {
  background: #F3E8FF;
  border-color: #C084FC;
  color: #6B21A8;
}
.app-shell.theme-light .rank-row.rank-top-1 {
  background: linear-gradient(90deg, #FEF9C3 0%, #FFFFFF 52%);
  border-color: #F59E0B;
}
.app-shell.theme-light .rank-row.is-me {
  border-color: #D97706;
  box-shadow: 0 0 0 1px rgba(217, 119, 6, 0.35);
}
.app-shell.theme-light .rank-tag-demo {
  background: #F1F5F9;
  color: #64748B;
}
.app-shell.theme-light .rank-metric-main[style*="var(--bn-yellow)"] {
  color: #B45309 !important;
}

@media (hover: none) and (pointer: coarse) {
  .pool-search-input,
  .rank-nickname-input {
    font-size: 16px;
  }
}

/* =========================================================
 * 1v1 Battle Arena, Win-Streak Ladder & Power Rank (Unified Main-Site Theme)
 * ========================================================= */

.slab-battle-tag {
  position: absolute;
  top: 7px;
  left: 7px;
  z-index: 7;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.2px;
  color: #11161C;
  background: linear-gradient(135deg, #FCD535 0%, #F0B90B 100%);
  border: 1px solid rgba(255, 248, 196, 0.55);
  box-shadow: 0 2px 8px rgba(240, 185, 11, 0.28);
  pointer-events: none;
}

.slab-tile[data-battle-exclusive="1"] {
  border-color: rgba(252, 213, 53, 0.45);
  box-shadow: 0 0 14px rgba(252, 213, 53, 0.12);
}

.mini-sell-btn.is-exclusive {
  background: rgba(252, 213, 53, 0.12);
  border: 1px solid rgba(252, 213, 53, 0.36);
  color: var(--bn-yellow);
  cursor: default;
}

.summary-slot.is-battle-exclusive {
  border-color: rgba(252, 213, 53, 0.65) !important;
  box-shadow: 0 0 18px rgba(252, 213, 53, 0.18) !important;
}

.battle-cat-lore-box {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(252, 213, 53, 0.08);
  border: 1px solid rgba(252, 213, 53, 0.28);
}

.battle-cat-lore-badge {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--bn-yellow);
  margin-bottom: 4px;
}

.battle-cat-lore-text {
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-main);
}

.battle-lobby,
.battle-arena,
.battle-result-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 18px;
}

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

.battle-cta-full {
  width: 100%;
  height: 40px;
  font-size: 13.5px;
}

/* 1. Primary 1v1 Duel Entry Card */
.battle-reroll-btn {
  border: 1px solid var(--border-line);
  background: var(--bg-card-2);
  color: var(--text-main);
  border-radius: 9px;
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}

.battle-versus-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  padding: 4px 0 0;
}

.battle-fighter-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  min-width: 0;
}

.battle-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  background: var(--bg-card-2);
  color: var(--text-main);
  border: 1.5px solid var(--border-line);
}

.battle-avatar.is-me {
  background: linear-gradient(135deg, rgba(252, 213, 53, 0.22) 0%, rgba(240, 185, 11, 0.14) 100%);
  color: var(--bn-yellow);
  border-color: rgba(252, 213, 53, 0.65);
}

.battle-fighter-name-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  max-width: 100%;
}

.battle-fighter-name {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--text-main);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.battle-fighter-tag {
  font-size: 10.5px;
  color: var(--text-sub);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.battle-fighter-tag.is-real-replay {
  color: var(--bn-green);
  font-weight: 600;
}

.battle-real-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--bn-green);
  box-shadow: 0 0 6px rgba(14, 203, 129, 0.65);
  flex: none;
}

.app-shell.theme-light .battle-fighter-tag.is-real-replay {
  color: #059669;
}

.battle-vs-center {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 82px;
}

.battle-pack-fan {
  position: relative;
  width: 78px;
  height: 76px;
}

.battle-pack-fan .fan-pack-back,
.battle-pack-fan .fan-pack-front-wrap {
  position: absolute;
  width: 46px;
  height: 70px;
  left: 16px;
  top: 2px;
}

.battle-pack-fan img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.55));
}

.battle-pack-fan .fan-pack-back {
  transform: rotate(-14deg) translateX(-10px);
  opacity: 0.86;
}

.battle-pack-fan .fan-pack-front-wrap {
  transform: rotate(10deg) translateX(10px);
}

.battle-pack-fan .pack-sheen-layer--mini,
.battle-vault-pack-visual .pack-sheen-layer--mini {
  width: 100%;
  height: 100%;
  inset: 0;
  top: 0;
  left: 0;
  transform: none;
}

.battle-vs-badge {
  position: absolute;
  bottom: -2px;
  padding: 1px 9px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 900;
  background: var(--bg-card-2);
  color: var(--bn-yellow);
  border: 1px solid rgba(252, 213, 53, 0.45);
}

.battle-rules-trio {
  margin-top: 4px;
  padding: 6px 0 2px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.battle-rules-trio .metric-val {
  font-size: 15px;
}

/* 2. Win-Streak Ladder Bonus Card */
.battle-streak-card {
  border: 1px solid var(--border-line);
}

.battle-streak-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.battle-card-title {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text-main);
}

.battle-streak-hint {
  font-size: 11px;
  font-weight: 700;
  color: var(--bn-yellow);
  text-align: right;
}

.streak-steps-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
}

.streak-step {
  border-radius: 9px;
  padding: 7px 2px;
  background: var(--bg-page);
  border: 1px solid var(--border-line);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
}

.streak-step-n {
  font-size: 10px;
  color: var(--text-sub);
  font-weight: 600;
}

.streak-step-bonus {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--text-main);
}

.streak-step.is-reached {
  background: rgba(252, 213, 53, 0.14);
  border-color: rgba(252, 213, 53, 0.65);
}

.streak-step.is-reached .streak-step-n,
.streak-step.is-reached .streak-step-bonus {
  color: var(--bn-yellow);
}

.streak-step.is-next {
  border-color: rgba(252, 213, 53, 0.4);
  border-style: dashed;
}

/* 3. Champion Vault & Combat Power Overview */
.battle-vault-card {
  border: 1px solid var(--border-line);
}

.battle-vault-card.has-packs {
  border-color: rgba(252, 213, 53, 0.55);
}

.battle-vault-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.battle-vault-pack-visual {
  position: relative;
  width: 64px;
  height: 94px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.battle-pack-art {
  width: 64px;
  height: 94px;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.55));
}

.battle-pack-count-pill {
  position: absolute;
  right: -4px;
  top: -2px;
  background: linear-gradient(135deg, #FCD535 0%, #F0B90B 100%);
  color: #11161C;
  font-size: 10.5px;
  font-weight: 900;
  padding: 1px 6px;
  border-radius: 999px;
}

.battle-vault-info {
  flex: 1;
  min-width: 0;
}

.battle-vault-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.battle-vault-title {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--text-main);
}

.battle-vault-title strong.is-gold {
  color: var(--bn-yellow);
}

.battle-rank-link {
  border: 1px solid rgba(252, 213, 53, 0.35);
  background: rgba(252, 213, 53, 0.1);
  color: var(--bn-yellow);
  border-radius: 999px;
  padding: 2px 9px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.battle-vault-sub {
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--text-sub);
  margin-top: 4px;
}

.battle-vault-actions .mine-subtab {
  padding: 8px 4px;
}

.battle-vault-actions .mine-subtab.is-ready {
  color: var(--text-main);
  border-color: rgba(252, 213, 53, 0.45);
}

.battle-vault-actions .mine-subtab.is-gold-cta.is-ready {
  background: linear-gradient(135deg, #FCD535 0%, #F0B90B 100%);
  color: #11161C;
  border-color: transparent;
}

.battle-vault-actions .mine-subtab:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.battle-power-kpis {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 8px;
}

/* 4. Exclusives Showcase */
.battle-tier-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.battle-odds-note {
  font-size: 11px;
  color: var(--text-sub);
}

.battle-ex-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.battle-ex-wrap.is-locked .slab-tile-stage {
  filter: saturate(0.8) brightness(0.88);
}

.battle-ex-zh {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-sub);
  padding: 0 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.battle-ex-wrap.is-unlocked .battle-ex-zh {
  color: var(--text-main);
}

.battle-hist-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 5px;
  margin-right: 4px;
}

.battle-hist-tag.is-win {
  background: rgba(14, 203, 129, 0.16);
  color: var(--bn-green);
}

.battle-hist-tag.is-loss {
  background: rgba(246, 70, 93, 0.16);
  color: var(--bn-red);
}

/* 5. Fullscreen Tactile Pack-Ripping 1v1 Arena (Main-Site Unified Theme) */
.app-shell.is-battle-arena-open .bn-mascot-fab {
  display: none !important;
}

.battle-stage-overlay {
  position: absolute;
  inset: 0;
  z-index: 65;
  background: var(--bg-page);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.battle-arena-stage {
  position: relative;
  width: 100%;
  height: 100%;
  padding: calc(10px + var(--safe-top)) 12px calc(12px + var(--safe-bottom));
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 8px;
  background:
    radial-gradient(ellipse 90% 42% at 50% 62%, rgba(252, 213, 53, calc(0.08 + var(--rip-p, 0) * 0.24)) 0%, transparent 72%),
    var(--bg-page);
  --rip-p: 0;
}

.battle-arena-stage.is-shaking {
  animation: battleStageShake 0.34s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes battleStageShake {
  0%, 100% { transform: translate3d(0, 0, 0); }
  18% { transform: translate3d(-4px, 3px, 0); }
  36% { transform: translate3d(5px, -3px, 0); }
  54% { transform: translate3d(-3px, -2px, 0); }
  72% { transform: translate3d(3px, 2px, 0); }
}

.battle-bg-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  transition: background 0.45s ease;
}

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

.battle-fx-canvas.is-shatter-front {
  z-index: 20;
}

.battle-arena-stage > .stage-tier-aura {
  z-index: 2;
}

/* Semi-translucent panels during high-tier reveals so lightning, stardust, and rarity aura shine cleanly behind cards */
.battle-arena-stage[data-reveal-tier] .arena-score-board,
.battle-arena-stage[data-reveal-tier] .arena-opp-zone {
  background: rgba(20, 25, 32, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.app-shell.theme-light .battle-arena-stage[data-reveal-tier] .arena-score-board,
.app-shell.theme-light .battle-arena-stage[data-reveal-tier] .arena-opp-zone {
  background: rgba(255, 255, 255, 0.82);
}

.battle-stage-flash {
  position: absolute;
  inset: 0;
  z-index: 48;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at 50% 48%, rgba(255, 255, 255, 0.98) 0%, rgba(252, 213, 53, 0.45) 48%, transparent 82%);
  transition: opacity 0.30s ease-in;
}

.battle-stage-flash.is-flash {
  animation: battleWhiteFlash 0.44s ease-out forwards;
}

.battle-stage-flash.flash-whiteout {
  background: radial-gradient(circle at 50% 44%, #FFFFFF 22%, #FFF9DF 65%, #FCE694 100%);
  opacity: 1;
}

/* Reused Official Fullscreen Opening Video Cinema Layer inside Battle Arena */
.battle-open-cinema {
  position: absolute;
  inset: 0;
  z-index: 42;
  background: #000000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  pointer-events: auto;
}
.battle-open-cinema.hidden {
  display: none !important;
}
.battle-open-cinema.is-priming {
  opacity: 0 !important;
  pointer-events: none !important;
}

.battle-cinema-hud {
  position: relative;
  z-index: 6;
  width: 100%;
  padding: calc(14px + var(--safe-top)) 14px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.battle-cinema-pill {
  font-size: 12px;
  font-weight: 800;
  color: #EAECEF;
  background: rgba(17, 22, 28, 0.72);
  border: 1px solid rgba(252, 213, 53, 0.35);
  border-radius: 999px;
  padding: 5px 12px;
  backdrop-filter: blur(8px);
}

@keyframes battleWhiteFlash {
  0% { opacity: 0.95; }
  100% { opacity: 0; }
}

.arena-top-bar {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-shrink: 0;
}

.arena-ghost-btn,
.arena-skip-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-line);
  color: var(--text-main);
  border-radius: 9px;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.arena-ghost-btn.is-active {
  background: rgba(252, 213, 53, 0.14);
  border-color: rgba(252, 213, 53, 0.55);
  color: var(--bn-yellow);
}

.arena-skip-btn {
  background: rgba(252, 213, 53, 0.14);
  border-color: rgba(252, 213, 53, 0.45);
  color: var(--bn-yellow);
}

.arena-right-btns {
  display: flex;
  align-items: center;
  gap: 5px;
}

.arena-dots-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.arena-dots {
  display: flex;
  align-items: center;
  gap: 5px;
}

.arena-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--border-line);
  transition: width 0.2s ease, background-color 0.2s ease;
}

.arena-dot.is-done {
  background: var(--bn-green);
}

.arena-dot.is-active {
  width: 22px;
  background: var(--bn-yellow);
}

.arena-round-count {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-sub);
  white-space: nowrap;
}

.arena-score-board {
  position: relative;
  z-index: 5;
  flex-shrink: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-line);
  border-radius: 12px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.arena-score-sides {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 6px;
}

.arena-side-col {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.arena-side-col.is-opp {
  align-items: flex-end;
  text-align: right;
}

.arena-side-name {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-sub);
  max-width: 100%;
}

.arena-side-name span:last-child,
.arena-side-name span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.arena-side-val-wrap {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
}

.arena-side-val {
  font-size: 15.5px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--text-main);
  transform-origin: left center;
  transition: transform 0.16s ease, color 0.16s ease, text-shadow 0.16s ease;
}

.arena-side-col.is-opp .arena-side-val {
  transform-origin: right center;
}

.arena-side-val.is-rolling,
.battle-res-side strong.is-rolling {
  transform: scale(1.08);
  color: var(--bn-yellow);
  text-shadow: 0 0 12px rgba(252, 213, 53, 0.45);
}

.arena-side-val.is-score-pop,
.battle-res-side strong.is-score-pop {
  animation: arenaScorePop 0.34s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes arenaScorePop {
  0% { transform: scale(1.14); }
  55% { transform: scale(0.96); }
  100% { transform: scale(1); }
}

.arena-delta-slot {
  position: absolute;
  inset: 0;
  overflow: visible;
  pointer-events: none;
}

.arena-score-delta {
  position: absolute;
  bottom: 100%;
  margin-bottom: 2px;
  left: 0;
  white-space: nowrap;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
  z-index: 12;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
  animation: arenaDeltaFloat 1.15s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.arena-score-delta.is-me {
  left: 0;
  right: auto;
  background: rgba(13, 31, 24, 0.92);
  border: 1px solid rgba(14, 203, 129, 0.72);
  color: var(--bn-green);
}

.arena-score-delta.is-opp {
  left: auto;
  right: 0;
  background: rgba(31, 24, 11, 0.92);
  border: 1px solid rgba(252, 213, 53, 0.68);
  color: var(--bn-yellow);
}

.app-shell.theme-light .arena-score-delta.is-me {
  background: #D1FAE5;
  color: #047857;
}

.app-shell.theme-light .arena-score-delta.is-opp {
  background: #FEF3C7;
  color: #B45309;
}

@keyframes arenaDeltaFloat {
  0% { opacity: 0; transform: translate3d(0, 6px, 0) scale(0.86); }
  18% { opacity: 1; transform: translate3d(0, -4px, 0) scale(1.06); }
  70% { opacity: 1; transform: translate3d(0, -14px, 0) scale(1); }
  100% { opacity: 0; transform: translate3d(0, -24px, 0) scale(0.95); }
}

.arena-zone-sum.is-rolling {
  color: var(--bn-yellow);
  text-shadow: 0 0 10px rgba(252, 213, 53, 0.36);
}

.arena-tug-track.is-rolling .arena-tug-me,
.arena-tug-track.is-rolling .arena-tug-opp {
  transition: none;
}

.arena-side-col.is-leading .arena-side-val {
  color: var(--bn-yellow);
}

.arena-lead-mid {
  font-size: 10.5px;
  font-weight: 800;
  color: var(--text-sub);
  text-align: center;
}

.arena-lead-mid .is-win { color: var(--bn-green); }
.arena-lead-mid .is-red { color: var(--bn-red); }

.arena-tug-track {
  display: flex;
  height: 5px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--bg-card-2);
  gap: 2px;
}

.arena-tug-me,
.arena-tug-opp {
  height: 100%;
  background: var(--border-line);
  transition: width 0.32s ease, background-color 0.22s ease;
}

.arena-tug-me.is-leading,
.arena-tug-opp.is-leading {
  background: linear-gradient(90deg, #F0B90B, #FCD535);
}

/* Opponent Upper Zone */
.arena-opp-zone {
  position: relative;
  z-index: 5;
  flex-shrink: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-line);
  border-radius: 12px;
  padding: 8px 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.arena-zone-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.arena-zone-lbl {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-sub);
}

.arena-zone-status {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--bn-yellow);
}

.arena-zone-sum {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-main);
  font-variant-numeric: tabular-nums;
}

.arena-zone-sum.is-win {
  color: var(--bn-yellow);
}

.arena-opp-packs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  height: 118px;
}

.arena-opp-pack-slot {
  width: 74px;
  height: 113px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.arena-opp-pack-slot .pack-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.55));
}

.arena-opp-packs.is-opp-entering .arena-opp-pack-slot {
  animation: heroPackDropBounce 0.76s linear forwards;
}

.arena-opp-packs.is-opp-ripping .arena-opp-pack-slot {
  animation: battlePackShake 0.14s linear infinite;
}

.arena-opp-cards {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.arena-opp-slab-card {
  position: relative;
  width: 124px;
  border-radius: 10px;
  padding: 5px 5px 6px;
  background: var(--bg-page);
  border: 1px solid var(--border-line);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.arena-opp-slab-card .slab-case--studio {
  position: relative;
  z-index: 1;
  isolation: isolate;
  width: 112px;
  aspect-ratio: 600 / 1012;
  flex-shrink: 0;
}

.arena-opp-slab-card .slab-top-label--studio {
  padding: 2.5px 4.5px !important;
}
.arena-opp-slab-card .slab-label-line1 { font-size: 5.6px; line-height: 1.1; }
.arena-opp-slab-card .slab-label-line2 { font-size: 6.4px; line-height: 1.1; }
.arena-opp-slab-card .slab-label-line3 { font-size: 5.2px; line-height: 1.1; }
.arena-opp-slab-card .slab-grade-txt { font-size: 5.2px; line-height: 1; }
.arena-opp-slab-card .slab-grade-val { font-size: 9.2px; line-height: 1; }
.arena-opp-slab-card .slab-psa-logo { font-size: 6px; }
.arena-opp-slab-card .slab-cert-num { font-size: 5.2px; }

.arena-slab-price-pill {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-main);
  font-variant-numeric: tabular-nums;
}

/* Mid Round Banner */
.arena-mid-banner {
  position: relative;
  z-index: 5;
  flex-shrink: 0;
  text-align: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border-line);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-main);
}

.arena-mid-banner.is-me-win {
  background: rgba(14, 203, 129, 0.14);
  border-color: rgba(14, 203, 129, 0.45);
  color: var(--bn-green);
}

.arena-mid-banner.is-opp-win {
  background: rgba(246, 70, 93, 0.12);
  border-color: rgba(246, 70, 93, 0.42);
  color: var(--bn-red);
}

.arena-mid-banner.is-final,
.arena-mid-banner.is-ripping {
  background: rgba(252, 213, 53, 0.14);
  border-color: rgba(252, 213, 53, 0.5);
  color: var(--bn-yellow);
}

/* Bottom Protagonist Zone (Large Hand-Rip Pack & Giant 3D Flip Slabs) */
.arena-my-zone {
  position: relative;
  z-index: 6;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.arena-my-zone.is-revealed {
  flex: 0 0 auto;
  justify-content: flex-start;
  margin-top: 2px;
}

.arena-zone-head.is-my {
  padding: 0 4px;
}

/* Arena Hero Pack Stage (1:1 Main-Site Entrance, Float, Reflection, Sheen & Downward-Pull Charge) */
.arena-hero-stage {
  width: 100%;
  flex: 1;
  min-height: 230px;
  justify-content: center;
  touch-action: none;
  cursor: grab;
}

.arena-hero-drop-zone {
  padding: 8px 0 0;
  clip-path: inset(-12px -90px -60px -90px);
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.arena-hero-drop-zone.is-pulling-down {
  transition: none;
}

.arena-hero-stage .hero-ambient-aura {
  width: 440px;
  height: 390px;
  top: 48%;
}

.arena-hero-stack {
  width: 190px;
  height: 292px;
  animation: none;
}

.arena-hero-stack.is-entering {
  animation: heroPackDropBounce 0.92s linear forwards;
}

.arena-hero-stack.is-pulling {
  animation: none !important;
}

.arena-hero-shadow {
  width: 172px;
  height: 20px;
  margin-top: 2px;
  margin-bottom: -6px;
}

.arena-hero-reflection {
  width: 190px;
  height: 52px;
  margin-top: 8px;
  animation: none;
}

.arena-hero-reflection.is-entering {
  animation: heroReflectEnter 0.92s linear forwards;
}

.arena-hero-reflection .pack-reflection-img {
  width: 190px;
  height: 292px;
  top: -2px;
  left: 0;
}

.arena-count-tag {
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border-line);
  color: var(--text-main);
  font-size: 10.5px;
  font-weight: 800;
}

.arena-pull-hint {
  position: relative;
  z-index: 3;
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-sub);
}

.arena-pull-chevron {
  display: inline-block;
  color: var(--bn-yellow);
  font-weight: 900;
  animation: battlePullBob 1.3s ease-in-out infinite;
}

@keyframes battlePullBob {
  0%, 100% { transform: translateY(-1px); opacity: 0.75; }
  50% { transform: translateY(3px); opacity: 1; }
}

/* My Giant Revealed Slabs */
.arena-my-slabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: center;
  justify-items: center;
}

.arena-hero-slab-card {
  position: relative;
  width: 100%;
  max-width: 174px;
  background: var(--bg-card);
  border: 1px solid var(--border-line);
  border-radius: 12px;
  padding: 8px 6px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.arena-hero-slab-inner {
  position: relative;
  z-index: 1;
  isolation: isolate;
  display: flex;
  justify-content: center;
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
}

.arena-hero-slab-inner .slab-case--studio {
  position: relative;
  z-index: 1;
  isolation: isolate;
  width: 140px;
  aspect-ratio: 600 / 1012;
  flex-shrink: 0;
}

.arena-hero-slab-card .slab-top-label--studio {
  padding: 3px 5px !important;
}
.arena-hero-slab-card .slab-grade-val {
  font-size: 10px;
  line-height: 1;
}

.arena-slab-sheen {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, transparent 28%, rgba(255, 255, 255, 0.28) 50%, transparent 72%);
  transform: translateX(-120%);
  animation: battleSlabSweep 0.72s 0.22s ease-out forwards;
}

@keyframes battleSlabSweep {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(120%); }
}

.is-flip-in {
  animation: battleSlabFlipIn 0.44s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes battleSlabFlipIn {
  0% { opacity: 0; transform: perspective(900px) rotateY(84deg) scale(0.88); }
  100% { opacity: 1; transform: perspective(900px) rotateY(0deg) scale(1); }
}

.arena-hero-slab-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.arena-tier-dot {
  padding: 1px 6px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 800;
  background: var(--bg-card-2);
  color: var(--text-main);
}

.arena-tier-dot.is-tier-l { background: rgba(252, 213, 53, 0.2); color: #FCD535; }
.arena-tier-dot.is-tier-s { background: rgba(236, 72, 153, 0.2); color: #F472B6; }
.arena-tier-dot.is-tier-a { background: rgba(168, 85, 247, 0.2); color: #C084FC; }
.arena-tier-dot.is-tier-b { background: rgba(59, 130, 246, 0.2); color: #93C5FD; }
.arena-tier-dot.is-tier-c { background: rgba(20, 184, 166, 0.2); color: #5EEAD4; }

.arena-hero-fmv {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text-main);
  font-variant-numeric: tabular-nums;
}

.arena-opp-slab-card.is-tier-l,
.arena-hero-slab-card.is-tier-l {
  border-color: rgba(252, 213, 53, 0.92);
  background: linear-gradient(165deg, #2D2410 0%, #1B1610 45%, #11161F 100%);
  box-shadow:
    0 0 18px rgba(252, 213, 53, 0.42),
    0 0 34px rgba(245, 158, 11, 0.20),
    inset 0 0 14px rgba(254, 240, 138, 0.14);
  animation: multiGlowPulseL 2.4s ease-in-out infinite;
}
.arena-opp-slab-card.is-tier-s,
.arena-hero-slab-card.is-tier-s {
  border-color: rgba(244, 114, 182, 0.88);
  background: linear-gradient(165deg, #2E1525 0%, #1C121C 45%, #11161F 100%);
  box-shadow:
    0 0 15px rgba(244, 114, 182, 0.36),
    0 0 28px rgba(236, 72, 153, 0.16),
    inset 0 0 12px rgba(251, 207, 232, 0.12);
  animation: multiGlowPulseS 2.8s ease-in-out infinite;
}
.arena-opp-slab-card.is-tier-a,
.arena-hero-slab-card.is-tier-a {
  border-color: rgba(168, 85, 247, 0.78);
  background: linear-gradient(165deg, #221734 0%, #171324 45%, #11161F 100%);
  box-shadow:
    0 0 12px rgba(168, 85, 247, 0.28),
    inset 0 0 10px rgba(216, 180, 254, 0.08);
}
.arena-opp-slab-card.is-tier-b,
.arena-hero-slab-card.is-tier-b {
  border-color: rgba(56, 189, 248, 0.68);
  background: linear-gradient(165deg, #13233D 0%, #111827 55%, #0F141C 100%);
}
.arena-opp-slab-card.is-tier-c,
.arena-hero-slab-card.is-tier-c {
  border-color: rgba(20, 184, 166, 0.45);
}

.arena-opp-slab-card .summary-tier-pill,
.arena-hero-slab-card .summary-tier-pill {
  top: -9px;
  right: 6px;
  z-index: 25;
}

.arena-opp-slab-card .summary-tier-pill {
  padding: 1.5px 6px;
  font-size: 9.5px;
}

.arena-opp-slab-card.is-tier-l.is-flip-in,
.arena-hero-slab-card.is-tier-l.is-flip-in {
  animation:
    battleSlabFlipIn 0.44s cubic-bezier(0.22, 1, 0.36, 1) both,
    multiGlowPulseL 2.4s ease-in-out 0.44s infinite;
}

.arena-opp-slab-card.is-tier-s.is-flip-in,
.arena-hero-slab-card.is-tier-s.is-flip-in {
  animation:
    battleSlabFlipIn 0.44s cubic-bezier(0.22, 1, 0.36, 1) both,
    multiGlowPulseS 2.8s ease-in-out 0.44s infinite;
}

.arena-opp-slab-card.is-tier-l .arena-slab-price-pill,
.arena-opp-slab-card.is-tier-s .arena-slab-price-pill,
.arena-opp-slab-card.is-tier-a .arena-slab-price-pill,
.arena-opp-slab-card.is-tier-b .arena-slab-price-pill,
.arena-hero-slab-card.is-tier-l .arena-hero-fmv,
.arena-hero-slab-card.is-tier-s .arena-hero-fmv,
.arena-hero-slab-card.is-tier-a .arena-hero-fmv,
.arena-hero-slab-card.is-tier-b .arena-hero-fmv {
  color: #EAECEF;
}

.arena-opp-slab-card.is-tier-l .summary-slot-sheen::after,
.arena-hero-slab-card.is-tier-l .summary-slot-sheen::after {
  background: linear-gradient(90deg, transparent, rgba(254, 249, 195, 0.34), transparent);
  animation: multiSlotSheen 2.8s ease-in-out infinite;
}
.arena-opp-slab-card.is-tier-s .summary-slot-sheen::after,
.arena-hero-slab-card.is-tier-s .summary-slot-sheen::after {
  background: linear-gradient(90deg, transparent, rgba(252, 231, 243, 0.26), transparent);
  animation: multiSlotSheen 3.4s ease-in-out infinite;
}

/* Bottom Swipe-to-Rip Track & Next Round Button */
.arena-bottom-dock {
  position: relative;
  z-index: 8;
  flex-shrink: 0;
  margin-top: auto;
}

.battle-slide-track {
  height: 46px;
}

.battle-slide-track .slide-open-handle {
  width: 38px;
  height: 38px;
}

.arena-next-btn {
  height: 44px;
  font-size: 13.5px;
}

.arena-pulled-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  align-content: start;
}

.arena-hist-empty {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 11px;
  color: var(--text-sub);
  padding: 14px 4px;
  border: 1px dashed var(--border-line);
  border-radius: 8px;
}

.arena-mini-item {
  position: relative;
  border-radius: 7px;
  overflow: hidden;
  background: var(--bg-page);
  border: 1px solid var(--border-line);
  padding: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  cursor: pointer;
}

.arena-mini-item.is-tier-l { border-color: #FCD535; }
.arena-mini-item.is-tier-s { border-color: #EC4899; }
.arena-mini-item.is-tier-a { border-color: #A855F7; }

.arena-mini-item img {
  width: 100%;
  aspect-ratio: 63 / 88;
  object-fit: contain;
  border-radius: 4px;
}

.arena-mini-fmv {
  font-size: 10px;
  font-weight: 800;
  color: var(--text-main);
  font-variant-numeric: tabular-nums;
}

@media (max-height: 780px) {
  .arena-opp-packs { height: 96px; }
  .arena-opp-pack-slot { width: 62px; height: 94px; }
  .arena-hero-stack { width: 162px; height: 248px; }
  .arena-hero-shadow { width: 148px; }
  .arena-hero-reflection { width: 162px; height: 42px; }
  .arena-hero-reflection .pack-reflection-img { width: 162px; height: 248px; }
  .arena-opp-slab-card { width: 112px; }
  .arena-opp-slab-card .slab-case--studio { width: 100px; }
  .arena-hero-slab-card { max-width: 158px; }
  .arena-hero-slab-inner .slab-case--studio { width: 124px; }
}

@media (max-height: 700px) {
  .arena-opp-packs { height: 78px; }
  .arena-opp-pack-slot { width: 52px; height: 78px; }
  .arena-opp-slab-card { width: 96px; }
  .arena-opp-slab-card .slab-case--studio { width: 86px; }
  .arena-hero-stack { width: 132px; height: 202px; }
  .arena-hero-shadow { width: 120px; }
  .arena-hero-reflection { width: 132px; height: 34px; }
  .arena-hero-reflection .pack-reflection-img { width: 132px; height: 202px; }
  .arena-hero-slab-card { max-width: 140px; }
  .arena-hero-slab-inner .slab-case--studio { width: 104px; }
}

/* 6. Result Summary (Aligned with Rank-My-Card + Gold CTA) */
.battle-res-banner {
  border-color: rgba(252, 213, 53, 0.55);
  align-items: center;
  text-align: center;
}

.battle-res-banner.is-loss {
  border-color: rgba(246, 70, 93, 0.45);
}

.battle-res-tag {
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(14, 203, 129, 0.14);
  color: var(--bn-green);
}

.battle-res-banner.is-loss .battle-res-tag {
  background: rgba(246, 70, 93, 0.14);
  color: var(--bn-red);
}

.battle-res-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
}

.battle-res-tie {
  font-size: 11px;
  color: var(--bn-yellow);
}

.battle-res-scores {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 32px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
}

.battle-res-side {
  background: var(--bg-page);
  border: 1px solid var(--border-line);
  border-radius: 10px;
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.battle-res-side.is-winner {
  border-color: rgba(252, 213, 53, 0.65);
  background: rgba(252, 213, 53, 0.08);
}

.battle-res-side .res-lbl {
  font-size: 11px;
  color: var(--text-sub);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.battle-res-side strong {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-main);
  font-variant-numeric: tabular-nums;
}

.battle-res-vs {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-sub);
}

.battle-res-reward-box {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  padding: 9px 10px;
  border-radius: 10px;
  background: rgba(252, 213, 53, 0.09);
  border: 1px solid rgba(252, 213, 53, 0.35);
}

.reward-pack-mini {
  width: 42px;
  height: 62px;
  flex-shrink: 0;
}

.reward-pack-mini .pack-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.reward-title { font-size: 13px; font-weight: 800; color: var(--bn-yellow); }
.reward-sub { font-size: 11px; color: var(--text-main); margin-top: 2px; line-height: 1.35; }
.battle-res-free-note { font-size: 11.5px; color: var(--text-sub); }

.battle-res-power-bar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  border-radius: 9px;
  background: var(--bg-page);
  border: 1px solid var(--border-line);
  font-size: 11.5px;
  color: var(--text-sub);
}

.battle-res-ctas {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.battle-res-sub-ctas {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 8px;
}

.battle-secondary-btn,
.battle-back-btn {
  height: 38px;
  border: 1px solid var(--border-line);
  background: var(--bg-card-2);
  color: var(--text-main);
  border-radius: 10px;
  padding: 0 12px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}

.battle-compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.battle-compare-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.compare-col-head {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-sub);
  text-align: center;
  padding: 4px 6px;
  border-radius: 7px;
  background: var(--bg-card);
  border: 1px solid var(--border-line);
}

.compare-col-head.is-win {
  color: var(--bn-yellow);
  border-color: rgba(252, 213, 53, 0.45);
}

/* Light theme synchronization across all Battle & Power Rank components */
.app-shell.theme-light .rank-subtab.active {
  background: #FFFFFF;
  border-color: #D5DCE4;
  color: #1E2329;
}
.app-shell.theme-light .battle-avatar.is-me,
.app-shell.theme-light .arena-dot-avatar.is-me {
  background: #FEF3C7;
  color: #B45309;
  border-color: #F59E0B;
}
.app-shell.theme-light .battle-vs-badge {
  background: #FFFFFF;
  color: #B45309;
  border-color: #F59E0B;
}
.app-shell.theme-light .battle-rules-trio,
.app-shell.theme-light .battle-power-kpis {
  border-top-color: #E5E7EB;
}
.app-shell.theme-light .metric-col + .metric-col::before {
  background: #E5E7EB;
}
.app-shell.theme-light .battle-streak-hint,
.app-shell.theme-light .battle-vault-title strong.is-gold,
.app-shell.theme-light .battle-rank-link,
.app-shell.theme-light .reward-title,
.app-shell.theme-light .compare-col-head.is-win,
.app-shell.theme-light .battle-cat-lore-badge {
  color: #B45309;
}
.app-shell.theme-light .streak-step.is-reached {
  background: #FEF3C7;
  border-color: #F59E0B;
}
.app-shell.theme-light .streak-step.is-reached .streak-step-n,
.app-shell.theme-light .streak-step.is-reached .streak-step-bonus {
  color: #B45309;
}
.app-shell.theme-light .battle-vault-actions .mine-subtab:not(.is-gold-cta).is-ready {
  background: #FFFFFF;
  color: #1E2329;
  border-color: #D97706;
}
.app-shell.theme-light .arena-intro-overlay {
  background: rgba(248, 250, 252, 0.94);
}
.app-shell.theme-light .tease-blur-bg {
  background: radial-gradient(circle at 50% 40%, rgba(245, 158, 11, 0.14), rgba(241, 245, 249, 0.94));
}
.app-shell.theme-light .arena-skip-btn {
  background: #FEF3C7;
  border-color: #F59E0B;
  color: #B45309;
}
.app-shell.theme-light .arena-side-col.is-leading .arena-side-val {
  color: #B45309;
}
.app-shell.theme-light .arena-pull-chevron {
  color: #B45309;
}
.app-shell.theme-light .arena-pack-count-badge {
  background: #FFFFFF;
}
