:root {
  --bg: #ffffff00;
  --fg: #0e0f11;
  --muted: #fff;
  --primary: rgb(252 236 182 / 85%);
  --primary-600: rgb(252 236 182 / 85%);
  --ring: rgba(37, 99, 235, 0.35);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

#app {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

#hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

#startBtn {
  appearance: none;
  border: none;
  background: var(--primary);
  color: #fff;
  padding: 16px 28px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.2px;
  box-shadow: 0 10px 18px rgba(37, 99, 235, 0.25), 0 2px 6px rgba(0, 0, 0, 0.06);
  transform: translateZ(0);
  transition: box-shadow 0.2s ease, transform 0.06s ease, background 0.2s ease;
}

#startBtn:active {
  transform: translateY(1px);
}

#startBtn:hover {
  background: var(--primary-600);
  box-shadow: 0 12px 22px rgba(37, 99, 235, 0.3), 0 2px 8px rgba(0, 0, 0, 0.08);
}

#startBtn[disabled] {
  background: #9ca3af;
  cursor: not-allowed;
  box-shadow: none;
}

.muted {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
  text-align: center;
  max-width: 260px;
}

.muted.is-error {
  color: #dc2626;
}

.muted.is-error {
  color: #dc2626;
}

#ar-container {
  position: fixed;
  inset: 0;
  z-index: 10;
}

a-scene {
  position: fixed !important;
  inset: 0;
  background: transparent !important;
}

#endingOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  z-index: 20;
}

.endingOverlaystart {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    text-align: center;
    z-index: 20;
  }

#endingOverlay.is-visible {
  display: flex;
}

.ending-content {
  max-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-family: "Lora", serif;
  font-size: 18px;
  line-height: 1.4;
}

#restartBtn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  padding: 12px 20px;
  font-size: 16px;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

#restartBtn:hover {
  background: rgba(255, 255, 255, 0.15);
}

