* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background: #05070a;
  color: #e9e9e6;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  overflow: hidden;
}

#ar-container {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

#start-gate {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 30%, rgba(20, 45, 45, 0.55), transparent 60%),
    #05070a;
  text-align: center;
}

#start-gate[hidden] {
  display: none;
}

#start-gate-inner {
  max-width: 420px;
}

#start-gate-inner h1 {
  margin: 0;
  font-size: 3rem;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: #eceeea;
  text-shadow: 0 0 24px rgba(120, 170, 170, 0.35);
}

#start-gate-inner .subtitle {
  margin: 4px 0 20px;
  letter-spacing: 0.35em;
  font-size: 0.8rem;
  color: #9fb3b0;
  text-transform: uppercase;
}

#start-gate-inner .instructions {
  margin: 0 0 28px;
  color: #c9c9c6;
  line-height: 1.5;
}

#start-button {
  appearance: none;
  border: none;
  border-radius: 999px;
  padding: 16px 40px;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #05070a;
  background: #e63946;
  box-shadow: 0 0 32px rgba(230, 57, 70, 0.45);
  cursor: pointer;
}

#start-button:disabled {
  opacity: 0.6;
  cursor: default;
}

#start-gate-inner .permission-note {
  margin: 20px 0 0;
  font-size: 0.75rem;
  color: #6d7a78;
}

#cta-overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(2, 4, 6, 0.88);
  text-align: center;
}

#cta-overlay[hidden] {
  display: none;
}

#cta-inner {
  max-width: 360px;
}

#cta-inner p {
  margin: 0 0 18px;
  font-size: 1.1rem;
  color: #e9e9e6;
}

#cta-link {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 999px;
  background: #e63946;
  color: #05070a;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.03em;
}

#cta-close {
  display: block;
  margin: 18px auto 0;
  background: none;
  border: none;
  color: #8a8a86;
  font-size: 0.85rem;
  text-decoration: underline;
  cursor: pointer;
}
