:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #031936;
  color: #fff;
}

* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; }
body { background: radial-gradient(circle at 50% 15%, #0d3c73 0, #031936 56%, #020b18 100%); }
button { font: inherit; }
[hidden] { display: none !important; }

.intro {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: max(24px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom));
  background: radial-gradient(circle at 50% 15%, #0d3c73 0, #031936 56%, #020b18 100%);
}

.card {
  width: min(100%, 430px);
  padding: 28px 24px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 24px;
  background: rgba(2,14,31,.9);
  box-shadow: 0 26px 80px rgba(0,0,0,.45);
  text-align: center;
}

.eyebrow { margin: 0 0 14px; color: #ff6674; font-size: .73rem; font-weight: 800; letter-spacing: .14em; }
.logo { width: 104px; height: 104px; object-fit: contain; border-radius: 18px; background: #fff; }
h1 { margin: 18px 0 10px; font-size: clamp(1.75rem, 8vw, 2.45rem); line-height: 1.05; }
.card p:not(.eyebrow, .note) { margin: 0 auto 22px; color: #c9d7e9; line-height: 1.55; }
#start { width: 100%; border: 0; border-radius: 999px; padding: 15px 20px; background: #e21b2d; color: #fff; font-weight: 800; box-shadow: 0 10px 30px rgba(226,27,45,.35); }
.note { margin: 15px 0 0; color: #8fa7c3; font-size: .78rem; }

.hud { position: fixed; inset: 0; z-index: 20; pointer-events: none; }
.topbar { position: absolute; top: max(14px, env(safe-area-inset-top)); left: 14px; right: 14px; display: flex; justify-content: space-between; gap: 10px; }
.pill, .small { border: 1px solid rgba(255,255,255,.22); border-radius: 999px; background: rgba(3,25,54,.82); color: #fff; padding: 9px 13px; font-size: .78rem; font-weight: 800; backdrop-filter: blur(10px); }
.pill.found { background: rgba(14,106,65,.9); }
.small { pointer-events: auto; }
.guide { position: absolute; left: 10vw; right: 10vw; top: 19vh; height: 54vh; border: 2px solid rgba(255,255,255,.72); border-radius: 24px; box-shadow: 0 0 0 9999px rgba(1,9,20,.2), inset 0 0 30px rgba(255,255,255,.09); }
.guide.landscape { top: 27vh; height: 32vh; }
.metrics { position: absolute; left: 14px; bottom: max(18px, env(safe-area-inset-bottom)); width: min(270px, calc(100vw - 28px)); padding: 12px 14px; border: 1px solid rgba(255,255,255,.16); border-radius: 16px; background: rgba(3,25,54,.82); backdrop-filter: blur(10px); }
.metrics div { display: flex; justify-content: space-between; gap: 16px; padding: 4px 0; font-size: .75rem; }
.metrics span { color: #aebfd2; }
.cta { position: absolute; left: 50%; bottom: 19vh; width: min(88vw, 420px); transform: translateX(-50%); padding: 18px; border-radius: 18px; background: linear-gradient(135deg, #e21b2d, #9d0716); text-align: center; box-shadow: 0 16px 44px rgba(0,0,0,.42); }
.cta strong, .cta span { display: block; }
.cta strong { font-size: 1.2rem; }
.cta span { margin-top: 4px; font-size: .78rem; color: #ffe5e8; }

a-scene {
  position: fixed !important;
  inset: 0;
  z-index: 1;
  background: transparent !important;
}
.a-canvas,
canvas[data-aframe-canvas] { background: transparent !important; }
.a-enter-vr, .arjs-loader { display: none; }
#arjs-video,
.arjs-video {
  display: block !important;
  position: fixed !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  z-index: 0 !important;
}
