html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #101312;
  font-family: Arial, Helvetica, sans-serif;
}

canvas {
  display: block;
}

.hud {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 5;
  display: flex;
  gap: 10px;
  align-items: center;
  max-width: calc(100vw - 32px);
  padding: 9px 12px;
  color: #f7fbff;
  background: rgba(13, 18, 20, 0.64);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  backdrop-filter: blur(8px);
  font-size: 13px;
  line-height: 1.35;
  pointer-events: none;
}

.hud strong {
  font-size: 14px;
  letter-spacing: 0;
}

.hud span {
  color: #cfe5e7;
}

.vr-toggle {
  position: fixed;
  right: 16px;
  top: 16px;
  z-index: 6;
  min-height: 40px;
  padding: 0 14px;
  color: #f7fbff;
  background: rgba(10, 20, 22, 0.78);
  border: 1px solid rgba(143, 238, 245, 0.55);
  border-radius: 6px;
  font-size: 14px;
  line-height: 40px;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.vr-toggle.is-active {
  color: #051112;
  background: #86f2f0;
  border-color: #86f2f0;
}

body.phone-vr-active .hud {
  display: none;
}

@media (max-width: 560px) {
  .hud {
    left: 10px;
    top: 10px;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    font-size: 12px;
  }

  .vr-toggle {
    right: 10px;
    top: 10px;
    min-height: 38px;
    padding: 0 12px;
    font-size: 13px;
    line-height: 38px;
  }
}
