/* Mobile AR presentation: the camera and finder stay centered at every viewport size. */
:root {
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: var(--sans);
}

html,
body {
  width: 100%;
  min-height: 100%;
  font-size: 16px;
}

.ar-app {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  min-height: 100svh;
}

.ar-app canvas {
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  min-height: 100svh;
  display: block;
  object-fit: cover;
  object-position: center center;
}

.ar-chrome {
  padding: max(20px, env(safe-area-inset-top))
    max(20px, env(safe-area-inset-right))
    max(18px, env(safe-area-inset-bottom))
    max(20px, env(safe-area-inset-left));
}

.brand {
  font: 600 13px/1.15 var(--sans);
  letter-spacing: .03em;
  text-shadow: 0 1px 10px #000;
}

.brand b {
  font-weight: 700;
  letter-spacing: .08em;
}

.brand-mark {
  width: 30px;
  height: 30px;
}

.live-label,
.ar-bottom {
  font: 600 11px/1.3 var(--sans);
  letter-spacing: .06em;
}

.scanner-guide {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(92vw, 420px);
  margin: 0;
  transform: translate(-50%, -50%);
  text-shadow: 0 2px 9px #000;
}

.scan-frame {
  width: min(78vw, 340px);
  margin: 0 auto 22px;
}

.scanner-guide p {
  font: 600 17px/1.3 var(--sans);
  margin: 0 0 10px;
  color: #fff;
}

.scanner-guide small {
  font-size: 14px;
  line-height: 1.4;
  color: rgba(241, 238, 231, .82);
}

.ar-bottom {
  padding-top: 12px;
}

.eyebrow {
  font: 700 11px/1.2 var(--sans);
  letter-spacing: .1em;
  margin-bottom: 8px;
}

.audio-dock {
  font-size: 15px;
}

.audio-dock strong {
  font-size: 16px;
}

.button {
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 700;
}

.project-error h1 {
  font-size: 32px;
  letter-spacing: -.04em;
}

.project-error p {
  font-size: 15px;
}

.unmute-button {
  font-size: 15px;
}

.sound-gate {
  position: fixed;
  z-index: 6;
  inset: 0;
  display: grid;
  align-items: end;
  justify-items: center;
  padding: 20px 16px max(24px, env(safe-area-inset-bottom));
  pointer-events: auto;
}

.sound-gate-card {
  width: min(100%, 420px);
  padding: 22px;
  border: 1px solid rgba(241, 238, 231, .3);
  border-radius: 18px;
  background: rgba(8, 23, 25, .94);
  box-shadow: 0 16px 50px rgba(0, 0, 0, .38);
  backdrop-filter: blur(12px);
}

.sound-gate-card h1 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: -.03em;
}

.sound-gate-card p {
  margin: 0 0 18px;
  color: rgba(241, 238, 231, .8);
  font-size: 15px;
  line-height: 1.45;
}

@media (max-width: 700px) {
  .ar-chrome {
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }

  .live-label {
    font-size: 11px;
  }

  .ar-bottom {
    font-size: 10px;
  }
}
