* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #0a0a0f;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  color: #fff;
  height: 100dvh;
  overflow: hidden;
}

a-scene {
  position: fixed !important;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  pointer-events: none;
}

a-scene.ar-active {
  pointer-events: auto;
}

.a-enter-vr,
.a-enter-ar,
.a-enter-vr-button,
.a-enter-ar-button {
  display: none !important;
}

#overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  background: #0a0a0f;
  transition: opacity 0.6s ease;
}

#overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.logo {
  font-size: 13px;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
}

.headline {
  font-size: clamp(28px, 6vw, 48px);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-align: center;
}

.headline em {
  font-style: normal;
  color: #7eb3ff;
}

.sub {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
  line-height: 1.7;
  max-width: 300px;
}

#startBtn {
  margin-top: 8px;
  padding: 14px 40px;
  background: transparent;
  border: 1px solid rgba(126, 179, 255, 0.5);
  border-radius: 40px;
  color: #7eb3ff;
  font-size: 14px;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

#startBtn:hover {
  background: rgba(126, 179, 255, 0.1);
  border-color: #7eb3ff;
}

#hud {
  position: fixed;
  bottom: env(safe-area-inset-bottom, 0px);
  left: 0;
  right: 0;
  z-index: 50;
  padding: 20px 24px;
  pointer-events: none;
  display: none;
}

#hud.visible {
  display: block;
}

.hud-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 10, 15, 0.6);
  backdrop-filter: blur(12px);
  border: 0.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 14px 20px;
  pointer-events: auto;
}

.hud-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  transition: background 0.3s;
}

.dot.active {
  background: #4ade80;
  box-shadow: 0 0 6px #4ade80;
}

#closeBtn {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  padding: 6px 12px;
  cursor: pointer;
  letter-spacing: 0.05em;
}

#closeBtn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

#markerGuide {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 20px 24px;
  display: none;
}

#markerGuide.visible {
  display: block;
}

.guide-card {
  background: rgba(10, 10, 15, 0.6);
  backdrop-filter: blur(12px);
  border: 0.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 14px 20px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.6;
}

.guide-card strong {
  color: #7eb3ff;
  font-weight: 500;
}

.guide-list {
  margin-top: 4px;
}
