/* ==========================================
   MONKE FWAP — Jungle Edition CSS
   Identity: Deep canopy. Living. Breathing.
   NOT Monke Slap. Not arcade. Pure jungle.
   ========================================== */

@import url('https://fonts.googleapis.com/css2?family=Fredoka+One&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --font-brand: 'Fredoka One', 'Press Start 2P', monospace;
  --font-ui: 'Space Grotesk', sans-serif;

  /* Jungle palette — NOT arcade */
  --jungle-black:   #050d07;
  --jungle-deep:    #071209;
  --jungle-dark:    #0b1a0e;
  --jungle-mid:     #112614;
  --jungle-light:   #1a3a1e;
  --jungle-canopy:  #0f4020;

  /* Accent colours */
  --vine-green:   #3ddc68;
  --leaf-green:   #00B67A;
  --gold:         #F5C842;
  --gold-glow:    rgba(245,200,66,0.4);
  --sun-orange:   #ff9d3d;
  --danger-red:   #e84040;
  --sky-blue:     #4ec4ff;

  /* Backward-compat aliases */
  --dark:          var(--jungle-black);
  --dark-2:        var(--jungle-deep);
  --dark-3:        var(--jungle-dark);
  --dark-4:        var(--jungle-mid);
  --monke-green:   var(--leaf-green);
  --monke-green-d: #008f5e;
  --monke-yellow:  var(--gold);
  --monke-blue:    #2D6BE4;
  --monke-red:     var(--danger-red);
  --text-primary:  #d4f0dc;
  --text-muted:    #6aaa7a;
  --border:        rgba(61,220,104,0.15);

  --font-brand-old: 'Press Start 2P', monospace;
}

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

html, body {
  width: 100%; height: 100%;
  overflow: hidden;
  background: var(--jungle-black);
  color: var(--text-primary);
  font-family: var(--font-ui);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  touch-action: manipulation;
}

/* ==========================================
   JUNGLE AMBIENT BACKGROUND
   Animated canvas behind select screen
   ========================================== */
#jungle-bg-canvas {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1s ease;
}
#jungle-bg-canvas.visible { opacity: 1; }

/* ---- SCREENS ---- */
.screen {
  position: fixed; inset: 0;
  display: flex; flex-direction: column; align-items: center;
  overflow-y: auto;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s;
  z-index: 1;
}
.screen.active { opacity: 1; pointer-events: all; }

/* ==========================================
   SELECT SCREEN — Jungle Home
   ========================================== */
#screen-select {
  padding: 12px 14px calc(env(safe-area-inset-bottom, 8px) + 12px);
  gap: 8px;
  justify-content: flex-start;
  background: transparent;
}

/* ---- LOGO ---- */
.select-header { text-align: center; width: 100%; position: relative; z-index: 2; }

.logo-wrap {
  display: flex; justify-content: center; align-items: center; gap: 0;
  margin-bottom: 4px;
  filter: drop-shadow(0 4px 24px rgba(61,220,104,0.25));
}

.logo-monke {
  font-family: var(--font-brand);
  font-size: clamp(22px, 7vw, 36px);
  color: var(--vine-green);
  letter-spacing: -1px;
  line-height: 1;
}
.logo-fwap {
  font-family: var(--font-brand);
  font-size: clamp(22px, 7vw, 36px);
  color: var(--gold);
  letter-spacing: -1px;
  line-height: 1;
  animation: logoWobble 3s ease-in-out infinite;
  display: inline-block;
  margin-left: 8px;
}
@keyframes logoWobble {
  0%,100% { transform: rotate(-1.5deg) scale(1); }
  25%      { transform: rotate(1.5deg) scale(1.03); }
  50%      { transform: rotate(-0.5deg) scale(1.01); }
  75%      { transform: rotate(1deg) scale(1.02); }
}

.tagline {
  font-size: 12px; color: var(--text-muted);
  line-height: 1.4; margin-bottom: 4px;
  font-weight: 500;
}
@media (max-height: 700px) { .tagline { display: none; } }

/* ---- BELT BAR ---- */
.belt-bar {
  display: flex; align-items: center; gap: 8px;
  background: rgba(11,26,14,0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(61,220,104,0.2);
  border-radius: 20px; padding: 6px 14px;
  font-size: 12px; font-weight: 600;
  max-width: 360px; margin: 0 auto;
  box-shadow: 0 2px 12px rgba(0,0,0,0.4);
  padding: 5px 12px;
  font-size: 11px;
}
.belt-progress-wrap {
  flex: 1; height: 6px;
  background: rgba(255,255,255,0.07); border-radius: 3px; overflow: hidden;
}
.belt-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--leaf-green), var(--vine-green));
  border-radius: 3px; transition: width 0.7s ease;
  box-shadow: 0 0 6px rgba(61,220,104,0.5);
}

/* ---- MONKE GRID ---- */
.monke-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px; width: 100%; max-width: 420px;
  position: relative; z-index: 2;
}

/* Staggered idle bounce — each card on its own timer */
.monke-card { animation: monkeIdleBounce 2.2s ease-in-out infinite; }
.monke-card:nth-child(1) { animation-delay: 0s; }
.monke-card:nth-child(2) { animation-delay: 0.3s; }
.monke-card:nth-child(3) { animation-delay: 0.6s; }
.monke-card:nth-child(4) { animation-delay: 0.15s; }
.monke-card:nth-child(5) { animation-delay: 0.45s; }
.monke-card:nth-child(6) { animation-delay: 0.75s; }
.monke-card:nth-child(7) { animation-delay: 0.9s; }

@keyframes monkeIdleBounce {
  0%,100% { transform: translateY(0px); }
  50%     { transform: translateY(-3px); }
}

.monke-card {
  position: relative;
  background: rgba(11,26,14,0.8);
  backdrop-filter: blur(6px);
  border: 2px solid rgba(61,220,104,0.12);
  border-radius: 14px;
  padding: 10px 6px 8px;
  cursor: pointer;
  text-align: center;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

/* Vine-weave border shimmer */
.monke-card::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: 18px;
  background: linear-gradient(135deg,
    rgba(61,220,104,0.06) 0%,
    transparent 40%,
    rgba(245,200,66,0.04) 100%
  );
  pointer-events: none;
}

.monke-card:hover {
  border-color: rgba(61,220,104,0.45);
  box-shadow: 0 0 20px rgba(61,220,104,0.15), 0 8px 24px rgba(0,0,0,0.4);
  animation-play-state: paused;
  transform: translateY(-6px) scale(1.04);
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.monke-card.selected {
  border-color: var(--vine-green);
  box-shadow: 0 0 0 1px var(--vine-green), 0 0 28px rgba(61,220,104,0.35), 0 8px 24px rgba(0,0,0,0.4);
  animation-play-state: paused;
  transform: translateY(-4px) scale(1.02);
}

/* Excited pulse on selection */
.monke-card.selected::after {
  content: '';
  position: absolute; inset: -2px;
  border-radius: 20px;
  border: 2px solid var(--vine-green);
  animation: selectedRing 1.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes selectedRing {
  0%,100% { opacity: 0.6; transform: scale(1); }
  50%     { opacity: 0; transform: scale(1.07); }
}

.monke-card.locked {
  border-color: rgba(255,255,255,0.06);
  opacity: 0.6;
  cursor: default;
  animation: none;
}
.monke-card.locked:hover { transform: none; box-shadow: none; border-color: rgba(255,255,255,0.06); }

.monke-card img {
  width: 58px; height: 58px;
  object-fit: contain; display: block; margin: 0 auto 8px;
  image-rendering: pixelated;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5));
  transition: transform 0.2s;
  margin-bottom: 6px;
}
.monke-card:hover img { transform: scale(1.08); }
.monke-card.selected img { transform: scale(1.1); }
.monke-card.locked img { filter: brightness(0) invert(1); opacity: 0.07; }

.monke-card-name {
  font-size: 10px; font-weight: 700;
  color: var(--text-primary); line-height: 1.2;
}
.monke-card-trait {
  font-size: 9px; color: var(--vine-green);
  margin-top: 3px; font-weight: 600;
  letter-spacing: 0.3px;
}
.monke-lock-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 4px;
}
.monke-lock-icon { font-size: 22px; }
.monke-lock-text {
  font-size: 8px; color: var(--text-muted);
  text-align: center; padding: 0 6px; line-height: 1.3;
}

/* ---- PLAY CTA ---- */
.fight-cta {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(5,13,7,0.97) 55%, transparent);
  padding: 24px 20px env(safe-area-inset-bottom, 24px);
  display: flex; flex-direction: column; gap: 8px; align-items: center;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(.2,.9,.4,1);
  z-index: 50;
}
.fight-cta.visible { transform: translateY(0); }

.fight-cta-name {
  font-family: var(--font-brand);
  font-size: 16px; color: var(--gold);
  text-shadow: 0 0 16px var(--gold-glow);
  letter-spacing: 0.5px;
}
.fight-cta-sub { font-size: 11px; color: var(--text-muted); margin-top: -2px; }

/* The pulsing PLAY button */
.btn-primary {
  background: linear-gradient(135deg, var(--vine-green) 0%, var(--leaf-green) 100%);
  color: #000;
  border: none; border-radius: 14px;
  padding: 16px 32px;
  font-size: 18px; font-weight: 800;
  font-family: var(--font-brand);
  cursor: pointer; width: 100%; max-width: 320px;
  letter-spacing: 1px;
  box-shadow: 0 4px 24px rgba(61,220,104,0.4), 0 2px 8px rgba(0,0,0,0.4);
  transition: transform 0.12s, box-shadow 0.12s;
  position: relative; overflow: hidden;
  animation: btnPulse 2s ease-in-out infinite;
}
@keyframes btnPulse {
  0%,100% { box-shadow: 0 4px 24px rgba(61,220,104,0.4), 0 2px 8px rgba(0,0,0,0.4); }
  50%     { box-shadow: 0 4px 36px rgba(61,220,104,0.7), 0 2px 12px rgba(0,0,0,0.5); }
}
.btn-primary::after {
  content: '';
  position: absolute; top: 0; left: -100%; width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  animation: btnShine 3s ease-in-out infinite;
}
@keyframes btnShine {
  0%   { left: -100%; }
  40%  { left: 150%; }
  100% { left: 150%; }
}
.btn-primary:active {
  transform: scale(0.96);
  box-shadow: 0 2px 12px rgba(61,220,104,0.3);
  animation: none;
}

.btn-secondary {
  background: rgba(11,26,14,0.7);
  backdrop-filter: blur(6px);
  color: var(--text-primary);
  border: 1.5px solid rgba(61,220,104,0.2);
  border-radius: 12px;
  padding: 12px 20px; font-size: 13px; font-weight: 600;
  cursor: pointer; font-family: var(--font-ui);
  transition: border-color 0.15s, background 0.15s;
}
.btn-secondary:hover {
  border-color: var(--vine-green);
  background: rgba(61,220,104,0.08);
}

.btn-ghost {
  background: transparent; color: var(--text-muted);
  border: none; padding: 10px; font-size: 13px;
  cursor: pointer; font-family: var(--font-ui);
}

/* ---- MODES ROW ---- */
.secondary-modes {
  display: flex; gap: 8px; width: 100%; max-width: 420px;
  position: relative; z-index: 2;
}
.secondary-modes .btn-secondary {
  padding: 10px 14px; font-size: 12px;
}
.secondary-modes .btn-secondary { flex: 1; }

/* ---- LEADERBOARD ---- */
.lb-section {
  width: 100%; max-width: 420px;
  position: relative; z-index: 2;
  background: rgba(7,18,9,0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(245,200,66,0.2);
  border-radius: 14px;
  padding: 8px 12px 10px;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(245,200,66,0.06);
}

/* Canopy vine top decoration */
.lb-section::before {
  content: '🏆 TOP LEAPS';
  display: block;
  font-size: 11px;
  text-align: center;
  margin-bottom: 6px;
  opacity: 0.7;
  letter-spacing: 2px;
  font-family: var(--font-ui);
  font-weight: 800;
  color: var(--gold);
}

.lb-title {
  display: none; /* replaced by ::before pseudo-element */
}

.lb-list { display: flex; flex-direction: column; gap: 5px; }

.lb-empty {
  font-family: var(--font-ui);
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  text-align: center;
  padding: 8px 0;
}

.lb-row {
  display: grid;
  grid-template-columns: 36px 1fr auto 48px;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 10px;
  padding: 6px 8px;
  font-family: var(--font-ui);
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  animation: lbRowIn 0.4s ease both;
}
.lb-row:nth-child(1) { animation-delay: 0.05s; }
.lb-row:nth-child(2) { animation-delay: 0.1s; }
.lb-row:nth-child(3) { animation-delay: 0.15s; }
.lb-row:nth-child(4) { animation-delay: 0.2s; }
.lb-row:nth-child(5) { animation-delay: 0.25s; }

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

/* Gold #1 row */
.lb-row-gold {
  background: linear-gradient(90deg, rgba(245,200,66,0.14), rgba(245,200,66,0.05));
  border-color: rgba(245,200,66,0.25);
  color: var(--gold);
  font-weight: 700;
  box-shadow: 0 0 12px rgba(245,200,66,0.08);
}

.lb-rank { font-size: 15px; text-align: center; }
.lb-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-monke { font-size: 10px; color: rgba(255,255,255,0.3); text-align: right; padding-right: 2px; }
.lb-score {
  font-weight: 800; text-align: right;
  color: var(--vine-green);
  font-size: 14px;
}
.lb-row-gold .lb-score { color: var(--gold); }

/* ---- MUTE BUTTON ---- */
.mute-btn {
  position: fixed;
  top: max(14px, env(safe-area-inset-top, 14px));
  right: 16px;
  background: rgba(11,26,14,0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(61,220,104,0.2);
  border-radius: 50%; width: 38px; height: 38px;
  font-size: 16px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 100; transition: opacity 0.2s, border-color 0.2s;
}
.mute-btn:hover { border-color: var(--vine-green); }
.mute-btn.muted { opacity: 0.35; }

/* ==========================================
   GAME SCREEN
   ========================================== */
#screen-game { background: #0a1f10; }

.hud {
  position: absolute; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: max(10px, env(safe-area-inset-top, 10px)) 16px 10px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.55) 0%, transparent 100%);
  pointer-events: none;
}
.hud-back {
  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff; border-radius: 8px; width: 34px; height: 34px;
  cursor: pointer; font-size: 14px; pointer-events: all;
  transition: background 0.15s;
}
.hud-score { text-align: center; }
.score-label {
  display: block; font-size: 9px;
  font-family: var(--font-brand-old); /* keeps arcade feel in-game */
  color: var(--text-muted);
  letter-spacing: 1px;
}
.score-val {
  display: block;
  font-family: var(--font-brand-old);
  font-size: 28px; color: #fff; line-height: 1;
  transition: transform 0.1s;
}
/* Score bounce on new leap — triggered by JS adding .score-bump class */
.score-val.score-bump {
  animation: scoreBump 0.18s cubic-bezier(0.3,1.5,0.6,1) both;
}
@keyframes scoreBump {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.4); color: var(--gold); }
  100% { transform: scale(1); }
}

.hud-dignity { display: flex; gap: 4px; font-size: 20px; }
.dignity-heart { transition: opacity 0.2s, transform 0.15s; }
.dignity-heart.lost { opacity: 0.15; filter: grayscale(1); transform: scale(0.8); }

#game-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  /* BUG 1 FIX: prevent iOS text selection and callout on long-press */
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  touch-action: none;
}

/* Game overlay */
.game-overlay {
  position: absolute; inset: 0; z-index: 20;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
  background: transparent;
}
.game-overlay.active { pointer-events: all; }
.game-overlay.dead { background: rgba(3, 10, 4, 0.92); }

/* Countdown */
.countdown-wrap {
  display: flex; flex-direction: column;
  align-items: center; gap: 12px; text-align: center;
}
.monke-preview-wrap img {
  width: 100px; height: 100px;
  object-fit: contain; image-rendering: pixelated;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.6));
  animation: previewFloat 1.5s ease-in-out infinite;
}
@keyframes previewFloat {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-8px); }
}
.countdown-text {
  font-family: var(--font-brand);
  font-size: 72px; color: var(--gold);
  text-shadow: 0 0 40px var(--gold-glow), 0 4px 0 rgba(0,0,0,0.4);
  animation: countPulse 0.7s cubic-bezier(.2,1.3,.4,1);
}
@keyframes countPulse {
  0% { transform: scale(2); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.tap-hint { font-size: 12px; color: var(--text-muted); font-weight: 600; letter-spacing: 0.5px; }

/* Game over panel */
.game-over-wrap {
  display: flex; flex-direction: column;
  align-items: center; gap: 12px;
  background: rgba(5,13,7,0.92);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(61,220,104,0.2);
  border-radius: 24px; padding: 28px 24px;
  max-width: 320px; width: 90%;
  text-align: center;
  box-shadow: 0 16px 48px rgba(0,0,0,0.6), 0 0 0 1px rgba(61,220,104,0.08);
  animation: gameOverIn 0.4s cubic-bezier(.2,1.2,.4,1) both;
}
@keyframes gameOverIn {
  from { transform: scale(0.85) translateY(20px); opacity: 0; }
  to   { transform: scale(1) translateY(0); opacity: 1; }
}
.game-over-title {
  font-family: var(--font-brand);
  font-size: 20px; color: var(--danger-red);
  text-shadow: 0 0 16px rgba(232,64,64,0.5);
}
.game-over-score { font-size: 30px; font-weight: 800; color: var(--gold); }
.game-over-roast {
  font-size: 12px; color: var(--text-muted);
  line-height: 1.6; font-style: italic;
  background: rgba(255,255,255,0.03);
  border-radius: 8px; padding: 8px 12px;
}

/* Hit flash */
.hit-flash {
  position: absolute; inset: 0; z-index: 15;
  background: rgba(232,64,64,0.3);
  pointer-events: none; opacity: 0;
  transition: opacity 0.08s;
}
.hit-flash.active { opacity: 1; }

/* ==========================================
   RESULT SCREEN — Jungle Debrief
   ========================================== */
#screen-result {
  background: radial-gradient(ellipse at top, var(--jungle-canopy) 0%, var(--jungle-black) 60%);
  justify-content: center;
}
.result-inner {
  display: flex; flex-direction: column; align-items: center;
  gap: 10px; padding: 32px 20px env(safe-area-inset-bottom, 24px);
  text-align: center; width: 100%; max-width: 400px;
}
.result-header {
  font-family: var(--font-brand);
  font-size: 10px; color: var(--sky-blue);
  letter-spacing: 2px;
  text-shadow: 0 0 10px rgba(78,196,255,0.4);
}
.result-monke-img {
  width: 120px; height: 120px; object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.5));
  animation: resultMonkeBounce 0.6s cubic-bezier(.2,1.4,.4,1) both;
}
@keyframes resultMonkeBounce {
  from { transform: scale(0) rotate(-10deg); opacity: 0; }
  to   { transform: scale(1) rotate(0deg); opacity: 1; }
}
.result-score-big {
  font-family: var(--font-brand);
  font-size: 56px; color: var(--gold);
  text-shadow: 0 0 30px var(--gold-glow), 0 4px 0 rgba(0,0,0,0.4);
  line-height: 1;
  animation: scoreReveal 0.5s cubic-bezier(.2,1.3,.4,1) 0.2s both;
}
@keyframes scoreReveal {
  from { transform: scale(0.5); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.result-pipes-label { font-size: 14px; color: var(--text-muted); font-weight: 600; letter-spacing: 1px; }
.result-roast {
  font-size: 12px; color: var(--text-muted);
  line-height: 1.6; font-style: italic; max-width: 300px;
  background: rgba(255,255,255,0.03);
  border-radius: 10px; padding: 10px 14px;
}
.result-xp-gained { font-size: 15px; color: var(--vine-green); font-weight: 700; }
.result-belt { font-size: 12px; color: var(--text-muted); }
.result-challenge {
  background: rgba(45,107,228,0.1);
  border: 1px solid rgba(45,107,228,0.3);
  border-radius: 12px; padding: 10px 16px; font-size: 12px;
}
.challenge-label { color: #2D6BE4; font-weight: 700; }
.challenge-target { color: var(--text-muted); margin-top: 4px; }
.result-actions {
  display: flex; flex-direction: column; gap: 10px;
  width: 100%; align-items: center; margin-top: 6px;
}

/* ==========================================   DAILY DONE + TUTORIAL + MISC
   ========================================== */
.daily-done-inner {
  display: flex; flex-direction: column; align-items: center;
  gap: 16px; padding: 60px 24px; text-align: center;
}
.daily-done-icon { font-size: 56px; animation: iconSpin 0.6s cubic-bezier(.2,1.3,.4,1) both; }
@keyframes iconSpin {
  from { transform: rotate(-20deg) scale(0); opacity: 0; }
  to   { transform: rotate(0) scale(1); opacity: 1; }
}
.daily-done-inner h2 { font-size: 22px; font-weight: 700; }
.daily-done-inner p { font-size: 14px; color: var(--text-muted); }
.daily-done-sub { font-size: 12px; }

#tutorial-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.8);
  display: flex; align-items: center; justify-content: center;
}
#tutorial-overlay.hidden { display: none; }
.tutorial-card {
  background: rgba(7,18,9,0.95);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(61,220,104,0.2);
  border-radius: 22px; padding: 32px 24px;
  max-width: 320px; width: 90%; text-align: center;
  display: flex; flex-direction: column; gap: 14px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.6);
}
.tutorial-step-dots { display: flex; justify-content: center; gap: 6px; }
.tutorial-step-dots span {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.1);
}
.tutorial-step-dots span.active { background: var(--vine-green); }
.tutorial-icon { font-size: 40px; }
.tutorial-title { font-weight: 700; font-size: 17px; color: var(--text-primary); }
.tutorial-body { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

.vine-indicator {
  position: absolute; z-index: 12;
  background: var(--vine-green);
  border-radius: 4px; width: 8px;
  pointer-events: none;
  box-shadow: 0 0 12px rgba(61,220,104,0.7);
}

.hit-text {
  position: absolute; z-index: 30;
  font-family: var(--font-brand);
  font-size: 18px; color: var(--danger-red);
  text-shadow: 0 0 10px rgba(232,64,64,0.8);
  pointer-events: none;
  animation: hitFloat 0.8s ease forwards;
}
@keyframes hitFloat {
  0%   { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-50px); }
}

/* ==========================================
   XP BAR + STREAK + NEW RECORD
   ========================================== */
.go-xp-section {
  width: 88%; max-width: 300px; margin-top: 4px;
}
.go-xp-label {
  font-size: 13px; color: var(--vine-green);
  margin-bottom: 5px; text-align: left; font-weight: 600;
}
.go-xp-bar-bg {
  background: rgba(255,255,255,0.08);
  border-radius: 8px; height: 11px;
  overflow: hidden; width: 100%;
}
.go-xp-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--leaf-green), var(--vine-green));
  border-radius: 8px; width: 0%;
  transition: width 0.85s ease-out;
  box-shadow: 0 0 8px rgba(61,220,104,0.5);
}
.go-belt-text {
  font-size: 11px; color: rgba(255,255,255,0.4);
  margin-top: 5px; text-align: left;
}

.new-record-banner {
  position: fixed; top: 26%; left: 50%;
  transform: translateX(-50%) scale(0);
  font-family: var(--font-brand);
  font-size: 20px; color: var(--gold);
  text-shadow: 0 0 28px var(--gold-glow), 0 3px 10px rgba(0,0,0,0.9);
  z-index: 25; pointer-events: none;
  white-space: nowrap;
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1);
  letter-spacing: 1px;
}
.new-record-banner.active { transform: translateX(-50%) scale(1); }

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

@media (max-width: 390px) {
  .monke-grid { grid-template-columns: repeat(3, 1fr); gap: 7px; }
  .monke-card img { width: 56px; height: 56px; }
  .monke-card-name { font-size: 9px; }
  .logo-monke, .logo-fwap { font-size: 24px; }
  .lb-section { border-radius: 14px; }
}

@media (min-width: 600px) {
  #screen-select { padding-top: 32px; }
  .monke-grid { max-width: 480px; }
}
