/* === 2S LEGEND • AAA ESPORTS RACING UI SYSTEM === */
:root {
  --bg-void: #040711;
  --bg-deep: #091024;
  --glass: rgba(11, 19, 40, 0.78);
  --glass-strong: rgba(14, 24, 52, 0.9);
  --line: rgba(0, 240, 255, 0.2);
  --line-hot: rgba(255, 190, 11, 0.55);
  --cyan: #00f0ff;
  --cyan-blue: #0088ff;
  --gold: #ffd000;
  --orange: #ff6b00;
  --magenta: #ff2a85;
  --purple: #a855f7;
  --emerald: #00f5a0;
  --text: #f4f8ff;
  --muted: #8ca6d0;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body {
  margin: 0; padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-void);
  color: var(--text);
  min-height: 100dvh;
  overflow-x: hidden;
  position: relative;
}

/* Fullscreen Animated Cyber Background + Perspective Track Grid */
#nitro-bg-canvas {
  position: fixed; inset: 0; width: 100vw; height: 100dvh;
  z-index: 0; pointer-events: none;
}
.cyber-grid-floor {
  position: fixed; left: -25%; right: -25%; bottom: -18%; height: 56dvh;
  z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(0, 240, 255, 0.12) 1px, transparent 1px),
    linear-gradient(to top, rgba(255, 42, 133, 0.14) 1px, transparent 1px);
  background-size: 64px 48px;
  transform: perspective(460px) rotateX(68deg);
  mask-image: radial-gradient(ellipse at 50% 100%, rgba(0,0,0,0.85) 10%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 100%, rgba(0,0,0,0.85) 10%, transparent 72%);
  animation: gridRush 1.6s linear infinite;
}
@keyframes gridRush {
  from { background-position: 0 0; }
  to { background-position: 0 48px; }
}
.ambient-glow {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(circle at 18% 12%, rgba(0, 240, 255, 0.14), transparent 42%),
    radial-gradient(circle at 84% 18%, rgba(255, 107, 0, 0.13), transparent 40%),
    radial-gradient(circle at 50% 90%, rgba(168, 85, 247, 0.12), transparent 48%);
}

.wrap {
  position: relative; z-index: 2;
  max-width: 1220px; margin: 0 auto;
  padding: 16px 18px 64px;
}

/* === TOP ESPORTS HUD NAVBAR === */
.hud-nav {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 12px; padding: 10px 18px; margin-bottom: 20px;
  background: rgba(8, 14, 30, 0.86);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 240, 255, 0.28);
  border-radius: 16px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  position: sticky; top: 10px; z-index: 50;
}
.brand-link {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: inherit;
}
.brand-emblem {
  width: 50px; height: 50px; border-radius: 12px; object-fit: cover;
  border: 1px solid rgba(0, 240, 255, 0.55);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.45);
  transition: transform .25s ease;
}
.brand-link:hover .brand-emblem { transform: scale(1.08) rotate(-3deg); }
.brand-title {
  font-size: 21px; font-weight: 900; font-style: italic;
  letter-spacing: 1px; line-height: 1.05;
  background: linear-gradient(90deg, #fff 0%, var(--gold) 48%, var(--cyan) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.brand-domain {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 800; color: var(--cyan);
  letter-spacing: 1.2px; text-transform: uppercase; margin-top: 2px;
}
.live-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--emerald);
  box-shadow: 0 0 10px var(--emerald);
  animation: pulseDot 1.4s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.45); opacity: 0.55; }
}

.nav-actions {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.nav-tab {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 15px; border-radius: 10px;
  font-size: 13px; font-weight: 800; letter-spacing: 0.4px;
  color: #c8dcff; text-decoration: none; cursor: pointer;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all .2s ease;
}
.nav-tab:hover {
  color: #fff; border-color: var(--cyan);
  background: rgba(0, 240, 255, 0.12);
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.25);
  transform: translateY(-1px);
}
.nav-tab.active {
  color: #06101f; font-weight: 900;
  background: linear-gradient(135deg, var(--cyan), #48cae4);
  border-color: transparent;
  box-shadow: 0 0 22px rgba(0, 240, 255, 0.45);
}
.lang-pill {
  padding: 7px 11px; font-size: 12px; border-radius: 9px;
  background: rgba(15, 25, 52, 0.9); color: var(--muted);
  border: 1px solid rgba(255,255,255,0.12); cursor: pointer; font-weight: 800;
}
.lang-pill.active {
  color: var(--gold); border-color: var(--gold);
  background: rgba(255, 208, 0, 0.14);
}

/* Equalizer BGM Button */
.bgm-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: 9px; cursor: pointer;
  background: rgba(168, 85, 247, 0.14); border: 1px solid rgba(168, 85, 247, 0.45);
  color: #e9d5ff; font-size: 12px; font-weight: 800;
}
.eq-bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.eq-bars span {
  width: 3px; height: 4px; background: var(--cyan); border-radius: 2px;
  transition: height .2s;
}
.bgm-btn.playing .eq-bars span:nth-child(1) { animation: eqBounce .55s infinite alternate; }
.bgm-btn.playing .eq-bars span:nth-child(2) { animation: eqBounce .4s .15s infinite alternate; }
.bgm-btn.playing .eq-bars span:nth-child(3) { animation: eqBounce .65s .05s infinite alternate; }
@keyframes eqBounce { from { height: 3px; } to { height: 12px; } }

/* === SKEWED ESPORTS RACING BUTTONS === */
.btn-nitro, .btn-cyber, .btn-royal {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 24px; border: 0; border-radius: 10px;
  font-weight: 900; font-size: 14px; letter-spacing: 0.7px; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transform: skewX(-9deg);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.btn-nitro > *, .btn-cyber > *, .btn-royal > * { transform: skewX(9deg); }
.btn-nitro {
  background: linear-gradient(135deg, #ffd000 0%, #ff7b00 55%, #ff2a5f 100%);
  color: #090d16;
  box-shadow: 0 8px 28px rgba(255, 123, 0, 0.5), 0 0 0 1px rgba(255, 240, 150, 0.6) inset;
}
.btn-cyber {
  background: linear-gradient(135deg, #00f0ff 0%, #0077ff 100%);
  color: #041024;
  box-shadow: 0 8px 26px rgba(0, 180, 255, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.45) inset;
}
.btn-royal {
  background: linear-gradient(135deg, #c084fc 0%, #7e22ce 100%);
  color: #fff;
  box-shadow: 0 8px 26px rgba(168, 85, 247, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.35) inset;
}
.btn-nitro:hover, .btn-cyber:hover, .btn-royal:hover {
  transform: skewX(-9deg) translateY(-2px) scale(1.02);
  filter: brightness(1.1);
}
/* Foil shine sweep */
.btn-nitro::after, .btn-cyber::after, .btn-royal::after {
  content: ""; position: absolute; top: -50%; bottom: -50%; width: 36px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.7), transparent);
  transform: rotate(25deg) translateX(-260px);
  animation: btnSweep 3.2s ease-in-out infinite;
}
@keyframes btnSweep {
  0%, 60% { transform: rotate(25deg) translateX(-260px); }
  100% { transform: rotate(25deg) translateX(480px); }
}

/* === HOLOGRAPHIC 3D TILT CARDS === */
.holo-card {
  position: relative; overflow: hidden;
  background: var(--glass);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55);
  transition: border-color .25s ease, box-shadow .25s ease, transform .18s ease-out;
  transform-style: preserve-3d;
}
.holo-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(0, 240, 255, 0.13), transparent 60%);
  opacity: 0; transition: opacity .25s;
}
.holo-card:hover::before { opacity: 1; }
.holo-card:hover {
  border-color: rgba(0, 240, 255, 0.55);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.7), 0 0 28px rgba(0, 240, 255, 0.18);
}
.holo-card.gold-edge { border-color: rgba(255, 208, 0, 0.42); }
.holo-card.gold-edge:hover {
  border-color: var(--gold);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.7), 0 0 32px rgba(255, 208, 0, 0.25);
}

/* Badges & Visual Chips */
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.v-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 800; letter-spacing: 0.3px;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.3);
  color: #dffaff;
}
.v-chip.gold {
  background: rgba(255, 208, 0, 0.13);
  border-color: rgba(255, 208, 0, 0.45);
  color: #ffe875;
}
.v-chip.hot {
  background: linear-gradient(90deg, rgba(255, 42, 133, 0.25), rgba(255, 107, 0, 0.25));
  border-color: rgba(255, 42, 133, 0.55);
  color: #ffb3d1;
}

.sec-head {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 10px; margin: 28px 0 14px;
}
.sec-title {
  margin: 0; font-size: clamp(18px, 2.4vw, 24px);
  font-weight: 900; font-style: italic; letter-spacing: 0.8px;
  text-transform: uppercase;
  display: flex; align-items: center; gap: 10px;
}
.sec-title span.accent { color: var(--cyan); }
.sec-title span.gold { color: var(--gold); }

/* === HERO STAGE (/portal) === */
.hero-stage {
  display: grid; grid-template-columns: 1.35fr 1fr; gap: 18px;
  margin-bottom: 22px;
}
@media (max-width: 920px) { .hero-stage { grid-template-columns: 1fr; } }

.banner-carousel {
  position: relative; border-radius: 22px; overflow: hidden;
  min-height: 350px; border: 1px solid rgba(0, 240, 255, 0.38);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.72), 0 0 38px rgba(0, 240, 255, 0.16);
  background: #060a16;
}
.slide-item {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity .65s ease, transform 5s ease;
  transform: scale(1.04);
}
.slide-item.active { opacity: 1; transform: scale(1); z-index: 1; }
.slide-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slide-overlay {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(0deg, rgba(4,7,17,0.95) 0%, rgba(4,7,17,0.45) 46%, rgba(4,7,17,0.12) 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 26px;
}
.hero-headline {
  margin: 6px 0 12px;
  font-size: clamp(24px, 3.4vw, 38px); font-weight: 900; font-style: italic;
  line-height: 1.05; text-transform: uppercase;
  text-shadow: 0 4px 22px rgba(0, 0, 0, 0.95);
}
.slide-dots {
  position: absolute; top: 16px; right: 18px; z-index: 4;
  display: flex; gap: 7px;
}
.slide-dot {
  width: 24px; height: 6px; border-radius: 4px; cursor: pointer;
  background: rgba(255,255,255,0.28); border: 0; transition: all .25s;
}
.slide-dot.active { width: 40px; background: var(--gold); box-shadow: 0 0 12px var(--gold); }

/* Right Portal Action Pods */
.portal-pods { display: grid; grid-template-rows: 1fr 1fr; gap: 16px; }
.action-pod {
  position: relative; overflow: hidden; border-radius: 20px;
  padding: 22px; text-decoration: none; color: inherit;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  background: linear-gradient(135deg, rgba(16, 29, 64, 0.92), rgba(8, 15, 34, 0.95));
  border: 1px solid rgba(0, 240, 255, 0.32);
  box-shadow: 0 16px 38px rgba(0,0,0,0.55);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.action-pod:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: var(--gold);
  box-shadow: 0 20px 44px rgba(0,0,0,0.75), 0 0 30px rgba(255, 208, 0, 0.25);
}
.action-pod .pod-art {
  width: 108px; height: 108px; object-fit: contain; flex-shrink: 0;
  filter: drop-shadow(0 10px 18px rgba(0, 240, 255, 0.4));
  animation: floatArt 3.2s ease-in-out infinite;
}
@keyframes floatArt {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(-2deg); }
}

/* === 3D INTERACTIVE GARAGE TURNTABLE === */
.garage-grid {
  display: grid; grid-template-columns: 1.25fr 1fr; gap: 20px; align-items: stretch;
}
@media (max-width: 900px) { .garage-grid { grid-template-columns: 1fr; } }

.stage-3d-box {
  position: relative; min-height: 340px; border-radius: 18px; overflow: hidden;
  background: radial-gradient(circle at 50% 62%, rgba(0, 240, 255, 0.22), rgba(7, 12, 28, 0.96) 68%);
  border: 1px solid rgba(0, 240, 255, 0.35);
  display: flex; align-items: center; justify-content: center;
}
#kart-3d-canvas {
  width: 100%; height: 340px; display: block; cursor: grab;
}
#kart-3d-canvas:active { cursor: grabbing; }
.stage-hud-top {
  position: absolute; top: 14px; left: 16px; right: 16px;
  display: flex; justify-content: space-between; align-items: center;
  pointer-events: none;
}
.tier-emblem {
  font-size: 28px; font-weight: 900; font-style: italic;
  padding: 2px 14px; border-radius: 10px;
  background: linear-gradient(135deg, #ffd000, #ff5400);
  color: #090d16; box-shadow: 0 0 22px rgba(255, 160, 0, 0.65);
}
.stage-hud-bottom {
  position: absolute; bottom: 12px; left: 16px; right: 16px;
  display: flex; justify-content: space-between; align-items: center;
}
.drag-hint {
  font-size: 11px; font-weight: 800; color: var(--cyan);
  background: rgba(4, 9, 22, 0.78); padding: 5px 11px;
  border-radius: 99px; border: 1px solid rgba(0, 240, 255, 0.3);
}

/* Animated Stat Bars & Roster Thumbnails */
.stat-row { margin-bottom: 11px; }
.stat-lbl {
  display: flex; justify-content: space-between;
  font-size: 12px; font-weight: 800; text-transform: uppercase;
  margin-bottom: 5px; color: #cfe2ff;
}
.stat-track {
  height: 9px; border-radius: 99px; background: rgba(255,255,255,0.08);
  overflow: hidden; position: relative;
}
.stat-fill {
  height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, var(--cyan), var(--gold), var(--orange));
  box-shadow: 0 0 14px var(--cyan);
  width: 0%; transition: width .55s cubic-bezier(.22,1,.36,1);
}
.kart-thumbs {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 14px;
}
.kart-thumb {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px; padding: 8px 6px; text-align: center; cursor: pointer;
  transition: all .18s ease;
}
.kart-thumb img { width: 62px; height: 62px; object-fit: contain; display: block; margin: 0 auto 4px; transition: transform .2s; }
.kart-thumb:hover img { transform: scale(1.12); }
.kart-thumb span { display: block; font-size: 11px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kart-thumb.active {
  border-color: var(--gold);
  background: linear-gradient(180deg, rgba(255, 208, 0, 0.18), rgba(0, 240, 255, 0.08));
  box-shadow: 0 0 18px rgba(255, 208, 0, 0.3);
}

/* === TRACK STRIP & CHANNEL PILLS === */
.track-strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(195px, 1fr)); gap: 12px;
}
.track-pill {
  padding: 14px 16px; border-radius: 15px;
  background: linear-gradient(135deg, rgba(16, 28, 60, 0.85), rgba(9, 15, 32, 0.9));
  border: 1px solid rgba(0, 240, 255, 0.22);
  display: flex; align-items: center; gap: 12px;
  transition: transform .2s, border-color .2s;
}
.track-pill:hover { transform: translateY(-3px); border-color: var(--cyan); }
.track-pill img { width: 46px; height: 46px; object-fit: contain; filter: drop-shadow(0 0 8px rgba(255,208,0,0.4)); }
.stars { color: var(--gold); font-size: 12px; letter-spacing: 1px; }

/* === DOWNLOAD PORTAL: 4 VISUAL PODS + RGB COCKPIT KEYBOARD === */
.dl-grid-4 {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(265px, 1fr)); gap: 16px;
}
.platform-icon-ring {
  width: 68px; height: 68px; border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; margin-bottom: 12px;
  background: linear-gradient(135deg, rgba(0,240,255,0.2), rgba(0,119,255,0.08));
  border: 1px solid rgba(0,240,255,0.45);
  box-shadow: 0 0 24px rgba(0,240,255,0.25);
}
.step-flow {
  display: flex; align-items: center; justify-content: space-between;
  gap: 6px; margin-top: 14px; padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.step-node {
  flex: 1; text-align: center; padding: 8px 4px; border-radius: 10px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  font-size: 11px; font-weight: 800; color: #dbe9ff;
}
.step-node b { display: block; color: var(--cyan); font-size: 13px; margin-bottom: 2px; }

/* Interactive RGB Keyboard Deck */
.rgb-deck {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 20px; padding: 24px;
}
.key-clusters { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-end; }
.keycap {
  min-width: 54px; height: 54px; padding: 0 14px;
  border-radius: 12px; cursor: pointer; user-select: none;
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  background: linear-gradient(180deg, #1b2c58, #0f1936);
  border: 1px solid rgba(0, 240, 255, 0.4);
  box-shadow: 0 5px 0 #070d1e, 0 0 16px rgba(0, 240, 255, 0.15);
  font-weight: 900; font-size: 14px; color: #fff;
  transition: transform .08s ease, box-shadow .08s ease, border-color .15s;
}
.keycap small { font-size: 9px; color: var(--cyan); letter-spacing: 0.5px; text-transform: uppercase; }
.keycap.wide { min-width: 118px; border-color: rgba(255, 208, 0, 0.55); }
.keycap.wide small { color: var(--gold); }
.keycap.space { min-width: 168px; border-color: rgba(255, 107, 0, 0.65); }
.keycap.space small { color: #ff9e44; }
.keycap:hover, .keycap.pressed {
  transform: translateY(4px);
  border-color: #fff;
  background: linear-gradient(135deg, var(--cyan-blue), var(--magenta));
  box-shadow: 0 1px 0 #070d1e, 0 0 28px var(--cyan);
}
.hud-telemetry {
  min-width: 240px; flex: 1; padding: 18px; border-radius: 16px;
  background: radial-gradient(circle at center, rgba(255, 107, 0, 0.16), rgba(8, 14, 30, 0.92));
  border: 1px solid rgba(255, 208, 0, 0.38); text-align: center;
}
.speed-readout {
  font-size: 40px; font-weight: 900; font-style: italic; line-height: 1;
  color: var(--gold); text-shadow: 0 0 22px rgba(255, 180, 0, 0.7);
}

/* === TOP-UP CASH SHOP: GEM CHEST CARDS & LASER QR === */
.shop-layout {
  display: grid; grid-template-columns: 1.35fr 1fr; gap: 20px; align-items: start;
}
@media (max-width: 920px) { .shop-layout { grid-template-columns: 1fr; } }

.chest-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(195px, 1fr)); gap: 14px;
}
.chest-card {
  position: relative; overflow: hidden; cursor: pointer;
  border-radius: 18px; padding: 18px 14px 16px; text-align: center;
  background: linear-gradient(180deg, rgba(20, 34, 72, 0.9), rgba(9, 16, 36, 0.95));
  border: 1.5px solid rgba(0, 240, 255, 0.25);
  transition: all .2s ease;
}
.chest-card:hover { transform: translateY(-5px); border-color: var(--cyan); }
.chest-card.selected {
  border-color: var(--gold);
  background: radial-gradient(circle at 50% 25%, rgba(255, 208, 0, 0.24), rgba(14, 24, 52, 0.96) 70%);
  box-shadow: 0 0 32px rgba(255, 208, 0, 0.35), inset 0 0 18px rgba(255, 208, 0, 0.15);
}
.bonus-ribbon {
  position: absolute; top: 10px; right: -28px;
  background: linear-gradient(90deg, #ff2a85, #ff7b00);
  color: #fff; font-size: 10px; font-weight: 900;
  padding: 3px 30px; transform: rotate(35deg);
  box-shadow: 0 2px 10px rgba(255, 42, 133, 0.5);
}
.chest-art {
  width: 82px; height: 82px; object-fit: contain; margin: 4px auto 8px; display: block;
  filter: drop-shadow(0 8px 16px rgba(0, 240, 255, 0.4));
  transition: transform .25s ease;
}
.chest-card:hover .chest-art, .chest-card.selected .chest-art {
  transform: scale(1.12) translateY(-3px);
}
.xu-amount {
  font-size: 22px; font-weight: 900; font-style: italic; color: #fff;
}
.price-pill {
  margin-top: 10px; display: inline-block; width: 100%;
  padding: 8px 12px; border-radius: 10px;
  background: rgba(255, 208, 0, 0.16); border: 1px solid rgba(255, 208, 0, 0.45);
  color: var(--gold); font-weight: 900; font-size: 14px;
}
.chest-card.selected .price-pill {
  background: linear-gradient(135deg, #ffd000, #ff7b00); color: #090d16; border-color: transparent;
}

/* Laser QR Scanner Frame */
.qr-scanner-wrap {
  position: relative; display: inline-block; padding: 12px;
  background: #fff; border-radius: 16px; margin: 12px auto;
  box-shadow: 0 0 34px rgba(0, 240, 255, 0.4);
  overflow: hidden;
}
.qr-scanner-wrap img { width: 220px; height: 220px; object-fit: contain; display: block; }
.qr-laser {
  position: absolute; left: 8px; right: 8px; height: 3px;
  background: linear-gradient(90deg, transparent, #00f0ff, #ff2a85, #00f0ff, transparent);
  box-shadow: 0 0 14px #00f0ff;
  animation: scanLaser 2.2s ease-in-out infinite alternate;
}
@keyframes scanLaser {
  from { top: 10px; }
  to { top: calc(100% - 14px); }
}
.copy-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 8px; cursor: pointer;
  background: rgba(0, 240, 255, 0.14); border: 1px solid rgba(0, 240, 255, 0.4);
  color: var(--cyan); font-size: 12px; font-weight: 800;
}
.copy-chip:hover { background: var(--cyan); color: #051024; }
