/* ============================================================================
   Empress Pokemon 2D Arena - True Black (#000000) Design System
   Uses var(--brand-accent), Outfit/Inter typography, Radial Cooldown Sweeps
   ============================================================================ */

:root {
  --bg-true-black: #000000;
  --surface-card: rgba(8, 12, 20, 0.65);
  --surface-elevated: rgba(16, 24, 38, 0.72);
  --surface-border: rgba(255, 255, 255, 0.14);
  --surface-border-glass: rgba(255, 255, 255, 0.22);
  --glass-specular: inset 0 1px 1px 0 rgba(255, 255, 255, 0.22), inset 0 -1px 1px 0 rgba(0, 0, 0, 0.4);
  --glass-glow: 0 12px 36px -4px rgba(0, 245, 212, 0.16), 0 4px 16px rgba(0, 0, 0, 0.65);
  --glass-blur: blur(24px) saturate(180%);
  --brand-accent: #00f5d4;
  --brand-accent-soft: rgba(0, 245, 212, 0.16);
  --brand-crimson: #ff4d6d;
  --brand-gold: #f7d02c;
  --text-primary: #ffffff;
  --text-muted: #94a3b8;
  --font-display: "Outfit", "Inter", "Roboto", sans-serif;
  --font-body: "Inter", "Roboto", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  min-height: 100%;
  background: var(--bg-true-black);
  color: var(--text-primary);
  font-family: var(--font-body);
  overflow-x: hidden;
  scroll-behavior: smooth;
  user-select: none;
}

/* Top Navigation Header (Liquid Glass) */
.app-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--surface-border-glass);
  box-shadow: var(--glass-specular), 0 8px 32px rgba(0, 0, 0, 0.65);
  position: sticky;
  top: 0;
  z-index: 100;
  gap: 12px;
  flex-wrap: wrap;
}

.brand-Identity {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-badge {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 245, 212, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 245, 212, 0.45);
  color: var(--brand-accent);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.08em;
  box-shadow: 0 0 14px rgba(0, 245, 212, 0.2);
}

.brand-title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.nav-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-tab {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--text-muted);
  border: 1px solid var(--surface-border);
  padding: 8px 14px;
  border-radius: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.18s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: var(--glass-specular);
}

.nav-tab:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.nav-tab.active {
  color: var(--bg-true-black);
  background: var(--brand-accent);
  border-color: var(--brand-accent);
  box-shadow: 0 0 20px rgba(0, 245, 212, 0.45);
}

/* Screen Views */
.view-section {
  display: none;
  padding: 18px 22px;
  max-width: 1560px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.view-section.active {
  display: block;
}

/* Panels & Cards (Liquid Glass) */
.panel-card {
  background: var(--surface-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--surface-border-glass);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--glass-specular), 0 16px 40px rgba(0, 0, 0, 0.6);
  position: relative;
}

.panel-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 20px;
  right: 20px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  pointer-events: none;
}

.panel-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

/* Buttons & Controls (Liquid Glass) */
.btn {
  background: var(--surface-elevated);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--text-primary);
  border: 1px solid var(--surface-border-glass);
  padding: 9px 15px;
  border-radius: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.18s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: var(--glass-specular), 0 4px 14px rgba(0, 0, 0, 0.4);
}

.btn:hover {
  border-color: var(--brand-accent);
  color: var(--brand-accent);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: var(--glass-specular), 0 0 16px rgba(0, 245, 212, 0.25);
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--brand-accent);
  color: var(--bg-true-black);
  border-color: var(--brand-accent);
  font-weight: 800;
  box-shadow: 0 0 22px rgba(0, 245, 212, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.45);
}

.btn-primary:hover {
  filter: brightness(1.12);
  color: var(--bg-true-black);
  box-shadow: 0 0 28px rgba(0, 245, 212, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.6);
}

.btn-crimson {
  background: var(--brand-crimson);
  color: #ffffff;
  border-color: var(--brand-crimson);
  box-shadow: 0 0 18px rgba(255, 77, 109, 0.35);
}

.input-field,
.select-field {
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text-primary);
  border: 1px solid var(--surface-border-glass);
  padding: 8px 12px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 13px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.6), inset 0 -1px 0 rgba(255, 255, 255, 0.08);
  transition: all 0.15s ease;
}

.input-field:focus,
.select-field:focus {
  outline: none;
  border-color: var(--brand-accent);
  box-shadow: 0 0 0 2px rgba(0, 245, 212, 0.28), inset 0 1px 3px rgba(0, 0, 0, 0.8);
}

/* ============================================================================
   BATTLE ARENA VIEW & LIVE ANIMATED GIF OVERLAY LAYER
   ============================================================================ */
.battle-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.battle-hud-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  background: var(--surface-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--surface-border-glass);
  border-radius: 14px;
  padding: 12px 18px;
  box-shadow: var(--glass-specular), 0 16px 36px rgba(0, 0, 0, 0.7);
}

.team-hud-box {
  display: flex;
  align-items: center;
  gap: 12px;
}

.team-hud-box.right {
  flex-direction: row-reverse;
  text-align: right;
}

.hud-active-gif {
  width: 80px;
  height: 80px;
  object-fit: contain;
  background: var(--bg-true-black);
  border: 1px solid var(--surface-border);
  border-radius: 10px;
  padding: 4px;
  image-rendering: auto;
}

.hud-party-balls {
  display: flex;
  gap: 5px;
  margin-top: 4px;
}

.team-hud-box.right .hud-party-balls {
  justify-content: flex-end;
}

.party-slot-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--bg-true-black);
  border: 1px solid var(--surface-border);
  cursor: pointer;
  padding: 2px;
  position: relative;
}

.party-slot-btn.active {
  border-color: var(--brand-accent);
  box-shadow: 0 0 8px var(--brand-accent-soft);
}

.party-slot-btn.fainted {
  opacity: 0.3;
  filter: grayscale(1);
}

.party-slot-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: auto;
}

.match-clock-box {
  text-align: center;
  min-width: 150px;
}

.match-timer {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 900;
  color: var(--brand-accent);
}

.arena-stage-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  aspect-ratio: 1200 / 760;
  margin: 0 auto;
  background: var(--bg-true-black);
  border: 2px solid var(--surface-border);
  border-radius: 14px;
  overflow: hidden;
}

.arena-stage-container.portrait-mode {
  max-width: 520px;
  aspect-ratio: 9 / 14;
}

#arena-canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: crosshair;
  image-rendering: auto;
}

/* Action Bar: Radial Sweep Cooldown Move Buttons + Mega Evolve + Basic Strike */
.battle-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--surface-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--surface-border-glass);
  border-radius: 14px;
  padding: 12px 18px;
  box-shadow: var(--glass-specular), 0 16px 36px rgba(0, 0, 0, 0.7);
  flex-wrap: wrap;
}

.move-buttons-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  flex: 1;
}

.move-btn {
  position: relative;
  min-width: 145px;
  max-width: 185px;
  flex: 1;
  background: rgba(16, 24, 38, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--surface-border-glass);
  border-radius: 10px;
  padding: 8px 10px;
  color: var(--text-primary);
  cursor: pointer;
  overflow: hidden;
  text-align: left;
  box-shadow: var(--glass-specular);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.move-btn:hover {
  border-color: var(--brand-accent);
  box-shadow: var(--glass-specular), 0 0 16px rgba(0, 245, 212, 0.3);
  transform: translateY(-2px);
}

/* Radial Cooldown Sweep Overlay (Munswarim UX upgrade) */
.move-cooldown-sweep {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: 10px;
  z-index: 2;
}

.move-btn-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  position: relative;
  z-index: 3;
}

.move-btn-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
  position: relative;
  z-index: 3;
}

.cat-badge {
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 800;
}

.cat-physical {
  background: rgba(238, 129, 48, 0.2);
  color: #ee8130;
}

.cat-special {
  background: rgba(99, 144, 240, 0.2);
  color: #6390f0;
}

.cat-status {
  background: rgba(168, 167, 122, 0.2);
  color: #a8a77a;
}

/* Mega Evolution Button */
.mega-evolve-btn {
  background: linear-gradient(135deg, #ff4d6d, #f7d02c);
  color: #000000;
  font-family: var(--font-display);
  font-weight: 900;
  padding: 10px 16px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 16px rgba(255, 77, 109, 0.5);
  animation: megaPulse 1.4s infinite alternate;
}

@keyframes megaPulse {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.05);
  }
}

/* ============================================================================
   TEAM BUILDER & ANIMATED ROSTER BROWSER
   ============================================================================ */
.builder-party-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

@media (max-width: 1100px) {
  .builder-party-strip {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .builder-party-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

.builder-party-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 12px;
  cursor: pointer;
  background: rgba(8, 12, 20, 0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid var(--surface-border-glass);
  box-shadow: var(--glass-specular);
  transition: all 0.18s ease;
  position: relative;
  overflow: hidden;
}

.builder-party-card:hover {
  border-color: var(--brand-accent);
  background: rgba(16, 24, 38, 0.75);
  box-shadow: var(--glass-specular), 0 0 16px rgba(0, 245, 212, 0.25);
  transform: translateY(-2px);
}

.builder-party-card.selected {
  background: rgba(16, 24, 38, 0.85);
  border-color: var(--brand-accent);
  box-shadow: var(--glass-specular), 0 0 20px rgba(0, 245, 212, 0.4);
}

.builder-party-slot-tag {
  position: absolute;
  top: 4px;
  right: 6px;
  font-size: 9px;
  font-weight: 800;
  color: var(--text-muted);
}

.builder-party-card.selected .builder-party-slot-tag {
  color: var(--brand-accent);
}

.teambuilder-grid {
  display: grid;
  grid-template-columns: 1fr 410px;
  gap: 16px;
}

@media (max-width: 1100px) {
  .teambuilder-grid {
    grid-template-columns: 1fr;
  }
}

.roster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 8px;
  max-height: 600px;
  overflow-y: auto;
  padding-right: 4px;
}

.species-card {
  background: var(--bg-true-black);
  border: 1px solid var(--surface-border);
  border-radius: 10px;
  padding: 8px;
  text-align: center;
  cursor: pointer;
  position: relative;
  transition: all 0.14s ease;
}

.species-card:hover,
.species-card.selected {
  border-color: var(--brand-accent);
  background: var(--surface-elevated);
}

.species-card img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  image-rendering: auto;
}

.sprite-tag-pill {
  position: absolute;
  top: 5px;
  right: 5px;
  font-size: 9px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--brand-accent-soft);
  color: var(--brand-accent);
  border: 1px solid var(--brand-accent);
}

.stat-bars-list {
  display: grid;
  gap: 6px;
  margin: 10px 0;
}

.stat-bar-row {
  display: grid;
  grid-template-columns: 44px 36px 1fr 54px;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.stat-bar-track {
  height: 8px;
  background: var(--bg-true-black);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--surface-border);
}

.stat-bar-fill {
  height: 100%;
  background: var(--brand-accent);
  border-radius: 4px;
}

/* ============================================================================
   SMART TOOLTIP (Auto-Clears on pointerleave - Never Gets Stuck)
   ============================================================================ */
#smart-tooltip {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  background: #070a10;
  border: 1px solid var(--brand-accent);
  border-radius: 10px;
  padding: 10px 12px;
  max-width: 290px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.85);
  display: none;
  font-size: 12px;
  line-height: 1.45;
}

/* ============================================================================
   CHAMPIONSHIP VICTORY PODIUM OVERLAY (Boughlean Win Screen Upgrade)
   ============================================================================ */
.victory-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.86);
  backdrop-filter: blur(6px);
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.victory-modal-backdrop.active {
  display: flex;
}

.victory-podium-card {
  background: var(--surface-card);
  border: 2px solid var(--brand-accent);
  border-radius: 18px;
  padding: 28px;
  max-width: 780px;
  width: 100%;
  text-align: center;
  box-shadow: 0 0 50px rgba(0, 245, 212, 0.22);
}

.podium-showcase-row {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 18px;
  margin: 22px 0;
  flex-wrap: wrap;
}

.podium-mon-pedestal {
  background: var(--bg-true-black);
  border: 1px solid var(--surface-border);
  border-radius: 14px;
  padding: 14px;
  min-width: 120px;
}

.podium-mon-pedestal.mvp {
  border-color: var(--brand-gold);
  box-shadow: 0 0 20px rgba(247, 208, 44, 0.25);
  transform: translateY(-8px);
}

.podium-mon-pedestal img {
  width: 76px;
  height: 76px;
  object-fit: contain;
}


/* ============================================================================
   EVOLUTION STAGE ROSTER GRID & 360° FRONT/BACK SPRITE INSPECTOR
   ============================================================================ */
.roster-filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.roster-filter-pill {
  background: var(--bg-true-black);
  color: var(--text-muted);
  border: 1px solid var(--surface-border);
  border-radius: 8px;
  padding: 6px 12px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.14s ease;
}

.roster-filter-pill.active,
.roster-filter-pill:hover {
  background: var(--brand-accent-soft);
  color: var(--brand-accent);
  border-color: var(--brand-accent);
}

.evo-stage-card {
  background: #06090e;
  border-radius: 12px;
  padding: 10px 8px;
  text-align: center;
  cursor: pointer;
  position: relative;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-height: 132px;
}

.evo-stage-card:hover,
.evo-stage-card.selected {
  transform: translateY(-2px);
  box-shadow: 0 0 16px rgba(0, 245, 212, 0.25);
}

.evo-stage-card img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  image-rendering: auto;
  margin: 4px 0;
}

.evo-stage-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 12px;
  color: var(--text-primary);
  line-height: 1.2;
}

.evo-stage-sub {
  font-size: 10px;
  font-weight: 700;
  margin-top: 3px;
}

/* Detailed Inspector Panel (Matches Screenshot 1) */
.inspector-top-grid {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

@media (max-width: 720px) {
  .inspector-top-grid {
    grid-template-columns: 1fr;
  }
}

.sprites-360-box {
  background: var(--bg-true-black);
  border: 1px solid var(--brand-accent);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.sprites-360-pair {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 10px;
  margin: 10px 0;
}

.sprites-360-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 700;
}

.sprites-360-col img,
.sprites-360-col canvas {
  width: 80px;
  height: 80px;
  object-fit: contain;
  image-rendering: auto;
}

.combat-rating-badge {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: 8px;
  padding: 6px 10px;
  color: var(--brand-gold);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 12px;
}

.signature-move-card {
  background: var(--bg-true-black);
  border: 1px solid var(--surface-border);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.signature-move-card.ability-card {
  border-color: var(--brand-accent);
  background: rgba(0, 245, 212, 0.05);
}

.evo-lineage-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 2px;
}

.evo-lineage-node {
  background: var(--bg-true-black);
  border: 1px solid var(--surface-border);
  border-radius: 10px;
  padding: 8px 12px;
  min-width: 102px;
  text-align: center;
  cursor: pointer;
  transition: all 0.14s ease;
}

.evo-lineage-node.current {
  border: 2px solid var(--brand-accent);
  box-shadow: 0 0 14px var(--brand-accent-soft);
}

.evo-lineage-node img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  image-rendering: auto;
}

/* ============================================================================
   Full-Bleed Hero Video Component & Supabase Character Selection Dashboard
   ============================================================================ */
html {
  scroll-behavior: smooth;
}

#view-landing {
  padding-top: 0;
  max-width: 100%;
}

.hero-fullbleed-grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  place-items: center;
  width: calc(100% + 44px);
  margin-left: -22px;
  margin-right: -22px;
  height: auto;
  min-height: 660px;
  position: relative;
  overflow: hidden;
  background: transparent;
  border-bottom: 1px solid var(--surface-border);
  margin-bottom: 28px;
  padding: 24px 0;
}

/* Full-Page Background Video (Fixed across all views at 30% opacity) */
.page-bg-video-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: var(--bg-true-black);
}

.page-bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.3;
}

.page-bg-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.85) 100%);
  pointer-events: none;
}

.hero-video-overlay {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.65) 100%);
  z-index: 2;
  pointer-events: none;
}

.hero-overlay-content {
  grid-area: 1 / 1;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 18px;
  padding: 20px;
  width: 100%;
  max-width: 960px;
  min-width: 0;
}

.hero-retro-headline {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(26px, 5.5vw, 72px);
  line-height: 1.08;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-primary);
  text-shadow: 0 4px 0 var(--bg-true-black), 0 0 28px var(--brand-accent-soft);
  word-break: break-word;
}

.hero-retro-subtitle {
  font-family: var(--font-body);
  font-size: clamp(13px, 1.8vw, 18px);
  color: var(--text-muted);
  max-width: 680px;
  line-height: 1.55;
}

.hero-cta-btn {
  padding: 14px 28px;
  font-size: clamp(13px, 1.6vw, 16px);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 10px;
  box-shadow: 0 0 24px var(--brand-accent-soft);
  max-width: 100%;
}

.supabase-dashboard-section {
  scroll-margin-top: 76px;
  background: var(--bg-true-black);
  border: 1px solid var(--surface-border);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 28px;
  max-width: 100%;
  overflow: hidden;
}

.supabase-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: 20px;
  align-items: stretch;
}

.supabase-dashboard-grid > * {
  min-width: 0;
}

.dashboard-char-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 10px;
}

@media (max-width: 960px) {
  .supabase-dashboard-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .supabase-dashboard-section {
    padding: 14px;
  }
}

/* ============================================================================
   CONTROLLER & GAMEPAD SETTINGS TAB (True Black Design System)
   ============================================================================ */
.controller-settings-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 18px;
  margin-top: 14px;
}

@media (max-width: 980px) {
  .controller-settings-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

.controller-device-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 16px;
}

.controller-device-banner.connected {
  border-color: var(--brand-accent);
  box-shadow: 0 0 16px var(--brand-accent-soft);
}

.controller-visualizer-pad {
  background: #04060a;
  border: 1px solid var(--surface-border);
  border-radius: 16px;
  padding: 20px;
  display: grid;
  gap: 16px;
  position: relative;
}

.ctrl-pad-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 600px) {
  .ctrl-pad-grid {
    grid-template-columns: 1fr;
  }
}

.ctrl-stick-cluster {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: 12px;
  padding: 14px;
  text-align: center;
}

.ctrl-stick-gauge {
  width: 110px;
  height: 110px;
  background: #000000;
  border: 2px solid var(--surface-border);
  border-radius: 50%;
  margin: 10px auto;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.8);
}

.ctrl-stick-gauge::before,
.ctrl-stick-gauge::after {
  content: "";
  position: absolute;
  background: rgba(255, 255, 255, 0.08);
}

.ctrl-stick-gauge::before {
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
}

.ctrl-stick-gauge::after {
  left: 50%;
  top: 0;
  width: 1px;
  height: 100%;
}

.ctrl-stick-gauge.active {
  border-color: var(--brand-accent);
  box-shadow: inset 0 0 12px var(--brand-accent-soft), 0 0 10px var(--brand-accent-soft);
}

.ctrl-stick-pip {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--surface-elevated);
  border: 2px solid var(--text-muted);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: border-color 0.08s ease, background 0.08s ease;
  pointer-events: none;
}

.ctrl-stick-gauge.active .ctrl-stick-pip {
  background: var(--brand-accent);
  border-color: #ffffff;
  box-shadow: 0 0 8px var(--brand-accent);
}

.ctrl-stick-val {
  font-family: monospace;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

.ctrl-buttons-cluster {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: 12px;
  padding: 14px;
}

.ctrl-btn-badge-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 10px;
}

.ctrl-btn-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 36px;
  padding: 0 10px;
  border-radius: 8px;
  background: var(--surface-elevated);
  border: 1px solid var(--surface-border);
  color: var(--text-muted);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 12px;
  transition: all 0.08s ease;
  user-select: none;
}

.ctrl-btn-badge.round {
  width: 38px;
  min-width: 38px;
  height: 38px;
  border-radius: 50%;
}

.ctrl-btn-badge.pressed {
  background: var(--brand-accent);
  color: var(--bg-true-black);
  border-color: #ffffff;
  box-shadow: 0 0 12px var(--brand-accent);
  transform: scale(0.96);
}

.ctrl-trigger-meter {
  height: 6px;
  background: #000000;
  border-radius: 3px;
  overflow: hidden;
  margin-top: 4px;
  width: 100%;
}

.ctrl-trigger-fill {
  height: 100%;
  width: 0%;
  background: var(--brand-accent);
  transition: width 0.06s ease;
}

.ctrl-field-row {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

.ctrl-field-label {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ctrl-range-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: var(--surface-elevated);
  outline: none;
  border: 1px solid var(--surface-border);
}

.ctrl-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--brand-accent);
  cursor: pointer;
  border: 2px solid #ffffff;
  box-shadow: 0 0 8px var(--brand-accent);
}

.ctrl-range-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--brand-accent);
  cursor: pointer;
  border: 2px solid #ffffff;
  box-shadow: 0 0 8px var(--brand-accent);
}

.ctrl-table-ref {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  margin-top: 10px;
}

.ctrl-table-ref th {
  text-align: left;
  padding: 8px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--surface-border);
  font-family: var(--font-display);
}

.ctrl-table-ref td {
  padding: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.ctrl-table-ref tr:last-child td {
  border-bottom: none;
}

/* ============================================================================
   CUSTOM SETTINGS MODAL & SLIDER CONTROLS (TRUE-BLACK DESIGN SYSTEM)
   ============================================================================ */
.custom-settings-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeInModal 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.custom-settings-backdrop.active {
  display: flex;
}

@keyframes fadeInModal {
  from {
    opacity: 0;
    transform: scale(0.97);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.custom-settings-card {
  background: rgba(8, 12, 20, 0.88);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--surface-border-glass);
  border-radius: 18px;
  width: 100%;
  max-width: 720px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--glass-specular), 0 24px 64px rgba(0, 0, 0, 0.95);
  overflow: hidden;
}

.settings-modal-header {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--surface-border);
  background: rgba(255, 255, 255, 0.02);
}

.settings-close-btn {
  background: transparent;
  border: 1px solid var(--surface-border);
  color: var(--text-muted);
  font-size: 16px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.settings-close-btn:hover {
  color: #ffffff;
  border-color: var(--brand-accent);
  background: rgba(0, 245, 212, 0.1);
}

.settings-nav-tabs {
  display: flex;
  gap: 4px;
  padding: 10px 16px 0;
  border-bottom: 1px solid var(--surface-border);
  background: #000000;
  overflow-x: auto;
}

.settings-tab-btn {
  background: transparent;
  border: 1px solid transparent;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 14px;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.settings-tab-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.03);
}

.settings-tab-btn.active {
  color: var(--brand-accent);
  background: rgba(0, 245, 212, 0.06);
  border-bottom-color: var(--brand-accent);
  border-left-color: var(--surface-border);
  border-right-color: var(--surface-border);
  border-top-color: var(--surface-border);
}

.settings-tab-panels {
  padding: 16px 20px;
  overflow-y: auto;
  flex: 1;
}

.settings-panel {
  display: none;
  flex-direction: column;
  gap: 14px;
}

.settings-panel.active {
  display: flex;
}

.settings-field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: border-color 0.15s ease;
}

.settings-field-row:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

.settings-field-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}

.settings-field-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
}

.settings-field-desc {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
}

.settings-select {
  background: #000000;
  border: 1px solid var(--surface-border);
  color: #ffffff;
  padding: 7px 12px;
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  min-width: 170px;
  max-width: 280px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.settings-select:hover,
.settings-select:focus {
  border-color: var(--brand-accent);
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 245, 212, 0.2);
}

.settings-range {
  -webkit-appearance: none;
  appearance: none;
  width: 160px;
  height: 6px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}

.settings-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--brand-accent);
  border: 2px solid #ffffff;
  box-shadow: 0 0 8px var(--brand-accent);
  cursor: pointer;
}

.settings-range::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--brand-accent);
  border: 2px solid #ffffff;
  box-shadow: 0 0 8px var(--brand-accent);
  cursor: pointer;
}

.settings-modal-footer {
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--surface-border);
  background: rgba(255, 255, 255, 0.02);
  gap: 10px;
}

/* ============================================================================
   GLOBAL FOOTER WITH WALKING POKÉMON MARCH (LEFT TO RIGHT)
   ============================================================================ */
.app-global-footer {
  position: relative;
  width: 100%;
  margin-top: 48px;
  background: rgba(4, 8, 14, 0.78);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-top: 1px solid var(--surface-border-glass);
  box-shadow: var(--glass-specular), 0 -12px 40px rgba(0, 0, 0, 0.85);
  z-index: 10;
  overflow: hidden;
}

/* ============================================================================
   ABOVE-FOOTER WALKING POKÉMON MARCH (YOUTUBE TRAILER ACCURATE)
   Placed directly above the global footer, walking right-to-left in side view
   ============================================================================ */
.above-footer-pokemon-march,
.screen-pokemon-march-bar {
  position: relative;
  width: 100%;
  margin-top: 32px;
  margin-bottom: 24px;
  z-index: 10;
  background: transparent;
  border: none;
  box-shadow: none;
  user-select: none;
  overflow: hidden;
}

.screen-march-top-controls {
  display: none !important;
}

.screen-march-ctrl-btn {
  display: none !important;
}

.footer-pokemon-parade-track,
.screen-pokemon-parade-track {
  position: relative;
  width: 100%;
  height: 140px;
  background: transparent;
  border: none;
  box-shadow: none;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.footer-pokemon-march-container,
.screen-pokemon-march-container {
  display: flex;
  align-items: flex-end;
  gap: 0;
  width: max-content;
  will-change: transform;
  animation: pokemonMarchLoop 40s linear infinite;
}

.footer-pokemon-march-container:hover,
.screen-pokemon-march-container:hover {
  animation-play-state: paused;
}

.screen-pokemon-march-container.speed-fast {
  animation-duration: 22s;
}

.screen-pokemon-march-container.speed-slow {
  animation-duration: 65s;
}

.screen-pokemon-march-container.is-paused {
  animation-play-state: paused;
}

.footer-pokemon-parade-group,
.screen-pokemon-parade-group {
  display: flex;
  align-items: flex-end;
  gap: 36px;
  padding-right: 36px;
  flex-shrink: 0;
  padding-bottom: 2px;
}

.footer-walking-mon {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  flex-shrink: 0;
  user-select: none;
  pointer-events: auto;
  cursor: pointer;
  transition: transform 0.16s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-walking-mon:hover {
  transform: translateY(-6px) scale(1.14);
  z-index: 10;
}

.footer-walking-mon:active {
  transform: translateY(-2px) scale(1.05);
}

.footer-walking-mon img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  image-rendering: auto;
  transform: none; /* Faces to the right */
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.85));
}

/* Sizing modifiers matching video scale differences (2x) */
.footer-walking-mon.mon-sm img {
  width: 72px;
  height: 72px;
}

.footer-walking-mon.mon-md img {
  width: 96px;
  height: 96px;
}

.footer-walking-mon.mon-lg img {
  width: 116px;
  height: 116px;
}

.footer-walking-mon.mon-xl img {
  width: 164px;
  height: 164px;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.95));
}

.footer-walking-mon-shadow {
  width: 58px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 75%);
  margin-top: -4px;
}

.footer-walking-mon.mon-sm .footer-walking-mon-shadow {
  width: 44px;
  height: 6px;
}

.footer-walking-mon.mon-lg .footer-walking-mon-shadow {
  width: 72px;
  height: 10px;
}

.footer-walking-mon.mon-xl .footer-walking-mon-shadow {
  width: 116px;
  height: 12px;
}

.footer-mon-nametag {
  font-family: var(--font-display);
  font-size: 9.5px;
  font-weight: 800;
  color: var(--brand-accent);
  background: rgba(0, 0, 0, 0.92);
  border: 1px solid rgba(0, 245, 212, 0.5);
  border-radius: 4px;
  padding: 2px 7px;
  opacity: 0;
  transform: translateY(4px);
  transition: all 0.18s ease;
  position: absolute;
  top: -22px;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  gap: 4px;
}

.footer-walking-mon:hover .footer-mon-nametag {
  opacity: 1;
  transform: translateY(0);
}

.screen-march-disclaimer-bar {
  display: none !important;
}

@keyframes pokemonMarchLoop {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0%);
  }
}

.footer-main-content {
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px 24px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand-side {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-brand-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 900;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-brand-desc {
  font-size: 12px;
  color: var(--text-muted);
  max-width: 480px;
  line-height: 1.5;
}

.footer-links-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 12px;
}

.footer-link-btn {
  background: var(--surface-card);
  color: var(--text-muted);
  border: 1px solid var(--surface-border);
  padding: 6px 12px;
  border-radius: 6px;
  font-family: var(--font-display);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
}

.footer-link-btn:hover {
  color: var(--brand-accent);
  border-color: var(--brand-accent);
  background: var(--surface-elevated);
}

/* ============================================================================
   HIGH-FIDELITY POKÉMON SLAB / PACK / INDIVIDUAL CARD HERO SHOWCASE
   True-Black (#000000), Pure CSS Prismatic Holo Foil & Interactive 3D Tilt
   ============================================================================ */

.hero-showcase-split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
  gap: 24px;
  align-items: stretch;
  margin-bottom: 24px;
}

@media (max-width: 980px) {
  .hero-showcase-split-grid {
    grid-template-columns: 1fr;
  }
}

.hero-showcase-container {
  background: rgba(6, 9, 14, 0.85);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--surface-border-glass);
  border-radius: 20px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--glass-specular), 0 20px 50px rgba(0, 0, 0, 0.85);
}

.hero-showcase-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 245, 212, 0.6), transparent);
  pointer-events: none;
}

/* Mode Switcher Tabs */
.showcase-mode-bar {
  display: inline-flex;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid var(--surface-border);
  border-radius: 999px;
  padding: 4px;
  gap: 4px;
  z-index: 5;
}

.showcase-mode-btn {
  background: transparent;
  color: var(--text-muted);
  border: none;
  padding: 6px 14px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.18s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.showcase-mode-btn:hover {
  color: #ffffff;
}

.showcase-mode-btn.active {
  background: var(--brand-accent);
  color: var(--bg-true-black);
  box-shadow: 0 0 16px rgba(0, 245, 212, 0.45);
}

/* 3D Viewport Stage */
.showcase-stage-3d {
  perspective: 1100px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
  position: relative;
  padding: 10px 0;
}

.showcase-card-wrapper {
  transform-style: preserve-3d;
  transition: transform 0.12s ease-out;
  cursor: grab;
  position: relative;
  will-change: transform;
}

.showcase-card-wrapper:active {
  cursor: grabbing;
}

/* ============================================================================
   1. GRADED SLAB (PSA / CGC 10 GEM MINT ACRYLIC CASE)
   ============================================================================ */
.pokemon-slab-acrylic {
  width: 290px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  border: 7px solid rgba(255, 255, 255, 0.38);
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.95),
    0 0 0 2px rgba(0, 0, 0, 0.8),
    inset 0 2px 4px rgba(255, 255, 255, 0.65),
    inset 0 -2px 6px rgba(0, 0, 0, 0.7);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.pokemon-slab-acrylic::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.32) 0%, rgba(255, 255, 255, 0.04) 38%, transparent 55%, rgba(255, 255, 255, 0.12) 100%);
  pointer-events: none;
  z-index: 8;
  border-radius: 14px;
}

/* Grader Label Top Insert */
.slab-grade-label {
  background: linear-gradient(180deg, #ffffff 0%, #f1f3f5 100%);
  border: 2px solid #b80c09;
  border-radius: 8px;
  padding: 8px 10px;
  color: #1a1a1a;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2), 0 2px 6px rgba(0, 0, 0, 0.4);
  position: relative;
  z-index: 4;
}

.slab-grade-label-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1.5px solid #b80c09;
  padding-bottom: 4px;
  margin-bottom: 4px;
}

.slab-grader-logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.12em;
  color: #b80c09;
}

.slab-grade-badge {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 15px;
  color: #0b0f19;
  display: flex;
  align-items: center;
  gap: 4px;
}

.slab-grade-badge .grade-num {
  font-size: 20px;
  color: #b80c09;
}

.slab-cert-text {
  font-family: "Courier New", Courier, monospace;
  font-size: 9.5px;
  font-weight: 700;
  line-height: 1.25;
  color: #2b2d42;
  text-transform: uppercase;
}

.slab-barcode-strip {
  margin-top: 5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: "Courier New", Courier, monospace;
  font-size: 8px;
  color: #6c757d;
  letter-spacing: 0.14em;
}

.slab-barcode-strip::before {
  content: "||| | |||| || ||| |||| | || ||||";
  font-size: 10px;
  letter-spacing: -0.5px;
  color: #111111;
}

/* Inner Recessed Slab Chamber */
.slab-card-chamber {
  background: rgba(0, 0, 0, 0.7);
  border-radius: 12px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.9), 0 1px 1px rgba(255, 255, 255, 0.2);
  display: flex;
  justify-content: center;
}

/* ============================================================================
   2. POKÉMON INDIVIDUAL CARD (RAW / SLAB-INSERT)
   Authentic Yellow Border, Type Header, Holographic Stage, Moves & Attack Points
   ============================================================================ */
.pokemon-tcg-card {
  width: 250px;
  height: 350px;
  background: #f7d02c; /* Classic Gold/Yellow TCG Border */
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.8), inset 0 0 0 1px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  user-select: none;
}

.pokemon-tcg-inner {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  border-radius: 8px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1.5px solid rgba(0, 0, 0, 0.45);
  position: relative;
  z-index: 2;
}

/* Prismatic Holo Foil Texture Overlay */
.card-holo-foil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 6;
  opacity: 0.82;
  mix-blend-mode: color-dodge;
  background: linear-gradient(
    115deg,
    transparent 0%,
    rgba(255, 0, 128, 0.45) 20%,
    rgba(0, 245, 212, 0.55) 40%,
    rgba(255, 215, 0, 0.5) 60%,
    rgba(147, 51, 234, 0.45) 80%,
    transparent 100%
  );
  background-size: 250% 250%;
  background-position: var(--holo-x, 50%) var(--holo-y, 50%);
  transition: opacity 0.2s ease;
  border-radius: 12px;
}

/* Specular Glare Sheen */
.card-specular-glare {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 7;
  border-radius: 12px;
  background: radial-gradient(
    circle at var(--glare-x, 50%) var(--glare-y, 50%),
    rgba(255, 255, 255, 0.65) 0%,
    rgba(255, 255, 255, 0.12) 40%,
    transparent 70%
  );
  opacity: var(--glare-opacity, 0);
  transition: opacity 0.15s ease;
}

/* Card Header (Name, HP, Energy Type Icon) */
.card-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.card-stage-name {
  display: flex;
  flex-direction: column;
}

.card-stage-tag {
  font-size: 8px;
  font-weight: 800;
  color: var(--brand-accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card-char-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.card-hp-group {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-family: var(--font-display);
  font-weight: 900;
}

.card-hp-label {
  font-size: 9px;
  color: #ff4d6d;
}

.card-hp-val {
  font-size: 17px;
  color: #ffffff;
}

.card-type-orb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.4);
}

/* Card Art Frame */
.card-art-frame {
  height: 142px;
  background: radial-gradient(circle at 50% 50%, rgba(0, 245, 212, 0.2) 0%, #030712 100%);
  border: 2px solid #f7d02c;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 14px rgba(0, 0, 0, 0.95);
}

.card-art-frame img {
  width: 116px;
  height: 116px;
  object-fit: contain;
  image-rendering: auto;
  z-index: 3;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.9));
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-art-frame:hover img {
  transform: scale(1.1) translateY(-3px);
}

.card-art-sparkles {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 20% 30%, #ffffff, transparent),
    radial-gradient(2px 2px at 80% 25%, #00f5d4, transparent),
    radial-gradient(1.5px 1.5px at 45% 75%, #f7d02c, transparent),
    radial-gradient(2px 2px at 70% 85%, #ff4d6d, transparent);
  opacity: 0.75;
  pointer-events: none;
}

/* Card Species Dimension Strip */
.card-meta-ribbon {
  background: linear-gradient(90deg, #d4af37 0%, #f7d02c 50%, #d4af37 100%);
  color: #111111;
  font-size: 7.5px;
  font-weight: 800;
  text-align: center;
  padding: 1.5px 4px;
  border-radius: 3px;
  margin: 3px 0 5px;
  letter-spacing: 0.04em;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* Attack Move Rows */
.card-attacks-stack {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.card-attack-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3px 6px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.card-attack-energy {
  display: flex;
  gap: 3px;
}

.card-attack-title {
  font-size: 11px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.02em;
}

.card-attack-dmg {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 900;
  color: var(--brand-accent);
}

/* Footer Weakness / Resistance / Retreat */
.card-footer-stats {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 4px;
  font-size: 7.5px;
  color: var(--text-muted);
  font-weight: 700;
}

.card-footer-stats strong {
  color: #ffffff;
}

/* ============================================================================
   3. SEALED BOOSTER PACK (METALLIC CRIMPED FOIL POUCH)
   ============================================================================ */
.pokemon-sealed-pack {
  width: 250px;
  height: 370px;
  background: linear-gradient(135deg, #111827 0%, #1f2937 40%, #030712 100%);
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    0 24px 55px rgba(0, 0, 0, 0.95),
    inset 0 0 20px rgba(0, 245, 212, 0.15);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  user-select: none;
}

/* Top & Bottom Crimped Foil Edges */
.pack-crimp-strip {
  height: 22px;
  width: 100%;
  background: repeating-linear-gradient(
    90deg,
    #475569 0px,
    #475569 3px,
    #1e293b 3px,
    #1e293b 6px,
    #94a3b8 6px,
    #94a3b8 7px
  );
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.8), 0 2px 6px rgba(0, 0, 0, 0.6);
  position: relative;
  z-index: 5;
}

.pack-crimp-strip.top-crimp {
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  border-bottom: 2px solid #000000;
}

.pack-crimp-strip.bottom-crimp {
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  border-top: 2px solid #000000;
}

.pack-content-body {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 3;
}

.pack-brand-badge {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
  color: var(--brand-gold);
  background: rgba(247, 208, 44, 0.12);
  border: 1px solid var(--brand-gold);
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
}

.pack-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 20px;
  line-height: 1.1;
  color: #ffffff;
  text-shadow: 0 0 12px rgba(0, 245, 212, 0.65);
  margin: 6px 0;
}

.pack-art-mascot {
  width: 128px;
  height: 128px;
  object-fit: contain;
  image-rendering: auto;
  filter: drop-shadow(0 12px 20px rgba(0, 245, 212, 0.35));
  animation: floatMascot 3s ease-in-out infinite;
}

@keyframes floatMascot {
  0%, 100% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-6px) scale(1.03); }
}

.pack-specs-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 10.5px;
  font-weight: 800;
  color: var(--brand-accent);
  letter-spacing: 0.04em;
}

/* Pack Rip Button CTA */
.btn-rip-pack {
  background: linear-gradient(135deg, #00f5d4 0%, #00bbf9 100%);
  color: var(--bg-true-black);
  border: none;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 13px;
  padding: 10px 18px;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 0 24px rgba(0, 245, 212, 0.6);
  transition: all 0.16s ease;
  width: 100%;
}

.btn-rip-pack:hover {
  transform: translateY(-2px);
  filter: brightness(1.15);
  box-shadow: 0 0 32px rgba(0, 245, 212, 0.85);
}

/* Showcase Species Picker Strip */
.showcase-species-selector {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  max-width: 100%;
  padding: 4px 2px;
  scrollbar-width: thin;
}

.showcase-species-chip {
  background: var(--bg-true-black);
  border: 1px solid var(--surface-border);
  border-radius: 999px;
  padding: 5px 12px 5px 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
}

.showcase-species-chip img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  image-rendering: auto;
}

.showcase-species-chip:hover,
.showcase-species-chip.active {
  border-color: var(--brand-accent);
  color: #ffffff;
  background: var(--brand-accent-soft);
}

/* Live Card Stats & Wager Direct Launch Footnotes */
.showcase-stats-panel {
  width: 100%;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid var(--surface-border);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.showcase-stat-pill {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.showcase-stat-pill .label {
  font-size: 9.5px;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.showcase-stat-pill .value {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 900;
  color: var(--text-primary);
}

/* ============================================================================
   JUPITER GACHA 3D FAN-OUT CAROUSEL & MIRROR REFLECTIONS (jup.ag/gacha style)
   ============================================================================ */
.jup-gacha-container {
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  user-select: none;
  touch-action: pan-y;
}

.jup-gacha-stage {
  perspective: 1200px;
  width: 100%;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: visible;
}

/* Atmospheric Ambient Floor Glow */
.jup-gacha-floor-glow {
  position: absolute;
  bottom: 12px;
  width: 320px;
  height: 60px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0, 245, 212, 0.28) 0%, rgba(0, 187, 249, 0.12) 40%, transparent 75%);
  filter: blur(12px);
  pointer-events: none;
  z-index: 1;
}

/* 3D Arc Pack Track */
.jup-gacha-carousel {
  position: relative;
  width: 210px;
  height: 320px;
  transform-style: preserve-3d;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Booster Pack / Graded Slab Entity in 3D Carousel */
.jup-gacha-pack-card,
.carousel-item {
  position: absolute;
  width: 200px;
  height: 310px;
  border-radius: 14px;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 0.42s cubic-bezier(0.2, 0.9, 0.3, 1.1), opacity 0.35s ease, filter 0.35s ease;
  will-change: transform, opacity;
  /* 5% Maximum Opacity on Card Reflection */
  -webkit-box-reflect: below 6px linear-gradient(to bottom, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.02) 40%, rgba(0, 0, 0, 0) 100%);
}

/* Authentic Trading Card & Graded Slab Tile (Matching jup.ag/gacha/collection) */
.jup-card-tile {
  width: 100%;
  height: 100%;
  background: #11151f;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  padding: 12px 10px 10px 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.65);
  position: relative;
  overflow: hidden;
  user-select: none;
}

/* Center Active Card Subtle Aqua Accent Border */
.carousel-item.prismatic-glow-active .jup-card-tile {
  border-color: rgba(0, 245, 212, 0.75);
  box-shadow: 0 0 24px rgba(0, 245, 212, 0.35), 0 16px 40px rgba(0, 0, 0, 0.95);
}

.jup-card-image-box {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 8px;
}

.jup-card-pure-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 6px;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.65));
  user-select: none;
  -webkit-user-drag: none;
}

.jup-card-info-box {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 2px;
}

.jup-card-name-row {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: #f1f5f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
  letter-spacing: 0.01em;
}

.jup-card-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.jup-card-status-label {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 10px;
  color: #94a3b8;
  font-weight: 500;
}

.jup-card-fmv-pill {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 9.5px;
  font-weight: 600;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1.5px 6px;
  border-radius: 5px;
  white-space: nowrap;
}

/* Remove/Disable any fake holo foil or specular glare overlays */
.card-holo-foil,
.card-specular-glare {
  display: none !important;
}
  border-radius: 12px;
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.9);
}

.jup-pack-crimp {
  height: 18px;
  width: 100%;
  background: repeating-linear-gradient(
    90deg,
    #334155 0px,
    #334155 3px,
    #0f172a 3px,
    #0f172a 6px,
    #64748b 6px,
    #64748b 7px
  );
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.9);
  position: relative;
  z-index: 4;
}

.jup-pack-crimp.top {
  border-top-left-radius: 11px;
  border-top-right-radius: 11px;
  border-bottom: 1.5px solid #000;
}

.jup-pack-crimp.bottom {
  border-bottom-left-radius: 11px;
  border-bottom-right-radius: 11px;
  border-top: 1.5px solid #000;
}

.jup-pack-body {
  flex: 1;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  position: relative;
  z-index: 2;
}

.jup-pack-tier-badge {
  font-family: var(--font-display);
  font-size: 8.5px;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: var(--brand-gold);
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid var(--brand-gold);
  padding: 2.5px 8px;
  border-radius: 999px;
  text-transform: uppercase;
}

.jup-pack-title {
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 900;
  line-height: 1.15;
  color: #ffffff;
  text-shadow: 0 0 10px rgba(0, 245, 212, 0.7);
  margin: 4px 0 2px;
}

.jup-pack-mascot {
  width: 88px;
  height: 88px;
  object-fit: contain;
  image-rendering: auto;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.8));
  transition: transform 0.25s ease;
}

.jup-gacha-pack-card.pos-0:hover .jup-pack-mascot {
  transform: scale(1.1) translateY(-2px);
}

.jup-pack-action-hint {
  font-family: var(--font-display);
  font-size: 9.5px;
  font-weight: 800;
  color: #000000;
  background: linear-gradient(135deg, #00f5d4 0%, #00bbf9 100%);
  padding: 4px 10px;
  border-radius: 999px;
  box-shadow: 0 0 12px rgba(0, 245, 212, 0.5);
  letter-spacing: 0.04em;
}

/* Pack Artwork Themes */
.theme-charizard {
  background: linear-gradient(150deg, #b91c1c 0%, #7f1d1d 40%, #1c1917 100%);
}
.theme-blastoise {
  background: linear-gradient(150deg, #1d4ed8 0%, #1e3a8a 40%, #0f172a 100%);
}
.theme-venusaur {
  background: linear-gradient(150deg, #047857 0%, #064e3b 40%, #022c22 100%);
}
.theme-pikachu {
  background: linear-gradient(150deg, #ca8a04 0%, #854d0e 40%, #1c1917 100%);
}
.theme-mewtwo {
  background: linear-gradient(150deg, #7c3aed 0%, #4c1d95 40%, #180d2b 100%);
}
.theme-empoleon {
  background: linear-gradient(150deg, #0369a1 0%, #0c4a6e 40%, #082f49 100%);
}
.theme-alakazam {
  background: linear-gradient(150deg, #a855f7 0%, #6b21a8 40%, #3b0764 100%);
}
.theme-articuno {
  background: linear-gradient(150deg, #0284c7 0%, #0369a1 40%, #075985 100%);
}
.theme-greninja {
  background: linear-gradient(150deg, #1e40af 0%, #1e3a8a 40%, #172554 100%);
}
.theme-croconaw {
  background: linear-gradient(150deg, #0284c7 0%, #0369a1 40%, #0f172a 100%);
}
.theme-rayquaza {
  background: linear-gradient(150deg, #15803d 0%, #065f46 40%, #022c22 100%);
}
.theme-palpitoad {
  background: linear-gradient(150deg, #0d9488 0%, #0f766e 40%, #111827 100%);
}
.theme-metagross {
  background: linear-gradient(150deg, #3b82f6 0%, #1e40af 40%, #0f172a 100%);
}
.theme-clawitzer {
  background: linear-gradient(150deg, #0284c7 0%, #0369a1 40%, #082f49 100%);
}
.theme-lapras {
  background: linear-gradient(150deg, #38bdf8 0%, #0284c7 40%, #0c4a6e 100%);
}

/* Graded Slab Real Photo Fit */
.slab-real-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.85);
  display: block;
}


/* Prompt Subtitle Strip (jup.ag/gacha standard) */
.jup-gacha-prompt-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.jup-gacha-nav-arrow {
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid var(--surface-border);
  color: var(--text-primary);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  font-size: 12px;
}

.jup-gacha-nav-arrow:hover {
  border-color: var(--brand-accent);
  color: var(--brand-accent);
  background: rgba(0, 245, 212, 0.12);
}

/* Unboxing / Slab Reveal Overlay Inside Showcase Stage */
.jup-reveal-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.jup-reveal-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.jup-reveal-close-btn {
  position: absolute;
  top: 12px;
  right: 14px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 800;
  font-size: 13px;
  transition: background 0.15s ease;
  z-index: 60;
}

.jup-reveal-close-btn:hover {
  background: rgba(255, 77, 109, 0.3);
  border-color: #ff4d6d;
}

/* Pack Rip Animation Flare */
@keyframes packRipBurst {
  0% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.12); filter: brightness(2) contrast(1.4); }
  100% { transform: scale(0.85); opacity: 0; }
}

.pack-ripping {
  animation: packRipBurst 0.6s cubic-bezier(0.2, 0.9, 0.3, 1) forwards;
}

/* ============================================================================
   HERO VIDEO SECTION — INTEGRATED DUAL-WING SLAB / PACK / CARD SHOWCASE
   ============================================================================ */
.hero-video-interactive-split {
  grid-area: 1 / 1;
  z-index: 4;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 28px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  align-items: center;
  gap: 36px;
}

@media (max-width: 1024px) {
  .hero-video-interactive-split {
    grid-template-columns: 1fr;
    padding: 20px 16px;
    gap: 20px;
  }
  .hero-fullbleed-grid {
    height: auto;
    min-height: auto;
    padding-bottom: 24px;
  }
}

.hero-video-text-wing {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 18px;
}

@media (max-width: 1024px) {
  .hero-video-text-wing {
    align-items: center;
    text-align: center;
  }
}

.hero-video-showcase-wing {
  display: flex;
  justify-content: center;
  width: 100%;
}

.hero-video-showcase-wing .hero-showcase-container {
  width: 100%;
  max-width: 480px;
  background: rgba(0, 0, 0, 0.82);
  border: 1px solid var(--surface-border-glass);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.95), var(--glass-specular);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}

/* ============================================================================
   SLAB REWARD METRIC TIERS & ARENA PITY GAUGE SYSTEM ($100k Token Gate & Drops)
   ============================================================================ */
.slab-protocol-tier-card {
  background: rgba(8, 11, 16, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 22px;
  box-shadow: var(--glass-specular), 0 16px 40px rgba(0, 0, 0, 0.8);
  margin-bottom: 24px;
}

.slab-tiers-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 6px;
  margin-top: 14px;
  font-size: 13px;
}

.slab-tiers-table th {
  text-align: left;
  padding: 8px 12px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.slab-tier-row {
  background: rgba(255, 255, 255, 0.03);
  transition: all 0.15s ease;
  border-radius: 8px;
}

.slab-tier-row:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(2px);
}

.slab-tier-row td {
  padding: 10px 12px;
  color: var(--text-primary);
}

.slab-tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 12px;
}

.tier-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}

.tier-bronze .tier-dot { background: #cd7f32; box-shadow: 0 0 8px rgba(205, 127, 50, 0.6); }
.tier-silver .tier-dot { background: #c0c0c0; box-shadow: 0 0 8px rgba(192, 192, 192, 0.6); }
.tier-gold .tier-dot { background: #ffd700; box-shadow: 0 0 8px rgba(255, 215, 0, 0.7); }
.tier-platinum .tier-dot { background: #00f5d4; box-shadow: 0 0 8px rgba(0, 245, 212, 0.7); }
.tier-diamond .tier-dot { background: #38bdf8; box-shadow: 0 0 8px rgba(56, 189, 248, 0.7); }
.tier-master .tier-dot { background: #c084fc; box-shadow: 0 0 8px rgba(192, 132, 252, 0.7); }
.tier-heirloom .tier-dot { background: #fb923c; box-shadow: 0 0 8px rgba(251, 146, 60, 0.8); }

.slab-pity-hud-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.85);
  border: 1px solid rgba(0, 245, 212, 0.35);
  border-radius: 10px;
  padding: 8px 14px;
  margin-top: 8px;
  font-size: 11px;
}

.pity-progress-track {
  flex: 1;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  margin: 0 10px;
  overflow: hidden;
  position: relative;
}

.pity-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--brand-accent), var(--brand-gold));
  border-radius: 999px;
  transition: width 0.3s ease;
  box-shadow: 0 0 10px rgba(0, 245, 212, 0.5);
}

.slab-action-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  border: 1px solid var(--surface-border-glass);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  transition: all 0.15s ease;
}

.slab-action-pill-btn:hover {
  background: var(--brand-accent);
  color: #000;
  border-color: var(--brand-accent);
}



