/* STRIKING - Production UI
   Clean, mobile-first gambling interface */

/* ============ DESIGN TOKENS ============ */
:root {
  /* Colors - Modern Minimal Dark */
  --bg-0: #0f1115;
  --bg-1: #14171d;
  --bg-base: #101317;
  --bg-surface: #171b22;
  --bg-elevated: #1c222b;
  --bg-card: #202834;
  --bg-card-hover: #263142;
  --bg-panel: #1a2029;
  
  /* Glass Surfaces */
  --surface-0: rgba(255, 255, 255, 0.025);
  --surface-1: rgba(255, 255, 255, 0.07);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-highlight: rgba(255, 255, 255, 0.12);
  
  /* Brand Colors - Refined Green/Blue */
  --primary: #2fd17b;
  --primary-hover: #25b66c;
  --primary-glow: rgba(47, 209, 123, 0.2);
  --primary-glow-strong: rgba(47, 209, 123, 0.35);
  
  --secondary: #4f8cff;
  --secondary-hover: #3f76e8;
  
  --accent: #f4b244;
  --accent-glow: rgba(244, 178, 68, 0.25);
  
  --danger: #ef4444;
  --danger-hover: #dc2626;
  --success: var(--primary);
  
  /* Text Colors */
  --text-0: #f9fafb;
  --text-1: #eef0f4;
  --text-primary: #f8fafc;
  --text-secondary: #c5cad6;
  --text-muted: #98a1b2;
  --text-inverse: #0e1116;
  
  /* Border Colors */
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.18);
  --border-focus: var(--primary);
  
  /* Spacing - 8pt Grid (INCREASED for more breathing room) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  
  /* Typography */
  --font-sans: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 2rem;
  
  /* Radii - Premium Rounded (STANDARDIZED LARGER) */
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-2xl: 32px;
  --radius-full: 9999px;
  
  /* Shadows - Subtle Depth */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 6px 14px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 12px 28px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 14px var(--primary-glow);
  --shadow-glow-strong: 0 0 20px var(--primary-glow-strong);
  --shadow-card: 0 10px 24px rgba(0, 0, 0, 0.32), 0 0 0 1px var(--border);
  --shadow-card-hover: 0 16px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--border-hover);
  
  /* Glass Effects */
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-blur: 12px;
  --glass-blur-strong: 16px;
  
  /* Transitions */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Layout */
  --topbar-height: 56px;
  --bottomnav-height: 64px;
  --max-width: 480px;
}

/* ============ RESET & BASE ============ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  height: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  height: 100%;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.5;
  color: var(--text-primary);
  background: linear-gradient(135deg, var(--bg-0) 0%, var(--bg-1) 50%, var(--bg-base) 100%);
  background-attachment: fixed;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  overflow: hidden;
}

/* Subtle noise texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: 
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.015) 1px, transparent 0);
  background-size: 20px 20px;
  pointer-events: none;
  z-index: 0;
}

/* Vignette effect */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
  pointer-events: none;
  z-index: 0;
}

.brand-watermark {
  position: fixed;
  inset: 0;
  background-image: url('icons/striking-watermark.svg');
  background-size: 240px 240px;
  background-repeat: repeat;
  opacity: 0.06;
  pointer-events: none;
  z-index: 0;
}

#app {
  height: 100%;
  display: flex;
  flex-direction: column;
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ============ LOADING SPLASH ============ */
/* ============ SPLASH SCREEN ============ */
/* Premium cinematic asteroid strike intro */

.splash {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #030305;
  opacity: 1;
  pointer-events: auto;
  overflow: hidden;
}

/* Deep vignette for cinematic feel */
.splash::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 80% at center, transparent 0%, rgba(0,0,0,0.6) 100%);
  pointer-events: none;
}

/* Vignette intensifies on impact */
.splash.has-impact::before {
  animation: vignettePulse 300ms ease-out;
}

.splash.is-hidden {
  display: none !important;
  pointer-events: none;
}

.splash.is-fading {
  animation: splashFadeOut 220ms cubic-bezier(0.4, 0, 0.2, 1) forwards;
  pointer-events: none;
}

/* Screen flash on impact */
.splash-flash {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(255,250,240,0.35) 0%, transparent 60%);
  opacity: 0;
  pointer-events: none;
  z-index: 10;
}

.splash.has-impact .splash-flash {
  animation: screenFlash 150ms ease-out;
}

.splash-scene {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 600px;
  padding: 2rem;
}

/* ============ WORDMARK ============ */
.splash-title-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.splash-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.2rem, 10vw, 4rem);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0;
  transform: scale(0.94) translateY(4px);
  transform-origin: center;
  will-change: transform, opacity;
  position: relative;
  z-index: 2;
}

/* Glow layer behind text - pulses on impact */
.splash-title-glow {
  position: absolute;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.2rem, 10vw, 4rem);
  font-weight: 700;
  color: transparent;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-shadow: 
    0 0 30px rgba(255,255,255,0.4),
    0 0 60px rgba(255,220,180,0.2),
    0 0 100px rgba(255,180,120,0.1);
  opacity: 0;
  z-index: 1;
  pointer-events: none;
}

.splash.is-animating .splash-title {
  animation: titleReveal 400ms cubic-bezier(0.16, 1, 0.3, 1) 80ms forwards;
}

.splash.is-animating .splash-title-glow {
  animation: glowReveal 500ms cubic-bezier(0.16, 1, 0.3, 1) 120ms forwards;
}

.splash.has-impact .splash-title {
  animation: 
    titleReveal 400ms cubic-bezier(0.16, 1, 0.3, 1) 80ms forwards,
    titleImpact 120ms cubic-bezier(0.36, 0, 0.66, -0.56) 620ms;
}

.splash.has-impact .splash-title-glow {
  animation: 
    glowReveal 500ms cubic-bezier(0.16, 1, 0.3, 1) 120ms forwards,
    glowFlare 200ms ease-out 620ms;
}

/* ============ ASTEROID ============ */
.splash-asteroid {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
  top: 8%;
  left: 5%;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Emoji asteroid */
.asteroid-emoji {
  font-size: clamp(28px, 6vw, 38px);
  line-height: 1;
  filter: 
    drop-shadow(0 0 8px rgba(255,200,120,0.8))
    drop-shadow(0 0 16px rgba(255,160,80,0.5))
    drop-shadow(0 0 30px rgba(255,120,40,0.3));
  transform: scaleX(-1); /* Flip to face direction of travel */
}

/* Main trail - long gradient tail */
.asteroid-trail {
  position: absolute;
  top: 50%;
  right: 70%;
  width: 100px;
  height: 6px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255,180,100,0.08) 20%,
    rgba(255,200,150,0.25) 50%,
    rgba(255,230,200,0.6) 85%,
    rgba(255,255,255,0.95) 100%
  );
  transform: translateY(-50%);
  border-radius: 6px;
  filter: blur(2px);
}

/* Inner trail - sharper, brighter */
.asteroid-trail-inner {
  position: absolute;
  top: 50%;
  right: 70%;
  width: 50px;
  height: 2px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255,255,255,0.4) 40%,
    rgba(255,255,255,0.95) 100%
  );
  transform: translateY(-50%);
  border-radius: 2px;
}

.splash.is-animating .splash-asteroid {
  animation: asteroidFlight 380ms cubic-bezier(0.3, 0, 0.2, 1) 320ms forwards;
}

/* ============ IMPACT EFFECTS ============ */
.splash-impact {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 3;
}

/* Outer ring - expands fast, fades */
.impact-ring-1 {
  position: absolute;
  width: 180px;
  height: 180px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
}

/* Inner ring - slightly delayed */
.impact-ring-2 {
  position: absolute;
  width: 100px;
  height: 100px;
  border: 1px solid rgba(255,240,220,0.4);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
}

/* Impact core - bright flash at center */
.impact-core {
  position: absolute;
  width: 40px;
  height: 40px;
  background: radial-gradient(circle, rgba(255,255,255,0.6) 0%, rgba(255,240,220,0.2) 50%, transparent 70%);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
}

.splash.has-impact .impact-ring-1 {
  animation: ringExpand1 280ms cubic-bezier(0.16, 1, 0.3, 1) 620ms forwards;
}

.splash.has-impact .impact-ring-2 {
  animation: ringExpand2 240ms cubic-bezier(0.16, 1, 0.3, 1) 650ms forwards;
}

.splash.has-impact .impact-core {
  animation: coreFlash 180ms ease-out 620ms forwards;
}

/* ============ SPARKS ============ */
.splash-sparks {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 4;
}

.spark {
  position: absolute;
  width: 3px;
  height: 3px;
  background: #fff;
  border-radius: 50%;
  opacity: 0;
  box-shadow: 0 0 4px 1px rgba(255,220,180,0.8);
}

.splash.has-impact .spark-1 {
  animation: spark1 350ms cubic-bezier(0.16, 1, 0.3, 1) 620ms forwards;
}

.splash.has-impact .spark-2 {
  animation: spark2 320ms cubic-bezier(0.16, 1, 0.3, 1) 640ms forwards;
}

.splash.has-impact .spark-3 {
  animation: spark3 380ms cubic-bezier(0.16, 1, 0.3, 1) 630ms forwards;
}

.splash.has-impact .spark-4 {
  animation: spark4 300ms cubic-bezier(0.16, 1, 0.3, 1) 660ms forwards;
}

/* ============ KEYFRAMES ============ */

/* Screen flash - brief bright moment */
@keyframes screenFlash {
  0% { opacity: 0; }
  20% { opacity: 1; }
  100% { opacity: 0; }
}

/* Vignette pulse - darkens briefly */
@keyframes vignettePulse {
  0% { opacity: 1; }
  30% { opacity: 0.5; }
  100% { opacity: 1; }
}

/* Title reveal - smooth entrance */
@keyframes titleReveal {
  0% {
    opacity: 0;
    transform: scale(0.94) translateY(4px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Glow reveal - fades in slightly after title */
@keyframes glowReveal {
  0% { opacity: 0; }
  100% { opacity: 0.7; }
}

/* Title impact - sharp recoil */
@keyframes titleImpact {
  0% { transform: scale(1) translate(0, 0); }
  30% { transform: scale(1.02) translate(-4px, 2px); }
  60% { transform: scale(1.01) translate(2px, -1px); }
  100% { transform: scale(1) translate(0, 0); }
}

/* Glow flare - brightens on impact */
@keyframes glowFlare {
  0% { opacity: 0.7; }
  30% { opacity: 1; text-shadow: 0 0 40px rgba(255,255,255,0.6), 0 0 80px rgba(255,220,180,0.4), 0 0 120px rgba(255,180,120,0.2); }
  100% { opacity: 0.5; }
}

/* Asteroid flight - curved diagonal path */
@keyframes asteroidFlight {
  0% {
    opacity: 0;
    top: 5%;
    left: 0%;
    transform: rotate(-50deg) scale(0.8);
  }
  15% {
    opacity: 1;
    transform: rotate(-48deg) scale(1);
  }
  70% {
    opacity: 1;
    transform: rotate(-44deg) scale(1);
  }
  100% {
    opacity: 0;
    top: 48%;
    left: 48%;
    transform: rotate(-40deg) scale(0.3);
  }
}

/* Ring expansions */
@keyframes ringExpand1 {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.1);
  }
  30% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.2);
  }
}

@keyframes ringExpand2 {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.2);
  }
  40% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.4);
  }
}

/* Core flash */
@keyframes coreFlash {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5);
  }
  25% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.2);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.5);
  }
}

/* Sparks - fly outward in different directions */
@keyframes spark1 {
  0% { opacity: 1; transform: translate(0, 0); }
  100% { opacity: 0; transform: translate(40px, -30px); }
}

@keyframes spark2 {
  0% { opacity: 1; transform: translate(0, 0); }
  100% { opacity: 0; transform: translate(-35px, -25px); }
}

@keyframes spark3 {
  0% { opacity: 1; transform: translate(0, 0); }
  100% { opacity: 0; transform: translate(30px, 25px); }
}

@keyframes spark4 {
  0% { opacity: 1; transform: translate(0, 0); }
  100% { opacity: 0; transform: translate(-25px, 20px); }
}

/* Overlay fade out */
@keyframes splashFadeOut {
  0% { opacity: 1; }
  100% { opacity: 0; }
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  .splash-title {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
  .splash-title-glow {
    animation: none !important;
    opacity: 0.5;
  }
  .splash-asteroid,
  .splash-impact,
  .splash-sparks,
  .splash-flash {
    display: none !important;
  }
  .splash::before {
    animation: none !important;
  }
  .splash.is-animating {
    animation: splashReducedFade 400ms ease-out 400ms forwards;
  }
}

@keyframes splashReducedFade {
  0% { opacity: 1; }
  100% { opacity: 0; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 480px) {
  .splash-title,
  .splash-title-glow {
    letter-spacing: 0.1em;
  }
  
  .asteroid-emoji {
    font-size: 26px;
  }
  
  .asteroid-trail {
    width: 70px;
    height: 4px;
  }
  
  .asteroid-trail-inner {
    width: 35px;
  }
  
  .impact-ring-1 {
    width: 120px;
    height: 120px;
  }
  
  .impact-ring-2 {
    width: 70px;
    height: 70px;
  }
}

body {
  top: 28px;
}

/* ============ TOP BAR ============ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--topbar-height);
  padding: 0 var(--space-4);
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  gap: var(--space-3);
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
  min-width: 0;
}

.brand-icon {
  width: 22px;
  height: 22px;
  display: block;
  color: var(--text-primary);
  opacity: 0.9;
}

.brand-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}

/* Wallet Selector */
.wallet-selector {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.wallet-select {
  appearance: none;
  padding: var(--space-2) var(--space-3);
  padding-right: var(--space-6);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a1a1aa' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
}

.wallet-select:focus {
  outline: none;
  border-color: var(--primary);
}

/* ============ MAIN CONTENT ============ */
.main-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: calc(var(--bottomnav-height) + env(safe-area-inset-bottom, 0px));
  -webkit-overflow-scrolling: touch;
}

/* Hide scrollbar on mobile for cleaner look */
@media (max-width: 479px) {
  .main-content::-webkit-scrollbar {
    width: 0;
    background: transparent;
  }
  
  .main-content {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
  }
}

/* ============ SCREENS ============ */
.screen {
  display: none;
  padding: var(--space-5);
  animation: fadeIn var(--transition-base);
}

.screen.active {
  display: block;
}

#screen-game.active {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-4);
}

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

.screen-header {
  text-align: left;
  margin-bottom: var(--space-10);
}

.brand-kicker {
  display: block;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.38em;
  text-transform: uppercase;
  margin-bottom: var(--space-2);
  opacity: 0.7;
}

.screen-title {
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.screen-subtitle {
  font-size: var(--text-base);
  color: var(--text-muted);
  line-height: 1.6;
  opacity: 0.8;
}

/* ============ VAULT CARDS ============ */
.vault-section {
  margin-bottom: var(--space-10);
}

.vault-section:last-child {
  margin-bottom: 0;
}

.vault-section-title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
  letter-spacing: -0.02em;
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--glass-border);
}

.vault-section-subtitle {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-5);
  opacity: 0.8;
}

.vault-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.vault-card {
  background: linear-gradient(180deg, rgba(32, 40, 52, 0.95), rgba(24, 30, 40, 0.95));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  min-height: 120px;
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

/* Inner highlight for glass effect */
.vault-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  opacity: 0.35;
}

.vault-card:hover {
  border-color: var(--border-hover);
  background: linear-gradient(180deg, rgba(38, 49, 66, 0.98), rgba(26, 32, 44, 0.98));
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
}

.vault-card:active {
  transform: translateY(0) scale(0.99);
}

.vault-card.paused {
  opacity: 0.6;
  cursor: not-allowed;
}

.vault-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--space-3);
  gap: var(--space-3);
}

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

.vault-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  background: rgba(47, 209, 123, 0.08);
  border: 1px solid rgba(47, 209, 123, 0.2);
  border-radius: var(--radius-full);
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: var(--space-2);
  opacity: 0.8;
}

.vault-badge.mix {
  background: rgba(79, 140, 255, 0.12);
  border-color: rgba(79, 140, 255, 0.3);
  color: var(--secondary);
  box-shadow: none;
}

.vault-card-name {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-bottom: 0;
}

.vault-card-price {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--primary);
  font-family: var(--font-mono);
  line-height: 1;
  text-align: right;
  white-space: nowrap;
  letter-spacing: -0.02em;
}

.vault-card-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-1);
  padding-top: var(--space-3);
  margin-top: var(--space-3);
  border-top: 1px solid var(--border);
  opacity: 0.75;
}

.vault-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.vault-stat-value {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-1);
  font-family: var(--font-mono);
  line-height: 1;
}

.vault-stat-label {
  font-size: 8px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 400;
  margin-top: 2px;
  opacity: 0.8;
}

.vault-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 9px;
  font-weight: 600;
  background: var(--surface-0);
  border: 1px solid var(--border);
}

.vault-status.open {
  background: rgba(47, 209, 123, 0.12);
  border-color: rgba(47, 209, 123, 0.3);
  color: var(--primary);
}

.vault-status.open::before {
  content: '●';
  font-size: 8px;
  color: var(--primary);
  filter: drop-shadow(0 0 2px var(--primary-glow));
}

.vault-status.paused {
  background: rgba(244, 178, 68, 0.12);
  border-color: rgba(244, 178, 68, 0.3);
  color: var(--accent);
}

.vault-status.closed {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.3);
  color: var(--danger);
}

.vault-empty {
  text-align: center;
  padding: var(--space-10);
  color: var(--text-muted);
  background: linear-gradient(180deg, rgba(32, 40, 52, 0.9), rgba(24, 30, 40, 0.9));
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
}

/* ============ GAME SCREEN ============ */
.game-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--glass-border);
  width: 100%;
  max-width: 100%;
}

.game-header > *:first-child {
  justify-self: start;
}

.game-header > *:last-child {
  justify-self: end;
}

.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
  grid-column: 3;
}

.icon-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(34, 197, 94, 0.1);
  box-shadow: 0 0 12px var(--primary-glow);
  transform: translateY(-1px);
}

.icon-btn:active {
  transform: translateY(0) scale(0.95);
}

.game-vault-info {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  justify-self: center;
  grid-column: 2;
}

.vault-name {
  display: block;
  font-size: var(--text-base);
  font-weight: 600;
  margin-top: 0;
}

/* Prize Display */
.prize-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: var(--space-5);
  padding: var(--space-3) 0;
  width: 100%;
}

/* ============ NFT SHOWCASE CAROUSEL ============ */
.prize-showcase {
  position: relative;
  width: 180px;
  height: 200px;
  margin-bottom: var(--space-3);
  margin-left: auto;
  margin-right: auto;
}

.nft-carousel {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.carousel-viewport {
  width: 100%;
  flex: 1;
  overflow: hidden;
  border-radius: var(--radius-lg);
  position: relative;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
}

.carousel-viewport:active {
  cursor: grabbing;
}

.carousel-track {
  display: flex;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  touch-action: pan-y pinch-zoom;
  will-change: transform;
}

/* Individual NFT Slide */
.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.2s ease;
  touch-action: manipulation;
  user-select: none;
}

.carousel-slide:hover {
  transform: scale(1.02);
}

.carousel-slide:active {
  transform: scale(0.98);
}

/* NFT Image Container - Fixed 1:1 Aspect Ratio */
.nft-image-frame {
  width: 160px;
  height: 160px;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(145deg, rgba(30, 30, 40, 0.6), rgba(20, 20, 30, 0.8));
  border: 1px solid var(--glass-border);
  box-shadow: 
    0 8px 24px rgba(0, 0, 0, 0.3),
    inset 0 0 40px rgba(255, 255, 255, 0.02);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  margin: 0 auto;
}

/* Subtle background pattern for transparent NFTs */
.nft-image-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(45deg, rgba(255,255,255,0.02) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255,255,255,0.02) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(255,255,255,0.02) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(255,255,255,0.02) 75%);
  background-size: 12px 12px;
  background-position: 0 0, 0 6px, 6px -6px, -6px 0;
  opacity: 0.5;
  pointer-events: none;
}

/* NFT Image - Properly Fitted */
.nft-slide-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-md);
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  position: relative;
  z-index: 1;
}

.nft-slide-img.hidden {
  display: none;
}

/* Placeholder for missing images */
.nft-slide-placeholder {
  font-size: 3rem;
  color: var(--accent);
  opacity: 0.6;
  position: relative;
  z-index: 1;
}

/* NFT Name Label */
.nft-slide-name {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--accent);
  margin-top: var(--space-2);
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}

/* Carousel Indicators */
.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: var(--space-2);
  z-index: 10;
}

.carousel-indicators.hidden {
  display: none;
}

.carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.2s ease;
}

.carousel-dot.active {
  width: 16px;
  border-radius: 3px;
  background: var(--accent);
}

/* Carousel Arrows (desktop only) */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease, background 0.2s ease;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nft-carousel:hover .carousel-arrow:not(.hidden) {
  opacity: 1;
}

.carousel-arrow:hover {
  background: rgba(0, 0, 0, 0.8);
}

.carousel-prev {
  left: -12px;
}

.carousel-next {
  right: -12px;
}

.carousel-arrow.hidden {
  display: none !important;
}

@media (max-width: 479px) {
  .carousel-arrow {
    display: none;
  }
}

/* Prize Placeholder (no NFTs) */
.prize-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(28, 34, 43, 0.9), rgba(20, 26, 34, 0.95));
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  color: var(--text-muted);
}

.prize-placeholder.hidden {
  display: none;
}

.prize-placeholder .prize-icon {
  font-size: 3rem;
  opacity: 0.5;
}

.prize-placeholder-text {
  font-size: var(--text-sm);
  margin-top: var(--space-2);
}

/* Legacy prize-card removed - using carousel now */
.prize-card {
  display: none;
}

.prize-image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.prize-icon {
  font-size: 2.5rem;
}

.prize-img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 2px solid var(--accent);
}

.prize-img.hidden {
  display: none;
}

.prize-label {
  font-size: var(--text-xs);
  color: var(--accent);
  font-weight: 600;
  margin-top: var(--space-1);
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prize-chance {
  margin-top: var(--space-3);
  padding: var(--space-1) var(--space-3);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
}

/* Slot Machine */
.slot-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: var(--space-5) auto;
  padding: var(--space-4) 0;
  width: 100%;
  max-width: 100%;
}

.slot-machine {
  position: relative;
}

.slot-frame {
  display: grid;
  grid-template-columns: repeat(var(--reel-count, 3), var(--reel-width, 70px));
  gap: var(--space-2);
  padding: var(--space-4);
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  margin: 0 auto;
}

.reel {
  width: var(--reel-width, 70px);
  height: var(--reel-height, 90px);
  background: var(--bg-base);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
}

.reel-strip {
  position: absolute;
  width: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.1s linear;
  will-change: transform;
}

.reel-symbol {
  width: var(--reel-width, 70px);
  height: var(--reel-height, 90px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--bg-base);
}

.reel-symbol-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
  border-radius: var(--radius-sm);
}

.reel-symbol-fallback {
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.reel-symbol-emoji {
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.reel.win-match {
  box-shadow: 0 0 20px var(--primary-glow);
  border-color: var(--accent);
  animation: winReelGlow 0.5s ease-in-out 3;
}

@keyframes winReelGlow {
  0%, 100% {
    box-shadow: 0 0 20px var(--primary-glow);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 30px var(--accent-glow);
    transform: scale(1.05);
  }
}

.slot-glow {
  position: absolute;
  inset: -10px;
  background: radial-gradient(ellipse at center, var(--primary-glow) 0%, transparent 70%);
  opacity: 0;
  transition: opacity var(--transition-slow);
  pointer-events: none;
}

.slot-machine.active .slot-glow {
  opacity: 1;
}

/* Big Winning NFT Display */
.win-nft-display {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: winNftPopIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  pointer-events: none;
}

.win-nft-display.hidden {
  display: none;
}

.win-nft-frame {
  width: 200px;
  height: 200px;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 3px solid var(--accent);
  border-radius: var(--radius-xl);
  box-shadow: 0 0 40px var(--accent-glow), 0 0 80px var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  position: relative;
  overflow: hidden;
}

.win-nft-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: var(--radius-lg);
}

.win-nft-fallback {
  font-size: 6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.win-nft-label {
  margin-top: var(--space-3);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--accent);
  text-shadow: 0 0 20px var(--accent-glow);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  animation: winNftLabelPulse 1s ease-in-out infinite;
}

@keyframes winNftPopIn {
  0% {
    transform: translate(-50%, -50%) scale(0) rotate(-180deg);
    opacity: 0;
  }
  60% {
    transform: translate(-50%, -50%) scale(1.1) rotate(10deg);
    opacity: 1;
  }
  80% {
    transform: translate(-50%, -50%) scale(0.95) rotate(-5deg);
  }
  100% {
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
    opacity: 1;
  }
}

@keyframes winNftLabelPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.9;
  }
}

/* Game Stats */
.game-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin: var(--space-4) auto var(--space-5);
  padding: var(--space-3) var(--space-2);
  opacity: 0.8;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  width: 100%;
  max-width: 320px;
}

.stat-item {
  text-align: center;
  flex: 1;
}

.stat-value {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
  font-family: var(--font-mono);
  margin-bottom: 2px;
}

.stat-label {
  font-size: 8px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 400;
  opacity: 0.7;
}

.stat-divider {
  width: 1px;
  height: 20px;
  background: var(--glass-border);
  opacity: 0.4;
}

/* Spin Button */
.spin-button {
  display: block;
  width: 100%;
  max-width: 280px;
  margin: var(--space-5) auto var(--space-4);
  padding: var(--space-4) var(--space-6);
  background: linear-gradient(135deg, var(--primary), #1fb86d);
  border: 1px solid rgba(47, 209, 123, 0.4);
  border-radius: var(--radius-xl);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--text-inverse);
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: 0 8px 22px rgba(34, 197, 94, 0.25), 0 0 0 1px rgba(47, 209, 123, 0.2);
  letter-spacing: 0.05em;
  min-height: 52px;
}

.spin-button:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--primary-hover), #15945b);
  box-shadow: 0 12px 28px rgba(34, 197, 94, 0.35), 0 0 0 3px rgba(47, 209, 123, 0.12);
  transform: translateY(-1px);
}

.spin-button:active:not(:disabled) {
  transform: translateY(0) scale(0.99);
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}

.spin-button:disabled {
  background: var(--bg-elevated);
  color: var(--text-muted);
  cursor: not-allowed;
  box-shadow: none;
  opacity: 0.6;
}

.spin-button.spinning {
  background: var(--bg-elevated);
  color: var(--text-secondary);
}

.game-status {
  text-align: center;
  min-height: 20px;
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: var(--space-2);
  opacity: 0.8;
}

.game-status.error {
  color: var(--danger);
}

.game-status.success {
  color: var(--primary);
}

/* ============ INVENTORY SCREEN ============ */
.inventory-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.inventory-empty {
  text-align: center;
  padding: var(--space-10) var(--space-6) var(--space-6);
  background: linear-gradient(180deg, rgba(32, 40, 52, 0.9), rgba(24, 30, 40, 0.9));
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  opacity: 0.75;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 300px;
}

.inventory-empty-icon {
  font-size: 3rem;
  margin-bottom: var(--space-4);
  opacity: 0.4;
}

.inventory-empty-text {
  color: var(--text-muted);
  font-size: var(--text-sm);
  line-height: 1.5;
}

.inventory-item {
  background: linear-gradient(180deg, rgba(32, 40, 52, 0.96), rgba(24, 30, 40, 0.96));
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  min-height: 180px;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-base);
}

.inventory-item:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}

.inventory-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-6);
  gap: var(--space-4);
}

.inventory-item-info {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.inventory-item-icon {
  width: 48px;
  height: 48px;
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

/* Legacy .inventory-item-img kept for backward compat */
.inventory-item-img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 2px solid var(--accent);
  flex-shrink: 0;
}

/* User inventory consistent NFT frame */
.user-inventory-frame {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(145deg, rgba(32, 40, 52, 0.7), rgba(24, 30, 40, 0.9));
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  flex-shrink: 0;
  box-shadow: inset 0 0 16px rgba(0, 0, 0, 0.25);
}

.user-inventory-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.user-inventory-img.hidden {
  display: none;
}

.user-inventory-placeholder {
  font-size: 1.5rem;
  opacity: 0.5;
}

.user-inventory-placeholder.hidden {
  display: none;
}

.inventory-item-collection {
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-weight: 500;
  opacity: 0.7;
}

.inventory-item-name {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.inventory-item-vault {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
}

.status-badge.ready {
  background: rgba(34, 197, 94, 0.15);
  color: var(--primary);
}

.status-badge.withdrawn {
  background: rgba(113, 113, 122, 0.15);
  color: var(--text-muted);
}

.status-badge.invalidated {
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger);
}

.inventory-item-action {
  width: 100%;
  padding: var(--space-5);
  background: var(--primary);
  border: none;
  border-radius: var(--radius-xl);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-inverse);
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: 0 6px 14px rgba(47, 209, 123, 0.2);
  margin-top: var(--space-6);
  letter-spacing: 0.04em;
  min-height: 52px;
}

.inventory-item-action:hover:not(:disabled) {
  background: var(--primary-hover);
  box-shadow: 0 8px 18px rgba(47, 209, 123, 0.28);
  transform: translateY(-1px);
}

.inventory-item-action:active:not(:disabled) {
  transform: translateY(0) scale(0.99);
}

.inventory-item-action:disabled {
  background: var(--bg-elevated);
  color: var(--text-muted);
  cursor: not-allowed;
  box-shadow: none;
  opacity: 0.5;
}

/* ============ FAIRNESS SCREEN ============ */
.fairness-content {
  max-width: 420px;
  margin: 0 auto;
}

.fairness-explainer {
  margin-bottom: var(--space-12);
}

.explainer-step {
  display: flex;
  gap: var(--space-6);
  margin-bottom: var(--space-10);
}

.step-number {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: var(--primary);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text-inverse);
  box-shadow: 0 4px 10px rgba(47, 209, 123, 0.25);
}

.step-content h3 {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
  letter-spacing: -0.02em;
}

.step-content p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.7;
  opacity: 0.8;
  max-width: 320px;
}

.subsection-title {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--glass-border);
  letter-spacing: -0.02em;
}

.proof-field {
  margin-bottom: var(--space-5);
}

.proof-field label {
  display: block;
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-2);
  font-weight: 600;
}

.proof-field code {
  display: block;
  padding: var(--space-4);
  background: linear-gradient(180deg, rgba(26, 32, 41, 0.9), rgba(20, 26, 34, 0.9));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-primary);
  word-break: break-all;
  line-height: 1.5;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}

.proof-details {
  margin-top: var(--space-4);
}

.proof-details summary {
  cursor: pointer;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  padding: var(--space-2);
}

.proof-details pre {
  margin-top: var(--space-2);
  padding: var(--space-3);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-secondary);
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
}

.fairness-vault, .fairness-spin {
  background: linear-gradient(180deg, rgba(32, 40, 52, 0.96), rgba(24, 30, 40, 0.96));
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  margin-bottom: var(--space-8);
  box-shadow: var(--shadow-card);
}

/* ============ ADMIN SCREEN ============ */
.admin-content {
  max-width: 400px;
  margin: 0 auto;
}

.admin-warning {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid var(--accent);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-6);
  font-size: var(--text-sm);
  color: var(--accent);
}

.warning-icon {
  font-size: var(--text-xl);
}

.admin-section {
  margin-bottom: var(--space-8);
}

.admin-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-group label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
}

.form-group input,
.form-group select {
  padding: var(--space-3);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: var(--text-base);
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
}

.nft-inputs {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.nft-input-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-2);
}

.nft-input-row input {
  padding: var(--space-2);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
}

.admin-vault-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.admin-vault-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.admin-vault-info {
  flex: 1;
}

.admin-vault-name {
  font-weight: 600;
  color: var(--text-primary);
}

.admin-vault-stats {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.admin-vault-actions {
  display: flex;
  gap: var(--space-2);
}

/* ============ BOTTOM NAVIGATION ============ */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bottomnav-height);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: linear-gradient(180deg, rgba(28, 34, 43, 0.98) 0%, rgba(12, 15, 20, 0.98) 100%);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: stretch;
  justify-content: space-around;
  max-width: var(--max-width);
  margin: 0 auto;
  z-index: 50;
  box-shadow: 0 -10px 24px rgba(0, 0, 0, 0.4);
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: var(--space-2);
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  min-height: 44px;
}

/* Active indicator pill */
.nav-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--primary);
  border-radius: 0 0 3px 3px;
  transition: width var(--transition-base);
  box-shadow: none;
}

.nav-item.active::before {
  width: 32px;
}

.nav-item:hover {
  color: var(--text-1);
}

.nav-item.active {
  color: var(--primary);
}

.nav-icon {
  font-size: 22px;
  line-height: 1;
  color: currentColor;
  opacity: 0.85;
  transition: transform var(--transition-base), opacity var(--transition-base), filter var(--transition-base);
}

.nav-icon-svg {
  width: 22px;
  height: 22px;
  color: currentColor;
  opacity: 0.85;
  transition: all var(--transition-base);
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.08));
}

.nav-item.active .nav-icon,
.nav-item.active .nav-icon-svg {
  opacity: 1;
  transform: translateY(-1px) scale(1.06);
  filter: drop-shadow(0 0 10px var(--primary-glow));
}

.nav-item:hover .nav-icon,
.nav-item:hover .nav-icon-svg {
  opacity: 0.95;
}

.nav-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all var(--transition-base);
}

.nav-item.active .nav-label {
  font-weight: 700;
  color: var(--primary);
}

.nav-badge {
  position: absolute;
  top: 6px;
  right: 50%;
  transform: translateX(20px);
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  background: var(--primary);
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 700;
  color: var(--text-inverse);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(47, 209, 123, 0.25);
  border: 2px solid var(--bg-surface);
}

/* ============ MODALS ============ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}

@media (min-width: 480px) {
  .modal {
    align-items: center;
    padding: var(--space-5);
  }
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 9, 12, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.modal-dialog {
  position: relative;
  width: 100%;
  max-width: 100%;
  background: linear-gradient(180deg, rgba(22, 28, 38, 0.95), rgba(16, 20, 28, 0.98));
  backdrop-filter: blur(var(--glass-blur-strong));
  -webkit-backdrop-filter: blur(var(--glass-blur-strong));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: var(--space-6);
  padding-bottom: env(safe-area-inset-bottom, var(--space-6));
  animation: slideUp 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 -10px 32px rgba(0, 0, 0, 0.45);
}

@media (min-width: 480px) {
  .modal-dialog {
    max-width: 400px;
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    animation: modalEnter 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  }
}

@keyframes modalEnter {
  from {
    opacity: 0;
    transform: scale(0.98) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-1);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-primary);
  text-align: left;
  margin-bottom: var(--space-5);
  letter-spacing: -0.01em;
}

.modal-title-main {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

/* Result Modal */
.result-dialog {
  text-align: center;
}

.result-visual {
  font-size: 4rem;
  margin-bottom: var(--space-4);
  animation: bounce 0.4s ease-out;
}

@keyframes bounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.result-title {
  font-size: var(--text-2xl);
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.result-title.win {
  color: var(--accent);
  text-shadow: 0 0 20px var(--accent-glow);
}

.result-title.loss {
  color: var(--text-secondary);
}

.result-message {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-5);
}

.result-nft {
  margin-bottom: var(--space-5);
}

.won-nft-card {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--bg-card);
  border: 2px solid var(--accent);
  border-radius: var(--radius-lg);
  box-shadow: 0 0 20px var(--accent-glow);
}

.won-nft-icon {
  font-size: 1.5rem;
}

.won-nft-name {
  font-weight: 600;
  color: var(--accent);
}

.won-nft-hint {
  margin-top: var(--space-3);
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.result-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

/* Withdraw Modal */
.withdraw-dialog {
  text-align: center;
}

.withdraw-preview {
  margin-bottom: var(--space-5);
}

.withdraw-nft-card {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-5);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.withdraw-nft-icon {
  font-size: 3rem;
}

.withdraw-nft-name {
  font-weight: 600;
  color: var(--text-primary);
}

.withdraw-info {
  margin-bottom: var(--space-5);
}

.withdraw-info p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.withdraw-note {
  color: var(--text-muted) !important;
  font-size: var(--text-xs) !important;
  margin-top: var(--space-2);
}

.withdraw-actions {
  display: flex;
  gap: var(--space-3);
}

.withdraw-actions button {
  flex: 1;
}

/* ============ BUTTONS ============ */
.btn-primary {
  padding: var(--space-5) var(--space-8);
  background: linear-gradient(135deg, var(--primary), #1fb86d);
  border: 1px solid rgba(47, 209, 123, 0.35);
  border-radius: var(--radius-xl);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--text-inverse);
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: 0 8px 20px rgba(34, 197, 94, 0.25), 0 0 0 1px rgba(47, 209, 123, 0.2);
  min-height: 52px;
  letter-spacing: 0.03em;
}

.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--primary-hover), #15945b);
  box-shadow: 0 12px 28px rgba(34, 197, 94, 0.35), 0 0 0 4px rgba(34, 197, 94, 0.1);
  transform: translateY(-2px);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}

.btn-primary:disabled {
  background: var(--bg-elevated);
  color: var(--text-muted);
  cursor: not-allowed;
  box-shadow: none;
  opacity: 0.5;
}

.btn-secondary {
  padding: var(--space-5) var(--space-8);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-base);
  min-height: 52px;
  letter-spacing: 0.03em;
}

.btn-secondary:hover:not(:disabled) {
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.btn-ghost {
  padding: var(--space-2) var(--space-4);
  background: transparent;
  border: none;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color var(--transition-fast);
}

.btn-ghost:hover {
  color: var(--text-primary);
}

/* ============ LOADING ============ */
/* (Splash styles now in dedicated section above) */

/* Skeleton Loading Shimmer */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.vault-card.skeleton {
  background: linear-gradient(
    90deg,
    var(--glass-bg) 0%,
    rgba(255, 255, 255, 0.08) 50%,
    var(--glass-bg) 100%
  );
  background-size: 1000px 100%;
  animation: shimmer 2s infinite;
  pointer-events: none;
}

.vault-card.skeleton * {
  opacity: 0.3;
}

/* ============ UTILITIES ============ */
.hidden {
  display: none !important;
}

/* ============ REEL ANIMATIONS ============ */
.reel.spinning .reel-strip {
  animation: reelSpin var(--spin-speed, 0.08s) linear infinite;
}

@keyframes reelSpin {
  from { transform: translateY(0); }
  to { transform: translateY(-90px); }
}

.reel.stopping .reel-strip {
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slot-frame.win {
  animation: winFlash 0.3s ease-in-out 3;
}

@keyframes winFlash {
  0%, 100% { 
    box-shadow: none;
    border-color: var(--bg-elevated);
  }
  50% { 
    box-shadow: 0 0 30px var(--accent-glow);
    border-color: var(--accent);
  }
}

/* ============ IMPROVEMENTS ============ */

/* Wallet Connection Status */
.wallet-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
  height: 28px;
  flex-shrink: 0;
  white-space: nowrap;
}

.wallet-status.disconnected {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
  color: var(--danger);
}

.wallet-status.connected {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.3);
  color: var(--primary);
  box-shadow: 0 0 8px var(--primary-glow);
}

.wallet-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 4px currentColor;
}

.wallet-status.connected .wallet-status-dot {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Back Button with Label */
.back-btn {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
  min-height: 44px;
  grid-column: 1;
}

.back-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(34, 197, 94, 0.1);
  box-shadow: 0 0 12px var(--primary-glow);
  transform: translateY(-1px);
}

.back-btn:active {
  transform: translateY(0) scale(0.98);
}

/* Spin Button with Price */
.spin-btn-price {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  opacity: 0.9;
  margin-top: 2px;
}

.spin-button:disabled .spin-btn-price {
  display: none;
}

/* Enhanced Win Celebration */
.result-dialog.win-celebration {
  border: 2px solid var(--accent);
  box-shadow: 0 0 60px var(--accent-glow), 0 0 120px var(--accent-glow);
  animation: winPulse 0.5s ease-out;
}

@keyframes winPulse {
  0% { transform: scale(0.8); opacity: 0; }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); opacity: 1; }
}

.result-visual.big-win {
  font-size: 5rem;
  animation: winBounce 0.6s ease-out;
}

@keyframes winBounce {
  0%, 100% { transform: scale(1) rotate(0deg); }
  25% { transform: scale(1.2) rotate(-5deg); }
  50% { transform: scale(1.1) rotate(5deg); }
  75% { transform: scale(1.15) rotate(-3deg); }
}

.result-title.big-win {
  font-size: var(--text-3xl);
  background: linear-gradient(135deg, var(--accent), #fbbf24);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.confetti-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  pointer-events: none;
}

.confetti {
  position: absolute;
  width: 10px;
  height: 10px;
  background: var(--accent);
  animation: confettiFall 3s linear forwards;
}

@keyframes confettiFall {
  0% { transform: translateY(-100%) rotate(0deg); opacity: 1; }
  100% { transform: translateY(500px) rotate(720deg); opacity: 0; }
}

/* Result Action Buttons */
.result-action-win {
  background: linear-gradient(135deg, var(--accent), #d97706);
  font-size: var(--text-lg);
  padding: var(--space-4) var(--space-6);
}

.result-action-loss {
  background: var(--bg-elevated);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.result-action-loss:hover {
  background: var(--bg-card);
  color: var(--text-primary);
}

/* Withdraw Steps */
.withdraw-steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  text-align: left;
}

.withdraw-step {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.withdraw-step .step-icon {
  color: var(--primary);
  font-weight: bold;
}

/* Enhanced Empty Inventory */
.inventory-empty-visual {
  font-size: 3.5rem;
  margin-bottom: var(--space-4);
  opacity: 0.3;
}

.inventory-empty-title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.inventory-empty-subtitle {
  color: var(--text-muted);
  font-size: var(--text-sm);
  line-height: 1.5;
  margin-bottom: auto;
  padding-bottom: var(--space-6);
}

/* Find a Vault button in empty inventory */
.inventory-empty #play-now-btn,
.inventory-empty .btn-primary {
  margin-top: auto;
  padding: var(--space-3) var(--space-5);
  font-size: var(--text-sm);
  min-height: 40px;
  width: auto;
  max-width: 200px;
  align-self: center;
}

/* Spinning State */
.spin-button.spinning {
  background: var(--bg-elevated);
  color: var(--text-muted);
  pointer-events: none;
}

.spin-button.spinning::after {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-left: var(--space-2);
  border: 2px solid var(--text-muted);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Vault Card Improvements */
.vault-card-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  margin-top: var(--space-3);
  padding: var(--space-2) var(--space-4);
  background: var(--primary);
  border: none;
  border-radius: var(--radius-lg);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-inverse);
  transition: all var(--transition-base);
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.2);
  min-height: 36px;
  letter-spacing: 0.05em;
  width: 100%;
}

.vault-card:hover .vault-card-cta {
  background: var(--primary-hover);
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}

.vault-card:active .vault-card-cta {
  transform: scale(0.98);
  box-shadow: 0 1px 4px rgba(34, 197, 94, 0.2);
}

/* ============ VIEW PRIZES BUTTON ============ */

.prize-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  width: 100%;
}

.view-prizes-btn {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-base);
  margin-top: var(--space-2);
}

.view-prizes-btn:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
}

/* ============ EMPTY VAULT WARNING ============ */

.empty-vault-warning {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  margin: var(--space-3) auto;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid var(--danger);
  border-radius: var(--radius-md);
  color: var(--danger);
  font-size: var(--text-xs);
  font-weight: 500;
  max-width: 320px;
  width: 100%;
}

.spin-button:disabled.vault-empty,
.spin-button:disabled.vault-paused {
  background: var(--bg-elevated);
  color: var(--text-muted);
  cursor: not-allowed;
  opacity: 0.6;
}

.spin-button:disabled.vault-paused {
  border: 2px dashed var(--accent);
}

.spin-button.needs-deposit {
  background: linear-gradient(135deg, var(--accent) 0%, #d97706 100%);
  color: var(--bg-primary);
  cursor: pointer;
  opacity: 1;
}

.spin-button.needs-deposit:hover {
  transform: scale(1.02);
  box-shadow: 0 0 30px rgba(245, 158, 11, 0.5);
}

/* ============ INVENTORY MODAL ============ */

.inventory-dialog {
  max-height: 85vh;
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: var(--space-4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: var(--space-4);
}

.modal-close-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: var(--text-xl);
  cursor: pointer;
  transition: all var(--transition-base);
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-hover);
  color: var(--text-primary);
  transform: scale(1.05);
}

.inventory-summary {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.inventory-counts {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.inventory-count {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--primary);
}

.inventory-total {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.inventory-modal-content {
  flex: 1;
  overflow-y: auto;
  padding-right: var(--space-2);
}

/* NFT Grid in Modal */
.inventory-nft-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}

.inventory-nft-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-3);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.inventory-nft-item:hover {
  transform: translateY(-2px);
  border-color: var(--secondary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.inventory-nft-item:active {
  transform: translateY(0);
}

.inventory-nft-item.available {
  border-color: var(--primary);
}

.inventory-nft-item.won {
  border-color: var(--accent);
  opacity: 0.7;
}

.inventory-nft-item.withdrawn,
.inventory-nft-item.invalidated {
  opacity: 0.5;
}

/* Consistent NFT frame in inventory grid */
.inventory-nft-frame {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(145deg, rgba(30, 30, 40, 0.6), rgba(20, 20, 30, 0.8));
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  margin-bottom: var(--space-3);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.2);
}

.inventory-nft-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.inventory-nft-img.hidden {
  display: none;
}

.inventory-nft-placeholder {
  font-size: 2rem;
  opacity: 0.5;
}

.inventory-nft-placeholder.hidden {
  display: none;
}

.inventory-nft-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-2);
}

.inventory-nft-address {
  font-size: var(--text-xs);
  font-family: var(--font-mono);
  color: var(--text-secondary);
  text-align: center;
  word-break: break-all;
  max-width: 100%;
}

.inventory-nft-value {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--accent);
  margin-top: var(--space-1);
}

.inventory-nft-rarity {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: var(--space-1);
}

.inventory-nft-status {
  display: inline-flex;
  padding: var(--space-1) var(--space-2);
  margin-top: var(--space-2);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 500;
}

.inventory-nft-status.available {
  background: rgba(34, 197, 94, 0.15);
  color: var(--primary);
}

.inventory-nft-status.won {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent);
}

.inventory-nft-status.withdrawn {
  background: rgba(113, 113, 122, 0.15);
  color: var(--text-muted);
}

.inventory-nft-status.invalidated {
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger);
}

/* Empty Inventory State */
.inventory-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-8);
  text-align: center;
}

.inventory-empty-state .empty-icon {
  font-size: 3rem;
  margin-bottom: var(--space-4);
  opacity: 0.5;
}

.inventory-empty-state .empty-title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.inventory-empty-state .empty-hint {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* ============ NFT IMAGE PREVIEW ============ */

.inventory-nft-img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-2);
  background: var(--bg-card);
}

.inventory-nft-name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: var(--space-1);
}

.inventory-nft-collection {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-bottom: var(--space-1);
}

/* Show claimed toggle */
.inventory-toggle {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.inventory-toggle label {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  cursor: pointer;
}

.inventory-toggle input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

/* ============ DEPOSIT NFT BUTTON ============ */

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.btn-deposit-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.92), rgba(37, 99, 235, 0.95));
  border: 1px solid rgba(96, 165, 250, 0.45);
  border-radius: var(--radius-xl);
  color: white;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.35), 0 0 0 1px rgba(96, 165, 250, 0.15);
  min-height: 48px;
  letter-spacing: 0.03em;
}

.btn-deposit-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.45), 0 0 0 4px rgba(96, 165, 250, 0.18);
}

.btn-deposit-cta:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.deposit-cta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  font-size: 16px;
}

.deposit-cta-text {
  letter-spacing: 0.02em;
}

/* ============ DEPOSIT WIZARD ============ */

/* Mobile: Bottom sheet style */
.deposit-dialog {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-height: 85vh;
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  animation: slideUp 0.25s ease-out;
  padding-bottom: env(safe-area-inset-bottom, var(--space-4));
}

/* Drag handle for bottom sheet */
.deposit-dialog::before {
  content: '';
  display: block;
  width: 36px;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin: var(--space-2) auto var(--space-3);
  flex-shrink: 0;
}

/* Hide scrollbar but keep functionality */
.deposit-dialog::-webkit-scrollbar {
  width: 0;
  background: transparent;
}

.deposit-dialog {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}

/* Desktop: Centered dialog */
@media (min-width: 480px) {
  .deposit-dialog {
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
    max-height: 90vh;
    max-width: 420px;
    border-radius: var(--radius-xl);
    animation: modalEnter var(--transition-base);
    padding-bottom: var(--space-6);
  }
  
  .deposit-dialog::before {
    display: none;
  }
  
  .deposit-dialog::-webkit-scrollbar {
    width: 6px;
  }
  
  .deposit-dialog::-webkit-scrollbar-track {
    background: var(--bg-elevated);
    border-radius: 3px;
  }
  
  .deposit-dialog::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
  }
}

.deposit-step {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}

.deposit-step::-webkit-scrollbar {
  width: 0;
  background: transparent;
}

.step-indicator {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.step-title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.vault-type-options {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.vault-type-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
  padding: var(--space-4);
  background: var(--bg-elevated);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: left;
}

.vault-type-btn:hover {
  border-color: var(--secondary);
  background: rgba(59, 130, 246, 0.1);
}

.vault-type-btn.selected {
  border-color: var(--primary);
  background: rgba(34, 197, 94, 0.1);
}

.vault-type-icon {
  font-size: 2rem;
}

.vault-type-name {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-primary);
}

.vault-type-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

/* ============ VAULT TARGET SELECTION (Step 2) ============ */
.vault-target-options {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.vault-target-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-1);
  padding: var(--space-4);
  background: var(--bg-elevated);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: left;
  width: 100%;
}

.vault-target-btn:hover {
  border-color: var(--secondary);
  background: rgba(59, 130, 246, 0.1);
}

.vault-target-btn.selected {
  border-color: var(--primary);
  background: rgba(34, 197, 94, 0.15);
}

.vault-target-icon {
  font-size: 1.5rem;
}

.vault-target-name {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-primary);
}

.vault-target-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.existing-vaults-section {
  margin-top: var(--space-2);
}

.existing-vaults-header {
  margin-bottom: var(--space-2);
}

.existing-vaults-label {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.existing-vaults-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  max-height: 200px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.existing-vault-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.existing-vault-item:hover {
  border-color: var(--secondary);
  background: var(--bg-elevated);
}

.existing-vault-item.selected {
  border-color: var(--primary);
  background: rgba(34, 197, 94, 0.1);
}

.existing-vault-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.existing-vault-name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
}

.existing-vault-stats {
  font-size: var(--text-xs);
  color: var(--text-secondary);
}

.existing-vaults-loading {
  text-align: center;
  padding: var(--space-4);
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.no-existing-vaults {
  text-align: center;
  padding: var(--space-4);
  color: var(--text-muted);
  font-size: var(--text-sm);
  background: var(--bg-card);
  border-radius: var(--radius-md);
}

/* ============ WALLET NFT BROWSER ============ */
.wallet-nft-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.wallet-nft-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wallet-nft-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
}

.wallet-nfts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: var(--space-2);
  max-height: 250px;
  overflow-y: auto;
  padding: var(--space-1);
}

.wallet-nft-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-2);
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.wallet-nft-card:hover {
  border-color: var(--secondary);
  transform: translateY(-2px);
}

.wallet-nft-card.selected {
  border-color: var(--primary);
  background: rgba(34, 197, 94, 0.1);
}

.wallet-nft-thumb {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-sm);
  object-fit: contain;
  background: var(--bg-elevated);
}

.wallet-nft-name {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--text-primary);
  text-align: center;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wallet-nfts-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-6);
  color: var(--text-muted);
}

.wallet-nfts-empty {
  text-align: center;
  padding: var(--space-6);
  color: var(--text-muted);
  background: var(--bg-card);
  border-radius: var(--radius-md);
}

/* ============ AUTO PRICING (GetGems Integration) ============ */
.price-suggestion {
  margin-bottom: var(--space-2);
}

.price-loading {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--text-muted);
  font-size: var(--text-sm);
  padding: var(--space-2) 0;
}

.loading-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.suggested-price {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-3);
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid var(--primary);
  border-radius: var(--radius-md);
}

.suggested-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.suggested-label {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.suggested-value {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--primary);
}

.btn-use-price {
  margin-left: auto;
  padding: var(--space-1) var(--space-3);
  background: var(--primary);
  color: var(--bg);
  border: none;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-use-price:hover {
  background: var(--primary-hover);
  transform: scale(1.02);
}

.price-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
}

.price-source {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.price-bounds {
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

.price-warning {
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  margin-top: var(--space-2);
}

.price-warning.error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid var(--danger);
  color: var(--danger);
}

.price-warning.info {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid var(--accent);
  color: var(--accent);
}

/* ============ DEPOSIT SUMMARY ============ */
.deposit-summary {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-3);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-3);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.summary-label {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.summary-value {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
}

.nft-input-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.input-label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
}

.text-input, .select-input {
  width: 100%;
  padding: var(--space-3);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  transition: border-color var(--transition-fast);
}

.text-input:focus, .select-input:focus {
  outline: none;
  border-color: var(--secondary);
}

.text-input::placeholder {
  color: var(--text-muted);
}

.example-nfts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

/* Example NFTs Section */
.example-nfts-section {
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--border);
}

.example-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-2);
}

.example-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.btn-link {
  background: none;
  border: none;
  color: var(--secondary);
  font-size: var(--text-xs);
  cursor: pointer;
  padding: var(--space-1);
}

.btn-link:hover {
  text-decoration: underline;
}

.btn-link:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.examples-status {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-bottom: var(--space-2);
}

.example-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2);
}

@media (max-width: 400px) {
  .example-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.example-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-2);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
}

.example-card:hover {
  border-color: var(--secondary);
  transform: translateY(-2px);
}

.example-card-img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-1);
}

.example-card-icon {
  width: 48px;
  height: 48px;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-1);
}

.example-card-name {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--text-primary);
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.example-card-addr {
  font-size: 10px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* Offline/Error states */
.examples-loading,
.examples-offline,
.examples-error,
.examples-empty {
  padding: var(--space-3);
  text-align: center;
  color: var(--text-muted);
  font-size: var(--text-sm);
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px dashed var(--border);
}

.examples-offline .offline-icon,
.examples-error .error-icon {
  margin-right: var(--space-1);
}

.examples-offline {
  color: var(--warning);
  border-color: var(--warning);
}

.examples-error {
  color: var(--error);
  border-color: var(--error);
}

/* Validation */
.validation-error {
  font-size: var(--text-xs);
  color: var(--error);
  margin-top: var(--space-1);
}

/* NFT Preview */
.nft-preview {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  background: var(--bg-elevated);
  border: 1px solid var(--primary);
  border-radius: var(--radius-md);
  margin-top: var(--space-3);
}

.nft-preview-img-container {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
}

.nft-preview-img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.nft-preview-img.hidden {
  display: none;
}

.nft-preview-fallback {
  width: 64px;
  height: 64px;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border-radius: var(--radius-md);
}

.nft-preview-fallback.hidden {
  display: none;
}

.nft-preview-error {
  font-size: var(--text-xs);
  color: var(--warning);
}
  background: var(--bg-card);
}

.nft-preview-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.nft-preview-name {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-primary);
}

.nft-preview-collection {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.config-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.input-hint {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin: 0;
}

.deposit-warning {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3);
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid var(--accent);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--accent);
}

.deposit-fee-note {
  font-size: var(--text-sm);
  color: var(--text-muted);
  text-align: center;
}

.step-nav {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  margin-top: auto;
  padding-top: var(--space-4);
  position: sticky;
  bottom: 0;
  background: var(--bg-surface);
  padding-bottom: var(--space-2);
  flex-shrink: 0;
}

.step-nav .btn-secondary,
.step-nav .btn-primary {
  flex: 1;
  min-height: 48px;
}

.btn-deposit {
  background: linear-gradient(135deg, var(--primary), #059669);
}

/* ============ BALANCE DISPLAY ============ */

/* ============ BALANCE PILL (CLEAN) ============ */
.balance-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 4px 10px;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-base);
  height: 28px;
  min-width: auto;
  max-width: 120px;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.balance-pill:hover {
  border-color: var(--primary);
  background: rgba(34, 197, 94, 0.1);
  box-shadow: 0 0 12px var(--primary-glow);
  transform: translateY(-1px);
}

.balance-pill:active {
  transform: translateY(0) scale(0.98);
}

.balance-pill.hidden {
  display: none;
}

.balance-icon-svg {
  width: 16px;
  height: 16px;
  color: var(--primary);
  flex-shrink: 0;
  filter: drop-shadow(0 0 4px var(--primary-glow));
}

.balance-amount {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  font-family: var(--font-mono);
  line-height: 1;
  letter-spacing: 0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.balance-unit {
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 500;
  line-height: 1;
}

/* Old balance-display for backwards compat */
.balance-display {
  display: none;
}

.balance-btn-old {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: var(--text-lg);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.balance-btn.deposit:hover {
  background: rgba(34, 197, 94, 0.2);
  border-color: var(--primary);
  color: var(--primary);
}

.balance-btn.withdraw:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: var(--danger);
  color: var(--danger);
}

/* ============ BALANCE MODALS ============ */

/* ============ BALANCE MODALS (Mobile-First) ============ */
.balance-modal {
  max-width: 100%;
  width: 100%;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  max-height: 80vh;
  overflow-y: auto;
  animation: slideUp 0.25s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (min-width: 480px) {
  .balance-modal {
    position: relative;
    max-width: 400px;
    border-radius: var(--radius-lg);
    animation: none;
  }
}

.modal-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
  line-height: 1.5;
  text-align: center;
}

.amount-input-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.amount-input-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.amount-input {
  width: 100%;
  font-size: var(--text-xl);
  font-family: var(--font-mono);
  text-align: center;
  padding: var(--space-4);
  border-radius: var(--radius-md);
}

.quick-amounts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-2);
}

.quick-amount-btn {
  padding: var(--space-3);
  min-height: 48px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.quick-amount-btn:hover,
.quick-amount-btn:active {
  border-color: var(--secondary);
  color: var(--secondary);
  background: var(--bg-elevated);
}

.quick-amount-btn.selected {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(245, 158, 11, 0.1);
}

.max-btn {
  padding: var(--space-2) var(--space-3);
  background: var(--bg-card);
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  color: var(--accent);
  font-size: var(--text-xs);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.max-btn:hover {
  background: rgba(245, 158, 11, 0.2);
}

.balance-hint {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: var(--space-1);
}

.fee-note {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-4);
}

.modal-actions {
  display: flex;
  flex-direction: column-reverse;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

@media (min-width: 480px) {
  .modal-actions {
    flex-direction: row;
    gap: var(--space-3);
  }
}

.modal-actions button {
  flex: 1;
  min-height: 52px;
  font-size: var(--text-base);
  border-radius: var(--radius-md);
}

/* ============ RARITY BADGES ============ */

.rarity-badge {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
}

.rarity-badge.common {
  background: rgba(113, 113, 122, 0.2);
  color: var(--text-secondary);
}

.rarity-badge.rare {
  background: rgba(59, 130, 246, 0.2);
  color: var(--secondary);
}

.rarity-badge.epic {
  background: rgba(168, 85, 247, 0.2);
  color: #a855f7;
}

.rarity-badge.legendary {
  background: rgba(245, 158, 11, 0.2);
  color: var(--accent);
}

/* ============ WALLET MODAL ============ */
.wallet-dialog {
  max-width: 100%;
  width: 100%;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  max-height: 75vh;
  overflow-y: auto;
  animation: slideUp 0.25s ease-out;
  padding-bottom: env(safe-area-inset-bottom, var(--space-4));
}

@media (min-width: 480px) {
  .wallet-dialog {
    position: relative;
    max-width: 400px;
    border-radius: var(--radius-lg);
    animation: none;
    padding-bottom: var(--space-4);
  }
}

.wallet-dialog.bottom-sheet {
  /* Keep for backwards compat, styling now in main class */
}

.modal-title-icon {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  margin-right: var(--space-1);
  color: var(--accent);
}

.wallet-balance-section {
  text-align: center;
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--space-3);
}

.wallet-balance-label {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-1);
}

.wallet-balance-value {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
}

.wallet-ton-icon {
  width: 28px;
  height: 28px;
  color: var(--accent);
}

#wallet-balance-amount {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  font-family: var(--font-mono);
}

.wallet-balance-unit {
  font-size: var(--text-lg);
  color: var(--text-muted);
  font-weight: 500;
}

.wallet-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.wallet-action-btn {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-4);
  min-height: 56px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-card);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-primary);
}

.wallet-action-btn:hover,
.wallet-action-btn:active {
  border-color: var(--secondary);
  background: var(--bg-elevated);
  transform: scale(0.98);
}

.wallet-action-btn.deposit {
  border-color: var(--primary);
  background: rgba(34, 197, 94, 0.1);
}

.wallet-action-btn.deposit .wallet-action-icon {
  color: var(--primary);
}

.wallet-action-btn.withdraw {
  border-color: var(--error);
  background: rgba(239, 68, 68, 0.1);
}

.wallet-action-btn.withdraw .wallet-action-icon {
  color: var(--error);
}

.wallet-action-icon {
  font-size: 1.25rem;
  font-weight: 700;
}

.wallet-ledger-section {
  border-top: 1px solid var(--border);
  padding-top: var(--space-3);
}

.wallet-ledger-header {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
}

.wallet-ledger-list {
  max-height: 150px;
  overflow-y: auto;
}

.wallet-ledger-empty {
  text-align: center;
  color: var(--text-muted);
  font-size: var(--text-sm);
  padding: var(--space-3);
}

/* Bottom sheet handle indicator */
.wallet-dialog::before,
.balance-modal::before {
  content: '';
  display: block;
  width: 36px;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin: 0 auto var(--space-3);
}

@media (min-width: 480px) {
  .wallet-dialog::before,
  .balance-modal::before {
    display: none;
  }
}

.wallet-ledger-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-3);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  margin-bottom: var(--space-2);
  min-height: 48px;
}

.wallet-ledger-type {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  text-transform: capitalize;
}

.wallet-ledger-amount {
  font-size: var(--text-sm);
  font-family: var(--font-mono);
  font-weight: 600;
}

.wallet-ledger-amount.positive {
  color: var(--primary);
}

.wallet-ledger-amount.negative {
  color: var(--error);
}

/* ============ NFT DETAILS MODAL ============ */
.nft-details-dialog {
  max-width: 100%;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  animation: slideUp 0.25s ease-out;
  padding-bottom: env(safe-area-inset-bottom, var(--space-4));
}

@media (min-width: 480px) {
  .nft-details-dialog {
    position: relative;
    max-width: 400px;
    border-radius: var(--radius-xl);
    animation: modalEnter var(--transition-base);
    padding-bottom: var(--space-6);
  }
}

.nft-details-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

/* Large NFT Image Container */
.nft-details-image-container {
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 320px;
  margin: 0 auto;
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: linear-gradient(145deg, rgba(30, 30, 40, 0.6), rgba(20, 20, 30, 0.8));
  border: 1px solid var(--glass-border);
  box-shadow: 
    0 12px 32px rgba(0, 0, 0, 0.4),
    inset 0 0 50px rgba(255, 255, 255, 0.02);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

/* Subtle checker pattern for transparent images */
.nft-details-image-container::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(45deg, rgba(255,255,255,0.015) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255,255,255,0.015) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(255,255,255,0.015) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(255,255,255,0.015) 75%);
  background-size: 16px 16px;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
  opacity: 0.6;
  pointer-events: none;
}

.nft-details-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-md);
  position: relative;
  z-index: 1;
  image-rendering: -webkit-optimize-contrast;
}

.nft-details-img.hidden {
  display: none;
}

.nft-details-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  opacity: 0.5;
  position: relative;
  z-index: 1;
}

.nft-details-fallback.hidden {
  display: none;
}

/* NFT Info Section */
.nft-details-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.nft-details-name {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  margin: 0;
}

.nft-details-collection {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  text-align: center;
}

.nft-details-collection:empty {
  display: none;
}

/* Metadata Grid */
.nft-details-meta {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-3);
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.nft-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nft-meta-label {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.nft-meta-value {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
}

/* NFT Address Section */
.nft-details-address {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.nft-address-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.nft-address-code {
  flex: 1;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-copy {
  background: none;
  border: none;
  padding: var(--space-1);
  cursor: pointer;
  font-size: 1rem;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.btn-copy:hover {
  opacity: 1;
}

/* ============ INVESTOR DASHBOARD ============ */

.investor-content {
  padding: var(--space-5) var(--space-4);
  max-width: var(--max-width);
  margin: 0 auto;
}

.investor-model-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  margin-bottom: var(--space-4);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.model-label {
  font-weight: 500;
}

.model-value {
  font-family: var(--font-mono);
  color: var(--text-secondary);
  font-weight: 600;
}

.vault-share-badge {
  padding: 2px 8px;
  background: rgba(47, 209, 123, 0.12);
  border: 1px solid rgba(47, 209, 123, 0.28);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--primary);
  margin-left: var(--space-2);
}

.investor-range-selector {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
  justify-content: center;
}

.range-btn {
  padding: var(--space-2) var(--space-4);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-base);
}

.range-btn:hover {
  background: var(--bg-card);
  border-color: var(--border-hover);
}

.range-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--text-inverse);
  font-weight: 600;
}

.investor-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}

.summary-card {
  background: linear-gradient(180deg, rgba(32, 40, 52, 0.96), rgba(24, 30, 40, 0.96));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.summary-card.highlight {
  border-color: rgba(244, 178, 68, 0.5);
  box-shadow: 0 10px 22px rgba(244, 178, 68, 0.12);
}

.summary-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.summary-value {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--font-mono);
}

.summary-card.positive .summary-value {
  color: var(--success);
}

.summary-card.negative .summary-value {
  color: var(--danger);
}

.investor-section {
  margin-bottom: var(--space-8);
}

.section-title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--border);
}

.investor-vault-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.investor-vault-item {
  background: linear-gradient(180deg, rgba(32, 40, 52, 0.96), rgba(24, 30, 40, 0.96));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  transition: all var(--transition-base);
}

.investor-vault-item:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
}

.vault-item-header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.vault-item-id {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.vault-item-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: var(--space-3);
}

.vault-stat {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.stat-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.stat-value {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
  font-family: var(--font-mono);
}

.stat-value.positive {
  color: var(--success);
}

.stat-value.negative {
  color: var(--danger);
}

.investor-nft-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.investor-nft-item {
  background: linear-gradient(180deg, rgba(32, 40, 52, 0.96), rgba(24, 30, 40, 0.96));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  display: flex;
  gap: var(--space-4);
  align-items: center;
}

.nft-item-preview {
  width: 60px;
  height: 60px;
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nft-placeholder {
  font-size: 2rem;
}

.nft-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.nft-item-address {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--text-primary);
  font-weight: 600;
}

.nft-item-meta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.nft-value {
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.nft-item-status {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.status-badge {
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
}

.status-badge.available {
  background: rgba(34, 197, 94, 0.2);
  color: var(--success);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-badge.won {
  background: rgba(245, 158, 11, 0.2);
  color: var(--accent);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-badge.withdrawn {
  background: rgba(59, 130, 246, 0.2);
  color: var(--secondary);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.status-badge.invalidated {
  background: rgba(239, 68, 68, 0.2);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.won-by {
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.nft-item-allocation {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-top: var(--space-1);
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.allocation-label {
  font-weight: 500;
}

.allocation-value {
  font-family: var(--font-mono);
  color: var(--text-secondary);
  font-weight: 600;
}

.allocation-detail {
  font-size: 10px;
  opacity: 0.7;
}

.loading-state,
.empty-state,
.error-state {
  text-align: center;
  padding: var(--space-8);
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.error-state {
  color: var(--danger);
}

/* ============ LAST SPIN RESULT ============ */

.last-spin-result {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-4);
  margin: var(--space-4) auto var(--space-3);
  max-width: 320px;
  text-align: center;
}

.last-spin-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

.last-spin-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.last-spin-outcome {
  font-size: var(--text-base);
  font-weight: 700;
  font-family: var(--font-mono);
}

.last-spin-outcome.win {
  color: var(--success);
}

.last-spin-outcome.loss {
  color: var(--text-muted);
  opacity: 0.7;
}

.last-spin-details {
  font-size: var(--text-xs);
  color: var(--text-secondary);
}

.last-spin-nft {
  font-family: var(--font-mono);
  color: var(--text-primary);
  font-weight: 500;
}

.last-spin-note {
  color: var(--text-muted);
  font-style: italic;
}

/* External Links */
.nft-details-links {
  display: flex;
  justify-content: center;
  padding-top: var(--space-2);
}

.btn-link-external {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  color: var(--secondary);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 500;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  transition: background 0.2s;
}

.btn-link-external:hover {
  background: rgba(59, 130, 246, 0.1);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 360px) {
  .brand-name {
    letter-spacing: 0.16em;
  }

  .splash-title {
    letter-spacing: 0.06em;
  }

  .reel {
    width: 60px;
    height: 75px;
  }
  
  .reel-symbol {
    width: 60px;
    height: 75px;
    font-size: 1.75rem;
  }
  
  .slot-frame {
    gap: var(--space-1);
    padding: var(--space-3);
  }
  
  .game-stats {
    gap: var(--space-2);
    max-width: 100%;
  }
  
  .stat-value {
    font-size: var(--text-xs);
  }
  
  .stat-label {
    font-size: 7px;
  }
  
  .prize-showcase {
    width: 160px;
    height: 180px;
  }
  
  .nft-image-frame {
    width: 140px;
    height: 140px;
    padding: 12px;
  }
  
  .proof-grid {
    grid-template-columns: 1fr;
  }
  
  .back-btn span {
    display: none;
  }
  
  .wallet-status-text {
    display: none;
  }
  
  .inventory-nft-grid {
    grid-template-columns: 1fr;
  }
  
  .spin-button {
    max-width: 100%;
    padding: var(--space-3) var(--space-5);
    min-height: 48px;
  }
}
