:root {
  --primary-green: #0d2b1e;
  --secondary-green: #05140f;
  --accent-gold: #ffd700;
  --snow-white: #ffffff;
  --bg-dark: #0a1128;
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Outfit', sans-serif;
}

body {
  background: var(--bg-dark);
  color: var(--snow-white);
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.snow-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.snowflake {
  position: absolute;
  background: white;
  border-radius: 50%;
  opacity: 0.8;
  animation: fall linear infinite;
}

@keyframes fall {
  0% {
    transform: translateY(-10vh) rotate(0deg);
  }

  100% {
    transform: translateY(100vh) rotate(360deg);
  }
}

.tree-container {
  position: relative;
  width: 380px;
  /* Wider container */
  height: 580px;
  /* Slightly taller */
  margin-top: 10px;
  z-index: 2;
  cursor: crosshair;
  animation: sway 5s infinite ease-in-out;
}

@keyframes sway {

  0%,
  100% {
    transform: rotate(-0.2deg);
  }

  50% {
    transform: rotate(0.2deg);
  }
}

.tree-main {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 15px 50px rgba(0, 0, 0, 0.8));
}

.star {
  position: absolute;
  top: -38px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 75px;
  z-index: 10;
  animation: star-glow 2s infinite ease-in-out;
  filter: drop-shadow(0 0 30px #ffd700);
}

@keyframes star-glow {

  0%,
  100% {
    transform: translateX(-50%) scale(1);
    filter: drop-shadow(0 0 30px #ffd700);
  }

  50% {
    transform: translateX(-50%) scale(1.05);
    filter: drop-shadow(0 0 50px #ffd700);
  }
}

.placed-emoji {
  position: absolute;
  font-size: 34px;
  /* Increased from 26px */
  transform: translate(-50%, -50%);
  user-select: none;
  animation: appear 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: none;
}

@keyframes appear {
  from {
    transform: translate(-50%, -50%) scale(0);
  }

  to {
    transform: translate(-50%, -50%) scale(1);
  }
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 30px;
  border-radius: 20px;
  width: 90%;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.emoji-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin: 15px 0;
}

.emoji-btn {
  font-size: 24px;
  background: none;
  border: 1px solid transparent;
  padding: 5px;
  cursor: pointer;
  border-radius: 10px;
  transition: all 0.2s;
}

.emoji-btn:hover,
.emoji-btn.selected {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--accent-gold);
  transform: scale(1.1);
}

textarea {
  width: 100%;
  height: 80px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 10px;
  color: white;
  margin: 10px 0;
  resize: none;
}

button.submit-btn {
  background: var(--accent-gold);
  color: black;
  border: none;
  padding: 12px 30px;
  border-radius: 25px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

button.submit-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px var(--accent-gold);
}

@media (max-width: 600px) {
  .tree-container {
    width: 300px;
    height: 520px;
  }

  .star {
    font-size: 55px;
  }
}