#loader body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f6e7c4;
}

.desert-overlay {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: linear-gradient(180deg, #fef6dd 0%, #f6e1b5 45%, #e9c07c 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  color: #3d2f1d;
}

.sky {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.25), transparent 40%),
    radial-gradient(circle at 80% 10%, rgba(255, 255, 255, 0.18), transparent 35%);
  pointer-events: none;
}

.sun {
  position: absolute;
  top: 10%;
  right: 14%;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffd27f 0%, #f6b23b 70%, rgba(255, 196, 87, 0));
  filter: blur(8px);
  box-shadow: 0 0 80px rgba(255, 200, 120, 0.6);
}

.clouds {
  position: absolute;
  top: 12%;
  left: 0;
  right: 0;
  display: flex;
  gap: 40px;
  padding: 0 5%;
  pointer-events: none;
}

.cloud {
  flex: 1;
  height: 70px;
  min-width: 160px;
  background: rgba(255, 255, 255, 0.65);
  filter: blur(6px);
  border-radius: 999px;
  animation: cloudDrift 40s linear infinite;
}

.cloud:nth-child(2) {
  animation-duration: 52s;
  opacity: 0.75;
}

.cloud:nth-child(3) {
  animation-duration: 46s;
  opacity: 0.6;
}

.dunes {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.dune {
  position: absolute;
  left: -10%;
  width: 120%;
  height: 40%;
  border-radius: 60% 60% 0 0;
  transform: translateY(40%);
}

.dune.back {
  bottom: 32%;
  background: linear-gradient(180deg, #f2d29c, #e1b16a);
  filter: blur(1px);
}

.dune.mid {
  bottom: 18%;
  background: linear-gradient(180deg, #eabf86, #d39b58);
  filter: blur(0.5px);
}

.dune.front {
  bottom: 0;
  height: 45%;
  background: linear-gradient(180deg, #e3a757, #c67c32);
}

.oasis-card {
  position: relative;
  width: min(780px, 92%);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.85), rgba(255, 243, 220, 0.95));
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 28px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  padding: 28px;
  z-index: 2;
  overflow: hidden;
}

.oasis-card::before {
  content: '';
  position: absolute;
  inset: 10px;
  border-radius: 22px;
  border: 1px dashed rgba(0, 0, 0, 0.06);
  pointer-events: none;
}

.oasis-header {
  text-align: center;
  margin-bottom: 16px;
}

.oasis-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: linear-gradient(120deg, rgba(255, 206, 123, 0.35), rgba(88, 171, 156, 0.25));
  color: #5e4122;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.oasis-header h1 {
  margin: 10px 0 6px;
  font-size: 2rem;
  letter-spacing: 0.05em;
}

.oasis-tagline {
  margin: 0;
  color: #7a5a34;
}

.water-gauge {
  margin-top: 12px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(94, 167, 156, 0.08);
  border: 1px solid rgba(94, 167, 156, 0.25);
  box-shadow: inset 0 0 20px rgba(94, 167, 156, 0.12);
}

.gauge-bar {
  position: relative;
  width: 100%;
  height: 16px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.gauge-fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  transition: width 0.6s ease, background 0.6s ease;
}

.gauge-glare {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.4), transparent 50%);
  mix-blend-mode: screen;
  pointer-events: none;
}

.gauge-caption {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  color: #5e4122;
  font-size: 0.95rem;
  text-align: left;
}

.gauge-caption.is-error {
  color: #b64332;
}

.action-text {
  width: 100%;
  max-width: 100%;
  line-height: 1.35;
  white-space: normal;
  word-break: break-word;
}

.percent-text {
  font-weight: 700;
  align-self: flex-end;
}

.error-flag {
  font-weight: 700;
  color: #b64332;
  align-self: flex-end;
}

.stage-chips {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}

.stage-pill {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.05);
  color: #61462c;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, border 0.3s ease;
}

.stage-pill.done {
  border-color: rgba(94, 167, 156, 0.55);
  background: linear-gradient(135deg, rgba(94, 167, 156, 0.18), rgba(255, 206, 123, 0.18));
  transform: translateY(-2px);
}

.stage-pill.next {
  border-color: rgba(198, 132, 66, 0.45);
}

.pill-label {
  font-weight: 600;
}

.pill-percent {
  font-size: 0.85rem;
  color: rgba(61, 47, 29, 0.8);
}

.oasis-visual {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: end;
}

.palms {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}

.palms img {
  width: 90px;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.25));
}

.palms .palm-small {
  width: 64px;
  opacity: 0.9;
}

.lagoon {
  position: relative;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 30%, #9de5ff 0%, #5bc0f8 45%, #2d93ce 70%);
  box-shadow: inset 0 10px 30px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.water {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.25), transparent 40%);
}

.ripples {
  position: absolute;
  inset: 10% 8% 12% 8%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  animation: ripple 6s ease-in-out infinite;
}

.camps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.camps img {
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.2));
}

.camps .tent {
  width: 120px;
}

.camps .camel {
  width: 70px;
  position: relative;
  top: 25px;
}

.desert-overlay .cactus {
  width: 100px;
  z-index: 2;
  position: absolute;
  bottom: 20px;
  right: 20px;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.2));
}

.caravan {
  position: absolute;
  bottom: 18%;
  left: -20%;
  display: flex;
  gap: 18px;
  animation: caravanWalk 26s linear infinite;
  opacity: 0.9;
}

.caravan img {
  width: 72px;
  height: auto;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.2));
}

.bg-info {
  background: linear-gradient(90deg, #74c0fc, #4dabf7);
}

.bg-warning {
  background: linear-gradient(90deg, #fbbf77, #f08c42);
}

.bg-purple {
  background: linear-gradient(90deg, #c084fc, #a26be0);
}

.bg-success {
  background: linear-gradient(90deg, #6ed6b2, #3fb189);
}

.bg-brown {
  background: linear-gradient(90deg, #a45a2a, #6a3512);
}

.bg-pink {
  background: linear-gradient(90deg, #f79abf, #f06595);
}

.bg-gray {
  background: linear-gradient(90deg, #8d9aa8, #b0b9c3);
}

.fade-enter-active,
.fade-leave-active {
  transition: opacity 0.8s ease;
}

.fade-enter-from,
.fade-leave-to {
  opacity: 0;
}

@keyframes cloudDrift {
  0% {
    transform: translateX(-10%);
  }
  100% {
    transform: translateX(10%);
  }
}

@keyframes ripple {
  0% {
    transform: scale(0.95);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
  }
  100% {
    transform: scale(0.95);
    opacity: 0.7;
  }
}

@keyframes caravanWalk {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(160%);
  }
}

/* Error Modal Styles */
.error-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #f8f9fa;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  font-family: sans-serif;
}

.error-modal-content {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  max-width: 500px;
  text-align: center;
}

.error-modal-title {
  color: #dc3545;
  margin-top: 0;
  margin-bottom: 1rem;
}

.error-modal-text {
  color: #6c757d;
  margin-bottom: 1.5rem;
}

.error-modal-details {
  background: #fff3cd;
  color: #856404;
  padding: 1rem;
  border-radius: 4px;
  border: 1px solid #ffeeba;
  font-family: monospace;
  text-align: left;
  overflow-x: auto;
  word-break: break-all;
}

.error-modal-button {
  margin-top: 1.5rem;
  padding: 0.5rem 1rem;
  background: #0d6efd;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
}

.error-modal-button:hover {
  background: #0b5ed7;
}
