:root {
  --ink: #05202f;
  --teal: #0a8fb0;
  --gold: #e9b824;
  --text: #e8f6fa;
  --mute: #9fd0df;
}
html, body { margin: 0; height: 100%; background: #021a2e; color: var(--text); font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; overflow: hidden; }

#loader {
  position: fixed; inset: 0; z-index: 20; display: grid; place-content: center; gap: 12px; text-align: center;
  background: radial-gradient(circle at 50% 30%, #0d6390, #021a2e 70%);
  transition: opacity .6s ease;
}
#loader img { width: 180px; margin: 0 auto; background: #fff; border-radius: 24px; padding: 8px; }
#loader p { margin: 0; color: var(--mute); letter-spacing: .02em; }
#loader.hide { opacity: 0; pointer-events: none; }

#hud-desktop {
  position: fixed; left: 16px; right: 16px; top: 14px; z-index: 10; pointer-events: none;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap;
}
.brand { font-weight: 700; font-size: 15px; background: rgba(2, 21, 34, .65); padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(31, 192, 226, .45); }
.brand span { font-weight: 500; color: var(--gold); margin-left: 6px; font-size: 12px; }
.hint { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 12.5px; }
.hint span { background: rgba(2, 21, 34, .6); padding: 5px 10px; border-radius: 8px; color: var(--mute); }
.hint b { color: var(--gold); }
.hint .v-dive { display: none; }
body[data-view="dive"] .hint .v-dive { display: inline; }
body[data-view="dive"] .hint .v-map { display: none; }

@media (max-width: 600px) {
  .hint { align-items: flex-start; }
  .hint .vr { display: none; }
}
/* sembunyikan HUD HTML saat masuk VR */
body.in-vr #hud-desktop { display: none; }

/* tombol Virtual Tour 360 (kanan bawah) — masuk mode VR */
#vr-btn {
  position: fixed; right: 18px; bottom: 16px; z-index: 15;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 6px 8px; border: 0; background: none; cursor: pointer;
  font: 700 15px/1.15 Montserrat, Arial, sans-serif; color: #ffffff; text-align: center;
  text-shadow: 0 2px 8px rgba(0,0,0,.6);
  transition: transform .15s ease;
}
#vr-btn img { width: 64px; height: 64px; filter: drop-shadow(0 3px 10px rgba(0,0,0,.45)); border-radius: 50%; }
#vr-btn:hover { transform: translateY(-2px) scale(1.06); }
#vr-btn:active { transform: scale(.96); }
#vr-btn:focus-visible { outline: 2px solid #ffd24a; outline-offset: 4px; border-radius: 12px; }
#vr-btn.xr-ready img { animation: vrpulse 2.4s ease-in-out infinite; }
@keyframes vrpulse { 0%,100% { box-shadow: 0 0 0 0 rgba(63,191,107,.55); } 50% { box-shadow: 0 0 0 10px rgba(63,191,107,0); } }
body.in-vr #vr-btn { display: none; }
@media (max-width: 600px) { #vr-btn img { width: 52px; height: 52px; } #vr-btn { font-size: 13px; } }
