/* Sand Mandala — Tibetan-inspired sand painting on a dark slate */
:root {
  --slate-0: #1a1612;
  --slate-1: #25201a;
  --slate-2: #3a3128;
  --ink:     #f1e6d3;
}
* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0; height: 100%; overflow: hidden;
  background: var(--slate-0);
  color: var(--ink);
  font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  cursor: crosshair;
}
#mandala {
  position: fixed; inset: 0; width: 100%; height: 100%;
  display: block; touch-action: none;
}

/* ── colour palette ───────────────────────────────────────────── */
.palette {
  position: fixed; top: 72px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 10px;
  padding: 9px 12px; border-radius: 999px;
  background: rgba(20, 16, 12, 0.55);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  z-index: 5;
}
.swatch {
  width: 22px; height: 22px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.12);
  cursor: pointer; padding: 0;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}
.swatch:hover { transform: scale(1.1); }
.swatch.active {
  transform: scale(1.18);
  border-color: rgba(255,255,255,0.55);
  box-shadow: 0 0 0 2px rgba(255,255,255,0.10), 0 0 16px rgba(255,255,255,0.10);
}

/* ── reset (sweep) ────────────────────────────────────────────── */
.reset {
  position: fixed; top: 24px; right: 24px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  background: rgba(20, 16, 12, 0.55);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: rgba(241, 230, 211, 0.78);
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  cursor: pointer; z-index: 5;
  transition: color 200ms ease, border-color 200ms ease;
}
.reset:hover { color: var(--ink); border-color: rgba(255,255,255,0.22); }

/* ── hint ─────────────────────────────────────────────────────── */
.hint {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%);
  display: inline-flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 12px 22px; border-radius: 16px;
  background: rgba(20, 16, 12, 0.55);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(241, 230, 211, 0.72);
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  pointer-events: none; user-select: none;
  transition: opacity 1.6s ease 1.2s;
  z-index: 5; text-align: center;
}
.hint.hidden { opacity: 0; }

.dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #f5d28a;
  box-shadow: 0 0 12px rgba(245, 210, 138, 0.9);
  animation: pulse 2.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.45; transform: scale(0.85); }
  50%      { opacity: 1;    transform: scale(1.15); }
}
