/* ====== Neon Jumper - Vertical Jump Game ====== */
.gh-neon-jumper {
  --bg: #0a0f25;
  --panel: rgba(16,22,46,.7);
  --stroke: rgba(255,255,255,.1);
  --text: #e8ecff;
  --muted: #a9b7ff;
  --accent: #ff2b7d;
  --accent2: #00f7ff;
  --success: #17d490;
  --danger: #ff4757;
  --radius: 16px;
  --glow: 0 10px 30px rgba(255,43,125,.3);
  --inner: inset 0 0 0 1px rgba(255,255,255,.08);
  --glass: blur(12px) saturate(140%);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  position: relative;
  overflow: hidden;
}

.gh-neon-jumper .nj-aurora {
  position: absolute;
  inset: -20% -10% -20% -10%;
  z-index: 0;
  background: 
    radial-gradient(800px 600px at 20% 10%, rgba(255,43,125,.25), transparent 60%),
    radial-gradient(800px 600px at 80% 20%, rgba(0,247,255,.25), transparent 60%),
    radial-gradient(700px 700px at 50% 90%, rgba(23,212,144,.15), transparent 65%),
    linear-gradient(180deg, #0b1126 0%, #0a0f25 100%);
  pointer-events: none;
}

.gh-neon-jumper .nj-shell {
  position: relative;
  z-index: 1;
  width: min(500px, 96vw);
  margin: 24px auto;
  background: var(--panel);
  backdrop-filter: var(--glass);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: var(--glow), var(--inner);
  padding: 16px;
}

/* Header */
.gh-neon-jumper .nj-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 16px;
}

.gh-neon-jumper .nj-title {
  margin: 0;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: .3px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.gh-neon-jumper .nj-meters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.gh-neon-jumper .nj-meter {
  background: rgba(255,255,255,.07);
  border: 1px solid var(--stroke);
  border-radius: 10px;
  padding: 6px 10px;
  min-width: 70px;
  text-align: center;
  box-shadow: var(--inner);
}

.gh-neon-jumper .nj-meter .label {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.gh-neon-jumper .nj-meter .value {
  display: block;
  font-size: 16px;
  font-weight: 900;
  color: #fff;
}

/* Stage & Canvas */
.gh-neon-jumper .nj-stage {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(0,0,0,.3);
  border: 1px solid var(--stroke);
  box-shadow: var(--inner);
}

.gh-neon-jumper .nj-canvas {
  display: block;
  width: 100%;
  height: 65vh;
  max-height: 600px;
  min-height: 400px;
  background: transparent;
}

/* Overlays */
.gh-neon-jumper .nj-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  background: rgba(5,10,22,.85);
  backdrop-filter: blur(4px);
}

.gh-neon-jumper .nj-card {
  background: rgba(19,26,56,.95);
  border: 1px solid var(--stroke);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  max-width: 300px;
  width: 85%;
  box-shadow: var(--glow), var(--inner);
  backdrop-filter: var(--glass);
}

.gh-neon-jumper .nj-card h3 {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 900;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.gh-neon-jumper .nj-card p {
  margin: 0 0 20px;
  color: var(--muted);
  line-height: 1.4;
}

.gh-neon-jumper .nj-stats {
  color: var(--muted);
  margin: 16px 0;
  display: grid;
  gap: 8px;
}

.gh-neon-jumper .nj-stats div {
  display: flex;
  justify-content: space-between;
}

/* Buttons */
.gh-neon-jumper .nj-btn {
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  color: #0a0f25;
  border: none;
  border-radius: 12px;
  padding: 12px 24px;
  font-weight: 900;
  font-size: 16px;
  cursor: pointer;
  box-shadow: var(--glow);
  transition: transform .1s ease, filter .2s ease;
  width: 100%;
}

.gh-neon-jumper .nj-btn:hover,
.gh-neon-jumper .nj-btn:focus {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

/* Controls */
.gh-neon-jumper .nj-controls {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.gh-neon-jumper .nj-tap-hint {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  animation: nj-pulse 2s infinite;
}

@keyframes nj-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.gh-neon-jumper .nj-power {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.gh-neon-jumper .nj-power-bar {
  width: 120px;
  height: 6px;
  background: rgba(255,255,255,.1);
  border-radius: 3px;
  overflow: hidden;
  box-shadow: var(--inner);
}

.gh-neon-jumper .nj-power-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 3px;
  transition: width .1s ease;
  box-shadow: 0 0 10px var(--accent);
}

/* Mobile Optimizations */
@media (max-width: 680px) {
  .gh-neon-jumper .nj-header {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .gh-neon-jumper .nj-meters {
    justify-content: center;
  }
  
  .gh-neon-jumper .nj-meter {
    min-width: 60px;
    padding: 4px 8px;
  }
  
  .gh-neon-jumper .nj-canvas {
    height: 60vh;
    min-height: 350px;
  }
}

@media (max-width: 480px) {
  .gh-neon-jumper .nj-shell {
    margin: 12px auto;
    padding: 12px;
  }
  
  .gh-neon-jumper .nj-title {
    font-size: 24px;
  }
  
  .gh-neon-jumper .nj-meters {
    gap: 6px;
  }
  
  .gh-neon-jumper .nj-meter {
    min-width: 55px;
    font-size: 14px;
  }
}

/* Back Button */
.gh-neon-jumper .nj-back-section {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 5;
}

.gh-neon-jumper .nj-back-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.08);
  border: 1px solid var(--stroke);
  border-radius: 8px;
  color: var(--muted);
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(10px);
}

.gh-neon-jumper .nj-back-btn:hover {
  background: rgba(255,255,255,.12);
  color: #fff;
  transform: translateY(-1px);
}

/* How to Play Section */
.gh-neon-jumper .nj-howto {
  margin-top: 16px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--stroke);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--inner);
}

.gh-neon-jumper .nj-howto-toggle {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--accent2);
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.gh-neon-jumper .nj-howto-toggle:hover {
  background: rgba(255,255,255,.08);
  color: var(--accent);
}

.gh-neon-jumper .nj-chevron {
  transition: transform 0.3s ease;
}

.gh-neon-jumper .nj-howto.active .nj-chevron {
  transform: rotate(180deg);
}

.gh-neon-jumper .nj-howto-content {
  display: none;
  padding: 0 16px 16px;
  border-top: 1px solid var(--stroke);
}

.gh-neon-jumper .nj-howto.active .nj-howto-content {
  display: block;
  animation: nj-slideDown 0.3s ease;
}

@keyframes nj-slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.gh-neon-jumper .nj-howto-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gh-neon-jumper .nj-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  background: rgba(255,255,255,.03);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.05);
}

.gh-neon-jumper .nj-step-icon {
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.gh-neon-jumper .nj-step strong {
  display: block;
  color: var(--accent2);
  font-size: 14px;
  margin-bottom: 4px;
}

.gh-neon-jumper .nj-step p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

/* Mobile adjustments */
@media (max-width: 680px) {
  .gh-neon-jumper .nj-back-section {
    top: 12px;
    left: 12px;
  }
  
  .gh-neon-jumper .nj-back-btn {
    padding: 6px 10px;
    font-size: 13px;
  }
  
  .gh-neon-jumper .nj-howto-steps {
    gap: 10px;
  }
  
  .gh-neon-jumper .nj-step {
    padding: 10px;
    gap: 10px;
  }
}