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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
  background: linear-gradient(135deg, #0a1628 0%, #1a2f4f 50%, #0f1e35 100%);
  min-height: 100vh;
  color: #e8f4f8;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

#header {
  text-align: center;
  padding: 2rem 1rem 1rem;
  background: linear-gradient(180deg, rgba(91, 192, 222, 0.1) 0%, transparent 100%);
  border-bottom: 2px solid rgba(91, 192, 222, 0.2);
  margin-bottom: 2rem;
}

#header h1 {
  font-size: 3.5rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 20px rgba(91, 192, 222, 0.6),
               0 0 40px rgba(91, 192, 222, 0.4),
               0 2px 4px rgba(0, 0, 0, 0.5);
  letter-spacing: 2px;
}

#date {
  font-size: 1.2rem;
  color: #a8d8ea;
  font-weight: normal;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  margin-bottom: 0.5rem;
}

#instructions {
  font-size: 0.9rem;
  color: #7cb3c9;
  margin-top: 0.5rem;
}

kbd {
  background: rgba(91, 192, 222, 0.2);
  border: 1px solid rgba(91, 192, 222, 0.4);
  border-radius: 4px;
  padding: 2px 6px;
  font-family: monospace;
  font-size: 0.95em;
  color: #5bc0de;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

#tree-container {
  max-width: 600px;
  width: 90%;
  margin: 0 auto;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem 0;
  flex: 1;
}

#star {
  position: absolute;
  font-size: 4rem;
  z-index: 100;
  cursor: pointer;
  transition: all 0.3s ease;
  filter: drop-shadow(0 0 10px gold) drop-shadow(0 0 20px orange);
  animation: twinkle 2s ease-in-out infinite;
  user-select: none;
}

#star:hover {
  transform: translate(-50%, -50%) scale(1.2) rotate(15deg);
  filter: drop-shadow(0 0 15px gold) drop-shadow(0 0 30px orange);
}

@keyframes twinkle {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

#tree {
  width: 100%;
  max-width: 400px;
  height: auto;
  display: block;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
  user-select: none;
  pointer-events: none;
}

#boundary {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 25;
  pointer-events: none;
}

#triangle-outline {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.boundary-point {
  position: absolute;
  font-size: 2rem;
  cursor: grab;
  pointer-events: auto;
  z-index: 200;
  user-select: none;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
  transition: transform 0.2s ease;
  transform: translate(-50%, -50%);
}

.boundary-point:hover {
  transform: translate(-50%, -50%) scale(1.2);
  filter: drop-shadow(0 4px 8px rgba(91, 192, 222, 0.8));
}

.boundary-point.dragging {
  cursor: grabbing;
  transform: translate(-50%, -50%) scale(1.3);
  filter: drop-shadow(0 6px 12px rgba(91, 192, 222, 1));
}

#decorations {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 50;
  pointer-events: none;
}

.ornament {
  font-size: 2.5rem;
  position: absolute;
  display: inline-block;
  z-index: 50;
  pointer-events: auto;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  user-select: none;
}

.important-text {
  color: #5bc0de;
}

@media (max-width: 768px) {
  #header h1 {
    font-size: 2.5rem;
  }
  
  #star {
    font-size: 3rem;
  }
  
  .ornament {
    font-size: 2rem;
  }
  
  .boundary-point {
    font-size: 1.5rem;
  }
  
  #instructions {
    font-size: 0.8rem;
  }
}
