* {
  box-sizing: border-box;
}

body {
  margin: 0;
  overflow: hidden;
  background: radial-gradient(circle at center, #1a1a1a 0%, #0b0b0b 100%);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

canvas {
  cursor: grab;
}

canvas:active {
  cursor: grabbing;
}

/* =========================
   DESKTOP HINT
========================= */

.hint {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 14px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 14px;
  border-radius: 6px;
  user-select: none;
}

/* =========================
   MOBILE BUTTON
========================= */

.mobile-btn {
  position: absolute;
  bottom: 70px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 20px;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  background: #1e1e1e;
  color: #fff;
  opacity: 0.9;
  display: none;
}

/* =========================
   MOBILE TOAST
========================= */

.mobile-toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 16px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 14px;
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 25;
  backdrop-filter: blur(6px);
}


@media (max-width: 768px) {
  .mobile-toast.visible {
    opacity: 1;
  }
}

/* =========================
   LOADER
========================= */

#loaderOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
}

.loader-box {
  text-align: center;
  color: #fff;
  width: 220px;
}

.loader-text {
  font-size: 15px;
  margin-bottom: 12px;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: #333;
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #4facfe, #00f2fe);
  transition: width 0.2s ease;
}

.progress-percent {
  margin-top: 8px;
  font-size: 13px;
  opacity: 0.8;
}


