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

body {
  overflow: hidden;
  background-color: #050508;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #ffffff;
}

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

/* --- NAVBAR HEADER --- */
.navbar {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(18, 18, 26, 0.65);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 8px 18px;
  border-radius: 30px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  pointer-events: auto;
}

.navbar-logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
  border-radius: 50%;
}

.navbar-title {
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

/* --- FOOTER --- */
.footer {
  position: fixed;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 1px;
  text-transform: uppercase;
  pointer-events: none;
}

/* --- OVERLAY UI STYLING --- */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #09080e;
  z-index: 100;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity 0.6s ease, visibility 0.6s;
}

.loader-icon-container {
  position: relative;
  width: 70px;
  height: 70px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 25px;
}

.planet-emoji {
  font-size: 32px;
  z-index: 2;
  animation: float 3s ease-in-out infinite;
}

.spinner-ring {
  position: absolute;
  width: 55px;
  height: 55px;
  border: 3px solid rgba(239, 68, 68, 0.15);
  border-top: 3px solid #f43f5e;
  border-right: 3px solid #ec4899;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  box-shadow: 0 0 15px rgba(244, 63, 94, 0.4);
}

.loading-title {
  font-size: 20px;
  font-weight: 600;
  color: #f3f4f6;
  margin-bottom: 8px;
}

.loading-subtitle {
  font-size: 13px;
  color: #9ca3af;
  margin-bottom: 12px;
  text-align: center;
}

.loading-status {
  font-size: 11px;
  color: #fbbf24;
  letter-spacing: 0.5px;
}

#question-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(5, 5, 8, 0.75);
  backdrop-filter: blur(8px);
  z-index: 90;
  display: none;
  justify-content: center;
  align-items: center;
}

.card {
  background: rgba(23, 21, 33, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 28px 24px;
  width: 90%;
  max-width: 360px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0,0,0,0.6);
  position: relative;
}

.card h2 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 24px;
  color: #ffffff;
}

.button-group {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  position: relative;
}

.btn {
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.2s ease;
  white-space: nowrap;
}

.btn-yes {
  background: linear-gradient(135deg, #f43f5e, #e11d48);
  color: white;
  box-shadow: 0 4px 12px rgba(244, 63, 94, 0.3);
}

.btn-no {
  background: rgba(255, 255, 255, 0.08);
  color: #d1d5db;
  border: 1px solid rgba(255, 255, 255, 0.15);
  position: relative;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#guide-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  z-index: 80;
  display: none;
  justify-content: center;
  align-items: center;
}

.guide-card {
  background: rgba(18, 18, 26, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 20px;
  width: 88%;
  max-width: 380px;
  position: relative;
  font-size: 12px;
  color: #e5e7eb;
  line-height: 1.6;
}

.close-btn {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  color: #9ca3af;
  font-size: 16px;
  cursor: pointer;
}

.guide-title {
  font-weight: bold;
  margin-bottom: 12px;
  font-size: 13px;
}

.guide-section {
  margin-bottom: 10px;
}

.badge {
  background: #16a34a;
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: bold;
}

.badge-blue {
  background: #2563eb;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

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