:root {
  --bg-deep: #020617;
  --bg-layer: rgba(15, 23, 42, 0.65);
  --glow: rgba(129, 140, 248, 0.35);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at bottom, #0f172a 0%, #020617 70%, #000000 100%);
  font-family: 'Inter', system-ui, sans-serif;
}

.font-serif {
  font-family: 'Cormorant Garamond', Georgia, serif;
}

/* Vignette overlay */
#canvas-container::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 30%, rgba(0, 0, 0, 0.55) 100%);
  pointer-events: none;
}

/* Message card entrance handled by GSAP, but keep base transition */
#message-card {
  will-change: transform, opacity;
}

/* Custom scrollbar hidden */
::-webkit-scrollbar {
  width: 0;
  height: 0;
}

/* Focus styles for keyboard users */
button:focus-visible {
  outline: 2px solid rgba(165, 180, 252, 0.7);
  outline-offset: 2px;
}

/* Touch action on canvas */
canvas {
  touch-action: none;
}

/* Subtle twinkle animation for UI only */
@keyframes pulse-soft {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

.animate-pulse-soft {
  animation: pulse-soft 3s ease-in-out infinite;
}

/* Floating stardust points label */
.floating-points {
  position: fixed;
  pointer-events: none;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 1.1rem;
  font-weight: 600;
  color: #fde68a;
  text-shadow: 0 0 10px rgba(253, 230, 138, 0.65);
  white-space: nowrap;
  z-index: 50;
  transform: translate(-50%, -50%);
}

/* Constellation toast z-index (Tailwind doesn't have z-25) */
#constellation-toast {
  z-index: 25;
}
