:root {
  --ink: #25343b;
  --muted: #66787e;
  --mist: #edf3f3;
  --paper: rgba(255, 255, 255, 0.62);
  --line: rgba(37, 52, 59, 0.15);
  --blue: #7ea5ad;
  --sage: #a8beb4;
  --shadow: 0 20px 45px rgba(42, 61, 67, 0.1);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--mist); -webkit-text-size-adjust: 100%; }
body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 92% 8%, rgba(168, 190, 180, 0.24), transparent 22rem),
    radial-gradient(circle at 5% 29%, rgba(126, 165, 173, 0.18), transparent 25rem),
    var(--mist);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
button { font: inherit; }
img { display: block; max-width: 100%; -webkit-user-drag: none; }

.loading {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-content: center;
  gap: 12px;
  background: var(--mist);
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-align: center;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.loading img { width: 94px; height: 94px; margin: 0 auto; border-radius: 50%; object-fit: cover; box-shadow: var(--shadow); }
.loading.is-hidden { opacity: 0; visibility: hidden; }

.page-shell { width: min(100%, 720px); min-height: 100svh; margin: 0 auto; padding: max(16px, env(safe-area-inset-top)) 20px max(20px, env(safe-area-inset-bottom)); }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: 0.14em; }
.quiet-button { min-width: 48px; min-height: 32px; border: 1px solid var(--line); border-radius: 4px; background: rgba(255,255,255,.35); color: var(--muted); cursor: pointer; }

.cover { display: flex; min-height: calc(100svh - 72px); flex-direction: column; justify-content: center; padding: 28px 0; animation: fade-up .7s ease both; }
.cover-cats { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; }
.cover-cats img { width: 72px; height: 72px; border: 1px solid rgba(255,255,255,.9); border-radius: 7px; background: rgba(255,255,255,.42); box-shadow: 0 10px 22px rgba(42,61,67,.08); object-fit: cover; }
.cover-cats img:nth-child(2) { transform: translateY(10px); }
.cover-cats img:nth-child(3) { transform: translateY(-2px); }
.eyebrow, .chapter-date { margin: 0; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: 0.14em; }
.cover h1 { max-width: 580px; margin: 10px 0 18px; font-family: "Songti SC", "Noto Serif SC", serif; font-size: clamp(34px, 9vw, 54px); font-weight: 400; letter-spacing: 0; line-height: 1.27; }
.cover-copy { max-width: 570px; margin: 0 0 13px; color: var(--muted); font-family: "Songti SC", "Noto Serif SC", serif; font-size: 17px; line-height: 2; }
.signature { display: flex; justify-content: space-between; gap: 14px; max-width: 570px; margin: 18px 0 20px; padding-top: 13px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 1.6; }
.primary-button { min-height: 48px; width: fit-content; padding: 0 18px; border: 1px solid var(--ink); border-radius: 4px; background: var(--ink); color: #f6fbfb; cursor: pointer; font-size: 13px; letter-spacing: 0.08em; transition: transform .18s ease, background .18s ease; }
.primary-button:active, .chapter-button:active, .next-button:active, .cameo-card:active { transform: translateY(2px) scale(.99); }

.reader { padding-top: 26px; animation: fade-up .45s cubic-bezier(.2,.85,.25,1) both; }
.reader[hidden], .cover[hidden] { display: none; }
.chapter-nav { display: flex; gap: 8px; margin: 0 -20px 20px; padding: 0 20px 8px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.chapter-nav::-webkit-scrollbar { display: none; }
.chapter-button { flex: 0 0 auto; min-height: 34px; padding: 0 11px; border: 1px solid var(--line); border-radius: 4px; background: rgba(255,255,255,.36); color: var(--muted); cursor: pointer; font-size: 11px; white-space: nowrap; }
.chapter-button.is-active { border-color: rgba(37,52,59,.46); background: rgba(255,255,255,.8); color: var(--ink); }

.letter { padding-bottom: 16px; }
.chapter { display: none; min-height: calc(100svh - 176px); padding-bottom: 20px; }
.chapter.is-active { display: block; animation: chapter-in .45s cubic-bezier(.2,.85,.25,1) both; }
.chapter-header { margin-bottom: 17px; }
.chapter-header h2 { margin: 7px 0 0; font-family: "Songti SC", "Noto Serif SC", serif; font-size: clamp(28px, 7.5vw, 43px); font-weight: 400; line-height: 1.35; }
.chapter-state { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.chapter-transition { display: flex; flex-wrap: wrap; min-height: 21px; overflow: hidden; color: var(--blue); }
.chapter-transition span { display: inline-block; opacity: 0; transform: translate3d(0, 8px, 0); filter: blur(4px); animation: transition-letter .48s cubic-bezier(.18,.82,.27,1) both; animation-delay: calc(70ms + var(--line-index) * 42ms); }
.scene { display: grid; gap: 15px; }
.cat-card { position: relative; width: min(57vw, 250px); margin: 2px auto 2px; padding: 8px; border: 1px solid rgba(255,255,255,.78); border-radius: 7px; background: var(--paper); box-shadow: var(--shadow); cursor: pointer; touch-action: manipulation; transition: transform .22s ease; }
.cat-card img { width: 100%; aspect-ratio: 1; border-radius: 4px; object-fit: cover; }
.cat-card span { display: block; padding-top: 7px; color: var(--muted); font-size: 10px; letter-spacing: .1em; text-align: center; }
.cat-card.is-cat-dodge-right { animation: cat-dodge-right .9s cubic-bezier(.16,.84,.3,1) both; }
.cat-card.is-cat-dodge-left { animation: cat-dodge-left .9s cubic-bezier(.16,.84,.3,1) both; }
.cat-card.is-cat-hug { animation: cat-hug .9s cubic-bezier(.18,.78,.28,1) both; }
.cat-card.is-cat-peek { animation: cat-peek 1s cubic-bezier(.16,.84,.3,1) both; }
.cat-card.is-cat-step-back { animation: cat-step-back .95s cubic-bezier(.16,.84,.3,1) both; }
.cat-card.is-cat-deliver { animation: cat-deliver 1s cubic-bezier(.16,.84,.3,1) both; }
.cat-card.is-cat-wave { animation: cat-wave .95s cubic-bezier(.16,.84,.3,1) both; }
.cat-card.is-cat-settle { animation: cat-settle .95s cubic-bezier(.18,.78,.28,1) both; }
.cat-card.is-cat-turn { animation: cat-turn 1s cubic-bezier(.16,.84,.3,1) both; }
.cat-card.is-cat-shelter { animation: cat-shelter 1s cubic-bezier(.16,.84,.3,1) both; }
.cat-card.is-cat-listen { animation: cat-listen 1s cubic-bezier(.24,.78,.3,1) both; }
.cat-card.is-cat-return { animation: cat-return 1s cubic-bezier(.16,.84,.3,1) both; }
.cat-note { min-height: 20px; margin: -7px 0 0; color: var(--blue); font-size: 12px; line-height: 1.6; text-align: center; }
.cameo-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: min(100%, 296px); gap: 10px; margin: 0 auto; }
.cameo-card { min-width: 0; min-height: 88px; padding: 5px 4px 6px; border: 1px solid rgba(255,255,255,.8); border-radius: 6px; background: rgba(255,255,255,.38); color: var(--muted); box-shadow: 0 8px 18px rgba(42,61,67,.06); cursor: pointer; overflow: hidden; transition: transform .18s ease, background .18s ease; }
.cameo-card img { width: 100%; aspect-ratio: 1; border-radius: 4px; object-fit: cover; }
.cameo-card span { display: block; min-height: 24px; padding: 5px 1px 0; font-size: 9px; line-height: 1.3; text-align: center; }
.interaction-dock { display: grid; gap: 10px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.interaction-title { margin: 0; color: var(--muted); font-family: "Songti SC", "Noto Serif SC", serif; font-size: 14px; line-height: 1.75; }
.cameo-note { min-height: 42px; margin: 0; padding: 9px 10px; border-left: 2px solid rgba(126,165,173,.55); background: rgba(255,255,255,.28); color: var(--blue); font-family: "Songti SC", "Noto Serif SC", serif; font-size: 12px; line-height: 1.65; }
.cameo-card.is-cameo-deliver { animation: cameo-deliver 1.05s cubic-bezier(.16,.84,.3,1) both; }
.cameo-card.is-cameo-listen { animation: cameo-listen 1.1s cubic-bezier(.24,.78,.3,1) both; }
.cameo-card.is-cameo-shy { animation: cameo-shy 1s cubic-bezier(.16,.84,.3,1) both; }
.cameo-card.is-cameo-sweet { animation: cameo-sweet 1.05s cubic-bezier(.16,.84,.3,1) both; }
.source { margin: 0; padding: 13px 14px; border-left: 2px solid var(--blue); background: rgba(255,255,255,.36); color: var(--muted); font-family: "Songti SC", "Noto Serif SC", serif; font-size: 14px; line-height: 1.8; }
.source b { display: block; margin-bottom: 4px; color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 10px; font-weight: 700; letter-spacing: .12em; }
.chapter-copy { display: grid; gap: 12px; padding-top: 15px; border-top: 1px solid var(--line); }
.chapter-copy p { margin: 0; color: #52656b; font-family: "Songti SC", "Noto Serif SC", serif; font-size: 17px; line-height: 2.02; }
.chapter-copy p:first-child::first-letter { color: var(--ink); font-size: 2.45em; line-height: .8; }
.expanded-letter { margin-top: 18px; padding: 15px 16px; border-left: 2px solid var(--sage); background: rgba(255,255,255,.38); color: var(--muted); }
.expanded-letter-label { margin: 0 0 7px; color: var(--ink); font-size: 10px; font-weight: 700; letter-spacing: .12em; }
.expanded-letter p:last-child { margin: 0; font-family: "Songti SC", "Noto Serif SC", serif; font-size: 16px; line-height: 1.95; }
.chapter-pagination { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; margin-top: 24px; padding-top: 14px; border-top: 1px solid var(--line); }
.pagination-button { min-height: 40px; padding: 0 11px; border: 1px solid var(--line); border-radius: 4px; background: rgba(255,255,255,.48); color: var(--muted); cursor: pointer; font-size: 11px; white-space: nowrap; }
.pagination-button:disabled { opacity: .42; cursor: not-allowed; }
.pagination-next { border-color: var(--ink); background: var(--ink); color: #f6fbfb; }
.chapter-jump { min-width: 0; color: var(--muted); font-size: 10px; text-align: center; white-space: nowrap; }
.chapter-jump select { width: clamp(84px, 30vw, 150px); min-height: 34px; margin: 0 3px; padding: 0 5px; border: 1px solid var(--line); border-radius: 4px; background: rgba(255,255,255,.76); color: var(--ink); font: inherit; }
.last-message { margin: 20px 0 0; padding: 19px 16px; border: 1px solid rgba(126,165,173,.38); border-radius: 7px; background: rgba(255,255,255,.46); box-shadow: var(--shadow); }
.last-message p { margin: 0; color: var(--ink); font-family: "Songti SC", "Noto Serif SC", serif; font-size: 17px; line-height: 2; }
.last-message p + p { margin-top: 12px; color: var(--muted); }
.source-document { margin: 16px 0 0; padding: 17px 16px; border: 1px solid rgba(126,165,173,.42); border-radius: 7px; background: rgba(255,255,255,.52); box-shadow: var(--shadow); }
.source-document-kicker { margin: 0 0 6px; color: var(--blue); font-size: 10px; font-weight: 800; letter-spacing: .14em; }
.source-document h3 { margin: 0 0 8px; color: var(--ink); font-family: "Songti SC", "Noto Serif SC", serif; font-size: 22px; font-weight: 400; line-height: 1.35; }
.source-document p { margin: 0; color: var(--muted); font-family: "Songti SC", "Noto Serif SC", serif; font-size: 15px; line-height: 1.9; }
.source-document a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; margin-top: 13px; padding: 0 15px; border: 1px solid var(--ink); border-radius: 4px; background: var(--ink); color: #f6fbfb; font-size: 13px; letter-spacing: .06em; text-decoration: none; }
.site-footer { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0 5px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 1.6; }

.privacy .reader, .privacy .cover { filter: blur(5px) saturate(.65); }
.privacy::after { content: "雾面保护已开启"; position: fixed; right: 18px; bottom: max(18px, env(safe-area-inset-bottom)); z-index: 8; padding: 8px 10px; border-radius: 4px; background: rgba(37,52,59,.9); color: white; font-size: 11px; }
@keyframes fade-up { from { opacity: 0; transform: translateY(12px); filter: blur(5px); } to { opacity: 1; transform: translateY(0); filter: blur(0); } }
@keyframes chapter-in { from { opacity: 0; transform: translateX(14px); filter: blur(5px); } to { opacity: 1; transform: translateX(0); filter: blur(0); } }
@keyframes transition-letter { 0% { opacity: 0; transform: translate3d(0, 8px, 0); filter: blur(4px); } 62% { opacity: 1; transform: translate3d(0, -1px, 0); filter: blur(0); } 100% { opacity: 1; transform: translate3d(0, 0, 0); filter: blur(0); } }
@keyframes cat-dodge-right { 0%,100% { transform: translate(0,0) rotate(0); } 24% { transform: translate(32px,-8px) rotate(5deg); } 55% { transform: translate(62px,5px) rotate(8deg); } 76% { transform: translate(28px,-3px) rotate(2deg); } }
@keyframes cat-dodge-left { 0%,100% { transform: translate(0,0) rotate(0); } 24% { transform: translate(-32px,-8px) rotate(-5deg); } 55% { transform: translate(-62px,5px) rotate(-8deg); } 76% { transform: translate(-28px,-3px) rotate(-2deg); } }
@keyframes cat-hug { 0%,100% { transform: translate(0,0) rotate(0); } 25% { transform: translate(-14px,-10px) rotate(-4deg); } 52% { transform: translate(10px,-15px) rotate(4deg); } 74% { transform: translate(5px,3px) rotate(1deg); } }
@keyframes cat-peek { 0%,100% { transform: translate(0,0) rotate(0); opacity: 1; } 28% { transform: translate(-22px,3px) rotate(-5deg); } 52% { transform: translate(-8px,-8px) rotate(-2deg); opacity: .78; } 78% { transform: translate(3px,0) rotate(1deg); opacity: 1; } }
@keyframes cat-step-back { 0%,100% { transform: translate(0,0) rotate(0); } 22% { transform: translate(9px,-8px) rotate(2deg); } 48% { transform: translate(28px,4px) rotate(5deg); } 74% { transform: translate(17px,0) rotate(2deg); } }
@keyframes cat-deliver { 0%,100% { transform: translate(0,0) rotate(0); } 24% { transform: translate(18px,-12px) rotate(4deg); } 52% { transform: translate(-6px,-18px) rotate(-3deg); } 78% { transform: translate(7px,-4px) rotate(2deg); } }
@keyframes cat-wave { 0%,100% { transform: translate(0,0) rotate(0); } 22% { transform: translate(5px,-14px) rotate(5deg); } 48% { transform: translate(-8px,-8px) rotate(-5deg); } 72% { transform: translate(4px,-3px) rotate(3deg); } }
@keyframes cat-settle { 0%,100% { transform: translate(0,0) rotate(0); } 26% { transform: translate(-7px,-12px) rotate(-3deg); } 53% { transform: translate(9px,-6px) rotate(3deg); } 77% { transform: translate(0,2px) rotate(0); } }
@keyframes cat-turn { 0%,100% { transform: translate(0,0) rotate(0); } 25% { transform: translate(15px,-4px) rotate(8deg); } 55% { transform: translate(20px,5px) rotate(12deg); } 78% { transform: translate(5px,0) rotate(3deg); } }
@keyframes cat-shelter { 0%,100% { transform: translate(0,0) rotate(0); } 24% { transform: translate(-13px,-7px) rotate(-4deg); } 50% { transform: translate(13px,-9px) rotate(4deg); } 76% { transform: translate(2px,-2px) rotate(1deg); } }
@keyframes cat-listen { 0%,100% { transform: translate(0,0) rotate(0); } 24% { transform: translate(-5px,-8px) rotate(-3deg); } 48% { transform: translate(7px,-11px) rotate(3deg); } 72% { transform: translate(-3px,-4px) rotate(-1deg); } }
@keyframes cat-return { 0%,100% { transform: translate(0,0) rotate(0); } 25% { transform: translate(-18px,3px) rotate(-4deg); } 54% { transform: translate(15px,-10px) rotate(5deg); } 80% { transform: translate(4px,0) rotate(1deg); } }
@keyframes cameo-deliver { 0%,100% { transform: translate(0,0) rotate(0); } 22% { transform: translate(-12px,5px) rotate(-4deg); } 53% { transform: translate(17px,-13px) rotate(6deg); } 76% { transform: translate(8px,-3px) rotate(2deg); } }
@keyframes cameo-listen { 0%,100% { transform: translate(0,0) rotate(0); } 24% { transform: translate(-5px,-8px) rotate(-3deg); } 48% { transform: translate(7px,-11px) rotate(3deg); } 72% { transform: translate(-3px,-4px) rotate(-1deg); } }
@keyframes cameo-shy { 0%,100% { transform: translate(0,0) rotate(0); } 25% { transform: translate(-24px,4px) rotate(-7deg); } 50% { transform: translate(-32px,-7px) rotate(-9deg); } 72% { transform: translate(-9px,-3px) rotate(-2deg); } }
@keyframes cameo-sweet { 0%,100% { transform: translate(0,0) rotate(0); } 22% { transform: translate(7px,-13px) rotate(4deg); } 50% { transform: translate(-7px,-18px) rotate(-4deg); } 76% { transform: translate(4px,-5px) rotate(2deg); } }
@media (min-width: 680px) { .page-shell { padding-left: 34px; padding-right: 34px; } .chapter-nav { margin-left: -34px; margin-right: -34px; padding-left: 34px; padding-right: 34px; } }
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* v42: a quieter visual frame around the existing reading experience. */
:root {
  --coral: #b77966;
  --gold: #b99a62;
  --glass: rgba(255, 255, 255, 0.72);
  --shadow-soft: 0 14px 32px rgba(42, 61, 67, 0.1);
  --focus-ring: rgba(183, 121, 102, 0.64);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page-shell {
  position: relative;
  padding-top: max(16px, env(safe-area-inset-top));
}

.site-header {
  position: relative;
  min-height: 40px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.site-era {
  min-width: 0;
  color: #5e757d;
  line-height: 1.35;
}

.header-actions {
  position: fixed;
  top: max(13px, env(safe-area-inset-top));
  right: max(17px, env(safe-area-inset-right));
  z-index: 12;
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 6px;
}

.quiet-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  min-height: 36px;
  border-color: transparent;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  box-shadow: 0 4px 13px rgba(42, 61, 67, 0.055);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.24s ease, background 0.24s ease, color 0.24s ease, box-shadow 0.24s ease;
}

.quiet-button:focus-visible,
.primary-button:focus-visible,
.chapter-button:focus-visible,
.pagination-button:focus-visible,
.cat-card:focus-visible,
.cameo-card:focus-visible,
.source-document a:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
}

.music-button {
  position: relative;
  display: grid;
  width: 40px;
  min-width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.music-disc {
  position: absolute;
  inset: 2px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 5px 14px rgba(42, 61, 67, 0.085), inset 0 0 0 1px rgba(126, 165, 173, 0.14);
  transition: transform 0.28s ease, background 0.28s ease, color 0.28s ease, box-shadow 0.28s ease;
}

.music-disc::after {
  position: absolute;
  inset: 5px;
  border: 1px solid transparent;
  border-radius: 50%;
  content: "";
}

.music-button.is-playing .music-disc {
  background: rgba(255, 248, 244, 0.9);
  color: var(--coral);
  box-shadow: 0 7px 17px rgba(183, 121, 102, 0.18), inset 0 0 0 1px rgba(183, 121, 102, 0.22);
  animation: music-bob 1.9s ease-in-out infinite;
}

.music-button.is-playing .music-disc::after {
  border-color: rgba(183, 121, 102, 0.42) transparent transparent;
  animation: music-orbit 2.9s linear infinite;
}

.music-icon {
  position: relative;
  z-index: 1;
  display: inline-grid;
  place-items: center;
  font-family: Georgia, "Songti SC", serif;
  font-size: 17px;
  line-height: 1;
}

.cover {
  min-height: calc(100svh - 66px);
  padding: 34px 0 26px;
}

.cover-cats {
  position: relative;
  width: fit-content;
  gap: 12px;
  margin-bottom: 31px;
}

.cover-cats img {
  --cover-shift: 0px;
  border-color: rgba(255, 255, 255, 0.94);
  border-radius: 50%;
  box-shadow: var(--shadow-soft);
  animation: cover-cat-float 4.8s ease-in-out infinite;
}

.cover-cats img:nth-child(2) {
  --cover-shift: 10px;
  animation-delay: -1.4s;
}

.cover-cats img:nth-child(3) {
  --cover-shift: -2px;
  animation-delay: -2.9s;
}

.cat-spark {
  position: absolute;
  z-index: 1;
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 14px;
  line-height: 1;
  pointer-events: none;
  animation: cat-sparkle 2.8s ease-in-out infinite;
}

.cat-spark-one {
  top: -7px;
  right: -10px;
}

.cat-spark-two {
  bottom: 0;
  left: -8px;
  color: var(--coral);
  font-size: 10px;
  animation-delay: -1.2s;
}

.cover h1 {
  max-width: 610px;
  margin-top: 11px;
  margin-bottom: 17px;
  color: #21343b;
  text-wrap: balance;
}

.cover-copy {
  max-width: 590px;
  color: #5b7077;
  text-wrap: pretty;
}

.signature {
  max-width: 590px;
  margin-top: 21px;
  padding-top: 15px;
}

.primary-button {
  min-height: 49px;
  border-radius: 999px;
  border-color: #263b43;
  background: #263b43;
  box-shadow: 0 10px 20px rgba(37, 52, 59, 0.18);
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.reader {
  padding-top: 21px;
}

.chapter-nav {
  position: relative;
  top: auto;
  z-index: auto;
  margin-top: 0;
  padding-top: 0;
  padding-bottom: 8px;
  border: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.chapter-button {
  position: relative;
  overflow: hidden;
  border-color: transparent;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
  transition: transform 0.2s ease, color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.chapter-button.is-active {
  border-color: transparent;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 4px 12px rgba(42, 61, 67, 0.06);
}

.chapter-button.is-active::after {
  display: none;
}

.chapter {
  padding-bottom: 28px;
}

.chapter.is-active {
  animation-duration: 0.54s;
  transform-origin: 50% 8%;
}

.chapter-header {
  margin-top: 22px;
  margin-bottom: 19px;
}

.chapter-header h2 {
  max-width: 640px;
  color: #243840;
  text-wrap: balance;
}

.chapter-state {
  max-width: 34em;
  margin-top: 10px;
  color: #72949d;
}

.scene {
  gap: 17px;
}

.cat-card {
  border-color: rgba(255, 255, 255, 0.94);
  background: rgba(255, 255, 255, 0.66);
  box-shadow: var(--shadow-soft);
}

.cat-card span {
  color: #5d747b;
}

.source,
.cameo-note {
  border-left-color: var(--coral);
  background: rgba(255, 255, 255, 0.44);
}

.chapter-copy {
  gap: 14px;
  padding-top: 18px;
}

.chapter-copy p {
  color: #4c626a;
}

.expanded-letter {
  border-left-color: var(--gold);
  background: rgba(255, 255, 255, 0.45);
}

.interaction-dock {
  gap: 12px;
  margin-top: 28px;
  padding-top: 21px;
}

.cameo-card {
  border-color: rgba(255, 255, 255, 0.93);
  background: rgba(255, 255, 255, 0.56);
  box-shadow: 0 9px 20px rgba(42, 61, 67, 0.065);
}

.chapter-pagination {
  margin-top: 28px;
  padding-top: 17px;
}

.pagination-button,
.chapter-jump select {
  border-color: rgba(37, 52, 59, 0.16);
  background: rgba(255, 255, 255, 0.7);
}

.pagination-next {
  border-color: #263b43;
  background: #263b43;
  box-shadow: 0 7px 15px rgba(37, 52, 59, 0.13);
}

.last-message,
.source-document {
  background: rgba(255, 255, 255, 0.58);
  box-shadow: var(--shadow-soft);
}

.site-footer {
  padding-top: 19px;
}

@keyframes cover-cat-float {
  0%, 100% { transform: translateY(var(--cover-shift)) rotate(0deg); }
  50% { transform: translateY(calc(var(--cover-shift) - 7px)) rotate(1.2deg); }
}

@keyframes music-orbit {
  to { transform: rotate(360deg); }
}

@keyframes music-bob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-2px) rotate(3deg); }
}

@keyframes cat-sparkle {
  0%, 100% { opacity: 0.34; transform: scale(0.8) rotate(0deg); }
  50% { opacity: 0.95; transform: scale(1.12) rotate(16deg); }
}

@keyframes active-chapter-line {
  from { transform: scaleX(0); transform-origin: left; }
  to { transform: scaleX(1); transform-origin: left; }
}

@media (hover: hover) {
  .quiet-button:hover {
    border-color: transparent;
    background: rgba(255, 255, 255, 0.76);
    color: var(--ink);
    transform: translateY(-1px);
  }

  .music-button:hover {
    background: transparent;
    transform: translateY(-1px) rotate(4deg);
  }

  .music-button:hover .music-disc {
    transform: scale(1.06);
  }

  .primary-button:hover,
  .pagination-next:hover,
  .source-document a:hover {
    background: #314b54;
    box-shadow: 0 12px 23px rgba(37, 52, 59, 0.2);
    transform: translateY(-1px);
  }

  .chapter-button:hover {
    border-color: rgba(126, 165, 173, 0.58);
    color: var(--ink);
    transform: translateY(-1px);
  }

  .cat-card:hover:not(.is-cat-dodge-right):not(.is-cat-dodge-left):not(.is-cat-hug):not(.is-cat-peek):not(.is-cat-step-back):not(.is-cat-deliver):not(.is-cat-wave):not(.is-cat-settle):not(.is-cat-turn):not(.is-cat-shelter):not(.is-cat-listen):not(.is-cat-return) {
    transform: translateY(-4px) rotate(0.4deg);
  }

  .cameo-card:hover:not(.is-cameo-deliver):not(.is-cameo-listen):not(.is-cameo-shy):not(.is-cameo-sweet) {
    background: rgba(255, 255, 255, 0.8);
    transform: translateY(-3px);
  }
}

@media (max-width: 390px) {
  .site-era {
    font-size: 9px;
    letter-spacing: 0.1em;
  }

  .header-actions {
    right: max(14px, env(safe-area-inset-right));
  }

  .signature,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cover-cats img,
  .music-button.is-playing .music-disc,
  .music-button.is-playing .music-disc::after,
  .cat-spark {
    animation: none !important;
  }
}
