:root {
  --bg: #f7fbf2;
  --surface: #ffffff;
  --text: #202124;
  --muted: #666f78;
  --line: #dfe6dc;
  --primary: #2d7d68;
  --primary-dark: #1f5f4e;
  --accent: #eeb84b;
  --soft: #e8f3ee;
  --shadow: 0 18px 48px rgba(31, 95, 78, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family:
    "Pretendard",
    "Apple SD Gothic Neo",
    "Noto Sans KR",
    system-ui,
    sans-serif;
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(238, 184, 75, 0.16), transparent 36%),
    linear-gradient(225deg, rgba(45, 125, 104, 0.14), transparent 42%),
    var(--bg);
}

a {
  color: inherit;
}

button,
a.button {
  font: inherit;
}

.page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 18px;
}

.shell {
  width: min(720px, 100%);
  margin: 0 auto;
}

.intro,
.question-panel,
.ad-panel,
.result-panel {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: clamp(28px, 6vw, 52px);
}

.eyebrow,
.tag {
  margin: 0 0 14px;
  color: var(--primary-dark);
  font-weight: 800;
  letter-spacing: 0;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 7vw, 3.5rem);
  line-height: 1.15;
  letter-spacing: 0;
}

.question-panel h1 {
  font-size: clamp(1.55rem, 5vw, 2.5rem);
}

.lead {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.result-title {
  margin: 12px 0 0;
  color: var(--primary-dark);
  font-size: clamp(1.4rem, 4vw, 2rem);
  line-height: 1.3;
}

.result-subtitle {
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.6;
}

.result-detail {
  display: grid;
  gap: 18px;
  margin-top: 28px;
  line-height: 1.7;
}

.result-detail p {
  margin: 0;
}

.result-detail h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.result-detail ul {
  margin: 0;
  padding-left: 20px;
}

.meme-title,
.parent-point,
.fun-line {
  padding: 14px 16px;
  border-radius: 8px;
  background: #f9faf8;
  font-weight: 800;
}

.hashtags {
  color: var(--primary-dark);
  font-weight: 800;
}

.share-message {
  min-height: 24px;
  margin: 14px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: 8px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
}

.button.primary {
  color: #ffffff;
  background: var(--primary);
}

.button.primary:hover {
  background: var(--primary-dark);
}

.button.secondary {
  color: var(--primary-dark);
  background: var(--soft);
  border-color: var(--line);
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}

.text-link {
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
}

.count {
  color: var(--muted);
  font-weight: 800;
}

.progress {
  width: 100%;
  height: 10px;
  overflow: hidden;
  border-radius: 8px;
  background: #eef2ea;
  margin-bottom: 30px;
}

.progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width 180ms ease;
}

.answer-list {
  display: grid;
  gap: 12px;
  margin-top: 30px;
}

.answer-button {
  width: 100%;
  min-height: 68px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: #ffffff;
  text-align: left;
  font-weight: 800;
  cursor: pointer;
}

.answer-button:hover,
.answer-button:focus-visible {
  border-color: var(--primary);
  outline: 3px solid rgba(45, 125, 104, 0.16);
}

.answer-button.selected {
  border-color: var(--primary);
  background: var(--soft);
}

.ad-box {
  display: grid;
  min-height: 220px;
  margin-top: 28px;
  border: 1px dashed #a9b7af;
  color: var(--muted);
}

.ad-box p {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 800;
}

.score-list {
  display: grid;
  gap: 10px;
  margin: 30px 0 0;
}

.score-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
}

.score-item dt {
  font-weight: 900;
}

.score-item dd {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 520px) {
  .page {
    align-items: flex-start;
    padding-top: 18px;
  }

  .intro,
  .question-panel,
  .ad-panel,
  .result-panel {
    padding: 24px 18px;
  }

  .action-row,
  .button {
    width: 100%;
  }
}
