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

body {
  min-height: 100vh;
  background: linear-gradient(135deg, #0a0015 0%, #1a0030 50%, #0d001a 100%);
  font-family: 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  color: #fff;
  overflow-x: hidden;
}

/* 별 배경 */
.stars {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}

.star {
  position: absolute;
  background: #fff;
  border-radius: 50%;
  animation: twinkle linear infinite;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.2; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.3); }
}

.container {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}

/* 헤더 */
.header {
  text-align: center;
  margin-bottom: 40px;
}

.title-icon {
  font-size: 60px;
  margin-bottom: 12px;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

h1 {
  font-size: 36px;
  font-weight: 700;
  background: linear-gradient(90deg, #c9a0ff, #ff9de2, #c9a0ff);
  background-size: 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;
  margin-bottom: 10px;
}

@keyframes shimmer {
  0% { background-position: 0%; }
  100% { background-position: 200%; }
}

.subtitle {
  color: #b89fd8;
  font-size: 15px;
}

/* 입력 카드 */
.input-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(200, 160, 255, 0.2);
  border-radius: 24px;
  padding: 32px;
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 8px 32px rgba(150, 80, 255, 0.15);
}

label {
  font-size: 14px;
  color: #c9a0ff;
  font-weight: 600;
  letter-spacing: 0.05em;
}

input[type="date"] {
  width: 100%;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid rgba(200, 160, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 18px;
  outline: none;
  cursor: pointer;
  transition: border-color 0.3s, box-shadow 0.3s;
  color-scheme: dark;
}

input[type="date"]:focus {
  border-color: #c9a0ff;
  box-shadow: 0 0 0 3px rgba(200, 160, 255, 0.2);
}

button#btn {
  width: 100%;
  padding: 16px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(135deg, #9b59b6, #6c3dbf);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
  box-shadow: 0 4px 20px rgba(150, 80, 255, 0.4);
  letter-spacing: 0.05em;
}

button#btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(150, 80, 255, 0.6);
}

button#btn:active {
  transform: translateY(0);
}

/* 결과 카드 */
.result-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(200, 160, 255, 0.2);
  border-radius: 24px;
  padding: 36px 28px;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(150, 80, 255, 0.15);
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.zodiac-symbol {
  font-size: 72px;
  text-align: center;
  margin-bottom: 10px;
  animation: float 3s ease-in-out infinite;
}

h2 {
  text-align: center;
  font-size: 28px;
  background: linear-gradient(90deg, #c9a0ff, #ff9de2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 6px;
}

.date-range {
  text-align: center;
  color: #b89fd8;
  font-size: 14px;
  margin-bottom: 20px;
}

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200,160,255,0.4), transparent);
  margin-bottom: 24px;
}

/* 운세 그리드 */
.fortune-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 28px;
}

.fortune-item {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  padding: 16px 20px;
  border: 1px solid rgba(200, 160, 255, 0.1);
}

.fortune-label {
  display: block;
  font-size: 13px;
  color: #c9a0ff;
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: 0.05em;
}

.stars-rating {
  margin-bottom: 8px;
  font-size: 18px;
  letter-spacing: 2px;
}

.fortune-item p {
  font-size: 14px;
  color: #e0d0f5;
  line-height: 1.7;
}

/* 행운 박스 */
.lucky-box {
  background: rgba(150, 80, 255, 0.1);
  border: 1px solid rgba(200, 160, 255, 0.2);
  border-radius: 16px;
  padding: 18px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 24px;
}

.lucky-label {
  font-size: 13px;
  color: #c9a0ff;
  font-weight: 600;
}

.lucky-value {
  font-size: 15px;
  color: #fff;
  font-weight: 700;
  background: rgba(200, 160, 255, 0.15);
  padding: 4px 14px;
  border-radius: 20px;
  border: 1px solid rgba(200, 160, 255, 0.2);
}

.retry-btn {
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(200, 160, 255, 0.3);
  background: transparent;
  color: #c9a0ff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  letter-spacing: 0.05em;
}

.retry-btn:hover {
  background: rgba(200, 160, 255, 0.1);
  transform: translateY(-1px);
}

@media (max-width: 480px) {
  h1 { font-size: 28px; }
  .container { padding: 24px 16px 48px; }
  .result-card { padding: 28px 18px; }
}
