:root {
  color-scheme: dark;
  --bg: #0b1016;
  --bg-soft: #121a24;
  --panel: rgba(14, 19, 27, 0.84);
  --panel-border: rgba(159, 179, 194, 0.18);
  --text: #e6edf4;
  --muted: #9fb3c2;
  --accent: #7dd3fc;
  --accent-2: #a7f3d0;
  --warn: #f59e0b;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(125, 211, 252, 0.18), transparent 30%),
    radial-gradient(circle at 80% 20%, rgba(167, 243, 208, 0.1), transparent 25%),
    linear-gradient(180deg, var(--bg), #06090d 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow: hidden;
}

button {
  font: inherit;
}

.app {
  position: relative;
  width: 100%;
  height: 100%;
}

.viewport,
.viewport canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hud {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
  width: min(26rem, calc(100vw - 2rem));
  border: 1px solid var(--panel-border);
  background: var(--panel);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.hud__title h1 {
  margin: 0.2rem 0 0;
  font-size: 1.15rem;
  line-height: 1.1;
  letter-spacing: 0;
}

.eyebrow {
  color: var(--muted);
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.hud__controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hud__xr {
  display: flex;
  min-height: 2.5rem;
  align-items: center;
}

.hud__xr button {
  width: 100%;
}

.chip {
  border: 1px solid var(--panel-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 0.55rem 0.8rem;
  cursor: pointer;
  border-radius: 999px;
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease;
}

.chip:hover {
  transform: translateY(-1px);
  border-color: rgba(125, 211, 252, 0.45);
}

.chip.is-active {
  background: rgba(125, 211, 252, 0.14);
  border-color: rgba(125, 211, 252, 0.55);
  color: var(--accent);
}

.hud__status {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.info {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 2;
  display: grid;
  gap: 0.55rem;
  min-width: 18rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--panel-border);
  background: rgba(12, 17, 24, 0.72);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.info div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9rem;
}

.info span {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.info strong {
  font-weight: 600;
  text-align: right;
  color: var(--text);
}

@media (max-width: 680px) {
  .hud,
  .info {
    left: 0.75rem;
    right: 0.75rem;
    width: auto;
  }

  .info {
    bottom: 0.75rem;
    min-width: 0;
  }
}
