/* ==========================================================================
   CSS Variables & Global Reset
   ========================================================================== */
:root {
  --bg-color: #121212;
  --text-color: #ffffff;
  --primary-color: #3b82f6;
  --primary-hover: #2563eb;
  --card-bg: #1e1e1e;
  --overlay-bg: rgba(0, 0, 0, 0.7);
  --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body,
html {
  width: 100%;
  height: 100%;
  overflow: hidden;
  /* Prevent scrolling, handled per section */
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-color);

  /* Native App Feel Properties */
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  /* Prevent text selection */
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  /* Prevent long press context menu */
  overscroll-behavior-y: none;
  /* Prevent pull-to-refresh and bounce */
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  /* Handle notches and safe areas */
}

/* ==========================================================================
     Screen Management
     ========================================================================== */
.screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease-in-out;
  z-index: 1;
}

.screen.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 10;
}

.content-container {
  text-align: center;
  padding: 2rem;
  max-width: 600px;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  line-height: 1.5;
  color: #d1d5db;
}

/* Landing Screen Custom Design */
.landing-bg {
  background: radial-gradient(circle at center, #737373 0%, #a3a3a3 25%, #ffffff 70%);
}

.landing-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
}

.logo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1rem;
  position: relative;
  top: -2rem;
}

.compass-logo {
  width: 120px;
  height: 120px;
  margin-bottom: 10px;
}

.logo-text {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: #000000;
  letter-spacing: 2px;
  text-align: center;
  text-transform: uppercase;
  margin: 0;
  line-height: 1.1;
}

.subtitle-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  color: #000000;
  margin-bottom: 2rem;
  font-weight: 500;
}

.play-btn {
  background-color: #2563eb;
  color: white;
  padding: 0.8rem 3rem;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s, background-color 0.2s;
  font-family: 'Montserrat', sans-serif;
}

.play-btn:active {
  transform: scale(0.95);
  background-color: #1d4ed8;
}

/* ==========================================================================
     Buttons
     ========================================================================== */
button {
  cursor: pointer;
  border: none;
  outline: none;
  font-family: inherit;
}

.primary-btn {
  background-color: var(--primary-color);
  color: white;
  padding: 1rem 2.5rem;
  font-size: 1.2rem;
  font-weight: bold;
  border-radius: 50px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s, background-color 0.2s;
}

.primary-btn:active {
  transform: scale(0.95);
}

.primary-btn.small {
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
}

.icon-btn {
  background-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(5px);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
  margin: 5px;
}

.icon-btn:active {
  background-color: rgba(255, 255, 255, 0.4);
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  color: white;
  font-size: 2rem;
  width: 40px;
  height: 40px;
}

/* ==========================================================================
     Language Selection
     ========================================================================== */
.lang-cards {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.lang-card {
  background-color: var(--card-bg);
  border-radius: 15px;
  padding: 2rem;
  width: 160px;
  cursor: pointer;
  transition: transform 0.2s, background-color 0.2s;
  border: 2px solid transparent;
}

.lang-card:active {
  transform: scale(0.95);
  border-color: var(--primary-color);
}

.lang-card .flag {
  font-size: 4rem;
  margin-bottom: 1rem;
}

/* ==========================================================================
     Video Player
     ========================================================================== */
.video-container {
  position: relative;
  width: 100%;
  height: 100%;
  background-color: black;
}

#intro-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.custom-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  display: flex;
  align-items: center;
  gap: 15px;
  z-index: 11;
}

.control-btn {
  background: none;
  color: white;
  font-size: 1.5rem;
}

#btn-skip {
  font-size: 1rem;
  background-color: rgba(255, 255, 255, 0.2);
  padding: 8px 15px;
  border-radius: 20px;
}

.progress-bar-container {
  flex-grow: 1;
  height: 8px;
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  cursor: pointer;
  position: relative;
}

#progress-bar {
  height: 100%;
  background-color: var(--primary-color);
  width: 0%;
  border-radius: 4px;
  pointer-events: none;
}

/* ==========================================================================
     AR Overlay UI
     ========================================================================== */
.overlay-ui {
  position: absolute;
  z-index: 20;
  pointer-events: none;
  /* Let clicks pass through by default */
}

.overlay-ui>* {
  pointer-events: auto;
  /* Enable clicks on elements inside overlay */
}

.hidden {
  display: none !important;
}

/* Loading UI */
#ar-loading {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-color);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 30;
  /* Highest priority */
}

.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid rgba(255, 255, 255, 0.2);
  border-top: 5px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Camera Fallback */
#camera-fallback {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-color);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 31;
}

.fallback-content {
  text-align: center;
  padding: 2rem;
}

/* Scan Guide */
#scan-guide {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.scan-frame {
  width: 250px;
  height: 250px;
  border: 2px dashed rgba(255, 255, 255, 0.6);
  border-radius: 20px;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.5);
  /* Dimming surroundings */
  margin-bottom: 20px;
}

#scan-instruction {
  color: white;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

/* AR Navigation Controls */
#ar-nav {
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  background-color: rgba(0, 0, 0, 0.3);
  padding: 10px;
  border-radius: 30px;
  backdrop-filter: blur(5px);
}

/* Top Controls */
#top-controls {
  top: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 15px;
}

/* Description Panel */
#desc-panel {
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--card-bg);
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  padding: 2rem;
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.5);
  transform: translateY(100%);
  transition: transform 0.3s ease-out;
}

#desc-panel:not(.hidden) {
  transform: translateY(0);
}

.desc-content h3 {
  margin-bottom: 10px;
  color: var(--primary-color);
}

/* A-Frame Container */
#ar-container {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  /* Behind overlays */
}

/* ==========================================================================
     Permission Modal
     ========================================================================== */
#permission-section {
  background-color: var(--bg-color);
  /* Same as landing/app background */
}

.permission-modal {
  background-color: #ffffff;
  color: #000000;
  border-radius: 14px;
  width: 90%;
  max-width: 300px;
  text-align: center;
  padding-top: 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  animation: popIn 0.3s ease-out;
}

@keyframes popIn {
  0% {
    opacity: 0;
    transform: scale(0.9);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.perm-domain {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 10px;
  padding: 0 20px;
}

.perm-title {
  font-size: 15px;
  margin-bottom: 20px;
  line-height: 1.4;
  color: #333333;
  padding: 0 20px;
}

.perm-actions {
  display: flex;
  border-top: 1px solid #e5e5ea;
}

.perm-actions.single {
  justify-content: center;
}

.perm-btn {
  flex: 1;
  background: none;
  border: none;
  padding: 15px;
  font-size: 17px;
  cursor: pointer;
  color: #007aff;
  transition: background-color 0.2s;
}

.perm-btn:active {
  background-color: #f2f2f7;
}

.perm-btn.cancel {
  border-right: 1px solid #e5e5ea;
  font-weight: 400;
  border-bottom-left-radius: 14px;
}

.perm-btn.allow {
  font-weight: 600;
  border-bottom-right-radius: 14px;
}

.perm-actions.single .perm-btn.allow {
  border-bottom-left-radius: 14px;
}

/* ==========================================================================
     Video Player UI
     ========================================================================== */
.video-container {
  position: relative;
  width: 100%;
  height: 100vh;
  background-color: #000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#intro-video {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
}

.custom-controls {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 400px;
  background-color: rgba(20, 20, 20, 0.85);
  backdrop-filter: blur(10px);
  padding: 12px 20px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 15px;
  z-index: 10;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.control-btn {
  background: none;
  border: none;
  color: white;
  font-size: 1.1rem;
  cursor: pointer;
  font-family: inherit;
  font-weight: bold;
}

#btn-skip {
  font-size: 0.95rem;
  padding: 5px 10px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
}

.progress-bar-container {
  flex-grow: 1;
  height: 6px;
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 5px;
  cursor: pointer;
  position: relative;
}

#progress-bar {
  height: 100%;
  background-color: var(--primary-color);
  width: 0%;
  border-radius: 5px;
}

/* ==========================================================================
     Language Selection (Minimalist)
     ========================================================================== */
.bg-white {
  background-color: #ffffff !important;
}

.title-dark {
  color: #121212 !important;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  margin-bottom: 2rem;
}

.lang-list-horizontal {
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.lang-btn {
  background-color: transparent;
  color: var(--primary-color);
  padding: 1rem 1.5rem;
  font-size: 1.1rem;
  font-weight: bold;
  border-radius: 8px;
  /* Slightly squarish as in screenshot */
  border: 2px solid var(--primary-color);
  cursor: pointer;
  flex: 1;
  max-width: 140px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.2s, background-color 0.2s, opacity 0.2s;
  min-height: 54px;
}

.lang-btn.solid {
  background-color: #3b4fe4;
  /* Matches screenshot blue */
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 0.95rem;
}

.lang-btn:active {
  transform: scale(0.95);
  background-color: var(--primary-hover);
}

.lang-btn.selected {
  background-color: #ffffff;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.lang-check {
  position: absolute;
  right: 1.5rem;
  font-weight: bold;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.2s, transform 0.2s;
}

.lang-btn.selected .lang-check {
  opacity: 1;
  transform: scale(1);
}

/* ==========================================================================
     Experience Selection
     ========================================================================== */
.btn-close-top {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 2.5rem;
  color: #121212;
  cursor: pointer;
  line-height: 1;
  width: 44px;
  height: 44px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
}

.chat-bubble {
  background-color: #f2f2f7;
  border-radius: 12px;
  padding: 1.2rem;
  margin-bottom: 2.5rem;
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  border: 1px solid #e5e5ea;
}

.chat-text {
  font-size: 1rem;
  color: #333333;
  line-height: 1.5;
  font-weight: 500;
  text-align: left;
  margin: 0;
}

.exp-btn-group {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  align-items: center;
  width: 100%;
}

.exp-btn {
  background-color: transparent;
  color: var(--primary-color);
  padding: 1rem 1.5rem;
  font-size: 1.1rem;
  font-weight: bold;
  border-radius: 12px;
  border: 2px solid var(--primary-color);
  cursor: pointer;
  width: 100%;
  max-width: 280px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  transition: transform 0.2s, background-color 0.2s, color 0.2s;
  min-height: 60px;
}

.exp-btn.solid {
  background-color: #3b4fe4;
  /* Matches screenshot blue */
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 0.95rem;
  max-width: 300px;
}

.exp-btn.solid.secondary {
  max-width: 200px;
  /* Make the second button narrower as in screenshot */
}

.exp-btn:active {
  transform: scale(0.98);
  opacity: 0.9;
}

.mascot-container {
  margin-top: 3rem;
  width: 100%;
  display: flex;
  justify-content: flex-start;
  padding-left: 10%;
}

.mascot-img {
  width: 150px;
  height: auto;
  animation: idleFloat 3s ease-in-out infinite;
}

@keyframes idleFloat {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }

  100% {
    transform: translateY(0);
  }
}

/* ==========================================================================
     AR Orientation & Loading State
     ========================================================================== */
.ar-illustration {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.camera-frame {
  width: 150px;
  height: 150px;
  border: 3px solid #121212;
  border-radius: 20px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.camera-frame::before,
.camera-frame::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border: 3px solid #121212;
}

.camera-frame::before {
  top: 10px;
  left: 10px;
  border-right: none;
  border-bottom: none;
}

.camera-frame::after {
  bottom: 10px;
  right: 10px;
  border-left: none;
  border-top: none;
}

.marker-target {
  width: 60px;
  height: 60px;
  border: 2px dashed #121212;
  border-radius: 8px;
  animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
  0% {
    transform: scale(0.9);
    opacity: 0.7;
  }

  50% {
    transform: scale(1.1);
    opacity: 1;
  }

  100% {
    transform: scale(0.9);
    opacity: 0.7;
  }
}

.primary-solid {
  background-color: var(--primary-color);
  color: white;
}

.secondary-solid {
  background-color: #f2f2f7;
  color: #121212;
  border-color: #f2f2f7;
  margin-top: 1rem;
}

.spinner-small {
  width: 30px;
  height: 30px;
  border: 3px solid rgba(0, 0, 0, 0.1);
  border-top: 3px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 15px auto;
}

.status-text {
  font-size: 1rem;
  color: #121212;
  font-weight: 500;
}

.status-text.error {
  color: #ff3b30;
  margin-bottom: 1rem;
}

/* ==========================================================================
     AR View & Scanning UI
     ========================================================================== */
#ar-container {
  width: 100vw;
  height: 100vh;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  overflow: hidden;
}

.alert-box {
  background-color: white;
  padding: 1.5rem;
  border-radius: 12px;
  width: 90%;
  max-width: 320px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  color: #121212;
}

#maint-title {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: #d32f2f;
}

#maint-desc {
  font-size: 0.95rem;
  line-height: 1.4;
  color: #555;
}

.scanning-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 50;
  pointer-events: none;
}

.status-text.white {
  color: #ffffff;
  margin-top: 2rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
  text-align: center;
  max-width: 80%;
}

.chat-bubble {
  background-color: #f2f2f7;
  border-radius: 12px;
  padding: 1.2rem;
  margin-bottom: 2.5rem;
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  border: 1px solid #e5e5ea;
}

.chat-text {
  font-size: 1rem;
  color: #333333;
  line-height: 1.5;
  font-weight: 500;
  text-align: left;
  margin: 0;
}

.exp-btn-group {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  align-items: center;
  width: 100%;
}

.exp-btn {
  background-color: transparent;
  color: var(--primary-color);
  padding: 1rem 1.5rem;
  font-size: 1.1rem;
  font-weight: bold;
  border-radius: 12px;
  border: 2px solid var(--primary-color);
  cursor: pointer;
  width: 100%;
  max-width: 280px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  transition: transform 0.2s, background-color 0.2s, color 0.2s;
  min-height: 60px;
}

.exp-btn.solid {
  background-color: #3b4fe4;
  /* Matches screenshot blue */
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 0.95rem;
  max-width: 300px;
}

.exp-btn.solid.secondary {
  max-width: 200px;
  /* Make the second button narrower as in screenshot */
}

.exp-btn:active {
  transform: scale(0.98);
  opacity: 0.9;
}

.mascot-container {
  margin-top: 3rem;
  width: 100%;
  display: flex;
  justify-content: flex-start;
  padding-left: 10%;
}

.mascot-img {
  width: 150px;
  height: auto;
  animation: idleFloat 3s ease-in-out infinite;
}

@keyframes idleFloat {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }

  100% {
    transform: translateY(0);
  }
}

/* ==========================================================================
     AR Orientation & Loading State
     ========================================================================== */
.ar-illustration {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.camera-frame {
  width: 150px;
  height: 150px;
  border: 3px solid #121212;
  border-radius: 20px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.camera-frame::before,
.camera-frame::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border: 3px solid #121212;
}

.camera-frame::before {
  top: 10px;
  left: 10px;
  border-right: none;
  border-bottom: none;
}

.camera-frame::after {
  bottom: 10px;
  right: 10px;
  border-left: none;
  border-top: none;
}

.marker-target {
  width: 60px;
  height: 60px;
  border: 2px dashed #121212;
  border-radius: 8px;
  animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
  0% {
    transform: scale(0.9);
    opacity: 0.7;
  }

  50% {
    transform: scale(1.1);
    opacity: 1;
  }

  100% {
    transform: scale(0.9);
    opacity: 0.7;
  }
}

.primary-solid {
  background-color: var(--primary-color);
  color: white;
}

.secondary-solid {
  background-color: #f2f2f7;
  color: #121212;
  border-color: #f2f2f7;
  margin-top: 1rem;
}

.spinner-small {
  width: 30px;
  height: 30px;
  border: 3px solid rgba(0, 0, 0, 0.1);
  border-top: 3px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 15px auto;
}

.status-text {
  font-size: 1rem;
  color: #121212;
  font-weight: 500;
}

.status-text.error {
  color: #ff3b30;
  margin-bottom: 1rem;
}

/* ==========================================================================
     AR View & Scanning UI
     ========================================================================== */
#ar-container {
  width: 100vw;
  height: 100vh;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  overflow: hidden;
}

.alert-box {
  background-color: white;
  padding: 1.5rem;
  border-radius: 12px;
  width: 90%;
  max-width: 320px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  color: #121212;
}

#maint-title {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: #d32f2f;
}

#maint-desc {
  font-size: 0.95rem;
  line-height: 1.4;
  color: #555;
}

.scanning-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.4);
  /* slight dim */
  z-index: 50;
  pointer-events: none;
  /* let clicks pass through to AR */
}

.status-text.white {
  color: #ffffff;
  margin-top: 2rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
  text-align: center;
  max-width: 80%;
}

.feedback-toast {
  position: absolute;
  top: 70px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: opacity 0.3s, top 0.3s;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
}

#feedback-text {
  margin: 0;
}


/* ==========================================================================
   Bottom Menu Bar
   ========================================================================== */
#bottom-menu-bar {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: fit-content;
  max-width: 95%;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  border-radius: 30px;
  padding: 8px;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  pointer-events: auto;
}

#bottom-menu-bar.hidden {
  display: none !important;
}

.bottom-menu-content {
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  gap: 5px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
}

.bottom-menu-content::-webkit-scrollbar {
  display: none;
}

.bottom-btn {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  padding: 8px 14px;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.bottom-btn:active {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(0.95);
}

.zoom-controls {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  overflow: hidden;
  flex-shrink: 0;
}

.zoom-btn {
  background: none;
  color: white;
  border: none;
  padding: 8px 12px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
}

.zoom-btn:active {
  background: rgba(255, 255, 255, 0.3);
}

.zoom-label {
  color: white;
  font-size: 10px;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  padding: 0 4px;
}

/* ==========================================================================
   Experience Selection - Ancient Theme
   ========================================================================== */
.theme-ancient {
  background: #ffffff;
  color: #121212;
}

.ancient-layout {
  display: flex;
  flex-direction: column;
  /* Mobile first */
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 800px;
  height: 100vh;
  padding: 20px;
  padding-top: 60px;
  /* space for close button */
  gap: 20px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.ancient-mascot-col {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 0;
}

.ancient-mascot-img {
  width: 350px;
  max-width: none;
  height: auto;
  animation: idleFloat 3s ease-in-out infinite;
  filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.15));
  margin: -40px 0;
}

.ancient-content-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 25px;
  flex: 0;
}

.ancient-bubble {
  background-color: #f7f3ec;
  color: #333333;
  border: 1px solid #e0d8c8;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  position: relative;
  text-align: center;
}

/* Arrow pointing up to mascot (Mobile first) */
.ancient-bubble::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 0 12px 12px 12px;
  border-style: solid;
  border-color: transparent transparent #f7f3ec transparent;
}

.chat-text {
  font-size: 1.05rem;
  line-height: 1.5;
  margin: 0;
}

.ancient-btn {
  background: linear-gradient(145deg, #b8860b, #daa520);
  border: 1px solid #ffd700;
  color: #1a1a1c;
  border-radius: 12px;
  padding: 14px 20px;
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(218, 165, 32, 0.3), inset 0 2px 4px rgba(255, 255, 255, 0.4);
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.4);
  width: 100%;
  max-width: 300px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.ancient-btn:active {
  transform: translateY(2px);
  box-shadow: 0 2px 8px rgba(218, 165, 32, 0.2), inset 0 2px 6px rgba(0, 0, 0, 0.3);
}

.ancient-btn.secondary {
  background: linear-gradient(145deg, #48484a, #3a3a3c);
  border: 1px solid #636366;
  color: #e5e5ea;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), inset 0 2px 4px rgba(255, 255, 255, 0.1);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.4);
}

/* Ornaments styling */
.ornament {
  position: absolute;
  width: 180px;
  height: auto;
  opacity: 0.7;
  z-index: 0;
  pointer-events: none;
  mix-blend-mode: multiply;
  /* Blends white background into the page */
  filter: saturate(0.8);
  /* Soften the harsh crystal colors */
}

.orn-top-left {
  top: -20px;
  left: -20px;
  transform: rotate(-15deg);
}

.orn-bottom-right {
  bottom: -20px;
  right: -20px;
  transform: rotate(15deg);
}

/* Desktop layout */
@media (min-width: 601px) {
  .ancient-layout {
    flex-direction: row;
    padding-top: 20px;
  }

  .ancient-mascot-col {
    flex: 1;
    justify-content: flex-end;
  }

  .ancient-content-col {
    flex: 1.5;
    align-items: flex-start;
  }

  .ancient-bubble {
    text-align: left;
  }

  .ancient-bubble::before {
    top: 50%;
    left: -12px;
    transform: translateY(-50%) translateX(0);
    border-width: 12px 12px 12px 0;
    border-color: transparent #f7f3ec transparent transparent;
  }

  .ornament {
    width: 200px;
  }
}