:root {
  --bg-gradient: linear-gradient(135deg, #0a0a1a 0%, #0d0d2b 40%, #0a0a1a 100%);
  --text-color: #e8e8ff;
  --primary-color: #6020d0;
  --secondary-color: #ff6bff;
  --accent-color: #7777ff;
  --glass-border: rgba(120, 120, 255, 0.12);
  --glass-bg: rgba(255, 255, 255, 0.03);
}

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

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

/* Background Effects */
.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(100, 100, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(100, 100, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

.orb {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(40px);
}

.orb-1 {
  top: 20%;
  left: 10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(120, 0, 255, 0.08) 0%, transparent 70%);
}

.orb-2 {
  bottom: 20%;
  right: 10%;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(0, 200, 255, 0.06) 0%, transparent 70%);
}

#app {
  position: relative;
  z-index: 1;
}

/* ... (existing styles) ... */

/* Footer */
.site-footer {
  width: 100%;
  padding: 60px 20px;
  background: rgba(10, 10, 26, 0.95);
  border-top: 1px solid rgba(120, 120, 255, 0.1);
  margin-top: auto;
  position: relative;
  z-index: 10;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.footer-brand {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #ffffff, #a0a0ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-desc {
  font-size: 14px;
  color: #7777aa;
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.footer-links {
  font-size: 13px;
  color: #555577;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #7777aa;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #b0a0ff;
  text-decoration: underline;
}

.divider {
  color: #333344;
}

/* Adjust layout for Footer */
#app {
  flex: 1; /* Allow content to grow */
  display: flex;
  flex-direction: column;
}

body {
  display: flex;
  flex-direction: column;
}

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

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Intro Section */
.intro-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
}

.intro-eyebrow {
  fontSize: 13px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent-color);
  margin-bottom: 24px;
  font-weight: 600;
}

.intro-title {
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #ffffff 0%, #a0a0ff 50%, #ff6bff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -2px;
}

.intro-subtitle {
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 40px;
  background: linear-gradient(135deg, #ff6bff 0%, #6bffff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -2px;
}

.intro-desc {
  font-size: 17px;
  line-height: 1.8;
  color: #9999cc;
  margin-bottom: 48px;
}

.feature-grid {
  display: flex;
  gap: 32px;
  justify-content: center;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(120, 120, 255, 0.3);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  background: rgba(120, 120, 255, 0.05);
}

.primary-btn {
  padding: 18px 64px;
  background: linear-gradient(135deg, #6020d0, #9040f0);
  border: none;
  border-radius: 50px;
  color: white;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 1px;
  box-shadow: 0 0 40px rgba(120, 40, 255, 0.4), 0 4px 20px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
}

.primary-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 0 60px rgba(120, 40, 255, 0.6), 0 8px 30px rgba(0, 0, 0, 0.5);
}

.primary-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: rgba(120, 120, 255, 0.1);
  box-shadow: none;
  color: #555577;
}

/* Quiz Section */
.quiz-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.progress-bar-wrap {
  width: 100%;
  max-width: 680px;
  margin-bottom: 40px;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 13px;
  color: #7777aa;
}

.progress-track {
  height: 3px;
  background: rgba(120, 120, 255, 0.15);
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #6020d0, #ff6bff);
  border-radius: 2px;
  transition: width 0.5s ease;
  box-shadow: 0 0 10px rgba(255, 100, 255, 0.5);
}

.quiz-content {
  width: 100%;
  max-width: 680px;
}

.question-header {
  text-align: center;
  margin-bottom: 40px;
}

.question-emoji {
  font-size: 52px;
  margin-bottom: 16px;
}

.question-text {
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 800;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #ffffff, #a0a0ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  margin-bottom: 32px;
}

.option-btn {
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(120, 120, 255, 0.12);
  border-radius: 16px;
  color: #e8e8ff;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.option-btn:hover {
  border-color: rgba(120, 120, 255, 0.3);
  background: rgba(255, 255, 255, 0.05);
}

.option-btn.selected {
  background: linear-gradient(135deg, rgba(96, 32, 208, 0.4), rgba(144, 64, 240, 0.3));
  border-color: rgba(150, 100, 255, 0.7);
  box-shadow: 0 0 20px rgba(120, 60, 255, 0.2), inset 0 0 20px rgba(120, 60, 255, 0.05);
}

.check-mark {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, #6020d0, #ff6bff);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

/* Loading */
.loading-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.spinner {
  width: 80px;
  height: 80px;
  border: 3px solid rgba(120, 120, 255, 0.1);
  border-top: 3px solid #9040f0;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Results */
.results-container {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.tags-wrap {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.tag {
  padding: 6px 16px;
  background: rgba(96, 32, 208, 0.2);
  border: 1px solid rgba(150, 100, 255, 0.3);
  border-radius: 20px;
  font-size: 13px;
  color: #b0a0ff;
}

.anime-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 60px;
}

.anime-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(120, 120, 255, 0.1);
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  /* opacity: 0; removed */
}

.anime-card:hover {
  transform: translateY(-6px);
  border-color: rgba(150, 100, 255, 0.4);
  box-shadow: 0 20px 60px rgba(96, 32, 208, 0.2);
}

.cover-wrap {
  position: relative;
  padding-bottom: 145%;
  overflow: hidden;
}

.cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.anime-card:hover .cover-img {
  transform: scale(1.05);
}

.score-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(10, 10, 26, 0.85);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 13px;
  font-weight: 700;
  color: #FFD700;
  backdrop-filter: blur(8px);
}

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
}

.card-body { padding: 20px; }

.title-row {
  display: flex;
  gap: 14px;
  margin-bottom: 14px;
}

.thumb-img {
  width: 56px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  border: 1px solid rgba(120, 120, 255, 0.2);
}

.anime-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
  color: #e8e8ff;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.meta-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.meta-chip {
  font-size: 12px;
  padding: 3px 10px;
  background: rgba(120, 120, 255, 0.1);
  border: 1px solid rgba(120, 120, 255, 0.15);
  border-radius: 20px;
  color: #9090cc;
}

.genre-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.genre-chip {
  font-size: 11px;
  padding: 2px 8px;
  background: rgba(96, 32, 208, 0.15);
  border-radius: 4px;
  color: #a090dd;
}

.anime-desc {
  font-size: 13px;
  color: #7777aa;
  line-height: 1.6;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.cta-box {
  margin-top: 14px;
  padding: 10px;
  background: linear-gradient(135deg, rgba(96, 32, 208, 0.3), rgba(144, 64, 240, 0.2));
  border-radius: 10px;
  text-align: center;
  font-size: 13px;
  color: #b0a0ff;
  font-weight: 600;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.anime-card:hover .cta-box {
  opacity: 1;
  transform: translateY(0);
}

.restart-btn {
  padding: 16px 48px;
  background: transparent;
  border: 1px solid rgba(150, 100, 255, 0.4);
  border-radius: 50px;
  color: #b0a0ff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.restart-btn:hover {
  background: rgba(120, 60, 255, 0.15);
  border-color: rgba(150, 100, 255, 0.7);
}