/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overscroll-behavior: none;
}

body {
  font-family: "Comic Neue", sans-serif;
  background: radial-gradient(
    ellipse at center,
    #0f1a1a 0%,
    #0a0e0f 50%,
    #050808 100%
  );
  background-color: var(--background-color);
  color: var(--text-color);
  min-height: 100vh;
  transition: background-color 0.5s ease, color 0.5s ease;
  overflow-x: hidden;
  position: relative;
  overscroll-behavior: none;
}

/* Christmas Background Pattern - Subtle Stars */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(
      2px 2px at 20% 30%,
      var(--christmas-gold),
      transparent
    ),
    radial-gradient(2px 2px at 60% 70%, var(--christmas-gold), transparent),
    radial-gradient(1px 1px at 50% 50%, var(--christmas-gold), transparent),
    radial-gradient(1px 1px at 80% 10%, var(--christmas-gold), transparent),
    radial-gradient(2px 2px at 90% 40%, var(--christmas-gold), transparent),
    radial-gradient(1px 1px at 33% 60%, var(--christmas-gold), transparent),
    radial-gradient(1px 1px at 66% 20%, var(--christmas-gold), transparent);
  background-size: 200% 200%;
  background-position: 0% 0%;
  opacity: 0.3;
  pointer-events: none;
  z-index: 1;
}

body.silvester-theme {
  background: radial-gradient(ellipse at bottom, #1a1a1a 0%, #000000 100%);
}

/* Fireworks Canvas */
#fireworks-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  display: none;
}

body.silvester-theme #fireworks-canvas {
  display: block;
}

/* Confetti Canvas */
#confetti-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
}

/* Custom Christmas Tree Cursor - Hide default cursor, use indicator instead */
body {
  cursor: none;
}

/* Override cursor for interactive elements - hide native cursor on all clickable objects */
button,
a,
.card,
.spending-item,
.easter-egg-word,
.stamp-clickable,
.inventory-item,
.inventory-close-button,
.inventory-flip-button,
.inventory-rotate-button,
.inventory:not(.expanded),
.envelope-front,
.envelope-flap,
.envelope-stamp,
.message-section,
.card-number,
.debug-settings-icon,
.debug-animation-button,
select,
.theme-select {
  cursor: none !important;
}

/* Also hide cursor on hover for clickable elements */
button:hover,
a:hover,
.card:hover,
.spending-item:hover,
.easter-egg-word:hover,
.stamp-clickable:hover,
.inventory-item:hover,
.inventory-close-button:hover,
.inventory-flip-button:hover,
.inventory-rotate-button:hover,
.inventory:not(.expanded):hover,
.envelope-front:hover,
.envelope-flap:hover,
.envelope-stamp:hover,
.message-section:hover,
.card-number:hover,
.debug-settings-icon:hover,
.debug-animation-button:hover,
select:hover,
.theme-select:hover {
  cursor: none !important;
}

/* Cursor Indicator - Shaking tree on clickable items */
.cursor-indicator {
  position: fixed;
  pointer-events: none;
  z-index: 100002;
  font-size: 2rem;
  user-select: none;
  opacity: 1;
  transition: opacity 0.15s ease;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.6));
  will-change: transform, opacity;
  left: 0;
  top: 0;
  display: block;
}

.cursor-indicator.active {
  animation: cursorShake 0.5s ease-in-out infinite;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
