* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; }
body { background: #000; color: #f4f4f4; font-family: Helvetica, Arial, sans-serif; }
[hidden] { display: none !important; }
main, #camera-view, #panorama-view, #filter-view { position: absolute; inset: 0; overflow: hidden; }
#camera-view { isolation: isolate; }
#camera-view video { object-fit: cover; }
#camera-view a-scene { position: absolute; inset: 0; width: 100%; height: 100%; }
#panorama-view { z-index: 2; }
#panorama-view.is-preloading { visibility: hidden; pointer-events: none; }
#filter-view { z-index: 2; }
#filter-view iframe { display: block; width: 100%; height: 100%; border: 0; }
#filter-navigation { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 12px; }
.filter-arrow { min-width: 48px; font-size: 22px; padding: 6px 12px; }
#filter-name { padding: 10px 12px; border-radius: 20px; background: rgba(0,0,0,.7); font-size: 14px; }
.control {
  display: inline-block; border: 1px solid rgba(255,255,255,.45); border-radius: 24px;
  padding: 12px 18px; background: rgba(0,0,0,.7); color: #fff;
  font: inherit; font-size: 14px; text-decoration: none; cursor: pointer; min-height: 44px;
}
.control:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
#close { position: absolute; z-index: 5; bottom: max(16px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; padding: 0; font-size: 28px; line-height: 1; }
#hint {
  position: absolute; z-index: 4; top: max(24px, env(safe-area-inset-top));
  left: 50%; transform: translateX(-50%); margin: 0; width: max-content; max-width: calc(100% - 24px);
  padding: 10px 6px; border-radius: 8px; background: rgba(0,0,0,.6);
  text-align: center; white-space: nowrap; font-size: clamp(8px, 2.6vw, 16px); line-height: 1.5; letter-spacing: 0; pointer-events: none;
}
#feedback, #panorama-controls {
  position: absolute; z-index: 4; bottom: max(84px, calc(env(safe-area-inset-bottom) + 68px));
  left: 50%; transform: translateX(-50%); width: calc(100% - 40px); max-width: 480px; text-align: center;
}
#status, #look-hint { display: inline-block; margin: 0 0 14px; padding: 10px 16px; border-radius: 8px; background: rgba(0,0,0,.65); font-size: 14px; line-height: 1.5; }
.actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
noscript { position: absolute; z-index: 6; inset: 40% 20px auto; text-align: center; background: #000; padding: 20px; }
