:root {
  --bg: #000;
  --text: #f7f7f7;
  --muted: #929292;
  --border: #f7f7f7;
  --selection: #ffff00;
  --read: #ffff00;
  --panel-bg: #050505;
  --soft-line: rgba(255, 255, 255, .22);
}

html[data-theme="light"] {
  --bg: #f4f1ea;
  --text: #111;
  --muted: #5d5d5d;
  --border: #111;
  --selection: #8f7900;
  --read: #7c6900;
  --panel-bg: #fffdf8;
  --soft-line: rgba(0, 0, 0, .22);
}

html[data-theme="light"] .chapter-status-tag {
  background: #000;
  color: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .16);
}

html[data-theme="light"] .continue-button.is-coming-soon-action {
  background: #000;
  color: #fff;
  border-color: #000;
}

html[data-theme="light"] .continue-button.is-coming-soon-action .continue-detail {
  color: #ccc;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-width: 100%;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
}

body {
  min-height: 100svh;
  font-family: "Crimson Pro", Georgia, "Times New Roman", serif;
}

a, button {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.read-shell {
  width: min(100%, 1600px);
  min-height: 100svh;
  margin: 0 auto;
  padding: clamp(1.25rem, 3vw, 2.75rem);
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 2.2vh, 1.8rem);
}

.read-topbar {
  min-height: 2.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.read-kicker {
  margin: 0;
  color: var(--muted);
  font-size: clamp(.85rem, 1.2vw, 1rem);
  letter-spacing: .025em;
}

.pixel-link, .menu-select, .chapter-option, .mobile-volume-tab, .mobile-chapter-option, .continue-button, .mobile-synopsis-details summary {
  font-family: "Tilt Warp", sans-serif;
}

.pixel-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  color: var(--text);
  text-decoration: none;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
}

.pixel-link img {
  width: 18px;
  height: auto;
  opacity: 0;
  image-rendering: pixelated;
}

.pixel-link:hover, .pixel-link:focus-visible {
  color: var(--selection);
  outline: none;
}

.pixel-link:hover img, .pixel-link:focus-visible img {
  opacity: 1;
}

.desktop-reader-menu {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(280px, 1.02fr) minmax(220px, .72fr) minmax(330px, 1.26fr);
  border: 3px solid var(--border);
  background: var(--panel-bg);
}

.read-panel {
  min-width: 0;
  min-height: 0;
  padding: clamp(1.35rem, 2.4vw, 2.4rem);
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--text) transparent;
}

.read-panel+.read-panel {
  border-left: 3px solid var(--border);
}

.read-panel h1, .read-panel h2, .mobile-reader-menu h1, .mobile-reader-menu h2 {
  margin: 0;
  font-family: "Tilt Warp", sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .035em;
}

.read-panel h1 {
  font-size: clamp(2.1rem, 3vw, 3.8rem);
}

.read-panel h2 {
  font-size: clamp(1.8rem, 2.35vw, 3rem);
}

.synopsis-panel {
  display: flex;
  flex-direction: column;
}

.synopsis-copy {
  margin-top: clamp(1.4rem, 3vh, 2.5rem);
  max-width: 36ch;
  font-size: clamp(1.08rem, 1.45vw, 1.42rem);
  line-height: 1.48;
}

.synopsis-copy p {
  margin: 0 0 1.15em;
}

.synopsis-copy em {
  color: var(--selection);
  font-style: normal;
}

.continue-button {
  width: 100%;
  margin-top: auto;
  padding: 1rem 1.15rem;
  border: 2px solid var(--border);
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: color 100ms ease, border-color 100ms ease, transform 100ms ease;
}

.continue-button:not(:disabled):hover, .continue-button:not(:disabled):focus-visible {
  color: var(--selection);
  border-color: var(--selection);
  transform: translateY(-2px);
  outline: none;
}

.continue-button:disabled {
  opacity: .42;
  cursor: default;
}

.continue-label {
  display: block;
  font-size: clamp(1.1rem, 1.55vw, 1.45rem);
  text-transform: uppercase;
}

.continue-detail {
  display: block;
  margin-top: .25rem;
  color: var(--muted);
  font-size: .78rem;
  font-family: "Tilt Warp", sans-serif;
}

.volume-list, .chapter-list {
  margin-top: clamp(1.7rem, 4vh, 3rem);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: clamp(.9rem, 2.1vh, 1.5rem);
}

.menu-select, .chapter-option, .mobile-volume-tab, .mobile-chapter-option {
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.menu-select {
  position: relative;
  padding: .35rem .4rem .35rem 2rem;
  font-size: clamp(1.18rem, 1.75vw, 1.65rem);
  text-transform: uppercase;
}

.menu-select::before, .chapter-option::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 18px;
  aspect-ratio: 1;
  background: url("../assets/heart.png") center / contain no-repeat;
  image-rendering: pixelated;
  opacity: 0;
  transform: translateY(-50%);
}

.menu-select:hover, .menu-select:focus-visible, .menu-select[aria-current="true"] {
  color: var(--selection);
  outline: none;
}

.menu-select[aria-current="true"]::before {
  opacity: 1;
}

.chapters-heading-row, .mobile-section-heading-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.active-volume-name {
  font-family: "Tilt Warp", sans-serif;
  color: var(--muted);
  text-transform: uppercase;
  font-size: clamp(.72rem, 1vw, .9rem);
  white-space: nowrap;
}

.chapter-option {
  position: relative;
  width: 100%;
  min-height: 3rem;
  padding: .25rem .25rem .25rem 2rem;
  display: block;
  font-size: clamp(1.05rem, 1.55vw, 1.48rem);
}

.chapter-option:hover, .chapter-option:focus-visible {
  color: var(--selection);
  outline: none;
}

.chapter-main {
  min-width: 0;
}

.chapter-number {
  display: block;
  text-transform: uppercase;
}

.chapter-title {
  display: block;
  margin-top: .15rem;
  color: var(--muted);
  font-family: "Crimson Pro", Georgia, serif;
  font-size: .85em;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chapter-number-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .48rem;
  min-width: 0;
}

.chapter-read-star {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.08rem;
  height: 1.08rem;
  flex: 0 0 auto;
}

.chapter-read-star img, .volume-complete-star {
  display: block;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.chapter-read-star img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.chapter-read-star-light {
  display: none !important;
}

html[data-theme="light"] .chapter-read-star-dark {
  display: none !important;
}

html[data-theme="light"] .chapter-read-star-light {
  display: block !important;
}

.volume-complete-star {
  width: 1.05rem;
  height: 1.05rem;
  object-fit: contain;
  flex: 0 0 auto;
}

.menu-select, .mobile-volume-tab {
  display: inline-flex;
  align-items: center;
  gap: .52rem;
}

.chapter-status-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .3rem .58rem .27rem;
  border-radius: .42rem;
  background: #fff;
  color: #000;
  font-family: "Tilt Warp", sans-serif;
  font-size: clamp(.58rem, .78vw, .72rem);
  line-height: 1;
  letter-spacing: .015em;
  white-space: nowrap;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .16);
}

.chapter-option.is-unreleased, .mobile-chapter-option.is-unreleased {
  cursor: not-allowed;
}

.chapter-option.is-unreleased .chapter-main, .mobile-chapter-option.is-unreleased .chapter-main {
  opacity: .52;
}

.chapter-option.is-unreleased:hover, .chapter-option.is-unreleased:focus-visible, .mobile-chapter-option.is-unreleased:hover, .mobile-chapter-option.is-unreleased:focus-visible {
  color: var(--text);
}

.chapter-option.is-unreleased::before {
  opacity: 0 !important;
}

.mobile-reader-menu {
  display: none;
}

.selection-note {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  z-index: 20;
  transform: translateX(-50%);
  width: min(calc(100vw - 2rem), 34rem);
  padding: .8rem 1rem;
  border: 2px solid var(--border);
  background: var(--panel-bg);
  color: var(--text);
  font-family: "Tilt Warp", sans-serif;
  font-size: .9rem;
  text-align: center;
}

html.reduce-motion * {
  scroll-behavior: auto !important;
  transition-duration: .001ms !important;
  animation-duration: .001ms !important;
}

@media (max-width:900px) {
  body {
    overflow: auto;
  }

  .read-shell {
    padding: 1rem;
    gap: .9rem;
  }

  .read-kicker {
    display: none;
  }

  .desktop-reader-menu {
    display: none;
  }

  .mobile-reader-menu {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-bottom: 2rem;
  }

  .mobile-intro, .mobile-selection-section, .mobile-continue {
    border: 2px solid var(--border);
    background: var(--panel-bg);
  }

  .mobile-intro, .mobile-selection-section {
    padding: 1.1rem;
  }

  .mobile-intro h1 {
    font-size: clamp(2.2rem, 11vw, 3.6rem);
  }

  .mobile-intro > p, .mobile-synopsis-copy {
    font-size: 1.08rem;
    line-height: 1.48;
  }

  .mobile-intro > p {
    margin: .9rem 0 0;
  }

  .mobile-synopsis-copy p {
    margin: .8rem 0 0;
  }

  .mobile-synopsis-details {
    margin-top: 1rem;
    border-top: 1px solid var(--soft-line);
    padding-top: .85rem;
  }

  .mobile-synopsis-details summary {
    color: var(--text);
    cursor: pointer;
    font-size: .95rem;
  }

  .mobile-synopsis-details summary:hover, .mobile-synopsis-details summary:focus-visible {
    color: var(--selection);
    outline: none;
  }

  .mobile-continue {
    margin: 0;
    padding: 1rem 1.1rem;
  }

  .mobile-selection-section h2 {
    font-size: clamp(1.5rem, 7vw, 2.2rem);
  }

  .mobile-volume-tabs {
    margin-top: .85rem;
    display: flex;
    gap: .55rem;
    overflow-x: auto;
    padding: .15rem 0 .45rem;
    scrollbar-width: thin;
  }

  .mobile-volume-tab {
    flex: 0 0 auto;
    padding: .7rem .85rem;
    border: 2px solid var(--border);
    text-transform: uppercase;
    font-size: .95rem;
  }

  .mobile-volume-tab:hover, .mobile-volume-tab:focus-visible, .mobile-volume-tab[aria-current="true"] {
    color: var(--selection);
    border-color: var(--selection);
    outline: none;
  }

  .mobile-chapter-list {
    margin-top: .8rem;
    display: flex;
    flex-direction: column;
  }

  .mobile-chapter-option {
    width: 100%;
    padding: 1rem .1rem;
    display: block;
    border-top: 1px solid var(--soft-line);
    font-size: 1.05rem;
  }

  .mobile-chapter-option:first-child {
    border-top: 0;
  }

  .mobile-chapter-option:hover, .mobile-chapter-option:focus-visible {
    color: var(--selection);
    outline: none;
  }

  .mobile-chapter-option .chapter-title {
    white-space: normal;
  }

  .mobile-chapter-option .chapter-status-tag {
    font-size: .62rem;
    padding: .29rem .5rem .26rem;
    border-radius: .38rem;
  }

  .mobile-chapter-option .chapter-read-star {
    width: 1rem;
    height: 1rem;
  }

  .mobile-volume-tab .volume-complete-star {
    width: .95rem;
    height: .95rem;
  }

  .pixel-link img {
    opacity: 1;
  }
}

@media (max-width:390px) {
  .read-shell {
    padding: .75rem;
  }

  .mobile-intro, .mobile-selection-section {
    padding: .9rem;
  }

  .mobile-chapter-option {
    font-size: .98rem;
  }
}

.info-host-panel {
  position: relative;
}

.panel-view[hidden], .mobile-panel-view[hidden] {
  display: none !important;
}

.chapter-info-view, .mobile-chapter-info {
  position: relative;
  min-height: 0;
}

.chapter-info-view {
  display: flex;
  flex: 1;
  min-height: 0;
  flex-direction: column;
  padding-top: 2.65rem;
}

.chapter-info-back {
  position: absolute;
  top: 0;
  left: 0;
  padding: .1rem .15rem .1rem 0;
  display: inline-flex;
  align-items: center;
  gap: .34rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: "Tilt Warp", sans-serif;
  font-size: .72rem;
  line-height: 1;
  cursor: pointer;
  opacity: .88;
}

.chapter-info-back .back-arrow-icon {
  width: .95rem;
  height: .95rem;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chapter-info-back:hover, .chapter-info-back:focus-visible {
  color: var(--selection);
  opacity: 1;
  outline: none;
}

.chapter-info-eyebrow {
  margin: 0 0 .5rem;
  color: var(--muted);
  font-family: "Tilt Warp", sans-serif;
  font-size: clamp(.7rem, .9vw, .86rem);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.read-panel .chapter-info-title, .mobile-reader-menu .chapter-info-title {
  margin: 0;
  font-family: "Tilt Warp", sans-serif;
  font-weight: 400;
  text-transform: none;
  letter-spacing: .015em;
  overflow-wrap: anywhere;
}

.read-panel .chapter-info-title {
  font-size: clamp(1.8rem, 2.55vw, 3.15rem);
}

.chapter-info-summary {
  margin: clamp(1.15rem, 2.4vh, 1.8rem) 0 0;
  max-width: 38ch;
  font-size: clamp(1.05rem, 1.35vw, 1.34rem);
  line-height: 1.5;
}


.glitch-name {
  position: relative;
  display: inline-block;
  padding: 0 .04em;
  color: #f5f7ff;
  background: linear-gradient(90deg, #9cd6ff 0%, #fff7b3 52%, #9cd6ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 .04em rgba(156, 214, 255, .4), 0 0 .08em rgba(255, 247, 179, .3);
}

.glitch-name::before,
.glitch-name::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .65;
  mix-blend-mode: screen;
}

.glitch-name::before {
  color: rgba(142, 214, 255, .85);
  transform: translate(-.035em, -.018em);
  clip-path: inset(0 0 48% 0);
  animation: glitch-name-top 1.8s steps(2, end) infinite;
}

.glitch-name::after {
  color: rgba(255, 241, 153, .8);
  transform: translate(.04em, .02em);
  clip-path: inset(48% 0 0 0);
  animation: glitch-name-bottom 2.2s steps(2, end) infinite;
}

@keyframes glitch-name-top {
  0%, 100% { transform: translate(-.035em, -.018em); }
  20% { transform: translate(-.055em, -.03em); }
  38% { transform: translate(-.01em, .005em); }
  60% { transform: translate(-.045em, -.012em); }
  82% { transform: translate(-.02em, .01em); }
}

@keyframes glitch-name-bottom {
  0%, 100% { transform: translate(.04em, .02em); }
  25% { transform: translate(.015em, .035em); }
  44% { transform: translate(.06em, .01em); }
  68% { transform: translate(.03em, -.005em); }
  86% { transform: translate(.055em, .025em); }
}

.ink-review-block {
  margin-top: clamp(1.35rem, 3vh, 2.2rem);
  padding-top: clamp(1rem, 2vh, 1.5rem);
  border-top: 1px solid var(--soft-line);
}

.read-panel .ink-review-block h2, .mobile-reader-menu .ink-review-block h2 {
  margin: 0;
  font-family: "Tilt Warp", sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .035em;
}

.read-panel .ink-review-block h2 {
  font-size: clamp(1.15rem, 1.55vw, 1.55rem);
}

.ink-review-quote {
  margin: .8rem 0 0;
  max-width: 38ch;
  font-family: "Crimson Pro", Georgia, "Times New Roman", serif;
  font-size: clamp(1rem, 1.22vw, 1.2rem);
  line-height: 1.46;
}

.ink-review-signature {
  margin: .75rem 0 0;
  font-family: "Crimson Pro", Georgia, "Times New Roman", serif;
  font-size: clamp(.95rem, 1.1vw, 1.08rem);
  font-style: italic;
}

.rainbow-ink {
  display: inline-flex;
  font-family: "Tilt Warp", sans-serif;
  font-style: normal;
  letter-spacing: .015em;
}

.rainbow-ink span:nth-child(1) {
  color: #ff4b4b;
}

.rainbow-ink span:nth-child(2) {
  color: #ffb52e;
}

.rainbow-ink span:nth-child(3) {
  color: #56d86a;
}

.rainbow-ink span:nth-child(4) {
  color: #55aaff;
}

.chapter-option.is-selected, .mobile-chapter-option.is-selected {
  color: var(--selection);
}

.chapter-option.is-selected::before {
  opacity: 1;
}

.chapter-option.is-selected .chapter-title, .mobile-chapter-option.is-selected .chapter-title {
  color: var(--selection);
}

.chapter-option.is-unreleased, .mobile-chapter-option.is-unreleased {
  cursor: pointer;
}

.chapter-option.is-unreleased .chapter-main, .mobile-chapter-option.is-unreleased .chapter-main {
  opacity: .58;
}

.chapter-option.is-unreleased:hover, .chapter-option.is-unreleased:focus-visible, .chapter-option.is-unreleased.is-selected, .mobile-chapter-option.is-unreleased:hover, .mobile-chapter-option.is-unreleased:focus-visible, .mobile-chapter-option.is-unreleased.is-selected {
  color: var(--selection);
}

.chapter-option.is-unreleased.is-selected::before {
  opacity: 1 !important;
}

.chapter-option.is-unreleased.is-selected .chapter-main, .mobile-chapter-option.is-unreleased.is-selected .chapter-main {
  opacity: 1;
}

.continue-button.is-coming-soon-action {
  opacity: 1;
  cursor: default;
  background: #fff;
  color: #000;
  border-color: #fff;
  border-radius: .5rem;
}

.continue-button.is-coming-soon-action .continue-detail {
  color: #333;
}

@media (max-width:900px) {
  .mobile-info-host {
    position: relative;
  }

  .mobile-chapter-info {
    padding-top: 2.8rem;
  }

  .mobile-chapter-info .chapter-info-back {
    top: 0;
    left: 0;
  }

  .mobile-reader-menu .chapter-info-title {
    font-size: clamp(1.8rem, 8vw, 2.75rem);
  }

  .mobile-reader-menu .chapter-info-summary {
    font-size: 1.08rem;
    line-height: 1.48;
  }

  .mobile-reader-menu .ink-review-block h2 {
    font-size: 1.22rem;
  }

  .mobile-reader-menu .ink-review-quote {
    font-size: 1.03rem;
  }

  .mobile-reader-menu .ink-review-signature {
    font-size: 1rem;
  }
}

.chapter-transition {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 2rem;
  background: #000;
  color: #fff;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 220ms ease, visibility 0s linear 220ms;
}

.chapter-transition.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transition: opacity 220ms ease;
}

.chapter-transition-inner {
  width: min(90vw, 720px);
  text-align: center;
  transform: translateY(8px);
  opacity: 0;
  transition: transform 260ms ease 90ms, opacity 260ms ease 90ms;
}

.chapter-transition.is-active .chapter-transition-inner {
  transform: none;
  opacity: 1;
}

.chapter-transition-kicker {
  display: block;
  margin-bottom: .65rem;
  color: #8f8f8f;
  font-family: "Tilt Warp", sans-serif;
  font-size: clamp(.72rem, 1.4vw, .95rem);
  letter-spacing: .09em;
}

.chapter-transition-title {
  display: block;
  font-family: "Tilt Warp", sans-serif;
  font-size: clamp(1.8rem, 5vw, 4rem);
  line-height: .98;
  letter-spacing: .025em;
  overflow-wrap: anywhere;
}

.chapter-transition-gif {
  display: block;
  width: clamp(64px, 9vw, 92px);
  height: auto;
  margin: 1.15rem auto 0;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.chapter-transition-pulse {
  display: inline-flex;
  gap: .38rem;
  margin-top: .85rem;
}

.chapter-transition-pulse i {
  width: .36rem;
  height: .36rem;
  background: currentColor;
  border-radius: 50%;
  opacity: .25;
  animation: chapter-load-pulse 720ms ease-in-out infinite alternate;
}

.chapter-transition-pulse i:nth-child(2) {
  animation-delay: 120ms;
}

.chapter-transition-pulse i:nth-child(3) {
  animation-delay: 240ms;
}

@keyframes chapter-load-pulse {
  to {
    opacity: 1;
    transform: translateY(-2px);
  }
}

html.reduce-motion .chapter-transition, html.reduce-motion .chapter-transition-inner {
  transition: none;
}

html.reduce-motion .chapter-transition-pulse i {
  animation: none;
  opacity: .7;
}

.info-host-panel.has-chapter-comments .continue-button {
  margin-top: clamp(1.45rem, 3vh, 2.35rem);
  flex: 0 0 auto;
}

.chapter-comments {
  margin-top: clamp(1.15rem, 2.3vh, 1.75rem);
  padding-top: clamp(1.05rem, 2.1vh, 1.5rem);
  border-top: 1px solid var(--soft-line);
}

.chapter-comments[hidden] {
  display: none !important;
}

.comments-heading-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.read-panel .comments-title, .mobile-reader-menu .comments-title {
  margin: 0;
  font-family: "Tilt Warp", sans-serif;
  font-size: clamp(1.2rem, 1.55vw, 1.55rem);
  font-weight: 400;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.comments-count, .comment-time, .composer-user, .comment-character-count {
  color: var(--muted);
  font-family: "Tilt Warp", sans-serif;
  font-size: .7rem;
}

.comments-preview-note, .comments-status, .comments-loading, .comments-unavailable {
  margin: .75rem 0 0;
  color: var(--muted);
  font-family: "Tilt Warp", sans-serif;
  font-size: .68rem;
  line-height: 1.45;
}

.comments-preview-note {
  color: var(--selection);
}

.comments-status {
  padding: .65rem .75rem;
  border: 1px solid var(--soft-line);
  color: var(--text);
}

.comments-auth-prompt, .comment-composer {
  margin-top: 1rem;
  padding: .85rem;
  border: 1px solid var(--soft-line);
  background: color-mix(in srgb, var(--panel-bg) 94%, var(--text) 6%);
}

.comments-auth-prompt p {
  margin: 0 0 .7rem;
  font-size: .95rem;
  line-height: 1.35;
}

.comments-primary-button, .comment-action {
  border: 0;
  background: transparent;
  color: var(--text);
  font-family: "Tilt Warp", sans-serif;
  cursor: pointer;
}

.comments-primary-button {
  padding: .62rem .78rem;
  border: 1px solid var(--border);
  font-size: .75rem;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.comments-primary-button:hover, .comments-primary-button:focus-visible, .comment-action:hover, .comment-action:focus-visible, .comment-action.is-active {
  color: var(--selection);
  border-color: var(--selection);
  outline: none;
}

.comments-primary-button:disabled {
  opacity: .45;
  cursor: default;
}

.composer-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .65rem;
}

.composer-label {
  font-family: "Tilt Warp", sans-serif;
  font-size: .83rem;
  font-weight: 400;
  text-transform: uppercase;
}

.comment-textarea {
  display: block;
  width: 100%;
  min-height: 5.2rem;
  resize: vertical;
  padding: .7rem .75rem;
  border: 1px solid var(--soft-line);
  border-radius: 0;
  background: var(--bg);
  color: var(--text);
  font: 1rem/1.35 "Crimson Pro", Georgia, serif;
}

.comment-textarea:focus {
  border-color: var(--selection);
  outline: 1px solid var(--selection);
  outline-offset: 1px;
}

.composer-tools {
  margin-top: .55rem;
}

.comment-tool-button, .gif-remove-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: "Tilt Warp", sans-serif;
  cursor: pointer;
}

.comment-tool-button {
  padding: .32rem .48rem;
  border: 1px solid var(--soft-line);
  font-size: .66rem;
  letter-spacing: .035em;
}

.comment-tool-button:hover, .comment-tool-button:focus-visible, .comment-tool-button[aria-expanded="true"], .gif-remove-button:hover, .gif-remove-button:focus-visible {
  color: var(--selection);
  border-color: var(--selection);
  outline: none;
}

.gif-tool-panel {
  margin-top: .5rem;
  padding: .65rem;
  border: 1px solid var(--soft-line);
  background: var(--bg);
}

.gif-tool-panel[hidden] {
  display: none !important;
}

.gif-picker-panel {
  margin-top: .5rem;
  padding: .65rem;
  border: 1px solid var(--soft-line);
  background: var(--bg);
}

.gif-picker-panel[hidden], .gif-paste-panel[hidden] {
  display: none !important;
}

.gif-provider-tabs {
  display: flex;
  gap: .35rem;
  margin-bottom: .55rem;
}

.gif-provider-tab, .gif-paste-toggle {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: "Tilt Warp", sans-serif;
  cursor: pointer;
}

.gif-provider-tab {
  padding: .36rem .5rem;
  border: 1px solid var(--soft-line);
  font-size: .62rem;
  letter-spacing: .035em;
}

.gif-provider-tab:hover, .gif-provider-tab:focus-visible, .gif-provider-tab.is-active, .gif-paste-toggle:hover, .gif-paste-toggle:focus-visible {
  color: var(--selection);
  border-color: var(--selection);
  outline: none;
}

.gif-search-form {
  display: flex;
  gap: .45rem;
}

.gif-search-input {
  min-width: 0;
  flex: 1 1 auto;
  padding: .55rem .6rem;
  border: 1px solid var(--soft-line);
  border-radius: 0;
  background: var(--panel-bg);
  color: var(--text);
  font: .9rem/1.2 "Crimson Pro", Georgia, serif;
}

.gif-search-input:focus {
  border-color: var(--selection);
  outline: 1px solid var(--selection);
  outline-offset: 1px;
}

.gif-search-button {
  flex: 0 0 auto;
  padding: .5rem .65rem;
  font-size: .66rem;
}

.gif-search-status {
  margin: .45rem 0 .55rem;
  color: var(--muted);
  font-size: .76rem;
  line-height: 1.35;
}

.gif-search-results {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .35rem;
  max-height: 18rem;
  overflow-y: auto;
  scrollbar-width: thin;
}

.gif-search-results:empty {
  display: none;
}

.gif-result-button {
  position: relative;
  aspect-ratio: 1 / 1;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--soft-line);
  background: #000;
  cursor: pointer;
}

.gif-result-button:hover, .gif-result-button:focus-visible {
  border-color: var(--selection);
  outline: 1px solid var(--selection);
  outline-offset: -2px;
}

.gif-result-button:disabled {
  opacity: .45;
  cursor: default;
}

.gif-result-button img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gif-result-button.is-broken {
  display: none;
}

.gif-paste-toggle {
  display: inline-block;
  margin-top: .6rem;
  padding: 0;
  border-bottom: 1px solid currentColor;
  font-size: .64rem;
}

.gif-paste-panel {
  margin-top: .5rem;
}

.gif-tool-input-row {
  display: flex;
  gap: .45rem;
}

.gif-url-input {
  min-width: 0;
  flex: 1 1 auto;
  padding: .55rem .6rem;
  border: 1px solid var(--soft-line);
  border-radius: 0;
  background: var(--panel-bg);
  color: var(--text);
  font: .9rem/1.2 "Crimson Pro", Georgia, serif;
}

.gif-url-input:focus {
  border-color: var(--selection);
  outline: 1px solid var(--selection);
  outline-offset: 1px;
}

.gif-add-button {
  flex: 0 0 auto;
  padding: .5rem .65rem;
  font-size: .66rem;
}

.gif-tool-help {
  margin: .45rem 0 0;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.35;
}

.gif-attachment-list {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-top: .5rem;
}

.gif-attachment-list:empty {
  display: none;
}

.gif-attachment-chip {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .35rem .45rem;
  border: 1px solid var(--soft-line);
  color: var(--text);
  font-family: "Tilt Warp", sans-serif;
  font-size: .62rem;
}

.gif-remove-button {
  padding: 0;
  font-size: .58rem;
  text-transform: uppercase;
}

.comment-media {
  margin: .7rem 0 0 2.3rem;
  display: grid;
  gap: .55rem;
  width: min(100% - 2.3rem, 28rem);
}

.comment-gif {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--soft-line);
  background: #000;
}

.comment-gif img, .comment-gif-frame {
  display: block;
  width: 100%;
  max-height: 24rem;
  object-fit: contain;
  border: 0;
}

.comment-gif-frame {
  height: min(55vw, 19rem);
  background: #000;
}

.comment-gif-fallback {
  display: block;
  padding: 1rem;
  color: var(--selection);
  text-align: center;
  font-family: "Tilt Warp", sans-serif;
  font-size: .72rem;
  text-decoration: none;
}

.comment-gif-placeholder {
  padding: 1rem;
  color: var(--muted);
  font-family: "Tilt Warp", sans-serif;
  font-size: .68rem;
  line-height: 1.45;
  text-align: center;
}

.composer-footer {
  margin-top: .65rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: .75rem;
}

.composer-footer-left {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: .38rem;
}

.captcha-preview, .comment-captcha-slot {
  color: var(--muted);
  font-family: "Tilt Warp", sans-serif;
  font-size: .62rem;
  letter-spacing: .025em;
  text-transform: uppercase;
}

.comments-thread {
  margin-top: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: .95rem;
}

.comments-empty {
  padding: 1rem 0 .4rem;
  color: var(--muted);
}

.comments-empty strong {
  color: var(--text);
  font-family: "Tilt Warp", sans-serif;
  font-size: .8rem;
  font-weight: 400;
  text-transform: uppercase;
}

.comments-empty p {
  margin: .35rem 0 0;
}

.comment-node {
  min-width: 0;
  margin-left: calc(var(--thread-depth, 0) * .62rem);
}

.comment-node[style*="--thread-depth:0"] {
  margin-left: 0;
}

.comment-node:not([style*="--thread-depth:0"]) > .comment-card {
  padding-left: .7rem;
  border-left: 1px solid var(--soft-line);
}

.comment-card {
  min-width: 0;
}

.comment-meta {
  display: flex;
  align-items: center;
  gap: .55rem;
}

.comment-avatar {
  width: 1.75rem;
  height: 1.75rem;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid var(--soft-line);
  border-radius: 50%;
}

.comment-avatar img, .comment-avatar-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  object-fit: cover;
}

.comment-avatar-fallback {
  font-family: "Tilt Warp", sans-serif;
  font-size: .72rem;
}

.comment-identity {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .35rem .55rem;
}

.comment-author {
  color: var(--text);
  font-family: "Tilt Warp", sans-serif;
  font-size: .78rem;
  text-decoration: none;
  overflow-wrap: anywhere;
}

a.comment-author:hover, a.comment-author:focus-visible {
  color: var(--selection);
  outline: none;
}

.reply-context {
  margin: .4rem 0 0 2.3rem;
  color: var(--muted);
  font-family: "Tilt Warp", sans-serif;
  font-size: .62rem;
}

.comment-body {
  margin: .55rem 0 0 2.3rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: .96rem;
  line-height: 1.4;
}

.comment-actions {
  margin: .5rem 0 0 2.15rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .2rem .45rem;
}

.comment-action {
  padding: .18rem .2rem;
  font-size: .63rem;
}

.reaction-button {
  min-width: 2.45rem;
}

.comment-replies {
  margin-top: .8rem;
  display: flex;
  flex-direction: column;
  gap: .8rem;
}

.reply-composer {
  margin: .75rem 0 0 2.15rem;
  padding: .7rem;
}

.reply-composer .comment-textarea {
  min-height: 4.3rem;
}

@media (max-width:900px) {
  .mobile-comments {
    margin: 0;
    padding: 0;
    border: 2px solid var(--border);
    background: var(--panel-bg);
    overflow: hidden;
  }

  .mobile-reader-menu.has-chapter-comments .mobile-continue {
    margin-top: -.2rem;
  }

  .comments-mobile-toggle {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: .55rem;
    padding: 1rem 1.1rem;
    border: 0;
    background: transparent;
    color: var(--text);
    text-align: left;
    cursor: pointer;
  }

  .comments-mobile-toggle:hover, .comments-mobile-toggle:focus-visible {
    color: var(--selection);
    outline: none;
  }

  .mobile-reader-menu .comments-mobile-toggle .comments-title {
    font-size: 1.22rem;
  }

  .comments-mobile-toggle-meta {
    color: var(--muted);
    font-family: "Tilt Warp", sans-serif;
    font-size: .7rem;
  }

  .comments-mobile-chevron {
    display: block;
    width: 1rem;
    height: 1rem;
    object-fit: contain;
    transform: rotate(0deg);
    transform-origin: 50% 50%;
    transition: transform 220ms ease;
  }

  html[data-theme="light"] .comments-mobile-chevron {
    filter: invert(1);
  }

  .comments-mobile-toggle[aria-expanded="true"] .comments-mobile-chevron {
    transform: rotate(180deg);
  }

  .comments-mobile-collapse {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    border-top: 0 solid var(--soft-line);
    transition: grid-template-rows 280ms ease, opacity 220ms ease, border-top-width 220ms ease;
  }

  .comments-mobile-collapse.is-open {
    grid-template-rows: 1fr;
    opacity: 1;
    border-top-width: 1px;
  }

  .comments-mobile-collapse-inner {
    min-height: 0;
    overflow: hidden;
    padding: 0 1.1rem;
    transition: padding 280ms ease;
  }

  .comments-mobile-collapse.is-open .comments-mobile-collapse-inner {
    padding-top: .95rem;
    padding-bottom: 1.1rem;
  }

  .mobile-reader-menu .comments-title {
    font-size: 1.22rem;
  }

  .comment-node {
    margin-left: calc(var(--thread-depth, 0) * .42rem);
  }

  .comment-node:not([style*="--thread-depth:0"]) > .comment-card {
    padding-left: .5rem;
  }

  .comment-body {
    margin-left: 2.15rem;
  }

  .comment-media {
    margin-left: 2.15rem;
    width: calc(100% - 2.15rem);
  }

  .comment-actions {
    margin-left: 2rem;
  }

  .reply-composer {
    margin-left: 1.1rem;
  }

  .composer-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .comment-submit {
    align-self: flex-end;
  }

  .gif-tool-input-row {
    flex-direction: column;
  }

  .gif-add-button {
    align-self: flex-start;
  }

  .gif-search-form {
    align-items: stretch;
  }

  .gif-search-results {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: 16rem;
  }
}

html.reduce-motion .comments-mobile-collapse, html.reduce-motion .comments-mobile-collapse-inner, html.reduce-motion .comments-mobile-chevron {
  transition: none !important;
}

@media (max-width:390px) {
  .comments-mobile-toggle {
    padding: .85rem .9rem;
  }

  .comments-mobile-collapse-inner {
    padding-left: .9rem;
    padding-right: .9rem;
  }

  .comments-mobile-collapse.is-open .comments-mobile-collapse-inner {
    padding-bottom: .9rem;
  }

  .comments-count {
    font-size: .62rem;
  }

  .comment-avatar {
    width: 1.6rem;
    height: 1.6rem;
  }

  .comment-body {
    margin-left: 2rem;
  }

  .comment-actions {
    margin-left: 1.85rem;
  }
}

.comments-skeleton {
  min-height: 4.5rem;
}

@media (max-width:900px) {
  .comments-skeleton-mobile {
    min-height: 0;
    padding: 1rem 1.1rem;
  }

  .comments-skeleton-mobile .comments-heading-row {
    align-items: center;
  }
}

@media (min-width:901px) {
  .info-host-panel.has-chapter-comments .continue-button {
    margin-top: clamp(1rem, 1.8vh, 1.5rem);
  }

  .info-host-panel.has-chapter-comments .chapter-comments {
    margin-top: .9rem;
  }
}

@media (max-width:900px) {
  .mobile-reader-menu.has-chapter-comments {
    gap: .7rem;
  }

  .mobile-reader-menu.has-chapter-comments .mobile-info-host {
    padding-bottom: .8rem;
  }

  .mobile-reader-menu.has-chapter-comments .mobile-continue {
    margin-top: -.35rem;
  }

  .mobile-reader-menu.has-chapter-comments .mobile-comments {
    margin-top: -.05rem;
  }
}

.comment-signout {
  appearance: none;
  padding: 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.comment-signout:hover, .comment-signout:focus-visible {
  color: var(--selection);
  outline: none;
}

.comment-captcha-slot {
  width: 100%;
  min-width: 0;
  overflow: visible;
}

.comment-captcha-slot > div, .comment-captcha-slot iframe {
  max-width: 100%;
}

.composer-footer {
  flex-direction: column;
  align-items: stretch;
}

.composer-footer-left {
  width: 100%;
}

.comment-submit {
  align-self: flex-end;
  min-width: 8.4rem;
}

.gif-provider-attribution {
  margin: -.1rem 0 .5rem;
  color: var(--muted);
  font-family: "Tilt Warp", sans-serif;
  font-size: .58rem;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.gif-provider-tab:disabled {
  opacity: .35;
  cursor: not-allowed;
}

@media (max-width:420px) {
  .comment-submit {
    width: 100%;
  }
}

/* GIF picker */
.composer-tools {
  position: relative;
}

.gif-picker-panel {
  position: absolute;
  left: 0;
  bottom: calc(100% + .55rem);
  z-index: 80;
  width: min(28rem, calc(100vw - 3rem));
  max-height: min(34rem, 72vh);
  margin: 0;
  padding: .72rem;
  border: 1px solid var(--soft-line);
  background: var(--panel-bg);
  box-shadow: 0 .85rem 2.5rem rgba(0, 0, 0, .34);
  overflow: hidden;
}

.gif-picker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .55rem;
}

.gif-picker-title {
  font-family: "Tilt Warp", sans-serif;
  font-size: .8rem;
  font-weight: 400;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.gif-picker-close {
  display: grid;
  place-items: center;
  width: 1.65rem;
  height: 1.65rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: 1.15rem/1 "Tilt Warp", sans-serif;
  cursor: pointer;
}

.gif-picker-close:hover, .gif-picker-close:focus-visible {
  color: var(--selection);
  outline: 1px solid var(--selection);
  outline-offset: 1px;
}

.gif-search-wrap {
  position: relative;
}

.gif-search-wrap .gif-search-input {
  display: block;
  width: 100%;
  padding: .62rem .7rem;
  background: var(--bg);
}

.gif-picker-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  min-height: 1.85rem;
}

.gif-picker-meta .gif-search-status {
  margin: .35rem 0;
  color: var(--muted);
  font-size: .72rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gif-picker-meta .gif-provider-attribution {
  flex: 0 0 auto;
  margin: 0;
  color: var(--muted);
  font-size: .55rem;
}

.gif-search-results {
  display: block;
  columns: 2;
  column-gap: .38rem;
  max-height: 22rem;
  padding-right: .18rem;
  overflow-y: auto;
  scrollbar-width: thin;
}

.gif-search-results:empty {
  display: block;
  min-height: 7rem;
}

.gif-search-results.is-loading {
  opacity: .55;
}

.gif-result-button {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 0 .38rem;
  break-inside: avoid;
  border: 1px solid var(--soft-line);
  background: #000;
}

.gif-result-button img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gif-paste-toggle {
  margin-top: .62rem;
}

.gif-paste-panel {
  padding-top: .05rem;
}

.gif-attachment-list {
  padding-top: .05rem;
}

@media (max-width:900px) {
  .gif-picker-panel {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 1200;
    width: auto;
    max-height: min(35rem, 76vh);
    padding: .72rem;
  }

  .gif-search-results {
    max-height: min(22rem, 48vh);
  }
}

@media (max-width:420px) {
  .gif-picker-panel {
    left: .65rem;
    right: .65rem;
    bottom: .65rem;
  }

  .gif-search-results {
    column-gap: .3rem;
  }

  .gif-result-button {
    margin-bottom: .3rem;
  }
}

.comment-body.is-collapsible:not(.is-expanded) {
  max-height: 9.8em;
  overflow: hidden;
  position: relative;
}

.comment-body.is-collapsible:not(.is-expanded)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2.4em;
  background: linear-gradient(to bottom, transparent, var(--panel-bg));
  pointer-events: none;
}

.comment-body-toggle {
  display: block;
  margin: .28rem 0 0 2.15rem;
  padding: .16rem .2rem;
  color: var(--selection);
}

.comment-edit-form {
  margin: .6rem 0 0 2.3rem;
}

.comment-edit-textarea {
  min-height: 7.2rem;
}

.comment-edit-footer {
  margin-top: .5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}

.comment-edit-buttons {
  display: flex;
  align-items: center;
  gap: .45rem;
}

.comment-edit-save {
  padding: .46rem .7rem;
  font-size: .64rem;
}

.comment-owner-action {
  color: var(--muted);
}

.comment-owner-action:hover, .comment-owner-action:focus-visible {
  color: var(--selection);
}

.comment-delete-button, .comment-delete-confirm {
  color: #ff6a6a;
}

.comment-delete-button:hover, .comment-delete-button:focus-visible, .comment-delete-confirm:hover, .comment-delete-confirm:focus-visible {
  color: #ff9b9b;
  outline: none;
}

@media(max-width:900px) {
  .comment-body-toggle {
    margin-left: 2rem;
  }

  .comment-edit-form {
    margin-left: 2.15rem;
  }
}

@media(max-width:390px) {
  .comment-body-toggle {
    margin-left: 1.85rem;
  }

  .comment-edit-form {
    margin-left: 2rem;
  }

  .comment-edit-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .comment-edit-buttons {
    justify-content: flex-end;
  }
}

/* Chapter search, reading progress, and new-release markers */
.read-topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(.75rem, 1.5vw, 1.25rem);
}

.chapter-search-open, .chapter-search-close, .chapter-search-submit, .chapter-search-result {
  font-family: "Tilt Warp", sans-serif;
}

.chapter-search-open {
  padding: .42rem .62rem;
  border: 1px solid var(--soft-line);
  background: transparent;
  color: var(--text);
  font-size: .72rem;
  letter-spacing: .025em;
  text-transform: uppercase;
  cursor: pointer;
}

.chapter-search-open:hover, .chapter-search-open:focus-visible {
  border-color: var(--selection);
  color: var(--selection);
  outline: none;
}

.continue-progress {
  display: block;
  height: .25rem;
  margin-top: .65rem;
  background: var(--soft-line);
  overflow: hidden;
}

.continue-progress[hidden] {
  display: none;
}

.continue-progress-fill {
  display: block;
  width: 0;
  height: 100%;
  background: var(--selection);
  transition: width 180ms ease;
}

.chapter-new-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .27rem .5rem .24rem;
  border: 1px solid #ff3b3b;
  background: #c80000;
  color: #fff;
  font-family: "Tilt Warp", sans-serif;
  font-size: clamp(.57rem, .76vw, .7rem);
  line-height: 1;
  letter-spacing: .04em;
  white-space: nowrap;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .35);
}

.chapter-search-dialog {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(0, 0, 0, .76);
}

.chapter-search-dialog[hidden] {
  display: none;
}

body.chapter-search-open {
  overflow: hidden;
}

.chapter-search-card {
  width: min(46rem, 100%);
  max-height: min(46rem, 88svh);
  display: flex;
  flex-direction: column;
  padding: clamp(1rem, 2.5vw, 1.5rem);
  border: 2px solid var(--border);
  background: var(--panel-bg);
  box-shadow: 0 1.2rem 4rem rgba(0, 0, 0, .55);
}

.chapter-search-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.chapter-search-kicker {
  display: block;
  color: var(--muted);
  font-family: "Tilt Warp", sans-serif;
  font-size: .62rem;
  letter-spacing: .05em;
}

.chapter-search-header h2 {
  margin: .2rem 0 0;
  font-family: "Tilt Warp", sans-serif;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 400;
  text-transform: uppercase;
}

.chapter-search-close {
  width: 2.2rem;
  height: 2.2rem;
  flex: 0 0 auto;
  padding: 0;
  border: 1px solid var(--soft-line);
  background: transparent;
  color: var(--text);
  font-size: 1.25rem;
  cursor: pointer;
}

.chapter-search-close:hover, .chapter-search-close:focus-visible {
  border-color: var(--selection);
  color: var(--selection);
  outline: none;
}

.chapter-search-form {
  display: flex;
  gap: .55rem;
  margin-top: 1rem;
}

.chapter-search-input {
  min-width: 0;
  flex: 1;
  padding: .72rem .78rem;
  border: 1px solid var(--soft-line);
  border-radius: 0;
  background: var(--bg);
  color: var(--text);
  font: 1rem/1.2 "Crimson Pro", Georgia, serif;
}

.chapter-search-input:focus {
  border-color: var(--selection);
  outline: 1px solid var(--selection);
  outline-offset: 1px;
}

.chapter-search-submit {
  flex: 0 0 auto;
  padding: .65rem .85rem;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font-size: .72rem;
  text-transform: uppercase;
  cursor: pointer;
}

.chapter-search-submit:hover, .chapter-search-submit:focus-visible {
  border-color: var(--selection);
  color: var(--selection);
  outline: none;
}

.chapter-search-status {
  margin: .7rem 0;
  color: var(--muted);
  font-size: .88rem;
}

.chapter-search-results {
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: .4rem;
  overflow: auto;
  scrollbar-width: thin;
}

.chapter-search-result {
  width: 100%;
  padding: .75rem .8rem;
  border: 1px solid var(--soft-line);
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.chapter-search-result:hover, .chapter-search-result:focus-visible {
  border-color: var(--selection);
  outline: none;
}

.chapter-search-result-meta {
  display: block;
  color: var(--selection);
  font-size: .68rem;
  text-transform: uppercase;
}

.chapter-search-result-snippet {
  display: block;
  margin-top: .35rem;
  font-family: "Crimson Pro", Georgia, serif;
  font-size: .96rem;
  line-height: 1.35;
}

html.reduce-motion .continue-progress-fill {
  transition: none;
}

@media(max-width:900px) {
  .read-topbar-actions {
    margin-left: auto;
  }

  .chapter-search-open {
    font-size: .66rem;
  }

  .chapter-search-card {
    max-height: 92svh;
  }

  .chapter-search-form {
    flex-direction: column;
  }

  .chapter-search-submit {
    align-self: stretch;
  }

  .chapter-search-result {
    padding: .68rem;
  }

  .chapter-search-dialog {
    padding: .65rem;
  }
}

@media(max-width:420px) {
  .chapter-search-open {
    padding: .38rem .48rem;
  }

  .pixel-link span {
    font-size: .95rem;
  }

  .chapter-search-header h2 {
    font-size: 1.55rem;
  }
}

/* Comment spoilers, sorting, author badge, and pinning */
.comment-formatting-toolbar {
  display: flex;
  align-items: center;
  gap: .4rem;
  margin-top: .45rem;
}

.spoiler-tool-button {
  padding: .28rem .42rem;
  border: 1px solid var(--soft-line);
  font-size: .6rem;
  text-transform: uppercase;
}

.spoiler-tool-button:hover, .spoiler-tool-button:focus-visible {
  border-color: var(--selection);
  color: var(--selection);
  outline: none;
}

.comment-spoiler {
  display: inline;
  padding: 0 .12em;
  border: 0;
  border-radius: .12em;
  background: color-mix(in srgb, var(--text) 88%, transparent);
  color: transparent;
  font: inherit;
  line-height: inherit;
  text-align: inherit;
  white-space: pre-wrap;
  cursor: pointer;
  text-shadow: 0 0 .42em var(--text);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.comment-spoiler:hover, .comment-spoiler:focus-visible {
  outline: 1px solid var(--selection);
  outline-offset: 1px;
}

.comment-spoiler.is-revealed {
  background: color-mix(in srgb, var(--selection) 10%, transparent);
  color: var(--text);
  text-shadow: none;
  outline: none;
}

.comments-sortbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .35rem .5rem;
  margin: .8rem 0 -.25rem;
  padding-top: .65rem;
  border-top: 1px solid var(--soft-line);
}

.comments-sort-label {
  margin-right: .15rem;
  color: var(--muted);
  font-family: "Tilt Warp", sans-serif;
  font-size: .6rem;
  text-transform: uppercase;
}

.comments-sort-button {
  color: var(--muted);
}

.comments-sort-button.is-active {
  color: var(--selection);
  text-decoration: underline;
  text-underline-offset: .2em;
}

.comment-author-badge, .comment-pinned-label {
  font-family: "Tilt Warp", sans-serif;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.comment-author-badge {
  display: inline-flex;
  align-items: center;
  padding: .18rem .34rem;
  border: 1px solid var(--selection);
  color: var(--selection);
  font-size: .5rem;
  line-height: 1;
}

.comment-pinned-label {
  margin: 0 0 .48rem 2.3rem;
  color: var(--selection);
  font-size: .54rem;
}

.comments-pinned-section {
  padding: .72rem .65rem .78rem;
  border: 1px solid color-mix(in srgb, var(--selection) 55%, var(--soft-line));
  background: color-mix(in srgb, var(--selection) 4%, transparent);
}

.comments-pinned-section .comment-node {
  margin-left: 0 !important;
}

.comment-pin-button {
  color: var(--selection);
}

.comment-pin-button:hover, .comment-pin-button:focus-visible {
  text-decoration: underline;
  outline: none;
}

@media(max-width:900px) {
  .comment-pinned-label {
    margin-left: 2.15rem;
  }

  .comments-pinned-section {
    padding: .65rem .5rem;
  }

  .comments-sortbar {
    margin-top: .7rem;
  }
}

@media(max-width:390px) {
  .comment-pinned-label {
    margin-left: 2rem;
  }
}

.comment-card.is-deleted {
  padding: .2rem 0;
}

.comment-deleted-placeholder {
  margin: 0;
  color: var(--muted);
  font-family: "Crimson Pro", Georgia, serif;
  font-size: .92rem;
  font-style: italic;
  opacity: .82;
}

.comment-deleted-actions {
  margin: .28rem 0 0;
}

.comment-community-note {
  margin: .55rem 0 0;
  color: var(--muted);
  font-size: .74rem;
  line-height: 1.4;
}

.reply-composer .comment-community-note {
  font-size: .7rem;
}

.comment-bot-check {
  position: absolute!important;
  left: -10000px!important;
  top: auto!important;
  width: 1px!important;
  height: 1px!important;
  overflow: hidden!important;
  opacity: 0!important;
  pointer-events: none!important;
}

/* Reader profiles opened from comment names and avatars. */
.comment-profile-trigger {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.comment-profile-trigger:hover,
.comment-profile-trigger:focus-visible {
  color: var(--selection);
  outline: none;
}

.comment-avatar.comment-profile-trigger:hover,
.comment-avatar.comment-profile-trigger:focus-visible {
  border-color: var(--selection);
}

.comment-profile-card {
  position: fixed;
  z-index: 1200;
  width: min(19rem, calc(100vw - 1.5rem));
  padding: 1rem;
  border: 2px solid var(--border);
  background: var(--panel-bg);
  color: var(--text);
  box-shadow: 0 .8rem 2.6rem rgba(0, 0, 0, .45);
}

.comment-profile-card:focus {
  outline: none;
}

.comment-profile-card.is-loading,
.comment-profile-card.has-error {
  color: var(--muted);
  font-family: "Tilt Warp", sans-serif;
  font-size: .72rem;
  text-transform: uppercase;
}

.comment-profile-card.has-error {
  color: #ff6767;
}

.comment-profile-close {
  position: absolute;
  top: .4rem;
  right: .5rem;
  width: 1.8rem;
  height: 1.8rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: "Tilt Warp", sans-serif;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.comment-profile-close:hover,
.comment-profile-close:focus-visible {
  color: var(--selection);
  outline: none;
}

.comment-profile-header {
  display: grid;
  grid-template-columns: 4.75rem minmax(0, 1fr);
  gap: .85rem;
  align-items: center;
  padding-right: 1.45rem;
}

.comment-profile-avatar {
  width: 4.75rem;
  height: 4.75rem;
  overflow: hidden;
  border: 1px solid var(--soft-line);
  border-radius: 50%;
}

.comment-profile-avatar img,
.comment-profile-avatar .comment-avatar-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  object-fit: cover;
}

.comment-profile-avatar .comment-avatar-fallback {
  font-family: "Tilt Warp", sans-serif;
  font-size: 1.35rem;
}

.comment-profile-names {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .25rem;
}

.comment-profile-display-name {
  max-width: 100%;
  font-family: "Tilt Warp", sans-serif;
  font-size: .9rem;
  font-weight: 400;
  overflow-wrap: anywhere;
}

.comment-profile-login {
  max-width: 100%;
  color: var(--muted);
  font-family: "Tilt Warp", sans-serif;
  font-size: .68rem;
  overflow-wrap: anywhere;
}

.comment-profile-details {
  margin-top: .9rem;
  padding-top: .7rem;
  border-top: 1px solid var(--soft-line);
}

.comment-profile-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .35rem .55rem;
}

.comment-profile-label {
  color: var(--muted);
  font-family: "Tilt Warp", sans-serif;
  font-size: .58rem;
  text-transform: uppercase;
}

.comment-profile-value {
  font-size: .88rem;
}

.comment-profile-edit-pronouns,
.comment-profile-small-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--selection);
  font-family: "Tilt Warp", sans-serif;
  font-size: .56rem;
  cursor: pointer;
}

.comment-profile-edit-pronouns:hover,
.comment-profile-edit-pronouns:focus-visible,
.comment-profile-small-button:hover,
.comment-profile-small-button:focus-visible {
  text-decoration: underline;
  outline: none;
}

.comment-profile-pronouns-editor {
  flex: 1 1 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: .45rem;
  align-items: center;
  margin-top: .2rem;
}

.comment-profile-pronouns-input {
  min-width: 0;
  padding: .35rem .45rem;
  border: 1px solid var(--soft-line);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: .82rem;
}

.comment-profile-pronouns-input:focus {
  border-color: var(--selection);
  outline: none;
}

.comment-profile-bio {
  margin: .85rem 0 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: .94rem;
  line-height: 1.35;
}

.comment-profile-github-link {
  display: inline-block;
  margin-top: .9rem;
  color: var(--selection);
  font-family: "Tilt Warp", sans-serif;
  font-size: .62rem;
  text-decoration: none;
  text-transform: uppercase;
}

.comment-profile-github-link:hover,
.comment-profile-github-link:focus-visible {
  text-decoration: underline;
  outline: none;
}

@media (max-width:900px) {
  .comment-profile-card {
    max-height: calc(100svh - 1.5rem);
    overflow: auto;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, .58);
  }
}


@media (prefers-reduced-motion: reduce) {
  .glitch-name::before,
  .glitch-name::after {
    animation: none;
  }
}
