:root {
  --paper: #f6efe2;
  --paper-2: #fbf7ef;
  --ink: #2f2a24;
  --ink-soft: #6b5f50;
  --line: #ddcfb8;
  --wood: #7b5537;
  --accent: #b5543c;
  --accent-ink: #fff8ef;
  --wait: #2f7f95;
  --free: #4f7d4b;
  --paid: #8a5a2b;
  --shadow: 0 18px 50px rgb(47 42 36 / .22);
  --serif: "Gowun Batang", "AppleMyungjo", "Nanum Myeongjo", serif;
  --sans: "Noto Sans KR", "Apple SD Gothic Neo", system-ui, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.6 var(--sans); overflow: hidden; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }
kbd { font: 600 .8em var(--sans); padding: .1em .45em; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; background: var(--paper-2); }
code { font-size: .9em; background: rgb(123 85 55 / .1); padding: .05em .35em; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.topbar {
  position: fixed; inset: 0 0 auto; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(10px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) 10px max(16px, env(safe-area-inset-left, 0px));
  background: linear-gradient(rgb(246 239 226 / .95), rgb(246 239 226 / .75)); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font: 700 18px var(--serif); white-space: nowrap; }
.mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 7px; background: var(--wood); color: var(--paper); font-size: 16px; }
.beta { font: 500 11px var(--sans); letter-spacing: .04em; color: var(--ink-soft); border: 1px solid var(--line); padding: 1px 7px; border-radius: 99px; }
.top-actions { display: flex; gap: 6px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.top-actions button, .hud-tools button { border: 1px solid var(--line); background: var(--paper-2); border-radius: 99px; padding: 6px 12px; font-size: 14px; white-space: nowrap; }
.top-actions .auth { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.stage { position: fixed; inset: 0; }
#world { width: 100%; height: 100%; display: block; outline: none; touch-action: none; }

.intro { position: absolute; inset: 0; display: grid; place-items: center; padding: 80px max(16px, env(safe-area-inset-right, 0px)) 24px max(16px, env(safe-area-inset-left, 0px)); background: radial-gradient(circle at 50% 40%, rgb(246 239 226 / .55), rgb(60 44 30 / .55)); }
.intro-card { width: min(440px, 100%); background: var(--paper-2); border: 1px solid var(--line); border-radius: 18px; padding: 28px 26px 22px; box-shadow: var(--shadow); }
.eyebrow { margin: 0 0 4px; font: 700 11px var(--sans); letter-spacing: .14em; color: var(--accent); text-transform: uppercase; }
.intro h1 { margin: 0; font: 700 40px/1.15 var(--serif); }
.intro-lead { margin: 10px 0 18px; color: var(--ink-soft); text-wrap: pretty; }
.intro-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.keys { margin: 18px 0 8px; padding: 12px 14px; list-style: none; background: var(--paper); border-radius: 10px; font-size: 13px; color: var(--ink-soft); display: grid; gap: 4px; }
.touch-hint, .touch-only { display: none; }
@media (pointer: coarse) { .touch-hint { display: list-item; } .touch-only { display: inline-block; } }
.note { font-size: 12.5px; color: var(--ink-soft); margin: 8px 0 0; }

.btn { border: 1px solid var(--ink); background: var(--ink); color: var(--paper); border-radius: 10px; padding: 9px 16px; font-weight: 600; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn.google { display: inline-flex; align-items: center; gap: 10px; background: #fff; color: #2f2a24; border-color: #d0c6b6; }
.btn.google .g { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: conic-gradient(#ea4335 0 25%, #fbbc05 0 50%, #34a853 0 75%, #4285f4 0); color: #fff; font: 700 12px var(--sans); }

.hud { position: absolute; inset: auto 0 0; pointer-events: none; padding: 0 max(16px, env(safe-area-inset-right, 0px)) calc(18px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.hud > * { pointer-events: auto; }
.prompt { border: 0; background: rgb(47 42 36 / .88); color: var(--paper); padding: 10px 18px; border-radius: 99px; font-weight: 600; box-shadow: var(--shadow); }
.prompt kbd { background: var(--paper); color: var(--ink); margin-right: 6px; }
.hud-tools { align-self: flex-end; display: flex; gap: 6px; }

.joystick { position: absolute; width: 112px; height: 112px; margin: -56px 0 0 -56px; border-radius: 50%; border: 2px solid rgb(255 255 255 / .7); background: rgb(47 42 36 / .2); pointer-events: none; }
.joystick span { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px; border-radius: 50%; background: rgb(255 255 255 / .85); transform: translate(var(--dx), var(--dy)); }

.panel {
  position: absolute; z-index: 15; top: calc(64px + env(safe-area-inset-top, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  width: min(420px, calc(100% - 32px)); display: flex; flex-direction: column; background: var(--paper-2); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden;
}
.panel.wide { width: min(720px, calc(100% - 32px)); }
.panel-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--paper); }
.panel-head h2 { flex: 1; margin: 0; font: 700 17px var(--serif); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.icon { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper-2); font-size: 18px; line-height: 1; }
.panel-body { flex: 1; overflow: auto; padding: 18px 18px 26px; overscroll-behavior: contain; }
.panel-body h2 { font: 700 24px/1.25 var(--serif); margin: 0 0 6px; text-wrap: balance; }
.panel-body h3 { display: flex; align-items: center; gap: 8px; font: 700 15px var(--sans); margin: 22px 0 10px; }
.lead { color: var(--ink-soft); margin-top: 0; }
.empty { color: var(--ink-soft); background: var(--paper); border: 1px dashed var(--line); border-radius: 10px; padding: 14px; text-align: center; font-size: 14px; }
.dot { width: 10px; height: 10px; border-radius: 3px; background: var(--g); }

.shelf-head { border-left: 6px solid var(--g); padding-left: 12px; margin-bottom: 14px; }
.tabs { display: flex; gap: 6px; margin-bottom: 14px; }
.tabs button { border: 1px solid var(--line); background: transparent; border-radius: 99px; padding: 5px 12px; font-size: 14px; }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.tabs small { opacity: .7; }

.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.panel.wide .cards { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card { width: 100%; display: flex; gap: 12px; text-align: left; border: 1px solid var(--line); background: var(--paper); border-radius: 12px; padding: 10px; transition: transform .12s, box-shadow .12s; }
.card:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgb(47 42 36 / .12); }
.card-text { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.card-text strong { font: 700 16px/1.3 var(--serif); }
.meta { font-size: 12.5px; color: var(--ink-soft); }
.tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.tag { font-size: 11.5px; font-weight: 600; padding: 1px 7px; border-radius: 99px; color: #fff; }
.tag.free { background: var(--free); } .tag.wait { background: var(--wait); } .tag.paid { background: var(--paid); }

.cover { flex: none; width: 64px; aspect-ratio: 3 / 4.2; max-width: 100%; border-radius: 4px 8px 8px 4px; padding: 6px; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; color: #fff; background: linear-gradient(155deg, var(--c1) 55%, var(--c2)); box-shadow: inset 4px 0 0 rgb(0 0 0 / .18), 0 3px 8px rgb(0 0 0 / .18); overflow: hidden; }
.cover strong { font: 700 10px/1.2 var(--serif); }
.cover span { font-size: 8px; opacity: .85; }
.cover .cover-type { margin-bottom: auto; font-weight: 700; letter-spacing: .05em; }
.cover.large { width: 150px; padding: 12px; }
.cover.large strong { font-size: 17px; } .cover.large span { font-size: 11px; }

.work-head { display: flex; gap: 18px; flex-wrap: wrap; }
.work-info { flex: 1 1 260px; min-width: 0; }
.work-info p { margin: 0 0 10px; }
.author { color: var(--accent); font-weight: 700; }
.facts { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 12px; }
.facts div { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 4px 10px; }
.facts dt { font-size: 11px; color: var(--ink-soft); } .facts dd { margin: 0; font-size: 13px; font-weight: 600; }
.row { display: flex; gap: 8px; flex-wrap: wrap; }
.episodes { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.episode { width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; border: 1px solid var(--line); background: var(--paper); border-radius: 10px; padding: 10px 12px; }
.episode.locked { background: transparent; }
.ep-no { flex: none; width: 36px; font-weight: 700; color: var(--ink-soft); }
.ep-title { flex: 1; min-width: 0; display: flex; flex-direction: column; font-family: var(--serif); font-weight: 700; }
.ep-title small { font: 400 12px var(--sans); color: var(--ink-soft); }
.badge { flex: none; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 99px; border: 1px solid currentColor; }
.badge.free, .badge.owned { color: var(--free); } .badge.wait-open, .badge.waiting { color: var(--wait); } .badge.paid { color: var(--paid); }
.badge.waiting { background: rgb(47 127 149 / .08); }
.broker { margin-top: 22px; font-size: 12.5px; color: var(--ink-soft); background: var(--paper); border-radius: 10px; padding: 10px 12px; }

.gate { text-align: center; padding: 18px 6px; display: grid; justify-items: center; gap: 4px; }
.gate p { max-width: 46ch; margin: 0 0 12px; color: var(--ink-soft); }
.gate .btn { margin-top: 4px; }
.list { padding-left: 1.2em; text-align: left; } .list li { margin: 4px 0; }
.notice p { margin-top: 0; }

.prose { font: 17px/1.95 var(--serif); max-width: 34em; margin: 8px auto 0; }
.prose h2 { font-size: 22px; margin: 6px 0 22px; }
.prose p { margin: 0 0 1.1em; text-wrap: pretty; }
.prose blockquote { margin: 1.2em 0; padding: 10px 16px; border-left: 3px solid var(--accent); background: var(--paper); border-radius: 0 8px 8px 0; }
.prose blockquote p { margin: 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.loading { color: var(--ink-soft); }
.strip { display: grid; justify-items: center; margin: 8px -18px 0; background: #fff; }
.strip img { width: 100%; max-width: 720px; display: block; }
.ep-nav { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--line); }

.search { display: block; position: sticky; top: -18px; margin: -18px -18px 12px; padding: 12px 18px; background: var(--paper-2); border-bottom: 1px solid var(--line); z-index: 1; }
.search input { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; font: inherit; background: #fff; }
.report fieldset { border: 1px solid var(--line); border-radius: 10px; display: grid; gap: 6px; margin: 0 0 12px; }
.report legend { font-weight: 700; padding: 0 4px; }
.field { display: grid; gap: 6px; margin-bottom: 12px; font-weight: 600; }
.field textarea { font: inherit; font-weight: 400; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }

.toast { position: absolute; z-index: 30; left: 50%; top: calc(72px + env(safe-area-inset-top, 0px)); transform: translateX(-50%); max-width: calc(100% - 32px); background: var(--ink); color: var(--paper); padding: 9px 16px; border-radius: 10px; font-size: 14px; box-shadow: var(--shadow); text-align: center; }


/* ---------- 2단계: 작가 골목 · 작업실 ---------- */
.fade { position: absolute; inset: 0; z-index: 40; background: #1d1813; opacity: 0; transition: opacity .25s; pointer-events: none; }
.fade.on { opacity: 1; }
.tag.mine { background: var(--accent); } .tag.muted { background: #9a8f80; }
.author-head, .desk-head { border-left: 6px solid var(--g); padding-left: 14px; margin-bottom: 8px; }
.desk-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; }
.desk-head > div:first-child { min-width: 0; }
.row.spread { justify-content: space-between; align-items: center; }
.row.spread h3 { margin: 0; }
.danger { color: #a33a2a !important; border-color: #e0b4aa !important; }
.btn.danger:not(.ghost) { background: #a33a2a; color: #fff !important; border-color: #a33a2a !important; }

.studio-form { display: grid; gap: 14px; }
.studio-form h3 { margin: 10px 0 0; }
.field { display: grid; gap: 6px; font-weight: 600; }
.field input, .field select, .field textarea, .sub input, .sub select, .seg input[type=datetime-local] {
  font: inherit; font-weight: 400; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; background: #fff; color: var(--ink); min-width: 0; max-width: 100%;
}
.hint { font-weight: 400; font-size: 12.5px; color: var(--ink-soft); }
.err { font-weight: 600; font-size: 13px; color: #a33a2a; }
.errors { margin: 0; padding: 10px 12px 10px 28px; border-radius: 10px; background: #f8e6e1; color: #8a2f22; font-size: 14px; }
.check { margin: -6px 0 0; font-size: 13px; color: #a33a2a; min-height: 1.2em; }
.check.ok { color: var(--free); }
fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px 12px; margin: 0; min-width: 0; }
legend { font-weight: 700; padding: 0 4px; }
.choice { display: flex; gap: 10px; align-items: flex-start; padding: 6px 2px; }
.choice input { margin-top: 5px; }
.choice span { display: flex; flex-direction: column; }
.choice small { color: var(--ink-soft); font-size: 12.5px; }
.sub { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 6px 28px; font-size: 14px; }
.sub input[type=number] { width: 84px; }
.seg { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; border: 0; padding: 0; }
.seg legend { padding: 0; margin-bottom: 6px; }
.swatches, .covers { display: flex; flex-wrap: wrap; gap: 8px; }
.swatches legend, .covers legend { width: 100%; }
.swatches label, .covers label { position: relative; cursor: pointer; }
.swatches input, .covers input { position: absolute; opacity: 0; }
.swatches span { display: block; width: 30px; height: 30px; border-radius: 8px; background: var(--c); border: 3px solid transparent; }
.cover.mini { width: 34px; padding: 0; border: 3px solid transparent; }
.swatches input:checked + span, .covers input:checked + span { border-color: var(--ink); }
.swatches input:focus-visible + span, .covers input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.consent input { margin-top: 4px; flex: none; }
.consent.all { font-weight: 700; padding: 8px 10px; background: var(--paper); border-radius: 10px; }
.legal { display: grid; gap: 6px; }
.legal details { border: 1px solid var(--line); border-radius: 10px; background: var(--paper); padding: 8px 12px; }
.legal summary { font-weight: 700; cursor: pointer; }
.legal p { margin: 8px 0 0; font-size: 14px; color: var(--ink); }

.alert { border: 1px solid #e0b4aa; background: #fbefeb; border-radius: 12px; padding: 4px 14px 12px; margin-top: 14px; }
.report-item { border-top: 1px solid var(--line); padding: 10px 0; display: grid; gap: 8px; }
.report-item:first-of-type { border-top: 0; }
.report-item p { margin: 0; }
.timeline { margin: 0; padding-left: 18px; font-size: 13px; color: var(--ink-soft); }
.stats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.stats div { flex: 1 1 120px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }
.stats dt { font-size: 12px; color: var(--ink-soft); } .stats dd { margin: 0; font: 700 20px var(--serif); }

.toolbar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.toolbar > button, .upload:not(.btn) { border: 1px solid var(--line); background: var(--paper); border-radius: 8px; padding: 4px 10px; font-size: 13px; cursor: pointer; }
.upload.btn { display: inline-block; cursor: pointer; }
.editor { width: 100%; min-height: 320px; resize: vertical; font: 16px/1.9 var(--serif); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: #fff; color: var(--ink); }
.prose.preview { border: 1px dashed var(--line); border-radius: 12px; padding: 16px; margin: 0; max-width: none; }
.thumbs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.thumbs li { position: relative; border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 6px; display: grid; grid-template-columns: 1fr auto auto auto; gap: 4px; align-items: center; }
.thumbs li.empty { display: block; grid-column: 1 / -1; }
.thumbs img { grid-column: 1 / -1; width: 100%; height: 140px; object-fit: cover; object-position: top; border-radius: 6px; background: var(--paper); }
.thumbs span { font-weight: 700; font-size: 13px; }
.thumbs .icon { width: 28px; height: 28px; font-size: 14px; }
.badge.st-draft { color: #8a7a5c; } .badge.st-scheduled { color: var(--wait); } .badge.st-published { color: var(--free); }
.publish { border-top: 1px solid var(--line); padding-top: 4px; display: grid; gap: 10px; }
.confirm { background: #fbefeb; border: 1px solid #e0b4aa; border-radius: 10px; padding: 10px 12px; }
.confirm p { margin: 0 0 8px; }

.no-webgl #world { display: none; }
.no-webgl .stage { background: repeating-linear-gradient(90deg, #ead9bd 0 46px, #e2cfae 46px 48px); }

@media (max-width: 640px) {
  .brand .beta, .auth .who, .top-actions .long { display: none; }
  .top-actions { gap: 4px; }
  .brand { font-size: 16px; gap: 6px; }
  .mark { width: 26px; height: 26px; font-size: 14px; }
  .top-actions button { padding: 6px 9px; font-size: 13px; }
  .panel, .panel.wide { inset: auto 0 0 0; width: 100%; top: calc(56px + env(safe-area-inset-top, 0px)); border-radius: 16px 16px 0 0; }
  .intro h1 { font-size: 34px; }
  .cover.large { width: 110px; }
}

/* ---------- 소설 넘겨보기 (기억의 도서관 웹 소설 열람기의 .fiction-* 스타일을 옮김) ---------- */
.panel.book-mode { width: min(1120px, calc(100% - 32px)); }
.panel.book-mode .panel-body { padding: 0; display: flex; flex-direction: column; overflow: hidden; }
.book-reader { flex: 1; min-height: 0; display: flex; flex-direction: column; --fiction-font: clamp(16px, 1.15vw + 10px, 19px); }
.book-reader > .loading, .book-reader > .empty { margin: 24px; }
.book-hint { margin: 0; padding: 6px 16px 10px; font-size: 12px; color: var(--ink-soft); text-align: center; }
.fiction-book { position: relative; flex: 1; min-height: 0; width: 100%; overflow: hidden; background: #efe3cc; }
.fiction-pages { height: 100%; display: grid; grid-template-columns: 1fr; touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: grab; }
.fiction-pages[data-spread="2"] { grid-template-columns: 1fr 1fr; }
.fiction-page { position: relative; display: flex; flex-direction: column; min-width: 0; height: 100%; box-sizing: border-box; padding: clamp(28px, 6vh, 56px) clamp(22px, 4vw, 58px) 48px; background: #fffaf0; color: #302820; overflow: hidden; }
.fiction-pages[data-spread="2"] .fiction-page:first-child { box-shadow: inset -12px 0 22px -22px #725939; }
.fiction-pages[data-spread="2"] .fiction-page:nth-child(2) { box-shadow: inset 12px 0 22px -22px #725939; }
.fiction-text { flex: 1; min-height: 0; overflow: hidden; white-space: pre-wrap; overflow-wrap: anywhere; font-family: "Gowun Batang", Georgia, "Noto Serif KR", "Batang", serif; font-size: var(--fiction-font); line-height: 1.85; letter-spacing: .015em; }
.fiction-chapter-heading { flex: none; margin: clamp(6px, 2vh, 22px) 0 clamp(24px, 5vh, 46px); font-family: "Gowun Batang", Georgia, "Noto Serif KR", serif; word-break: keep-all; overflow-wrap: anywhere; }
.fiction-chapter-heading[hidden] { display: none; }
.fiction-chapter-work { font-size: clamp(13px, 1.6vw, 16px); letter-spacing: .12em; color: #806c52; margin: 0 0 12px; }
.fiction-chapter-heading h3 { font-size: clamp(22px, 3vw, 30px); line-height: 1.45; font-weight: 700; color: #302820; margin: 0; }
.fiction-page-number { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; font-size: 11px; color: #77634e; }
.fiction-measure { position: absolute !important; visibility: hidden; inset: 0 auto 0 0; width: 100%; pointer-events: none; }
.fiction-book:has(.fiction-pages[data-spread="2"]) .fiction-measure { width: 50%; }
.fiction-turn { position: absolute; inset: 0 auto 0 0; height: 100%; z-index: 3; pointer-events: none; transform-origin: center; }
.fiction-curl-layer { position: absolute; inset: 0; transform-origin: 0 0; will-change: transform, clip-path; overflow: hidden; }
.fiction-curl-layer > .fiction-page { position: absolute; inset: 0; width: 100%; height: 100%; backface-visibility: visible; }
.fiction-curl-shade { position: absolute; inset: 0; pointer-events: none; }
.fiction-fold-shadow { position: absolute; inset: 0; filter: blur(10px); opacity: .18; transform: translate(5px, 5px); }
.fiction-fold-shadow > div { position: absolute; inset: 0; background: #352315; transform-origin: 0 0; }
.fiction-controls { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 16px 0; border-top: 1px solid var(--line); background: var(--paper-2); }
.fiction-status { font-size: 13px; color: var(--ink-soft); }
@media (max-height: 520px) { .fiction-page { padding-top: 22px; padding-bottom: 34px; } }
@media (prefers-reduced-motion: reduce) { .fiction-turn { display: none; } }
