:root {
  color-scheme: dark;
  --bg: #0b0708;
  --bg-2: #170d10;
  --paper: #f4e2c0;
  --paper-dim: #caae80;
  --blood: #b80f2f;
  --blood-hot: #ff315c;
  --gold: #d6a846;
  --ink: #12090b;
  --muted: #9f8a7a;
  --line: rgba(244, 226, 192, 0.16);
  --glass: rgba(32, 15, 18, 0.72);
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Trebuchet MS", "Gill Sans", Verdana, sans-serif;
  --reader-size: clamp(1.05rem, 1.4vw, 1.23rem);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 16% 20%, rgba(184, 15, 47, 0.28), transparent 32rem),
    radial-gradient(circle at 86% 6%, rgba(214, 168, 70, 0.13), transparent 26rem),
    linear-gradient(120deg, var(--bg), #13090c 45%, #070405);
  color: var(--paper);
  font-family: var(--sans);
  line-height: 1.6;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(244, 226, 192, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 226, 192, 0.025) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 88%);
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

.ember-field {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.55;
  background:
    radial-gradient(circle at 42% 75%, rgba(255, 49, 92, 0.2), transparent 16rem),
    conic-gradient(from 90deg at 50% 55%, transparent, rgba(184, 15, 47, 0.12), transparent 38%);
  filter: blur(0.2px);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.2rem 1.25rem;
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand {
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--paper-dim);
}

.brand-mark {
  display: grid;
  width: 2.4rem;
  height: 2.4rem;
  place-items: center;
  border: 1px solid rgba(214, 168, 70, 0.55);
  border-radius: 50%;
  color: var(--gold);
  box-shadow: 0 0 34px rgba(184, 15, 47, 0.45);
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.9rem;
}

.nav-links a:hover,
.nav-form button:hover {
  color: var(--paper);
}

.nav-form {
  margin: 0;
}

.nav-form button {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 0;
  font-size: 0.9rem;
}

.hero {
  min-height: auto;
  border-bottom: 1px solid var(--line);
}

.hero-grid,
main,
footer {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.42fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(2.5rem, 6vw, 5rem) 0;
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--gold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.74rem;
  font-weight: 700;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--serif);
  line-height: 0.95;
  letter-spacing: -0.055em;
}

h1 {
  max-width: 18ch;
  font-size: clamp(2.6rem, 6vw, 5.8rem);
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 3.2rem);
}

h3 {
  font-size: 1.35rem;
  letter-spacing: -0.025em;
}

.lede {
  max-width: 46rem;
  margin: 1.5rem 0 0;
  color: var(--paper-dim);
  font-size: clamp(1.06rem, 2vw, 1.28rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.1rem;
  border: 1px solid rgba(244, 226, 192, 0.28);
  border-radius: 999px;
  color: var(--paper);
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
  border-color: rgba(244, 226, 192, 0.62);
}

.button.primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--blood), #6f071a);
  box-shadow: 0 12px 38px rgba(184, 15, 47, 0.32);
}

.button.ghost {
  background: rgba(244, 226, 192, 0.05);
}

.button.patreon {
  border-color: rgba(255, 66, 77, 0.45);
  background: #ff424d;
  color: #fff7f4;
  box-shadow: 0 12px 38px rgba(255, 66, 77, 0.22);
}

.contract-card {
  position: relative;
  overflow: hidden;
  min-height: 24rem;
  padding: 1.4rem;
  border: 1px solid rgba(214, 168, 70, 0.32);
  border-radius: 2rem;
  background:
    linear-gradient(155deg, rgba(244, 226, 192, 0.09), transparent 38%),
    var(--glass);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.contract-card::before {
  position: absolute;
  inset: 1rem;
  content: "";
  border: 1px solid rgba(244, 226, 192, 0.1);
  border-radius: 1.35rem;
  pointer-events: none;
}

.card-kicker,
.next-title {
  position: relative;
  z-index: 1;
  color: var(--paper-dim);
}

.countdown {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 2rem 0 1rem;
}

.countdown span {
  display: grid;
  min-height: 5.4rem;
  place-items: center;
  border: 1px solid rgba(244, 226, 192, 0.16);
  border-radius: 1.1rem;
  background: rgba(0, 0, 0, 0.2);
  color: var(--paper);
  font-family: var(--serif);
  font-size: 2.2rem;
}

.sigil {
  position: absolute;
  right: -5rem;
  bottom: -5rem;
  width: 19rem;
  height: 19rem;
  border: 1px solid rgba(255, 49, 92, 0.35);
  border-radius: 50%;
  animation: turn 22s linear infinite;
}

.sigil span {
  position: absolute;
  inset: 12%;
  border: 1px solid rgba(214, 168, 70, 0.24);
  transform: rotate(var(--turn, 0deg));
}

.sigil span:nth-child(2) {
  --turn: 60deg;
}

.sigil span:nth-child(3) {
  --turn: 120deg;
}

@keyframes turn {
  to {
    transform: rotate(360deg);
  }
}

main {
  display: grid;
  gap: 4rem;
  padding: 3rem 0 5rem;
}

.section-heading {
  max-width: 48rem;
  margin-bottom: 1.4rem;
}

.section-heading p,
.reader-meta,
#reader-meta {
  color: var(--paper-dim);
}

#chapter-start {
  scroll-margin-top: 1rem;
}

.reader-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: baseline;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

article.reader > .reader-breadcrumb {
  padding: clamp(1rem, 3vw, 1.35rem) clamp(1.2rem, 4vw, 2.4rem) 0.85rem;
  border-bottom: 1px solid var(--line);
}

.reader-breadcrumb a {
  color: var(--paper-dim);
  text-decoration: none;
}

.reader-breadcrumb a:hover {
  color: var(--paper);
}

.hub-shell {
  padding-top: 1.5rem;
}

.hub-codex {
  min-height: 24rem;
  padding: clamp(1.2rem, 4vw, 2.4rem);
}

.hub-codex .eyebrow {
  margin: 0 0 0.35rem;
}

.hub-codex h2 {
  margin: 0 0 0.5rem;
}

.hub-codex .reader-meta {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.hub-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1rem 0 1.25rem;
}

.hub-tag {
  padding: 0.28rem 0.7rem;
  border: 1px solid rgba(214, 168, 70, 0.28);
  border-radius: 999px;
  color: var(--paper-dim);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hub-synopsis p {
  margin: 0 0 1rem;
  color: var(--paper-dim);
  font-size: var(--reader-size);
  line-height: 1.75;
}

.hub-synopsis p:last-child {
  margin-bottom: 0;
}

.reader-shell {
  display: grid;
  grid-template-columns: minmax(18rem, 24rem) minmax(0, 1fr);
  gap: 1.2rem;
  align-items: start;
}

.reader-sidebar,
.reader,
.support,
.comments {
  border: 1px solid var(--line);
  border-radius: 1.8rem;
  background: rgba(12, 7, 8, 0.72);
  box-shadow: var(--shadow);
}

.comments,
.support {
  padding: clamp(1.2rem, 4vw, 2.4rem);
  display: grid;
  grid-template-columns: 0.7fr 1fr;
  gap: 2rem;
}

.comments-note,
.support-card {
  align-self: center;
  color: var(--paper-dim);
}

.reader-sidebar {
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 1rem;
  padding: 1rem;
  max-height: calc(100vh - 2rem);
  overflow: hidden;
}

.sidebar-top {
  flex: 0 0 auto;
}

.sidebar-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  margin-top: 0.15rem;
  padding-right: 0.35rem;
}

.sidebar-scroll,
.reader.hub-codex {
  scrollbar-width: thin;
  scrollbar-color: rgba(184, 15, 47, 0.72) rgba(244, 226, 192, 0.08);
}

.sidebar-scroll::-webkit-scrollbar,
.reader.hub-codex::-webkit-scrollbar {
  width: 0.65rem;
}

.sidebar-scroll::-webkit-scrollbar-track,
.reader.hub-codex::-webkit-scrollbar-track {
  margin: 0.75rem 0;
  border-radius: 999px;
  background: rgba(244, 226, 192, 0.06);
}

.sidebar-scroll::-webkit-scrollbar-thumb,
.reader.hub-codex::-webkit-scrollbar-thumb {
  border: 2px solid rgba(12, 7, 8, 0.85);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(214, 168, 70, 0.72), rgba(184, 15, 47, 0.82));
  background-clip: padding-box;
}

.sidebar-scroll::-webkit-scrollbar-thumb:hover,
.reader.hub-codex::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(214, 168, 70, 0.92), rgba(255, 49, 92, 0.88));
  background-clip: padding-box;
}

.reader-sidebar .sidebar-patreon {
  flex: 0 0 auto;
}

.reader-sidebar h2 {
  margin-bottom: 0.4rem;
}

.sidebar-note {
  margin: 0 0 1rem;
  color: var(--paper-dim);
  font-size: 0.92rem;
}

.search-label {
  display: grid;
  gap: 0.4rem;
  color: var(--paper-dim);
  font-size: 0.86rem;
}

.search-label input {
  width: 100%;
  margin-bottom: 1rem;
  border: 1px solid rgba(244, 226, 192, 0.18);
  border-radius: 0.8rem;
  background: rgba(0, 0, 0, 0.24);
  color: var(--paper);
  padding: 0.75rem 0.85rem;
}

.volume-group {
  margin-bottom: 0.7rem;
  border: 1px solid rgba(244, 226, 192, 0.12);
  border-radius: 1rem;
  background: rgba(244, 226, 192, 0.035);
}

.volume-group summary {
  padding: 0.8rem 0.9rem;
  color: var(--paper);
  cursor: pointer;
}

.volume-chapters {
  display: grid;
  gap: 0.45rem;
  padding: 0 0.55rem 0.7rem;
}

.sidebar-patreon {
  display: block;
  margin-top: 1rem;
  padding: 0.9rem;
  border: 1px solid rgba(255, 66, 77, 0.35);
  border-radius: 1rem;
  background: rgba(255, 66, 77, 0.13);
  color: #ffd3d0;
  text-decoration: none;
}

.chapter-tab {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.65rem;
  align-items: center;
  width: 100%;
  padding: 0.75rem;
  border: 1px solid rgba(244, 226, 192, 0.12);
  border-radius: 0.8rem;
  background: rgba(244, 226, 192, 0.045);
  color: var(--paper);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.chapter-tab:hover,
.chapter-tab.is-active {
  border-color: rgba(255, 49, 92, 0.42);
  background: rgba(184, 15, 47, 0.16);
}

.chapter-tab:disabled,
.chapter-tab-locked {
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.68;
}

.chapter-number {
  display: grid;
  width: 2.2rem;
  height: 2.2rem;
  place-items: center;
  border-radius: 50%;
  background: rgba(214, 168, 70, 0.13);
  color: var(--gold);
  font-size: 0.82rem;
}

.chapter-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chapter-lock {
  color: var(--muted);
  font-size: 0.78rem;
}

.reader {
  overflow: hidden;
  transition: opacity 0.15s ease;
}

article.reader.is-loading {
  opacity: 0.72;
  pointer-events: none;
}

.reader.hub-codex {
  overflow: auto;
}

.hub-synopsis {
  max-width: 75ch;
}

.reader-heading {
  padding: clamp(1.2rem, 4vw, 2.4rem);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 10% 20%, rgba(184, 15, 47, 0.22), transparent 18rem),
    rgba(244, 226, 192, 0.035);
}

.reader-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.2rem;
}

.control-button {
  min-height: 2.45rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid rgba(244, 226, 192, 0.2);
  border-radius: 999px;
  background: rgba(244, 226, 192, 0.06);
  color: var(--paper);
  cursor: pointer;
}

.control-button:hover {
  border-color: rgba(244, 226, 192, 0.55);
}

.chapter-body {
  max-width: 75ch;
  padding: clamp(1.2rem, 4vw, 3rem);
  color: #f7e8ca;
  font-family: var(--serif);
  font-size: var(--reader-size);
  line-height: 1.88;
}

.chapter-body.is-large {
  font-size: clamp(1.18rem, 1.75vw, 1.4rem);
}

.chapter-body h3 {
  margin-bottom: 2rem;
  font-size: 2rem;
}

.chapter-body p {
  margin: 0 0 1.3rem;
}

.chapter-body .chat-line {
  margin-left: 1rem;
  padding-left: 1rem;
  border-left: 2px solid rgba(214, 168, 70, 0.45);
  color: var(--paper-dim);
  font-family: var(--sans);
}

.chapter-bottom-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: stretch;
  padding: clamp(1rem, 3vw, 1.75rem) clamp(1.2rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
  background: rgba(244, 226, 192, 0.02);
}

.chapter-nav-slot {
  display: flex;
  min-width: 0;
}

.chapter-nav-slot--prev {
  justify-content: flex-start;
}

.chapter-nav-slot--next {
  justify-content: flex-end;
}

.chapter-nav-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  max-width: 100%;
  min-height: auto;
  padding: 0.85rem 1.15rem;
  text-align: left;
  white-space: normal;
}

.chapter-nav-btn--next {
  align-items: flex-end;
  text-align: right;
}

.chapter-nav-direction {
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--paper-dim);
}

.chapter-nav-meta {
  font-family: var(--serif);
  font-size: 0.98rem;
  line-height: 1.35;
  color: var(--paper);
}

.chapter-nav-empty {
  display: block;
  min-height: 1px;
}

.comments-panel {
  display: grid;
  gap: 1.2rem;
}

.comment-form {
  display: grid;
  gap: 0.9rem;
}

.comment-form label {
  display: grid;
  gap: 0.4rem;
  color: var(--paper-dim);
  font-size: 0.92rem;
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  border: 1px solid rgba(244, 226, 192, 0.18);
  border-radius: 0.9rem;
  background: rgba(0, 0, 0, 0.24);
  color: var(--paper);
  padding: 0.85rem 0.95rem;
}

.comment-form textarea {
  resize: vertical;
}

.comment-list {
  display: grid;
  gap: 0.8rem;
}

.comment-card {
  padding: 0.95rem;
  border: 1px solid rgba(244, 226, 192, 0.12);
  border-radius: 1rem;
  background: rgba(244, 226, 192, 0.045);
}

.comment-card header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.4rem;
  color: var(--paper-dim);
  font-size: 0.86rem;
}

.comment-card p {
  margin: 0;
}

.comment-login-prompt {
  padding: 1rem;
  border: 1px solid rgba(244, 226, 192, 0.12);
  border-radius: 1rem;
  background: rgba(244, 226, 192, 0.045);
  color: var(--paper-dim);
}

.auth-hero {
  border-bottom: 0;
}

.auth-main {
  min-height: calc(100vh - 5rem);
  display: grid;
  place-items: center;
  padding-top: 2rem;
}

.auth-card {
  width: min(44rem, 100%);
  padding: clamp(1.3rem, 4vw, 2.6rem);
  border: 1px solid var(--line);
  border-radius: 1.8rem;
  background: rgba(12, 7, 8, 0.78);
  box-shadow: var(--shadow);
}

.auth-card h1 {
  max-width: 12ch;
  font-size: clamp(2.5rem, 7vw, 5.4rem);
}

.auth-form {
  display: grid;
  gap: 0.95rem;
  margin-top: 1.5rem;
}

.auth-form label {
  display: grid;
  gap: 0.4rem;
  color: var(--paper-dim);
  font-size: 0.92rem;
}

.auth-form input {
  width: 100%;
  border: 1px solid rgba(244, 226, 192, 0.18);
  border-radius: 0.9rem;
  background: rgba(0, 0, 0, 0.24);
  color: var(--paper);
  padding: 0.85rem 0.95rem;
}

.auth-notice {
  margin: 1.2rem 0 0;
  padding: 0.85rem 0.95rem;
  border-radius: 0.9rem;
}

.auth-notice.success {
  border: 1px solid rgba(117, 205, 138, 0.35);
  background: rgba(117, 205, 138, 0.12);
  color: #c5f0ce;
}

.auth-notice.error {
  border: 1px solid rgba(255, 66, 77, 0.38);
  background: rgba(255, 66, 77, 0.12);
  color: #ffd3d0;
}

.auth-switch {
  color: var(--paper-dim);
}

.auth-switch a {
  color: var(--gold);
}

.admin-main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
  display: grid;
  gap: 1.5rem;
}

.admin-card {
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: var(--glass);
  box-shadow: var(--shadow);
}

.admin-card h1 {
  margin: 0.35rem 0 0.75rem;
}

.admin-card code {
  color: var(--gold);
}

.admin-volume {
  margin-top: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: rgba(0, 0, 0, 0.18);
}

.admin-volume summary {
  cursor: pointer;
  padding: 1rem 1.1rem;
  font-weight: 700;
}

.admin-chapter-list {
  display: grid;
  gap: 0.85rem;
  padding: 0 1rem 1rem;
}

.admin-chapter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.02);
}

.admin-chapter-copy strong {
  display: block;
}

.admin-chapter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: flex-end;
  align-items: end;
}

.admin-publish-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: end;
}

.admin-date-label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--paper-dim);
}

.admin-date-label input {
  min-width: 15rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  background: rgba(0, 0, 0, 0.25);
  color: var(--paper);
}

.admin-analytics .admin-section-title {
  margin: 1.75rem 0 0.85rem;
  font-size: 1.05rem;
}

.admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.admin-stat {
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.03);
}

.admin-stat-label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.admin-stat-value {
  display: block;
  margin: 0.35rem 0 0.2rem;
  font-size: 1.85rem;
  line-height: 1.1;
  color: var(--gold);
}

.admin-stat-meta {
  display: block;
  font-size: 0.82rem;
  color: var(--paper-dim);
}

.admin-chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 0.35rem;
  height: 9rem;
  padding: 0.5rem 0;
}

.admin-chart-bar {
  flex: 1;
  min-width: 0;
  height: var(--bar-height, 4%);
  min-height: 4px;
  border-radius: 0.35rem 0.35rem 0 0;
  background: linear-gradient(180deg, var(--gold), rgba(201, 162, 77, 0.35));
  position: relative;
}

.admin-chart-bar:hover .admin-chart-tooltip,
.admin-chart-bar:focus-within .admin-chart-tooltip {
  opacity: 1;
}

.admin-chart-tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.35rem);
  transform: translateX(-50%);
  padding: 0.35rem 0.5rem;
  border-radius: 0.35rem;
  background: rgba(0, 0, 0, 0.85);
  color: var(--paper);
  font-size: 0.72rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  z-index: 2;
}

.admin-chart-labels {
  display: flex;
  gap: 0.35rem;
  margin-top: 0.35rem;
}

.admin-chart-labels span {
  flex: 1;
  min-width: 0;
  font-size: 0.68rem;
  color: var(--muted);
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-top-table-wrap {
  margin-top: 0.5rem;
  overflow-x: auto;
}

.admin-top-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.admin-top-table th,
.admin-top-table td {
  padding: 0.55rem 0.65rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.admin-top-table th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.admin-top-table a {
  color: var(--paper);
  text-decoration: none;
}

.admin-top-table a:hover {
  color: var(--gold);
}

footer {
  padding: 2rem 0 4rem;
  color: var(--muted);
}

@media (max-width: 880px) {
  .hero-grid,
  .comments,
  .support {
    grid-template-columns: 1fr;
  }

  .reader-shell {
    grid-template-columns: 1fr;
  }

  .reader-sidebar {
    position: static;
    max-height: none;
  }

  .chapter-bottom-nav {
    grid-template-columns: 1fr;
  }

  .chapter-nav-slot--next {
    justify-content: flex-start;
  }

  .chapter-nav-btn--next {
    align-items: flex-start;
    text-align: left;
  }
}

@media (max-width: 620px) {
  .topbar,
  .nav-links {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    min-height: auto;
  }

  .countdown {
    grid-template-columns: 1fr;
  }
}
