* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

:root {
  /* MonkeDAO brand palette */
  --monke-green: #00B67A;
  --monke-green-glow: #00B67A88;
  --monke-yellow: #F5C842;
  --monke-yellow-glow: #F5C84288;
  --monke-blue: #2D6BE4;
  --monke-blue-glow: #2D6BE488;

  /* Game-specific accents (kept but grounded in brand) */
  --neon-pink: #FF3A6E;
  --neon-yellow: var(--monke-yellow);
  --neon-cyan: #00D4FF;
  --neon-green: var(--monke-green);

  /* Backgrounds */
  --dark: #080e0b;          /* MonkeDAO dark-forest base */
  --dark-2: #0f1a13;        /* Slightly lighter surface */
  --dark-3: #162010;        /* Card/element surface */
  --card-bg: #0f1a13;

  /* Typography */
  --font-brand: 'Press Start 2P', monospace;   /* Titles, scores, impact text */
  --font-ui: 'Space Grotesk', sans-serif;       /* All other UI: names, labels, descriptions */
}

body {
  background: radial-gradient(ellipse at center, #0f1a13 0%, #080e0b 50%, #040806 100%);
  color: #fff;
  font-family: var(--font-ui);
  min-height: 100vh;
  overflow-x: hidden;
  user-select: none;
  position: relative;
}

/* Global particle canvas */
#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.6;
}

/* Premium depth gradient overlay */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 50%, transparent 0%, rgba(0,0,0,0.4) 100%);
  pointer-events: none;
  z-index: 0;
}

/* ===== SCREENS ===== */
.screen {
  display: none;
  min-height: 100vh;
  padding: 16px;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
  animation: screenFadeIn 0.4s ease-out;
}
.screen.active { display: flex; }

@keyframes screenFadeIn {
  from { 
    opacity: 0;
    transform: scale(0.95);
  }
  to { 
    opacity: 1;
    transform: scale(1);
  }
}

/* ===== CHARACTER SELECT ===== */
.challenge-banner {
  background: var(--neon-pink);
  color: #fff;
  padding: 10px 16px;
  text-align: center;
  font-size: 8px;
  line-height: 1.8;
  width: 100%;
  max-width: 600px;
  margin-bottom: 12px;
  border: 2px solid #fff;
  animation: pulse-border 1s infinite;
}
.challenge-banner.hidden { display: none; }

@keyframes pulse-border {
  0%, 100% { border-color: #fff; }
  50% { border-color: var(--neon-yellow); }
}

.title {
  font-family: var(--font-brand);
  font-size: clamp(28px, 8vw, 56px);
  text-align: center;
  line-height: 1.3;
  margin-top: 12px;
  color: #fff;
  text-shadow: 
    0 0 20px var(--monke-yellow), 
    0 0 40px var(--monke-yellow),
    0 4px 8px rgba(0,0,0,0.8);
  animation: titleSlam 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards, title-glow 2s ease-in-out 0.8s infinite;
  transform-origin: center;
}

@keyframes titleSlam {
  0% { 
    transform: scale(3) translateY(-200px) rotate(-5deg);
    opacity: 0;
    filter: blur(10px);
  }
  60% {
    transform: scale(1.2) translateY(0) rotate(2deg);
    filter: blur(0);
  }
  80% {
    transform: scale(0.95) rotate(-1deg);
  }
  100% { 
    transform: scale(1) rotate(0);
    opacity: 1;
    filter: blur(0);
  }
}

@keyframes title-glow {
  0%, 100% { 
    text-shadow: 
      0 0 20px var(--monke-yellow), 
      0 0 40px var(--monke-yellow),
      0 4px 8px rgba(0,0,0,0.8);
    transform: scale(1);
  }
  50% { 
    text-shadow: 
      0 0 30px var(--monke-green), 
      0 0 60px var(--monke-green), 
      0 0 80px var(--monke-green),
      0 4px 12px rgba(0,0,0,0.9);
    transform: scale(1.02);
  }
}

/* Screen flash on title slam */
.title-flash {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle, rgba(245,200,66,0.8), transparent);
  pointer-events: none;
  z-index: 9999;
  animation: flashOut 0.4s ease-out forwards;
}

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

.neon-pink { color: var(--neon-pink); }

.subtitle {
  font-family: var(--font-ui);
  font-size: clamp(11px, 2.8vw, 16px);
  font-weight: 600;
  color: var(--monke-green);
  margin: 12px 0 24px;
  letter-spacing: 3px;
  text-transform: uppercase;
  animation: blink 1.2s step-end infinite;
}

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

.monke-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  width: 100%;
  max-width: 720px;
  padding-bottom: 24px;
}

.monke-card {
  background: linear-gradient(135deg, var(--dark-3), #1a2615);
  border: 2px solid #1e2e22;
  border-radius: 8px;
  padding: 14px 10px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
  overflow: hidden;
}

.monke-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, var(--monke-yellow-glow) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.monke-card:hover::before {
  opacity: 0.3;
}

.monke-card:hover, .monke-card:active {
  border-color: var(--monke-yellow);
  transform: translateY(-4px) scale(1.05);
  box-shadow: 
    0 10px 30px rgba(245, 200, 66, 0.3),
    0 0 20px var(--monke-yellow-glow),
    inset 0 0 20px rgba(245, 200, 66, 0.1);
  background: linear-gradient(135deg, #1a2615, #243018);
}

.monke-card.selected {
  border-color: var(--monke-green);
  background: #0a1f12;
  box-shadow: 0 0 20px var(--monke-green-glow);
  animation: selected-pulse 0.3s ease-out;
}

@keyframes selected-pulse {
  0% { transform: scale(1.1); }
  100% { transform: scale(1.04); }
}

.card-img-wrap {
  width: 96px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.card-monke-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  filter: drop-shadow(0 0 6px rgba(255,190,11,0.3));
  animation: idle-bob 1.8s ease-in-out infinite;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.monke-card:hover .card-monke-img {
  filter: 
    drop-shadow(0 0 15px var(--neon-yellow))
    drop-shadow(0 0 30px rgba(245, 200, 66, 0.5))
    brightness(1.1)
    contrast(1.1);
  animation: attackPreview 0.6s ease-in-out infinite;
  transform: scale(1.1);
}

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

.card-name {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  color: var(--monke-yellow);
  text-align: center;
  line-height: 1.5;
  letter-spacing: 0.5px;
}

.card-stat {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 500;
  color: var(--monke-blue);
  text-align: center;
  line-height: 1.6;
  opacity: 0.85;
}

/* ===== DAILY BANNER ===== */
.daily-banner {
  background: linear-gradient(90deg, #0d1a00, #142200, #0d1a00);
  border: 2px solid var(--monke-yellow);
  color: var(--monke-yellow);
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  padding: 8px 16px;
  text-align: center;
  width: 100%;
  max-width: 600px;
  margin-bottom: 10px;
  border-radius: 6px;
  letter-spacing: 1px;
  animation: pulse-border 1.5s infinite;
}
.daily-banner.hidden { display: none; }

.daily-badge {
  background: var(--neon-yellow);
  color: #000;
  font-size: 6px;
  padding: 3px 6px;
  position: absolute;
  top: -4px;
  right: -4px;
  z-index: 2;
}

.monke-card.daily-monke {
  border-color: var(--neon-yellow);
  background: #1a1a00;
  position: relative;
}

/* ===== VS INTRO SCREEN ===== */
.vs-intro {
  display: flex;
  width: 100%;
  max-width: 600px;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  gap: 8px;
  animation: vsZoomIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes vsZoomIn {
  0% {
    transform: scale(1.5);
    opacity: 0;
    filter: blur(10px);
  }
  100% {
    transform: scale(1);
    opacity: 1;
    filter: blur(0);
  }
}

.vs-intro-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex: 1;
  animation: fighterSlide 0.6s ease-out;
}

.vs-intro-side:first-child {
  animation-name: fighterSlideLeft;
}

.vs-intro-side:last-child {
  animation-name: fighterSlideRight;
}

@keyframes fighterSlideLeft {
  from { transform: translateX(-100px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes fighterSlideRight {
  from { transform: translateX(100px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.vs-intro-img-wrap {
  width: 100px;
  height: 100px;
  position: relative;
}

.vs-intro-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  filter: drop-shadow(0 0 20px rgba(255,190,11,0.8));
  animation: vsIdlePulse 1.2s ease-in-out infinite;
}

@keyframes vsIdlePulse {
  0%, 100% { 
    transform: scale(1);
    filter: drop-shadow(0 0 20px rgba(255,190,11,0.8));
  }
  50% { 
    transform: scale(1.05);
    filter: drop-shadow(0 0 30px rgba(255,190,11,1));
  }
}

/* Lightning effect canvas */
#vs-lightning {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
}

.vs-intro-name {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  color: var(--monke-yellow);
  text-align: center;
  letter-spacing: 1px;
}

.vs-intro-center { text-align: center; }

.vs-big {
  font-size: 36px;
  color: var(--neon-pink);
  text-shadow: 
    0 0 20px var(--neon-pink),
    0 0 40px var(--neon-pink),
    0 0 60px rgba(255, 58, 110, 0.5);
  animation: vsTextPulse 0.8s ease-in-out infinite;
  font-family: var(--font-brand);
  letter-spacing: 4px;
}

@keyframes vsTextPulse {
  0%, 100% { 
    transform: scale(1) rotate(0deg);
    text-shadow: 
      0 0 20px var(--neon-pink),
      0 0 40px var(--neon-pink),
      0 0 60px rgba(255, 58, 110, 0.5);
  }
  50% { 
    transform: scale(1.2) rotate(-2deg);
    text-shadow: 
      0 0 30px var(--neon-pink),
      0 0 60px var(--neon-pink),
      0 0 80px rgba(255, 58, 110, 0.8);
  }
}

.taunt-box {
  background: #111;
  border: 2px solid var(--neon-pink);
  border-radius: 4px;
  padding: 14px 18px;
  max-width: 500px;
  width: 100%;
  text-align: center;
  margin: 10px 0;
}

.taunt-box span {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  font-style: italic;
  color: #cce8d8;
  line-height: 1.7;
}

.vs-countdown {
  font-family: var(--font-brand);
  font-size: 10px;
  color: var(--monke-green);
  margin-top: 12px;
  animation: countdownPulse 1s ease-in-out infinite;
  text-shadow: 0 0 10px var(--monke-green-glow);
  transform-origin: center;
}

@keyframes countdownPulse {
  0%, 100% { 
    transform: scale(1);
    opacity: 1;
  }
  50% { 
    transform: scale(1.2);
    opacity: 0.8;
  }
}

/* ===== BATTLE SCREEN ===== */
.battle-arena {
  display: flex;
  width: 100%;
  max-width: 700px;
  justify-content: space-between;
  align-items: flex-end;
  gap: 8px;
  flex: 1;
  padding-top: 12px;
  position: relative;
  background: 
    radial-gradient(ellipse at bottom, rgba(245, 200, 66, 0.1) 0%, transparent 50%),
    linear-gradient(180deg, transparent 0%, rgba(0, 182, 122, 0.05) 100%);
  border-radius: 20px;
  padding: 20px;
}

.battle-arena::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--monke-green), transparent);
  opacity: 0.5;
  animation: arenaFloorPulse 3s ease-in-out infinite;
}

@keyframes arenaFloorPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.7; }
}

/* Hit flash overlay */
.hit-flash {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 999;
  animation: hitFlash 0.2s ease-out forwards;
}

@keyframes hitFlash {
  0% { 
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8), transparent);
    opacity: 1;
  }
  100% { 
    opacity: 0;
  }
}

/* Impact particles canvas */
#impact-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 100;
}

.fighter-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
}

.fighter-name {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  color: var(--monke-yellow);
  text-align: center;
  line-height: 1.5;
  max-width: 120px;
  letter-spacing: 0.5px;
}

.dignity-bar-wrap {
  width: 100%;
  max-width: 130px;
}

.dignity-label {
  font-size: 5px;
  color: #888;
  margin-bottom: 3px;
  text-align: center;
}

.dignity-track {
  background: #222;
  border: 2px solid #444;
  height: 12px;
  border-radius: 2px;
  overflow: hidden;
}

.dignity-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--monke-green), var(--monke-yellow));
  transition: width 0.3s ease, background 0.3s;
  width: 100%;
  position: relative;
  box-shadow: inset 0 0 10px rgba(0, 182, 122, 0.5);
}

.dignity-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: dignityShimmer 2s linear infinite;
}

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

.dignity-fill.low {
  background: linear-gradient(90deg, #cc2200, var(--neon-pink));
  animation: lowDignityPulse 0.5s ease-in-out infinite;
}

@keyframes lowDignityPulse {
  0%, 100% { 
    box-shadow: 
      inset 0 0 10px rgba(255, 0, 0, 0.8),
      0 0 20px rgba(255, 58, 110, 0.5);
  }
  50% { 
    box-shadow: 
      inset 0 0 20px rgba(255, 0, 0, 1),
      0 0 30px rgba(255, 58, 110, 0.8);
  }
}

.fighter-img-wrap {
  position: relative;
  width: 100px;
  height: 100px;
}

@media (min-width: 480px) {
  .fighter-img-wrap { width: 140px; height: 140px; }
}

.fighter-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.6));
  animation: idle-bob 1.6s ease-in-out infinite;
}

.fighter-img.flipped {
  transform: scaleX(-1);
  animation: idle-bob-flipped 1.9s ease-in-out infinite;
}

.fighter-img.flipped.attack { transform: scaleX(-1) translateX(-28px) scale(1.08); animation: none; }
.fighter-img.attack { transform: translateX(28px) scale(1.08); animation: none; }

/* Frenzy glow */
body.frenzy-active .fighter-img:not(.flipped) {
  filter: drop-shadow(0 0 12px var(--neon-pink)) drop-shadow(0 0 24px var(--neon-pink));
}

.vs-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding-bottom: 12px;
  min-width: 60px;
}

.vs-text {
  font-size: 14px;
  color: var(--neon-pink);
  text-shadow: 0 0 10px var(--neon-pink);
}

.impact-zone {
  width: 60px;
  height: 60px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.impact-star {
  position: absolute;
  font-size: 28px;
  animation: impact-pop 0.4s ease-out forwards;
  pointer-events: none;
}

@keyframes impact-pop {
  0% { transform: scale(0) rotate(0deg); opacity: 1; }
  60% { transform: scale(1.4) rotate(20deg); opacity: 1; }
  100% { transform: scale(0.8) rotate(-10deg); opacity: 0; }
}

.hit-text {
  font-family: var(--font-brand);
  font-size: 9px;
  color: var(--monke-yellow);
  text-align: center;
  line-height: 1.5;
  min-height: 34px;
  text-shadow: 0 0 10px var(--monke-yellow);
  animation: hit-text-fade 0.8s ease-out forwards;
  opacity: 0;
}

.hit-text.show {
  opacity: 1;
  animation: hit-text-pop 0.8s ease-out forwards;
}

@keyframes hit-text-pop {
  0% { transform: scale(0.5); opacity: 0; }
  30% { transform: scale(1.2); opacity: 1; }
  70% { opacity: 1; }
  100% { transform: scale(1); opacity: 0; }
}

/* Battle top bar */
.battle-top-bar {
  display: flex;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 24px;
  margin-bottom: 4px;
}

.combo-indicator, .frenzy-indicator {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 1px;
  animation: pulse-border 0.5s infinite;
}
.combo-indicator {
  background: #141f00;
  border: 2px solid var(--monke-yellow);
  color: var(--monke-yellow);
}
.frenzy-indicator {
  background: #1a0000;
  border: 2px solid var(--neon-pink);
  color: var(--neon-pink);
}
.combo-indicator.hidden, .frenzy-indicator.hidden { display: none; }

/* Counter block window */
.counter-window {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 800;
  color: #000;
  background: var(--monke-green);
  padding: 6px 14px;
  border-radius: 6px;
  letter-spacing: 2px;
  animation: blink 0.2s step-end infinite;
  cursor: pointer;
}
.counter-window.hidden { display: none; }

/* BATTLE CONTROLS */
.battle-controls {
  width: 100%;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 16px 0 24px;
}

.power-bar-wrap {
  width: 100%;
}

.power-label {
  font-size: 6px;
  color: #888;
  text-align: center;
  margin-bottom: 4px;
}

.power-track {
  background: linear-gradient(180deg, #111, #222);
  border: 2px solid #444;
  height: 24px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 
    inset 0 2px 5px rgba(0,0,0,0.8),
    0 0 20px rgba(0,0,0,0.4);
  position: relative;
}

.perfect-zone {
  position: absolute;
  top: 0;
  height: 100%;
  background: rgba(0, 182, 122, 0.3);
  border-left: 3px solid var(--monke-green);
  border-right: 3px solid var(--monke-green);
  pointer-events: none;
  z-index: 2;
  animation: perfectZonePulse 1s ease-in-out infinite;
  box-shadow: 
    inset 0 0 20px rgba(0, 182, 122, 0.5),
    0 0 10px rgba(0, 182, 122, 0.3);
}

@keyframes perfectZonePulse {
  0%, 100% { 
    background: rgba(0, 182, 122, 0.3);
    box-shadow: 
      inset 0 0 20px rgba(0, 182, 122, 0.5),
      0 0 10px rgba(0, 182, 122, 0.3);
  }
  50% { 
    background: rgba(0, 182, 122, 0.5);
    box-shadow: 
      inset 0 0 30px rgba(0, 182, 122, 0.8),
      0 0 20px rgba(0, 182, 122, 0.5);
  }
}

.power-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--monke-blue), var(--monke-green), var(--monke-yellow));
  transition: width 0.05s linear;
  position: relative;
  box-shadow: inset 0 0 15px rgba(0, 182, 122, 0.4);
}

.power-fill::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 4px;
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
  animation: powerGlow 0.3s ease-in-out infinite;
}

@keyframes powerGlow {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}

.slap-btn {
  font-family: var(--font-brand);
  font-size: clamp(16px, 5vw, 28px);
  background: linear-gradient(135deg, var(--monke-green), #00D68A);
  color: #000;
  border: none;
  padding: 18px 36px;
  cursor: pointer;
  border-radius: 8px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  box-shadow: 
    0 0 30px var(--monke-green-glow), 
    0 8px 0 #006644,
    inset 0 2px 0 rgba(255,255,255,0.3);
  transition: all 0.08s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  touch-action: none;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
}

.slap-btn::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent);
  transform: rotate(45deg);
  animation: buttonShine 3s linear infinite;
}

@keyframes buttonShine {
  0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.slap-btn:active, .slap-btn.pressing {
  transform: translateY(6px) scale(0.98);
  box-shadow: 
    0 0 35px var(--monke-green-glow), 
    0 2px 0 #006644,
    inset 0 2px 5px rgba(0,0,0,0.2);
}

.slap-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.hold-hint {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  color: #4a6655;
  text-align: center;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  animation: blink 2s step-end infinite;
}

/* SCREEN SHAKE */
@keyframes screen-shake {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  10% { transform: translate(-8px, -4px) rotate(-1deg); }
  20% { transform: translate(8px, 4px) rotate(1deg); }
  30% { transform: translate(-6px, 2px) rotate(-0.5deg); }
  40% { transform: translate(6px, -2px) rotate(0.5deg); }
  50% { transform: translate(-4px, 4px) rotate(-0.3deg); }
  60% { transform: translate(4px, -4px) rotate(0.3deg); }
  70% { transform: translate(-2px, 2px) rotate(0deg); }
  80% { transform: translate(2px, -2px) rotate(0deg); }
}

body.shake {
  animation: screen-shake 0.4s ease-out;
}

/* FLY OFF */
@keyframes fly-left {
  0% { transform: scaleX(-1) translate(0, 0) rotate(0deg); opacity: 1; }
  100% { transform: scaleX(-1) translate(-300px, -100px) rotate(-180deg); opacity: 0; }
}
@keyframes fly-right {
  0% { transform: translate(0, 0) rotate(0deg); opacity: 1; }
  100% { transform: translate(300px, -100px) rotate(180deg); opacity: 0; }
}

.fighter-img.fly-left { animation: fly-left 0.6s ease-in forwards; }
.fighter-img.fly-right { animation: fly-right 0.6s ease-in forwards; }

/* ===== RESULT SCREEN ===== */
#screen-result {
  justify-content: center;
}

.result-card {
  background: linear-gradient(135deg, var(--dark-3), #1a2615);
  border: 3px solid var(--monke-yellow);
  border-radius: 12px;
  padding: 28px 24px;
  max-width: 480px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  box-shadow: 
    0 0 48px rgba(245, 200, 66, 0.2), 
    0 0 0 1px #1e2e22,
    inset 0 0 30px rgba(245, 200, 66, 0.1);
  position: relative;
  animation: resultCardSlam 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes resultCardSlam {
  0% {
    transform: scale(1.5) rotate(5deg);
    opacity: 0;
  }
  60% {
    transform: scale(1.05) rotate(-1deg);
  }
  100% {
    transform: scale(1) rotate(0);
    opacity: 1;
  }
}

/* Winner glow aura */
.result-card.winner::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  right: -20px;
  bottom: -20px;
  background: radial-gradient(circle, var(--monke-yellow-glow), transparent);
  z-index: -1;
  animation: winnerAura 2s ease-in-out infinite;
}

@keyframes winnerAura {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.8; }
}

/* Defeat crack effect */
.result-card.defeat::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(0,0,0,0.1) 10px, rgba(0,0,0,0.1) 20px),
    radial-gradient(circle at 30% 40%, rgba(255,0,0,0.1), transparent);
  pointer-events: none;
  mix-blend-mode: multiply;
}

/* Confetti canvas for winner */
#confetti-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1000;
}
}

.result-madlib {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  color: #8ab4a0;
  text-align: center;
  line-height: 1.7;
  font-style: italic;
  padding: 0 8px;
}

.result-rank {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  color: var(--monke-yellow);
  text-align: center;
  padding: 8px 14px;
  background: #0d1a10;
  border: 1px solid #1e3022;
  border-radius: 6px;
  width: 100%;
  letter-spacing: 0.5px;
}

.beef-quote {
  font-family: var(--font-ui);
  font-size: 12px;
  font-style: italic;
  color: #cc4466;
  text-align: center;
  line-height: 1.7;
  padding: 10px;
  border-top: 1px solid #1e2a1e;
  width: 100%;
}
.beef-quote.hidden { display: none; }

.btn-rematch {
  background: var(--monke-yellow);
  color: #000;
  border-color: var(--monke-yellow);
}

.result-emoji {
  font-size: 52px;
  animation: bounce 0.6s ease-out;
}

@keyframes bounce {
  0% { transform: scale(0); }
  60% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

.result-headline {
  font-family: var(--font-brand);
  font-size: clamp(8px, 3vw, 12px);
  text-align: center;
  line-height: 1.9;
  color: var(--monke-yellow);
  text-shadow: 0 0 16px var(--monke-yellow-glow);
}

.result-headline.loss {
  color: var(--neon-pink);
  text-shadow: 0 0 14px rgba(255,58,110,0.5);
}

.result-monke-wrap {
  width: 130px;
  height: 130px;
  position: relative;
}

.result-monke-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  filter: drop-shadow(0 0 20px var(--monke-yellow-glow));
  animation: result-bounce 0.7s ease-out, idle-bob 2s ease-in-out 0.7s infinite;
}

.result-stats {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 500;
  color: #8ab4a0;
  text-align: center;
  line-height: 2;
  background: #0d1a10;
  padding: 12px 16px;
  border-radius: 6px;
  border: 1px solid #1e3022;
  width: 100%;
}

.result-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.btn {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  padding: 14px 18px;
  border: 2px solid;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  transition: transform 0.08s, box-shadow 0.08s;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.btn:active { transform: scale(0.97); }

/* Primary CTA */
.btn-share-x {
  background: #000;
  color: #fff;
  border-color: #fff;
  box-shadow: 0 4px 0 #222;
}

/* Secondary CTA — MonkeDAO green */
.btn-challenge {
  background: var(--monke-green);
  color: #000;
  border-color: var(--monke-green);
  box-shadow: 0 4px 0 #006644;
}

/* Rematch — yellow */
.btn-rematch {
  background: var(--monke-yellow);
  color: #000;
  border-color: var(--monke-yellow);
  box-shadow: 0 4px 0 #8a7000;
}

/* Tertiary — ghost */
.btn-again {
  background: transparent;
  color: #4a6655;
  border-color: #1e3022;
  font-weight: 500;
}

.copied-toast {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  color: var(--monke-green);
  text-align: center;
  animation: blink 0.5s step-end 4;
}
.copied-toast.hidden { display: none; }

/* ===== ANIMATIONS ===== */

@keyframes idle-bob {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-6px); }
}

@keyframes idle-bob-fast {
  0%, 100% { transform: translateY(0px) scale(1.02); }
  50%       { transform: translateY(-4px) scale(1.05); }
}

@keyframes idle-bob-flipped {
  0%, 100% { transform: scaleX(-1) translateY(0px); }
  50%       { transform: scaleX(-1) translateY(-5px); }
}

@keyframes result-bounce {
  0%   { transform: scale(0) translateY(20px); }
  60%  { transform: scale(1.15) translateY(-6px); }
  80%  { transform: scale(0.95) translateY(2px); }
  100% { transform: scale(1) translateY(0); }
}

/* Low dignity shake */
@keyframes dignity-shake {
  0%, 100% { transform: translateX(0); }
  25%       { transform: translateX(-4px); }
  75%       { transform: translateX(4px); }
}

.fighter-img-wrap.taking-hit {
  animation: dignity-shake 0.25s ease-out 2;
}

/* ===== GAUNTLET ===== */
.gauntlet-btn {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  background: #1a0000;
  color: var(--neon-pink);
  border: 2px solid var(--neon-pink);
  padding: 14px 20px;
  cursor: pointer;
  width: 100%;
  max-width: 720px;
  margin-top: 12px;
  margin-bottom: 20px;
  border-radius: 8px;
  animation: pulse-border 1.5s infinite;
  line-height: 1.7;
  letter-spacing: 0.5px;
  transition: transform 0.08s;
}
.gauntlet-btn:active { transform: scale(0.97); }

.gauntlet-bar {
  font-size: 8px;
  color: var(--neon-yellow);
  text-align: center;
  padding: 8px;
  background: #1a1a00;
  border-bottom: 2px solid var(--neon-yellow);
  width: 100%;
  letter-spacing: 2px;
}

/* ===== SPECIAL MOVE BUTTON ===== */
.special-btn {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  background: #0a001a;
  color: #c77dff;
  border: 2px solid #c77dff;
  padding: 11px 16px;
  cursor: pointer;
  border-radius: 8px;
  width: 100%;
  transition: transform 0.08s, opacity 0.2s;
  line-height: 1.5;
  letter-spacing: 0.5px;
  animation: pulse-border 2s infinite;
}
.special-btn:active { transform: scale(0.97); }
.special-btn.used {
  opacity: 0.3;
  animation: none;
  border-color: #444;
  color: #444;
  cursor: not-allowed;
}

/* ===== CARD SPECIAL LABEL ===== */
.card-special {
  font-size: 5px;
  color: #c77dff;
  text-align: center;
  line-height: 1.8;
  border-top: 1px solid #222;
  padding-top: 4px;
  width: 100%;
}

/* ===== CONFETTI ===== */
.confetti-piece {
  position: fixed;
  top: -20px;
  border-radius: 2px;
  animation: confetti-fall linear forwards;
  pointer-events: none;
  z-index: 9999;
}

@keyframes confetti-fall {
  0%   { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(110vh) rotate(720deg); opacity: 0; }
}

/* ===== GLOBAL TOAST ===== */
.global-toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--neon-pink);
  color: #fff;
  font-family: 'Press Start 2P', monospace;
  font-size: 7px;
  padding: 10px 18px;
  border-radius: 4px;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
  z-index: 9999;
  white-space: nowrap;
}
.global-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ===== STAMINA BAR ===== */
.stamina-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-top: 8px;
}
.stamina-label {
  font-size: 6px;
  color: #888;
  white-space: nowrap;
  min-width: 48px;
}
.stamina-track {
  flex: 1;
  height: 6px;
  background: #1a1a1a;
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid #333;
}
.stamina-fill {
  height: 100%;
  width: 100%;
  background: #39ff14;
  border-radius: 3px;
  transition: width 0.3s, background 0.3s;
}

/* ===== ROUND COUNTER ===== */
.round-counter {
  font-size: 7px;
  color: #555;
  letter-spacing: 2px;
  text-align: center;
  padding: 4px 0;
}

/* ===== BELT SYSTEM ===== */
.belt-status {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  padding: 8px 16px;
  color: #cce8d8;
  letter-spacing: 0.5px;
  background: #0f1a13;
  border: 1px solid #1e3022;
  border-radius: 20px;
  margin-bottom: 10px;
  width: auto;
}

.belt-panel {
  width: 100%;
  background: #0d0d0d;
  border: 1px solid #222;
  border-radius: 6px;
  padding: 12px 16px;
  margin: 10px 0;
}

.belt-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.belt-badge {
  font-size: 8px;
  font-family: 'Press Start 2P', monospace;
  letter-spacing: 1px;
}

.xp-gain {
  font-size: 8px;
  color: #39ff14;
  font-family: 'Press Start 2P', monospace;
}

.xp-loss {
  font-size: 8px;
  color: #ff006e;
  font-family: 'Press Start 2P', monospace;
}

.belt-xp-track {
  width: 100%;
  height: 8px;
  background: #1a1a1a;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #333;
  margin-bottom: 6px;
}

.belt-xp-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 1s ease-out;
}

.belt-next {
  font-size: 6px;
  color: #555;
  text-align: right;
}

/* ===== DAILY CHALLENGE ===== */
.daily-challenge-btn {
  font-family: 'Press Start 2P', monospace;
  font-size: 7px;
  background: #001a0a;
  color: #39ff14;
  border: 3px solid #39ff14;
  padding: 14px 20px;
  cursor: pointer;
  width: 100%;
  max-width: 720px;
  margin-top: 10px;
  border-radius: 4px;
  line-height: 2;
  transition: transform 0.08s;
}
.daily-challenge-btn:active { transform: scale(0.97); }
.daily-challenge-btn.done {
  opacity: 0.5;
  border-color: #333;
  color: #555;
  cursor: not-allowed;
  background: #0a0a0a;
}
.daily-challenge-btn small {
  color: #39ff14;
  opacity: 0.7;
  display: block;
}
.daily-challenge-btn.done small { color: #555; }

.daily-result-badge {
  font-size: 7px;
  color: #39ff14;
  text-align: center;
  padding: 8px 12px;
  background: #001a0a;
  border: 1px solid #39ff14;
  border-radius: 4px;
  margin-bottom: 10px;
  letter-spacing: 1px;
  line-height: 1.8;
}

/* ===== MODIFIERS ===== */
.vs-modifier {
  font-size: 7px;
  text-align: center;
  padding: 10px 16px;
  background: #1a0a00;
  border: 2px solid #ff8800;
  border-radius: 4px;
  color: #ff8800;
  margin-top: 10px;
  line-height: 2;
  letter-spacing: 1px;
}
.vs-modifier strong { color: #ffbe0b; }

.active-modifier {
  font-size: 6px;
  padding: 3px 8px;
  background: #1a0a00;
  border: 1px solid #ff8800;
  border-radius: 3px;
  color: #ff8800;
  letter-spacing: 1px;
}

/* ===== LOCKED MONKES ===== */
.locked-card {
  cursor: default;
  border-color: #1e2e22 !important;
  border-style: dashed !important;
  background: #0a100c !important;
  box-shadow: none !important;
  transform: none !important;
}
.locked-card:hover, .locked-card:active {
  transform: none !important;
  border-color: #2a4a30 !important;
  box-shadow: none !important;
}
.locked-card.unlocked {
  cursor: pointer;
  border-style: solid !important;
  border-color: #c77dff !important;
  background: #12002a !important;
  box-shadow: 0 0 16px #c77dff44 !important;
}

/* Silhouette image container — centred lock icon over ghost image */
.locked-silhouette {
  position: relative;
}
.locked-silhouette .card-monke-img {
  /* ghost silhouette — visible but clearly obscured */
  filter: brightness(0) invert(1) !important;
  opacity: 0.1 !important;
}
.locked-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 32px;
  line-height: 1;
  filter: none;
  pointer-events: none;
}

/* Locked card text */
.locked-name {
  color: #3a5a40 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 2px;
}
.locked-stat {
  color: #2a3e2e !important;
  font-size: 10px !important;
  font-style: italic;
}
.locked-cond {
  color: #4a7a55 !important;
  font-size: 9px !important;
  font-weight: 600 !important;
  line-height: 1.5;
  text-align: center;
}

/* ===== POST-MATCH SPIN ===== */
.spin-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 10000;
  align-items: center;
  justify-content: center;
}
.spin-modal.show { display: flex; }

.spin-inner {
  background: #0d0d0d;
  border: 3px solid #ffbe0b;
  border-radius: 8px;
  padding: 28px 24px;
  text-align: center;
  max-width: 360px;
  width: 90%;
  animation: result-bounce 0.3s ease;
}

.spin-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  color: #ffbe0b;
  margin-bottom: 20px;
  letter-spacing: 2px;
}

.spin-slots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}

.spin-slot {
  font-size: 36px;
  width: 64px;
  height: 64px;
  background: #1a1a1a;
  border: 2px solid #333;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.05s;
}

.spin-result {
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  min-height: 40px;
  margin-bottom: 16px;
  line-height: 2;
}
.spin-result small {
  font-size: 6px;
  opacity: 0.8;
  display: block;
  margin-top: 4px;
}

.spin-close-btn {
  font-family: 'Press Start 2P', monospace;
  font-size: 7px;
  background: #ffbe0b;
  color: #000;
  border: none;
  padding: 12px 20px;
  cursor: pointer;
  border-radius: 4px;
  width: 100%;
  transition: transform 0.08s;
}
.spin-close-btn:active { transform: scale(0.97); }

/* ===== TUTORIAL OVERLAY ===== */
.tutorial-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 14, 11, 0.97);
  z-index: 20000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fade-in 0.3s ease;
}
.tutorial-overlay.tutorial-out {
  animation: fade-out 0.35s ease forwards;
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes fade-out { from { opacity: 1; } to { opacity: 0; } }

.tutorial-inner {
  background: var(--dark-3);
  border: 2px solid var(--monke-green);
  border-radius: 12px;
  padding: 32px 24px;
  max-width: 380px;
  width: 90%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: 0 0 40px var(--monke-green-glow);
}

.tutorial-title {
  font-family: var(--font-brand);
  font-size: 14px;
  color: var(--monke-yellow);
  text-align: center;
  letter-spacing: 2px;
}

.tutorial-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tutorial-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.tutorial-icon {
  font-size: 28px;
  flex-shrink: 0;
  width: 36px;
  text-align: center;
  line-height: 1;
}

.tutorial-step div {
  font-family: var(--font-ui);
  font-size: 13px;
  line-height: 1.6;
  color: #8ab4a0;
}

.tutorial-step strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1px;
}

.tutorial-btn {
  font-family: var(--font-brand);
  font-size: 11px;
  background: var(--monke-green);
  color: #000;
  border: none;
  padding: 16px;
  cursor: pointer;
  border-radius: 8px;
  width: 100%;
  box-shadow: 0 4px 0 #006644;
  transition: transform 0.08s;
  letter-spacing: 1px;
}
.tutorial-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #006644; }

/* ===== SPIN SUBTITLE + LEGEND ===== */
.spin-subtitle {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  color: #8ab4a0;
  text-align: center;
  margin-top: -12px;
  margin-bottom: 4px;
}

.spin-legend {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 500;
  color: #4a6655;
  text-align: center;
  line-height: 1.8;
  padding: 6px 4px;
  border-top: 1px solid #1e2e22;
  border-bottom: 1px solid #1e2e22;
}

/* ===== SELECT SCREEN REVAMP ===== */
.select-hero {
  text-align: center;
  padding: 8px 0 0;
  width: 100%;
}

/* Replace the blinking subtitle with a bold, action-oriented CTA label */
.select-cta-label {
  font-family: var(--font-ui);
  font-size: clamp(13px, 3.5vw, 17px);
  font-weight: 700;
  color: var(--monke-green);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 8px 0 16px;
  animation: cta-pulse 1.8s ease-in-out infinite;
}

@keyframes cta-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.7; transform: scale(1.03); }
}

.select-strips {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
  max-width: 720px;
  margin-bottom: 10px;
}

/* Bigger cards — the main action */
.monke-grid {
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
}

.monke-card {
  cursor: pointer;
  /* Reinforce clickability */
  position: relative;
}

/* Tap ripple effect — shows clickability immediately */
.monke-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background: var(--monke-green);
  opacity: 0;
  transition: opacity 0.15s;
  pointer-events: none;
}
.monke-card:active::after { opacity: 0.12; }

/* Remove the number from card — too much noise */
.card-name span { display: none; }

/* Larger monke image on cards */
.card-img-wrap {
  width: 110px;
  height: 110px;
}

/* ── STICKY FIGHT CTA ── */
.fight-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9000;
  padding: 12px 16px 20px;
  background: linear-gradient(to top, var(--dark) 60%, transparent);
  display: flex;
  justify-content: center;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.fight-cta.hidden {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}

.fight-cta-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--dark-3);
  border: 2px solid var(--monke-green);
  border-radius: 12px;
  padding: 12px 16px 12px 20px;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 0 32px var(--monke-green-glow), 0 -4px 24px rgba(0,0,0,0.7);
}

.fight-cta-monke {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  color: var(--monke-yellow);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fight-cta-btn {
  font-family: var(--font-brand);
  font-size: 12px;
  background: var(--monke-green);
  color: #000;
  border: none;
  padding: 14px 22px;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 4px 0 #006644, 0 0 16px var(--monke-green-glow);
  transition: transform 0.08s, box-shadow 0.08s;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 1px;
}

.fight-cta-btn:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #006644, 0 0 8px var(--monke-green-glow);
}

/* Add bottom padding to the select screen so cards aren't hidden behind the CTA */
#screen-select {
  padding-bottom: 100px;
}

/* ── SECONDARY MODES SECTION ── */
.select-modes {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 720px;
  margin-top: 4px;
  padding: 0 0 16px;
}

/* Make daily challenge + gauntlet feel like secondary options, not primary CTAs */
.daily-challenge-btn {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  background: #0d1a10;
  color: var(--monke-yellow);
  border: 1px solid #1e3022;
  padding: 14px 20px;
  cursor: pointer;
  border-radius: 8px;
  width: 100%;
  text-align: center;
  line-height: 1.6;
  transition: border-color 0.12s, transform 0.08s;
}
.daily-challenge-btn:not([disabled]):hover { border-color: var(--monke-yellow); }
.daily-challenge-btn:active { transform: scale(0.98); }
.daily-challenge-btn[disabled] { opacity: 0.5; cursor: default; }
.daily-challenge-btn small { display: block; font-size: 11px; font-weight: 500; color: #4a6655; }
.daily-challenge-btn.done small { color: #333; }

/* ===== MUTE BUTTON ===== */
.mute-btn {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 99999;
  background: rgba(8, 14, 11, 0.85);
  border: 1px solid #1e3022;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s, transform 0.08s;
  backdrop-filter: blur(4px);
  line-height: 1;
  padding: 0;
}
.mute-btn:hover { border-color: var(--monke-green); transform: scale(1.1); }
.mute-btn:active { transform: scale(0.95); }

/* ============================================================
   MOBILE OPTIMISATION — comprehensive pass
   ============================================================ */

/* Safe-area insets for iPhone notch / home indicator */
body {
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.fight-cta {
  padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
}

.battle-controls {
  padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
}

#screen-select {
  padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px));
}

.mute-btn {
  top: calc(12px + env(safe-area-inset-top, 0px));
  right: calc(12px + env(safe-area-inset-right, 0px));
}

/* ── Small phones (≤ 390px width) ── */
@media (max-width: 390px) {
  /* Grid: 2 columns, tighter */
  .monke-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .card-img-wrap {
    width: 80px;
    height: 80px;
  }

  .monke-card {
    padding: 10px 6px;
    gap: 4px;
  }

  .card-name {
    font-size: 10px;
  }

  .card-stat {
    font-size: 9px;
  }

  .card-special {
    font-size: 8px;
  }

  /* Title tighter on small phones */
  .title {
    font-size: clamp(22px, 9vw, 36px);
    margin-top: 8px;
  }

  .select-cta-label {
    font-size: 12px;
    margin: 6px 0 12px;
  }

  /* Battle arena — shrink fighters */
  .fighter-img-wrap {
    width: 80px !important;
    height: 80px !important;
  }

  .fighter-name {
    font-size: 10px;
  }

  /* Slap button — full width, easier to reach */
  .slap-btn {
    width: 100%;
    padding: 16px 12px;
    font-size: clamp(14px, 5vw, 22px);
  }

  /* Result card tighter */
  .result-card {
    padding: 18px 14px;
    gap: 12px;
  }

  .result-monke-wrap {
    width: 90px;
    height: 90px;
  }

  .result-emoji {
    font-size: 40px;
  }

  /* Spin slots smaller */
  .spin-slot {
    width: 54px;
    height: 54px;
    font-size: 30px;
  }
}

/* ── All mobile (≤ 600px) ── */
@media (max-width: 600px) {
  /* Remove hover transforms on touch — they linger and look broken */
  .monke-card:hover {
    transform: none;
    border-color: #1e2e22;
    box-shadow: none;
  }

  /* Keep :active for real touch feedback */
  .monke-card:active {
    transform: scale(0.97);
    border-color: var(--monke-yellow);
    box-shadow: 0 0 10px var(--monke-yellow-glow);
  }

  /* Slap button — full width so thumb always reaches it */
  .slap-btn {
    width: 100%;
    padding: 18px 16px;
  }

  /* Buttons in result screen — full width stack */
  .btn {
    padding: 15px 12px;
    font-size: 12px;
  }

  /* Power bar — taller for easier visual read */
  .power-track {
    height: 22px;
  }

  /* Dignity bar — slightly taller */
  .dignity-track {
    height: 14px;
  }

  /* VS screen — tighter */
  .vs-intro {
    padding: 12px 0;
  }

  .vs-intro-img-wrap {
    width: 80px;
    height: 80px;
  }

  .vs-big {
    font-size: 28px;
  }

  /* Gauntlet + daily challenge buttons — comfortable tap targets */
  .gauntlet-btn,
  .daily-challenge-btn {
    padding: 16px 16px;
    font-size: 12px;
  }

  /* Belt status pill — don't overflow on narrow screens */
  .belt-status {
    font-size: 12px;
    padding: 6px 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }

  /* Fight CTA — full comfortable tap zone */
  .fight-cta-btn {
    padding: 16px 20px;
    font-size: 11px;
  }

  /* Tutorial modal — full width on small screens */
  .tutorial-inner {
    padding: 24px 18px;
  }

  /* Spin modal — full width */
  .spin-inner {
    padding: 22px 16px;
  }

  /* Round counter / stamina labels — ensure visibility */
  .dignity-label {
    font-size: 9px;
    font-family: var(--font-ui);
    font-weight: 600;
    color: #4a6655;
    letter-spacing: 0.5px;
  }

  /* Hold hint — visible on all phones */
  .hold-hint {
    font-size: 10px;
  }
}

/* ── Tap highlight suppression (Android Chrome) ── */
* {
  -webkit-tap-highlight-color: rgba(0,0,0,0) !important;
}

/* ── Prevent text selection during gameplay ── */
.battle-controls, .monke-grid, .fight-cta {
  -webkit-user-select: none;
  user-select: none;
}

/* ===== PREMIUM VISUAL ENHANCEMENTS ===== */
/* Performance optimizations for mobile */
@media (max-width: 768px) {
  #particles-canvas {
    opacity: 0.4;
  }
  
  .monke-card::before,
  .slap-btn::before,
  .power-fill::after {
    display: none; /* Disable shine effects on mobile for performance */
  }
  
  * {
    -webkit-transform: translateZ(0);
    -webkit-backface-visibility: hidden;
  }
}

/* Smooth all transitions */
* {
  transition-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* GPU acceleration for animations */
.screen,
.monke-card,
.fighter-img,
.title,
.slap-btn {
  will-change: transform;
  transform: translateZ(0);
}
