:root {
  --night-deep: #1a1a2e;
  --night-mid: #16213e;
  --night-light: #0f3460;
  --glass-bg: rgba(255, 255, 255, 0.1);
  --accent-color: #e94560;
  --gold-glow: rgba(255, 215, 0, 0.3);
}

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

body {
  font-family: 'Noto Sans KR', sans-serif;
  background: radial-gradient(circle at center, var(--night-mid), var(--night-deep));
  color: #fff;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
  position: relative;
}

/* 밤하늘 별 효과 */
.stars {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background-image: 
    radial-gradient(1px 1px at 20px 30px, #eee, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 40px 70px, #fff, rgba(0,0,0,0)),
    radial-gradient(1.5px 1.5px at 100px 150px, #ddd, rgba(0,0,0,0));
  background-repeat: repeat;
  background-size: 200px 200px;
  opacity: 0.5;
  animation: twinkling 10s infinite alternate;
}

@keyframes twinkling {
  from { opacity: 0.3; }
  to { opacity: 0.7; }
}

.container {
  position: relative;
  z-index: 1;
  width: 90%;
  max-width: 500px;
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  padding: 40px 30px;
  box-shadow: 0 25px 45px rgba(0, 0, 0, 0.5);
  text-align: center;
}

header {
  margin-bottom: 30px;
}

.logo-area {
  font-size: 3rem;
  margin-bottom: 10px;
  filter: drop-shadow(0 0 10px gold);
}

h1 {
  font-family: 'Nanum Myeongjo', serif;
  font-size: 1.8rem;
  letter-spacing: -1px;
  margin-bottom: 8px;
}

.subtitle {
  font-weight: 300;
  font-size: 0.95rem;
  color: #cbd5e0;
}

.dream-input-section {
  text-align: left;
  margin-bottom: 25px;
}

.dream-input-section label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 10px;
  color: #a0aec0;
}

textarea {
  width: 100%;
  height: 100px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  padding: 15px;
  color: white;
  font-family: inherit;
  resize: none;
  transition: all 0.3s;
}

textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  background: rgba(255, 255, 255, 0.1);
}

.status-message {
  min-height: 24px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  color: #fbd38d;
}

.ball-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}

.ball {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  font-size: 1.2rem;
  color: white;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 15px var(--gold-glow);
  animation: starFall 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

@keyframes starFall {
  0% { transform: translateY(-50px) scale(0); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

.generate-btn {
  width: 100%;
  padding: 18px;
  border-radius: 50px;
  border: none;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.generate-btn:hover {
  transform: scale(1.02);
  box-shadow: 0 0 20px rgba(102, 126, 234, 0.5);
}

.generate-btn:active {
  transform: scale(0.98);
}

footer {
  margin-top: 30px;
  font-size: 0.8rem;
  color: #718096;
}

/* 로또 번호별 색상 (은은하게) */
.num-1 { background: rgba(251, 196, 0, 0.6); }
.num-11 { background: rgba(105, 200, 242, 0.6); }
.num-21 { background: rgba(255, 114, 114, 0.6); }
.num-31 { background: rgba(170, 170, 170, 0.6); }
.num-41 { background: rgba(176, 216, 64, 0.6); }
