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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #060812;
  color: #eef2ff;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

#rail-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.stage-overlay {
  position: relative;
  z-index: 10;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  pointer-events: none;
  padding: 24px;
}

.progress-track {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  z-index: 20;
}

.progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #38bdf8, #a855f7, #f472b6);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.8);
}

.waypoint-card {
  max-width: 520px;
  padding: 28px 32px;
  border-radius: 18px;
  background: rgba(9, 13, 26, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.22);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
  text-align: center;
  transition: border-color 0.35s ease;
}

.stop-kicker {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: #38bdf8;
  margin-bottom: 10px;
}

.stop-title {
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.stop-desc {
  font-size: 14px;
  line-height: 1.6;
  color: #cbd5e1;
  margin-bottom: 20px;
}

.telemetry-row {
  display: flex;
  justify-content: center;
  gap: 24px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  color: #94a3b8;
  letter-spacing: 0.08em;
}

.telemetry-row strong {
  color: #f8fafc;
  margin-left: 6px;
}

.rail-nav-mount {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  pointer-events: auto;
  z-index: 20;
}

.k-scroll-rail-nav {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(9, 13, 26, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(14px);
}

.k-rail-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.k-rail-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: width 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.k-rail-dot.is-active {
  width: 28px;
  background: #38bdf8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.8);
}

.k-rail-arrow {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #f8fafc;
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.k-rail-arrow:hover:not(:disabled) {
  background: rgba(56, 189, 248, 0.2);
  border-color: #38bdf8;
}

.k-rail-arrow:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
