:root {
  --ink: #221d44;
  --ink-soft: #4a4370;
  --paper: #faf6ec;
  --paper-warm: #f3ecdb;
  --card: #ffffff;
  --gold: #c2911f;
  --gold-bright: #e0b352;
  --night: #1c1838;
  --night-2: #2c2657;
  --rose: #b34a5e;
  --green: #3d7d52;
  --line: #e5dcc6;
  --radius: 14px;
  --shadow: 0 2px 10px rgba(34, 29, 68, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  font-family: 'Nunito Sans', system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, .wordmark { font-family: 'Fraunces', Georgia, serif; }
h1 { font-size: 2.2rem; line-height: 1.15; margin-bottom: 0.5rem; }
h2 { font-size: 1.5rem; margin: 1.5rem 0 0.8rem; }
h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
a { color: var(--ink); }
main { flex: 1; }
.muted { color: var(--ink-soft); font-weight: 400; }
.small { font-size: 0.85rem; }
.mono { font-family: ui-monospace, Menlo, monospace; font-size: 0.85em; }
.center { text-align: center; }
.prewrap { white-space: pre-wrap; font-family: inherit; }

/* Header */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.9rem clamp(1rem, 4vw, 3rem);
  background: var(--night);
  color: var(--paper);
}
.wordmark { font-size: 1.5rem; font-weight: 700; color: var(--paper); text-decoration: none; }
.wordmark span { color: var(--gold-bright); }
.site-header nav { display: flex; align-items: center; gap: 1.1rem; }
.site-header nav a { color: var(--paper); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.site-header nav a:hover { color: var(--gold-bright); }
.credit-chip {
  background: rgba(224, 179, 82, 0.18); border: 1px solid var(--gold-bright);
  border-radius: 999px; padding: 0.15rem 0.7rem; color: var(--gold-bright) !important;
}
.admin-link { opacity: 0.75; }
.inline-form { display: inline; }
.link-btn {
  background: none; border: none; color: var(--paper); font: inherit; font-weight: 600;
  cursor: pointer; opacity: 0.8;
}
.link-btn:hover { color: var(--gold-bright); }

/* Buttons */
.btn {
  display: inline-block; background: var(--ink); color: var(--paper);
  border: none; border-radius: 999px; padding: 0.6rem 1.5rem;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease;
}
.btn:hover { background: var(--night-2); transform: translateY(-1px); }
.btn-large { font-size: 1.1rem; padding: 0.8rem 2.2rem; }
.btn-small { padding: 0.35rem 1rem; font-size: 0.85rem; }
.btn-full { width: 100%; margin-top: 1.5rem; }
.btn-ghost { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.btn-ghost:hover { background: var(--paper-warm); }
.btn-danger { background: var(--rose); }

/* Hero */
.hero {
  text-align: center; padding: clamp(3rem, 8vw, 6rem) 1.5rem 3rem;
  background: linear-gradient(180deg, var(--night) 0%, var(--night-2) 70%, var(--paper) 100%);
  color: var(--paper);
}
.hero h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); }
.hero-stars { color: var(--gold-bright); letter-spacing: 1.2rem; margin-bottom: 1rem; }
.hero-sub { max-width: 560px; margin: 1rem auto 2rem; font-size: 1.15rem; opacity: 0.92; }
.hero-cta .btn { background: var(--gold-bright); color: var(--night); }
.hero-cta .btn:hover { background: var(--gold); }
.hero-note { display: block; margin-top: 0.8rem; font-size: 0.9rem; opacity: 0.75; }

/* Features / tiers / pricing */
.feature-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem; padding: 2.5rem clamp(1rem, 5vw, 4rem); max-width: 1100px; margin: 0 auto;
}
.feature { background: var(--card); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); }
.tiers-strip, .pricing { text-align: center; padding: 1.5rem clamp(1rem, 5vw, 4rem) 2.5rem; max-width: 1100px; margin: 0 auto; }
.tier-cards, .pack-cards { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: 1.2rem; }
.tier-card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 1.1rem 1.4rem; min-width: 180px; max-width: 220px;
}
.tier-age { font-family: 'Fraunces', serif; font-size: 1.6rem; font-weight: 700; color: var(--gold); }
.tier-label { font-weight: 700; margin-bottom: 0.3rem; }
.tier-card p { font-size: 0.85rem; color: var(--ink-soft); }
.pricing-sub { color: var(--ink-soft); }
.pack-card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 1.6rem 2rem; min-width: 200px;
}
.pack-price { font-family: 'Fraunces', serif; font-size: 2rem; font-weight: 700; color: var(--ink); }
.pack-credits { color: var(--ink-soft); margin-bottom: 1rem; }

/* Layout containers */
.page-narrow { max-width: 720px; margin: 0 auto; padding: 2.5rem 1.2rem 3rem; }
.page-wide { max-width: 1200px; margin: 0 auto; padding: 2rem 1.2rem 3rem; }
.page-sub { color: var(--ink-soft); margin-bottom: 1.5rem; }

/* Auth */
.auth-card {
  max-width: 420px; margin: 3rem auto; background: var(--card);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 2rem;
}
.auth-alt { margin-top: 1rem; font-size: 0.92rem; color: var(--ink-soft); }

/* Forms */
label { display: block; font-weight: 700; font-size: 0.92rem; margin: 0.9rem 0 0; }
input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="search"], select, textarea {
  width: 100%; margin-top: 0.3rem; padding: 0.6rem 0.8rem;
  border: 1.5px solid var(--line); border-radius: 8px; font: inherit; background: #fff;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold-bright); border-color: var(--gold-bright); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.alert {
  background: #fbeaea; border: 1px solid var(--rose); color: var(--rose);
  border-radius: 8px; padding: 0.7rem 1rem; margin: 1rem 0; font-weight: 600;
}
fieldset { border: none; margin-top: 1.8rem; }
legend { font-family: 'Fraunces', serif; font-size: 1.25rem; font-weight: 700; margin-bottom: 0.6rem; }

.field-note {
  background: #fdf6e3; border: 1px solid var(--gold-bright); color: var(--ink);
  border-radius: 8px; padding: 0.5rem 0.9rem; margin-bottom: 0.7rem; font-size: 0.9rem; font-weight: 600;
}
.shake { animation: shake 0.35s ease 2; }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

/* Pickers */
.tier-picker, .style-picker { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.pick-card {
  flex: 1 1 140px; max-width: 200px; background: var(--card); border: 2px solid var(--line);
  border-radius: var(--radius); padding: 0.8rem 1rem; cursor: pointer; margin: 0;
  transition: border-color 0.12s ease;
}
.pick-card:hover { border-color: var(--gold-bright); }
.pick-card input { position: absolute; opacity: 0; }
.pick-card:has(input:checked) { border-color: var(--gold); background: #fdf6e3; }
.pick-age { display: block; font-family: 'Fraunces', serif; font-size: 1.3rem; font-weight: 700; color: var(--gold); }
.pick-label { display: block; font-weight: 700; }
.pick-desc { display: block; font-size: 0.8rem; color: var(--ink-soft); font-weight: 400; }

.toggle-card { display: block; max-width: none; margin-top: 1rem; }
.extra-chip {
  display: inline-block; background: #fdf3d9; color: var(--gold); border: 1px solid var(--gold-bright);
  border-radius: 999px; padding: 0 0.5rem; font-size: 0.72rem; font-weight: 700; vertical-align: middle;
}
.cost-summary {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 0.8rem 1.2rem; margin-top: 1.4rem; font-size: 1.05rem;
}

/* Generation progress */
.gen-progress { text-align: center; padding: 3rem 0; }
.gen-art { font-size: 3rem; color: var(--gold); animation: twinkle 1.6s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.55; transform: scale(0.92); } }
.gen-bar { max-width: 380px; height: 10px; margin: 1.6rem auto; background: var(--paper-warm); border-radius: 999px; overflow: hidden; }
.gen-fill { height: 100%; width: 8%; background: linear-gradient(90deg, var(--gold), var(--gold-bright)); border-radius: 999px; transition: width 0.6s ease; }

/* Reader */
.reader {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: clamp(1.5rem, 5vw, 3rem); margin-top: 1rem;
}
.story-cover {
  display: block; width: 100%; max-width: 560px; margin: 0 auto 1.4rem;
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.story-figure { margin: 1.4rem 0; text-align: center; }
.story-figure img { max-width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.asset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0.8rem; margin-bottom: 1.5rem; }
.asset-card { margin: 0; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 0.5rem; }
.asset-card img { width: 100%; border-radius: 8px; }
.asset-card figcaption { font-size: 0.75rem; color: var(--ink-soft); padding-top: 0.3rem; }
.story-title { text-align: center; font-size: clamp(1.7rem, 4vw, 2.4rem); margin-bottom: 0.6rem; }
.dedication { text-align: center; font-style: italic; color: var(--ink-soft); margin-bottom: 1rem; }
.font-controls { text-align: right; font-size: 0.8rem; color: var(--ink-soft); margin-bottom: 0.8rem; }
.font-controls button {
  border: 1.5px solid var(--line); background: #fff; border-radius: 6px;
  padding: 0.15rem 0.5rem; cursor: pointer; font: inherit; margin-left: 0.3rem;
}
.story-text { font-size: 1.15rem; line-height: 1.85; }
.story-text p { margin-bottom: 1.1em; }
.story-meta { text-align: center; margin-top: 2rem; color: var(--gold); font-weight: 700; font-size: 0.9rem; }
.reader-actions { display: flex; gap: 0.8rem; justify-content: center; margin-top: 1.5rem; }

/* Library */
.library-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.1rem; margin-top: 1.5rem; }
.book-card {
  display: flex; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  text-decoration: none; overflow: hidden; transition: transform 0.12s ease;
}
.book-card:hover { transform: translateY(-3px); }
.book-spine { width: 12px; background: linear-gradient(180deg, var(--gold), var(--gold-bright)); }
.book-card.status-held .book-spine, .book-card.status-failed .book-spine { background: var(--rose); }
.book-body { padding: 1rem 1.1rem; }
.book-meta { font-size: 0.8rem; color: var(--ink-soft); }
.book-status { font-size: 0.8rem; font-weight: 700; color: var(--gold); margin-top: 0.4rem; }

/* Public stories on the home page */
.public-stories { text-align: center; padding: 1.5rem clamp(1rem, 5vw, 4rem) 2.5rem; max-width: 1100px; margin: 0 auto; }
.public-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.1rem; margin-top: 1.4rem; }
.public-card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  text-decoration: none; overflow: hidden; text-align: left; transition: transform 0.12s ease;
}
.public-card:hover { transform: translateY(-3px); }
.public-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.public-card-noimg { aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; color: var(--gold-bright); background: var(--night-2); }
.public-card-body { padding: 0.9rem 1.1rem; }
.public-by { font-size: 0.8rem; color: var(--gold); font-weight: 700; margin-top: 0.3rem; }
.public-note { text-align: center; font-size: 0.85rem; color: var(--ink-soft); margin-top: 0.8rem; }

/* Story settings dialog */
.story-settings {
  border: none; border-radius: var(--radius); box-shadow: 0 10px 40px rgba(34,29,68,0.3);
  padding: 1.6rem 1.8rem; max-width: 520px; width: calc(100vw - 2rem);
  margin: auto; /* the global reset removes the UA's dialog centering */
}
.story-settings::backdrop { background: rgba(28, 24, 56, 0.55); }
.story-settings h2 { margin-top: 0; }
.story-settings h3 { margin-top: 1.4rem; }
.switch-row { display: flex; gap: 0.8rem; align-items: flex-start; font-weight: 400; margin-top: 0.8rem; }
.switch-row input { width: auto; margin-top: 0.3rem; transform: scale(1.4); accent-color: var(--gold); }
.invite-form { display: flex; gap: 0.6rem; margin-top: 0.5rem; }
.invite-form input { margin: 0; }
.invite-link { display: flex; gap: 0.6rem; margin-top: 0.7rem; }
.invite-link input { margin: 0; font-family: ui-monospace, Menlo, monospace; font-size: 0.8rem; background: var(--paper-warm); }
.invite-list { list-style: none; margin-top: 0.8rem; }
.invite-list li { display: flex; justify-content: space-between; align-items: center; gap: 0.6rem; padding: 0.45rem 0; border-bottom: 1px solid var(--line); font-size: 0.9rem; flex-wrap: wrap; }
.link-btn-dark { background: none; border: none; color: var(--ink-soft); font: inherit; font-size: 0.85rem; font-weight: 700; cursor: pointer; text-decoration: underline; }
.link-btn-dark:hover { color: var(--ink); }

/* Reading scroll tool */
.scroll-tool {
  position: fixed; right: 0.9rem; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
  background: var(--night); border-radius: 999px; padding: 0.6rem 0.45rem;
  box-shadow: 0 4px 16px rgba(28,24,56,0.35); z-index: 40;
}
.scroll-tool button {
  background: none; border: none; color: var(--paper); font-size: 0.95rem;
  cursor: pointer; width: 32px; height: 32px; border-radius: 50%; line-height: 1;
}
.scroll-tool button:hover { background: var(--night-2); }
.scroll-tool button.active { background: var(--gold); color: var(--night); }
.scroll-pct { color: var(--gold-bright); font-size: 0.7rem; font-weight: 700; }
.continue-chip {
  position: fixed; bottom: 1.4rem; left: 50%; transform: translateX(-50%);
  background: var(--night); color: var(--paper); border: 1px solid var(--gold-bright);
  border-radius: 999px; padding: 0.55rem 1.2rem; font: inherit; font-size: 0.9rem; font-weight: 700;
  cursor: pointer; box-shadow: 0 4px 16px rgba(28,24,56,0.35); z-index: 40;
}
.continue-chip:hover { background: var(--night-2); }
.shared-heading { margin-top: 2.5rem; }
.shared-spine { background: linear-gradient(180deg, var(--night-2), var(--ink-soft)) !important; }

/* Footer */
.site-footer {
  text-align: center; padding: 1.6rem; background: var(--night); color: var(--paper);
  font-size: 0.9rem; opacity: 0.95; margin-top: 3rem;
}

/* ---------- Admin ---------- */
.admin h1 { margin-bottom: 0.8rem; }
.admin-nav { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-bottom: 1.6rem; border-bottom: 2px solid var(--line); padding-bottom: 0.7rem; }
.admin-nav a {
  text-decoration: none; font-weight: 700; font-size: 0.9rem; padding: 0.3rem 0.85rem;
  border-radius: 999px; color: var(--ink-soft);
}
.admin-nav a:hover { background: var(--paper-warm); color: var(--ink); }
.stat-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 1.5rem; }
.stat { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 0.8rem 1.3rem; min-width: 110px; }
.stat-n { font-family: 'Fraunces', serif; font-size: 1.6rem; font-weight: 700; }
.stat-l { font-size: 0.78rem; color: var(--ink-soft); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.stat.warn .stat-n { color: var(--rose); }
.stat.gold .stat-n { color: var(--gold); }
.admin-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
@media (max-width: 860px) { .admin-cols { grid-template-columns: 1fr; } }
.table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); font-size: 0.9rem; }
.table th, .table td { text-align: left; padding: 0.55rem 0.8rem; border-bottom: 1px solid var(--line); }
.table th { background: var(--paper-warm); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; }
.table tr:last-child td { border-bottom: none; }
.table.kv th { width: 160px; background: none; text-transform: none; font-size: 0.9rem; vertical-align: top; }
.table input[type="text"], .table input[type="number"] { padding: 0.3rem 0.5rem; margin: 0; }
.badge {
  display: inline-block; border-radius: 999px; padding: 0.1rem 0.6rem;
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em;
}
.badge-ready, .badge-paid, .badge-active { background: #e3f2e8; color: var(--green); }
.badge-pending, .badge-generating, .badge-moderating, .badge-illustrating, .badge-created { background: #fdf3d9; color: var(--gold); }
.badge-held, .badge-failed, .badge-disabled, .badge-expired { background: #fbeaea; color: var(--rose); }
.filter-row { display: flex; gap: 0.4rem; margin-bottom: 1rem; flex-wrap: wrap; }
.filter-row a { text-decoration: none; font-weight: 700; font-size: 0.85rem; padding: 0.25rem 0.8rem; border-radius: 999px; color: var(--ink-soft); border: 1.5px solid var(--line); }
.filter-row a.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.admin-search { display: flex; gap: 0.6rem; max-width: 420px; margin-bottom: 1rem; }
.admin-form { max-width: 480px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.2rem 1.4rem 1.4rem; margin-bottom: 1.5rem; }
.admin-form .btn { margin-top: 1rem; }
.settings-form { max-width: 640px; }
.action-row { display: flex; gap: 0.7rem; flex-wrap: wrap; margin: 0.8rem 0 1.5rem; }
.admin-story-text { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.4rem; font-size: 1rem; }
.tier-editor { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.1rem 1.4rem 1.4rem; margin-bottom: 1.2rem; }
.tier-editor-head { display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; }
.tier-editor-head strong { font-family: 'Fraunces', serif; font-size: 1.2rem; color: var(--gold); }
.tier-editor-head input[type="text"] { flex: 1; min-width: 200px; margin: 0; }
.check-inline { display: flex; align-items: center; gap: 0.35rem; margin: 0; font-size: 0.85rem; white-space: nowrap; }
.check-inline input { width: auto; margin: 0; }

@media (max-width: 640px) {
  .site-header { flex-direction: column; gap: 0.6rem; }
  .form-grid { grid-template-columns: 1fr; }
}

/* ---------- v2 additions ---------- */
.notice { background: #e3f2e8; border: 1px solid var(--green); color: var(--green); border-radius: 8px; padding: 0.7rem 1rem; margin: 1rem 0; font-weight: 600; }
.announcement { background: var(--gold-bright); color: var(--night); text-align: center; padding: 0.6rem 1rem; font-weight: 700; }
.env-banner { background: var(--rose); color: #fff; text-align: center; padding: 0.3rem; font-size: 0.8rem; font-weight: 700; }
.footer-links { margin-top: 0.5rem; font-size: 0.85rem; } .footer-links a { color: var(--gold-bright); text-decoration: none; }
.check-row { display: flex; gap: 0.5rem; align-items: flex-start; font-weight: 400; font-size: 0.9rem; margin-top: 0.9rem; }
.check-row input { width: auto; margin-top: 0.25rem; accent-color: var(--gold); }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0 0.6rem; margin-bottom: 0.6rem; }
.check-grid .check-row { margin-top: 0.3rem; }
.sub-h { font-size: 1.05rem; margin: 1.2rem 0 0.4rem; }
.pick-card.disabled { opacity: 0.45; pointer-events: none; }
.pick-card.locked { opacity: 0.6; pointer-events: none; }
.child-picker { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-bottom: 0.8rem; }
.photo-block { margin-top: 1.4rem; background: var(--paper-warm); border-radius: var(--radius); padding: 1rem 1.2rem; }
.photo-block input[type="file"] { margin-top: 0.3rem; }
.btn-gold { background: var(--gold); color: var(--night); } .btn-gold:hover { background: var(--gold-bright); }
.legal h2 { font-size: 1.15rem; margin-top: 1.4rem; } .legal p { margin-bottom: 0.6rem; }
.plan-card.current { border: 2px solid var(--gold); }

/* Audio player */
.audio-player { display: flex; align-items: center; gap: 0.9rem; background: var(--night); color: var(--paper); border-radius: var(--radius); padding: 0.8rem 1rem; margin: 0.6rem 0 1.2rem; }
.audio-btn { width: 44px; height: 44px; border-radius: 50%; border: none; background: var(--gold-bright); color: var(--night); font-size: 1.1rem; cursor: pointer; flex-shrink: 0; }
.audio-info { flex: 1; } .audio-info .muted { color: #bfb9d9; }
.audio-bar { height: 6px; background: var(--night-2); border-radius: 999px; margin-top: 0.4rem; overflow: hidden; }
.audio-fill { height: 100%; width: 0; background: var(--gold-bright); transition: width 0.4s ease; }
.story-text p.reading { background: #fdf6e3; border-radius: 8px; box-shadow: 0 0 0 6px #fdf6e3; }

/* Books & interactive */
.toc { background: var(--paper-warm); border-radius: var(--radius); padding: 1rem 1.4rem; margin: 0.6rem 0 1.4rem; }
.toc ol { padding-left: 1.2rem; } .toc li { margin: 0.25rem 0; }
.chapter-title { font-size: 1.4rem; margin: 2.2rem 0 0.8rem; text-align: center; }
.writing-note { text-align: center; padding: 1rem; background: var(--paper-warm); border-radius: 8px; }
.chosen-path { color: var(--gold); font-weight: 700; font-size: 0.95rem; }
.choices { background: var(--paper-warm); border-radius: var(--radius); padding: 1.2rem 1.4rem; margin-top: 1.5rem; }
.choices h3 { margin-bottom: 0.6rem; } .choice-btn { display: block; width: 100%; text-align: left; margin: 0.5rem 0; }
.the-end { text-align: center; font-family: 'Fraunces', serif; font-size: 1.4rem; color: var(--gold); margin-top: 2rem; }
.audio-player .btn-ghost { color: var(--paper); border-color: var(--paper); }
.audio-player .btn-ghost:hover { background: var(--night-2); }
.chapter-edit { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 0.7rem 1rem; margin-bottom: 0.6rem; }
.chapter-edit summary { cursor: pointer; font-size: 0.95rem; }
.chapter-edit .admin-form { box-shadow: none; padding: 0.4rem 0 0; margin-bottom: 0.4rem; }
.book-thumb { width: 86px; object-fit: cover; flex-shrink: 0; }
