.dev-only {
  display: none;
}

body.dev-mode .dev-only {
  display: block;
}

body.dev-mode .debug-line-v.dev-only,
body.dev-mode .debug-line-h.dev-only,
body.dev-mode .debug-box.dev-only {
  display: block;
}

.ball-link {
  position: fixed;
  width: 104px;
  height: 104px;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  z-index: 5;
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms ease;
  background: transparent;
  border: 0;
  outline: none;
}

/* Interactive orb cue
   - `inset` controls how far outside the orb the cue sits.
   - `border` is the hard ring stroke. Keep alpha at 0 if you only want glow.
   - `box-shadow` is the visible glow/fade effect.
   - base `transform: scale(...)` controls the resting radius of the glow.
   - `hover/focus-visible` scale controls how much larger the halo gets on hover.
*/
.ball-link::before {
  content: "";
  position: absolute;
  inset: -14%;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0);
  box-shadow:
    0 0 0 0 rgba(255, 255, 255, 0.0),
    0 0 18px rgba(255, 255, 255, 0.00),
    0 0 34px rgba(255, 255, 255, 0.00);
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 220ms ease, transform 220ms ease;
  pointer-events: none;
}

.ball-link::after {
  content: none;
}

.ball-link.active {
  opacity: 1;
  pointer-events: auto;
  cursor: pointer;
}

.ball-link.active::before {
  opacity: 1;
  transform: scale(1);
  animation: orbCuePulse 1.8s ease-in-out infinite;
}

.ball-link:hover::before,
.ball-link:focus-visible::before {
  transform: scale(1.08);
}

.debug-center {
  position: fixed;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff2d2d;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.7);
  transform: translate(-50%, -50%);
  z-index: 8;
  pointer-events: none;
}

.debug-line-v {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255, 0, 0, 0.85);
  z-index: 7;
  pointer-events: none;
}

.debug-line-h {
  position: fixed;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255, 0, 0, 0.55);
  z-index: 7;
  pointer-events: none;
}

.debug-box {
  position: fixed;
  border: 1px solid rgba(255, 0, 0, 0.0);
  box-sizing: border-box;
  z-index: 7;
  pointer-events: none;
}

.tuner {
  position: fixed;
  top: 14px;
  right: 14px;
  width: min(300px, 82vw);
  padding: 10px 12px;
  background: rgba(12, 16, 22, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  backdrop-filter: blur(6px);
  color: rgba(230, 236, 245, 0.95);
  z-index: 20;
  user-select: none;
}

.tuner-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 8px;
}

.tuner h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.tuner-toggle {
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(235, 241, 250, 0.95);
  border-radius: 6px;
  width: 26px;
  height: 22px;
  line-height: 1;
  cursor: pointer;
  font-size: 14px;
  padding: 0;
}

.tuner.collapsed .row {
  display: none;
}

.tuner .row {
  margin: 8px 0;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 4px 8px;
  align-items: center;
}

.tuner label {
  font-size: 11px;
  opacity: 0.9;
}

.tuner .val {
  font-size: 11px;
  opacity: 0.9;
  font-variant-numeric: tabular-nums;
}

.tuner input[type="range"] {
  grid-column: 1 / -1;
  width: 100%;
}

.tuner-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  opacity: 0.95;
}

.progress-wrap {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  width: min(460px, 58vw);
  height: 8px;
  border-radius: 999px;
  background: rgba(214, 219, 226, 0.26);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  overflow: hidden;
  z-index: 21;
  pointer-events: none;
  backdrop-filter: blur(3px);
}

@keyframes orbCuePulse {
  0% {
    box-shadow:
      0 0 0 0 rgba(255, 255, 255, 0.14),
      0 0 14px rgba(255, 255, 255, 0.08),
      0 0 26px rgba(255, 255, 255, 0.04);
  }
  70% {
    box-shadow:
      0 0 0 16px rgba(255, 255, 255, 0.0),
      0 0 22px rgba(255, 255, 255, 0.08),
      0 0 38px rgba(255, 255, 255, 0.05);
  }
  100% {
    box-shadow:
      0 0 0 0 rgba(255, 255, 255, 0.0),
      0 0 14px rgba(255, 255, 255, 0.08),
      0 0 26px rgba(255, 255, 255, 0.04);
  }
}

.progress-fill {
  width: 100%;
  height: 100%;
  transform-origin: left center;
  transform: scaleX(0);
  background: linear-gradient(90deg, rgba(239, 242, 247, 0.95), rgba(185, 193, 205, 0.96));
  transition: transform 120ms linear;
}

.theme-toggle {
  position: fixed;
  right: 18px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  background: rgba(246, 249, 252, 0.84);
  color: rgba(25, 33, 45, 0.92);
  box-shadow: 0 8px 22px rgba(18, 24, 38, 0.16);
  backdrop-filter: blur(7px);
  cursor: pointer;
  z-index: 23;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.theme-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(18, 24, 38, 0.22);
}

.theme-toggle:focus-visible {
  outline: 2px solid rgba(40, 120, 255, 0.84);
  outline-offset: 2px;
}

.theme-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
}

.theme-toggle-icon svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: currentColor;
}

.theme-toggle-icon-moon {
  display: none;
}

.social-bar {
  position: fixed;
  left: 50%;
  bottom: 44px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 22;
  pointer-events: auto;
}

.social-btn {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: rgba(28, 36, 48, 0.92);
  background: rgba(242, 246, 251, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 12px rgba(20, 24, 34, 0.15);
  backdrop-filter: blur(4px);
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, color 180ms ease;
}

.social-btn svg {
  width: 16px;
  height: 16px;
  display: block;
  fill: currentColor;
}

.social-btn:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 18px rgba(18, 24, 38, 0.22);
  background: rgba(255, 255, 255, 0.94);
}

.social-btn:focus-visible {
  outline: 2px solid rgba(40, 120, 255, 0.8);
  outline-offset: 2px;
}

body.dark-mode .social-btn {
  color: rgba(238, 244, 252, 0.95);
  background: rgba(31, 37, 48, 0.82);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

body.dark-mode .social-btn:hover {
  background: rgba(42, 50, 64, 0.92);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
}

body.dark-mode .theme-toggle {
  background: rgba(25, 31, 41, 0.84);
  color: rgba(237, 243, 250, 0.95);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.36);
}

body.dark-mode .theme-toggle:hover {
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.44);
}

body.dark-mode .theme-toggle-icon-sun {
  display: none;
}

body.dark-mode .theme-toggle-icon-moon {
  display: inline-flex;
}

.cam-debug {
  position: fixed;
  left: 14px;
  bottom: 18px;
  padding: 7px 9px;
  border-radius: 8px;
  background: rgba(12, 16, 22, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(232, 238, 246, 0.95);
  font-size: 11px;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  z-index: 22;
  pointer-events: none;
  white-space: pre;
}

.scroll-space {
  position: relative;
  z-index: 1;
  height: 760vh;
}

body.fallback-active #app,
body.fallback-active .feature-copy,
body.fallback-active .ball-link,
body.fallback-active .progress-wrap,
body.fallback-active .label,
body.fallback-active .year-tag {
  display: none;
}

body.fallback-active .social-bar {
  bottom: 26px;
}

body.fallback-active .theme-toggle {
  bottom: 26px;
}
