/* 필드핏 FieldFit — 스타일 v1
   공통규칙: 저자극 차분한 색, 큰 버튼, 시간 압박 없음 */

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

:root {
  --ivory: #FBF6EC;
  --ink: #3B3630;
  --sub: #7A7266;
  --mint: #DDEFE4;
  --mint-deep: #4FA07A;
  --card: #FFFFFF;
  --line: #E8DFCE;
  --accent: #E8833A;
}

html { font-size: 16px; }
body {
  font-family: 'Pretendard', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  background: var(--ivory);
  color: var(--ink);
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

.screen { display: none; min-height: 100vh; }
.screen.active { display: block; }
.wrap { max-width: 480px; margin: 0 auto; padding: 24px 20px 48px; }
.center { text-align: center; }
.hidden { display: none !important; }
.en { font-size: 0.7em; color: var(--sub); font-weight: 500; letter-spacing: 0.06em; }

/* ---------- 시작 화면 ---------- */
.hero { width: 68%; max-width: 300px; display: block; margin: 8px auto 16px; border-radius: 24px; }
.brand { text-align: center; font-size: 2rem; letter-spacing: -0.02em; }
.brand-desc { text-align: center; color: var(--sub); margin: 10px 0 24px; font-size: 0.95rem; }

.passport-form { background: var(--card); border: 2px dashed var(--line); border-radius: 20px; padding: 20px; }
.passport-form label { font-size: 0.85rem; color: var(--sub); display: block; margin-bottom: 6px; }
.passport-form input {
  width: 100%; font-size: 1.1rem; padding: 13px 14px; border: 1.5px solid var(--line);
  border-radius: 12px; background: var(--ivory); margin-bottom: 14px; outline: none;
}
.passport-form input:focus { border-color: var(--mint-deep); }

/* 버튼 — 크게, 간격 넉넉히 */
.btn {
  display: block; width: 100%; border: none; cursor: pointer;
  font-size: 1.05rem; font-weight: 700; padding: 16px 18px;
  border-radius: 16px; margin: 12px 0 0; font-family: inherit;
  transition: transform 0.08s ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--mint-deep); color: #fff; }
.btn-second { background: var(--mint); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--sub); font-weight: 500; font-size: 0.9rem; }

.disclaimer { font-size: 0.72rem; color: #A89E90; text-align: center; margin-top: 22px; }
.footer { font-size: 0.72rem; color: #C2B8A8; text-align: center; margin-top: 10px; }

/* ---------- 지도 (여권 페이지) ---------- */
.map-head { text-align: center; margin-bottom: 18px; }
.map-head h2 { font-size: 1.4rem; }
.map-progress { color: var(--sub); font-size: 0.9rem; margin-top: 4px; }

.stamp-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 20px; }
.stamp-cell {
  background: var(--card); border: 2px dashed var(--line); border-radius: 18px;
  padding: 14px 10px 12px; text-align: center; cursor: pointer;
  transition: transform 0.08s ease;
}
.stamp-cell:active { transform: scale(0.97); }
.stamp-cell img { width: 78%; aspect-ratio: 1; object-fit: contain; display: block; margin: 0 auto 6px; }
.stamp-cell .cell-name { font-size: 0.92rem; font-weight: 700; }
.stamp-cell .cell-place { font-size: 0.72rem; color: var(--sub); }
.stamp-cell.todo img { filter: grayscale(1) opacity(0.28); }
.stamp-cell.done { border-style: solid; border-color: var(--mint-deep); }
.stamp-cell.done .cell-name::after { content: ' ✓'; color: var(--mint-deep); }

/* ---------- 분야 화면 ---------- */
.field-card { background: var(--card); border-radius: 20px; padding: 24px 20px; border: 1.5px solid var(--line); }
.field-tag {
  display: inline-block; font-size: 0.78rem; font-weight: 700; color: #fff;
  padding: 4px 12px; border-radius: 999px; margin-bottom: 12px;
}
.field-place { font-size: 1.25rem; font-weight: 800; margin-bottom: 8px; }
.field-scene { width: 100%; border-radius: 14px; margin: 4px 0 12px; display: block; }
.field-intro { color: var(--sub); font-size: 0.95rem; margin-bottom: 4px; }
.situ-no { font-size: 0.8rem; color: var(--sub); margin-bottom: 6px; }
.situ-text { font-size: 1.05rem; font-weight: 600; margin-bottom: 16px; }
.choice-btn {
  display: block; width: 100%; text-align: left; font-family: inherit;
  font-size: 0.98rem; line-height: 1.5; padding: 15px 16px; margin: 10px 0;
  background: var(--ivory); border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer;
  color: var(--ink);
}
.choice-btn:active { background: var(--mint); }
.choice-note {
  background: var(--mint); border-radius: 14px; padding: 14px 16px;
  font-size: 0.92rem; margin: 14px 0;
}

/* ---------- 스탬프 획득 ---------- */
.stamp-get-label { margin-top: 12vh; font-size: 1rem; color: var(--sub); letter-spacing: 0.2em; }
.stamp-big { width: 62%; max-width: 260px; margin: 14px auto; display: block; }
#stamp-name { margin-bottom: 24px; }
.pop { animation: pop 0.45s cubic-bezier(0.2, 1.6, 0.4, 1); }
@keyframes pop {
  0% { transform: scale(0.2) rotate(-14deg); opacity: 0; }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}

/* ---------- 리포트 ---------- */
.report-hello { text-align: center; margin-bottom: 20px; }
.report-hello h2 { font-size: 1.5rem; }
.report-hello p { color: var(--sub); font-size: 0.92rem; }

.rank-card { background: var(--card); border-radius: 20px; border: 1.5px solid var(--line); padding: 20px; margin-bottom: 14px; }
.rank-card.first { border-width: 2.5px; }
.rank-row { display: flex; align-items: center; gap: 14px; }
.rank-row img { width: 84px; height: 84px; object-fit: contain; flex-shrink: 0; }
.rank-card.first .rank-row img { width: 110px; height: 110px; }
.rank-no { font-size: 0.78rem; font-weight: 800; color: var(--sub); letter-spacing: 0.1em; }
.rank-name { font-size: 1.2rem; font-weight: 800; }
.rank-phrase { font-size: 0.85rem; font-weight: 700; }
.score-bar { height: 10px; background: var(--ivory); border-radius: 999px; margin: 10px 0 4px; overflow: hidden; }
.score-fill { height: 100%; border-radius: 999px; }
.rank-blurb { font-size: 0.92rem; margin-top: 10px; }
.rank-tip { font-size: 0.85rem; background: var(--ivory); border-radius: 12px; padding: 10px 12px; margin-top: 10px; color: var(--sub); }
.rest-list { margin: 6px 0 20px; }
.rest-item { display: flex; justify-content: space-between; padding: 9px 6px; border-bottom: 1px dashed var(--line); font-size: 0.92rem; color: var(--sub); }

.wellfit-link { background: var(--mint); border-radius: 20px; padding: 18px; margin-top: 20px; }
.wellfit-link h3 { font-size: 1.05rem; margin-bottom: 4px; }
.wellfit-link p { font-size: 0.85rem; color: var(--sub); margin-bottom: 10px; }
.wellfit-link select {
  width: 100%; font-size: 1rem; padding: 12px; border-radius: 12px;
  border: 1.5px solid var(--line); background: #fff; font-family: inherit;
}
.wellfit-comment { margin-top: 10px; font-size: 0.95rem; font-weight: 600; color: var(--ink) !important; }

@media (min-width: 720px) {
  html { font-size: 17px; }
  .stamp-grid { grid-template-columns: repeat(4, 1fr); }
}
