/* ReadMark — 모바일 우선 스타일 */
:root {
  --bg: #f6f1e7; --card: #fffdf8; --ink: #2a2520; --sub: #6f665c; --line: #e6ddcd;
  --brand: #2f6f62; --brand-2: #e2a53d; --brand-soft: #e3efe9; --danger: #c8553d;
  --like: #f07f9a; --sad: #6f9ddc; --wow: #eab73b; --angry: #ee7d50; --ask: #9b7fdc; --word: #3fae84;
  --radius: 18px; --shadow: 0 6px 24px rgba(60, 45, 20, .08);
  --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
  --ui: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR", "Malgun Gothic", sans-serif;
  --serif: "Gowun Batang", "Noto Serif KR", "AppleMyungjo", serif;
  color-scheme: light;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); font-family: var(--ui); }
body { overscroll-behavior: none; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; padding: 0; }
input, textarea, select { font: inherit; color: inherit; }
a { color: var(--brand); }
.hidden { display: none !important; }
svg.i { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ── 공통 ── */
.screen { min-height: 100%; padding: calc(16px + var(--safe-t)) 18px calc(96px + var(--safe-b)); max-width: 560px; margin: 0 auto; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; margin-bottom: 14px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 20px; border-radius: 14px; font-weight: 700; font-size: 16px; }
.btn.primary { background: var(--brand); color: #fff; }
.btn.primary:active { filter: brightness(.92); }
.btn.soft { background: var(--brand-soft); color: var(--brand); }
.btn.ghost { color: var(--sub); }
.btn.block { width: 100%; }
.btn:disabled { opacity: .45; }
.field { display: block; margin-bottom: 12px; }
.field span { display: block; font-size: 13px; color: var(--sub); margin: 0 0 6px 4px; font-weight: 600; }
.field input, .field select { width: 100%; height: 52px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; padding: 0 16px; font-size: 17px; outline: none; }
.field input:focus { border-color: var(--brand); }
.row { display: flex; gap: 10px; align-items: center; }
.muted { color: var(--sub); }
.small { font-size: 13px; }
h1, h2, h3 { margin: 0; letter-spacing: -.02em; }
.sec-title { font-size: 15px; font-weight: 800; margin: 22px 4px 10px; display: flex; justify-content: space-between; align-items: baseline; }
.sec-title small { font-weight: 500; color: var(--sub); font-size: 12px; }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 6px 11px; border-radius: 999px; background: var(--card); font-size: 13px; font-weight: 700; box-shadow: var(--shadow); }
.bar { height: 8px; background: #ece4d5; border-radius: 99px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--brand); border-radius: 99px; transition: width .5s; }
.err { color: var(--danger); font-size: 14px; min-height: 20px; margin: 4px 4px 10px; }

/* ── 하단 탭 ── */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: rgba(255, 253, 248, .94); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line); display: flex; padding: 6px 8px calc(6px + var(--safe-b)); }
.tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; font-weight: 700; color: #a39886; text-decoration: none; padding: 6px 0; }
.tabbar a.on { color: var(--brand); }

/* ── 입장 ── */
.login { display: flex; flex-direction: column; justify-content: center; min-height: 100vh; min-height: 100dvh; padding-bottom: 40px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 26px; letter-spacing: -.03em; }
.logo .mk { width: 40px; height: 40px; border-radius: 12px; background: var(--brand); display: grid; place-items: center; }
.login .tag { font-size: 15px; color: var(--sub); margin: 10px 0 28px; line-height: 1.6; }
.login .foot { text-align: center; margin-top: 18px; font-size: 14px; }

/* ── 홈 ── */
.hello { display: flex; justify-content: space-between; align-items: center; margin: 4px 2px 16px; }
.hello h1 { font-size: 23px; }
.hello .sub { color: var(--sub); font-size: 14px; margin-top: 3px; }
.today { display: flex; gap: 16px; align-items: center; }
.ring { width: 78px; height: 78px; flex: none; position: relative; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 15px; line-height: 1.1; text-align: center; }
.ring b small { display: block; font-size: 10px; color: var(--sub); font-weight: 600; }
.lv { flex: 1; }
.lv .t { font-weight: 800; font-size: 15px; display: flex; justify-content: space-between; }
.lv .t span { color: var(--sub); font-weight: 600; font-size: 12px; }
.lv .bar { margin: 8px 0 6px; height: 10px; }
.lv .bar > i { background: linear-gradient(90deg, var(--brand-2), #f0c36b); }
.continue { display: flex; gap: 16px; align-items: stretch; cursor: pointer; }
.cover { width: 92px; flex: none; aspect-ratio: 2/3; border-radius: 6px 12px 12px 6px; overflow: hidden; box-shadow: 0 8px 20px rgba(40, 30, 10, .25); position: relative; background: #34584f; }
.cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.18), transparent 8%, rgba(255,255,255,.08) 10%, transparent 14%); }
.continue .info { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.continue h3 { font-size: 19px; font-family: var(--serif); }
.continue .au { color: var(--sub); font-size: 13px; margin: 4px 0 10px; }
.continue .ch { font-size: 14px; font-weight: 700; }
.continue .bar { margin: 8px 0 4px; }
.continue .btn { margin-top: auto; height: 42px; font-size: 15px; }
.shelf { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.shelf .bk { text-align: center; font-size: 12px; font-weight: 700; }
.shelf .bk .cover { width: 100%; margin-bottom: 8px; }
.shelf .bk.locked .cover { filter: grayscale(.6) brightness(.9); }
.shelf .bk.locked .cover .lock { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; z-index: 2; font-size: 11px; background: rgba(30, 25, 20, .35); }
.ccover { width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding: 10px; color: #fff; font-family: var(--serif); font-size: 13px; text-align: left; }
.goalcard .bar { height: 12px; margin: 10px 0 6px; }
.goalcard .bar > i { background: linear-gradient(90deg, var(--brand), #5aa58f); }

/* ── 기록 ── */
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.tile { background: var(--card); border-radius: 16px; padding: 14px; box-shadow: var(--shadow); }
.tile b { display: block; font-size: 24px; letter-spacing: -.03em; }
.tile span { font-size: 12px; color: var(--sub); font-weight: 600; }
.badges { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.badge { text-align: center; font-size: 11px; font-weight: 700; color: var(--sub); }
.badge .em { width: 56px; height: 56px; margin: 0 auto 6px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; background: #efe8da; filter: grayscale(1); opacity: .45; }
.badge.on { color: var(--ink); }
.badge.on .em { filter: none; opacity: 1; background: radial-gradient(circle at 30% 30%, #fff6dd, #f5d38a); box-shadow: 0 4px 12px rgba(226, 165, 61, .35); }
.journey { display: grid; grid-template-columns: repeat(15, minmax(0, 1fr)); align-items: end; gap: 4px; height: 120px; padding-top: 6px; }
.journey .col { display: flex; flex-direction: column-reverse; gap: 1px; height: 100%; min-width: 0; }
.journey .col i { display: block; width: 100%; border-radius: 3px; min-height: 0; }
.journey .col.empty::after { content: ""; display: block; height: 3px; background: var(--line); border-radius: 2px; }
.journey-x { display: grid; grid-template-columns: repeat(15, minmax(0, 1fr)); gap: 4px; margin-top: 6px; }
.journey-x span { text-align: center; font-size: 10px; color: var(--sub); }
.legend { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12px; color: var(--sub); margin-top: 10px; }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 4px; vertical-align: -1px; }
.chips { display: flex; gap: 6px; overflow-x: auto; padding: 2px 2px 10px; scrollbar-width: none; }
.chips button { flex: none; padding: 8px 13px; border-radius: 99px; background: var(--card); font-size: 13px; font-weight: 700; box-shadow: var(--shadow); white-space: nowrap; }
.chips button.on { background: var(--ink); color: #fff; }
.rlist .it { padding: 14px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.rlist .it:last-child { border: 0; }
.rlist q { display: block; font-family: var(--serif); font-size: 15px; line-height: 1.6; quotes: none; padding-left: 12px; border-left: 3px solid var(--c, var(--line)); }
.rlist .memo { margin: 8px 0 0 15px; font-size: 14px; }
.rlist .meta { margin: 6px 0 0 15px; font-size: 12px; color: var(--sub); }
.empty { text-align: center; color: var(--sub); padding: 30px 10px; font-size: 14px; line-height: 1.7; }

/* ── 우리 반 ── */
.feed .it { display: flex; gap: 10px; align-items: center; padding: 9px 0; font-size: 14px; border-bottom: 1px solid var(--line); }
.feed .it:last-child { border: 0; }
.feed .it .em { font-size: 20px; }
.where { display: grid; grid-template-columns: repeat(15, minmax(0, 1fr)); gap: 3px; align-items: end; height: 70px; }
.where div { background: #e7dfcf; border-radius: 4px 4px 0 0; position: relative; min-height: 3px; }
.where div.me { background: var(--brand-2); }
.where div.me::after { content: "나"; position: absolute; top: -18px; left: 50%; transform: translateX(-50%); font-size: 10px; font-weight: 800; color: var(--brand-2); }
.typebars .r { display: flex; align-items: center; gap: 10px; margin: 8px 0; font-size: 13px; }
.typebars .r .bar { flex: 1; height: 10px; }
.typebars .r b { width: 30px; text-align: right; }

/* ── 리더 ── */
.reader { position: fixed; inset: 0; display: flex; flex-direction: column; background: var(--paper); color: var(--text); z-index: 30;
  --paper: #fbf6ea; --text: #2b2520; --rsub: #8a7f70; --rline: #e9dfcb; --fs: 19px; --lh: 1.85; --rfont: var(--serif); }
.reader[data-theme="light"] { --paper: #ffffff; --text: #1f1f1f; --rsub: #888; --rline: #eee; }
.reader[data-theme="dark"] { --paper: #1c1b19; --text: #d9d3c7; --rsub: #8d877c; --rline: #33312d; color-scheme: dark; }
.reader[data-family="sans"] { --rfont: var(--ui); }
.rbar { display: flex; align-items: center; gap: 2px; padding: calc(6px + var(--safe-t)) 6px 6px; border-bottom: 1px solid var(--rline); min-height: 52px; }
.rbar button { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; color: var(--text); }
.rbar button:active { background: rgba(127, 127, 127, .12); }
.rbar button.on { color: var(--brand-2); }
.rtitle { flex: 1; min-width: 0; text-align: center; font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rtitle small { color: var(--rsub); font-weight: 600; margin-right: 4px; }
.rview { flex: 1; position: relative; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.rpages { position: absolute; top: 18px; column-fill: auto; font-family: var(--rfont); font-size: var(--fs); line-height: var(--lh); word-break: keep-all; overflow-wrap: break-word;
  will-change: transform; }
.rpages.anim { transition: transform .28s cubic-bezier(.2, .7, .2, 1); }
.rpages p { margin: 0 0 .75em; text-indent: 1em; text-align: left; }
.rpages .chead { text-align: center; padding: 26px 0 30px; break-inside: avoid; }
.rpages .chead .cnum { font-family: var(--ui); font-size: 13px; letter-spacing: .2em; color: var(--brand-2); font-weight: 800; }
.rpages .chead h2 { font-size: 1.45em; margin: 10px 0 8px; line-height: 1.35; }
.rpages .chead .cmeta { font-family: var(--ui); font-size: 12px; color: var(--rsub); }
.rpages .chead .orn { color: var(--rsub); letter-spacing: .5em; font-size: 12px; margin-top: 14px; }
.s { border-radius: 3px; transition: background-color .2s; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.s.sel { background: rgba(226, 165, 61, .28) !important; }
.s[class*="hl-"] { background-image: linear-gradient(transparent 58%, var(--hc) 58%); background-repeat: no-repeat; }
.s.hl-like { --hc: rgba(240, 127, 154, .38); } .s.hl-sad { --hc: rgba(111, 157, 220, .38); }
.s.hl-wow { --hc: rgba(234, 183, 59, .45); } .s.hl-angry { --hc: rgba(238, 125, 80, .38); }
.s.hl-ask { --hc: rgba(155, 127, 220, .38); }
.s.hw { text-decoration: underline dotted var(--word) 2px; text-underline-offset: 5px; }
.s.flash { animation: flash 1.6s ease; }
@keyframes flash { 0%, 60% { background-color: rgba(226, 165, 61, .45); } 100% { background-color: transparent; } }
.s[data-heat]::after { content: attr(data-heat); font-family: var(--ui); font-size: 10px; font-weight: 800; color: #fff; background: var(--brand); border-radius: 8px; padding: 1px 5px; margin-left: 3px; vertical-align: 4px; text-indent: 0; }
.gl { font-weight: inherit; border-bottom: 1.5px dashed var(--word); color: inherit; }
.endcard { break-before: column; break-inside: avoid; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; font-family: var(--ui); padding: 10px 6px; }
.endcard .star { font-size: 44px; animation: pop .6s ease; }
.endcard h3 { font-size: 22px; margin: 8px 0 4px; font-family: var(--serif); }
.endcard .k { font-size: 13px; color: var(--rsub); }
.endcard .q { margin: 22px 0 18px; padding: 16px; border-radius: 16px; background: rgba(127, 127, 127, .08); font-size: 15px; line-height: 1.6; text-indent: 0; }
.endcard .q b { display: block; font-size: 12px; color: var(--brand-2); margin-bottom: 6px; }
.endcard .btn { width: 100%; max-width: 320px; margin-top: 8px; }
.endcard .ans { font-size: 14px; line-height: 1.6; color: var(--rsub); margin-top: 6px; }
@keyframes pop { 0% { transform: scale(.3); opacity: 0; } 70% { transform: scale(1.15); } 100% { transform: scale(1); opacity: 1; } }
.rfoot { display: flex; align-items: center; gap: 6px; padding: 4px 8px calc(6px + var(--safe-b)); border-top: 1px solid var(--rline); }
.rfoot button { width: 44px; height: 44px; display: grid; place-items: center; color: var(--rsub); border-radius: 12px; }
.rprog { flex: 1; text-align: center; }
.rprog .t { font-size: 12px; color: var(--rsub); font-variant-numeric: tabular-nums; margin-bottom: 5px; }
.rprog .bar { height: 4px; background: var(--rline); }
.rprog .bar > i { background: var(--brand-2); }

/* ── 시트·모달 ── */
.scrim { position: fixed; inset: 0; background: rgba(20, 15, 10, .38); z-index: 50; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 51; background: var(--card); color: var(--ink); border-radius: 22px 22px 0 0;
  padding: 10px 18px calc(18px + var(--safe-b)); max-height: 86vh; max-height: 86dvh; overflow-y: auto; animation: up .26s cubic-bezier(.2, .8, .2, 1); max-width: 640px; margin: 0 auto; }
.reader[data-theme="dark"] ~ .sheet, .sheet.dark { background: #26241f; color: #e2dccf; --line: #3a3732; --card: #26241f; }
@keyframes up { from { transform: translateY(100%); } }
.sheet .grab { width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 12px; }
.sheet h3 { font-size: 17px; margin-bottom: 12px; }
.sheet .quote { font-family: var(--serif); font-size: 15px; line-height: 1.65; padding: 12px 14px; border-radius: 12px; background: rgba(127, 127, 127, .08); margin-bottom: 14px; max-height: 128px; overflow-y: auto; }
.reacts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-bottom: 12px; }
.reacts button { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 10px 0 8px; border-radius: 14px; font-size: 11px; font-weight: 700; color: var(--sub); border: 2px solid transparent; background: rgba(127, 127, 127, .07); }
.reacts button .em { font-size: 26px; line-height: 1; transition: transform .15s; }
.reacts button.on { border-color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); color: var(--ink); }
.sheet.dark .reacts button.on { color: #fff; }
.reacts button.on .em { transform: scale(1.15); }
.sheet textarea { width: 100%; min-height: 76px; border-radius: 14px; border: 1.5px solid var(--line); background: transparent; padding: 12px 14px; font-size: 16px; resize: none; outline: none; line-height: 1.5; }
.sheet textarea:focus { border-color: var(--brand); }
.sheet .lbl { font-size: 13px; font-weight: 700; color: var(--sub); margin: 14px 2px 8px; display: flex; justify-content: space-between; }
.words { display: flex; flex-wrap: wrap; gap: 6px; }
.words button { padding: 7px 11px; border-radius: 10px; background: rgba(127, 127, 127, .08); font-size: 15px; font-family: var(--serif); border: 1.5px solid transparent; }
.words button.on { border-color: var(--word); background: color-mix(in srgb, var(--word) 16%, transparent); font-weight: 700; }
.sheet .acts { display: flex; gap: 10px; margin-top: 16px; }
.sheet .acts .btn { flex: 1; }
.en { font-family: Georgia, serif; font-size: 14px; line-height: 1.6; color: var(--sub); padding: 12px 14px; border-left: 3px solid var(--brand-2); margin-top: 8px; background: rgba(127, 127, 127, .05); border-radius: 0 10px 10px 0; }
.linkbtn { color: var(--brand); font-size: 13px; font-weight: 700; }
.friends { margin-top: 10px; font-size: 13px; }
.friends .fm { padding: 8px 12px; border-radius: 10px; background: rgba(127, 127, 127, .07); margin-top: 6px; font-size: 14px; }
.moods { display: flex; justify-content: center; gap: 8px; margin: 6px 0 4px; }
.moods button { width: 54px; height: 54px; border-radius: 16px; font-size: 26px; background: rgba(127, 127, 127, .08); border: 2px solid transparent; }
.moods button.on { border-color: var(--brand-2); background: rgba(226, 165, 61, .18); transform: scale(1.06); }
.seg { display: flex; background: rgba(127, 127, 127, .1); border-radius: 12px; padding: 3px; gap: 3px; }
.seg button { flex: 1; height: 38px; border-radius: 9px; font-size: 14px; font-weight: 700; color: var(--sub); }
.seg button.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 4px rgba(0, 0, 0, .1); }
.sheet.dark .seg button.on { background: #3a3732; color: #fff; }
.setrow { margin-bottom: 16px; }
.setrow > span { display: block; font-size: 13px; font-weight: 700; color: var(--sub); margin-bottom: 8px; }
.toc a, .toc .it { display: flex; align-items: center; gap: 12px; padding: 13px 4px; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; cursor: pointer; }
.toc .n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; background: rgba(127, 127, 127, .1); flex: none; }
.toc .done .n { background: var(--brand); color: #fff; }
.toc .cur .n { background: var(--brand-2); color: #fff; }
.toc .tt { flex: 1; min-width: 0; font-size: 15px; font-weight: 600; }
.toc .tt small { display: block; color: var(--sub); font-size: 12px; font-weight: 500; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toc .cnt { font-size: 12px; color: var(--sub); }
.search { display: flex; gap: 8px; margin-bottom: 8px; }
.search input { flex: 1; height: 46px; border-radius: 12px; border: 1.5px solid var(--line); background: transparent; padding: 0 14px; font-size: 16px; outline: none; }
.search mark { background: rgba(226, 165, 61, .45); color: inherit; border-radius: 3px; }
.pop { position: fixed; z-index: 60; background: #2a2520; color: #fff; border-radius: 14px; padding: 12px 14px; max-width: 290px; font-size: 14px; line-height: 1.55; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); animation: fade .15s; }
.pop b { display: block; color: #f5cf7d; font-size: 15px; margin-bottom: 3px; }
.pop .linkbtn { color: #9fd9c3; display: inline-block; margin-top: 8px; }
.modal { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 24px; background: rgba(20, 15, 10, .5); animation: fade .2s; }
.modal .box { background: var(--card); border-radius: 24px; padding: 28px 22px 20px; text-align: center; max-width: 340px; width: 100%; animation: pop .4s ease; color: var(--ink); }
.modal .big { font-size: 64px; line-height: 1; margin-bottom: 10px; }
.modal h2 { font-size: 21px; margin-bottom: 8px; }
.modal p { color: var(--sub); font-size: 15px; line-height: 1.6; margin: 0 0 18px; }
.modal .steps { text-align: left; margin: 0 0 18px; }
.modal .steps div { display: flex; gap: 12px; align-items: center; padding: 9px 0; font-size: 15px; line-height: 1.45; }
.modal .steps .em { font-size: 26px; width: 34px; text-align: center; }
.toast { position: fixed; left: 50%; bottom: calc(110px + var(--safe-b)); transform: translateX(-50%); z-index: 80; background: #2a2520; color: #fff; padding: 11px 18px; border-radius: 99px; font-size: 14px; font-weight: 700;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25); animation: toast 2.4s ease forwards; white-space: nowrap; pointer-events: none; }
.toast.xp { background: linear-gradient(90deg, #e2a53d, #f0c36b); color: #3a2a0c; }
@keyframes toast { 0% { opacity: 0; transform: translate(-50%, 16px); } 10%, 80% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, -8px); } }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 75; overflow: hidden; }
.confetti i { position: absolute; top: -10px; width: 8px; height: 12px; border-radius: 2px; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(105vh) rotate(720deg); } }

/* ── 리포트 (부모·교사 공용) ── */
.rep h1 { font-size: 24px; line-height: 1.35; }
.rep .lead { color: var(--sub); font-size: 14px; margin: 6px 0 16px; }
.insight { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.6; }
.insight:last-child { border: 0; }
.insight .em { font-size: 22px; flex: none; width: 30px; text-align: center; }
.locked { position: relative; }
.locked .blur { filter: blur(6px); pointer-events: none; user-select: none; max-height: 340px; overflow: hidden; }
.paywall { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 20px;
  background: linear-gradient(180deg, rgba(255, 253, 248, .2), rgba(255, 253, 248, .95) 45%); }
.paywall h3 { font-size: 18px; margin: 8px 0; }
.paywall p { font-size: 14px; color: var(--sub); margin: 0 0 14px; line-height: 1.6; }
.qa { padding: 12px 0; border-bottom: 1px solid var(--line); }
.qa:last-child { border: 0; }
.qa .qq { font-size: 13px; color: var(--sub); font-weight: 700; margin-bottom: 6px; }
.qa .aa { font-family: var(--serif); font-size: 16px; line-height: 1.6; }
.talk { background: var(--brand-soft); border-radius: 14px; padding: 14px 16px; margin: 8px 0; font-size: 15px; line-height: 1.6; }
.talk b { color: var(--brand); display: block; font-size: 12px; margin-bottom: 4px; }
.wordcloud { display: flex; flex-wrap: wrap; gap: 6px; }
.wordcloud span { padding: 6px 11px; border-radius: 10px; background: color-mix(in srgb, var(--word) 14%, transparent); font-size: 14px; font-weight: 600; }
.wordcloud span small { color: var(--sub); margin-left: 3px; font-weight: 500; }

@media (min-width: 900px) {
  .reader .rview { max-width: 760px; margin: 0 auto; width: 100%; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
