/* Annyeong Daily 디자인 체계 v4.1 — v3 색(크림 바탕·감 주황) + v4 구성(허브 홈·짧은 글·Tally풍 정리)
   사용자 2026-10-11: 「전이 나은 것 같다, 주황 돌리고, 색이 간섭 안 일어나게」
   원칙: 주황은 세 군데만 — 주 단추 · 점수(링·진행 막대) · 로고. 아이콘 바탕·칩·보조 단추는 따뜻한 회색. 맞음/틀림 두 색. 이모지는 공유 글에만
   토큰만 쓴다. 규칙 설명: docs/design-system.md */
:root {
  /* 색 (밝은 화면) — 글자 대비는 모두 4.5:1 이상 */
  --bg: #FFF9F5;          /* 바탕 */
  --surface: #FFFFFF;     /* 카드 */
  --sunk: #F5F0EC;        /* 오목한 면(칩·아이콘 바탕) — 주황과 겹치지 않게 분홍기를 뺀 따뜻한 회색 */
  --ink: #221E1C;         /* 본문 15.8:1 */
  --ink-2: #5F5752;       /* 보조 글자 6.8:1 */
  --line: #F0E2D9;
  --line-2: #E2CFC3;
  --accent: #FF6A3D;      /* 주인공 색 — 면에만 쓴다(글자는 --accent-text) */
  --on-accent: #1B1210;   /* 주황 위 글자 6.5:1 */
  --accent-soft: #FFE9E0;
  --accent-text: #B8461F; /* 흰 바탕 위 주황 글자 5.3:1 */
  --ok: #13704E;  --ok-soft: #E3F5EC;
  --bad: #C8302B; --bad-soft: #FDE8E7;
  --logo-a: #FF6A3D; --logo-hole: var(--bg); --logo-sun: #221E1C;
  --inverse-bg: #221E1C; --inverse-ink: #FFF9F5; --inverse-line: transparent; /* 뒤집힌 면(내일 카드·CTA·의견 단추) — 어두운 화면에선 밝은 덩어리가 되지 않게 따로 둔다 */

  /* 모서리 세 가지 */
  --r1: 12px;   /* 단추·작은 칸 */
  --r2: 20px;   /* 카드 */
  --r3: 999px;  /* 알약·동그라미 */
  /* 간격 (8px 격자) */
  --s1: 4px; --s2: 8px; --s3: 16px; --s4: 24px; --s5: 32px; --s6: 48px;
  /* 글자 크기 여섯 단계 (최소 13px) */
  --t-display: 32px; --t-title: 24px; --t-heading: 20px; --t-body-l: 17px; --t-body: 15px; --t-caption: 13px;
  --font: "Plus Jakarta Sans", "Pretendard Variable", Pretendard, system-ui, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --font-ko: "Pretendard Variable", Pretendard, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --shadow-pop: 0 12px 32px -16px rgba(34, 30, 28, .35);  /* 떠 있는 것(의견 시트·떠 있는 단추)에만 */
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #17131A; --surface: #221D25; --sunk: #2B2530;
    --ink: #F7F1EC; --ink-2: #B8AFAA; --line: #352E39; --line-2: #4A4150;
    --accent: #FF8A5C; --on-accent: #1B1210; --accent-soft: #3A2620; --accent-text: #FF9C74;
    --ok: #4CC38A; --ok-soft: #16301F; --bad: #FF7B73; --bad-soft: #3B1C1E;
    --logo-a: #FF8A5C; --logo-sun: #F7F1EC;
    --inverse-bg: #2B2530; --inverse-ink: #F7F1EC; --inverse-line: #4A4150;
    --shadow-pop: 0 12px 32px -12px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
a:hover { color: var(--accent-text); }
:focus-visible { outline: 2px solid #2383E2; outline-offset: 2px; border-radius: 6px; }
[lang="ko"] { font-family: var(--font-ko); word-break: keep-all; }
.wrap { max-width: 600px; margin: 0 auto; padding: 0 var(--s3); }
.wrap.wide { max-width: 720px; }
.ic { width: 20px; height: 20px; flex: none; }
.center { text-align: center; }

/* ── 머리글 ───────────────────────── */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); height: 60px; }
.brand { display: flex; align-items: center; gap: var(--s2); text-decoration: none; font: 700 20px/1 var(--font); letter-spacing: -.03em; white-space: nowrap; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand .word b { font-weight: 500; color: var(--ink-2); }
.logo-mark { flex: none; display: block; }
.nav { display: flex; gap: 2px; padding: 3px; background: var(--sunk); border-radius: var(--r1); }
.nav a { text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: 14px; padding: 8px 12px; border-radius: 9px; white-space: nowrap; min-height: 36px; display: flex; align-items: center; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--surface); font-weight: 700; box-shadow: 0 0 0 1px var(--line); }
/* 휴대폰: 두 줄 머리 — 1줄 로고(글자까지)+통계 단추, 2줄 메뉴가 폭 전체 (시안 2와 같게, 로고가 먼저 보이게) */
@media (max-width: 600px) {
  .top .wrap { flex-wrap: wrap; height: auto; padding-top: 8px; padding-bottom: 8px; row-gap: 8px; }
  .top .top-right { display: contents; } /* 아래쪽 .top-right { display:flex } 보다 이겨야 한다 */
  .brand { flex: 1; }
  #stats-btn { order: 2; }
  .nav { order: 3; width: 100%; }
  .nav a { flex: 1; justify-content: center; min-height: 44px; }
}

main { padding: var(--s4) 0 var(--s6); }
h1 { font: 700 var(--t-display)/1.2 var(--font); letter-spacing: -.02em; margin: 0 0 var(--s2); }
h2 { font: 700 var(--t-title)/1.3 var(--font); letter-spacing: -.015em; margin: var(--s5) 0 var(--s2); }
h3 { font: 700 var(--t-heading)/1.3 var(--font); margin: var(--s4) 0 var(--s1); }
p { margin: 0 0 var(--s3); }
.muted { color: var(--ink-2); }
.small { font-size: 14px; }
.kicker { font: 600 var(--t-caption)/1 var(--font); color: var(--ink-2); margin-bottom: var(--s2); }

/* ── 단추 한 가족 (높이 52px, 평평하게) ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 52px; padding: 0 var(--s4); border-radius: var(--r1); border: 0;
  background: var(--accent); color: var(--on-accent);
  font: 700 16px/1 var(--font); cursor: pointer; text-decoration: none; transition: transform .08s, filter .15s;
}
.btn:hover { filter: brightness(1.05); color: var(--on-accent); }
.btn:active { transform: scale(.98); }
.btn.block { width: 100%; }
.btn.secondary { background: var(--accent-soft); color: var(--accent-text); }
.btn.secondary:hover { color: var(--accent-text); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn.ghost:hover { color: var(--ink); background: var(--surface); }
.btn.small { min-height: 44px; font-size: 14px; padding: 0 var(--s3); }
.btn:disabled { opacity: .5; cursor: default; }

/* ── 머리띠: 회차·연속기록 ─────────── */
.game-head { display: flex; justify-content: space-between; align-items: center; gap: var(--s2); margin-bottom: var(--s3); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--r3); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-weight: 700; font-size: 14px; }
.chip .ic { width: 16px; height: 16px; }
.chip.fire { color: var(--accent-text); }
.chip.fire b { color: var(--ink); }
.chip.quiet { color: var(--ink-2); }

.progress { display: flex; gap: 6px; margin: 0 0 var(--s3); }
.progress span { flex: 1; height: 6px; border-radius: var(--r3); background: var(--line); transition: background .2s; }
.progress span.ok { background: var(--ok); }
.progress span.bad { background: var(--bad); }
.progress span.now { background: var(--accent); }

/* ── 카드·문제 ─────────────────────── */
.card { background: var(--surface); border-radius: var(--r2); padding: var(--s4) 20px; box-shadow: inset 0 0 0 1px var(--line); }
.qtop { display: flex; justify-content: space-between; align-items: center; gap: var(--s2); margin-bottom: var(--s3); }
.cat { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: var(--r3); font-weight: 700; font-size: var(--t-caption); background: var(--sunk); color: var(--ink); text-decoration: none; }
.cat .ic { width: 15px; height: 15px; color: var(--accent-text); }
.qcount { font-size: var(--t-caption); font-weight: 700; color: var(--ink-2); }
.mine { display: inline-flex; align-items: center; gap: 4px; font-size: var(--t-caption); font-weight: 700; color: var(--accent-text); }
.mine .ic { width: 15px; height: 15px; }

.word-row { display: flex; align-items: center; gap: var(--s2) var(--s3); flex-wrap: wrap; margin: var(--s1) 0 2px; }
.korean { font: 700 36px/1.2 var(--font-ko); letter-spacing: -.02em; word-break: keep-all; }
.roman { color: var(--ink-2); font-size: var(--t-body); font-weight: 500; margin-bottom: var(--s1); }
.pron { font-family: var(--font-ko); font-weight: 500; color: var(--ink-2); word-break: keep-all; }
.verdict .say .pron { font-size: var(--t-body); }
.prompt { font-size: var(--t-body-l); line-height: 1.5; font-weight: 600; margin: var(--s3) 0 20px; }

.speak-pair { display: inline-flex; gap: 6px; align-items: center; }
.speak { flex: none; width: 44px; height: 44px; border-radius: var(--r3); border: 0; cursor: pointer; background: var(--accent-soft); color: var(--accent-text); display: inline-grid; place-items: center; transition: transform .08s; }
.speak:active { transform: scale(.94); }
.speak .ic { width: 22px; height: 22px; }
.speak.slow { width: auto; padding: 0 12px; display: inline-flex; gap: 4px; font: 700 var(--t-caption)/1 var(--font); background: transparent; box-shadow: inset 0 0 0 1.5px var(--line-2); color: var(--ink-2); }
.speak.slow .ic { width: 18px; height: 18px; }
.speak.playing { animation: pulse .8s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.06); } }
.speak.inline { width: 36px; height: 36px; vertical-align: middle; margin-left: 6px; }
.speak.inline .ic { width: 18px; height: 18px; }

.options { display: grid; gap: 10px; }
.opt {
  display: flex; align-items: center; gap: 12px; text-align: left; width: 100%;
  min-height: 56px; padding: 12px 14px; border-radius: var(--r1); border: 0;
  background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2);
  font: 600 16px/1.35 var(--font); cursor: pointer; word-break: keep-all; transition: box-shadow .12s, transform .08s;
}
.opt .key { flex: none; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-size: var(--t-caption); font-weight: 700; color: var(--ink-2); background: var(--sunk); }
.opt .key .ic { width: 16px; height: 16px; }
.opt .txt { flex: 1; }
.opt:hover:not(:disabled) { box-shadow: inset 0 0 0 2px var(--accent); }
.opt:active:not(:disabled) { transform: scale(.99); }
.opt.ok { background: var(--ok-soft); box-shadow: inset 0 0 0 2px var(--ok); }
.opt.ok .key { background: var(--ok); color: var(--surface); }
.opt.bad { background: var(--bad-soft); box-shadow: inset 0 0 0 2px var(--bad); }
.opt.bad .key { background: var(--bad); color: var(--surface); }
.opt:disabled { cursor: default; }
.opt:disabled:not(.ok):not(.bad) { color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); } /* 흐리게(opacity) 하면 대비 3.2:1 — 다시 읽을 수 있게 색으로만 낮춘다 */

/* 답 고른 뒤 아래에서 올라오는 판정 */
.verdict { margin-top: var(--s3); border-radius: var(--r2); padding: var(--s3); animation: rise .22s ease-out; }
.verdict.ok { background: var(--ok-soft); }
.verdict.bad { background: var(--bad-soft); }
.verdict .head { display: flex; align-items: center; gap: 10px; font: 700 var(--t-heading)/1.2 var(--font); margin-bottom: var(--s2); }
.verdict .mark { width: 32px; height: 32px; border-radius: var(--r3); display: grid; place-items: center; color: var(--surface); }
.verdict .mark .ic { width: 18px; height: 18px; stroke-width: 2.6; }
.verdict.ok .head { color: var(--ok); } .verdict.ok .mark { background: var(--ok); }
.verdict.bad .head { color: var(--bad); } .verdict.bad .mark { background: var(--bad); }
.verdict .say { display: flex; align-items: center; gap: var(--s2); margin: var(--s2) 0; font: 700 var(--t-heading)/1.3 var(--font-ko); }
.verdict p { margin: 0; font-size: var(--t-body-l); }
.verdict .more { display: inline-flex; align-items: center; gap: 2px; margin-top: 10px; font-weight: 700; color: var(--ink); }
.verdict .more .ic { width: 16px; height: 16px; }
.verdict .btn { margin-top: var(--s3); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ── 결과 (선으로 정리 — 시안 1의 절제) ── */
.result { text-align: center; }
.score-ring { width: 136px; height: 136px; margin: var(--s1) auto var(--s2); border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--accent) calc(var(--p) * 1%), var(--line) 0); }
.score-ring > div { width: 116px; height: 116px; border-radius: 50%; background: var(--bg); display: flex; align-items: baseline; justify-content: center; padding-top: 36px; white-space: nowrap; }
.score-ring b { font: 700 44px/1 var(--font); letter-spacing: -.04em; }
.score-ring span { font: 700 20px/1 var(--font); color: var(--ink-2); }
.verdict-line { font: 700 var(--t-heading)/1.25 var(--font); margin: var(--s1) 0 2px; }
.vs { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; margin: var(--s2) 0 0; }
.tiles { display: flex; gap: var(--s2); justify-content: center; margin: var(--s3) 0 var(--s2); }
.tiles span { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; color: var(--surface); }
.tiles .ic { width: 20px; height: 20px; stroke-width: 2.6; }
.tiles .t-ok { background: var(--ok); }
.tiles .t-bad { background: var(--bad); }

.streak-card { text-align: left; margin: var(--s4) 0 0; padding: var(--s3) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.streak-top { display: flex; gap: 12px; align-items: center; }
.streak-top .flame { width: 44px; height: 44px; border-radius: var(--r3); background: var(--accent-soft); color: var(--accent-text); display: grid; place-items: center; flex: none; }
.streak-top b { display: block; font-size: var(--t-body-l); }
.bar { height: 6px; border-radius: var(--r3); background: var(--line); margin: 12px 0 var(--s3); overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--accent); border-radius: inherit; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat b { display: block; font: 700 var(--t-title)/1.2 var(--font); }
.stat span { font-size: var(--t-caption); color: var(--ink-2); font-weight: 600; }
.badges { display: flex; gap: var(--s2); justify-content: center; flex-wrap: wrap; margin-top: var(--s3); }
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: var(--t-caption); font-weight: 700; padding: 5px 10px; border-radius: var(--r3); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink-2); }
.badge .ic { width: 14px; height: 14px; }
.badge.on { background: var(--accent-soft); color: var(--accent-text); box-shadow: none; }


.share-box { text-align: left; white-space: pre-wrap; margin: var(--s3) 0 0; font: 600 14px/1.55 ui-monospace, "Cascadia Mono", Consolas, monospace; background: var(--sunk); border-radius: var(--r1); padding: 12px var(--s3); }
.countdown { font: 700 26px/1 var(--font); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.actions { display: grid; gap: 12px; margin: var(--s3) 0; }
.toast { font-size: 14px; font-weight: 700; color: var(--ok); }
.toast:empty { display: none; }
.tomorrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left; margin: var(--s3) 0; padding: var(--s3) 20px; border-radius: var(--r2); background: var(--inverse-bg); color: var(--inverse-ink); box-shadow: inset 0 0 0 1px var(--inverse-line); }
.tomorrow .label { display: block; font-size: var(--t-caption); font-weight: 600; opacity: .75; }
.tomorrow b { font-size: var(--t-body); }


/* 다 푼 뒤 다음에 할 일 */
.next { text-align: left; margin-top: var(--s3); padding-top: 20px; padding-bottom: 12px; }
.next h2 { margin: 0 0 var(--s1); font: 700 var(--t-heading)/1.3 var(--font); }
.next .row { display: flex; gap: 12px; align-items: center; min-height: 64px; padding: 10px 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.next .row:first-of-type { border-top: 0; }
.next .ico { flex: none; width: 40px; height: 40px; border-radius: var(--r1); display: grid; place-items: center; background: var(--sunk); color: var(--ink); }
.next .row.first .ico { background: var(--accent-soft); color: var(--accent-text); }
.next .t { flex: 1; min-width: 0; }
.next .t b { display: block; font-size: var(--t-body); }
.next .t span { font-size: var(--t-caption); color: var(--ink-2); }
.next .go { color: var(--ink-2); display: grid; }
.next .row:hover .go { color: var(--accent-text); }

details.card > summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; align-items: center; justify-content: space-between; min-height: 28px; }
details.card > summary::-webkit-details-marker { display: none; }
details.card > summary .ic { transition: transform .15s; color: var(--ink-2); }
details.card[open] > summary .ic { transform: rotate(90deg); }
.recap-card { text-align: left; margin-top: var(--s3); }
.recap { padding-left: 0; list-style: none; margin: var(--s3) 0 0; display: grid; gap: 14px; }
.recap li { display: flex; gap: 10px; font-size: var(--t-body); }
.recap .m { flex: none; width: 22px; height: 22px; border-radius: var(--r3); display: grid; place-items: center; color: var(--surface); margin-top: 2px; }
.recap .m .ic { width: 13px; height: 13px; stroke-width: 3; }
.m-ok { background: var(--ok); } .m-bad { background: var(--bad); }

/* 친구 도전 배너 */
.challenge { display: flex; gap: 12px; align-items: center; background: var(--accent-soft); border-radius: var(--r2); padding: 14px var(--s3); margin-bottom: var(--s3); }
.challenge .ico { width: 40px; height: 40px; border-radius: var(--r3); background: var(--surface); color: var(--accent-text); display: grid; place-items: center; flex: none; }
.challenge b { display: block; }

/* 서울 지금 */
.seoul { display: flex; gap: var(--s3); align-items: center; margin-top: var(--s3); padding: var(--s3); border-radius: var(--r2); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.seoul .clock { flex: none; width: 64px; text-align: center; color: var(--ink-2); }
.seoul .clock .ic { width: 18px; height: 18px; color: var(--accent-text); }
.seoul .clock b { display: block; font: 700 var(--t-heading)/1 var(--font); font-variant-numeric: tabular-nums; color: var(--ink); margin: 2px 0; }
.seoul .clock span { font-size: var(--t-caption); font-weight: 600; }
.seoul .body { flex: 1; min-width: 0; }
.seoul .line { display: flex; align-items: center; gap: 6px; font: 700 19px/1.3 var(--font-ko); }
.seoul .gloss { font-size: 14px; color: var(--ink-2); }

/* 광고 자리 (데모) */
.ad-slot { margin: var(--s5) 0; min-height: 100px; border: 1.5px dashed var(--line-2); border-radius: var(--r2); display: flex; align-items: center; justify-content: center; color: var(--ink-2); font-size: var(--t-caption); }

/* ── 유형 결과 ─────────────────────── */
.type-card { text-align: center; padding: var(--s5) 20px var(--s4); }
.type-card .type-ico { width: 88px; height: 88px; margin: 0 auto; border-radius: var(--r3); background: var(--accent-soft); color: var(--accent-text); display: grid; place-items: center; }
.type-card .type-ico .ic { width: 44px; height: 44px; stroke-width: 1.6; }
.type-card h1 { margin-top: var(--s3); }
.type-card .tagline { font-size: var(--t-body-l); color: var(--ink-2); font-weight: 500; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 20px 0 0; text-align: left; border-top: 1px solid var(--line); }
.two > div { padding: var(--s3) var(--s2) 0; }
.two > div + div { border-left: 1px solid var(--line); padding-left: var(--s3); }
.two ul { margin: 6px 0 0; padding-left: 18px; font-size: var(--t-body); }
.two h3 { margin: 0; font-size: var(--t-caption); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); }
@media (max-width: 480px) { .two { grid-template-columns: 1fr; } .two > div + div { border-left: 0; border-top: 1px solid var(--line); padding-left: var(--s2); margin-top: var(--s3); } }
.cta { margin: var(--s4) 0 var(--s2); padding: var(--s4) 20px; border-radius: var(--r2); background: var(--inverse-bg); color: var(--inverse-ink); box-shadow: inset 0 0 0 1px var(--inverse-line); text-align: center; }
.cta p { font: 700 var(--t-title)/1.2 var(--font); margin-bottom: var(--s3); }

/* ── 목록 ──────────────────────────── */
.list { list-style: none; padding: 0; margin: var(--s3) 0; border-top: 1px solid var(--line); }
.list > li { border-bottom: 1px solid var(--line); }
.list a { display: flex; justify-content: space-between; gap: 12px; align-items: center; text-decoration: none; min-height: 56px; padding: 12px var(--s1); font-weight: 600; }
.list a:hover { background: var(--surface); }
.list .meta { display: inline-flex; align-items: center; gap: 3px; font-size: var(--t-caption); color: var(--ink-2); white-space: nowrap; font-weight: 700; }
.list .meta i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.list .meta i.m-ok { background: var(--ok); } .list .meta i.m-bad { background: var(--bad); }
.grid-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; list-style: none; padding: 0; margin: var(--s3) 0; }
.grid-cards a { display: flex; flex-direction: column; gap: 6px; height: 100%; text-decoration: none; padding: var(--s3); border-radius: var(--r2); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .12s; }
.grid-cards a:hover { box-shadow: inset 0 0 0 1.5px var(--accent); color: var(--ink); }
.grid-cards b { display: block; font-size: 16px; line-height: 1.35; }
.grid-cards .desc { font-size: var(--t-caption); color: var(--ink-2); line-height: 1.45; }
@media (max-width: 480px) { .grid-cards { grid-template-columns: 1fr; } }
.cat-h { display: flex; align-items: center; gap: var(--s2); font-size: var(--t-heading); }
.cat-h .ic { color: var(--accent-text); }

/* ── 글 ────────────────────────────── */
.prose { font-size: var(--t-body-l); line-height: 1.7; }
.prose h1 { font-size: var(--t-display); }
.prose h2 { font-size: 22px; margin-top: 40px; }
.prose table { width: 100%; border-collapse: collapse; margin: 14px 0 20px; font-size: var(--t-body); display: block; overflow-x: auto; }
.prose th { font-weight: 700; color: var(--ink-2); font-size: var(--t-caption); text-transform: uppercase; letter-spacing: .04em; border-bottom: 1.5px solid var(--ink); }
.prose th, .prose td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose strong { font-weight: 700; }
.prose code { background: var(--sunk); padding: 1px 6px; border-radius: 6px; }
.callout { margin: 20px 0; padding: var(--s3) 20px; border-radius: var(--r1); background: var(--accent-soft); border-left: 4px solid var(--accent); }
.callout p:last-child { margin-bottom: 0; }
.article-head { margin-bottom: 20px; }
.article-head .small { display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; }
.article-head .desc { font-size: var(--t-body-l); color: var(--ink-2); font-weight: 500; }
.read-time { font-size: var(--t-caption); color: var(--ink-2); font-weight: 700; }

.notice { font-size: 14px; padding: 10px 14px; border-radius: var(--r1); background: var(--accent-soft); margin-bottom: var(--s3); }
mark { background: #FFE58A; color: #221E1C; padding: 0 4px; border-radius: 4px; }

/* ── 의견 보내기 (떠 있는 단추 + 시트) ── */
.fb-fab { position: fixed; right: var(--s3); bottom: var(--s3); z-index: 30; display: inline-flex; align-items: center; gap: var(--s2); height: 48px; padding: 0 var(--s3); border-radius: var(--r3); border: 0; cursor: pointer;
  background: var(--inverse-bg); color: var(--inverse-ink); font: 700 15px/1 var(--font); box-shadow: var(--shadow-pop), inset 0 0 0 1px var(--inverse-line); transition: transform .2s, opacity .2s; }
.fb-fab.away { transform: translateY(90px); opacity: 0; pointer-events: none; }
.fb-sheet { position: fixed; inset: auto 12px 12px 12px; z-index: 40; max-width: 420px; margin-left: auto; background: var(--surface); border-radius: var(--r2); padding: 20px; box-shadow: var(--shadow-pop), inset 0 0 0 1px var(--line); animation: rise .2s ease-out; }
.fb-sheet h2 { margin: 0 0 var(--s1); font-size: var(--t-heading); }
.fb-sheet .row { display: flex; gap: var(--s2); flex-wrap: wrap; margin: 12px 0; }
.fb-sheet .pill { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: var(--r3); border: 0; cursor: pointer; font: 600 14px/1 var(--font); background: var(--sunk); color: var(--ink); }
.fb-sheet .pill .ic { width: 16px; height: 16px; }
.fb-sheet .pill[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.fb-sheet textarea, .fb-sheet input { width: 100%; font: 500 16px/1.5 var(--font); color: var(--ink); background: var(--bg); border: 0; border-radius: var(--r1); padding: 12px 14px; box-shadow: inset 0 0 0 1px var(--line-2); resize: vertical; }
.fb-sheet textarea { min-height: 110px; }
.fb-sheet textarea:focus, .fb-sheet input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--accent); }
.fb-sheet .foot { display: flex; gap: 10px; margin-top: 12px; }
.fb-sheet .foot .btn { flex: 1; }
.fb-close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--sunk); color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.report-link { background: none; border: 0; padding: 12px 0 0; margin-top: 4px; min-height: 44px; color: var(--ink-2); font: 600 var(--t-caption)/1 var(--font); text-decoration: underline; cursor: pointer; }
@media (max-width: 600px) {
  .fb-fab { width: 52px; height: 52px; padding: 0; justify-content: center; right: 12px; bottom: 12px; }
  .fb-fab span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

footer { border-top: 1px solid var(--line); padding: var(--s4) 0 96px; font-size: 14px; color: var(--ink-2); }
footer nav { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s3); margin-bottom: 12px; font-weight: 600; }
footer nav a { min-height: 32px; display: inline-flex; align-items: center; }
footer a { color: var(--ink-2); text-decoration: none; }
footer a:hover { color: var(--ink); }
.foot-brand { display: flex; align-items: center; gap: var(--s2); margin-bottom: var(--s1); color: var(--ink); font-weight: 600; }

/* ── 세계 현황판 ───────────────────── */
.map-card { padding: 14px; }
.map { width: 100%; height: auto; display: block; }
.map .land { fill: var(--sunk); stroke: var(--line-2); stroke-width: .6; }
.map .dot { fill: var(--accent); fill-opacity: .75; stroke: var(--surface); stroke-width: 1.5; }
.seg { display: inline-flex; gap: 2px; padding: 3px; background: var(--sunk); border-radius: var(--r1); margin-bottom: 12px; }
.seg button { border: 0; background: transparent; padding: 8px 14px; border-radius: 9px; font: 600 14px/1 var(--font); color: var(--ink-2); cursor: pointer; min-height: 40px; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); font-weight: 700; box-shadow: 0 0 0 1px var(--line); }
.world-summary { font-size: var(--t-body-l); margin: 12px 0 4px; }
.rank { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--sunk); font-size: var(--t-caption); margin-right: 4px; }
#country-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px var(--s1); font-weight: 600; }
/* 국기(2026-10-18 「세계지도에 국기 이모지」): Twemoji 그림 — 윈도우는 국기 이모지를 두 글자로만 그려서. 그림 없는 나라는 두 글자 배지 */
#country-list .country { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.flag { width: 22px; height: 22px; flex: none; display: inline-block; }
.flag-code { display: inline-grid; place-items: center; height: 20px; width: auto; min-width: 28px; padding: 0 4px; border-radius: 4px; box-shadow: inset 0 0 0 1px var(--line-2); font: 700 var(--t-caption)/1 var(--font); color: var(--ink-2); }
.map .map-flag { filter: drop-shadow(0 1px 1.5px rgba(34, 30, 28, .35)); }
.credit { font-size: var(--t-caption); color: var(--ink-2); }
.credit a { color: inherit; }
.cta + .ad-slot { margin-top: 160px; } /* 광고는 단추에서 150px 이상 (Google 게임 사이트 권고) */

/* 따라 쓰기: 화면에선 미리보기, 프린트하면 A4 모눈종이 (한 줄 너비 165mm 를 --cols 칸으로 나눈다) — 종이는 늘 흰 바탕·검정 글씨 */
.sheet { background: #fff; color: #221E1C; border-radius: var(--r2); padding: 20px var(--s3); box-shadow: inset 0 0 0 1px var(--line); }
.sheet-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; font-size: 14px; border-bottom: 2px solid #221E1C; padding-bottom: var(--s2); margin-bottom: 14px; }
.sheet-name span { display: inline-block; width: 120px; border-bottom: 1px solid #221E1C; }
.sheet-sub { margin: 0; font-size: var(--t-caption); color: #5F5752; }
.word { margin-bottom: 12px; break-inside: avoid; }
.word-head { display: flex; align-items: baseline; gap: var(--s2); flex-wrap: wrap; margin-bottom: 6px; font-size: 14px; }
.word-head b { font-size: 18px; }
.word-n { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: #221E1C; color: #fff; font-size: var(--t-caption); font-weight: 700; }
.word-head .roman, .word-head .gloss { color: #5F5752; }
.word-head .missed { font-size: var(--t-caption); font-weight: 700; color: #B8461F; }
.grid-row { display: grid; grid-template-columns: repeat(var(--cols, 15), 1fr); border-left: 1px solid #8f89a3; border-top: 1px solid #8f89a3; }
.grid-row + .grid-row { border-top: 0; }
.cell { aspect-ratio: 1; display: grid; place-items: center; border-right: 1px solid #8f89a3; border-bottom: 1px solid #8f89a3;
  font: 400 clamp(12px, calc(63vw / var(--cols, 15)), 26px)/1 var(--font-ko);
  background: repeating-linear-gradient(90deg, #dcd7e4 0 3px, transparent 3px 6px) center / 100% 1px no-repeat,
    repeating-linear-gradient(180deg, #dcd7e4 0 3px, transparent 3px 6px) center / 1px 100% no-repeat; } /* 십자 보조선은 점선 — 칸 테두리와 헷갈리지 않게 */
.grid-row.model .cell { color: #221E1C; }
.grid-row.trace .cell { color: #c9c4d4; }
@media print {
  @page { size: A4; margin: 8mm 15mm; }
  .word { margin-bottom: 7px; } .word-head { margin-bottom: 3px; } .sheet-top { margin-bottom: 8px; padding-bottom: 6px; }
  body { background: #fff; }
  .top, footer, .fb-fab, .no-print, .ad-slot { display: none !important; }
  main .wrap { max-width: none; padding: 0; }
  .sheet { box-shadow: none; border-radius: 0; padding: 0; }
  .grid-row { grid-template-columns: repeat(var(--cols, 15), calc(165mm / var(--cols, 15))); width: max-content; }
  .cell { width: calc(165mm / var(--cols, 15)); aspect-ratio: auto; height: calc(165mm / var(--cols, 15)); font-size: calc(118mm / var(--cols, 15)); }
  .cell, .word-n { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
.type-row { display: inline-flex; align-items: center; gap: 10px; }
.type-row .ic { color: var(--accent-text); }
.list .meta .ic { width: 16px; height: 16px; }

/* ── 머리줄 오른쪽: 메뉴 + 통계 단추 ─── */
.top-right { display: flex; align-items: center; gap: 6px; }
.icon-btn { width: 44px; height: 44px; border-radius: var(--r3); border: 0; background: transparent; color: var(--ink); display: grid; place-items: center; cursor: pointer; flex: none; }
.icon-btn:hover { background: var(--sunk); }


/* ── 통계 창 ───────────────────────── */
.sheet-back { position: fixed; inset: 0; z-index: 39; background: rgba(23, 19, 26, .45); animation: fade .15s ease-out; }
@keyframes fade { from { opacity: 0; } }
body.no-scroll { overflow: hidden; }
.stats-sheet { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; margin: 0 auto; width: min(520px, 100%); max-height: 92vh; overflow-y: auto;
  background: var(--surface); border-radius: var(--r2) var(--r2) 0 0; padding: var(--s4) 20px var(--s5); box-shadow: var(--shadow-pop); animation: rise .2s ease-out; } /* 가운데는 margin 으로 — transform 을 쓰면 rise 애니메이션과 겹쳐 옆에서 미끄러져 들어온다 */
@media (min-width: 600px) { .stats-sheet { top: 0; bottom: 0; height: fit-content; margin: auto; border-radius: var(--r2); } }
.stats-sheet h2 { margin: 0 0 var(--s3); font-size: var(--t-title); }
.stats-sheet h3 { font-size: var(--t-body); margin: var(--s4) 0 var(--s2); }
.stats.three { grid-template-columns: repeat(3, 1fr); padding: var(--s2) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.rest-line { display: flex; gap: 12px; align-items: flex-start; margin-top: var(--s3); }
.rest-line .ico { width: 40px; height: 40px; border-radius: var(--r3); background: var(--accent-soft); color: var(--accent-text); display: grid; place-items: center; flex: none; }
.rest-line b { display: block; font-size: var(--t-body); }
.cal { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; }
.cal .day { aspect-ratio: 1; border-radius: 6px; background: var(--sunk); }
.day.p0, .day.p1 { background: color-mix(in srgb, var(--accent) 30%, var(--sunk)); }
.day.p2, .day.p3 { background: color-mix(in srgb, var(--accent) 60%, var(--sunk)); }
.day.p4, .day.p5 { background: var(--accent); }
.day.rest { background: repeating-linear-gradient(45deg, var(--accent-soft) 0 3px, var(--line-2) 3px 6px); }
.day.arch { box-shadow: inset 0 0 0 2px var(--line-2); background: transparent; }
.day.pre { visibility: hidden; }
.day.now { outline: 2px solid var(--ink); outline-offset: 1px; }
.cal-key { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: var(--t-caption); margin-top: var(--s2); }
.cal-key .day { width: 12px; height: 12px; display: inline-block; border-radius: 3px; margin-left: 6px; }
.cal-key .day:first-child { margin-left: 0; }
.dist, .cats { display: grid; gap: 6px; }
.dist-row, .cat-row { display: grid; grid-template-columns: 16px 1fr; gap: 10px; align-items: center; font-size: var(--t-caption); font-weight: 700; }
.cat-row { grid-template-columns: 112px 1fr 40px; }
.cat-row .cn { display: inline-flex; align-items: center; gap: 6px; }
.cat-row .cn .ic { width: 16px; height: 16px; color: var(--accent-text); }
.cat-row .pct { text-align: right; color: var(--ink-2); }
.bar-out { display: block; height: 20px; border-radius: 6px; background: var(--sunk); overflow: hidden; }
.bar-in { display: flex; align-items: center; justify-content: flex-end; height: 100%; padding: 0 6px; border-radius: 6px; background: var(--line-2); color: var(--ink); font-size: var(--t-caption); min-width: 0; }
.bar-in.today, .cat-row .bar-in { background: var(--accent); color: var(--on-accent); }

/* ── 내 표현 수첩 ──────────────────── */
.wrap-seg { flex-wrap: wrap; }
.w-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.w-main b { font: 700 19px/1.3 var(--font-ko); }
.w-meta { display: inline-flex; align-items: center; gap: 4px; font-size: var(--t-caption); white-space: nowrap; }
.w-meta .ic { width: 15px; height: 15px; }

/* ── 따라 쓰기 머리: 제목 + QR ─────── */
.sheet-top { align-items: flex-start; }
.sheet-title { display: flex; flex-direction: column; gap: 6px; }
.qr { flex: none; width: 76px; text-align: center; font-size: 11px; font-weight: 700; color: #5F5752; }
.qr svg { display: block; width: 76px; height: 76px; }
@media print { .qr { width: 19mm; font-size: 9px; } .qr svg { width: 19mm; height: 19mm; } .sheet-title { gap: 3px; } }

/* ── 보너스 듣고 고르기 ────────────── */
.bonus { text-align: left; margin-top: var(--s3); }
.bonus-head { display: flex; gap: 12px; align-items: center; margin-bottom: var(--s3); }
.bonus-head:last-child { margin-bottom: 0; }
.bonus-head .ico { width: 44px; height: 44px; border-radius: var(--r3); background: var(--accent-soft); color: var(--accent-text); display: grid; place-items: center; flex: none; }
.bonus-head b { display: block; }
.listen-row { display: flex; align-items: center; gap: 10px; margin: var(--s2) 0 var(--s3); }
.speak.big { width: 64px; height: 64px; background: var(--accent); color: var(--on-accent); }
.speak.big .ic { width: 28px; height: 28px; }
.bonus .say .muted { margin-left: 8px; font-weight: 500; }

/* ── 해설 글: 작성자 줄·관련 글·이전/다음 ── */
.crumbs .ic { width: 14px; height: 14px; color: var(--ink-2); }
.byline { display: flex; align-items: center; gap: var(--s2); font-size: var(--t-caption); color: var(--ink-2); padding-top: 12px; border-top: 1px solid var(--line); margin-top: var(--s3); }
.prose .speak.inline { width: 32px; height: 32px; margin: 0 2px 0 6px; vertical-align: -9px; }
.prose .speak.inline .ic { width: 16px; height: 16px; }
.related h2 { font-size: var(--t-heading); }
.prev-next { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: var(--s4) 0; }
.prev-next a { display: flex; flex-direction: column; gap: 2px; padding: 12px 0; text-decoration: none; border-top: 1px solid var(--line); }
.prev-next a b { font-size: var(--t-body); line-height: 1.35; }
.prev-next .nx { text-align: right; }

/* ── 달력 아카이브 ─────────────────── */
.arch-cal { display: grid; gap: var(--s4); margin: var(--s4) 0; }
.month h3 { margin: 0 0 var(--s2); font-size: var(--t-body-l); }
.month .wk, .month .days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; text-align: center; }
.month .wk span { font-size: var(--t-caption); color: var(--ink-2); font-weight: 700; }
.month .days > * { aspect-ratio: 1; display: grid; place-items: center; border-radius: var(--r1); font-size: 14px; font-weight: 700; text-decoration: none; min-width: 0; } /* 320px 폭에서도 7칸이 들어가게 최소 높이를 걸지 않는다(칸 ≈ 40px) */
.month .days a { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); }
.month .days a:hover { box-shadow: inset 0 0 0 2px var(--accent); color: var(--ink); }
.month .days .off { color: var(--line-2); }
.month .days .s0, .month .days .s1 { background: color-mix(in srgb, var(--accent) 25%, var(--surface)); box-shadow: none; }
.month .days .s2, .month .days .s3 { background: color-mix(in srgb, var(--accent) 55%, var(--surface)); box-shadow: none; }
.month .days .s4, .month .days .s5 { background: var(--accent); color: var(--on-accent); box-shadow: none; }
.list-h { font-size: var(--t-heading); }
.month .days .today { outline: 2px solid var(--ink); outline-offset: -2px; } /* 점수 색 뒤에 와야 푼 오늘도 테두리가 남는다 */

/* 한글 낱말 중간에서 줄이 바뀌지 않게 (영어 섞인 제목·표 포함). 아주 긴 낱말만 마지막 수단으로 끊는다 */
body { word-break: keep-all; overflow-wrap: break-word; }
.bar-in:empty { padding: 0; }
:focus:not(:focus-visible) { outline: none; }

/* ── 디자인 검수 반영 (2026-10-11) ── */
.nowrap { white-space: nowrap; }
.game-done .seoul, .game-done .home-about { display: none; } /* 다 푼 뒤엔 결과에 집중 */
.share-actions { margin-top: var(--s4); }
.share-preview summary { cursor: pointer; font-size: var(--t-caption); font-weight: 700; color: var(--ink-2); min-height: 44px; display: flex; align-items: center; justify-content: center; }
.share-preview .share-box { margin-top: 0; }
.streak-top > div { flex: 1; }
.link-btn { border: 0; background: none; color: var(--accent-text); font: 700 14px/1 var(--font); min-height: 44px; padding: 0 var(--s2); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
/* 누르는 곳 44px */
footer nav a { min-height: 44px; }
details.card > summary { min-height: 44px; }
.verdict .more { min-height: 44px; }
.speak.inline { width: 44px; height: 44px; }
.prose .speak.inline { width: 40px; height: 40px; vertical-align: -12px; }
.seg button { min-height: 44px; }
.recap a, .home-about a { display: inline-block; min-height: 44px; line-height: 44px; }
/* 홈 「Popular guides」처럼 링크가 여러 개 이어지는 줄: 블록 링크면 줄이 꺾일 때 44px 씩 벌어지고 긴 제목이 통째로 밀린다 → 글 속 링크로, 누를 자리는 위아래 여백으로 (2026-10-17 디자인 검수) */
.home-about p.small a { display: inline; min-height: 0; line-height: inherit; padding: 10px 0; }
.home-about p.small { line-height: 2; }
/* 달력 범례 */
.arch-key { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: var(--t-caption); color: var(--ink-2); }
.arch-key i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; margin-left: 8px; }
.arch-key i:first-child { margin-left: 0; }
/* 따라 쓰기 머리: 로마자는 낱말 바로 뒤, 뜻은 다음 줄 */
.word-head .gloss { flex-basis: 100%; }
/* 해설 목록: 분야 바로가기 */
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin: var(--s3) 0; }
.jump a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: var(--r3); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); text-decoration: none; font-weight: 600; font-size: 14px; }
.jump a .ic { width: 16px; height: 16px; color: var(--accent-text); }
@media print { .word-head .gloss { flex-basis: auto; } .word-head .gloss::before { content: "— "; } } /* 종이는 한 장에 — 뜻을 같은 줄에 */
@media (max-width: 360px) { .top .wrap { padding-left: 12px; padding-right: 12px; } .nav a { padding: 8px 6px; } }

/* ── 홈 허브 (v4, Tally 처럼: 큰 제목 한 줄 · 카드 하나 · 줄 목록) ── */
.home { padding-top: var(--s3); }
.home-hi { font-size: 36px; letter-spacing: -.03em; margin-bottom: var(--s2); }
.home-sub { font-size: var(--t-body-l); margin-bottom: var(--s4); }
.today-card { display: flex; flex-direction: column; gap: var(--s3); padding: 20px; border-radius: var(--r2); box-shadow: inset 0 0 0 1px var(--line-2); text-decoration: none; color: var(--ink); transition: box-shadow .15s; }
.today-card:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.tc-top { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s2); flex-wrap: wrap; }
.tc-top b { font-size: var(--t-heading); }
.today-card .btn.ghost { box-shadow: inset 0 0 0 1px var(--line-2); }
.mini-tiles { display: inline-flex; gap: 3px; vertical-align: -1px; }
.mini-tiles i { width: 12px; height: 12px; border-radius: 3px; }
.home-streak { display: flex; align-items: center; gap: var(--s2); margin-top: var(--s3); padding: 0 var(--s1); font-size: var(--t-body); }
.home-streak > span { flex: 1; }
.home-links { list-style: none; padding: 0; margin: var(--s5) 0 0; border-top: 1px solid var(--line); }
.home-links li { border-bottom: 1px solid var(--line); }
.home-links a { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 10px var(--s1); text-decoration: none; color: var(--ink); }
.home-links a:hover { background: var(--sunk); color: var(--ink); }
.home-links a > span { flex: 1; display: flex; flex-direction: column; font-weight: 600; font-size: var(--t-body); }
.home-links small { font-weight: 400; font-size: var(--t-caption); color: var(--ink-2); }
.home-links .ic:last-child { color: var(--ink-2); width: 18px; height: 18px; }
.home .seoul { margin-top: var(--s5); }
.home-about { margin-top: var(--s6); padding-top: var(--s4); border-top: 1px solid var(--line); }
.home-about h2 { font-size: var(--t-heading); margin-top: 0; }
.home-about p { color: var(--ink-2); font-size: var(--t-body); }
.in-game .home-about { display: none; }
[hidden] { display: none !important; }
/* v4: 장식 덜어내기 — 옅은 면 대신 선, 동그란 아이콘 바탕은 회색 */
.card { box-shadow: inset 0 0 0 1px var(--line); }
.cat { background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); }
.cat .ic, .cat-h .ic, .type-row .ic, .jump a .ic, .cat-row .cn .ic { color: var(--ink-2); }
.btn { font-weight: 600; }
.share-card { display: block; width: 100%; height: auto; border-radius: var(--r2); box-shadow: inset 0 0 0 1px var(--line); border: 1px solid var(--line); margin-bottom: var(--s2); }
.share-box { font-family: var(--font); font-size: 14px; }

/* ── v4.1 색 간섭 줄이기: 주황은 주 단추·점수·진행 막대·로고에만 ── */
.next .ico, .next .row.first .ico, .streak-top .flame, .bonus-head .ico, .challenge .ico, .rest-line .ico, .type-card .type-ico, .steps .n { background: var(--sunk); color: var(--ink); }
.challenge { background: var(--sunk); }
.notice { background: var(--sunk); }
.callout { background: var(--sunk); border-left-color: var(--line-2); }
.btn.secondary { background: var(--sunk); color: var(--ink); }
.btn.secondary:hover { color: var(--ink); }
.chip.fire { color: var(--ink); }
.badge.on { background: var(--sunk); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.link-btn, .kicker { color: var(--ink-2); }
.mine, .cat-h .ic { color: var(--ink-2); }
.brand .word b { color: var(--accent-text); }
.today-card:hover { box-shadow: inset 0 0 0 1px var(--accent); }

/* 첫 방문 3단계 소개 (허브 안, 처음 온 사람에게만) */
.steps { list-style: none; padding: 0; margin: 0 0 var(--s4); display: grid; gap: 12px; }
.steps li { display: flex; gap: 12px; align-items: flex-start; }
.steps .n { flex: none; width: 26px; height: 26px; border-radius: var(--r3); display: grid; place-items: center; font-weight: 700; font-size: var(--t-caption); background: var(--sunk); color: var(--ink); }
.steps b { display: block; font-size: var(--t-body); }
.steps .s { font-size: var(--t-body); color: var(--ink-2); }

/* ── v4.2 깔끔하게 (2026-10-11 「화면도 좀 깔끔하게」) ── */
/* 휴대폰: 위는 로고+통계 한 줄, 메뉴는 아래 탭 바(앱처럼). 컴퓨터: 메뉴는 머리줄, 아이콘 없이 */
.nav-ic { display: none; }
@media (max-width: 600px) {
  /* 머리줄의 backdrop-filter 는 안쪽 position:fixed 의 기준을 머리줄로 바꿔 버린다 → 탭 바가 위에 붙던 문제. 휴대폰에선 끈다 */
  .top { backdrop-filter: none; background: var(--bg); }
  .top .wrap { flex-wrap: nowrap; height: 56px; padding-top: 0; padding-bottom: 0; }
  .nav { position: fixed; z-index: 25; left: 0; right: 0; bottom: 0; width: auto; order: 0; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); gap: 0;
    background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(12px); border-top: 1px solid var(--line); border-radius: 0; }
  .nav a { flex: 1; flex-direction: column; gap: 2px; min-height: 52px; padding: 4px 0; font-size: 12px; font-weight: 600; color: var(--ink-2); background: none !important; box-shadow: none !important; }
  .nav a[aria-current="page"] { color: var(--ink); }
  .nav a[aria-current="page"] .nav-ic { color: var(--accent); }
  .nav-ic { display: block; width: 22px; height: 22px; }
  body { padding-bottom: 72px; }
  footer { padding-bottom: var(--s4); }
}
/* 바닥글: 로고 한 줄 + 링크 한 줄 + 작은 안내 */
footer { font-size: var(--t-caption); }
footer nav { gap: 0 var(--s3); margin: var(--s2) 0; }
footer nav a, .foot-fb { min-height: 40px; display: inline-flex; align-items: center; }
.foot-fb { border: 0; background: none; padding: 0; font: inherit; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.foot-fb:hover { color: var(--ink); }
.foot-note { color: var(--ink-2); }
/* 홈: 서울 한마디는 상자 없이 한 줄 */
.home .seoul { background: none; box-shadow: none; padding: var(--s3) 0 0; border-top: 1px solid var(--line); border-radius: 0; }
.seoul .clock { width: auto; display: flex; flex-direction: column; align-items: center; }
.seoul .line { font-size: 17px; }
.home-about { margin-top: var(--s5); }
/* 결과: 상자를 걷어 내고 선으로 나눈다 */
.result .card.next, .result .card.bonus, .result .recap-card { background: none; box-shadow: none; padding-left: 0; padding-right: 0; border-radius: 0; border-top: 1px solid var(--line); }
.result .card.bonus { padding-top: var(--s3); padding-bottom: var(--s3); }
.next h2 { font-size: var(--t-body-l); }
.streak-card { border-bottom: 0; }
.tomorrow { display: block; background: none; box-shadow: none; color: var(--ink-2); text-align: center; padding: var(--s2) 0; font-size: var(--t-body); }
.tomorrow .countdown { font-size: var(--t-body); color: var(--ink); }
.tomorrow-note { text-align: center; margin: calc(-1 * var(--s2)) 0 var(--s3); }
.tomorrow-note a { color: var(--ink-2); }

/* ── v4.3 UX 점검 반영 (2026-10-11) ── */
/* 문제 푸는 동안 휴대폰 아래 탭 바를 숨긴다(듀오링고 레슨 화면처럼) — 뒤로 가기는 홈으로 */
@media (max-width: 600px) { body.in-game .nav { display: none; } body.in-game { padding-bottom: 0; } }
.home-row { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px var(--s1); border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; font-size: var(--t-body); }
.home-row > span { flex: 1; }
.home-row .ic:last-child { color: var(--ink-2); width: 18px; height: 18px; }
.home-streak { min-height: 52px; margin-top: var(--s3); border-top: 1px solid var(--line); }
#home-streak { margin-top: var(--s2); }
#home-streak > :last-child { border-bottom: 1px solid var(--line); }
.today-card .countdown { font-size: var(--t-body); }
.cat .mine { display: inline-flex; margin-left: 2px; }
.cat .mine .ic { width: 14px; height: 14px; color: var(--accent); }
.report-link { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.report-link .ic { width: 15px; height: 15px; }
.bonus-row { width: 100%; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.result .card.bonus { border-top: 0; padding: 0; }
.arch-key i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; margin-left: 10px; vertical-align: -2px; }
.arch-key i:first-child { margin-left: 0; }
.arch-key .s1 { background: color-mix(in srgb, var(--accent) 25%, var(--surface)); }
.arch-key .s3 { background: color-mix(in srgb, var(--accent) 55%, var(--surface)); }
.arch-key .s5 { background: var(--accent); }
.arch-key .open { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); }
.arch-list summary { cursor: pointer; font-weight: 600; color: var(--ink-2); min-height: 44px; display: flex; align-items: center; }
.stats-sheet a.stat { text-decoration: none; color: inherit; }

/* ── 차별점 세 기능 (2026-10-12) ── */
/* 투표: 보기 바탕에 옅은 막대 + 오른쪽 % (답한 뒤에만) */
.opt { position: relative; overflow: hidden; }
.opt .fill { position: absolute; inset: 0 auto 0 0; background: var(--sunk); z-index: 0; transition: width .5s ease-out; }
.opt.ok .fill { background: color-mix(in srgb, var(--ok) 16%, transparent); }
.opt.bad .fill { background: color-mix(in srgb, var(--bad) 12%, transparent); }
.opt > :not(.fill) { position: relative; z-index: 1; }
.opt .pct { margin-left: auto; font-size: var(--t-caption); font-weight: 700; color: var(--ink-2); }
.vote-note { font-size: var(--t-caption); color: var(--ink-2); margin: 10px 2px 0; }
.vote-note b { color: var(--ink); }
.vote-note .demo { color: var(--ink-2); font-style: italic; }

/* ── 제로베이스 정리 (2026-10-14): 말투 한 줄 · 날짜별 해설 페이지 · 아카이브 「Answers」 ── */
.tone-line { margin-top: 10px; font-size: var(--t-caption); color: var(--ink-2); }
.tone-line b { color: var(--ink); }
.list li { position: relative; }
.list li:has(.arch-ans) > a { padding-right: 104px; }
.arch-ans { position: absolute; right: var(--s1); top: 50%; transform: translateY(-50%); font-size: var(--t-caption); font-weight: 600; padding: 8px 12px; border-radius: var(--r3); border: 1px solid var(--line-2); text-decoration: none; min-height: 36px; display: inline-flex; align-items: center; }
.list li:has(.arch-ans) .meta { display: none; }
.day-try { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r2); margin: var(--s3) 0 var(--s4); font-size: var(--t-body); }
.day-try .btn { min-height: 44px; padding: 0 18px; width: auto; }
.day-q { padding: var(--s3) 0; border-top: 1px solid var(--line); }
.day-q h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font-size: var(--t-body); }
.day-n { width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--surface); display: grid; place-items: center; font-size: 14px; flex: none; }
.day-prompt { font-weight: 600; }
.day-ko { font: 700 22px/1.35 var(--font-ko); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.day-ko .muted { font: 400 15px/1.4 var(--font); }
.day-opts { list-style: none; padding: 0; margin: 8px 0 12px; display: grid; gap: 6px; }
.day-opts li { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: var(--r3); background: var(--sunk); font-size: var(--t-body); }
.day-opts li i { width: 20px; flex: none; }
.day-opts li .ic { width: 20px; height: 20px; flex: none; }
.day-opts li.ok { background: var(--ok-soft); font-weight: 700; box-shadow: inset 0 0 0 2px var(--ok); }
.day-opts li.ok .ic { color: var(--ok); }

/* ── 매거진 읽기 (2026-10-18 「매거진 읽듯이, 공부하는 것처럼 말고」·「자간·위아래 불편하지 않게」) ──
   1440·390 에서 17/1.7 · 18/1.65 · 18/1.75 를 찍어 비교해 정했다. 한 줄 약 60~68자(본문 폭 568px).
   자간: 본문 0, 큰 제목만 약간 좁게, 한글은 기본. 새 블러·유리·흐린 색 덩어리 없음 */
:root {
  --read-size: 18px; --read-lh: 1.7; --read-gap: 1.15em;
  --read-h1: 34px; --read-h2: 25px; --read-h3: 20px;
  --read-h2-top: 2.2em; --read-h2-bottom: .5em;
  --track-display: -.025em; --track-title: -.018em; --track-body: 0;
  --read-small: var(--t-caption); --read-small-lh: 1.55;
}
@media (max-width: 600px) { :root { --read-size: 17px; --read-lh: 1.65; --read-h1: 30px; --read-h2: 22px; --read-h3: 19px; } }
.prose { font-size: var(--read-size); line-height: var(--read-lh); letter-spacing: var(--track-body); }
.prose > p, .prose > ul, .prose > ol { margin: 0 0 var(--read-gap); }
.prose h1 { font-size: var(--read-h1); line-height: 1.18; letter-spacing: var(--track-display); }
.prose > h2 { font-size: var(--read-h2); line-height: 1.3; letter-spacing: var(--track-title); margin: var(--read-h2-top) 0 var(--read-h2-bottom); }
.prose > h3 { font-size: var(--read-h3); line-height: 1.35; letter-spacing: -.01em; margin: 1.8em 0 .4em; }
.prose li { margin: .35em 0; }
.prose [lang="ko"], .prose h1, .prose h2 { word-break: keep-all; }
.article-head .desc { font-size: calc(var(--read-size) + 1px); line-height: 1.55; }
/* 교재 느낌 덜기: 표 머리는 대문자·굵은 검정 줄 대신 옅게, 요약 상자는 면 대신 왼쪽 선 하나 */
.prose table { font-size: var(--t-body); line-height: 1.55; margin: 1.2em 0 1.6em; }
.prose th { text-transform: none; letter-spacing: 0; font-size: var(--t-caption); font-weight: 600; color: var(--ink-2); border-bottom: 1px solid var(--line-2); }
.prose th, .prose td { padding: 10px 14px 10px 0; }
.callout { background: none; border-left: 2px solid var(--line-2); border-radius: 0; padding: 2px 0 2px 20px; margin: 1.4em 0; }
.callout p { margin-bottom: .6em; }
/* 경험담 상자: 위아래 가는 선만, 2~3문장, 출처는 작게 */
.story { margin: 2em 0; padding: 18px 0 16px; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line); }
.story .story-k { margin: 0 0 6px; font: 600 var(--t-caption)/1.4 var(--font); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.story .story-t { margin: 0 0 8px; font-size: calc(var(--read-size) + 1px); line-height: 1.6; font-weight: 500; color: var(--ink); }
.story .story-src { margin: 0; font-size: var(--read-small); line-height: var(--read-small-lh); color: var(--ink-2); }
.story .story-src a, .sources a { color: inherit; text-underline-offset: 2px; }
/* 출처: 작은 글자 각주 칸 (옅은 색이지만 --ink-2 = 6.8:1) */
.sources { margin-top: 2.6em; padding-top: 14px; border-top: 1px solid var(--line); font-size: var(--read-small); line-height: var(--read-small-lh); color: var(--ink-2); }
.sources h2 { margin: 0 0 6px; font: 600 var(--t-caption)/1.4 var(--font); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.sources ul { list-style: none; padding: 0; margin: 0; }
.sources li { margin: 0 0 6px; overflow-wrap: anywhere; }
/* 글 끝 「풀어 보기」: 검은 덩어리 대신 선 사이 한 줄 */
.cta.cta-quiet { background: none; color: var(--ink); box-shadow: none; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: 0; padding: var(--s4) 0; display: flex; align-items: center; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; text-align: left; }
.cta.cta-quiet p { margin: 0; font: 700 var(--t-heading)/1.3 var(--font); letter-spacing: var(--track-title); }
/* 읽기 진행 바: 머리줄 아래 가장자리 3px, 주황(진행 막대 = 주황 쓰는 세 군데 중 하나) */
.top { position: sticky; }
.read-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; pointer-events: none; }
.read-progress span { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; will-change: transform; }
@media (prefers-reduced-motion: no-preference) { .read-progress span { transition: transform .08s linear; } }
@media print { .read-progress { display: none; } }
/* 해설 목록·관련 글: 카드 대신 줄 목록 (시안 A). 제목 17 / 설명 15·줄 높이 1.55 — 시안의 13px·1.45 가 빽빽해서 키움 */
.grid-cards.rows { grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--line); }
.grid-cards.rows li { border-bottom: 1px solid var(--line); }
.grid-cards.rows a { display: grid; grid-template-columns: 1fr auto; column-gap: var(--s4); row-gap: 6px; height: auto; padding: 18px 0; border-radius: 0; background: none; box-shadow: none; }
.grid-cards.rows a:hover { box-shadow: none; color: var(--ink); }
.grid-cards.rows a:hover b { text-decoration: underline; text-underline-offset: 3px; }
.grid-cards.rows b { grid-column: 1; font-size: var(--t-body-l); line-height: 1.4; letter-spacing: -.005em; }
.grid-cards.rows .desc { grid-column: 1; font-size: var(--t-body); line-height: 1.55; }
.grid-cards.rows .read-time { grid-column: 2; grid-row: 1; padding-top: 2px; font-weight: 500; white-space: nowrap; }
@media (max-width: 480px) { .grid-cards.rows a { grid-template-columns: 1fr; } .grid-cards.rows .read-time { grid-column: 1; grid-row: auto; padding-top: 0; } }
.cat-h { margin-top: var(--s6); }

/* 404 화면 (2026-10-18 「거부당한다는 느낌보다 따뜻함으로」): 매거진 톤 — 카드 없이 가는 선으로 나누고, 주황은 주 단추 하나 */
.nf { padding: var(--s5) 0 var(--s4); }
.nf h1 { letter-spacing: var(--track-display, -.02em); }
.nf .muted { font-size: var(--t-body-l); line-height: 1.55; max-width: 34em; }
/* 카운트다운: 숫자 48(휴대폰 40)·고정폭, 단위 글자(h·m·s)는 15 보조색 */
.nf-clock { display: flex; gap: var(--s4); margin: var(--s3) 0; font: 600 var(--t-body)/1 var(--font); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.nf-clock span { display: inline-flex; align-items: baseline; }
.nf-clock b { font: 700 48px/1 var(--font); letter-spacing: -.02em; color: var(--ink); margin-right: 2px; }
.nf-open { font-size: var(--t-heading); }
.nf-actions { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s4); }
.nf-game { margin-top: var(--s5); padding-top: var(--s4); border-top: 1px solid var(--line); }
.nf-game-top { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; }
.nf-game h2 { margin: 0; font-size: var(--t-heading); }
.nf-score { display: flex; gap: var(--s3); font-size: var(--t-caption); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.nf-score b { color: var(--ink); font-size: var(--t-body); margin-left: var(--s1); }
.nf-stage { position: relative; height: 240px; margin-top: var(--s3); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.nf-stage canvas { display: block; width: 100%; height: 100%; touch-action: pan-y; }
.nf-start { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: var(--bg); white-space: nowrap; }
.nf-help { margin-top: var(--s2); font-size: var(--t-caption); }
.nf-game h2 [lang="ko"], .nf-help [lang="ko"] { font-family: var(--font-ko); font-size: 1.25em; font-weight: 700; } /* 낱자모는 영어 글자 옆에서 작아 보인다 */
.nf-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--s2); margin-top: var(--s3); }
.nf-grid button { min-height: 48px; border: 1px solid var(--line-2); border-radius: var(--r1); background: var(--surface); color: var(--ink); font: 700 32px/1 var(--font-ko); cursor: pointer; } /* 낱자모는 몸통이 작아 32 */
.nf-grid button:disabled { opacity: .35; cursor: default; }
@media (max-width: 480px) { .nf-clock b { font-size: 40px; } .nf-clock { gap: var(--s3); } .nf-actions .nf-learn { display: none; } .nf-grid { grid-template-columns: repeat(4, 1fr); } }

