/* Neural Runner — self-contained neon platformer panel, always dark */
.nr-wrap {
  --nr-bg: #05080d;
  --nr-neon: #00ff9c;
  --nr-cyan: #22d3ee;
  --nr-red: #ff3b5c;
  --nr-text: #cbeee0;
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px;
  background: var(--nr-bg);
  border: 1px solid #12303f;
  border-radius: 16px;
  box-shadow: 0 0 40px rgba(0,255,156,0.08);
  font-family: "Courier New", ui-monospace, monospace;
  color: var(--nr-text);
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.nr-wrap * { box-sizing: border-box; }
.nr-hud {
  width: 100%;
  max-width: 800px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.nr-hud .nr-val { color: var(--nr-neon); text-shadow: 0 0 6px var(--nr-neon); }
.nr-stage {
  position: relative;
  width: 100%;
  max-width: 800px;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  border-radius: 8px;
}
.nr-stage canvas {
  width: 100%;
  height: 100%;
  display: block;
  image-rendering: pixelated;
  background: #070b12;
  border: 1px solid #12303f;
  border-radius: 8px;
  box-shadow: inset 0 0 60px rgba(0,0,0,0.7);
  touch-action: none;
}
.nr-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  background: rgba(5,8,13,0.85);
  backdrop-filter: blur(2px);
  border-radius: 8px;
  padding: 20px;
  overflow-y: auto;
}
.nr-overlay.nr-hidden { display: none; }
.nr-overlay h1 {
  font-size: clamp(24px, 6vw, 38px);
  color: var(--nr-neon);
  text-shadow: 0 0 12px var(--nr-neon);
  letter-spacing: 2px;
  margin: 0;
}
.nr-overlay p { font-size: 14px; max-width: 380px; line-height: 1.5; color: #9fd8c4; margin: 0; }
.nr-overlay .nr-big { color: var(--nr-cyan); font-size: 18px; text-shadow: 0 0 8px var(--nr-cyan); }
.nr-overlay .nr-legend { font-size: 12px; text-align: left; line-height: 1.7; color: #8fb9ad; }
.nr-btn {
  font-family: inherit;
  font-size: 15px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--nr-bg);
  background: var(--nr-neon);
  border: none;
  border-radius: 4px;
  padding: 12px 26px;
  cursor: pointer;
  box-shadow: 0 0 16px rgba(0,255,156,0.5);
  transition: transform 0.08s ease;
}
.nr-btn:active { transform: scale(0.96); }
.nr-hint { font-size: 11px; color: #4f7768; text-align: center; }
.nr-touch {
  display: none;
  width: 100%;
  max-width: 800px;
  justify-content: space-between;
  margin-top: 4px;
}
.nr-touch .nr-pad { display: flex; gap: 8px; }
.nr-touch button {
  width: 60px;
  height: 60px;
  background: rgba(34,211,238,0.12);
  color: var(--nr-cyan);
  border: 1px solid #1c4a5a;
  font-size: 24px;
  border-radius: 10px;
  cursor: pointer;
}
.nr-touch button:active { background: rgba(34,211,238,0.3); }
.nr-touch .nr-jump {
  background: rgba(0,255,156,0.14);
  color: var(--nr-neon);
  border-color: #1c5a44;
  width: 88px;
}
@media (pointer: coarse) {
  .nr-touch { display: flex; }
  .nr-hint { display: none; }
}
@media (max-width: 640px) {
  .nr-wrap { padding: 12px; gap: 8px; }
  .nr-hud { font-size: 12px; }
  .nr-overlay { padding: 10px; gap: 8px; }
  .nr-overlay h1 { font-size: 20px; }
  .nr-overlay p { font-size: 12px; line-height: 1.35; }
  .nr-overlay .nr-legend { display: none; }
  .nr-btn { padding: 9px 20px; font-size: 14px; }
}
