/* Cosmergon Gestalt — UI Styles (externalized for CSP compliance) */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  background: #030812;
  color: #e0e8ff;
  font-family: monospace;
  overflow: hidden;
  touch-action: none;
}
#canvas-container { width: 100vw; height: 100vh; touch-action: none; }
#canvas-container canvas { touch-action: none; }
#ui-overlay {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none; z-index: 10;
}
#top-bar {
  position: absolute; top: 16px; left: 24px;
  background: none; border: none;
  padding: 6px 0;
  font-size: 14px; font-weight: bold; letter-spacing: 0.1em;
  color: rgba(0, 200, 255, 0.8);
  text-decoration: none;
  pointer-events: auto;
}
#top-bar:hover { color: rgba(0, 200, 255, 1); }
#info-panel {
  position: absolute; bottom: 24px; left: 24px;
  background: rgba(3, 8, 18, 0.75);
  border: 1px solid rgba(0, 200, 255, 0.15);
  border-radius: 4px; padding: 12px 16px;
  font-size: 12px; line-height: 1.8;
  color: rgba(200, 220, 255, 0.6);
  min-width: 180px;
}
#info-panel .label { color: rgba(0, 200, 255, 0.5); }
#back-hint {
  display: none; margin-top: 8px; padding-top: 6px;
  border-top: 1px solid rgba(0, 200, 255, 0.1);
  color: rgba(0, 200, 255, 0.4); font-size: 11px;
}
#theme-switcher {
  position: absolute; bottom: 24px; right: 24px;
  pointer-events: auto;
}
#theme-switcher select,
#nav-panel select {
  background: rgba(3, 8, 18, 0.85);
  border: 1px solid rgba(0, 200, 255, 0.2);
  border-radius: 4px;
  color: rgba(0, 200, 255, 0.7);
  font-family: monospace; font-size: 11px;
  padding: 4px 8px; cursor: pointer; outline: none;
}
#nav-panel select { margin-bottom: 6px; display: block; min-width: 160px; }
#theme-switcher select:hover,
#nav-panel select:hover { border-color: rgba(0, 200, 255, 0.5); }
#nav-panel {
  position: absolute; top: 50px; left: 24px;
  pointer-events: auto; font-size: 11px;
}
#top-active {
  margin-top: 10px;
  color: rgba(200, 220, 255, 0.5);
  font-size: 10px; line-height: 1.6;
}
#top-active .label {
  color: rgba(0, 200, 255, 0.4);
  font-size: 9px; text-transform: uppercase;
  letter-spacing: 0.1em; margin-bottom: 4px;
}
#top-active a {
  color: rgba(0, 200, 255, 0.6);
  text-decoration: none; cursor: pointer;
  display: block; padding: 2px 0;
}
#top-active a:hover { color: rgba(0, 200, 255, 1.0); }
#loading {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 14px; letter-spacing: 0.2em;
  color: rgba(0, 200, 255, 0.6);
  text-transform: uppercase;
}
#ai-disclosure {
  position: absolute; bottom: 24px; left: 50%;
  transform: translateX(-50%);
  background: rgba(3, 8, 18, 0.75);
  border: 1px solid rgba(0, 200, 255, 0.1);
  border-radius: 4px; padding: 4px 12px;
  font-size: 9px; color: rgba(200, 220, 255, 0.4);
  text-align: center; max-width: 420px;
  pointer-events: auto;
}
#ai-disclosure a {
  color: rgba(0, 200, 255, 0.5);
  text-decoration: none;
}
