:root {
  --ink: #6b4f43;
  --ink-soft: #a08a80;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  font-family: ui-rounded, "Hiragino Maru Gothic ProN", "M PLUS Rounded 1c",
    "Quicksand", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(120% 80% at 50% 8%, #fffdf7 0%, rgba(255, 253, 247, 0) 60%),
    radial-gradient(90% 70% at 12% 88%, #ffe3f0 0%, rgba(255, 227, 240, 0) 65%),
    radial-gradient(90% 70% at 88% 82%, #dff1ff 0%, rgba(223, 241, 255, 0) 65%),
    linear-gradient(180deg, #fff1f7 0%, #fff9ec 46%, #eaf6ff 100%);
}

#scene { position: fixed; inset: 0; }
#scene canvas { display: block; cursor: grab; touch-action: none; }

.hud {
  position: fixed;
  top: clamp(14px, 3vh, 34px);
  left: 0;
  right: 0;
  text-align: center;
  pointer-events: none;
  user-select: none;
}

.hud h1 {
  margin: 0;
  font-size: clamp(20px, 3.4vw, 34px);
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #8a6a5c;
  text-shadow: 0 2px 0 #fff, 0 6px 16px rgba(180, 140, 150, 0.22);
}

.hud h1 span { color: #b9a2b8; font-weight: 700; }

.hud p {
  margin: 6px 0 0;
  font-size: clamp(11px, 1.35vw, 14px);
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}

.hud a {
  color: #d98cab;
  font-weight: 700;
  text-decoration: none;
  pointer-events: auto;
}

.hud a:hover { text-decoration: underline; }

#loading {
  position: fixed;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 16px;
  background: rgba(255, 253, 250, 0.86);
  backdrop-filter: blur(6px);
  transition: opacity 0.6s ease;
  z-index: 10;
}

#loading.done { opacity: 0; pointer-events: none; }

#loading p {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
}

.paws { display: flex; gap: 13px; }

.paws i {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #ffc2da;
  animation: bounce 0.9s ease-in-out infinite;
}

.paws i:nth-child(2) { background: #ffd9a8; animation-delay: 0.15s; }
.paws i:nth-child(3) { background: #b8e4ff; animation-delay: 0.3s; }

@keyframes bounce {
  0%, 100% { transform: translateY(0) scale(1); }
  45% { transform: translateY(-13px) scale(1.06); }
}
