:root {
  --panel: rgba(16, 20, 40, 0.62);
  --panel-border: rgba(140, 200, 255, 0.14);
  --text: #e8f1ff;
  --accent: #5fe1d2;
}

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: #071530;
  font-family: 'Orbitron', system-ui, sans-serif;
  color: var(--text);
}

#scene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
}

/* Hinweis unten mittig, wie in der Vorlage */
.pill {
  position: fixed;
  left: 50%;
  bottom: 7%;
  transform: translateX(-50%);
  padding: 10px 18px;
  border-radius: 8px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  backdrop-filter: blur(8px);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  pointer-events: none;
  transition: opacity 1.2s ease;
}
.pill.hide { opacity: 0; }

/* Hinweis neben dem Tageszeit-Regler */
#mood-hint {
  left: auto;
  right: 92px;
  bottom: auto;
  top: 50%;
  transform: translateY(-50%);
}
#mood-hint::after {
  /* Dreieck direkt außen an der Box, ohne Überlappung (sonst dunkelt die halbtransparente Fläche doppelt) */
  content: '';
  position: absolute;
  right: -9px;
  top: 50%;
  width: 8px;
  height: 14px;
  transform: translateY(-50%);
  background: var(--panel);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

/* Tageszeit-Regler rechts */
#mood {
  position: fixed;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  border-radius: 12px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  backdrop-filter: blur(8px);
}
#mood::after {
  content: '';
  position: absolute;
  right: -7px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, #ffd27a, #8a7cff 50%, var(--accent));
  opacity: 0.6;
}
#mood button {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: rgba(232, 241, 255, 0.55);
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}
#mood button:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
#mood button.active { color: var(--text); background: rgba(255, 255, 255, 0.12); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); }
#mood button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
#mood svg { width: 20px; height: 20px; fill: currentColor; stroke: currentColor; }

/* Versionsmenü rechts oben */
#menu {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 10;
}
#menu-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 42px;
  padding: 0 12px 0 14px;
  border-radius: 10px;
  border: 1px solid var(--panel-border);
  background: var(--panel);
  backdrop-filter: blur(8px);
  color: var(--text);
  font: 500 12px 'Orbitron', system-ui, sans-serif;
  letter-spacing: 0.14em;
  cursor: pointer;
}
#menu-btn:hover { background: rgba(30, 36, 64, 0.75); }
#menu-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
#menu-btn svg { width: 20px; height: 20px; stroke: currentColor; fill: none; }
#menu-panel {
  position: absolute;
  top: 50px;
  right: 0;
  min-width: 240px;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid var(--panel-border);
  background: rgba(14, 18, 36, 0.86);
  backdrop-filter: blur(10px);
}
.menu-head {
  padding: 6px 10px 8px;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(232, 241, 255, 0.5);
}
#version-list a {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 10px;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  font-size: 12px;
}
#version-list a b { font-weight: 700; letter-spacing: 0.1em; min-width: 26px; }
#version-list a span { font-family: system-ui, sans-serif; opacity: 0.8; }
#version-list a:hover { background: rgba(255, 255, 255, 0.07); }
#version-list a[aria-current="page"] { background: rgba(95, 225, 210, 0.14); box-shadow: inset 0 0 0 1px rgba(95, 225, 210, 0.35); }
