html,
body {
  margin: 0;
  height: 100%;
  background: #000;
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    sans-serif;
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #009293;
  color: #fff;
  padding: 16px;
  box-sizing: border-box;
}
.overlay[hidden] {
  display: none;
}
.intro-card {
  max-width: 420px;
  text-align: center;
}
.intro-card .logo {
  width: 96px;
  height: auto;
}
.intro-card h1 {
  margin: 8px 0 4px;
  font-size: 32px;
}
.intro-card p {
  margin: 0 0 20px;
  opacity: 0.9;
  line-height: 1.4;
}
.intro-card .hint {
  font-size: 14px;
  margin-top: 16px;
  opacity: 0.8;
}
.intro-card button {
  display: block;
  width: 100%;
  margin: 10px 0;
  padding: 16px;
  font-size: 18px;
  border-radius: 12px;
  border: 0;
  cursor: pointer;
  font-weight: 600;
}
.intro-card button[hidden] {
  display: none;
}
.intro-card .primary {
  background: #fff;
  color: #00686a;
}
.intro-card .secondary {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.8);
}
.intro-card[hidden] {
  display: none;
}
#intro-main {
  position: relative;
  height: 100%;
}
.intro-card .gear {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 48px;
  height: 48px;
  margin: 0;
  padding: 0;
  font-size: 26px;
  background: transparent;
  color: #fff;
  border-radius: 24px;
}
.ajuste {
  margin: 0 0 20px;
  text-align: left;
  font-size: 16px;
}
.stepper {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}
.intro-card .stepper button {
  width: 56px;
  margin: 0;
  padding: 10px 0;
  font-size: 24px;
  background: #fff;
  color: #00686a;
}
.intro-card .stepper button:disabled {
  opacity: 0.4;
  cursor: default;
}
.stepper output {
  flex: 1;
  text-align: center;
  font-size: 22px;
  font-weight: 600;
}

.loading {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 9000;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 18px;
}
.loading[hidden] {
  display: none;
}

.corner {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 9500;
  width: 40px;
  height: 40px;
  border-radius: 20px;
  border: 0;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 20px;
  opacity: 0.6;
}
.corner[hidden] {
  display: none;
}

/* Linha divisoria no centro, igual a do Cardboard: branca, 4px, comecando acima
   da area do botao de engrenagem (28px * 1.5) para encaixar o celular no visor */
#cardboard-divider {
  position: fixed;
  top: 0;
  bottom: 42px;
  left: 50%;
  width: 4px;
  margin-left: -2px;
  background: #fff;
  z-index: 9400;
  pointer-events: none;
}
#cardboard-divider::after {
  /* marca de alinhamento na base, no lugar da engrenagem */
  content: "";
  position: absolute;
  left: 50%;
  bottom: -35px;
  width: 28px;
  height: 28px;
  margin-left: -14px;
  border: 4px solid #fff;
  border-radius: 50%;
  box-sizing: border-box;
}
#cardboard-divider[hidden] {
  display: none;
}

/* esconde o botao padrao de VR/tela cheia do A-Frame (usamos o modo Cardboard proprio) */
.a-enter-vr,
.a-enter-ar {
  display: none !important;
}
