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

#wf-mount {
  position: fixed;
  inset: 0;
}

#wf-mount canvas {
  position: absolute;
  inset: 0;
  display: block;
}

.wf-ui-status {
  position: fixed;
  top: env(safe-area-inset-top, 12px);
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  pointer-events: none;
  z-index: 20;
}

.wf-debug-panel {
  position: fixed;
  bottom: env(safe-area-inset-bottom, 12px);
  left: 12px;
  max-width: min(280px, calc(100vw - 24px));
  /* Was unbounded, which let the panel's height grow past the top of the
     viewport as metrics were added (Session 4 added 6 new lines) — most
     visible on short/landscape iPhone viewports. Bounding it to the
     visible safe area and scrolling internally guarantees every metric
     stays reachable regardless of screen size or orientation. */
  max-height: calc(100vh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 24px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.65);
  color: #0f0;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  line-height: 1.5;
  /* Was `none`; scrolling requires the element to actually receive touch/
     wheel input. Safe to enable: this is a debug-only surface (only
     mounted when config.featureFlags.debug === true) positioned in the
     bottom-left corner, away from the centered Enter-AR button. */
  pointer-events: auto;
  z-index: 20;
  white-space: nowrap;
}

.wf-feature-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 5;
}

.wf-enter-ar-button {
  position: fixed;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  padding: 20px 48px;
  border: none;
  border-radius: 999px;
  background: #1c1c1c;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  z-index: 30;
}

.wf-enter-ar-button:disabled {
  opacity: 0.5;
}

.wf-unsupported-message {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  color: #fff;
  font-size: 16px;
  z-index: 40;
  background: #000;
}
