/* ====== Neon Stack Jump ====== */
.gh-stack-jump {
  --bg: #0a0f25;
  --panel: rgba(16,22,46,.7);
  --stroke: rgba(255,255,255,.1);
  --text: #e8ecff;
  --muted: #a9b7ff;
  --accent: #6c7cff;
  --accent2: #33e0ff;
  --success: #17d490;
  --danger: #ff4757;
  --warning: #ffa502;
  --radius: 16px;
  --glow: 0 10px 30px rgba(51,224,255,.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;
}

/* Theme Colors */
.gh-stack-jump.theme-neon { 
  --accent: #6c7cff; --accent2: #33e0ff; 
  --block-top: #6c7cff; --block-bottom: #33e0ff;
}
.gh-stack-jump.theme-cyber { 
  --accent: #ff2b7d; --accent2: #ffeb3b; 
  --block-top: #ff2b7d; --block-bottom: #ffeb3b;
}
.gh-stack-jump.theme-sunset { 
  --accent: #ff6b35; --accent2: #ff2b7d; 
  --block-top: #ff6b35; --block-bottom: #ff2b7d;
}
.gh-stack-jump.theme-ocean { 
  --accent: #00f7ff; --accent2: #2b97ff; 
  --block-top: #00f7ff; --block-bottom: #2b97ff;
}
.gh-stack-jump.theme-forest { 
  --accent: #17d490; --accent2: #a8ff33; 
  --block-top: #17d490; --block-bottom: #a8ff33;
}
.gh-stack-jump.theme-candy { 
  --accent: #ff6bda; --accent2: #ffb3ff; 
  --block-top: #ff6bda; --block-bottom: #ffb3ff;
}

.gh-stack-jump .sj-aurora {
  position: absolute;
  inset: -20% -10% -20% -10%;
  z-index: 0;
  background: 
    radial-gradient(800px 600px at 20% 10%, rgba(108,124,255,.25), transparent 60%),
    radial-gradient(800px 600px at 80% 20%, rgba(51,224,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-stack-jump .sj-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-stack-jump .sj-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 16px;
}

.gh-stack-jump .sj-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;
  text-align: center;
}

.gh-stack-jump .sj-meters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.gh-stack-jump .sj-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-stack-jump .sj-meter .label {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.gh-stack-jump .sj-meter .value {
  display: block;
  font-size: 16px;
  font-weight: 900;
  color: #fff;
}

/* Back Button */
.gh-stack-jump .sj-back-section {
  z-index: 5;
}

.gh-stack-jump .sj-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);
  white-space: nowrap;
}

.gh-stack-jump .sj-back-btn:hover {
  background: rgba(255,255,255,.12);
  color: #fff;
  transform: translateY(-1px);
}

/* Stage & Canvas */
.gh-stack-jump .sj-stage {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(0,0,0,.3);
  border: 1px solid var(--stroke);
  box-shadow: var(--inner);
}

.gh-stack-jump .sj-canvas {
  display: block;
  width: 100%;
  height: 65vh;
  max-height: 600px;
  min-height: 400px;
  background: transparent;
}

/* Overlays */
.gh-stack-jump .sj-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  background: rgba(5,10,22,.85);
  backdrop-filter: blur(4px);
}

.gh-stack-jump .sj-card {
  background: rgba(19,26,56,.95);
  border: 1px solid var(--stroke);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  max-width: 320px;
  width: 85%;
  box-shadow: var(--glow), var(--inner);
  backdrop-filter: var(--glass);
}

.gh-stack-jump .sj-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-stack-jump .sj-card p {
  margin: 0 0 20px;
  color: var(--muted);
  line-height: 1.4;
}

/* Settings Groups */
.gh-stack-jump .sj-settings {
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gh-stack-jump .sj-setting-group {
  text-align: left;
}

.gh-stack-jump .sj-setting-group label {
  display: block;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 6px;
  font-weight: 600;
}

.gh-stack-jump .sj-setting-group select {
  width: 100%;
  background: rgba(255,255,255,.08);
  border: 1px solid var(--stroke);
  border-radius: 8px;
  color: #fff;
  padding: 10px;
  font-size: 14px;
}

.gh-stack-jump .sj-stats {
  color: var(--muted);
  margin: 16px 0;
  display: grid;
  gap: 8px;
}

.gh-stack-jump .sj-stats div {
  display: flex;
  justify-content: space-between;
}

.gh-stack-jump .sj-card-actions {
  margin-top: 16px;
}

/* Buttons */
.gh-stack-jump .sj-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-stack-jump .sj-btn:hover,
.gh-stack-jump .sj-btn:focus {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

/* Perfect Effect */
.gh-stack-jump .sj-perfect-effect {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 15;
  pointer-events: none;
}

.gh-stack-jump .sj-perfect-text {
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 32px;
  font-weight: 900;
  text-shadow: 0 0 20px var(--accent);
  animation: sj-perfect-pop 0.8s ease-out;
}

@keyframes sj-perfect-pop {
  0% { opacity: 0; transform: scale(0.5) translate(-50%, -50%); }
  50% { opacity: 1; transform: scale(1.2) translate(-50%, -50%); }
  100% { opacity: 0; transform: scale(1) translate(-50%, -50%); }
}

/* Controls */
.gh-stack-jump .sj-controls {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.gh-stack-jump .sj-tap-hint {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  animation: sj-pulse 2s infinite;
}

@keyframes sj-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.gh-stack-jump .sj-actions {
  display: flex;
  gap: 8px;
}

.gh-stack-jump .sj-sound,
.gh-stack-jump .sj-pause-btn {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
  color: #fff;
  cursor: pointer;
  outline: none;
  display: grid;
  place-items: center;
  box-shadow: var(--inner);
  transition: filter var(--speed), transform .08s;
  font-size: 18px;
}

.gh-stack-jump .sj-sound:hover,
.gh-stack-jump .sj-pause-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
}

.gh-stack-jump .sj-sound .ico {
  width: 20px;
  height: 20px;
  display: block;
}

.gh-stack-jump .sj-sound .off {
  display: none;
}

.gh-stack-jump .sj-sound.is-muted {
  color: #d2dae9;
  border-color: rgba(255,255,255,.12);
}

.gh-stack-jump .sj-sound.is-muted .on {
  display: none;
}

.gh-stack-jump .sj-sound.is-muted .off {
  display: block;
}

/* How to Play Section */
.gh-stack-jump .sj-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-stack-jump .sj-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-stack-jump .sj-howto-toggle:hover {
  background: rgba(255,255,255,.08);
  color: var(--accent);
}

.gh-stack-jump .sj-chevron {
  transition: transform 0.3s ease;
}

.gh-stack-jump .sj-howto.active .sj-chevron {
  transform: rotate(180deg);
}

.gh-stack-jump .sj-howto-content {
  display: none;
  padding: 0 16px 16px;
  border-top: 1px solid var(--stroke);
}

.gh-stack-jump .sj-howto.active .sj-howto-content {
  display: block;
  animation: sj-slideDown 0.3s ease;
}

@keyframes sj-slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.gh-stack-jump .sj-howto-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gh-stack-jump .sj-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-stack-jump .sj-step-icon {
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.gh-stack-jump .sj-step strong {
  display: block;
  color: var(--accent2);
  font-size: 14px;
  margin-bottom: 4px;
}

.gh-stack-jump .sj-step p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

/* Mobile Optimizations */
@media (max-width: 680px) {
  .gh-stack-jump .sj-header {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 10px;
  }
  
  .gh-stack-jump .sj-back-section {
    position: absolute;
    top: 12px;
    left: 12px;
  }
  
  .gh-stack-jump .sj-meters {
    justify-content: center;
  }
  
  .gh-stack-jump .sj-meter {
    min-width: 60px;
    padding: 4px 8px;
  }
  
  .gh-stack-jump .sj-canvas {
    height: 60vh;
    min-height: 350px;
  }

  .gh-stack-jump .sj-controls {
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .gh-stack-jump .sj-shell {
    margin: 12px auto;
    padding: 12px;
  }
  
  .gh-stack-jump .sj-title {
    font-size: 24px;
  }
  
  .gh-stack-jump .sj-meters {
    gap: 6px;
  }
  
  .gh-stack-jump .sj-meter {
    min-width: 55px;
    font-size: 14px;
  }
  
  .gh-stack-jump .sj-perfect-text {
    font-size: 24px;
  }
}