@font-face {
  font-family: 'GangwonEduSaeeum_OTFMediumA';
  src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_2201-2@1.0/GangwonEduSaeeum_OTFMediumA.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

:root {
  --mint-100: #ebfff5;
  --mint-300: #c7f6df;
  --mint-500: #8adfb7;
  --lavender-100: #f5f1ff;
  --lavender-400: #d6c6ff;
  --beige-100: #fff7e2;
  --ink: #222222;
  --muted: #4c5462;
  --line: #dce2ec;
  --surface: #ffffff;
  --shadow: 0 14px 28px rgba(61, 86, 119, 0.16);
  --shadow-soft: 0 10px 20px rgba(61, 86, 119, 0.12);
  --focus: rgba(42, 127, 255, 0.45);
  --accent: linear-gradient(135deg, #a4f0d2 0%, #e2d7ff 100%);
  --accent-strong: linear-gradient(135deg, #8ce4c4 0%, #bca8ff 100%);
  --danger: #ff6b6b;
  color-scheme: only light;
}

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

html, body {
  min-height: 100vh;
  background: radial-gradient(800px 500px at 20% 0%, rgba(164, 240, 210, 0.18) 0%, transparent 70%),
              radial-gradient(900px 600px at 80% 0%, rgba(226, 215, 255, 0.18) 0%, transparent 70%),
              #f7f9fc;
  font-family: 'GangwonEduSaeeum_OTFMediumA', Arial, sans-serif;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
}
/* =========================
   Navigation
========================= */
nav {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  z-index: 1000;
}
nav ul {
  list-style: none;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin: 0;
  padding: 10px 20px;
}
nav ul li { display: inline; }
nav ul li a {
  color: var(--ink);
  text-decoration: none;
  padding: 8px 12px;
  font-size: 14px;
  border-radius: 10px;
}
nav ul li a:hover {
  background: #f2f6ff;
  color: #0b67c6;
}

.ad-container,
.footer-ad-container {
  width: 100%;
  min-height: 90px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 60px;
}

.footer-ad-container {
  margin-top: 32px;
  margin-bottom: 40px;
}

.adsbygoogle {
  display: block;
  width: 100%;
  height: auto !important;
}

#app {
  width: 360px;
  height: 550px;
  position: relative;
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.6);
  overflow: hidden;
  margin-top: 12px;
}

.screen {
  position: absolute;
  inset: 0;
  display: none;
  padding: 24px 22px;
  background:
    radial-gradient(600px 380px at 50% -20%, rgba(226, 215, 255, 0.35) 0%, transparent 70%),
    radial-gradient(420px 360px at 50% 100%, rgba(255, 247, 226, 0.45) 0%, transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.95) 100%);
}

.screen.active {
  display: block;
}

.card {
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(164, 240, 210, 0.6) transparent;
}

.card::-webkit-scrollbar {
  width: 6px;
}

.card::-webkit-scrollbar-thumb {
  background: rgba(164, 240, 210, 0.7);
  border-radius: 999px;
}

.intro-card {
  background: linear-gradient(180deg, rgba(164, 240, 210, 0.55) 0%, rgba(226, 215, 255, 0.55) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
  gap: 20px;
}

.intro-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.badge {
  align-self: flex-end;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  color: var(--muted);
  box-shadow: 0 10px 20px rgba(61, 86, 119, 0.15);
}

.intro-desc {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.5;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field label,
.form-field legend {
  font-size: 16px;
  color: var(--ink);
}

input[type="text"] {
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  border-radius: 14px;
  padding: 12px 16px;
  font-size: 16px;
  background: rgba(255, 255, 255, 0.85);
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

input[type="text"]:focus {
  outline: none;
  border-color: rgba(138, 223, 183, 0.9);
  box-shadow: 0 0 0 4px rgba(138, 223, 183, 0.25);
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.radio-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
  border: 1.5px solid rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: transform 0.2s ease, border 0.2s ease, box-shadow 0.2s ease;
}

.radio-option input {
  width: 18px;
  height: 18px;
}

.radio-option:hover,
.radio-option:has(input:focus-visible) {
  border-color: rgba(226, 215, 255, 0.9);
  box-shadow: var(--shadow-soft);
  transform: translateY(-1px);
}

.radio-option input:checked + span {
  color: var(--ink);
  font-weight: 700;
}

.form-hint {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

.primary-btn,
.secondary-btn,
.accent-btn,
.pill-btn {
  border: none;
  border-radius: 999px;
  font-size: 16px;
  padding: 12px 20px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, filter 0.2s ease;
  font-family: inherit;
  min-height: 44px;
}

.primary-btn {
  background: var(--accent);
  color: var(--ink);
  font-weight: 700;
  box-shadow: var(--shadow-soft);
}

.primary-btn:hover,
.primary-btn:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.05);
  outline: none;
}

.secondary-btn {
  background: rgba(255, 255, 255, 0.8);
  border: 1.5px solid rgba(164, 240, 210, 0.7);
  color: var(--muted);
}

.secondary-btn:hover,
.secondary-btn:focus-visible {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.95);
  outline: none;
}

.accent-btn {
  background: var(--accent-strong);
  color: var(--ink);
  font-weight: 700;
  box-shadow: var(--shadow);
}

.accent-btn:hover,
.accent-btn:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.04);
  outline: none;
}

.quiz-card {
  gap: 18px;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.progress-label {
  font-size: 18px;
  font-weight: 700;
}

.progress-percent {
  font-size: 14px;
  color: var(--muted);
}

.progress-score {
  font-size: 14px;
  color: var(--muted);
}

.progress-bar {
  width: 100%;
  height: 12px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  overflow: hidden;
}

#progress-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #a4f0d2 0%, #e2d7ff 100%);
  transition: width 0.3s ease;
}

.question-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#question-title {
  font-size: 18px;
  color: var(--muted);
}

.question-text {
  font-size: 20px;
  line-height: 1.6;
  color: var(--ink);
}

.likert-options {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.likert-option {
  position: relative;
  display: block;
}

.likert-option input {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.option-shell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 6px;
  border-radius: 14px;
  border: 1.5px solid rgba(226, 215, 255, 0.4);
  background: rgba(255, 255, 255, 0.85);
  transition: transform 0.2s ease, border 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.option-value {
  font-size: 16px;
  font-weight: 700;
  color: var(--muted);
}

.option-label {
  font-size: 11px;
  text-align: center;
  color: rgba(76, 84, 98, 0.85);
  line-height: 1.3;
}

.likert-option:hover .option-shell {
  transform: translateY(-2px);
  border-color: rgba(164, 240, 210, 0.6);
}

.likert-option input:checked + .option-shell {
  background: linear-gradient(180deg, rgba(164, 240, 210, 0.65) 0%, rgba(226, 215, 255, 0.75) 100%);
  border-color: rgba(138, 223, 183, 0.9);
  box-shadow: var(--shadow-soft);
}

.likert-option input:focus-visible + .option-shell {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.likert-option input:checked + .option-shell .option-value {
  color: var(--ink);
}

.scale-extremes {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}

.helper {
  min-height: 18px;
  font-size: 13px;
  color: var(--danger);
}

/* 중앙 정렬 컨테이너 */
.nav-buttons{
  display:flex; justify-content:center; align-items:center;
  gap:10px; flex-wrap:wrap; margin-top:10px;
}

/* 동일 크기 보장 */
.nav-buttons .nav-btn{
  min-width:108px; min-height:44px;
  display:inline-flex; justify-content:center; align-items:center;
}


.result-card {
  gap: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(164, 240, 210, 0.25) 100%);
}

.result-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.result-greeting {
  font-size: 16px;
  color: var(--muted);
}

#result-title {
  font-size: 22px;
  line-height: 1.4;
}

.score-summary {
  display: flex;
  gap: 12px;
}

.score-chip {
  flex: 1;
  padding: 16px 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.85);
  border: 1.5px solid rgba(226, 215, 255, 0.6);
  text-align: center;
  box-shadow: 0 12px 20px rgba(164, 240, 210, 0.25);
}

.score-label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 4px;
}

.score-value {
  font-size: 22px;
  font-weight: 700;
}

.level-summary {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 18px;
  padding: 16px;
  border: 1.5px solid rgba(164, 240, 210, 0.6);
  box-shadow: 0 10px 16px rgba(61, 86, 119, 0.1);
}

.level-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}

.level-desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}

.tips h3,
.products h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

#tips-list {
  list-style: disc;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 15px;
  color: var(--muted);
}

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

.product-card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  border: 1.5px solid rgba(226, 215, 255, 0.6);
  padding: 16px;
  box-shadow: 0 10px 18px rgba(164, 240, 210, 0.25);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-card h4 {
  font-size: 16px;
  color: var(--ink);
}

.product-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.product-card a {
  align-self: flex-start;
  text-decoration: none;
  background: var(--accent);
  color: var(--ink);
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 999px;
  transition: transform 0.2s ease, filter 0.2s ease;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.product-card a:hover,
.product-card a:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.05);
  outline: none;
}

.disclaimer {
  font-size: 12px;
  color: rgba(34, 34, 34, 0.85);
  display: flex;
  flex-direction: column;
  gap: 8px;
  line-height: 1.5;
}

.bottom-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.pill-btn {
  background: rgba(255, 255, 255, 0.85);
  border: 1.5px solid rgba(226, 215, 255, 0.6);
  color: var(--muted);
  font-size: 15px;
  padding: 10px 18px;
}

.pill-btn:hover,
.pill-btn:focus-visible {
  transform: translateY(-1px);
  background: rgba(164, 240, 210, 0.2);
  outline: none;
}

fieldset { border: 0; padding: 0; margin: 0; }
/* 라디오 주변에 남는 선이 있다면 해당 요소의 border도 제거 */
.radio-group,
.radio-option { border-color: transparent; }

/* 라벨 텍스트 숨김 (숫자만 보이게) */
.option-label { display: none; }

/* 점수 방향 그라데이션 바 */
.scale-gradient{
  width:100%; height:8px; border-radius:999px; margin:4px 0 6px;
  background:linear-gradient(90deg, rgba(164,240,210,.9) 0%, rgba(226,215,255,.9) 100%);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.8);
}
.scale-extremes{
  display:flex; justify-content:space-between; font-size:12px; color:#666;
}

#intro-form {
  display: flex;
  flex-direction: column;
  gap: 15px;             /* 폼 내부 요소들 사이 간격 */
}

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

.product-card{
  display: grid;
  grid-template-columns: 84px 1fr;   /* 썸네일 + 텍스트 */
  gap: 12px;
  align-items: center;
  background: rgba(255,255,255,.9);
  border: 1.5px solid rgba(226,215,255,.6);
  border-radius: 18px;
  padding: 12px;
  box-shadow: 0 10px 18px rgba(164,240,210,.25);
}

.product-img{
  width: 84px; height: 84px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.06);
  background: #fff;
}

.product-text h4{ font-size: 16px; color: #222; margin-bottom: 4px; }
.product-text p{ font-size: 14px; color: #666; margin-bottom: 8px; line-height: 1.45; }

.product-text a{
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 40px; padding: 10px 16px;
  border-radius: 999px; text-decoration: none;
  background: linear-gradient(135deg,#a4f0d2 0%,#e2d7ff 100%);
  color: #222; font-weight: 700;
}

@media (max-width: 420px) {
  nav ul {
    justify-content: flex-end;
  }

  .ad-container {
    margin-top: 64px;
  }
}
