/* Deep-Signal-Farben der Website (Akzent #8447f0). Läuft eigenständig oder im iframe. */
:root {
  --accent: #8447f0;
  --bg: #06080d;
  --text: #f0eaf8;
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  touch-action: none;
}
#stage { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }

.panel {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(520px, calc(100% - 32px));
  padding: 28px 26px;
  border-radius: 14px;
  background: rgba(8, 10, 18, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: center;
}
.panel[hidden] { display: none; }
.brand { letter-spacing: 0.3em; font-size: 0.72rem; opacity: 0.6; }
h1 { margin: 0; font-weight: 300; font-size: 1.8rem; }
p { margin: 0; line-height: 1.6; opacity: 0.85; }
.small { font-size: 0.8rem; opacity: 0.6; }
.status { min-height: 1.3em; }
.row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 6px; }
.btn {
  font: inherit;
  padding: 12px 20px;
  border-radius: 8px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  cursor: pointer;
}
.btn:disabled { opacity: 0.5; cursor: default; }
.btn.ghost { background: transparent; }

#hud {
  position: fixed;
  left: 0;
  right: 0;
  bottom: max(16px, env(safe-area-inset-bottom));
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  pointer-events: none;
}
#hud[hidden] { display: none; }
.chip {
  pointer-events: auto;
  font: inherit;
  font-size: 0.85rem;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(8, 10, 18, 0.7);
  color: var(--text);
  cursor: pointer;
}
.hint {
  font-size: 0.78rem;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(8, 10, 18, 0.55);
  opacity: 0.85;
}

/* Smartphone: linker Stick zum Gehen */
.stick {
  position: fixed;
  width: 110px;
  height: 110px;
  margin: -55px 0 0 -55px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.06);
  pointer-events: none;
}
.stick[hidden] { display: none; }
.knob {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 46px;
  height: 46px;
  margin: -23px 0 0 -23px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 70%, transparent);
}

.back-link { align-self: center; color: var(--text); opacity: .76; font-size: .82rem; text-underline-offset: 3px; }
.back-link:hover { opacity: 1; }
.back-link:focus-visible, .chip:focus-visible, .btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.back-chip { display: inline-flex; align-items: center; text-decoration: none; }
