/* ══════════════════════════════════════════════════════════════════════
   2030 청년 지속가능성 진단 (S2030 v2) — 스타일
   잉크그린 밴드 + 종이색 배경 + 호박색 포인트. 도넛이 기억에 남는 한 요소.
   ══════════════════════════════════════════════════════════════════════ */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/variable/pretendardvariable.css');
@font-face {
  font-family: 'Gmarket Sans';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansBold.woff') format('woff');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Gmarket Sans';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansMedium.woff') format('woff');
  font-weight: 500; font-style: normal; font-display: swap;
}

:root {
  --ink: #0F2A22;
  --ink-2: #163B30;
  --paper: #F3F5F0;
  --surface: #FFFFFF;
  --mint: #BFF0D9;
  --mint-soft: #E4F7EC;
  --leaf: #118A63;
  --leaf-deep: #0B6648;
  --amber: #F5B73A;
  --amber-deep: #C98A12;
  --text: #142420;
  --muted: #5B6B64;
  --faint: #8E9A94;
  --rule: rgba(15, 42, 34, 0.10);
  --rule-strong: rgba(15, 42, 34, 0.22);
  --danger: #D6453D;
  --r-lg: 22px;
  --r-md: 14px;
  --r-sm: 10px;
  --display: 'Gmarket Sans', 'Pretendard Variable', sans-serif;
  --body: 'Pretendard Variable', -apple-system, 'Apple SD Gothic Neo', sans-serif;
  /* 하위 호환 (아이콘·토스트 등 공용 규칙) */
  --brand: var(--mint);
  --brand-dark: var(--leaf);
  --bg: var(--paper);
  --card: var(--surface);
  --text-primary: var(--text);
  --text-secondary: var(--muted);
  --text-tertiary: var(--faint);
  --border: var(--rule);
  --radius: var(--r-lg);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body);
  background: var(--paper);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh; min-height: 100dvh;
  line-height: 1.5;
}
button { font-family: inherit; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

.shell {
  width: 100%; margin: 0 auto;
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column;
}
.content { max-width: 500px; width: 100%; margin: 0 auto; flex: 1; padding: 24px 20px; display: flex; flex-direction: column; }
.hidden { display: none !important; }
.icon-svg { display: inline-block; vertical-align: -3px; flex-shrink: 0; }

/* ── Header: 잉크그린 밴드 ── */
.header {
  position: sticky; top: 0; z-index: 10;
  background: var(--ink); color: #fff;
  padding: 18px 20px 16px; text-align: center;
}
.header h1 {
  font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: -0.01em;
  display: inline-flex; align-items: center; gap: 8px; line-height: 1.2;
}
.title-icon { display: inline-flex; color: var(--amber); }
.header .subtitle { font-size: 13px; color: rgba(255,255,255,0.62); margin-top: 4px; }

/* 진행 표시: 헤더 바로 아래 호박색 선 */
.progress-bar { height: 4px; background: rgba(15,42,34,0.10); position: sticky; top: 0; z-index: 9; }
.progress-fill { height: 100%; background: var(--amber); transition: width .4s ease; }

/* ── Intro ── */
.intro-card { text-align: center; padding-top: 4px; }
.intro-eyebrow {
  display: inline-block; font-size: 12px; font-weight: 700; color: var(--leaf-deep);
  background: var(--mint); padding: 6px 12px; border-radius: 999px; margin-bottom: 18px;
}
.intro-donut { width: 190px; height: 190px; margin: 0 auto 18px; display: block; }
.intro-card h2 {
  font-family: var(--display); font-weight: 700; font-size: 25px; line-height: 1.3; letter-spacing: -0.015em;
  margin-bottom: 12px;
}
.intro-card p { font-size: 15px; color: var(--muted); line-height: 1.65; margin-bottom: 8px; }
.intro-card p strong { color: var(--text); font-weight: 700; }

.intro-areas { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 18px 0 20px; }
.intro-area {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 12px; border-radius: 999px; font-size: 13px; font-weight: 700;
  background: var(--surface); border: 1px solid var(--rule);
}
.intro-axes { display: grid; gap: 10px; text-align: left; margin-bottom: 8px; }
.intro-axis {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 14px; border-radius: var(--r-md);
  background: var(--surface); border: 1px solid var(--rule);
  font-size: 13.5px; color: var(--muted); line-height: 1.5;
}
.intro-axis-key {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 8px;
  background: var(--ink); color: var(--amber);
  font-family: var(--display); font-weight: 700; font-size: 14px;
  display: inline-flex; align-items: center; justify-content: center;
}

.setup-form { text-align: left; margin: 22px 0 16px; display: flex; flex-direction: column; gap: 8px; }
.setup-label { font-size: 13px; font-weight: 700; color: var(--text); }
.setup-hint { font-weight: 400; color: var(--faint); font-size: 12px; }
.setup-input {
  width: 100%; padding: 14px 16px; font-size: 16px; font-family: inherit;
  border: 1.5px solid var(--rule-strong); border-radius: var(--r-md); background: var(--surface);
  color: var(--text); outline: none; transition: border-color .15s, box-shadow .15s;
}
.setup-input:focus { border-color: var(--leaf); box-shadow: 0 0 0 4px rgba(17,138,99,0.14); }
.setup-error { font-size: 13px; color: var(--danger); min-height: 18px; }

.series-tag {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  padding: 7px 12px; border-radius: 999px; font-size: 13px;
  background: var(--mint-soft); border: 1px solid rgba(17,138,99,0.25); margin-bottom: 8px;
}
.series-tag-label { font-size: 11px; font-weight: 700; color: var(--leaf-deep); }
.series-tag-name { font-weight: 700; color: var(--text); }

/* ── Buttons ── */
.btn {
  flex: 1; padding: 16px 18px; font-size: 16px; font-weight: 700; border: none; cursor: pointer;
  border-radius: var(--r-md); min-height: 54px; transition: transform .12s, background .15s, opacity .15s;
  -webkit-tap-highlight-color: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.btn:active { transform: scale(0.985); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:disabled { background: rgba(15,42,34,0.12); color: var(--faint); cursor: default; }
.btn-secondary { background: transparent; color: var(--muted); border: 1.5px solid var(--rule-strong); }
.btn-brand { background: var(--mint); color: var(--ink); }
.nav-row { display: flex; gap: 12px; margin-top: 24px; padding-bottom: 8px; }

/* ── Question ── */
.question-screen { flex: 1; display: flex; flex-direction: column; }
.cat-badge {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; margin-bottom: 14px;
}
.cat-badge-start { background: var(--surface); border: 1px solid var(--rule); color: var(--muted); }
.question-counter { font-size: 13px; color: var(--faint); margin-bottom: 8px; }
.question-text {
  font-family: var(--display); font-weight: 700; font-size: 22px; line-height: 1.42; letter-spacing: -0.01em;
  margin-bottom: 22px; word-break: keep-all;
}
.start-hint { font-size: 13px; color: var(--faint); line-height: 1.55; margin: -10px 0 18px; }

.options { display: flex; flex-direction: column; gap: 8px; }
.option-btn {
  --opt: var(--leaf);
  position: relative; width: 100%; padding: 16px 18px 16px 34px; font-size: 16px; font-weight: 500; text-align: left; line-height: 1.4;
  border: 1.5px solid var(--rule); border-radius: var(--r-md); background: var(--surface); color: var(--text);
  cursor: pointer; min-height: 56px; transition: border-color .15s, background .15s, color .15s, transform .12s;
  -webkit-tap-highlight-color: transparent; word-break: keep-all; overflow: hidden;
}
/* 왼쪽 색 띠: 선택지 5개가 위에서 아래로 붉은색 → 잎녹색 그라데이션을 이룬다 */
.option-btn::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 8px; background: var(--opt);
}
/* 색 점: 선택 시 흰 테두리로 강조 */
.option-btn::after {
  content: ''; position: absolute; left: 17px; top: 50%; width: 8px; height: 8px; margin-top: -4px;
  border-radius: 50%; background: var(--opt); opacity: 0.9;
}
.option-btn:active { transform: scale(0.985); }
.option-btn.selected { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 700; }
.option-btn.selected::after { width: 12px; height: 12px; margin-top: -6px; left: 15px; box-shadow: 0 0 0 2.5px #fff; opacity: 1; }
.q-basis { margin-top: 16px; font-size: 12px; color: var(--faint); line-height: 1.5; display: flex; gap: 6px; align-items: flex-start; }
.q-basis .icon-svg { margin-top: 2px; }

/* 시작 문항 0~10 척도 */
/* 0~10 컬러바: 버튼과 같은 11칸 그리드 위에 그라데이션 트랙 + 선택 마커 */
.scale-bar {
  position: relative; display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 4px;
  height: 14px; margin-bottom: 10px; border-radius: 999px;
  background: linear-gradient(90deg, #E2574A 0%, #F08A3C 28%, #F5B73A 50%, #8CC63F 76%, #118A63 100%);
  box-shadow: inset 0 0 0 1px rgba(15, 42, 34, 0.08);
}
.scale-bar-cell { position: relative; min-width: 0; }
.scale-bar-cell::before {
  content: ''; position: absolute; left: 50%; top: 50%; width: 4px; height: 4px; margin: -2px 0 0 -2px;
  border-radius: 50%; background: rgba(255,255,255,0.65);
}
.scale-bar-cell.on::before {
  width: 22px; height: 22px; margin: -11px 0 0 -11px;
  background: #fff; border: 3px solid var(--ink); box-shadow: 0 1px 4px rgba(15,42,34,0.25);
  transition: transform .15s;
}
.scale-bar-cell.on::after {
  content: ''; position: absolute; left: 50%; bottom: -10px; width: 0; height: 0; margin-left: -5px;
  border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 6px solid var(--ink);
}
.scale-row { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 4px; }
.scale-btn {
  height: 44px; min-width: 0; padding: 0;
  border: 1.5px solid var(--rule); border-radius: var(--r-sm); background: var(--surface);
  font-family: var(--display); font-size: 15px; font-weight: 700; color: var(--text); cursor: pointer;
  -webkit-tap-highlight-color: transparent; transition: all .15s;
}
.scale-btn:active { transform: scale(0.94); }
.scale-btn.selected { background: var(--ink); border-color: var(--ink); color: var(--amber); }
.scale-legend { display: flex; justify-content: space-between; font-size: 11px; color: var(--faint); margin-top: 8px; }

/* ── Result ── */
.result-screen { display: flex; flex-direction: column; gap: 14px; padding-bottom: 32px; }

/* 히어로: 잉크그린 카드 */
.result-hero {
  background: var(--ink); color: #fff; border-radius: var(--r-lg); padding: 26px 22px 22px; text-align: center;
  position: relative; overflow: hidden;
}
.result-hero::before {
  content: ''; position: absolute; right: -70px; top: -70px; width: 220px; height: 220px; border-radius: 50%;
  border: 44px solid rgba(191,240,217,0.10); pointer-events: none;
}
.result-hero > * { position: relative; }
.result-hero .nickname { font-size: 14px; color: rgba(255,255,255,0.72); }
.result-hero .s-label { font-family: var(--display); font-size: 13px; font-weight: 500; color: var(--mint); margin-top: 2px; }
.result-hero .total {
  font-family: var(--display); font-weight: 700; font-size: 72px; line-height: 1; color: var(--amber);
  margin-top: 6px; letter-spacing: -0.02em;
}
.result-hero .total .unit { font-family: var(--body); font-size: 15px; font-weight: 600; color: rgba(255,255,255,0.55); margin-left: 6px; letter-spacing: 0; }
.level-badge {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 12px;
  padding: 7px 14px; border-radius: 999px; font-size: 14px; font-weight: 800;
  background: rgba(255,255,255,0.10) !important; color: #fff !important; border: 1px solid rgba(255,255,255,0.22);
}
.gauge { margin: 20px 0 0; position: relative; height: 10px; background: rgba(255,255,255,0.14); border-radius: 5px; overflow: hidden; }
.gauge-fill { height: 100%; border-radius: 5px; background: var(--amber) !important; transition: width 1s ease; }
.gauge-markers { position: relative; height: 16px; margin-top: 6px; font-size: 11px; color: rgba(255,255,255,0.5); }
.gauge-scale .gauge-marker { position: absolute; transform: translateX(-50%); }
.gauge-scale .gauge-marker:first-child { transform: none; }
.gauge-scale .gauge-marker:last-child { transform: translateX(-100%); }
.gauge-marker.cut { color: rgba(255,255,255,0.85); font-weight: 700; }
.result-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 12px; }
.chip {
  display: inline-flex; align-items: center; gap: 5px; padding: 6px 12px; border-radius: 999px;
  font-size: 12.5px; font-weight: 700; background: rgba(255,255,255,0.10); color: rgba(255,255,255,0.85);
}
.chip.good { background: rgba(191,240,217,0.18); color: var(--mint); }
.chip.warn { background: rgba(245,183,58,0.18); color: var(--amber); }
.result-hero .comparison { font-size: 14px; color: rgba(255,255,255,0.78); margin-top: 16px; line-height: 1.6; text-align: left; }
.result-hero .comparison strong { color: #fff; }
.satisfaction-line { font-size: 13px; color: rgba(255,255,255,0.6); margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.12); }
.satisfaction-line strong { color: var(--mint); }

/* 카드 위계: 흰 면(기본) / 민트 면(실천 제안) / 테두리 면(보조) */
.card { background: var(--surface); border-radius: var(--r-lg); padding: 22px 20px; border: 1px solid var(--rule); }
.card h3 {
  font-family: var(--display); font-weight: 700; font-size: 17px; letter-spacing: -0.01em;
  margin-bottom: 14px; display: flex; align-items: center; gap: 8px;
}
.card h3 .icon-svg { color: var(--leaf); }
.card h3 .h3-sub { margin-left: auto; font-family: var(--body); font-size: 11.5px; font-weight: 600; color: var(--faint); }
.card-note { font-size: 12px; color: var(--faint); line-height: 1.55; margin-top: 12px; }

/* 2축 유형 */
.axes-canvas { display: block; margin: 0 auto; max-width: 100%; }
.axis-pills { display: flex; gap: 8px; margin-top: 12px; }
.axis-pill { flex: 1; border-radius: var(--r-md); padding: 10px 12px; background: var(--paper); }
.axis-pill-k { font-size: 11.5px; font-weight: 700; color: var(--muted); }
.axis-pill-v { font-family: var(--display); font-size: 24px; font-weight: 700; margin-top: 2px; line-height: 1.1; }
.axis-pill-v .unit { font-family: var(--body); font-size: 12px; font-weight: 600; opacity: .55; margin-left: 2px; }
.type-card .type-name { font-family: var(--display); font-size: 22px; font-weight: 700; letter-spacing: -0.015em; margin-top: 16px; line-height: 1.3; }
.type-card .type-tagline { display: inline-block; margin-top: 8px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.type-card .type-desc { font-size: 14.5px; line-height: 1.65; color: var(--muted); margin-top: 12px; }

/* 레이더 */
.radar-card { text-align: center; }
.radar-card h3 { text-align: left; }
.radar-canvas { display: block; margin: 4px auto 0; max-width: 100%; }
.radar-legend { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 8px; font-size: 12px; color: var(--muted); }
.radar-legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend-swatch { width: 18px; height: 0; border-top: 3px solid; display: inline-block; }
.legend-swatch.dashed { border-top-style: dashed; }

/* 영역별 점수 */
.breakdown-item { display: flex; align-items: flex-start; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.breakdown-item:last-child { border: none; padding-bottom: 0; }
.breakdown-icon { width: 38px; height: 38px; border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; }
.breakdown-info { flex: 1; min-width: 0; }
.breakdown-name { font-size: 15px; font-weight: 700; }
.breakdown-meta { font-size: 11.5px; color: var(--faint); margin-top: 2px; }
.breakdown-bar { height: 6px; background: var(--paper); border-radius: 3px; margin-top: 8px; overflow: hidden; }
.breakdown-bar-fill { height: 100%; border-radius: 3px; }
.breakdown-compare { font-size: 12px; color: var(--muted); line-height: 1.5; margin-top: 8px; }
.breakdown-compare .src { color: var(--faint); }
.breakdown-value { font-family: var(--display); font-size: 22px; font-weight: 700; text-align: right; min-width: 56px; line-height: 1.1; margin-top: 4px; }
.breakdown-value .unit { font-family: var(--body); font-size: 11px; font-weight: 600; opacity: .55; }
.breakdown-item.weakest .breakdown-name::after {
  content: '가장 약한 고리'; margin-left: 6px; font-size: 10.5px; font-weight: 700;
  color: var(--amber-deep); background: rgba(245,183,58,0.18); padding: 2px 7px; border-radius: 999px; vertical-align: 2px;
}

/* 실천 제안: 민트 면 */
.tips { background: var(--mint-soft); border-color: rgba(17,138,99,0.18); }
.tips h3 .icon-svg { color: var(--leaf-deep); }
.tips .tips-lead { font-size: 13.5px; color: var(--muted); line-height: 1.6; margin: -4px 0 8px; }
.tips .tips-lead strong { color: var(--text); }
.tip-item { display: flex; gap: 12px; padding: 12px 0; font-size: 14px; line-height: 1.55; color: var(--text); border-bottom: 1px solid rgba(17,138,99,0.14); }
.tip-item:last-child { border: none; padding-bottom: 0; }
.tip-item .tip-icon { flex-shrink: 0; display: inline-flex; align-items: center; margin-top: 2px; }
.tip-item .tip-q { display: block; font-size: 11.5px; color: var(--faint); margin-bottom: 3px; }
.tip-cat { font-weight: 800; margin-right: 2px; }

/* 지구 CO2 */
.co2-total { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; margin-bottom: 4px; }
.co2-total .big { font-family: var(--display); font-size: 36px; font-weight: 700; color: var(--leaf-deep); line-height: 1; }
.co2-total .unit { font-size: 14px; font-weight: 700; color: var(--leaf-deep); }
.co2-total .sub { font-size: 13px; color: var(--muted); }
.co2-total .sub strong { color: var(--text); }
.co2-bar { height: 10px; background: var(--paper); border-radius: 5px; overflow: hidden; margin: 12px 0 6px; }
.co2-bar-fill { height: 100%; background: var(--leaf); border-radius: 5px; }
.co2-list { margin-top: 8px; }
.co2-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--rule); font-size: 13.5px; line-height: 1.45; }
.co2-row:last-child { border: none; }
.co2-row .co2-kg { font-family: var(--display); font-weight: 700; color: var(--leaf-deep); white-space: nowrap; margin-left: 12px; }

/* 도움 창구 */
.help-cards { display: flex; flex-direction: column; gap: 10px; }
.help-card { border-radius: var(--r-md); padding: 16px; background: rgba(214,69,61,0.06); border: 1px solid rgba(214,69,61,0.22); }
.help-card.soft { background: var(--paper); border-color: var(--rule-strong); }
.help-card .help-title { font-size: 15px; font-weight: 800; display: flex; align-items: center; gap: 6px; }
.help-card .help-meaning { font-size: 12.5px; color: var(--muted); line-height: 1.55; margin-top: 6px; }
.help-card .help-help { font-size: 13.5px; color: var(--text); line-height: 1.55; margin-top: 8px; font-weight: 600; }

/* 2030 실천 1가지: 메모지 */
.pledge-card { background: #FFF8E6; border: 1.5px dashed rgba(201,138,18,0.55); }
.pledge-card h3 .icon-svg { color: var(--amber-deep); }
.pledge-input {
  width: 100%; padding: 14px 16px; font-size: 16px; font-family: inherit;
  border: 1.5px solid rgba(201,138,18,0.35); border-radius: var(--r-md); background: #fff; outline: none;
}
.pledge-input:focus { border-color: var(--amber-deep); box-shadow: 0 0 0 4px rgba(245,183,58,0.25); }
.pledge-display { display: none; font-family: var(--display); font-size: 19px; font-weight: 700; line-height: 1.45; padding: 4px 2px; }
.pledge-display .pledge-mark { color: var(--amber-deep); margin-right: 6px; }
.pledge-saved { font-size: 12px; color: var(--leaf-deep); font-weight: 700; margin-top: 8px; min-height: 16px; }
.print-mode .pledge-input { display: none; }
.print-mode .pledge-display { display: block; }
.print-mode .pledge-saved, .print-mode .pledge-card .card-note { display: none; }
.print-mode .pledge-card { border-style: solid; }

/* 참가자 비교 */
.comparison-block { background: var(--surface); border-radius: var(--r-lg); padding: 20px; border: 1px solid var(--rule); }
.comparison-block h3 { font-family: var(--display); font-size: 17px; font-weight: 700; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.comparison-block h3 .icon-svg { color: var(--leaf); }
.comparison-block h3 .compare-me { margin-left: auto; }
.compare-me { display: inline-block; padding: 3px 10px; border-radius: 999px; font-family: var(--body); font-size: 12px; font-weight: 700; background: var(--mint); color: var(--ink); }
.compare-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--rule); font-size: 14px; }
.compare-row:last-child { border: none; }
.compare-label { color: var(--muted); }
.compare-value { font-weight: 700; color: var(--text); white-space: nowrap; }
.compare-value .rank-num { font-family: var(--display); color: var(--leaf-deep); font-size: 19px; }

.result-actions { margin-top: 6px; }
.result-actions .btn { width: 100%; }
.result-actions .btn + .btn { margin-top: 8px; }
.result-footer-note { font-size: 11.5px; color: var(--faint); text-align: center; line-height: 1.5; }

/* ── Footer: 점수 산출 방식 ── */
.page-footer { width: 100%; margin-top: auto; background: var(--surface); border-top: 1px solid var(--rule); padding: 14px 0; }
.page-footer .refs { max-width: 720px; margin: 0 auto; padding: 0 20px; }
.page-footer .refs summary {
  cursor: pointer; font-weight: 700; font-size: 13px; color: var(--muted); list-style: none; padding: 4px 0;
  display: flex; align-items: center; gap: 6px; user-select: none;
}
.page-footer .refs summary::-webkit-details-marker { display: none; }
.page-footer .refs summary::before { content: '▸'; transition: transform .15s; color: var(--leaf); }
.page-footer .refs[open] summary::before { transform: rotate(90deg); }
.page-footer .refs p, .page-footer .refs ul, .page-footer .refs h4 { font-size: 12.5px; color: var(--muted); line-height: 1.65; margin: 8px 0; }
.page-footer .refs ul { padding-left: 18px; }
.page-footer .refs h4 { font-weight: 700; color: var(--text); margin-top: 14px; }
.page-footer .refs li strong { color: var(--text); font-weight: 600; }
.page-footer .refs-note { color: var(--faint); margin-top: 10px !important; padding-top: 10px; border-top: 1px solid var(--rule); }

/* ── Toast ── */
.toast {
  position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px;
  font-size: 13px; font-weight: 600; opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s; z-index: 100;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ══════════════════════════════════════════════════════════════════════
   Kiosk: FHD 1080×1920 세로
   ══════════════════════════════════════════════════════════════════════ */
@media (min-width: 768px) and (orientation: portrait) {
  html, body { user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; touch-action: manipulation; overscroll-behavior: none; }
  img { -webkit-user-drag: none; pointer-events: none; }
  .content { max-width: 880px; padding: 48px; }
  .axes-canvas, .radar-canvas { width: 100% !important; height: auto !important; }

  .header { padding: 34px 48px 30px; }
  .header h1 { font-size: 40px; gap: 16px; }
  .header h1 .icon-svg { width: 44px; height: 44px; }
  .header .subtitle { font-size: 22px; margin-top: 8px; }
  .progress-bar { height: 8px; }

  .intro-eyebrow { font-size: 20px; padding: 10px 22px; margin-bottom: 28px; }
  .intro-donut { width: 360px; height: 360px; margin-bottom: 28px; }
  .intro-card h2 { font-size: 46px; margin-bottom: 20px; }
  .intro-card p { font-size: 27px; }
  .intro-area { font-size: 22px; padding: 12px 22px; gap: 10px; }
  .intro-area .icon-svg { width: 24px; height: 24px; }
  .intro-axes { gap: 14px; }
  .intro-axis { font-size: 23px; padding: 20px 22px; gap: 16px; border-radius: 20px; }
  .intro-axis-key { width: 46px; height: 46px; font-size: 24px; border-radius: 12px; }
  .setup-form { gap: 12px; margin: 36px 0 24px; }
  .setup-label { font-size: 24px; }
  .setup-hint { font-size: 19px; }
  .setup-input { padding: 24px 28px; font-size: 28px; border-radius: 18px; border-width: 2px; }
  .setup-error { font-size: 22px; min-height: 30px; }
  .series-tag { font-size: 22px; padding: 12px 20px; }
  .series-tag-label { font-size: 18px; }

  .btn { padding: 28px; font-size: 30px; border-radius: 22px; min-height: 100px; }
  .nav-row { gap: 20px; margin-top: 40px; }

  .cat-badge { padding: 12px 26px; font-size: 22px; gap: 10px; margin-bottom: 26px; }
  .cat-badge .icon-svg { width: 28px; height: 28px; }
  .question-counter { font-size: 22px; margin-bottom: 14px; }
  .question-text { font-size: 42px; margin-bottom: 44px; }
  .start-hint { font-size: 22px; margin: -22px 0 32px; }
  .options { gap: 16px; }
  .option-btn { padding: 30px 34px 30px 62px; font-size: 28px; min-height: 108px; border-radius: 22px; border-width: 2.5px; }
  .option-btn::before { width: 14px; }
  .option-btn::after { left: 31px; width: 14px; height: 14px; margin-top: -7px; }
  .option-btn.selected::after { left: 28px; width: 20px; height: 20px; margin-top: -10px; box-shadow: 0 0 0 4px #fff; }
  .q-basis { font-size: 20px; margin-top: 26px; }
  .q-basis .icon-svg { width: 24px; height: 24px; }
  .scale-bar { gap: 10px; height: 26px; margin-bottom: 20px; }
  .scale-bar-cell::before { width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; }
  .scale-bar-cell.on::before { width: 40px; height: 40px; margin: -20px 0 0 -20px; border-width: 5px; }
  .scale-bar-cell.on::after { bottom: -18px; margin-left: -9px; border-left-width: 9px; border-right-width: 9px; border-top-width: 11px; }
  .scale-row { gap: 10px; }
  .scale-btn { height: 86px; font-size: 30px; border-radius: 16px; border-width: 2.5px; }
  .scale-legend { font-size: 20px; margin-top: 14px; }

  .result-screen { gap: 26px; padding-bottom: 60px; }
  .result-hero { padding: 52px 48px 44px; border-radius: 32px; }
  .result-hero::before { width: 420px; height: 420px; border-width: 80px; right: -140px; top: -140px; }
  .result-hero .nickname { font-size: 26px; }
  .result-hero .s-label { font-size: 22px; }
  .result-hero .total { font-size: 150px; }
  .result-hero .total .unit { font-size: 28px; margin-left: 12px; }
  .level-badge { font-size: 26px; padding: 14px 28px; margin-top: 22px; }
  .level-badge .icon-svg { width: 26px; height: 26px; }
  .gauge { height: 18px; border-radius: 9px; margin-top: 36px; }
  .gauge-markers { font-size: 20px; margin-top: 12px; height: 28px; }
  .chip { font-size: 22px; padding: 10px 20px; }
  .chip .icon-svg { width: 24px; height: 24px; }
  .result-hero .comparison { font-size: 25px; margin-top: 28px; }
  .satisfaction-line { font-size: 22px; margin-top: 22px; padding-top: 22px; }

  .card, .comparison-block { padding: 40px 44px; border-radius: 32px; }
  .card h3, .comparison-block h3 { font-size: 30px; margin-bottom: 26px; gap: 14px; }
  .card h3 .icon-svg, .comparison-block h3 .icon-svg { width: 34px; height: 34px; }
  .card h3 .h3-sub { font-size: 19px; }
  .card-note { font-size: 20px; margin-top: 22px; }
  .axis-pills { gap: 16px; margin-top: 24px; }
  .axis-pill { padding: 20px 24px; border-radius: 20px; }
  .axis-pill-k { font-size: 20px; }
  .axis-pill-v { font-size: 44px; }
  .axis-pill-v .unit { font-size: 20px; }
  .type-card .type-name { font-size: 40px; margin-top: 28px; }
  .type-card .type-tagline { font-size: 21px; padding: 8px 18px; }
  .type-card .type-desc { font-size: 25px; margin-top: 20px; }
  .radar-legend { font-size: 20px; gap: 24px; margin-top: 16px; }
  .legend-swatch { width: 30px; }
  .breakdown-item { gap: 22px; padding: 24px 0; }
  .breakdown-icon { width: 64px; height: 64px; border-radius: 16px; }
  .breakdown-icon .icon-svg { width: 36px; height: 36px; }
  .breakdown-name { font-size: 26px; }
  .breakdown-meta { font-size: 19px; }
  .breakdown-bar { height: 10px; border-radius: 5px; margin-top: 12px; }
  .breakdown-compare { font-size: 20px; margin-top: 12px; }
  .breakdown-value { font-size: 40px; min-width: 110px; }
  .breakdown-value .unit { font-size: 18px; }
  .breakdown-item.weakest .breakdown-name::after { font-size: 17px; padding: 4px 12px; }
  .tips .tips-lead { font-size: 23px; margin-bottom: 18px; }
  .tip-item { gap: 18px; padding: 20px 0; font-size: 24px; }
  .tip-item .icon-svg { width: 32px; height: 32px; }
  .tip-item .tip-q { font-size: 19px; }
  .co2-total .big { font-size: 64px; }
  .co2-total .unit { font-size: 26px; }
  .co2-total .sub { font-size: 23px; }
  .co2-bar { height: 18px; border-radius: 9px; }
  .co2-row { font-size: 23px; padding: 16px 0; }
  .help-cards { gap: 16px; }
  .help-card { padding: 28px; border-radius: 22px; }
  .help-card .help-title { font-size: 26px; }
  .help-card .help-title .icon-svg { width: 30px; height: 30px; }
  .help-card .help-meaning { font-size: 21px; }
  .help-card .help-help { font-size: 23px; }
  .pledge-input { font-size: 28px; padding: 26px; border-radius: 20px; }
  .pledge-display { font-size: 34px; }
  .pledge-saved { font-size: 20px; }
  .compare-me { font-size: 19px; padding: 6px 16px; }
  .compare-row { font-size: 23px; padding: 18px 0; }
  .compare-value .rank-num { font-size: 32px; }
  .result-actions .btn + .btn { margin-top: 16px; }
  .result-footer-note { font-size: 19px; }

  .page-footer .refs { max-width: 880px; padding: 0 48px; }
  .page-footer .refs summary { font-size: 24px; padding: 8px 0; }
  .page-footer .refs p, .page-footer .refs ul, .page-footer .refs h4 { font-size: 21px; margin: 14px 0; }
  .page-footer .refs ul { padding-left: 28px; }
  .toast { padding: 18px 32px; font-size: 24px; bottom: 60px; }
}
