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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: radial-gradient(circle at 50% 30%, #2a2a2e 0%, #161618 70%, #0c0c0d 100%);
  color: #f3efe6;
}

#scene { display: block; width: 100vw; height: 100vh; }

#ui {
  position: fixed;
  top: 28px;
  left: 32px;
  pointer-events: none;
  max-width: 70vw;
}
.badge {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 3px;
  font-weight: 700;
  color: #0c0c0d;
  background: linear-gradient(135deg, #d9bd86, #b8945a);
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}
#ui h1 {
  font-size: clamp(22px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.05;
  text-shadow: 0 2px 18px rgba(0,0,0,.6);
}
.sub { margin-top: 6px; font-size: 14px; color: #b8b2a6; letter-spacing: .5px; }

#controls {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 5;
}
#controls button {
  font-family: inherit;
  font-size: 13px;
  letter-spacing: .5px;
  color: #f3efe6;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(8px);
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: all .18s ease;
}
#controls button:hover { background: rgba(255,255,255,.16); }
#controls button.active {
  background: linear-gradient(135deg, #d9bd86, #b8945a);
  color: #0c0c0d;
  border-color: transparent;
  font-weight: 700;
}

#hint {
  position: fixed;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  color: #7d776b;
  letter-spacing: 1px;
  pointer-events: none;
}

#loader {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: #161618;
  z-index: 20;
  transition: opacity .5s ease;
  font-size: 14px;
  color: #b8b2a6;
  letter-spacing: 1px;
}
#loader.hidden { opacity: 0; pointer-events: none; }
.spinner {
  width: 38px; height: 38px;
  border: 3px solid rgba(217,189,134,.25);
  border-top-color: #d9bd86;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 600px) {
  #ui { top: 18px; left: 18px; }
  #controls button { padding: 9px 14px; font-size: 12px; }
}
