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

body {
  font-family: 'Noto Sans KR', sans-serif;
  background: linear-gradient(135deg, #0d0d2b 0%, #1a1a4e 50%, #0d1b3e 100%);
  color: #fff;
  min-height: 100vh;
  overflow-x: hidden;
}

#shooting-star-canvas {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none; z-index: 0;
}

#twinkle-layer {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none; z-index: 0;
}

.page-wrap {
  position: relative; z-index: 1;
  max-width: 480px;
  margin: 0 auto;
  padding: 32px 16px 60px;
}

.site-header { text-align: center; margin-bottom: 28px; }

.site-title {
  font-size: 28px; font-weight: 900;
  background: linear-gradient(135deg, #a78bfa, #f472b6, #60a5fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.site-subtitle { font-size: 14px; color: rgba(255,255,255,0.7); margin-bottom: 6px; }

.birth-notice { font-size: 13px; color: #f472b6; font-weight: 700; margin-bottom: 4px; }
.birth-sub-notice { font-size: 11px; color: rgba(255,255,255,0.5); }

.glass-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 20px;
}

.date-select-row { display: flex; gap: 10px; margin-bottom: 14px; }

.date-select-row select {
  flex: 1;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 12px;
  color: #fff;
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 15px; font-weight: 600;
  padding: 12px 10px;
  cursor: pointer;
  appearance: none;
  text-align: center;
}

.date-select-row select option { background: #1a1a4e; color: #fff; }

.main-btn {
  width: 100%; padding: 15px;
  background: linear-gradient(135deg, #7c3aed, #ec4899);
  border: none; border-radius: 14px;
  color: #fff;
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 16px; font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(124,58,237,0.4);
}

.main-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 28px rgba(124,58,237,0.6); }

.section-title { font-size: 17px; font-weight: 700; margin-bottom: 16px; color: #e2e8f0; }

/* ★ 핵심: 별자리 그리드 카드 ★ */
.sign-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.sign-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 16px 8px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
  text-decoration: none;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.sign-card:hover { transform: translateY(-3px); background: rgba(255,255,255,0.14); }
.sign-card .sign-symbol { font-size: 30px; }
.sign-card .sign-name { font-size: 12px; font-weight: 700; }
.sign-card .sign-date { font-size: 10px; color: rgba(255,255,255,0.55); }

.back-link {
  display: inline-block; margin-bottom: 20px;
  color: rgba(255,255,255,0.6); text-decoration: none;
  font-size: 14px; transition: color 0.2s;
}
.back-link:hover { color: #fff; }

.result-header { text-align: center; margin-bottom: 20px; }
.result-symbol { font-size: 60px; display: block; margin-bottom: 8px; }
.result-name {
  font-size: 22px; font-weight: 900;
  background: linear-gradient(135deg, #a78bfa, #f472b6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.result-date { font-size: 13px; color: rgba(255,255,255,0.6); margin-top: 4px; }

.stat-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.stat-label { font-size: 13px; color: rgba(255,255,255,0.7); width: 60px; }
.stat-bar-wrap { flex: 1; height: 8px; background: rgba(255,255,255,0.1); border-radius: 4px; margin: 0 10px; overflow: hidden; }
.stat-bar { height: 100%; border-radius: 4px; background: linear-gradient(90deg, #7c3aed, #ec4899); transition: width 0.8s ease; }
.stat-value { font-size: 13px; font-weight: 700; color: #a78bfa; width: 28px; text-align: right; }

.fortune-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.fortune-item { background: rgba(255,255,255,0.06); border-radius: 12px; padding: 12px; text-align: center; }
.fortune-emoji { font-size: 22px; display: block; margin-bottom: 4px; }
.fortune-label { font-size: 11px; color: rgba(255,255,255,0.5); display: block; margin-bottom: 4px; }
.fortune-stars { font-size: 14px; color: #f59e0b; }

.compat-select-row { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.compat-select-row select {
  flex: 1;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 12px;
  color: #fff;
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 14px; padding: 12px 8px;
  cursor: pointer; appearance: none; text-align: center;
}
.compat-select-row select option { background: #1a1a4e; color: #fff; }
.compat-heart { font-size: 22px; flex-shrink: 0; }

.compat-result { display: none; }
.compat-result.show { display: block; }

.compat-pair-header { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 16px; }
.compat-sign-info { text-align: center; }
.compat-sign-symbol { font-size: 40px; display: block; }
.compat-sign-name { font-size: 13px; font-weight: 700; }
.compat-vs { font-size: 20px; color: rgba(255,255,255,0.3); }

.score-display { text-align: center; margin-bottom: 16px; }
.score-num {
  font-size: 56px; font-weight: 900;
  background: linear-gradient(135deg, #a78bfa, #f472b6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.score-grade {
  display: inline-block; margin-top: 6px;
  padding: 4px 16px; border-radius: 20px;
  font-size: 13px; font-weight: 700;
  background: linear-gradient(135deg, #7c3aed, #ec4899);
}

.compat-good-list, .compat-caution-list { list-style: none; padding: 0; }
.compat-good-list li { padding: 6px 0; font-size: 13px; }
.compat-good-list li::before { content: "✅ "; }
.compat-caution-list li { padding: 6px 0; font-size: 13px; }
.compat-caution-list li::before { content: "⚠️ "; }

.coupang-banner {
  background: linear-gradient(135deg, rgba(234,67,53,0.15), rgba(234,67,53,0.05));
  border: 1px solid rgba(234,67,53,0.3);
  border-radius: 16px; padding: 20px; text-align: center; margin-top: 12px;
}
.coupang-title { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.coupang-subtitle { font-size: 12px; color: rgba(255,255,255,0.6); margin-bottom: 12px; }
.coupang-btn {
  display: inline-block; padding: 11px 28px;
  background: #e84118; border-radius: 10px;
  color: #fff; font-size: 14px; font-weight: 700;
  text-decoration: none; transition: transform 0.2s;
}
.coupang-btn:hover { transform: translateY(-2px); }
.coupang-fine-print { font-size: 10px; color: rgba(255,255,255,0.35); margin-top: 10px; }

.chart-wrap { max-width: 280px; margin: 0 auto; }

.traits-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.trait-badge {
  background: rgba(167,139,250,0.2);
  border: 1px solid rgba(167,139,250,0.4);
  border-radius: 20px; padding: 4px 12px;
  font-size: 12px; color: #c4b5fd;
}

.info-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.07); font-size: 13px; }
.info-row:last-child { border-bottom: none; }
.info-label { color: rgba(255,255,255,0.55); }
.info-value { font-weight: 600; }
@keyframes twinkle { from{opacity:0.3} to{opacity:1} }

.result-symbol { font-size: 64px; display: block; margin-bottom: 10px; }
.result-name { font-size: 24px; font-weight: 900; background: linear-gradient(135deg, #a78bfa, #f472b6); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.result-date { font-size: 13px; color: rgba(255,255,255,0.6); margin-top: 4px; }

/* ===== 모바일 여백 최적화 (PC 스타일은 유지) ===== */
@media (max-width: 768px) {
  .page-wrap { padding: 20px 14px 36px; }
  .site-header { margin-bottom: 18px; }

  .glass-card { padding: 16px; margin-bottom: 14px; }
  .main-btn { padding: 13px; }
  .section-title { margin-bottom: 12px; }

  .sign-grid { gap: 8px; }
  .sign-card { padding: 12px 6px; }

  .fortune-grid { gap: 8px; }
  .fortune-item { padding: 10px; }
  .fortune-message-box { margin-top: 12px; padding: 14px 16px; }

  .coupang-banner { padding: 16px; margin-top: 8px; }
  .lock-hint { margin-top: 10px; }

  .page-wrap.slides-wrap { padding-bottom: 84px; }
  .slide-progress { margin-bottom: 10px; }
  .slide-nav-fixed { padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); }

  .compat-pair-header { margin-bottom: 12px; }
  .score-display { margin-bottom: 12px; }
}
