@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700&display=swap");

:root {
  --primary-color: #ff8a80;
  --bg-color: #fff9f9;
  --accent-color: #ffcc80;
  --text-color: #5d4037;
  --card-bg: #ffffff;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

body {
  font-family: 'Noto Sans KR', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  margin: 0;
  padding: 1rem;
}

.container {
  max-width: 800px;
  margin: 0 auto;
}

header {
  text-align: center;
  padding: 3rem 0;
}

header h1 {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

header p {
  font-size: 1rem;
  color: #8d6e63;
}

.main-content {
  background: var(--card-bg);
  padding: 2.5rem;
  border-radius: 25px;
  box-shadow: var(--shadow);
}

h3 {
  margin-bottom: 1.5rem;
  font-weight: 500;
  color: #795548;
}

.age-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  margin-bottom: 3rem;
}

.age-btn {
  background: #fdf2f2;
  border: 1px solid #ffebee;
  padding: 0.8rem 1.2rem;
  border-radius: 50px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 500;
  color: #8d6e63;
  transition: all 0.2s ease;
}

.age-btn:hover {
  background: #ffebee;
}

.age-btn.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  box-shadow: 0 4px 10px rgba(255, 138, 128, 0.3);
}

.play-result {
  min-height: 200px;
}

.empty-state {
  text-align: center;
  padding: 3rem;
  color: #bcaaa4;
  border: 2px dashed #efebe9;
  border-radius: 15px;
}

.result-card {
  animation: fadeIn 0.4s ease-out;
}

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

.result-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #efebe9;
}

.range-badge {
  display: inline-block;
  background: var(--accent-color);
  color: white;
  padding: 0.3rem 1rem;
  border-radius: 20px;
  font-weight: bold;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.stage-desc {
  font-size: 1.1rem;
  color: #795548;
  font-weight: 500;
}

h4 {
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
  color: #4e342e;
  border-left: 4px solid var(--primary-color);
  padding-left: 0.8rem;
}

.activity-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-bottom: 2.5rem;
}

.activity-item strong {
  display: block;
  font-size: 1.05rem;
  color: var(--primary-color);
  margin-bottom: 0.2rem;
}

.activity-item p {
  font-size: 0.95rem;
  color: #6d4c41;
}

.toy-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.toy-tag {
  background: #fff3e0;
  color: #e65100;
  padding: 0.4rem 1rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
}

.home-link {
  display: block;
  text-align: center;
  margin-top: 3rem;
  color: #bcaaa4;
  text-decoration: none;
  font-size: 0.9rem;
}

.home-link:hover {
  color: var(--primary-color);
}