body {
  margin: 0;
  background: black;
  font-family: sans-serif;
  color: white;
}

.landing-page {
  min-height: 100vh;
  background: radial-gradient(circle at top, #1f2937 0%, #030712 55%, #000000 100%);
}

.landing-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}

.landing-header {
  max-width: 720px;
  margin-bottom: 32px;
}

.eyebrow {
  margin: 0 0 10px;
  color: #93c5fd;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
}

.landing-header h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 6vw, 52px);
}

.landing-copy {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.6;
}

.experience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.experience-card {
  min-width: 0;
}

.experience-link {
  display: block;
  color: inherit;
  text-decoration: none;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.experience-link:hover {
  transform: translateY(-4px);
  border-color: rgba(147, 197, 253, 0.5);
  box-shadow: 0 28px 64px rgba(37, 99, 235, 0.18);
}

.experience-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #111827;
}

.experience-card-body {
  padding: 18px 18px 20px;
}

.experience-card-body h2 {
  margin: 0 0 10px;
  font-size: 22px;
}

.experience-card-body p {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.5;
}

.experience-cta {
  color: #93c5fd;
  font-weight: 600;
}

.landing-error {
  padding: 18px;
  border-radius: 16px;
  background: rgba(127, 29, 29, 0.4);
}

.experience-page .back-link,
#startButton,
#minimap {
  position: fixed;
  z-index: 2;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  padding: 12px 20px;
  font-size: 18px;
  cursor: pointer;
}

.experience-page .back-link {
  top: calc(20px + env(safe-area-inset-top));
  right: calc(20px + env(safe-area-inset-right));
  text-decoration: none;
  border-radius: 999px;
}

#startButton {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

#minimap {
  top: calc(20px + env(safe-area-inset-top));
  left: calc(20px + env(safe-area-inset-left));
  display: none;
  padding: 8px 10px;
  font-size: 14px;
}

#minimap button {
  display: block;
  margin-bottom: 4px;
  min-height: 36px;
  padding: 6px 10px;
  font-size: 13px;
  border-radius: 6px;
}

#mobileNav {
  position: fixed;
  bottom: calc(16px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  display: none;
  align-items: center;
  gap: 8px;
  z-index: 2;
  pointer-events: auto;
}

#mobileNav button {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  font-size: 18px;
  cursor: pointer;
  flex-shrink: 0;
}

#mobileNav button:disabled {
  opacity: 0.3;
}

#mobileNav select {
  height: 40px;
  padding: 0 10px;
  border: none;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  font-size: 13px;
  max-width: 180px;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='white' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  padding-right: 26px;
}

@media (max-width: 600px) {
  #minimap {
    display: none !important;
  }
}

#onboardingOverlay,
#idleHint,
#hotspotTooltip {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  z-index: 5;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#onboardingOverlay {
  top: 24px;
}

#onboardingOverlay.visible,
#idleHint.visible,
#hotspotTooltip.visible {
  opacity: 1;
}

#onboardingOverlay .message-card,
#idleHint,
#hotspotTooltip {
  background: rgba(0, 0, 0, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

#onboardingOverlay .message-card {
  max-width: 320px;
  padding: 14px 16px;
  text-align: center;
  pointer-events: auto;
}

#onboardingOverlay strong {
  display: block;
  margin-bottom: 6px;
  font-size: 16px;
}

#onboardingOverlay p {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.4;
}

#dismissOnboarding {
  border: none;
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.14);
  color: white;
  cursor: pointer;
}

#idleHint,
#hotspotTooltip {
  padding: 10px 14px;
  font-size: 14px;
  text-align: center;
}

#idleHint {
  bottom: calc(72px + env(safe-area-inset-bottom));
}

#hotspotTooltip {
  top: 96px;
}

#fadeOverlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: black;
  z-index: 3;
  opacity: 0;
  transition: opacity 1s;
  pointer-events: none;
}

#loadingOverlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: black;
  color: white;
  font-size: 24px;
  z-index: 4;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(255, 255, 255, 0.2);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.a-dialog-text,
.a-dialog-allow-button,
.a-dialog-deny-button,
.a-dialog-ok-button {
  color: black;
}
