* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Georgia', serif;
  color: #fff;
  background: linear-gradient(135deg, #8b0000 0%, #b22222 50%, #dc143c 100%);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

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

main {
  position: relative;
  z-index: 2;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

h1 {
  font-size: 3rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 3rem;
  color: #ffd700;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 215, 0, 0.5);
  letter-spacing: 2px;
}

.alphabet-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  width: 100%;
  padding: 2rem;
  padding-top: 3rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  position: relative;
}

.letter-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  position: relative;
  z-index: 2;
}

.light {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #665500;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
  position: relative;
}

.light::before {
  content: '';
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 15px;
  background: #cc0000;
}

.light.on {
  animation: glow 0.6s ease-in-out;
}

@keyframes glow {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}

.letter {
  font-size: 2rem;
  font-weight: bold;
  color: #ffe4b5;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5), 0 0 10px rgba(255, 215, 0, 0.3);
  user-select: none;
}

.snowflake {
  position: absolute;
  top: -10px;
  color: #fff;
  font-size: 1.5rem;
  opacity: 0.8;
  animation: fall linear infinite;
  user-select: none;
  pointer-events: none;
}

@keyframes fall {
  to {
    transform: translateY(100vh) rotate(360deg);
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
    margin-bottom: 2rem;
  }

  .alphabet-container {
    grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
    gap: 1rem;
    padding: 1.5rem;
  }

  .letter {
    font-size: 1.5rem;
  }

  .light {
    width: 16px;
    height: 16px;
  }
}

@media (max-width: 480px) {
  main {
    padding: 1rem;
  }

  h1 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .alphabet-container {
    grid-template-columns: repeat(auto-fit, minmax(40px, 1fr));
    gap: 0.8rem;
    padding: 1rem;
  }

  .letter {
    font-size: 1.2rem;
  }

  .light {
    width: 14px;
    height: 14px;
  }

  .light::before {
    height: 10px;
    top: -10px;
  }
}
