* { box-sizing: border-box; margin: 0; padding: 0; user-select: none; -webkit-tap-highlight-color: transparent; }
input, textarea { user-select: text; -webkit-user-select: text; }
html, body {
  width: 100%; height: 100%;
  background: #040507;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "SF Pro Display", sans-serif;
  display: flex; justify-content: center; align-items: center; overflow: hidden;
}

.phone-frame {
  position: relative;
  width: 100%; max-width: 414px;
  height: 100%; max-height: 896px;
  background: #08090c;
  color: #f4f4f5;
  overflow: hidden;
  display: flex; flex-direction: column;
  border: none;
}

.lobby-view {
  flex: 1; display: flex; flex-direction: column; justify-content: space-between;
  padding: 12px 16px 0;
  background: radial-gradient(circle at 50% 42%, #151410 0%, #08090c 68%);
  z-index: 10;
  height: 100%;
}

.tier-tabs {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 8px;
}
.tier-item {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 5px; padding: 8px 4px; border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer; transition: all 0.25s ease;
}
.tier-item.active {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}
.tier-mini-pack {
  position: relative; width: 26px; height: 34px; border-radius: 4px; flex-shrink: 0;
  overflow: hidden; display: flex; justify-content: center; align-items: center;
  background: rgba(255, 255, 255, 0.04);
}
.tier-mini-pack img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; transform: scale(1.32); transition: opacity 0.3s;
}
.tier-info div:first-child { font-size: 12px; font-weight: 700; color: #f4f4f5; }
.tier-info div:last-child { font-size: 11px; color: #71717a; }
.tier-item.active .tier-info div:last-child { color: #a1a1aa; }

.lobby-pack-stage {
  flex: 1; display: flex; justify-content: center; align-items: center; position: relative;
  min-height: 0; overflow: visible;
  /* 不限制高度也不裁剪，让 flex 自然分配空间，卡袋自身用 dvh 控制大小 */
}

.pack-back-glow {
  position: absolute;
  /* 光晕用 dvh 随屏幕高度缩放，position:absolute 不影响布局，overflow:visible 让它自由渗出 */
  width: clamp(220px, 92vw, 380px);
  height: clamp(220px, 52dvh, 410px);
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0.88;
  pointer-events: none;
  z-index: 1;
  transition: background 0.5s ease, opacity 0.5s ease, transform 0.5s ease;
  animation: glowPulse 3.6s ease-in-out infinite;
}
@keyframes glowPulse {
  0%, 100% { transform: scale(0.98); opacity: 0.82; }
  50% { transform: scale(1.1); opacity: 0.98; }
}
.pack-back-glow.glow-bronze {
  background: radial-gradient(circle, rgba(245, 158, 11, 0.92) 0%, rgba(217, 119, 6, 0.65) 38%, rgba(146, 64, 14, 0.28) 62%, transparent 76%);
}
.pack-back-glow.glow-silver {
  background: radial-gradient(circle, rgba(241, 245, 249, 0.88) 0%, rgba(148, 163, 184, 0.62) 38%, rgba(71, 85, 105, 0.28) 62%, transparent 76%);
}
.pack-back-glow.glow-gold {
  background: radial-gradient(circle, rgba(253, 224, 71, 0.95) 0%, rgba(234, 179, 8, 0.68) 38%, rgba(161, 98, 7, 0.3) 62%, transparent 76%);
}
.pack-back-glow.glow-lucky {
  background: radial-gradient(circle, rgba(192, 132, 252, 0.92) 0%, rgba(124, 58, 237, 0.64) 38%, rgba(6, 182, 212, 0.28) 62%, transparent 76%);
}

.pack-spinner-only {
  position: absolute; inset: 0;
  display: flex; justify-content: center; align-items: center;
  pointer-events: none; z-index: 4;
  transition: opacity 0.3s ease;
}
.loader-ring {
  width: 32px; height: 32px; border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, 0.12);
  border-top-color: #facc15;
  animation: spinRing 0.8s linear infinite;
}
@keyframes spinRing {
  to { transform: rotate(360deg); }
}

.hero-pack-wrapper {
  position: relative;
  /* 回归原本饱满尺寸与 dvh 动态视口高度自适应，小屏自动缩紧，大屏饱满挺拔 */
  width: clamp(180px, 72vw, 300px);
  height: clamp(180px, 39dvh, 340px);
  display: flex; justify-content: center; align-items: center;
  margin-top: clamp(-8px, -2.5dvh, -22px);
}

.hero-pack-float-layer {
  position: relative; z-index: 3; width: 100%; height: 100%;
  display: flex; justify-content: center; align-items: center;
  animation: packFloatUp 3.6s ease-in-out infinite;
}
@keyframes packFloatUp {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-9px); }
}

.hero-pack-fan-stack {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.fan-pack-item {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  transform-origin: 50% 120%;
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.32s ease, filter 0.32s ease;
  will-change: transform, opacity;
  pointer-events: none;
}

.fan-pack-item.fan-hidden {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translate3d(0, 22px, 0) scale(0.82) rotate(0deg) !important;
}

.hero-pack-real-img {
  width: 100%; height: 100%; object-fit: contain;
  transform: scale(1.33) translateY(6px);
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.85));
  pointer-events: none; opacity: 0;
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.hero-pack-real-img.loaded {
  opacity: 1; transform: scale(1.36) translateY(0px);
}

.pack-reflection-box {
  position: absolute;
  top: calc(118% - 58px);
  left: 0; right: 0;
  height: 140px;
  overflow: hidden;
  display: flex; justify-content: center; align-items: flex-start;
  pointer-events: none; z-index: 1; opacity: 0;
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.52) 0%, rgba(0,0,0,0.16) 36%, transparent 75%);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.52) 0%, rgba(0,0,0,0.16) 36%, transparent 75%);
}
.pack-reflection-box.loaded { opacity: 1; }

.reflection-counter-float {
  width: clamp(180px, 72vw, 300px);
  height: clamp(180px, 39dvh, 340px);
  display: flex; justify-content: center; align-items: flex-start;
  animation: reflectionFloatDown 3.6s ease-in-out infinite;
}
@keyframes reflectionFloatDown {
  0%, 100% { transform: translateY(0px); opacity: 1; }
  50% { transform: translateY(8px); opacity: 0.72; }
}

#heroPackReflectionStack {
  width: 100%;
  height: 100%;
}

#heroPackReflectionStack .fan-pack-item {
  transform-origin: 50% 0%;
}

.pack-reflection-img {
  width: 100%; height: 100%; object-fit: contain;
  transform-origin: 50% 100%;
  transform: translateY(-100%) scaleY(-1.36) scaleX(1.36);
  filter: blur(1.5px) brightness(0.85);
  pointer-events: none;
}

@media (max-height: 720px) {
  .hero-pack-wrapper {
    height: clamp(160px, 34dvh, 290px);
    margin-top: -6px;
  }
  .hero-pack-real-img.loaded {
    transform: scale(1.22) translateY(0px);
  }
  .pack-reflection-box {
    top: calc(111% - 48px);
    height: 120px;
  }
  .reflection-counter-float {
    height: clamp(160px, 34dvh, 290px);
  }
  .pack-reflection-img {
    transform-origin: 50% 100%;
    transform: translateY(-100%) scaleY(-1.22) scaleX(1.22);
  }
}

.stats-row {
  display: grid; grid-template-columns: repeat(3, 1fr); text-align: center;
  padding: 12px 0; border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.stat-val { font-size: 16px; font-weight: 700; color: #f4f4f5; }
.stat-lbl { font-size: 11px; color: #71717a; margin-top: 2px; }

.balance-qty-row {
  display: flex; justify-content: space-between; align-items: center; padding: 10px 0;
}
.balance-group { display: flex; align-items: center; gap: 6px; }
.balance-pill {
  display: flex; align-items: center; gap: 7px;
  background: #14161b; border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 13px; border-radius: 12px; font-size: 13px; font-weight: 700;
  color: #f4f4f5; cursor: pointer;
}
.usdt-dot {
  width: 18px; height: 18px; border-radius: 50%; background: #26a17b; color: #fff;
  font-size: 11px; display: flex; justify-content: center; align-items: center;
}

.topup-mini-btn {
  display: inline-flex; align-items: center; gap: 3px;
  background: rgba(240, 185, 11, 0.14);
  border: 1px solid rgba(240, 185, 11, 0.36);
  color: #F0B90B;
  height: 36px; padding: 0 11px; border-radius: 12px;
  font-size: 12px; font-weight: 800; cursor: pointer;
  transition: background 0.2s ease, transform 0.12s ease;
}
.topup-mini-btn:hover { background: rgba(240, 185, 11, 0.24); }
.topup-mini-btn:active { transform: scale(0.95); }
.topup-mini-btn svg { width: 13px; height: 13px; }

.qty-box {
  display: flex; align-items: center; gap: 12px;
  background: #14161b; border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4px 8px; border-radius: 12px; font-size: 15px; font-weight: 600; color: #f4f4f5;
  user-select: none;
}
.qty-btn {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #f4f4f5;
  font-size: 16px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s, color 0.15s, opacity 0.15s;
}
.qty-btn:active {
  background: rgba(255, 255, 255, 0.18);
  transform: scale(0.92);
}
.qty-btn.disabled {
  opacity: 0.28;
  cursor: not-allowed;
  pointer-events: none;
}
.qty-num {
  min-width: 18px;
  text-align: center;
  font-size: 15px;
  font-weight: 800;
  color: #facc15;
  display: inline-block;
}

.action-bar-wrap { padding: 6px 0 12px; }
.yellow-slider {
  position: relative; width: 100%; height: 52px;
  background: rgba(250, 204, 21, 0.22);
  border: 1px solid rgba(250, 204, 21, 0.32);
  border-radius: 14px; display: flex; align-items: center; justify-content: center;
  overflow: hidden; transition: background 0.2s, transform 0.1s;
}
.yellow-slider.loading { background: rgba(250, 204, 21, 0.16); }
.yellow-slider.ready {
  background: #facc15; cursor: pointer;
  box-shadow: 0 6px 24px rgba(250, 204, 21, 0.4);
}
.yellow-slider.ready .slider-label { color: #111827; }

.slider-handle {
  position: absolute; left: 4px; width: 44px; height: 44px;
  background: #facc15; color: #111827;
  border-radius: 10px; display: flex; justify-content: center; align-items: center;
  font-weight: 900; font-size: 18px; cursor: grab;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  touch-action: none;
}
.slider-label { font-size: 15px; font-weight: 700; color: #fef08a; pointer-events: none; letter-spacing: 0.5px; }

.bottom-tabbar {
  display: grid; grid-template-columns: repeat(3, 1fr);
  width: calc(100% + 32px);
  margin: 0 -16px;
  height: 68px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 12, 16, 0.95);
  backdrop-filter: blur(12px);
  padding: 8px 0 12px;
  box-sizing: border-box;
  flex-shrink: 0;
}
.bottom-tabbar .nav-link {
  text-decoration: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; height: 100%; width: 100%; line-height: 1;
  color: #71717a; font-size: 11px; font-weight: 500; letter-spacing: 0.4px;
  transition: color 0.2s ease;
}
.bottom-tabbar .nav-link svg { width: 20px; height: 20px; flex-shrink: 0; display: block; }
.bottom-tabbar .nav-link span { line-height: 1; display: block; }
.bottom-tabbar .nav-link.active { color: #facc15; font-weight: 700; }

.topup-backdrop {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0);
  backdrop-filter: blur(0px);
  z-index: 80;
  display: flex; align-items: flex-end;
  visibility: hidden; opacity: 0; pointer-events: none;
  transition: opacity 0.28s ease, background 0.28s ease, backdrop-filter 0.28s ease, visibility 0s linear 0.28s;
}
.topup-backdrop.open {
  visibility: visible; opacity: 1; pointer-events: auto;
  background: rgba(0, 0, 0, 0.68); backdrop-filter: blur(5px);
  transition: opacity 0.28s ease, background 0.28s ease, backdrop-filter 0.28s ease, visibility 0s linear 0s;
}
.topup-sheet {
  width: 100%;
  background: linear-gradient(180deg, #181a24 0%, #0d0f15 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px 22px 0 0;
  padding: 10px 18px 28px;
  display: flex; flex-direction: column; gap: 12px;
  box-shadow: 0 -16px 40px rgba(0, 0, 0, 0.85);
  transform: translateY(100%);
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.topup-backdrop.open .topup-sheet { transform: translateY(0); }

.topup-handle-bar {
  width: 38px; height: 4px; border-radius: 2px;
  background: rgba(255, 255, 255, 0.18); align-self: center; margin-bottom: 2px;
}
.topup-header { display: flex; justify-content: space-between; align-items: flex-start; }
.topup-title { font-size: 17px; font-weight: 800; color: #ffffff; }
.topup-sub { font-size: 11px; color: #9ca3af; margin-top: 3px; }
.topup-close {
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.08); border: none; color: #d4d4d8;
  font-size: 14px; cursor: pointer;
}

.topup-field-label { font-size: 11px; font-weight: 600; color: #a1a1aa; margin-top: 2px; }
.topup-seg-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
#tokenSeg { grid-template-columns: 1fr 1fr; }

.topup-seg {
  height: 36px; border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #d4d4d8; font-size: 12px; font-weight: 700; cursor: pointer;
  transition: all 0.2s ease;
}
.topup-seg.active {
  background: rgba(240, 185, 11, 0.16);
  border-color: #F0B90B; color: #F0B90B;
}

.topup-address-box {
  background: rgba(8, 9, 12, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px; padding: 10px 12px;
  display: flex; flex-direction: column; gap: 6px;
}
.address-top {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; color: #71717a;
}
.copy-addr-btn {
  background: rgba(255, 255, 255, 0.1); border: none; color: #f4f4f5;
  font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 6px; cursor: pointer;
}
.address-text {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px; color: #e4e4e7; word-break: break-all; line-height: 1.4;
}

.topup-presets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.preset-chip {
  height: 36px; border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff; font-size: 12px; font-weight: 700; cursor: pointer;
}
.preset-chip.active {
  background: rgba(240, 185, 11, 0.18);
  border-color: #F0B90B; color: #F0B90B;
}

.topup-confirm-btn {
  margin-top: 4px; width: 100%; height: 46px; border-radius: 12px; border: none;
  background: #F0B90B; color: #090a0d; font-size: 14px; font-weight: 800;
  cursor: pointer; box-shadow: 0 6px 20px rgba(240, 185, 11, 0.35);
  transition: transform 0.12s ease;
}
.topup-confirm-btn:active { transform: scale(0.98); }

.opening-overlay {
  position: absolute;
  top: -2px; left: -2px; right: -2px; bottom: -2px;
  background: radial-gradient(circle at 50% 50%, #111522 0%, #050608 100%);
  color: #ffffff;
  display: none; flex-direction: column; justify-content: space-between;
  z-index: 100; overflow: hidden;
}
.aura-layer {
  position: absolute;
  top: -2px; left: -2px; right: -2px; bottom: -2px;
  background: radial-gradient(circle at 50% 58%, #2563eb 0%, #1d4ed8 32%, #0f172a 75%, #05070c 100%);
  opacity: 0; pointer-events: none; z-index: 1;
}
.aura-layer.rarity-gold {
  background: radial-gradient(circle at 50% 58%, #d97706 0%, #92400e 35%, #1c1917 78%, #050608 100%);
}

#dustCanvas { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
#burstCanvas { position: absolute; inset: 0; pointer-events: none; z-index: 30; }

.lightning-svg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 5; opacity: 0;
  filter: drop-shadow(0 0 12px #38bdf8) drop-shadow(0 0 28px #2563eb);
}

.dark-pack-stage {
  position: absolute; inset: 0; display: flex; justify-content: center; align-items: center; z-index: 20;
}
.burst-pack-wrap {
  position: relative; width: 280px; height: 330px;
  display: flex; justify-content: center; align-items: center;
}
.burst-pack-img {
  width: 100%; height: 100%; object-fit: contain;
  transform: scale(1.32);
  filter: drop-shadow(0 0 28px rgba(251, 191, 36, 0.55));
}
.tear-crack {
  position: absolute; top: 50%; left: 50%; width: 0%; height: 4px;
  background: #ffffff;
  box-shadow: 0 0 20px 6px #fde047, 0 0 40px 12px #ffffff;
  transform: translate(-50%, -50%) rotate(-8deg);
  opacity: 0; z-index: 25;
}

.white-flash {
  position: absolute; inset: 0; background: #ffffff; opacity: 0; pointer-events: none; z-index: 150;
}

.teaser-center-box {
  position: absolute; top: 23%; left: 0; right: 0; text-align: center; z-index: 110;
  pointer-events: none;
}
.teaser-sub { font-size: 14px; color: rgba(255,255,255,0.72); margin-bottom: 6px; letter-spacing: 1px; }
.teaser-main {
  font-size: 36px; font-weight: 800; letter-spacing: 0.5px;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}
.teaser-main.glow-rarity {
  text-shadow: 0 0 24px rgba(255, 255, 255, 0.85), 0 4px 12px rgba(0,0,0,0.6);
}

.summary-top-bar {
  position: absolute; top: 64px; left: 0; right: 0;
  display: flex; justify-content: center; align-items: center; gap: 20px;
  font-size: 14px; font-weight: 600; color: rgba(255,255,255,0.92);
  opacity: 0; z-index: 115;
}
.close-x {
  position: absolute; top: 18px; right: 20px; width: 32px; height: 32px;
  display: none; justify-content: center; align-items: center;
  font-size: 20px; color: rgba(255,255,255,0.7); cursor: pointer; z-index: 130;
}

.slab-unit {
  position: absolute; left: 50%; bottom: 27%;
  width: 244px; height: 398px; perspective: 1400px; z-index: 112; opacity: 0;
  touch-action: none; cursor: grab;
  will-change: transform, opacity;
}
.slab-unit:active { cursor: grabbing; }
.slab-inner {
  width: 100%; height: 100%; position: relative; transform-style: preserve-3d;
  will-change: transform;
}
.slab-side {
  position: absolute; inset: 0; border-radius: 16px; backface-visibility: hidden;
  background: linear-gradient(145deg, rgba(255,255,255,0.28) 0%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.22) 100%);
  backdrop-filter: blur(8px);
  border: 2px solid rgba(255,255,255,0.55);
  box-shadow:
    0 28px 65px rgba(0,0,0,0.8),
    0 8px 20px rgba(0,0,0,0.38),
    inset 0 0 0 1px rgba(255,255,255,0.65),
    inset 0 0 0 4px rgba(255,255,255,0.12),
    inset 0 2px 12px rgba(255,255,255,0.55);
  padding: 12px; display: flex; flex-direction: column;
}

.acrylic-glare {
  position: absolute; inset: 0; border-radius: 15px;
  background: radial-gradient(
    circle at var(--glare-x, 50%) var(--glare-y, 30%),
    rgba(255, 255, 255, 0.38) 0%,
    rgba(255, 255, 255, 0.08) 40%,
    transparent 70%
  );
  pointer-events: none; z-index: 10;
}

.slab-back-side { background: transparent; }
.psa-back-header {
  background: #e5e7eb; color: #111827; border-radius: 6px; padding: 7px 10px;
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px;
  box-shadow: inset 0 0 0 1px #9ca3af;
}
.psa-back-logo {
  font-weight: 900; font-size: 15px; letter-spacing: 1px; color: #1d4ed8; font-style: italic;
}
.psa-barcode {
  font-family: monospace; font-size: 10px; letter-spacing: 0.5px; color: #374151; text-align: right;
}
.barcode-lines {
  height: 12px; width: 78px; margin-bottom: 2px;
  background: repeating-linear-gradient(90deg, #111 0px, #111 2px, transparent 2px, transparent 4px, #111 4px, #111 5px, transparent 5px, transparent 8px);
}
.pokemon-card-back {
  flex: 1;
  border-radius: 8px;
  border: none;
  box-shadow: none;
  background: transparent;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  position: relative; overflow: hidden;
}
.card-back-real-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: none;
  pointer-events: none;
}
.card-back-fallback {
  width: 100%; height: 100%;
  background: radial-gradient(circle at 50% 50%, #38bdf8 0%, #1d4ed8 48%, #1e3a8a 100%);
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  position: relative;
}
.pokeball-swirl {
  width: 110px; height: 110px; border-radius: 50%;
  border: 4px solid rgba(253, 224, 71, 0.85);
  background: linear-gradient(180deg, #ef4444 46%, #111827 46%, #111827 54%, #ffffff 54%);
  display: flex; justify-content: center; align-items: center;
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.7);
}
.pokeball-swirl::after {
  content: ""; width: 26px; height: 26px; border-radius: 50%;
  background: #ffffff; border: 4px solid #111827;
}
.poke-text-top {
  position: absolute; top: 18px; font-weight: 900; font-size: 22px;
  color: #fde047; -webkit-text-stroke: 1.5px #1d4ed8; letter-spacing: 1px;
}

.slab-front-side { transform: rotateY(180deg); }
.psa-front-header {
  background: #ffffff; color: #111827; border: 3px solid #dc2626; border-radius: 6px;
  padding: 5px 8px; display: flex; justify-content: space-between; align-items: center;
  font-size: 9px; font-weight: 800; line-height: 1.25; margin-bottom: 8px;
  box-shadow: inset 0 0 0 1px rgba(220,38,38,0.2);
}
.psa-grade-badge {
  color: #dc2626; text-align: right; font-size: 10px; font-weight: 900;
}
.psa-grade-badge span { display: block; font-size: 16px; line-height: 1; }

.zacian-card-art {
  flex: 1; border-radius: 8px;
  background: linear-gradient(145deg, #0ea5e9 0%, #6366f1 40%, #ec4899 75%, #f59e0b 100%);
  border: none;
  padding: 0; display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden;
}
.card-front-real-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: none;
  pointer-events: none;
}
.card-front-fallback {
  flex: 1; padding: 10px;
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative;
}
.card-header-bar {
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(255,255,255,0.88); color: #0f172a; padding: 3px 7px; border-radius: 4px;
  font-size: 11px; font-weight: 900; z-index: 2;
}
.card-art-hero {
  flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center;
  z-index: 2; text-align: center;
}
.card-art-hero .emoji-art {
  font-size: 68px; filter: drop-shadow(0 10px 18px rgba(0,0,0,0.45));
}
.card-art-sub {
  font-size: 10px; font-weight: 700; color: #fff; background: rgba(15,23,42,0.65);
  padding: 2px 8px; border-radius: 10px; margin-top: 6px;
}
.card-footer-bar {
  background: rgba(15, 23, 42, 0.78); color: #f8fafc; padding: 5px 8px; border-radius: 5px;
  font-size: 9px; display: flex; justify-content: space-between; z-index: 2;
}

.holo-foil-layer {
  position: absolute; inset: -50%;
  background: linear-gradient(
    125deg,
    transparent 20%,
    rgba(255, 255, 255, 0.6) 40%,
    rgba(56, 189, 248, 0.5) 47%,
    rgba(244, 114, 182, 0.5) 53%,
    rgba(253, 224, 71, 0.5) 60%,
    transparent 80%
  );
  mix-blend-mode: color-dodge;
  pointer-events: none; z-index: 5;
  transform: translate(var(--holo-x, 0px), var(--holo-y, 0px));
}

.reveal-footer {
  position: absolute; bottom: 32px; left: 16px; right: 16px;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  z-index: 120;
}

.multi-card-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 2px;
  user-select: none;
}
.pager-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 20px;
  line-height: 1;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s, opacity 0.15s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}
.pager-btn:active {
  transform: scale(0.92);
  background: rgba(250, 204, 21, 0.28);
}
.pager-btn.disabled {
  opacity: 0.25;
  pointer-events: none;
}
.pager-info {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(20, 24, 33, 0.88);
  border: 1px solid rgba(250, 204, 21, 0.32);
  padding: 5px 14px;
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}
.pager-tag {
  font-size: 11px;
  color: #9ca3af;
  font-weight: 600;
}
.pager-counter {
  font-size: 13px;
  font-weight: 800;
  color: #facc15;
  letter-spacing: 0.5px;
}
.valuation-wrap { text-align: center; opacity: 0; transform: translateY(10px); }
.valuation-num {
  font-size: 36px; font-weight: 800; letter-spacing: -0.5px;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 4px 16px rgba(0,0,0,0.4);
}
.valuation-lbl { font-size: 12px; color: rgba(255,255,255,0.72); margin-top: 2px; }

.skip-pill-btn {
  background: rgba(255,255,255,0.16); backdrop-filter: blur(8px);
  color: #fff; border: 1px solid rgba(255,255,255,0.15);
  padding: 10px 30px; border-radius: 10px; font-size: 14px; font-weight: 600; cursor: pointer;
}
.final-btn-pair {
  display: none; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; opacity: 0;
}
.btn-later {
  height: 48px; border-radius: 12px; border: none; background: rgba(255,255,255,0.9);
  color: #111827; font-size: 15px; font-weight: 700; cursor: pointer;
}
.btn-sell {
  height: 48px; border-radius: 12px; border: none; background: #fde047;
  color: #111827; font-size: 15px; font-weight: 700; cursor: pointer;
  display: flex; justify-content: center; align-items: center; gap: 6px;
  box-shadow: 0 6px 20px rgba(250, 204, 21, 0.35);
}