body {
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: #050505;
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: white;
  user-select: none;
}

.back-home{
  position: fixed;
  left: 12px;
  top: 12px;
  z-index: 200;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 12px;
  backdrop-filter: blur(10px);
}
.back-home:hover{ background: rgba(0,0,0,0.75); border-color:#4a90e2; }

#canvas-container {
  width: 100vw;
  height: 100vh;
}
#ui-overlay {
  position: absolute;
  bottom: 30px;
  left: 30px;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.6);
  padding: 20px;
  border-radius: 12px;
  border-left: 4px solid #4a90e2;
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
  max-width: 300px;
}
#data-panel {
  position: absolute;
  top: 30px;
  left: 30px;
  background: rgba(20, 20, 20, 0.8);
  padding: 15px;
  border-radius: 8px;
  border: 1px solid #444;
  font-size: 0.85em;
  pointer-events: none;
  backdrop-filter: blur(3px);
  display: none; /* Ativado via JS */
}

@media (max-width: 820px) {
  #ui-overlay {
    left: 10px;
    right: 10px;
    bottom: 10px;
    max-width: none;
    padding: 14px;
  }

  #data-panel {
    top: 10px;
    left: 10px;
    right: 10px;
    width: auto;
    max-width: none;
  }
}
.data-row { margin-bottom: 8px; border-bottom: 1px solid #333; padding-bottom: 4px; }
.data-label { color: #888; font-weight: bold; }
.data-value { color: #4a90e2; float: right; }

h1 { margin: 0 0 10px 0; font-size: 1.5em; color: #4a90e2; }
#info-display { font-size: 1.1em; line-height: 1.4; }

#tooltip {
  position: absolute;
  background: rgba(20, 20, 20, 0.9);
  padding: 12px 18px;
  border-radius: 8px;
  border: 1px solid #4a90e2;
  display: none;
  pointer-events: none;
  z-index: 100;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
  font-size: 0.9em;
}
.controls-hint {
  font-size: 0.8em;
  opacity: 0.6;
  margin-top: 10px;
}
.lil-gui {
  --background-color: rgba(20, 20, 20, 0.9);
  --widget-color: #333;
  --focus-color: #4a90e2;
  --number-color: #4a90e2;
  --string-color: #4a90e2;
}

