/* Lucian UX/UI Prompt theme tokens · MIT License (c) 2026 Seokwoooo · https://lucianlabs.dev/uxui-prompt/ */
:root {
  color-scheme: light;
  --ux-page: #f4f2ee;
  --ux-surface: #fff;
  --ux-surface-2: #f5f3ef;
  --ux-surface-3: #eae7e1;
  --ux-ink: #16151b;
  --ux-ink-2: #57535f;
  --ux-ink-3: #8e8a97;
  --ux-line: rgba(22, 21, 27, .09);
  --ux-line-2: rgba(22, 21, 27, .17);
  --ux-accent: #5e5ce6;
  --ux-accent-2: #2f8fe0;
  --ux-accent-soft: rgba(94, 92, 230, .12);
  --ux-accent-ink: #fff;
  --ux-mint: #119c72;
  --ux-warn: #d6731e;
  --ux-danger: #d93a55;
  --ux-glass: rgba(255, 255, 255, .7);
  --ux-glass-line: rgba(255, 255, 255, .85);
  --ux-shadow: rgba(40, 30, 80, .14);
  --ux-shadow-strong: rgba(40, 30, 80, .3);
  --ux-grad: linear-gradient(120deg, #7565f2, #3d8bff 55%, #1fb89a);
  --ux-ease: cubic-bezier(.2, .8, .2, 1);
  --ux-spring: cubic-bezier(.34, 1.45, .64, 1);
  --shell: 1120px;
  --reader: 1080px;
  --prose: 760px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --ux-page: #07080d;
  --ux-surface: #13141c;
  --ux-surface-2: #1a1b25;
  --ux-surface-3: #252632;
  --ux-ink: #f4f0e8;
  --ux-ink-2: rgba(244, 240, 232, .68);
  --ux-ink-3: rgba(244, 240, 232, .42);
  --ux-line: rgba(255, 255, 255, .08);
  --ux-line-2: rgba(255, 255, 255, .16);
  --ux-accent: #b7a4ff;
  --ux-accent-2: #7db4ff;
  --ux-accent-soft: rgba(183, 164, 255, .15);
  --ux-accent-ink: #0b0c12;
  --ux-mint: #7ee8c0;
  --ux-warn: #ffb26b;
  --ux-danger: #ff7d8c;
  --ux-glass: rgba(255, 255, 255, .07);
  --ux-glass-line: rgba(255, 255, 255, .18);
  --ux-shadow: rgba(0, 0, 0, .45);
  --ux-shadow-strong: rgba(0, 0, 0, .72);
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--ux-page); scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 5%, color-mix(in srgb, var(--ux-accent) 10%, transparent), transparent 24rem),
    var(--ux-page);
  color: var(--ux-ink);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button { font: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }
::selection { background: color-mix(in srgb, var(--ux-accent) 30%, transparent); }

.ux, .ux *, .ux *::before, .ux *::after { box-sizing: border-box; }
.ux { color: var(--ux-ink); letter-spacing: -.01em; word-break: keep-all; overflow-wrap: break-word; -webkit-tap-highlight-color: transparent; }
.ux :focus-visible, :focus-visible { outline: 2px solid var(--ux-accent); outline-offset: 3px; }
.ux [hidden], [hidden] { display: none !important; }

.skip-link { position: fixed; left: 16px; top: -70px; z-index: 100; padding: 10px 14px; border-radius: 12px; background: var(--ux-ink); color: var(--ux-page); }
.skip-link:focus { top: 16px; }
.tb-shell { width: min(var(--shell), calc(100% - 40px)); margin-inline: auto; }
.tb-header {
  position: sticky;
  top: 12px;
  z-index: 30;
  width: min(var(--shell), calc(100% - 24px));
  min-height: 62px;
  margin: 12px auto 0;
  padding: 9px 10px 9px 17px;
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--ux-line);
  border-radius: 20px;
  background: color-mix(in srgb, var(--ux-page) 80%, transparent);
  box-shadow: 0 18px 45px -34px var(--ux-shadow-strong);
  backdrop-filter: blur(18px) saturate(150%);
}
.tb-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 900; letter-spacing: -.06em; font-size: 20px; }
.tb-brand-mark { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 10px; background: var(--ux-ink); color: var(--ux-page); font-size: 15px; letter-spacing: -.08em; }
.tb-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.tb-nav a { padding: 8px 10px; border-radius: 10px; color: var(--ux-ink-2); font-size: 13px; font-weight: 700; text-decoration: none; }
.tb-nav a:hover { background: var(--ux-surface-2); color: var(--ux-ink); }
.tb-theme { width: 42px; height: 42px; border: 1px solid var(--ux-line); border-radius: 13px; display: grid; place-items: center; background: var(--ux-surface); color: var(--ux-ink); }
.tb-theme svg { width: 18px; height: 18px; }
.tb-theme .moon { display: none; }
:root[data-theme="dark"] .tb-theme .sun { display: none; }
:root[data-theme="dark"] .tb-theme .moon { display: block; }

.tb-hero { padding: clamp(72px, 10vw, 128px) 0 48px; }
.tb-kicker { margin: 0 0 14px; color: var(--ux-accent); font-size: 12px; font-weight: 900; letter-spacing: .16em; }
.tb-hero h1, .work-copy h1 { margin: 0; font-size: clamp(44px, 8vw, 88px); line-height: .98; letter-spacing: -.08em; text-wrap: balance; }
.tb-lede { max-width: 660px; margin: 24px 0 0; color: var(--ux-ink-2); font-size: clamp(16px, 2vw, 20px); }
.catalog-section { padding: 26px 0 110px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.section-head h2 { margin: 0; font-size: clamp(26px, 4vw, 42px); letter-spacing: -.055em; }
.section-head p { margin: 0; color: var(--ux-ink-3); font-size: 13px; }

/* Lucian UX/UI Prompt #049 · MIT License (c) 2026 Seokwoooo · https://lucianlabs.dev/uxui-prompt/#049 */
.u049 { --px: 0; --py: 0; position: relative; width: min(100%, 820px); height: clamp(310px, 48vw, 460px); border-radius: 30px; overflow: hidden; isolation: isolate; color: #fff; background: #10131b; box-shadow: 0 30px 60px -30px var(--ux-shadow-strong); transition: transform .6s var(--ux-ease), box-shadow .6s var(--ux-ease); }
.u049.is-open { transform: translateY(-4px); box-shadow: 0 40px 70px -32px var(--ux-shadow-strong); }
.u049-art { position: absolute; inset: -18px; z-index: -2; transition: transform .9s var(--ux-ease); transform: translate(calc(var(--px) * -12px), calc(var(--py) * -7px)) scale(1.035); }
.u049-art img { width: 100%; height: 100%; object-fit: cover; }
.u049.is-open .u049-art { transform: translate(calc(var(--px) * -12px), calc(var(--py) * -7px - 7px)) scale(1.065); }
.u049-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7, 8, 13, .04) 22%, rgba(7, 8, 13, .88) 100%); }
.u049-top { position: absolute; left: 20px; right: 20px; top: 18px; display: flex; align-items: center; justify-content: space-between; }
.u049-tag { min-height: 28px; padding: 5px 11px; border-radius: 999px; background: rgba(0, 0, 0, .48); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); font-size: 11px; font-weight: 800; letter-spacing: .06em; }
.u049-count { font-size: 12px; font-weight: 750; color: rgba(255, 255, 255, .8); }
.u049-body { position: absolute; left: 24px; right: 24px; bottom: 24px; transform: translateY(60px); transition: transform .7s var(--ux-spring); }
.u049.is-open .u049-body { transform: none; }
.u049-k { font-size: 12px; font-weight: 800; letter-spacing: .12em; opacity: .72; }
.u049-t { max-width: 650px; margin: 7px 0 0; font-size: clamp(28px, 5vw, 52px); line-height: 1.05; font-weight: 900; letter-spacing: -.06em; text-wrap: balance; }
.u049-sum { max-width: 620px; margin: 12px 0 0; color: rgba(255, 255, 255, .82); font-size: 14px; line-height: 1.55; opacity: 0; transform: translateY(10px); transition: opacity .3s, transform .5s var(--ux-ease); }
.u049-foot { margin-top: 16px; opacity: 0; transform: translateY(12px); transition: opacity .3s, transform .5s var(--ux-ease); }
.u049.is-open .u049-sum, .u049.is-open .u049-foot { opacity: 1; transform: none; }
.u049-cta { min-height: 42px; padding: 0 17px; border-radius: 999px; display: inline-flex; align-items: center; gap: 8px; background: #fff; color: #15151b; font-size: 13px; font-weight: 850; text-decoration: none; transition: transform .35s var(--ux-spring); }
.u049-cta:hover { transform: translateX(3px); }

.work-hero { padding: clamp(58px, 8vw, 96px) 0 38px; }
.work-cover { position: relative; overflow: hidden; border-radius: clamp(22px, 4vw, 36px); background: #0c0e13; box-shadow: 0 35px 90px -50px var(--ux-shadow-strong); }
.work-cover img { width: 100%; aspect-ratio: 1672 / 940; object-fit: contain; }
.work-copy { max-width: 860px; margin: 30px 0 0; }
.work-copy h1 { font-size: clamp(36px, 6vw, 68px); }
.work-copy p { max-width: 720px; margin: 18px 0 0; color: var(--ux-ink-2); font-size: clamp(15px, 2vw, 18px); line-height: 1.78; }
.work-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.work-meta span { padding: 6px 10px; border-radius: 999px; background: var(--ux-accent-soft); color: var(--ux-accent); font-size: 12px; font-weight: 800; }
.episodes-section { padding: 36px 0 110px; }

/* Lucian UX/UI Prompt #039 · MIT License (c) 2026 Seokwoooo · https://lucianlabs.dev/uxui-prompt/#039 */
.u039 { position: relative; width: 100%; min-height: 500px; }
.u039-tabs-wrap { overflow-x: auto; scrollbar-width: none; padding: 2px; }
.u039-tabs-wrap::-webkit-scrollbar { display: none; }
.u039-tabs { position: relative; width: max-content; min-width: min(100%, 580px); display: flex; padding: 5px; border-radius: 999px; background: var(--ux-surface); box-shadow: 0 0 0 1px var(--ux-line); }
.u039-pill { position: absolute; left: 0; top: 5px; bottom: 5px; width: var(--w, 80px); border-radius: 999px; background: var(--ux-ink); transform: translateX(var(--x, 5px)); box-shadow: 0 8px 16px -10px var(--ux-shadow-strong); transition: transform .5s var(--ux-spring), width .5s var(--ux-spring); }
.u039-tab { position: relative; min-width: 108px; height: 42px; border: 0; padding: 0 14px; border-radius: 999px; background: none; color: var(--ux-ink-2); font-size: 14px; font-weight: 750; white-space: nowrap; transition: color .35s var(--ux-ease); }
.u039-tab[aria-selected="true"] { color: var(--ux-page); }
.u039-panel { position: relative; margin-top: 18px; min-height: 420px; overflow: hidden; }
.u039-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.u039-row { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; align-items: center; gap: 14px; min-height: 82px; padding: 11px 14px 11px 11px; border-radius: 20px; background: var(--ux-surface); box-shadow: 0 0 0 1px var(--ux-line); transition: transform .55s var(--ux-spring), opacity .35s var(--ux-ease), box-shadow .25s; }
.u039-row.is-link:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -24px var(--ux-shadow-strong), 0 0 0 1px var(--ux-line-2); }
.u039-number { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 16px; background: var(--ux-surface-2); color: var(--ux-ink-3); font-weight: 900; font-variant-numeric: tabular-nums; }
.u039-row.is-link .u039-number { background: var(--ux-accent-soft); color: var(--ux-accent); }
.u039-row a { min-width: 0; color: inherit; text-decoration: none; }
.u039-row b { display: block; font-size: 15px; letter-spacing: -.025em; }
.u039-row small { display: block; margin-top: 4px; color: var(--ux-ink-3); font-size: 12px; }
.u039-state { padding: 4px 8px; border-radius: 999px; background: var(--ux-surface-2); color: var(--ux-ink-3); font-size: 11px; font-weight: 800; white-space: nowrap; }
.u039-row.is-link .u039-state { background: var(--ux-accent-soft); color: var(--ux-accent); }
.volume-empty { min-height: 240px; display: grid; place-items: center; padding: 40px 20px; border: 1px dashed var(--ux-line-2); border-radius: 24px; color: var(--ux-ink-3); text-align: center; }

.reader-page { background: color-mix(in srgb, var(--ux-page) 95%, #000 5%); }
.reader-header { position: sticky; top: 0; z-index: 40; border-bottom: 1px solid var(--ux-line); background: color-mix(in srgb, var(--ux-page) 88%, transparent); backdrop-filter: blur(18px) saturate(150%); }
.reader-header-inner { width: min(var(--reader), calc(100% - 28px)); min-height: 66px; margin: auto; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; }
.reader-actions { display: flex; align-items: center; gap: 8px; }
.reader-back, .reader-theme, .reader-music { width: 42px; height: 42px; border: 1px solid var(--ux-line); border-radius: 13px; display: grid; place-items: center; background: var(--ux-surface); color: var(--ux-ink); text-decoration: none; }
.reader-back svg, .reader-theme svg, .reader-music svg { width: 18px; height: 18px; }
.reader-music[aria-pressed="true"] { border-color: color-mix(in srgb, var(--ux-accent) 48%, var(--ux-line)); background: var(--ux-accent-soft); color: var(--ux-accent); }
.reader-music .sound-on { display: none; }
.reader-music[aria-pressed="true"] .sound-off { display: none; }
.reader-music[aria-pressed="true"] .sound-on { display: block; }
.reader-music.is-pending svg { animation: music-pulse .8s ease-in-out infinite alternate; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
@keyframes music-pulse { to { opacity: .38; transform: scale(.9); } }
.reader-title { min-width: 0; text-align: center; }
.reader-title strong, .reader-title span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reader-title strong { font-size: 13px; }
.reader-title span { color: var(--ux-ink-3); font-size: 11px; }
.reader-theme .moon { display: none; }
:root[data-theme="dark"] .reader-theme .sun { display: none; }
:root[data-theme="dark"] .reader-theme .moon { display: block; }
.reader-main { width: min(var(--reader), calc(100% - 28px)); margin: 0 auto; padding: clamp(28px, 5vw, 56px) 0 130px; }
.reader-status { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; color: var(--ux-ink-3); font-size: 12px; font-weight: 750; }
.reader-progress { flex: 1; height: 4px; overflow: hidden; border-radius: 999px; background: var(--ux-line); }
.reader-progress i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--ux-accent); transition: width .35s var(--ux-ease); }

/* Lucian UX/UI Prompt #339 · MIT License (c) 2026 Seokwoooo · https://lucianlabs.dev/uxui-prompt/#339 */
.u339 { position: relative; width: 100%; min-height: 560px; color: var(--ux-ink); }
.u339-tr { position: relative; width: 100%; touch-action: pan-y; user-select: none; cursor: grab; }
.u339-tr.is-drag { cursor: grabbing; }
.u339-card { width: 100%; transform: translateX(var(--drag-x, 0)); opacity: var(--drag-opacity, 1); transition: transform .52s var(--ux-spring), opacity .28s var(--ux-ease); }
.u339-card.no-motion { transition: none; }
.reader-cover-card, .reader-scene { overflow: hidden; border: 1px solid var(--ux-line); border-radius: clamp(20px, 3vw, 30px); background: var(--ux-surface); box-shadow: 0 30px 70px -48px var(--ux-shadow-strong); }
.reader-cover-card img, .reader-scene img { width: 100%; height: auto; object-fit: contain; background: #080a0f; }
.reader-visual { position: relative; display: grid; aspect-ratio: 3 / 2; overflow: hidden; place-items: center; background: color-mix(in srgb, var(--ux-surface-2) 76%, var(--ux-page)); isolation: isolate; }
.reader-visual::before { position: absolute; z-index: 0; inset: 0; content: ""; background: linear-gradient(105deg, transparent 28%, color-mix(in srgb, #fff 42%, transparent) 46%, transparent 64%); transform: translateX(-100%); }
.reader-visual.is-loading::before { animation: reader-skeleton 1.35s ease-in-out infinite; }
.reader-visual.is-loading.has-preview::before { animation: none; opacity: 0; }
.reader-scene .reader-image-preview, .reader-visual picture { position: absolute; inset: 0; }
.reader-scene .reader-image-preview { z-index: 1; width: 100%; height: 100%; object-fit: cover; opacity: 0; filter: blur(10px); transform: scale(1.04); transition: opacity .18s var(--ux-ease); }
.reader-visual.has-preview .reader-image-preview { opacity: 1; }
.reader-visual picture { z-index: 2; display: block; }
.reader-scene .reader-image-full { width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .28s var(--ux-ease); }
.reader-visual.is-loaded .reader-image-full { opacity: 1; }
.reader-visual.is-loaded .reader-image-preview { opacity: 0; }
.reader-image-status { position: relative; z-index: 3; display: grid; max-width: calc(100% - 40px); justify-items: center; gap: 12px; color: var(--ux-ink-3); font-size: 13px; font-weight: 750; text-align: center; }
.reader-visual.has-preview:not(.is-error) .reader-image-status { display: none; }
.reader-visual.is-loaded .reader-image-status { display: none; }
.reader-visual.is-error::before { display: none; }
.reader-image-retry { min-height: 42px; padding: 0 15px; border: 1px solid var(--ux-line); border-radius: 12px; background: var(--ux-surface); color: var(--ux-ink); font: inherit; font-weight: 800; }
.reader-image-retry:hover { border-color: var(--ux-accent); color: var(--ux-accent); }
@keyframes reader-skeleton { to { transform: translateX(100%); } }
.reader-cover-copy { padding: clamp(24px, 5vw, 52px); }
.reader-cover-copy small { color: var(--ux-accent); font-weight: 850; letter-spacing: .08em; }
.reader-cover-copy h1 { max-width: 850px; margin: 10px 0 0; font-size: clamp(34px, 6vw, 68px); line-height: 1.05; letter-spacing: -.07em; text-wrap: balance; }
.reader-cover-copy p { margin: 18px 0 0; color: var(--ux-ink-2); }
.start-reading { margin-top: 24px; min-height: 48px; padding: 0 18px; border: 0; border-radius: 14px; background: var(--ux-ink); color: var(--ux-page); font-weight: 850; }
.scene-copy { width: min(var(--prose), calc(100% - 36px)); margin: 0 auto; padding: clamp(30px, 6vw, 68px) 0 clamp(36px, 7vw, 78px); }
.scene-copy header { margin-bottom: 28px; }
.scene-copy header small { color: var(--ux-accent); font-size: 11px; font-weight: 850; letter-spacing: .1em; }
.scene-copy h2 { margin: 5px 0 0; font-size: clamp(23px, 4vw, 34px); line-height: 1.2; letter-spacing: -.045em; }
.scene-copy p { margin: 0 0 1.02em; font-family: "Noto Serif KR", "AppleMyungjo", "Nanum Myeongjo", serif; font-size: clamp(17px, 2vw, 20px); line-height: 1.9; letter-spacing: -.015em; word-break: keep-all; }
.scene-copy p:last-child { margin-bottom: 0; }
.reader-controls { position: sticky; z-index: 35; bottom: 12px; width: min(620px, calc(100% - 24px)); margin: 24px auto 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; padding: 8px; border: 1px solid var(--ux-line); border-radius: 18px; background: color-mix(in srgb, var(--ux-surface) 88%, transparent); box-shadow: 0 22px 55px -32px var(--ux-shadow-strong); backdrop-filter: blur(18px) saturate(150%); }
.reader-control { min-height: 46px; border: 0; border-radius: 13px; background: var(--ux-surface-2); color: var(--ux-ink); font-weight: 800; }
.reader-control:disabled { opacity: .35; cursor: default; }
.reader-control.next { background: var(--ux-ink); color: var(--ux-page); }
.reader-count { min-width: 64px; text-align: center; color: var(--ux-ink-3); font-size: 12px; font-weight: 850; font-variant-numeric: tabular-nums; }
.reader-side { position: fixed; z-index: 32; top: 50%; width: 52px; height: 72px; border: 1px solid var(--ux-line); border-radius: 18px; display: grid; place-items: center; background: color-mix(in srgb, var(--ux-surface) 82%, transparent); color: var(--ux-ink); backdrop-filter: blur(14px); transform: translateY(-50%); }
.reader-side.prev { left: max(16px, calc(50% - 620px)); }
.reader-side.next { right: max(16px, calc(50% - 620px)); }
.reader-side:disabled { opacity: .22; }
.reader-end { width: min(var(--prose), 100%); margin: 34px auto 0; padding: 28px; border-radius: 24px; background: var(--ux-surface); text-align: center; }
.reader-end h2 { margin: 0; letter-spacing: -.04em; }
.reader-end a { display: inline-flex; margin-top: 14px; padding: 11px 15px; border-radius: 12px; background: var(--ux-ink); color: var(--ux-page); text-decoration: none; font-weight: 800; }
.reader-error { padding: 60px 24px; border: 1px solid var(--ux-line); border-radius: 24px; background: var(--ux-surface); text-align: center; }

@media (prefers-reduced-motion: reduce) {
  .reader-visual.is-loading::before { animation: none; background: color-mix(in srgb, var(--ux-line) 55%, transparent); transform: none; }
  .reader-scene .reader-image-preview, .reader-scene .reader-image-full { transition: none; }
}

.tb-footer { padding: 42px 0 56px; border-top: 1px solid var(--ux-line); color: var(--ux-ink-3); font-size: 12px; }
.tb-footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.tb-footer a { text-underline-offset: 4px; }

@media (max-width: 767px) {
  .tb-shell { width: min(100% - 28px, var(--shell)); }
  .tb-header { top: 8px; width: calc(100% - 16px); margin-top: 8px; }
  .tb-nav a:not(.toonbook-home) { display: none; }
  .tb-hero { padding-top: 68px; }
  .catalog-section { padding-bottom: 78px; }
  .section-head { align-items: start; flex-direction: column; gap: 5px; }
  .u049 { height: clamp(320px, 98vw, 390px); }
  .u049-art { inset: 0; }
  .u049-body { left: 18px; right: 18px; bottom: 18px; transform: translateY(0); }
  .u049-sum, .u049-foot { opacity: 1; transform: none; }
  .u049-t { font-size: clamp(28px, 9vw, 39px); }
  .u049-sum { font-size: 13px; }
  .work-hero { padding-top: 44px; }
  .work-cover { margin-inline: -14px; border-radius: 0; }
  .u039-tab { min-width: 88px; padding-inline: 11px; }
  .u039-row { grid-template-columns: 48px minmax(0, 1fr) auto; padding: 10px; }
  .u039-number { width: 48px; height: 48px; border-radius: 14px; }
  .reader-header-inner { gap: 8px; }
  .reader-actions { gap: 6px; }
  .reader-back, .reader-theme, .reader-music { width: 40px; height: 40px; border-radius: 12px; }
  .reader-main { width: 100%; padding-top: 18px; }
  .reader-status { margin-inline: 14px; }
  .reader-cover-card, .reader-scene { border-left: 0; border-right: 0; border-radius: 0; }
  .reader-cover-copy { padding-inline: 20px; }
  .scene-copy { width: calc(100% - 36px); }
  .reader-side { display: none; }
  .reader-controls { position: fixed; left: 12px; right: 12px; bottom: max(10px, env(safe-area-inset-bottom)); width: auto; margin: 0; }
  .tb-footer-inner { align-items: start; flex-direction: column; }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .reader-main { width: min(820px, calc(100% - 40px)); }
  .reader-side { display: none; }
}

@media (min-width: 1200px) {
  .reader-controls { display: none; }
}

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