/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #ff6b9d;
  --primary-dark: #e85a8a;
  --secondary: #ffd93d;
  --accent: #6bcb77;
  --bg-gradient: linear-gradient(135deg, #fff5f8 0%, #fff9e6 50%, #f0fff4 100%);
  --card-bg: rgba(255, 255, 255, 0.9);
  --text-primary: #2d3436;
  --text-secondary: #636e72;
  --shadow: 0 10px 40px rgba(255, 107, 157, 0.2);
  --shadow-hover: 0 15px 50px rgba(255, 107, 157, 0.3);
}

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

.container {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
  min-height: calc(100vh - 60px);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Screens */
.screen {
  display: none;
  width: 100%;
  animation: fadeIn 0.5s ease;
}

.screen.active {
  display: block;
}

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

/* Start Screen */
.hero {
  text-align: center;
  padding: 40px 20px;
  background: var(--card-bg);
  border-radius: 30px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.hero-icon {
  font-size: 80px;
  margin-bottom: 20px;
  animation: bounce 2s ease-in-out infinite;
}

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

.hero h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 15px;
  background: linear-gradient(135deg, var(--primary), #ff8c42);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 30px;
  line-height: 1.6;
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border: none;
  padding: 16px 40px;
  font-size: 1.1rem;
  font-weight: 500;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: inherit;
  box-shadow: 0 5px 20px rgba(255, 107, 157, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(255, 107, 157, 0.5);
}

.btn-secondary {
  background: white;
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 14px 35px;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

.btn-secondary:hover {
  background: var(--primary);
  color: white;
}

.btn-icon {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.btn-primary:hover .btn-icon {
  transform: translateX(5px);
}

/* Dessert Preview */
.dessert-preview {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
  font-size: 2.5rem;
}

.dessert-preview span {
  animation: float 3s ease-in-out infinite;
}

.dessert-preview span:nth-child(1) { animation-delay: 0s; }
.dessert-preview span:nth-child(2) { animation-delay: 0.2s; }
.dessert-preview span:nth-child(3) { animation-delay: 0.4s; }
.dessert-preview span:nth-child(4) { animation-delay: 0.6s; }
.dessert-preview span:nth-child(5) { animation-delay: 0.8s; }

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

/* Quiz Screen */
.progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 107, 157, 0.2);
  border-radius: 10px;
  margin-bottom: 30px;
  overflow: hidden;
}

.progress {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 10px;
  transition: width 0.5s ease;
}

.quiz-container {
  background: var(--card-bg);
  border-radius: 30px;
  padding: 40px 30px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.question-number {
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 15px;
  font-size: 0.95rem;
}

.question {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 30px;
  line-height: 1.5;
  color: var(--text-primary);
}

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

.option {
  background: white;
  border: 2px solid #f0f0f0;
  padding: 18px 25px;
  border-radius: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  text-align: left;
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 15px;
}

.option:hover {
  border-color: var(--primary);
  background: #fff5f8;
  transform: translateX(5px);
}

.option-icon {
  font-size: 1.5rem;
}

/* Result Screen */
.result-container {
  background: var(--card-bg);
  border-radius: 30px;
  padding: 50px 30px;
  text-align: center;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.result-icon {
  font-size: 100px;
  margin-bottom: 20px;
  animation: celebrate 1s ease-in-out;
}

.result-image {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

@keyframes celebrate {
  0% {
    transform: scale(0) rotate(-180deg);
  }
  50% {
    transform: scale(1.2) rotate(10deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
  }
}

.result-title {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
  font-weight: 400;
}

.result-name {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--primary), #ff8c42);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.result-description {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 25px;
}

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

.tag {
  background: linear-gradient(135deg, #fff5f8, #fff9e6);
  color: var(--primary);
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
}

.result-tip {
  background: linear-gradient(135deg, #f0fff4, #e8f5e9);
  padding: 20px;
  border-radius: 15px;
  margin-bottom: 30px;
  font-size: 0.95rem;
  color: #2e7d32;
  line-height: 1.6;
}

.result-tip::before {
  content: "💡 ";
}

.button-group {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Footer */
footer {
  text-align: center;
  padding: 20px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.6rem;
  }

  .subtitle {
    font-size: 1rem;
  }

  .question {
    font-size: 1.2rem;
  }

  .result-name {
    font-size: 1.8rem;
  }

  .btn-primary, .btn-secondary {
    padding: 14px 30px;
    font-size: 1rem;
  }

  .dessert-preview {
    font-size: 2rem;
  }

  .result-icon {
    font-size: 80px;
  }

  .result-image {
    width: 160px;
    height: 160px;
  }
}
