@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css');

:root {
  /* 바탕: 페이지마다 다르게, 명도·채도는 같은 띠 안에서 */
  --bg-sage: #e6ece0;
  --bg-oat: #f2ebde;
  --bg-mist: #e1e9ec;
  --bg-paper: #f8f5ef;
  --paper: #fffdf9;

  --ink: #1d2721;
  --ink-2: #4d5a52;
  --ink-3: #87918a;
  --line: #d6d2c6;
  --line-2: #e7e2d6;

  /* 주 색 (잔디) */
  --grass: #16794a;
  --grass-d: #0f5a37;
  --grass-2: #d5e6d6;
  --grass-3: #b9d5ba;

  /* 시각화 범주색 (검증 통과: 녹/주황/청) */
  --c1: #16794a;
  --c2: #f08a4b;
  --c3: #3358a8;
  --c0: #cbc6b9;   /* 기타·무응답 */

  --sans: 'Pretendard', 'Malgun Gothic', sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: #cfcabf; }
body { font-family: var(--sans); color: var(--ink); font-size: 15px; line-height: 1.5; word-break: keep-all; -webkit-font-smoothing: antialiased; }
.num { font-variant-numeric: tabular-nums; }

/* 휴대폰 화면 틀 */
.screen { width: 390px; min-height: 844px; position: relative; overflow: hidden; display: flex; flex-direction: column; }
.screen.sage { background: var(--bg-sage); }
.screen.oat { background: var(--bg-oat); }
.screen.mist { background: var(--bg-mist); }
.screen.paper { background: var(--bg-paper); }

.status { height: 44px; display: flex; align-items: center; justify-content: space-between; padding: 0 24px; font-size: 14px; font-weight: 600; }
.status .r { display: flex; gap: 6px; align-items: center; }
.status .bat { width: 24px; height: 11px; border: 1.5px solid var(--ink); border-radius: 3px; position: relative; }
.status .bat::after { content: ''; position: absolute; inset: 1.5px; right: 6px; background: var(--ink); border-radius: 1px; }

.tag { position: absolute; right: 10px; bottom: 8px; font-size: 10px; color: var(--ink-3); letter-spacing: -.01em; z-index: 5; }

/* 상단 진행 영역 */
.top { padding: 6px 20px 0; }
.top .row { display: flex; align-items: center; justify-content: space-between; height: 40px; }
.top .back { width: 36px; height: 36px; display: grid; place-items: center; margin-left: -8px; color: var(--ink); }
.top .back svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; }
.top .count { font-size: 14px; font-weight: 700; }
.top .count span { color: var(--ink-3); font-weight: 500; }
.top .sec { font-size: 13px; color: var(--ink-2); }
.steps { display: grid; grid-template-columns: 6fr 8fr 6fr 4fr; gap: 4px; margin-top: 6px; }
.steps i { display: block; height: 6px; border-radius: 3px; background: rgba(29,39,33,.12); position: relative; overflow: hidden; }
.steps i b { position: absolute; left: 0; top: 0; bottom: 0; background: var(--grass); border-radius: 3px; }
.steps-lb { display: grid; grid-template-columns: 6fr 8fr 6fr 4fr; gap: 4px; margin-top: 6px; font-size: 11px; color: var(--ink-3); }
.steps-lb .on { color: var(--grass-d); font-weight: 700; }

/* 문항 */
.q { padding: 28px 24px 0; }
.q .kind { display: inline-block; font-size: 12px; font-weight: 700; color: var(--grass-d); background: var(--grass-2); padding: 3px 8px; border-radius: 4px; }
.q h1 { font-size: 23px; line-height: 1.38; font-weight: 700; letter-spacing: -.03em; margin-top: 12px; }
.q .help { font-size: 14px; color: var(--ink-2); margin-top: 8px; }

/* 하단 이동 */
.nav { margin-top: auto; padding: 14px 20px 30px; display: grid; grid-template-columns: 104px 1fr; gap: 10px; }
.btn { height: 54px; border-radius: 8px; border: 0; font: 700 16px var(--sans); display: grid; place-items: center; }
.btn.ghost { background: transparent; border: 1.5px solid rgba(29,39,33,.25); color: var(--ink); }
.btn.main { background: var(--ink); color: #fff; }
.btn.main.dim { background: rgba(29,39,33,.2); color: rgba(255,255,255,.9); }
