@font-face {
  font-family: "Wanted Sans";
  src: url("/fonts/wanted-sans-regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Wanted Sans";
  src: url("/fonts/wanted-sans-bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Yuhan Kimberly";
  src: url("/fonts/yuhan-kimberly-medium.ttf") format("truetype");
  font-weight: 500 800;
  font-display: swap;
}

@font-face {
  font-family: "RIDI Batang";
  src: url("/fonts/ridi-batang.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}

:root {
  --paper: #faf7f2;
  --ink: #3c3833;
  --accent: #b59a7d;
  --surface: #fff;
  --soft: #f5f0e8;
  --highlight: #eadfce;
  --line: #eee7de;
  --muted: #746d65;
  --sans: "Wanted Sans", "Pretendard", "Noto Sans KR", system-ui, sans-serif;
  --brand: "Yuhan Kimberly", "Nanum Myeongjo", serif;
  --reader: "RIDI Batang", "KoPub Batang", "Noto Serif KR", serif;
  --reader-size: 19px;
  --focus: #755d46;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { color-scheme: light; background: var(--paper); }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); }
button, textarea, input, select { font: inherit; }
button { color: inherit; }
button, input[type="range"] { cursor: pointer; }
button:focus-visible, a:focus-visible, textarea:focus-visible, input:focus-visible, select:focus-visible, #chapter-title:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.app-shell { min-height: 100dvh; }
.topbar { height: 72px; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--paper) 94%, transparent); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(12px); }
.brand { display: flex; align-items: center; gap: 10px; padding: 8px 0; border: 0; background: none; }
.brand-icon { width: 36px; height: 36px; display: block; border-radius: 10px; }
.brand-mark { font-family: var(--brand); font-size: 26px; font-weight: 700; letter-spacing: -.04em; }
.brand-copy { color: var(--muted); font-size: 13px; }
.topbar-actions { display: flex; align-items: center; gap: 16px; }
.session-note, .subtle-copy { color: var(--muted); font-size: 13px; }
.button { min-height: 44px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 12px; font-weight: 650; transition: background 180ms ease, border-color 180ms ease, transform 180ms ease; }
.button-primary { background: var(--ink); color: var(--surface); }
.button-primary:disabled { cursor: not-allowed; opacity: .42; }
.button-ghost { background: transparent; border-color: #d8cec3; }
.button-small { min-height: 40px; padding-inline: 15px; }
.app-cta { min-height: 48px; padding-inline: 22px; font-weight: 750; text-decoration: none; }

.loading-state { min-height: calc(100dvh - 72px); display: flex; gap: 12px; align-items: center; justify-content: center; color: var(--muted); }
.loading-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); animation: breathe 1s ease-in-out infinite alternate; }
@keyframes breathe { to { opacity: .35; transform: scale(.75); } }

.home-view { width: 100%; min-width: 0; min-height: calc(100dvh - 72px); grid-template-columns: 260px minmax(0, 1fr); }
.home-view:not([hidden]) { display: grid; }
.club-nav { min-width: 0; padding: 32px 20px; border-right: 1px solid var(--line); background: var(--soft); display: flex; flex-direction: column; }
.nav-heading { padding: 0 8px 18px; display: flex; justify-content: space-between; align-items: end; }
.eyebrow { margin: 0; color: #7b6855; font-size: 12px; line-height: 1.4; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.nav-count { margin: 0; color: var(--muted); font-size: 12px; }
.club-list { display: grid; gap: 8px; }
.club-button { width: 100%; min-height: 64px; padding: 10px; border: 1px solid transparent; border-radius: 14px; background: transparent; display: grid; grid-template-columns: 42px 1fr; gap: 12px; text-align: left; align-items: center; }
.club-button[aria-current="true"] { background: var(--surface); border-color: var(--line); }
.club-icon { width: 42px; height: 42px; border-radius: 12px; overflow: hidden; display: grid; place-items: center; background: var(--highlight); font-family: var(--brand); font-weight: 700; }
.club-icon img { width: 100%; height: 100%; display: block; object-fit: cover; }
.club-copy { min-width: 0; }
.club-copy strong, .club-copy span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.club-copy strong { font-size: 14px; }
.club-copy span { margin-top: 4px; color: var(--muted); font-size: 12px; }
.demo-disclaimer { margin: auto 8px 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.club-home { width: min(1050px, 100%); min-width: 0; margin: 0 auto; padding: 52px 48px 80px; }
.club-heading { display: flex; justify-content: space-between; gap: 32px; align-items: end; }
.club-heading h1 { margin: 8px 0 6px; font-family: var(--brand); font-size: clamp(30px, 4vw, 44px); letter-spacing: -.04em; }
.club-description { max-width: 620px; margin: 0; color: var(--muted); line-height: 1.7; }
.member-stack { display: flex; flex-direction: row-reverse; justify-content: flex-end; padding-left: 12px; }
.member-avatar { width: 38px; height: 38px; margin-left: -12px; display: grid; place-items: center; overflow: hidden; position: relative; border: 3px solid var(--paper); border-radius: 50%; background: var(--highlight); font-size: 12px; font-weight: 750; }
.member-avatar:nth-child(even) { background: #ded9cf; }
.reading-card { margin-top: 36px; padding: 32px; display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 36px; align-items: center; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); }
.book-cover { aspect-ratio: 2 / 3; padding: 18px; border-radius: 5px 14px 14px 5px; overflow: hidden; background: var(--ink); color: var(--paper); display: flex; align-items: flex-end; box-shadow: 10px 10px 0 var(--highlight); font-family: var(--reader); font-size: 19px; line-height: 1.45; word-break: keep-all; }
.book-cover.has-image { padding: 0; }
.book-cover img, .book-choice-cover img, .reader-cover img { width: 100%; height: 100%; display: block; object-fit: cover; }
.reading-summary h2 { margin: 8px 0 6px; font-family: var(--reader); font-size: clamp(25px, 3vw, 34px); font-weight: 600; }
.book-meta { margin: 0; color: var(--muted); }
.progress-block { max-width: 500px; margin: 30px 0 22px; }
.progress-label { margin-bottom: 9px; display: flex; justify-content: space-between; font-size: 13px; }
.progress-track { height: 7px; border-radius: 99px; background: var(--soft); overflow: hidden; }
.progress-track span { height: 100%; display: block; border-radius: inherit; background: var(--accent); transition: width 200ms ease; }
.book-catalog-section, .activity-section { margin-top: 52px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 18px; }
.section-heading h2 { margin: 6px 0 0; font-family: var(--brand); font-size: 24px; }
.section-heading h2:first-child { margin-top: 0; }
.section-description { margin: 8px 0 0; }
.book-catalog { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.book-choice { min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.64); text-align: left; transition: border-color 180ms ease, background 180ms ease, transform 180ms ease; }
.book-choice[aria-current="true"] { border-color: var(--accent); background: var(--surface); box-shadow: 0 8px 22px rgba(60,56,51,.08); }
.book-choice-cover { aspect-ratio: 2 / 3; margin-bottom: 13px; padding: 12px; border-radius: 4px 10px 10px 4px; overflow: hidden; display: flex; align-items: flex-end; background: var(--book-tone, var(--ink)); color: var(--paper); font-family: var(--reader); font-size: 13px; line-height: 1.35; word-break: keep-all; }
.book-choice-cover.has-image { padding: 0; }
.book-choice strong, .book-choice span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.book-choice strong { font-family: var(--reader); font-size: 13px; }
.book-choice > span:last-child { margin-top: 5px; color: var(--muted); font-size: 11px; }
.book-choice:nth-child(5n+2) { --book-tone: #74665a; }
.book-choice:nth-child(5n+3) { --book-tone: #5d6860; }
.book-choice:nth-child(5n+4) { --book-tone: #6f6062; }
.book-choice:nth-child(5n+5) { --book-tone: #59636d; }
.activity-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.activity-card { min-height: 150px; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.64); text-align: left; }
.activity-card blockquote { margin: 0 0 18px; font-family: var(--reader); line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.activity-meta { display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 12px; }
.team-proof { margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.team-proof-copy strong, .team-proof-copy span { display: block; }
.team-proof-copy strong { font-family: var(--brand); font-size: 17px; }
.team-proof-copy span { margin-top: 6px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.instagram-link { min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; color: var(--muted); background: rgba(255,255,255,.56); text-decoration: none; font-size: 12px; font-weight: 650; transition: color 180ms ease, border-color 180ms ease, background 180ms ease; }
.instagram-link svg { width: 17px; height: 17px; }
.instagram-link:hover { color: var(--ink); border-color: #d8cec3; background: var(--surface); }

.reader-view { min-height: calc(100dvh - 72px); grid-template-columns: 230px minmax(480px, 1fr) 360px; }
.reader-view:not([hidden]) { display: grid; }
.reader-nav { padding: 24px 16px; border-right: 1px solid var(--line); background: var(--soft); }
.back-button, .mobile-back { min-height: 44px; border: 0; background: none; display: inline-flex; align-items: center; gap: 8px; font-weight: 650; }
.reader-book-meta { margin: 22px 4px 28px; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; align-items: center; }
.reader-cover { width: 44px; aspect-ratio: 2 / 3; border-radius: 3px 7px 7px 3px; overflow: hidden; background: var(--ink); box-shadow: 4px 4px 0 var(--highlight); }
.reader-book-meta strong, .reader-book-meta span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reader-book-meta strong { font-family: var(--reader); font-size: 13px; }
.reader-book-meta span { margin-top: 4px; color: var(--muted); font-size: 11px; }
.chapter-list { display: grid; gap: 4px; }
.chapter-button { width: 100%; min-height: 48px; padding: 8px 10px; border: 0; border-radius: 10px; background: transparent; display: grid; grid-template-columns: 24px 1fr; gap: 8px; text-align: left; color: var(--muted); }
.chapter-button[aria-current="true"] { color: var(--ink); background: var(--surface); font-weight: 700; }
.chapter-number { color: var(--accent); }
.reading-pane { min-width: 0; background: var(--paper); }
.reader-toolbar { min-height: 68px; padding: 10px 24px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 24px; position: sticky; top: 72px; z-index: 10; background: color-mix(in srgb, var(--paper) 95%, transparent); backdrop-filter: blur(10px); }
.mobile-back { display: none; padding: 0; }
.mobile-chapter-select { display: none; }
.reading-progress-control { flex: 1; max-width: 420px; display: grid; gap: 7px; font-size: 12px; color: var(--muted); }
.reading-progress-label { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.reading-progress-label span { display: flex; align-items: baseline; gap: 8px; }
.reading-progress-control strong { color: var(--ink); }
.reading-progress-track { height: 7px; border-radius: 99px; background: #e9e1d7; overflow: hidden; }
.reading-progress-track span { width: 0; height: 100%; display: block; border-radius: inherit; background: var(--accent); transition: width 180ms ease; }
.font-controls { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 12px; }
.font-controls button { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-family: var(--reader); }
.font-controls .font-large { font-size: 18px; }
.book-page { width: min(680px, calc(100% - 56px)); margin: 0 auto; padding: 68px 0 120px; }
.chapter-heading { margin-bottom: 50px; }
.chapter-heading h1 { margin: 10px 0 18px; font-family: var(--reader); font-size: clamp(30px, 4vw, 42px); font-weight: 600; line-height: 1.4; }
.passage-list { display: grid; gap: 10px; font-family: var(--reader); font-size: var(--reader-size); line-height: 2.05; word-break: keep-all; }
.passage { width: calc(100% + 28px); margin-left: -14px; padding: 12px 14px; border: 0; border-left: 3px solid transparent; border-radius: 8px; background: transparent; text-align: left; position: relative; }
.passage.has-comments { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.passage[aria-pressed="true"] { background: var(--highlight); border-left-color: var(--accent); text-decoration: none; }
.passage-badge { margin-left: 8px; display: inline-flex; min-width: 23px; height: 23px; padding: 0 7px; align-items: center; justify-content: center; border-radius: 99px; background: var(--surface); color: var(--muted); font: 700 11px/1 var(--sans); text-decoration: none; vertical-align: middle; }
.comment-panel { min-width: 0; padding: 26px 24px; border-left: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; max-height: calc(100dvh - 72px); position: sticky; top: 72px; }
.comment-panel[aria-hidden="true"] { opacity: .66; }
.comment-panel-header { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.comment-panel h2 { margin: 6px 0 0; font-family: var(--brand); font-size: 22px; }
.icon-button { width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); display: grid; place-items: center; }
.panel-close { display: none; }
.selected-passage { margin: 22px 0 18px; padding: 15px 16px; border-left: 3px solid var(--accent); background: var(--soft); color: #5b554f; font-family: var(--reader); font-size: 14px; line-height: 1.8; }
.selected-passage:empty::after { content: "본문에서 문단을 선택해 주세요."; font-family: var(--sans); color: var(--muted); }
.comment-list { flex: 1; min-height: 120px; overflow: auto; padding-right: 3px; }
.comment-empty { padding: 24px 0; color: var(--muted); font-size: 13px; line-height: 1.7; text-align: center; }
.comment { padding: 15px 0; border-bottom: 1px solid var(--line); }
.comment.is-targeted { animation: comment-highlight 1800ms ease-out; }
@keyframes comment-highlight {
  from { background: var(--highlight); box-shadow: 0 0 0 8px var(--highlight); }
  to { background: transparent; box-shadow: 0 0 0 0 transparent; }
}
.comment-top { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.comment-author { display: flex; gap: 8px; align-items: center; font-size: 13px; font-weight: 750; }
.tiny-avatar { width: 26px; height: 26px; display: grid; place-items: center; overflow: hidden; position: relative; border-radius: 50%; background: var(--highlight); font-size: 10px; }
.member-avatar img, .tiny-avatar img { width: 100%; height: 100%; display: block; position: absolute; inset: 0; object-fit: cover; }
.comment-actions { display: flex; }
.comment-actions button { min-width: 40px; min-height: 36px; border: 0; background: none; color: var(--muted); font-size: 11px; }
.comment p { margin: 10px 0 0; font-size: 14px; line-height: 1.7; white-space: pre-wrap; }
.comment-form { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.comment-form label { display: block; margin-bottom: 9px; font-size: 13px; font-weight: 750; }
.comment-form textarea { width: 100%; resize: vertical; min-height: 86px; padding: 12px; border: 1px solid #d8cec3; border-radius: 12px; color: var(--ink); background: var(--paper); line-height: 1.55; }
.form-footer { margin-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 11px; }
.form-actions { display: flex; gap: 6px; }
.panel-scrim { display: none; }
.tutorial-backdrop { padding: 24px; position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; background: rgba(60,56,51,.46); backdrop-filter: blur(5px); }
.tutorial-dialog { width: min(520px, 100%); min-height: 520px; padding: 34px; border: 1px solid rgba(255,255,255,.72); border-radius: 28px; background: var(--paper); box-shadow: 0 28px 80px rgba(40,35,30,.24); position: relative; display: flex; flex-direction: column; }
.tutorial-skip { min-height: 44px; padding: 0 8px; border: 0; background: transparent; color: var(--muted); position: absolute; top: 20px; right: 24px; font-size: 13px; }
.tutorial-symbol { width: 132px; height: 158px; margin: 18px auto 34px; padding: 20px; border-radius: 6px 18px 18px 6px; display: grid; place-items: end start; background: var(--ink); color: var(--paper); box-shadow: 12px 12px 0 var(--highlight); font-family: var(--reader); font-size: 26px; line-height: 1.2; transition: background 180ms ease, transform 180ms ease; }
.tutorial-dialog[data-step="1"] .tutorial-symbol { background: #5d6860; transform: rotate(1.5deg); }
.tutorial-dialog[data-step="2"] .tutorial-symbol { background: #6f6062; transform: rotate(-1.5deg); }
.tutorial-copy { text-align: center; }
.tutorial-copy h2 { margin: 9px 0 12px; font-family: var(--brand); font-size: clamp(26px, 5vw, 34px); letter-spacing: -.035em; }
.tutorial-copy > p:last-child { max-width: 410px; margin: 0 auto; color: var(--muted); line-height: 1.75; word-break: keep-all; }
.tutorial-progress { margin-top: auto; padding-top: 32px; display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 12px; }
.tutorial-dots { display: flex; gap: 6px; }
.tutorial-dot { width: 7px; height: 7px; border-radius: 50%; background: #d8cec3; }
.tutorial-dot.is-current { width: 20px; border-radius: 99px; background: var(--accent); }
.tutorial-actions { margin-top: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tutorial-actions #tutorial-next { grid-column: 2; }
.toast { max-width: min(420px, calc(100vw - 32px)); padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--ink); color: var(--surface); position: fixed; left: 50%; bottom: 24px; z-index: 100; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; font-size: 13px; transition: opacity 180ms ease, transform 180ms ease; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@media (hover: hover) {
  .button:not(:disabled):hover { transform: translateY(-1px); }
  .button-primary:hover { background: #514b44; }
  .button-ghost:hover, .club-button:hover, .chapter-button:hover { background: var(--surface); border-color: var(--line); }
  .passage:hover { background: color-mix(in srgb, var(--highlight) 45%, transparent); }
  .activity-card:hover { border-color: var(--accent); }
}

@media (max-width: 1100px) {
  .reader-view { grid-template-columns: 205px minmax(460px, 1fr) 320px; }
  .comment-panel { padding-inline: 18px; }
}

@media (max-width: 1000px) {
  .book-catalog { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .reader-view { grid-template-columns: 190px minmax(0, 1fr); }
  .comment-panel { width: min(430px, 100vw); height: min(78dvh, 680px); max-height: none; padding: 22px 20px max(22px, env(safe-area-inset-bottom)); border: 0; border-radius: 24px 24px 0 0; position: fixed; left: auto; right: 0; top: auto; bottom: 0; z-index: 50; transform: translateY(105%); opacity: 1; transition: transform 220ms ease; }
  .comment-panel.is-open { transform: translateY(0); }
  .panel-close { display: grid; }
  .panel-scrim { width: 100%; height: 100%; padding: 0; border: 0; background: rgba(60,56,51,.32); position: fixed; inset: 0; z-index: 40; opacity: 0; pointer-events: none; transition: opacity 220ms ease; }
  .panel-scrim.is-open { display: block; opacity: 1; pointer-events: auto; }
}

@media (max-width: 700px) {
  .topbar { height: 62px; padding: 0 16px; }
  .brand-copy, .session-note { display: none; }
  .button-ghost { min-height: 40px; padding-inline: 12px; font-size: 12px; }
  .app-cta { min-height: 44px; padding-inline: 16px; font-size: 13px; }
  .home-view { min-height: calc(100dvh - 62px); grid-template-columns: 1fr; }
  .club-nav { padding: 18px 16px 0; border: 0; background: var(--paper); display: block; }
  .nav-heading { padding: 0 0 10px; }
  .club-list { width: 100%; min-width: 0; display: flex; overflow-x: auto; padding-bottom: 4px; scroll-snap-type: x mandatory; }
  .club-button { min-width: 215px; background: var(--soft); scroll-snap-align: start; }
  .club-button[aria-current="true"] { border-color: var(--accent); }
  .demo-disclaimer { margin: 14px 0 0; }
  .club-home { padding: 32px 16px 64px; }
  .club-heading { display: block; }
  .member-stack { margin-top: 18px; justify-content: flex-end; }
  .reading-card { margin-top: 24px; padding: 22px; grid-template-columns: 105px minmax(0, 1fr); gap: 22px; border-radius: 20px; }
  .book-cover { padding: 12px; font-size: 14px; box-shadow: 7px 7px 0 var(--highlight); }
  .reading-summary h2 { font-size: 21px; }
  .progress-block { margin: 20px 0 16px; }
  .book-catalog-section, .activity-section { margin-top: 42px; }
  .section-heading { display: block; }
  .section-heading .subtle-copy { display: block; margin-top: 8px; }
  .book-catalog { display: flex; overflow-x: auto; margin-inline: -16px; padding: 0 16px 8px; scroll-snap-type: x mandatory; }
  .book-choice { min-width: 142px; scroll-snap-align: start; }
  .activity-list { grid-template-columns: 1fr; }
  .team-proof { margin-top: 48px; align-items: flex-start; flex-direction: column; gap: 16px; }
  .instagram-link { width: 100%; justify-content: center; }
  .reader-view { min-height: calc(100dvh - 62px); }
  .reader-view:not([hidden]) { display: block !important; }
  .reader-nav { display: none; }
  .reader-toolbar { min-height: 62px; padding: 9px 16px; top: 62px; gap: 12px; }
  .mobile-back { display: inline-flex; min-width: 44px; }
  .mobile-chapter-select { min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; align-items: center; color: var(--muted); font-size: 12px; }
  .mobile-chapter-select select { min-width: 0; height: 40px; padding: 0 30px 0 10px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: var(--surface); }
  .reader-toolbar { flex-wrap: wrap; }
  .reading-progress-control { order: 4; flex-basis: 100%; max-width: none; display: block; }
  .reading-progress-label { margin-bottom: 5px; }
  .font-controls > span { display: none; }
  .book-page { width: calc(100% - 36px); padding: 44px 0 100px; }
  .chapter-heading { margin-bottom: 36px; }
  .chapter-heading h1 { font-size: 29px; }
  .passage-list { font-size: var(--reader-size); line-height: 1.95; }
  .passage { width: calc(100% + 16px); margin-left: -8px; padding-inline: 8px; }
}

@media (max-width: 430px) {
  .reading-card { grid-template-columns: 86px minmax(0, 1fr); gap: 18px; padding: 18px; }
  .reading-summary .eyebrow, .book-meta { font-size: 11px; }
  .reading-summary h2 { margin-top: 5px; }
  .reading-summary .button { width: 100%; padding-inline: 8px; font-size: 13px; }
  .font-controls button { width: 36px; height: 36px; }
  .tutorial-backdrop { padding: 12px; align-items: end; }
  .tutorial-dialog { min-height: min(610px, calc(100dvh - 24px)); padding: 30px 22px 22px; border-radius: 26px; }
  .tutorial-symbol { width: 112px; height: 136px; margin-top: 12px; margin-bottom: 28px; }
  .tutorial-skip { top: 14px; right: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
