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

:root {
  --bg: #0c0a14;
  --surface: #16132a;
  --surface2: #1e1a36;
  --border: #2a2548;
  --text: #e8e4f0;
  --text-sub: #9a93b0;
  --accent: #a78bfa;
  --accent2: #c4b5fd;
  --gold: #f5c542;
  --radius: 14px;
}

body {
  font-family: 'Noto Sans KR', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

.screen {
  display: none;
  min-height: 100vh;
  animation: fadeIn 0.5s ease;
}
.screen.active { display: flex; }

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

.container {
  max-width: 680px;
  margin: 0 auto;
  padding: 40px 24px 60px;
  width: 100%;
}

/* ===== LANDING ===== */
#landing {
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
  overflow: hidden;
}

.landing-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(167,139,250,0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 80%, rgba(245,197,66,0.08) 0%, transparent 60%);
}

.landing-content { position: relative; z-index: 1; }

.logo {
  font-family: 'Noto Serif KR', serif;
  font-size: 64px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
  letter-spacing: -2px;
}

.tagline {
  font-size: 18px;
  color: var(--text-sub);
  line-height: 1.7;
  margin-bottom: 40px;
}

.landing-sub {
  font-size: 13px;
  color: var(--text-sub);
  margin-top: 16px;
  opacity: 0.6;
}

/* ===== BUTTONS ===== */
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  color: #fff;
  border: none;
  padding: 14px 40px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  font-family: inherit;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(167,139,250,0.3); }

.btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 12px 32px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  font-family: inherit;
}
.btn-secondary:hover { background: rgba(167,139,250,0.1); }

.hidden { display: none !important; }

/* ===== STEP INDICATOR ===== */
.step-indicator {
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

h2 {
  font-family: 'Noto Serif KR', serif;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 32px;
  line-height: 1.4;
}

h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--text);
}

/* ===== CHOICE CARDS ===== */
.choice-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
}

.choice-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
}
.choice-card:hover { border-color: var(--accent); transform: translateY(-2px); }

.choice-icon { font-size: 36px; margin-bottom: 12px; }
.choice-card h3 { font-size: 16px; margin-bottom: 6px; }
.choice-card p { font-size: 13px; color: var(--text-sub); }

/* ===== MBTI GRID ===== */
#mbti-select h3 { text-align: center; margin-bottom: 20px; }

.mbti-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 28px;
}

.mbti-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 14px 8px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  font-family: monospace;
  cursor: pointer;
  transition: all 0.2s;
}
.mbti-btn:hover { border-color: var(--accent); }
.mbti-btn.selected { background: var(--accent); color: #fff; border-color: var(--accent); }

#mbti-next, #test-next, #pref-next { display: block; margin: 0 auto; }

/* ===== MBTI TEST ===== */
.test-q {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
}
.test-q p { font-size: 15px; margin-bottom: 14px; line-height: 1.5; }

.test-options { display: flex; flex-direction: column; gap: 8px; }

.test-opt {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s;
  font-family: inherit;
}
.test-opt:hover { border-color: var(--accent); }
.test-opt.selected { background: rgba(167,139,250,0.15); border-color: var(--accent); color: var(--accent2); }

/* ===== PREFERENCES ===== */
.pref-group { margin-bottom: 28px; }

.pref-options { display: flex; flex-wrap: wrap; gap: 10px; }

.pref-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 11px 18px;
  border-radius: 50px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.pref-btn:hover { border-color: var(--accent); }
.pref-btn.selected { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ===== RESULTS ===== */
.result-header {
  text-align: center;
  padding: 20px 0 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}
.result-header h2 { font-size: 24px; margin-bottom: 12px; }
.result-header p { color: var(--text-sub); font-size: 15px; line-height: 1.7; }

.result-section { margin-bottom: 40px; }
.result-section > h3 { font-size: 18px; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }

/* Music Cards */
.music-list { display: flex; flex-direction: column; gap: 14px; }

.music-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s;
}
.music-card:hover { border-color: var(--accent); transform: translateX(4px); }

.music-info { flex: 1; }
.music-composer { font-size: 12px; color: var(--accent); font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 4px; }
.music-title { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.music-detail { font-size: 13px; color: var(--text-sub); }
.music-tags { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.music-tag { background: var(--surface2); padding: 3px 10px; border-radius: 50px; font-size: 11px; color: var(--text-sub); }

.music-play {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  flex-shrink: 0;
  margin-left: 16px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.music-play:hover { transform: scale(1.1); background: #7c3aed; }

/* Concert Cards */
.concert-list { display: flex; flex-direction: column; gap: 14px; }

.concert-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  transition: all 0.2s;
}
.concert-card:hover { border-color: var(--gold); }

.concert-date {
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  border-radius: 10px;
  padding: 10px 14px;
  text-align: center;
  flex-shrink: 0;
  min-width: 60px;
}
.concert-month { font-size: 11px; font-weight: 700; letter-spacing: 1px; }
.concert-day { font-size: 22px; font-weight: 700; }

.concert-info { flex: 1; }
.concert-title { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.concert-venue { font-size: 13px; color: var(--text-sub); margin-bottom: 4px; }
.concert-genre { font-size: 12px; color: var(--gold); }

.concert-link {
  color: var(--accent);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  align-self: center;
}
.concert-link:hover { text-decoration: underline; }

.result-actions { text-align: center; padding: 20px 0 40px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
  .logo { font-size: 48px; }
  .tagline { font-size: 16px; }
  h2 { font-size: 22px; }
  .choice-cards { grid-template-columns: 1fr; }
  .mbti-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .mbti-btn { padding: 12px 4px; font-size: 13px; }
  .music-card { flex-direction: column; align-items: flex-start; }
  .music-play { margin-left: 0; margin-top: 12px; }
  .container { padding: 28px 16px 48px; }
}
