/* styles.css - Imagine Nations Kids 3D Game Styling */

:root {
  --primary: #4f46e5;
  --primary-light: #818cf8;
  --accent: #f59e0b;
  --emerald: #10b981;
  --sky: #0ea5e9;
  --rose: #ef4444;
  --bg-dark: #0f172a;
  --surface: #ffffff;
  --text: #0f172a;
  --text-muted: #64748b;
  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.15), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
  -webkit-user-select: none;
}

body, html {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: #000;
  color: var(--text);
}

#canvas-container {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

/* =========================================================
   HUD TOPBAR
   ========================================================= */
.hud-topbar {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

.hud-left, .hud-right {
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
}

.hud-brand {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(10px);
  color: #fff;
  padding: 8px 16px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.hud-brand-icon {
  font-size: 24px;
}

.hud-brand-title {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.hud-brand-sub {
  font-size: 11px;
  color: #38bdf8;
  font-weight: 600;
}

.hud-coin-pill {
  background: rgba(245, 158, 11, 0.95);
  color: #fff;
  padding: 8px 14px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  font-size: 15px;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
  border: 2px solid #fef08a;
}

.hud-progress-pill {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(10px);
  color: #fff;
  padding: 8px 14px;
  border-radius: 999px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 140px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 700;
}

.progress-bar-mini {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #38bdf8);
  border-radius: 999px;
  transition: width 0.3s ease;
}

.hud-mode-pill {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
  margin-left: 6px;
  vertical-align: middle;
}

.hud-btn {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(10px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
  box-shadow: var(--shadow-lg);
}

.hud-btn:hover {
  background: rgba(30, 41, 59, 0.95);
  transform: translateY(-1px);
}

.hud-btn:active {
  transform: translateY(1px);
}

.hud-btn-round {
  width: 36px;
  height: 36px;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 16px;
}

/* =========================================================
   PROXIMITY INTERACTION PROMPT
   ========================================================= */
.hud-prompt-wrap {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hud-prompt-wrap.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.hud-prompt-pill {
  background: linear-gradient(135deg, #1e1b4b, #312e81);
  color: #fff;
  padding: 12px 24px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 800;
  box-shadow: 0 10px 30px rgba(49, 46, 129, 0.6);
  border: 2px solid #818cf8;
  animation: promptBounce 1.5s infinite ease-in-out;
}

.key-badge {
  background: #f59e0b;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

@keyframes promptBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* =========================================================
   TOUCH / IPAD JOYSTICK & ACTION BUTTON
   ========================================================= */
#joystick-zone {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50vw;
  height: 50vh;
  z-index: 150;
  touch-action: none;
  pointer-events: auto;
}

#joystick-base {
  position: absolute;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(4px);
  transform: translate(-50%, -50%);
  pointer-events: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

#joystick-thumb {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0ea5e9, #4f46e5);
  border: 2px solid #fff;
  transform: translate(-50%, -50%);
  box-shadow: 0 2px 10px rgba(14, 165, 233, 0.6);
}

.touch-action-wrap {
  position: absolute;
  bottom: 24px;
  right: 24px;
  z-index: 150;
  pointer-events: auto;
}

.touch-btn-action {
  appearance: none;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: #fff;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
  touch-action: manipulation;
  border: 3px solid rgba(255, 255, 255, 0.85);
}

.touch-btn-action:active, .touch-btn-action.active {
  transform: scale(0.92);
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.7);
}

.touch-btn-action.pulse {
  animation: actionPulse 1.2s infinite alternate ease-in-out;
}

@keyframes actionPulse {
  0% { transform: scale(1); box-shadow: 0 0 10px rgba(245, 158, 11, 0.5); }
  100% { transform: scale(1.12); box-shadow: 0 0 25px rgba(245, 158, 11, 0.9); }
}

.touch-btn-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.touch-key {
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
}

.touch-label {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.05em;
  opacity: 0.9;
}

/* =========================================================
   MODALS & MINI-GAME CARDS
   ========================================================= */
.game-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.game-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.game-modal-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  max-width: 640px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.game-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.game-modal-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.game-modal-title span {
  font-size: 32px;
}

.game-modal-title h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 2px;
}

.game-modal-title p {
  font-size: 13px;
  color: var(--text-muted);
}

.modal-close-btn {
  background: var(--bg-dark);
  color: #fff;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.btn {
  appearance: none;
  border: none;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.15s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #059669, #047857);
}

.btn-accent {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #fff;
}

.btn[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
}

/* =========================================================
   CAR WASH MINI-GAME STYLES
   ========================================================= */
.chore-progress-bar-wrap {
  margin-bottom: 14px;
}

.chore-progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.chore-progress-track {
  width: 100%;
  height: 10px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}

.chore-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #10b981);
  border-radius: 999px;
  transition: width 0.2s ease;
}

.car-wash-canvas-wrap {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid #cbd5e1;
  background: #cbd5e1;
}

#car-wash-canvas {
  width: 100%;
  height: auto;
  display: block;
  cursor: crosshair;
}

.car-wash-tools {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tool-btn {
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid #cbd5e1;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.15s ease;
}

.tool-btn.active {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.game-modal-footer {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.chore-hint {
  font-size: 13px;
  color: var(--text-muted);
}

/* =========================================================
   CUPCAKE STALL STYLES
   ========================================================= */
.cupcake-customer-box {
  background: #fdf2f8;
  border: 1px solid #fbcfe8;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.customer-avatar {
  font-size: 38px;
}

.customer-details {
  font-size: 14px;
  color: #831843;
}

.cupcake-workspace {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: center;
}

.cupcake-preview-wrap {
  background: #f8fafc;
  border: 2px dashed #cbd5e1;
  border-radius: var(--radius-md);
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cupcake-display-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cupcake-cherry, .cupcake-stars, .cupcake-sprinkles {
  font-size: 24px;
  margin-bottom: -10px;
  z-index: 3;
}

.cupcake-frosting {
  width: 90px;
  height: 48px;
  border-radius: 40px 40px 10px 10px;
  z-index: 2;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: background 0.2s ease;
}

.cupcake-sponge {
  width: 80px;
  height: 28px;
  background: #fde047;
  border-radius: 4px;
  margin-top: -6px;
  z-index: 1;
}

.cupcake-wrapper {
  width: 72px;
  height: 46px;
  background: repeating-linear-gradient(45deg, #cbd5e1, #cbd5e1 6px, #e2e8f0 6px, #e2e8f0 12px);
  clip-path: polygon(10% 0%, 90% 0%, 75% 100%, 25% 100%);
  margin-top: -8px;
}

.cupcake-section-title {
  font-size: 12.5px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.cupcake-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.cupcake-btn {
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.cupcake-btn.active {
  background: #fdf2f8;
  border-color: #ec4899;
  color: #be185d;
}

/* =========================================================
   LAWN MOWER STYLES
   ========================================================= */
.mower-workspace {
  background: #f0fdf4;
  border: 2px solid #86efac;
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
}

.lawn-strips {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.lawn-strip {
  background: #dcfce7;
  border: 2px solid #4ade80;
  border-radius: 10px;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 700;
  transition: all 0.2s ease;
}

.lawn-strip.tall {
  background: #86efac;
  border-color: #16a34a;
  color: #14532d;
}

.lawn-strip.mowed {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #047857;
  opacity: 0.85;
}

/* =========================================================
   WELL BUILDER STYLES
   ========================================================= */
.well-step-indicator {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.well-step-item {
  flex: 1;
  text-align: center;
  padding: 8px;
  border-radius: 8px;
  background: #f1f5f9;
  font-size: 12.5px;
  font-weight: 700;
  color: #64748b;
}

.well-step-item.active {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #7dd3fc;
}

.well-step-item.done {
  background: #dcfce7;
  color: #15803d;
}

.drill-depth-gauge {
  width: 100%;
  height: 16px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 12px;
}

.drill-depth-fill {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #0ea5e9);
  border-radius: 999px;
  transition: width 0.2s ease;
}

.filter-layers-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 320px;
  margin: 0 auto;
}

.filter-layer {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
}

/* =========================================================
   CHURCH GIVING STATS
   ========================================================= */
.church-giving-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.church-stat-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.church-stat-box.highlight {
  background: #eef2ff;
  border-color: #c7d2fe;
}

.stat-num {
  font-size: 22px;
  font-weight: 900;
  color: var(--primary);
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
}

.target-reached-banner {
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  color: #065f46;
  padding: 14px;
  border-radius: var(--radius-md);
  text-align: center;
  font-size: 14px;
}

/* =========================================================
   PASSPORT STAMPS
   ========================================================= */
.passport-stamps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.passport-stamp {
  border: 2px dashed #cbd5e1;
  border-radius: var(--radius-md);
  padding: 14px 10px;
  text-align: center;
}

.passport-stamp.unlocked {
  border-color: #10b981;
  background: #f0fdf4;
}

.passport-stamp.locked {
  opacity: 0.5;
  filter: grayscale(1);
}

.stamp-icon { font-size: 32px; margin-bottom: 4px; }
.stamp-name { font-size: 13px; font-weight: 800; }
.stamp-country { font-size: 11px; color: var(--text-muted); }
.stamp-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 999px;
  background: #dcfce7;
  color: #15803d;
  display: inline-block;
  margin-top: 4px;
}

.partner-showcase-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 10px;
}

.partner-cards-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.partner-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 14px;
}

.partner-avatar { font-size: 30px; }
.partner-info h4 { font-size: 14px; margin-bottom: 2px; }
.partner-role { font-size: 11.5px; font-weight: 700; color: var(--primary); display: block; margin-bottom: 3px; }
.partner-info p { font-size: 12px; color: var(--text-muted); margin: 0; line-height: 1.4; }

/* Responsive adjustments for iPad & Mobile */
@media (max-width: 768px) {
  .hud-brand-sub { display: none; }
  .hud-right { gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
  .hud-progress-pill { min-width: 100px; }
  .hud-btn { padding: 6px 10px; font-size: 12px; }
  .game-modal-card { padding: 18px; }
  .cupcake-workspace { grid-template-columns: 1fr; }
}

/* =========================================================
   GLOBE DESTINATION SELECTOR OVERLAY
   ========================================================= */
.globe-destination-overlay {
  position: fixed;
  top: 72px;
  left: 50%;
  transform: translateX(-50%);
  width: 92%;
  max-width: 860px;
  z-index: 150;
  display: flex;
  flex-direction: column;
  gap: 14px;
  pointer-events: none;
}

.globe-dest-header {
  pointer-events: auto;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.globe-dest-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.globe-dest-title span {
  font-size: 32px;
}

.globe-dest-title h2 {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 2px;
}

.globe-dest-title p {
  font-size: 12.5px;
  color: #94a3b8;
  margin: 0;
}

.globe-filter-bar {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  pointer-events: auto;
  margin: 2px 0;
  flex-wrap: wrap;
}

.globe-filter-btn {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #cbd5e1;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.globe-filter-btn:hover {
  background: rgba(30, 41, 59, 0.9);
  color: #fff;
  border-color: #38bdf8;
  transform: translateY(-1px);
}

.globe-filter-btn.active {
  background: #0284c7;
  color: #ffffff;
  border-color: #38bdf8;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.4);
}

.globe-dest-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  pointer-events: auto;
  max-height: calc(100vh - 200px);
  overflow-y: auto;
  padding-right: 4px;
  padding-bottom: 20px;
}

.globe-dest-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 2px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 14px 16px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
}

.globe-dest-card.campus-card {
  border-color: #c7d2fe;
  background: rgba(248, 250, 252, 0.96);
}

.globe-dest-card.campus-card:hover {
  border-color: #6366f1;
}

.globe-dest-card.current-location {
  border-color: #10b981;
  background: #f0fdf4;
}

.globe-dest-card:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: var(--primary);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
}

.globe-dest-card.completed {
  border-color: #10b981;
}

.dest-badge {
  display: inline-block;
  align-self: flex-start;
  background: #0284c7;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  margin-bottom: 6px;
}

.globe-dest-card h3 {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 2px;
}

.dest-partner {
  font-size: 11.5px;
  color: #64748b;
  margin-bottom: 8px;
  line-height: 1.3;
}

.dest-stat {
  font-size: 11.5px;
  font-weight: 700;
  color: #0369a1;
  background: #f0f9ff;
  padding: 4px 8px;
  border-radius: 6px;
  margin-bottom: 12px;
}

.btn-fly {
  width: 100%;
  margin-top: auto;
  font-size: 13px;
  padding: 8px 12px;
}

@media (max-width: 768px) {
  .globe-destination-overlay {
    top: 60px;
    width: 95%;
  }
  .globe-filter-btn {
    font-size: 11px;
    padding: 4px 10px;
  }
  .globe-dest-cards {
    grid-template-columns: 1fr;
    gap: 8px;
    max-height: calc(100vh - 160px);
  }
  .globe-dest-header {
    padding: 10px 14px;
  }
  .globe-dest-title h2 {
    font-size: 15px;
  }
  .globe-dest-title p {
    display: none;
  }
}

/* Avatar Customizer Swatches */
.color-swatch {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.color-swatch:hover {
  transform: scale(1.18);
}

.color-swatch.active {
  transform: scale(1.22);
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

/* =========================================================
   SUNDAY FOYER KIOSK & VOICE NARRATION STYLES
   ========================================================= */
@keyframes kioskPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.02); box-shadow: 0 25px 60px rgba(245, 158, 11, 0.4); }
  100% { transform: scale(1); }
}

#kiosk-countdown-overlay .game-modal-card {
  animation: kioskPulse 2s infinite ease-in-out;
}

/* =========================================================
   TESTING BUTTONS & EXPLAINER BANNER
   ========================================================= */
.hud-btn-test-tour {
  background: linear-gradient(135deg, #4f46e5, #0ea5e9) !important;
  border: 1.5px solid #7dd3fc !important;
  font-weight: 800 !important;
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.45) !important;
}

.hud-btn-test-tour:hover {
  background: linear-gradient(135deg, #4338ca, #0284c7) !important;
  transform: translateY(-2px);
}

.hud-btn-test-feedback {
  background: linear-gradient(135deg, #ea580c, #f59e0b) !important;
  border: 1.5px solid #fde047 !important;
  font-weight: 800 !important;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.45) !important;
}

.hud-btn-test-feedback:hover {
  background: linear-gradient(135deg, #c2410c, #d97706) !important;
  transform: translateY(-2px);
}

.test-welcome-banner {
  position: absolute;
  top: 76px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 120;
  max-width: 92%;
  width: 580px;
  pointer-events: auto;
}

.test-banner-content {
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(12px);
  border: 2px solid #38bdf8;
  border-radius: 999px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  color: #fff;
}

.test-banner-icon {
  font-size: 24px;
}

.test-banner-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.test-banner-text strong {
  font-size: 13px;
  color: #38bdf8;
}

.test-banner-text span {
  font-size: 11.5px;
  color: #cbd5e1;
}

@media (max-width: 768px) {
  .test-welcome-banner {
    top: auto;
    bottom: 96px;
    width: 94%;
  }
  .test-banner-content {
    border-radius: 16px;
    padding: 10px 14px;
    flex-wrap: wrap;
    gap: 8px;
  }
  .test-banner-text span {
    display: none;
  }
}

/* =========================================================================
   MULTIPLAYER & CHILD-SAFE CHAT STYLES
   ========================================================================= */
.hud-multiplayer-pill {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  border: 1.5px solid #10b981;
  color: #34d399;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  user-select: none;
}

.chat-toast-container {
  position: fixed;
  bottom: 80px;
  left: 20px;
  z-index: 150;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
  max-width: 380px;
}

.chat-toast-item {
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(10px);
  border-left: 4px solid #0284c7;
  color: #f8fafc;
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  animation: chatSlideIn 0.25s ease-out forwards;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.chat-toast-item.fade-out {
  opacity: 0;
  transform: translateY(-8px);
}

@keyframes chatSlideIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn-quick-chat-option:hover {
  background: #f0fdf4 !important;
  border-color: #22c55e !important;
  transform: translateX(4px);
}

@media (max-width: 768px) {
  .chat-toast-container {
    bottom: 120px;
    left: 12px;
    max-width: 85%;
  }
  .hud-multiplayer-pill {
    padding: 4px 8px;
    font-size: 11px;
  }
}



  flex-direction: column;
  gap: 14px;
}

.video-info-banner {
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.banner-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.banner-title-row h4 {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
}

.banner-partner {
  font-size: 12.5px;
  font-weight: 700;
  color: #334155;
}

.banner-desc {
  font-size: 13.5px;
  line-height: 1.5;
  color: #334155;
}

.video-mode-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.mode-label {
  font-size: 12px;
  font-weight: 700;
  color: #475569;
}

.mode-toggle-btn {
  appearance: none;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.mode-toggle-btn.active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

/* Embed View */
.embed-responsive-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 ratio */
  background: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.embed-responsive-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.embed-fallback-notice {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(4px);
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
  font-size: 12.5px;
  z-index: 10;
}

/* Animated Story Reel */
.story-reel-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #0f172a;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.story-canvas-wrap {
  position: relative;
  width: 100%;
  background: #020617;
  display: flex;
  align-items: center;
  justify-content: center;
}

#story-reel-canvas {
  width: 100%;
  max-height: 420px;
  height: auto;
  display: block;
}

.story-canvas-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.story-play-overlay-btn {
  appearance: none;
  border: none;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(2, 132, 199, 0.9);
  color: #fff;
  font-size: 32px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: transform 0.15s ease;
}

.story-play-overlay-btn:hover {
  transform: scale(1.1);
  background: #0284c7;
}

.story-subtitle-box {
  position: absolute;
  bottom: 12px;
  left: 20px;
  right: 20px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  color: #f8fafc;
  font-size: 13.5px;
  font-weight: 600;
  text-align: center;
  line-height: 1.4;
}

.story-controls-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: #1e293b;
  color: #fff;
}

.story-ctrl-btn {
  appearance: none;
  border: none;
  background: #334155;
  color: #fff;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}

.story-ctrl-btn:hover {
  background: #475569;
}

.story-scrubber-wrap {
  flex: 1;
}

#story-scrubber {
  width: 100%;
  accent-color: #0284c7;
  cursor: pointer;
}

.story-time-display {
  font-size: 12px;
  font-weight: 700;
  color: #94a3b8;
  font-variant-numeric: tabular-nums;
}

/* Chapters Bar */
.video-chapters-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
}

.chapters-label {
  font-size: 12px;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
}

.chapters-list {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.chapter-btn {
  appearance: none;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #334155;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.chapter-btn:hover {
  background: #0284c7;
  color: #fff;
  border-color: #0284c7;
}

/* Stats & Quotes */
.video-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.video-stat-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 10px 14px;
  text-align: center;
}

.stat-val {
  font-size: 18px;
  font-weight: 900;
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

.video-quote-box {
  background: #fffbeb;
  border: 1px solid #fef3c7;
  border-radius: var(--radius-md);
  padding: 12px 16px;
}

.quote-text {
  font-size: 13.5px;
  font-style: italic;
  color: #92400e;
  line-height: 1.5;
}

.quote-author {
  font-size: 12px;
  font-weight: 800;
  color: #b45309;
  margin-top: 6px;
  text-align: right;
}

/* =========================================================
   360° PHOTO SPHERE VIEWER STYLES
   ========================================================= */
.three-360-wrap {
  position: relative;
  width: 100%;
  height: 480px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000;
  user-select: none;
}

.three-canvas-container {
  width: 100%;
  height: 100%;
}

.three-hud-top {
  position: absolute;
  top: 12px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  z-index: 10;
}

.hud-scene-badge {
  pointer-events: auto;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 8px 14px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.scene-flag {
  font-size: 26px;
}

.hud-scene-badge strong {
  font-size: 14px;
  display: block;
}

.hud-scene-badge p {
  font-size: 11.5px;
  color: #94a3b8;
  margin: 0;
}

.hud-controls-group {
  pointer-events: auto;
  display: flex;
  gap: 6px;
}

.three-ctrl-btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  color: #fff;
  padding: 7px 12px;
  border-radius: var(--radius-md);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.three-ctrl-btn:hover {
  background: #0284c7;
  border-color: #0284c7;
}

.three-helper-pill {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  padding: 6px 16px;
  color: #f8fafc;
  font-size: 12px;
  font-weight: 600;
  pointer-events: none;
  white-space: nowrap;
  z-index: 10;
}

/* 3D Interactive Hotspot Popup Inside 360 View */
.three-pin-popup {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 440px;
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  color: #fff;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6);
  z-index: 20;
  animation: popIn 0.2s ease-out;
}

@keyframes popIn {
  from { opacity: 0; transform: translate(-50%, -46%) scale(0.95); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1.0); }
}

.popup-header {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding-bottom: 10px;
  margin-bottom: 12px;
}

.popup-icon {
  font-size: 32px;
}

.popup-title-box {
  flex: 1;
}

.popup-title-box h4 {
  font-size: 16.5px;
  font-weight: 800;
  color: #38bdf8;
  margin-bottom: 2px;
}

.popup-category {
  font-size: 11.5px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
}

.popup-close-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 13px;
  cursor: pointer;
}

.popup-close-btn:hover {
  background: #ef4444;
}

.popup-body p {
  font-size: 13.5px;
  line-height: 1.5;
  color: #cbd5e1;
  margin-bottom: 12px;
}

.popup-impact-box {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 12.5px;
  line-height: 1.4;
  color: #6ee7b7;
}

.popup-impact-box strong {
  display: block;
  margin-bottom: 2px;
  color: #a7f3d0;
}

/* Modal Footer */
.field-media-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #e2e8f0;
  padding-top: 12px;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-left, .footer-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.footer-hint {
  font-size: 12.5px;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .field-media-card {
    padding: 14px;
    max-height: 98vh;
  }
  .three-360-wrap {
    height: 340px;
  }
  .video-stats-grid {
    grid-template-columns: 1fr;
  }
  .hud-scene-badge p {
    display: none;
  }
  .footer-hint {
    display: none;
  }
}
