
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: transparent !important;
  font-family: Arial, Helvetica, sans-serif;
}

body {
  color: #fff;
}

a-scene {
  position: fixed !important;
  inset: 0 !important;
  z-index: 1 !important;
  background: transparent !important;
}

.a-canvas {
  background: transparent !important;
  z-index: 1 !important;
}

.overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(17, 17, 17, 0.72);
  z-index: 10;
  padding: 20px;
  box-sizing: border-box;
}

.card {
  background: rgba(255,255,255,0.95);
  color: #111;
  width: min(420px, 92vw);
  border-radius: 18px;
  padding: 24px 20px;
  box-shadow: 0 12px 40px rgba(0,0,0,.28);
  text-align: center;
}

.card h1 {
  margin: 0 0 10px 0;
  font-size: 30px;
}

.card p {
  margin: 8px 0;
  line-height: 1.4;
}

.small {
  font-size: 14px;
  opacity: 0.8;
}

button {
  border: none;
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
}

#startButton {
  width: 100%;
  margin-top: 10px;
  background: #1d4ed8;
  color: #fff;
}

.status {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 12;
  background: rgba(0,0,0,0.72);
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  max-width: 92vw;
  text-align: center;
  font-size: 14px;
}

.sound {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 12;
  background: #16a34a;
  color: white;
  padding: 12px 18px;
}

.error {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 13;
  width: min(90vw, 460px);
  background: rgba(153, 27, 27, 0.95);
  color: white;
  padding: 14px 16px;
  border-radius: 14px;
  text-align: center;
  line-height: 1.4;
}

.hidden {
  display: none !important;
}
