/* Zyrenicus v1.43.0 readable bundle. Source order: fictioneer-cohesion.css, fictioneer-audit-fixes.css, fictioneer-reading-polish.css, fictioneer-reading-ambience.css, fictioneer-story-gateway.css. */

/* ===== fictioneer-cohesion.css ===== */
/*
 * Zyrenicus Fictioneer cohesion pass.
 *
 * Purpose:
 * - bring inner Fictioneer views closer to the bespoke front-page brand language
 * - stay lightweight and CSS-led
 * - avoid front-page runtime dependencies and heavy template surgery
 *
 * Scope:
 * - story / chapter / collection titles
 * - archive and singular headings used by Fictioneer list templates
 * - taxonomy pills
 * - action/list buttons
 * - restrained story footer meta chip polish
 */

:root {
  --zy-cohesion-title: rgba(245, 238, 225, 0.96);
  --zy-cohesion-title-soft: rgba(231, 222, 208, 0.86);
  --zy-cohesion-gold: rgba(255, 214, 140, 0.82);
  --zy-cohesion-gold-border: rgba(255, 214, 140, 0.18);
  --zy-cohesion-gold-border-strong: rgba(255, 214, 140, 0.30);
  --zy-cohesion-glass-top: rgba(255, 255, 255, 0.08);
  --zy-cohesion-glass-bottom: rgba(255, 255, 255, 0.03);
  --zy-cohesion-surface: linear-gradient(180deg, rgba(44, 50, 60, 0.96), rgba(20, 24, 32, 0.96));
  --zy-cohesion-surface-hover: linear-gradient(180deg, rgba(56, 64, 77, 0.98), rgba(26, 31, 41, 0.98));
  --zy-cohesion-shadow: 0 10px 24px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --zy-cohesion-pill-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 8px 18px rgba(0, 0, 0, 0.14);
}

:where(.main.story, .main.chapter, .main.collection, .main.singular, .main.archive) {
  --ff-story-title: "Cinzel", var(--ff-base);
  --ff-chapter-title: "Cinzel", var(--ff-base);
  --ff-card-title: "Cinzel", var(--ff-base);
}

:where(
  .story__identity-title,
  .chapter__title,
  .collection__title,
  .archive__heading,
  .singular__title,
  .card__title
) {
  font-family: "Cinzel", var(--ff-heading);
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--zy-cohesion-title);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.04), 0 10px 24px rgba(0, 0, 0, 0.18);
}

.story__identity-title,
.chapter__title,
.collection__title,
.singular__title {
  text-wrap: balance;
}

.story__identity-title,
.chapter__title,
.collection__title {
  color: rgba(248, 241, 226, 0.98);
  text-shadow: 0 1px 0 rgba(255,255,255,0.05), 0 10px 28px rgba(0,0,0,0.28), 0 0 18px rgba(255,214,140,0.08);
}

.archive__heading {
  letter-spacing: 0.075em;
}

.card__title {
  line-height: 1.2;
}

.card__title a,
.story__identity-meta a,
.chapter__story-link,
.chapter__author a {
  transition: color var(--transition-duration), opacity var(--transition-duration);
}

.story__identity-meta,
.chapter__author,
.chapter__story-link,
.archive__description {
  color: var(--zy-cohesion-title-soft);
}

.story__identity-meta,
.chapter__author {
  letter-spacing: 0.025em;
}

.story__identity-meta a:hover,
.chapter__story-link:hover,
.chapter__author a:hover,
.card__title a:hover {
  color: #fff7e7;
}

:where(.story__taxonomies, .collection__taxonomies, .card__tag-list) {
  gap: 8px;
}

:where(.story__taxonomies, .collection__taxonomies) .tag-group {
  gap: 8px;
}

:where(.story__taxonomies, .collection__taxonomies, .card__tag-list) .tag-pill {
  --tag-background: linear-gradient(180deg, var(--zy-cohesion-glass-top), var(--zy-cohesion-glass-bottom));
  --tag-background-hover: linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.05));
  --tag-color: rgba(245, 238, 225, 0.92);
  --tag-color-hover: #fff7e7;
  --tag-secondary-background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025));
  --tag-secondary-background-hover: linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.04));
  --tag-secondary-color: rgba(241, 233, 220, 0.90);
  --tag-secondary-color-hover: #fff7e7;
  --tag-secondary-border: 1px solid var(--zy-cohesion-gold-border);
  --tag-secondary-border-hover: 1px solid var(--zy-cohesion-gold-border-strong);
  --tag-inline-color: rgba(233, 223, 208, 0.86);
  --tag-inline-color-hover: #fff4df;
  border-radius: 999px;
  box-shadow: var(--zy-cohesion-pill-shadow);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

:where(.story__taxonomies, .collection__taxonomies, .card__tag-list) .tag-pill._secondary._taxonomy-content_warning {
  border-color: rgba(242, 102, 102, 0.32);
}

.story__actions > .button,
.story__actions > .button._secondary,
.chapter__actions .button,
.chapter__actions .button._secondary,
.list-button {
  --button-secondary-background: var(--zy-cohesion-surface);
  --button-secondary-background-hover: var(--zy-cohesion-surface-hover);
  --button-secondary-color: rgba(245, 238, 225, 0.94);
  --button-secondary-color-hover: #fff7e7;
  --button-secondary-border: 1px solid var(--zy-cohesion-gold-border);
  --button-secondary-border-hover: 1px solid var(--zy-cohesion-gold-border-strong);
  background: var(--zy-cohesion-surface);
  color: rgba(245, 238, 225, 0.94);
  border: 1px solid var(--zy-cohesion-gold-border);
  box-shadow: var(--zy-cohesion-shadow);
  font-family: "Lato", var(--ff-base);
  font-weight: 700;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.story__actions > .button,
.story__actions > .button._secondary {
  border-radius: 999px;
  padding-inline: 0.9rem;
}

.story__actions > .button:not(.current, [disabled]):hover,
.story__actions > .button._secondary:not(.current, [disabled]):hover,
.chapter__actions .button:not(.current, [disabled]):hover,
.chapter__actions .button._secondary:not(.current, [disabled]):hover,
.list-button:not(._on):hover {
  background: var(--zy-cohesion-surface-hover);
  color: #fff7e7;
  border-color: var(--zy-cohesion-gold-border-strong);
}

.list-button {
  border-radius: 999px;
  padding: 7px 11px 6px;
  line-height: 1;
}

.list-button._text {
  letter-spacing: 0.06em;
}

.chapter__actions .button {
  min-height: 34px;
}

.chapter__actions > :not(.chapter__actions-center) > .button:first-child {
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
}

.chapter__actions > :not(.chapter__actions-center) > .button:last-child {
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
}

.story__meta {
  gap: 0.55rem;
}

.story__meta-item {
  align-items: center;
  gap: 0.4rem;
  min-height: 28px;
  padding: 0 0.65rem;
  line-height: 1.2;
  display: inline-flex;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025));
  border: 1px solid rgba(255, 214, 140, 0.16);
  box-shadow: var(--zy-cohesion-pill-shadow);
}

.story__meta-item:not(:first-child) {
  margin-left: 0;
}

.story__meta-item:not(:first-child):not(.checkmark):before {
  content: none;
}

.story__meta-item.checkmark {
  padding: 0 0.55rem;
}

.story__meta > :is(span, label) :is(i, .icon) {
  color: rgba(255, 214, 140, 0.78);
}

.story__meta button.checkmark {
  margin-left: 0;
}

@media only screen and (max-width: 640px) {
  .story__meta {
    justify-content: flex-start;
    padding-right: 0;
    gap: 0.45rem;
  }

  .story__meta-item {
    min-height: 26px;
    padding: 0 0.55rem;
  }

  .archive__heading {
    letter-spacing: 0.05em;
  }
}


/* v1.33.2 stronger inner-page title/header graft.
 * Purpose:
 * - make story/chapter/collection/archive headers visibly match Zyrenicus brand language
 * - port the front-page gold/silver heading treatment onto inner-page identity blocks
 * - centre key reading-page titles without touching chapter body typography
 */

:root {
  --zy-cohesion-gold-2: #f3dc8a;
  --zy-cohesion-gold-3: #8a7122;
  --zy-cohesion-silver: #d7dde6;
  --zy-cohesion-silver-2: #f7fbff;
  --zy-cohesion-silver-3: #8794a6;
  --zy-cohesion-gold-metallic: linear-gradient(
    180deg,
    #ffffff 0%,
    var(--zy-cohesion-gold-2) 30%,
    var(--zy-cohesion-gold) 58%,
    var(--zy-cohesion-gold-3) 100%
  );
  --zy-cohesion-silver-metallic: linear-gradient(
    180deg,
    #ffffff 0%,
    var(--zy-cohesion-silver-2) 30%,
    var(--zy-cohesion-silver) 58%,
    var(--zy-cohesion-silver-3) 100%
  );
  --zy-cohesion-title-shadow-strong: 0 10px 26px rgba(0, 0, 0, 0.55), 0 2px 0 rgba(0, 0, 0, 0.35), 0 -1px 0 rgba(255, 255, 255, 0.10);
}

.story__header .story__identity,
.chapter__headline,
.collection__header,
.archive__header,
.singular__header {
  text-align: center;
}

.story__header .story__identity,
.chapter__headline,
.collection__header,
.archive__header {
  align-items: center;
}

.story__header .story__identity {
  margin-inline: auto;
}

.chapter__headline {
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
}

.story__header .story__taxonomies,
.collection__taxonomies {
  justify-content: center;
}

.story__identity-title,
.chapter__title,
.collection__title,
.archive__heading,
.singular__title {
  font-family: "Cinzel", var(--ff-heading);
  font-weight: 700;
  letter-spacing: 0.04em;
  background: var(--zy-cohesion-gold-metallic);
  background-image: var(--zy-cohesion-gold-metallic);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-shadow: var(--zy-cohesion-title-shadow-strong);
}

.story__identity-title {
  font-size: clamp(2rem, 2.8vw, 3rem);
  line-height: 1.1;
}

.chapter__title {
  margin-top: 0.3rem;
  font-size: clamp(1.8rem, 2.3vw, 2.45rem);
  line-height: 1.14;
}

.collection__title,
.singular__title {
  font-size: clamp(1.9rem, 2.5vw, 2.7rem);
  line-height: 1.12;
}

.archive__heading {
  margin-bottom: 0.95rem;
  font-size: clamp(1.5rem, 1.4vw + 1rem, 2rem);
  line-height: 1.12;
  letter-spacing: 0.08em;
}

.story__identity-meta,
.chapter__headline > a,
.chapter__story-link,
.chapter__author,
.archive__description {
  background: var(--zy-cohesion-silver-metallic);
  background-image: var(--zy-cohesion-silver-metallic);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-shadow: 0 10px 26px rgba(0, 0, 0, 0.55), 0 2px 0 rgba(0, 0, 0, 0.30), 0 0 18px rgba(220, 230, 245, 0.12);
}

.story__identity-meta,
.chapter__headline > a,
.chapter__story-link,
.archive__description {
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.story__identity-meta,
.chapter__headline > a,
.chapter__story-link {
  font-size: clamp(0.78rem, 0.28vw + 0.72rem, 0.92rem);
  font-weight: 800;
}

.chapter__author {
  margin-top: 0.1rem;
  font-size: clamp(0.76rem, 0.22vw + 0.72rem, 0.88rem);
  letter-spacing: 0.04em;
}

.story__identity-meta,
.chapter__headline > a,
.chapter__story-link,
.chapter__author,
.archive__description {
  display: block;
}

.story__identity-meta a,
.chapter__headline > a,
.chapter__story-link,
.chapter__author a {
  color: inherit;
}

.story__identity-meta a,
.chapter__author a {
  background: var(--zy-cohesion-silver-metallic);
  background-image: var(--zy-cohesion-silver-metallic);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-shadow: inherit;
}

.story__identity-meta a:hover,
.chapter__author a:hover {
  filter: brightness(1.08);
}

.story__identity-meta::after,
.chapter__story-link::after,
.chapter__headline > a::after {
  content: "";
  display: block;
  width: min(68px, 44%);
  height: 1px;
  margin: 0.34rem auto 0;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.72), transparent);
  opacity: 0.8;
}

.archive__description {
  max-width: 64ch;
  margin-inline: auto;
  font-style: normal;
  line-height: 1.55;
  text-transform: none;
  letter-spacing: 0.02em;
}

.collection__taxonomies {
  margin-bottom: 1.1rem;
}

@media only screen and (max-width: 640px) {
  .story__identity-title {
    font-size: clamp(1.7rem, 7vw, 2.2rem);
  }

  .chapter__title {
    font-size: clamp(1.55rem, 6.2vw, 2rem);
  }

  .collection__title,
  .singular__title {
    font-size: clamp(1.65rem, 6.6vw, 2.2rem);
  }

  .archive__heading {
    font-size: clamp(1.35rem, 5.5vw, 1.75rem);
    letter-spacing: 0.06em;
  }

  .story__identity-meta,
  .chapter__headline > a,
  .chapter__story-link,
  .chapter__author {
    letter-spacing: 0.09em;
  }
}


/* v1.33.42 chapter identity authority.
 * Moved out of fictioneer-audit-fixes.css so the stable title/header treatment
 * lives with the rest of the Fictioneer cohesion layer instead of the emergency
 * late repair layer.
 */
body.single-fcn_chapter.zy-cohesion-view header.chapter__headline.layout-links {
  display: grid;
  justify-items: center;
  width: min(100%, 56rem);
  gap: 0.34rem;
  margin: 0 auto 1.55rem;
  padding-inline: clamp(0.25rem, 1.8vw, 0.7rem);
  text-align: center;
}

body.single-fcn_chapter.zy-cohesion-view header.chapter__headline.layout-links > :is(.chapter__story-link, .chapter__title, .chapter__author) {
  display: block;
  width: 100%;
  margin-inline: auto;
  text-align: center;
}

body.single-fcn_chapter.zy-cohesion-view header.chapter__headline.layout-links > .chapter__story-link {
  font-family: "Lato", var(--ff-base) !important;
  font-size: clamp(0.8rem, 0.28vw + 0.74rem, 0.94rem) !important;
  font-weight: 800 !important;
  letter-spacing: 0.11em !important;
  line-height: 1.1;
  text-transform: uppercase;
  background: var(--zy-cohesion-silver-metallic);
  background-image: var(--zy-cohesion-silver-metallic);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent !important;
  text-shadow: 0 10px 26px rgba(0, 0, 0, 0.55), 0 2px 0 rgba(0, 0, 0, 0.30), 0 0 18px rgba(220, 230, 245, 0.12);
}

body.single-fcn_chapter.zy-cohesion-view header.chapter__headline.layout-links > .chapter__story-link::after {
  content: "";
  display: block;
  width: min(68px, 44%);
  height: 1px;
  margin: 0.34rem auto 0;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.72), transparent);
  opacity: 0.8;
}

body.single-fcn_chapter.zy-cohesion-view header.chapter__headline.layout-links > .chapter__title {
  max-width: min(20ch, 100%);
  margin-top: 0.26rem;
  font-family: "Cinzel", var(--ff-heading) !important;
  font-size: clamp(1.8rem, 2.3vw, 2.45rem) !important;
  font-weight: 700 !important;
  line-height: 1.14 !important;
  letter-spacing: 0.04em !important;
  text-wrap: balance;
  background: var(--zy-cohesion-gold-metallic);
  background-image: var(--zy-cohesion-gold-metallic);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent !important;
  text-shadow: var(--zy-cohesion-title-shadow-strong);
}

body.single-fcn_chapter.zy-cohesion-view header.chapter__headline.layout-links > .chapter__author {
  margin-top: 0.06rem;
  font-family: "Lato", var(--ff-base) !important;
  font-size: clamp(0.76rem, 0.22vw + 0.72rem, 0.88rem) !important;
  font-style: normal;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
  background: var(--zy-cohesion-silver-metallic);
  background-image: var(--zy-cohesion-silver-metallic);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent !important;
  text-shadow: 0 10px 26px rgba(0, 0, 0, 0.55), 0 2px 0 rgba(0, 0, 0, 0.30), 0 0 18px rgba(220, 230, 245, 0.12);
}

body.single-fcn_chapter.zy-cohesion-view header.chapter__headline.layout-links > .chapter__author a {
  display: inline;
  background: inherit;
  background-image: inherit;
  background-size: inherit;
  background-repeat: inherit;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent !important;
  text-shadow: inherit;
}

body.single-fcn_chapter.zy-cohesion-view header.chapter__headline.layout-links > .chapter__story-link:hover,
body.single-fcn_chapter.zy-cohesion-view header.chapter__headline.layout-links > .chapter__author a:hover {
  filter: brightness(1.08);
}

@media only screen and (max-width: 640px) {
  body.single-fcn_chapter.zy-cohesion-view header.chapter__headline.layout-links {
    margin-bottom: 1.35rem;
  }

  body.single-fcn_chapter.zy-cohesion-view header.chapter__headline.layout-links > .chapter__story-link {
    letter-spacing: 0.09em !important;
  }

  body.single-fcn_chapter.zy-cohesion-view header.chapter__headline.layout-links > .chapter__title {
    max-width: min(16ch, 100%);
    font-size: clamp(1.55rem, 6.2vw, 2rem) !important;
  }
}



/* v1.33.5 navigation + metadata + chapter-list cohesion pass.
 * Purpose:
 * - make chapter action rails feel like part of the Zyrenicus component system
 * - turn inner-page metadata into deliberate chips rather than plain text crumbs
 * - lift chapter lists / chapter index / collection entry lists out of stock-theme plainness
 */

:where(.main.story, .main.chapter, .main.collection, .main.archive, .main.singular) {
  --zy-cohesion-panel-bg: linear-gradient(180deg, rgba(40, 46, 57, 0.82), rgba(18, 22, 30, 0.90));
  --zy-cohesion-panel-border: rgba(255, 214, 140, 0.16);
  --zy-cohesion-panel-border-strong: rgba(255, 214, 140, 0.28);
  --zy-cohesion-row-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.048), rgba(255, 255, 255, 0.016));
  --zy-cohesion-row-bg-hover: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035));
}

.main.chapter .chapter__actions {
  gap: 0.75rem;
  padding: 0.72rem 0.8rem;
  border: 1px solid var(--zy-cohesion-panel-border);
  border-radius: 16px;
  background: var(--zy-cohesion-panel-bg);
  box-shadow: var(--zy-cohesion-shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.main.chapter .chapter__actions-container {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 36px;
}

.main.chapter .chapter__actions .button,
.main.chapter .chapter__actions .popup-menu-toggle,
.main.chapter .chapter__actions a.button {
  border-radius: 999px;
}

.main.chapter .chapter__actions .button._navigation {
  min-width: 7.75rem;
  justify-content: center;
}

.main.chapter .chapter__actions .anchor.button,
.main.chapter .chapter__actions .button--bookmark,
.main.chapter .chapter__actions .button--fullscreen,
.main.chapter .chapter__actions .open,
.main.chapter .chapter__actions .popup-menu-toggle {
  min-width: 2.3rem;
  min-height: 2.3rem;
}

.main.chapter .chapter__actions .popup-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
}

.main.chapter .chapter__actions--top {
  margin-bottom: 1.15rem;
}

.main.chapter .chapter__footer.chapter__actions--bottom {
  margin-top: 1.5rem;
}

.story__meta,
.chapter-group__list-item-subrow,
.post-list-item__meta,
.card__footer-box {
  gap: 0.45rem;
}

:where(.chapter-group__list-item-subrow, .post-list-item__meta, .card__footer-box) > :is(span, time),
.card__footer-box > span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 27px;
  padding: 0 0.62rem;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.022));
  border: 1px solid rgba(255, 214, 140, 0.14);
  box-shadow: var(--zy-cohesion-pill-shadow);
  line-height: 1.15;
}

:where(.chapter-group__list-item-subrow, .post-list-item__meta, .card__footer-box) > :is(span, time) :is(i, .icon),
.card__footer-box > span :is(i, .icon) {
  color: rgba(255, 214, 140, 0.76);
}

.card__footer-box > .separator-dot,
.chapter-group__list-item-subrow > .separator-dot,
.post-list-item__meta > .separator-dot {
  display: none;
}

.story__chapters .chapter-group,
.dialog-modal._chapter-index .chapter-group {
  border: 1px solid var(--zy-cohesion-panel-border);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(33, 38, 48, 0.78), rgba(18, 22, 29, 0.88));
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.18);
  overflow: clip;
}

.story__chapters .chapter-group + .chapter-group,
.dialog-modal._chapter-index .chapter-group + .chapter-group {
  margin-top: 1rem;
}

.story__chapters .chapter-group__name,
.dialog-modal._chapter-index .chapter-group__name {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  justify-content: center;
  padding: 0.88rem 1rem 0.84rem;
  font-family: "Cinzel", var(--ff-heading);
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(247, 239, 223, 0.94);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  border-bottom: 1px solid rgba(255, 214, 140, 0.12);
}

.story__chapters .chapter-group__heading-icon,
.dialog-modal._chapter-index .chapter-group__heading-icon {
  color: rgba(255, 214, 140, 0.82);
}

.story__chapters .chapter-group__list,
.dialog-modal._chapter-index .chapter-group__list {
  padding: 0.45rem;
}

.story__chapters .chapter-group__list-item,
.dialog-modal._chapter-index .chapter-group__list-item,
.card__link-list-item {
  border-radius: 14px;
  background: var(--zy-cohesion-row-bg);
  border: 1px solid transparent;
  transition: background var(--transition-duration), border-color var(--transition-duration), transform var(--transition-duration), box-shadow var(--transition-duration);
}

.story__chapters .chapter-group__list-item:hover,
.dialog-modal._chapter-index .chapter-group__list-item:hover,
.card__link-list-item:hover {
  background: var(--zy-cohesion-row-bg-hover);
  border-color: rgba(255, 214, 140, 0.18);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
}

.story__chapters .chapter-group__list-item-link,
.dialog-modal._chapter-index .chapter-group__list-item-link,
.card__link-list-link {
  color: rgba(245, 238, 225, 0.95);
  transition: color var(--transition-duration);
}

.story__chapters .chapter-group__list-item-link,
.dialog-modal._chapter-index .chapter-group__list-item-link {
  font-family: "Lato", var(--ff-base);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.story__chapters .chapter-group__list-item:hover .chapter-group__list-item-link,
.dialog-modal._chapter-index .chapter-group__list-item:hover .chapter-group__list-item-link,
.card__link-list-item:hover .card__link-list-link {
  color: #fff8ea;
}

.story__chapters .chapter-group__list-item-icon,
.dialog-modal._chapter-index .chapter-group__list-item-icon,
.card__link-list-item .fa-caret-right {
  color: rgba(255, 214, 140, 0.82);
}

.story__chapters .chapter-group__list-item-status,
.dialog-modal._chapter-index .chapter-group__list-item-status {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-right: 0.35rem;
  padding: 0.08rem 0.42rem;
  border-radius: 999px;
  background: rgba(255, 214, 140, 0.11);
  border: 1px solid rgba(255, 214, 140, 0.18);
  color: rgba(255, 240, 208, 0.92);
  font-size: 0.76em;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.story__chapters .chapter-group__folding-toggle,
.dialog-modal._chapter-index .chapter-group__folding-toggle {
  width: 100%;
  min-height: 34px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 214, 140, 0.16);
  color: rgba(245, 238, 225, 0.94);
  font-family: "Lato", var(--ff-base);
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.story__chapters .chapter-group__folding-toggle:hover,
.dialog-modal._chapter-index .chapter-group__folding-toggle:hover {
  border-color: rgba(255, 214, 140, 0.26);
  color: #fff8ea;
}

.card__link-list {
  gap: 0.4rem;
}

.card__link-list-item {
  padding-inline: 0.55rem;
}

.card__link-list-item .card__right {
  color: rgba(228, 218, 204, 0.82);
}

.card__link-list-item .type {
  color: rgba(255, 214, 140, 0.84);
}

@media only screen and (max-width: 768px) {
  .main.chapter .chapter__actions {
    padding: 0.62rem 0.65rem;
    border-radius: 14px;
  }

  .main.chapter .chapter__actions-container {
    gap: 0.35rem;
  }

  .main.chapter .chapter__actions .button._navigation {
    min-width: 0;
  }

  :where(.chapter-group__list-item-subrow, .post-list-item__meta, .card__footer-box) > :is(span, time),
  .card__footer-box > span {
    min-height: 25px;
    padding: 0 0.5rem;
  }

  .story__chapters .chapter-group__name,
  .dialog-modal._chapter-index .chapter-group__name {
    padding-inline: 0.8rem;
    letter-spacing: 0.055em;
  }

  .card__link-list-item {
    padding-inline: 0.4rem;
  }
}


/* v1.33.36 story / collection / archive shell consolidation.
 * Purpose:
 * - keep non-chapter shell width/padding ownership in the cohesion layer
 * - stop the audit file carrying general header-shell layout rules
 */

body.zy-view-story.zy-cohesion-view .story__header .story__identity,
body.zy-view-collection.zy-cohesion-view .collection__header,
body.zy-view-archive.zy-cohesion-view .archive__header,
body.zy-view-taxonomy.zy-cohesion-view .archive__header,
body.zy-cohesion-view .singular__header {
  max-width: min(68rem, 100%);
  margin-inline: auto;
  padding-inline: clamp(0.25rem, 1.6vw, 0.75rem);
}


/* v1.33.43 list/archive surface polish.
 * Purpose:
 * - make Fictioneer cards, post-list rows, and pagination feel like the same
 *   premium inner-site system as the chapter page
 * - avoid forcing layout mode; this pass skins existing parent-theme structure
 *   without turning lists into a new grid or overriding Fictioneer templates
 */

body.zy-cohesion-view :where(.card, .post-list-item) {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--zy-cohesion-panel-border);
  border-radius: 18px;
  background: var(--zy-cohesion-panel-bg);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color var(--transition-duration), box-shadow var(--transition-duration), filter var(--transition-duration);
}

body.zy-cohesion-view :where(.card, .post-list-item)::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 214, 140, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 42%);
  opacity: 0.9;
}

body.zy-cohesion-view :where(.card, .post-list-item):hover {
  border-color: var(--zy-cohesion-panel-border-strong);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.20), 0 0 18px rgba(241, 202, 110, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.055);
  filter: brightness(1.02);
}

body.zy-cohesion-view :where(.card, .post-list-item) > * {
  position: relative;
  z-index: 1;
}

body.zy-cohesion-view :where(.card__body, .card__content, .post-list-item__content, .post-list-item__body) {
  color: rgba(238, 232, 222, 0.88);
}

body.zy-cohesion-view :where(.card__description, .card__excerpt, .post-list-item__excerpt, .post-list-item__description) {
  color: rgba(228, 220, 208, 0.78);
  line-height: 1.58;
}

body.zy-cohesion-view :where(.card__image, .card__cover, .card__thumbnail, .post-list-item__image, .post-list-item__thumbnail) img {
  border-radius: 14px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.20);
}

body.zy-cohesion-view :where(.post-list, .card-list, .archive__list, .collection__stories) {
  gap: clamp(0.9rem, 1.4vw, 1.35rem);
}

body.zy-cohesion-view :where(.pagination, .navigation.pagination, .nav-links) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.48rem;
  margin-top: clamp(1.4rem, 2.2vw, 2.1rem);
}

body.zy-cohesion-view :where(.page-numbers, .pagination .nav-links > a, .pagination .nav-links > span) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.2rem;
  min-height: 2.2rem;
  padding: 0.42rem 0.72rem;
  border: 1px solid var(--zy-cohesion-gold-border);
  border-radius: 999px;
  background: var(--zy-cohesion-surface);
  box-shadow: var(--zy-cohesion-pill-shadow);
  color: rgba(245, 238, 225, 0.9);
  font-weight: 700;
  text-decoration: none;
}

body.zy-cohesion-view :where(.page-numbers.current, .pagination .nav-links > span.current) {
  border-color: var(--zy-cohesion-gold-border-strong);
  color: #fff8ea;
  background: linear-gradient(180deg, rgba(255, 214, 140, 0.16), rgba(255, 214, 140, 0.06));
}

body.zy-cohesion-view :where(.page-numbers:not(.current):hover, .pagination .nav-links > a:hover) {
  border-color: var(--zy-cohesion-gold-border-strong);
  color: #fff8ea;
  background: var(--zy-cohesion-surface-hover);
}

:root[data-mode="light"] body.zy-cohesion-view :where(.card, .post-list-item) {
  border-color: rgba(170, 124, 41, 0.14);
  background: linear-gradient(180deg, rgba(255, 252, 245, 0.94), rgba(244, 237, 225, 0.96));
  box-shadow: 0 14px 30px rgba(95, 63, 19, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

:root[data-mode="light"] body.zy-cohesion-view :where(.card__body, .card__content, .post-list-item__content, .post-list-item__body) {
  color: rgba(56, 49, 40, 0.88);
}

:root[data-mode="light"] body.zy-cohesion-view :where(.card__description, .card__excerpt, .post-list-item__excerpt, .post-list-item__description) {
  color: rgba(72, 62, 49, 0.74);
}

@media only screen and (max-width: 720px) {
  body.zy-cohesion-view :where(.card, .post-list-item) {
    border-radius: 15px;
  }

  body.zy-cohesion-view :where(.page-numbers, .pagination .nav-links > a, .pagination .nav-links > span) {
    min-width: 2rem;
    min-height: 2rem;
    padding-inline: 0.62rem;
  }
}


/* v1.33.9 chapter constellation refinement pass.
 * Purpose:
 * - keep the added utility buttons in the bottom reading rail
 * - rebuild the chapter constellation as a genuinely shaped star map
 * - add responsive scrolling, custom hover labels, and cleaner current-state emphasis
 */

.main.chapter .chapter__actions-center,
.main.chapter .chapter__footer .chapter__actions-container {
  flex-wrap: wrap;
}

.main.chapter .zy-extra-nav-button {
  min-width: 8.6rem;
  gap: 0.48rem;
  padding-inline: 0.95rem;
}

.main.chapter .zy-extra-nav-button__glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  color: rgba(255, 214, 140, 0.88);
  font-size: 0.9rem;
  line-height: 1;
}

.main.chapter .zy-extra-nav-button--vault .zy-extra-nav-button__glyph::before {
  content: "✦";
}

.main.chapter .zy-extra-nav-button--forum .zy-extra-nav-button__glyph::before {
  content: "✎";
}

.main.chapter .zy-chapter-footer-whisper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.42rem 0.65rem;
  width: 100%;
  margin: 0 0 0.72rem;
  padding: 0.56rem 0.75rem;
  border: 1px solid rgba(255, 214, 140, 0.12);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  text-align: center;
}

.main.chapter .zy-chapter-footer-whisper__label {
  font-family: "Cinzel", var(--ff-heading);
  font-size: 0.7rem;
  line-height: 1.1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 234, 188, 0.92);
}

.main.chapter .zy-chapter-footer-whisper__body {
  font-size: 0.8rem;
  line-height: 1.28;
  letter-spacing: 0.03em;
  color: rgba(239, 241, 247, 0.86);
}

.zy-chapter-constellation {
  --zy-constellation-star-size: 2.18rem;
  --zy-constellation-track-padding-inline: 0.8rem;
  --zy-constellation-track-padding-block: 1.08rem;
  --zy-constellation-node-gap: clamp(0.75rem, 1vw, 1rem);
  --zy-node-offset-scale: 1;
  --zy-constellation-line-color: rgba(255, 222, 150, 0.34);
  --zy-patreon-amber: rgba(255, 166, 76, 0.95);
  --zy-patreon-amber-soft: rgba(255, 166, 76, 0.34);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin: 0 auto 1.05rem;
  padding: 0.72rem 0.85rem 0.82rem;
  border: 1px solid rgba(255, 214, 140, 0.14);
  border-radius: 20px;
  background:
    radial-gradient(circle at 14% 22%, rgba(153, 201, 255, 0.13), transparent 22%),
    radial-gradient(circle at 82% 76%, rgba(255, 214, 140, 0.12), transparent 24%),
    radial-gradient(circle at 52% 48%, rgba(255, 214, 140, 0.06), transparent 54%),
    linear-gradient(180deg, rgba(32, 38, 48, 0.84), rgba(16, 20, 27, 0.92));
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.zy-chapter-constellation::before,
.zy-chapter-constellation::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.zy-chapter-constellation::before {
  background:
    radial-gradient(circle at 11% 22%, rgba(255, 255, 255, 0.22) 0 1px, transparent 1.6px),
    radial-gradient(circle at 24% 70%, rgba(255, 224, 165, 0.18) 0 1px, transparent 1.7px),
    radial-gradient(circle at 48% 35%, rgba(197, 222, 255, 0.18) 0 1px, transparent 1.6px),
    radial-gradient(circle at 61% 64%, rgba(255, 255, 255, 0.16) 0 1px, transparent 1.6px),
    radial-gradient(circle at 83% 27%, rgba(255, 224, 165, 0.16) 0 1px, transparent 1.8px),
    radial-gradient(circle at 91% 74%, rgba(197, 222, 255, 0.18) 0 1px, transparent 1.6px);
  opacity: 0.9;
}

.zy-chapter-constellation::after {
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}


header.chapter__headline.layout-links > .zy-chapter-constellation {
  order: -1;
  align-self: stretch;
}

.zy-chapter-constellation__viewport::before,
.zy-chapter-constellation__viewport::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.zy-chapter-constellation__viewport::before {
  inset: 0.35rem 0.55rem 0.6rem;
  background:
    radial-gradient(circle at 16% 42%, rgba(255, 255, 255, 0.15) 0 1px, transparent 1.8px),
    radial-gradient(circle at 33% 68%, rgba(255, 224, 165, 0.13) 0 1px, transparent 1.9px),
    radial-gradient(circle at 57% 28%, rgba(197, 222, 255, 0.12) 0 1px, transparent 1.8px),
    radial-gradient(circle at 78% 62%, rgba(255, 255, 255, 0.12) 0 1px, transparent 1.9px);
  opacity: 0.72;
}

.zy-chapter-constellation__viewport::after {
  top: 0.9rem;
  right: 1.4rem;
  width: 4.4rem;
  height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255, 235, 188, 0.9), rgba(255,255,255,0));
  transform: rotate(-16deg);
  opacity: 0.34;
  filter: blur(0.2px);
}

.zy-chapter-constellation__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.42rem;
  padding-inline: 0.1rem;
}

.zy-chapter-constellation__eyebrow,
.zy-chapter-constellation__meta {
  font-size: 0.72rem;
  line-height: 1.1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.zy-chapter-constellation__eyebrow {
  font-family: "Cinzel", var(--ff-heading);
  font-weight: 700;
  color: rgba(247, 239, 223, 0.92);
}

.zy-chapter-constellation__meta {
  color: rgba(232, 240, 255, 0.58);
}

.zy-chapter-constellation__readout {
  min-height: 1.58rem;
  margin-bottom: 0.42rem;
  padding: 0.34rem 0.66rem;
  border: 1px solid rgba(255, 214, 140, 0.12);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  font-size: 0.76rem;
  line-height: 1.2;
  letter-spacing: 0.04em;
  color: rgba(244, 238, 226, 0.9);
  text-align: center;
}

.zy-chapter-constellation__facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.42rem;
  margin-bottom: 0.52rem;
}

.zy-chapter-constellation__fact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.5rem;
  padding: 0.24rem 0.62rem;
  border: 1px solid rgba(255, 214, 140, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.68rem;
  line-height: 1.15;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(234, 238, 245, 0.74);
}

.zy-chapter-constellation__fact.is-premium {
  border-color: rgba(255, 166, 76, 0.18);
  background: rgba(255, 166, 76, 0.08);
  color: rgba(255, 218, 182, 0.88);
}

.zy-chapter-constellation__viewport {
  position: relative;
  display: grid;
  align-items: start;
  overflow-x: auto;
  overflow-y: clip;
  overscroll-behavior-x: contain;
  -ms-overflow-style: none;
  scrollbar-width: none;
  padding-block: 0.08rem 0;
  mask-image: linear-gradient(90deg, transparent 0, #000 1rem, #000 calc(100% - 1rem), transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 1rem, #000 calc(100% - 1rem), transparent 100%);
}

.zy-chapter-constellation__viewport::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.zy-chapter-constellation__viewport::-webkit-scrollbar-thumb {
  background: transparent;
}

.zy-chapter-constellation__viewport::-webkit-scrollbar-track {
  background: transparent;
}

.zy-chapter-constellation__lines {
  grid-area: 1 / 1;
  align-self: start;
  justify-self: start;
  pointer-events: none;
  overflow: visible;
  z-index: 1;
}

.zy-chapter-constellation__segment {
  stroke: var(--zy-constellation-line-color);
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-dasharray: 4 6;
  filter: drop-shadow(0 0 5px rgba(255, 223, 162, 0.18));
  opacity: 0.96;
}

.zy-chapter-constellation__track {
  grid-area: 1 / 1;
  list-style: none;
  position: relative;
  z-index: 2;
  margin: 0;
  padding: var(--zy-constellation-track-padding-block) var(--zy-constellation-track-padding-inline) calc(var(--zy-constellation-track-padding-block) + 0.2rem);
  display: flex;
  align-items: center;
  gap: var(--zy-constellation-node-gap);
  min-width: max-content;
}

.zy-chapter-constellation__node {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(calc(var(--zy-node-offset, 0px) * var(--zy-node-offset-scale)));
}

.zy-chapter-constellation__link {
  --zy-star-core: rgba(232, 240, 255, 0.9);
  --zy-star-halo: rgba(162, 201, 255, 0.28);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--zy-constellation-star-size);
  height: var(--zy-constellation-star-size);
  border-radius: 999px;
  text-decoration: none;
  position: relative;
  isolation: isolate;
  transition: transform 180ms ease, filter 180ms ease, box-shadow 180ms ease;
}

.zy-chapter-constellation__link::before {
  content: "";
  position: absolute;
  inset: 0.22rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 70%);
  opacity: 0;
  transition: opacity 180ms ease;
}

.zy-chapter-constellation__link:hover,
.zy-chapter-constellation__link:focus-visible {
  transform: translateY(-2px) scale(1.06);
  filter: brightness(1.08);
}

.zy-chapter-constellation__link:hover::before,
.zy-chapter-constellation__link:focus-visible::before {
  opacity: 1;
}

.zy-chapter-constellation__link:focus-visible {
  outline: 2px solid rgba(255, 214, 140, 0.55);
  outline-offset: 3px;
}

.zy-chapter-constellation__tooltip {
  position: absolute;
  left: 0;
  top: 0;
  max-width: min(20rem, calc(100% - 1rem));
  padding: 0.5rem 0.72rem;
  border: 1px solid rgba(255, 214, 140, 0.16);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(24, 28, 36, 0.98), rgba(13, 16, 22, 0.98));
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  font-size: 0.78rem;
  line-height: 1.3;
  color: rgba(245, 242, 234, 0.96);
  text-align: center;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.3rem);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
  z-index: 7;
}

.zy-chapter-constellation__tooltip.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.zy-chapter-constellation__star {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--zy-star-core);
  text-shadow:
    0 0 10px rgba(170, 205, 255, 0.42),
    0 0 22px rgba(170, 205, 255, 0.2);
}

.zy-chapter-constellation__star::before {
  content: "✦";
  font-size: 1.14rem;
  line-height: 1;
}

.zy-chapter-constellation__number {
  position: absolute;
  top: calc(100% - 0.12rem);
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.58rem;
  line-height: 1;
  letter-spacing: 0.08em;
  color: rgba(230, 235, 247, 0.55);
}

.zy-chapter-constellation__node.is-locked .zy-chapter-constellation__link {
  --zy-star-core: var(--zy-patreon-amber);
  --zy-star-halo: var(--zy-patreon-amber-soft);
}

.zy-chapter-constellation__node.is-locked .zy-chapter-constellation__star {
  text-shadow:
    0 0 12px rgba(255, 166, 76, 0.42),
    0 0 24px rgba(255, 166, 76, 0.18);
}

.zy-chapter-constellation__node.is-locked .zy-chapter-constellation__number {
  color: rgba(255, 203, 150, 0.78);
}

.zy-chapter-constellation__node.is-current.is-locked .zy-chapter-constellation__link {
  background: radial-gradient(circle, rgba(255, 166, 76, 0.22), rgba(255, 166, 76, 0.06) 62%, transparent 74%);
  box-shadow:
    0 0 0 1px rgba(255, 166, 76, 0.16) inset,
    0 0 24px rgba(255, 166, 76, 0.14);
}

.zy-chapter-constellation__node.is-current.is-locked .zy-chapter-constellation__star {
  text-shadow:
    0 0 14px rgba(255, 166, 76, 0.72),
    0 0 30px rgba(255, 166, 76, 0.3),
    0 0 44px rgba(255, 166, 76, 0.18);
}

.zy-chapter-constellation__node.is-current.is-locked .zy-chapter-constellation__number {
  color: rgba(255, 223, 189, 0.96);
}

.zy-chapter-constellation__node.is-current .zy-chapter-constellation__link {
  --zy-star-core: rgba(255, 228, 164, 1);
  --zy-star-halo: rgba(255, 214, 140, 0.34);
  background: radial-gradient(circle, rgba(255, 214, 140, 0.18), rgba(255, 214, 140, 0.04) 62%, transparent 74%);
  box-shadow:
    0 0 0 1px rgba(255, 214, 140, 0.12) inset,
    0 0 22px rgba(255, 214, 140, 0.12);
}

.zy-chapter-constellation__node.is-current .zy-chapter-constellation__star {
  text-shadow:
    0 0 14px rgba(255, 214, 140, 0.68),
    0 0 30px rgba(255, 214, 140, 0.28),
    0 0 44px rgba(255, 214, 140, 0.18);
  animation: zy-constellation-pulse 2.7s ease-in-out infinite;
}

.zy-chapter-constellation__node.is-current .zy-chapter-constellation__number {
  color: rgba(255, 232, 185, 0.9);
}

.zy-chapter-constellation[data-density="compact"] .zy-chapter-constellation__number {
  font-size: 0.54rem;
}

.zy-chapter-constellation[data-density="tight"] .zy-chapter-constellation__number {
  font-size: 0.5rem;
  letter-spacing: 0.05em;
}

.zy-chapter-constellation[data-density="tight"] .zy-chapter-constellation__segment {
  stroke-dasharray: 3 4;
  opacity: 0.9;
}

@media (max-width: 720px) {
  .main.chapter .zy-extra-nav-button {
    min-width: 0;
    flex: 1 1 auto;
  }

  .main.chapter .zy-chapter-footer-whisper {
    padding-inline: 0.62rem;
  }

  .zy-chapter-constellation {
    --zy-constellation-star-size: 2rem;
    --zy-constellation-node-gap: 0.62rem;
    margin-top: 0;
    padding-inline: 0.72rem;
  }

  .zy-chapter-constellation__header {
    gap: 0.75rem;
    align-items: baseline;
  }

  .zy-chapter-constellation__readout {
    margin-bottom: 0.4rem;
    padding-inline: 0.56rem;
    font-size: 0.7rem;
  }

  .zy-chapter-constellation__facts {
    gap: 0.34rem;
  }

  .zy-chapter-constellation__fact {
    font-size: 0.62rem;
    letter-spacing: 0.07em;
  }

  .zy-chapter-constellation__track {
    padding-inline: 0.7rem;
  }

  .zy-chapter-constellation__tooltip {
    max-width: min(14rem, calc(100% - 0.75rem));
    font-size: 0.72rem;
  }
}

@media (hover: none) and (pointer: coarse) {
  .zy-chapter-constellation__readout {
    color: rgba(255, 244, 220, 0.96);
    border-color: rgba(255, 214, 140, 0.18);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
  }

  .zy-chapter-constellation__tooltip {
    display: none;
  }
}

@keyframes zy-constellation-pulse {
  0%,
  100% {
    transform: scale(1);
    filter: brightness(1);
  }
  50% {
    transform: scale(1.08);
    filter: brightness(1.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  .zy-chapter-constellation__link,
  .zy-chapter-constellation__tooltip {
    transition: none;
  }

  .zy-chapter-constellation__node.is-current .zy-chapter-constellation__star {
    animation: none;
  }
}


.main.chapter .chapter__actions--top + header.chapter__headline.layout-links > .zy-chapter-constellation {
  margin-top: 0.05rem;
}


/* v1.33.17 audited utility-lane realignment.
 * Purpose:
 * - move extra utility controls out of the parent footer action rail
 * - keep the reading footer readable on long labels and narrow screens
 * - let the parent chapter footer keep its own responsibilities
 */

.main.chapter .zy-chapter-utility-lane {
  display: grid;
  gap: 0.72rem;
  margin-top: 1.2rem;
}

.main.chapter .zy-chapter-utility-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}

.main.chapter .zy-chapter-utility-actions .zy-extra-nav-button {
  min-width: 8.75rem;
  max-width: 100%;
}

.main.chapter .zy-extra-nav-button__label {
  display: inline-block;
  min-width: 0;
  white-space: normal;
  text-wrap: balance;
}

.main.chapter .zy-chapter-utility-lane + .chapter__footer.chapter__actions--bottom {
  margin-top: 1.15rem;
}

@media (max-width: 720px) {
  .main.chapter .zy-chapter-utility-lane {
    gap: 0.62rem;
  }

  .main.chapter .zy-chapter-utility-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .main.chapter .zy-chapter-utility-actions .zy-extra-nav-button {
    width: 100%;
    min-width: 0;
  }
}


/* v1.33.35 chapter shell consolidation.
 * Purpose:
 * - move stable chapter-shell ownership out of the audit patch graveyard
 * - keep the reading surface clean while restoring clear wayfinding and footer handoff
 * - leave the bespoke front page alone and stop stacking late-pass chapter overrides
 */

body.single-fcn_chapter.zy-cohesion-view .chapter__article {
  position: relative;
}

body.single-fcn_chapter.zy-cohesion-view #chapter-content {
  position: relative;
  margin-top: 1.3rem;
  background: transparent;
}

body.single-fcn_chapter.zy-cohesion-view #chapter-content :is(p, ul, ol, blockquote, h2, h3, h4, h5, h6) {
  text-shadow: none;
}

body.single-fcn_chapter.zy-cohesion-view .main__wrapper {
  position: relative;
  z-index: 1;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.18), 0 10px 24px rgba(0, 0, 0, 0.10);
}



body.single-fcn_chapter.zy-cohesion-view .progress {
  height: 5px;
  padding: 1px;
  border-radius: 999px;
  overflow: hidden;
  background: linear-gradient(90deg, rgba(255, 230, 170, 0.07), rgba(255, 246, 225, 0.18), rgba(255, 230, 170, 0.07));
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04), 0 10px 24px rgba(0, 0, 0, 0.16);
}

body.single-fcn_chapter.zy-cohesion-view .progress__bar {
  position: relative;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(190, 151, 78, 0.92), rgba(244, 213, 140, 0.98) 58%, rgba(255, 245, 226, 0.96));
  box-shadow: 0 0 10px rgba(244, 211, 126, 0.22);
}

body.single-fcn_chapter.zy-cohesion-view .progress__bar::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -3px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 247, 228, 0.95) 0%, rgba(255, 222, 155, 0.44) 40%, rgba(255, 222, 155, 0.04) 72%, transparent 100%);
  transform: translateY(-50%);
  filter: blur(3px);
  opacity: 0.82;
  pointer-events: none;
}

body.single-fcn_chapter.zy-cohesion-view .zy-chapter-context-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.68rem 0.8rem;
  width: 100%;
  max-width: min(42rem, 100%);
  margin: 0.45rem auto 0.15rem;
}

body.single-fcn_chapter.zy-cohesion-view .zy-chapter-context-strip__trail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.72rem;
}

body.single-fcn_chapter.zy-cohesion-view .zy-chapter-context-chip,
body.single-fcn_chapter.zy-cohesion-view .zy-chapter-context-strip__fact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.45rem;
  padding: 0.52rem 0.95rem 0.56rem;
  border: 1px solid rgba(247, 214, 141, 0.16);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)),
    radial-gradient(circle at top, rgba(255, 224, 166, 0.06), transparent 68%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 10px 22px rgba(0, 0, 0, 0.12);
}

body.single-fcn_chapter.zy-cohesion-view .zy-chapter-context-chip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 0.58rem;
  row-gap: 0.08rem;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

body.single-fcn_chapter.zy-cohesion-view .zy-chapter-context-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(248, 221, 160, 0.26);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 12px 26px rgba(0, 0, 0, 0.18), 0 0 18px rgba(241, 202, 110, 0.08);
  filter: brightness(1.03);
}

body.single-fcn_chapter.zy-cohesion-view .zy-chapter-context-chip::before {
  content: "";
  display: inline-block;
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(255, 248, 226, 0.98), rgba(255, 220, 146, 0.88) 42%, rgba(171, 204, 255, 0.72) 100%);
  box-shadow: 0 0 10px rgba(244, 209, 124, 0.22);
}

body.single-fcn_chapter.zy-cohesion-view .zy-chapter-context-chip--collection::before {
  background: radial-gradient(circle at 35% 35%, rgba(232, 245, 255, 0.98), rgba(186, 218, 255, 0.86) 44%, rgba(255, 220, 146, 0.64) 100%);
}

body.single-fcn_chapter.zy-cohesion-view .zy-chapter-context-chip__kicker {
  grid-column: 2;
  grid-row: 1;
  display: block;
  font-family: "Cinzel", var(--ff-heading);
  font-size: 0.62rem;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(247, 225, 181, 0.92);
}

body.single-fcn_chapter.zy-cohesion-view .zy-chapter-context-chip__label {
  grid-column: 2;
  grid-row: 2;
  display: block;
  max-width: 20ch;
  font-size: 0.82rem;
  line-height: 1.14;
  font-weight: 700;
  text-wrap: balance;
  color: rgba(239, 241, 247, 0.88);
}

body.single-fcn_chapter.zy-cohesion-view .zy-chapter-context-strip__fact {
  gap: 0.45rem;
  padding-inline: 0.95rem 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: rgba(239, 241, 247, 0.88);
}

body.single-fcn_chapter.zy-cohesion-view .zy-chapter-context-strip__fact::before {
  content: "✦";
  font-size: 0.76rem;
  line-height: 1;
  color: rgba(247, 225, 181, 0.92);
  text-shadow: 0 0 12px rgba(244, 209, 124, 0.18);
}

body.single-fcn_chapter.zy-cohesion-view .zy-chapter-footer-whisper {
  position: relative;
  overflow: hidden;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease, background-color 220ms ease, filter 220ms ease;
}

body.single-fcn_chapter.zy-cohesion-view .zy-chapter-footer-whisper::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.03) 22%, transparent 48%);
  transform: translateX(-100%);
  animation: zy-whisper-sheen 8.5s ease-in-out infinite;
  pointer-events: none;
}

body.single-fcn_chapter.zy-cohesion-view .zy-chapter-footer-whisper--link {
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, filter 180ms ease;
}

body.single-fcn_chapter.zy-cohesion-view .zy-chapter-footer-whisper--link:hover {
  transform: translateY(-1px);
  border-color: rgba(248, 221, 160, 0.26);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 12px 26px rgba(0, 0, 0, 0.18), 0 0 18px rgba(241, 202, 110, 0.08);
  filter: brightness(1.03);
}

body.single-fcn_chapter.zy-cohesion-view.zy-near-chapter-end .zy-chapter-footer-whisper {
  border-color: rgba(248, 221, 160, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 14px 30px rgba(0, 0, 0, 0.20), 0 0 22px rgba(244, 213, 140, 0.08);
  filter: brightness(1.03);
}

body.single-fcn_chapter.zy-cohesion-view.zy-near-chapter-end .zy-chapter-footer-whisper__label {
  color: rgba(255, 232, 186, 0.98);
}

















@keyframes zy-whisper-sheen {
  0%,
  70%,
  100% {
    transform: translateX(-115%);
    opacity: 0;
  }
  78% {
    transform: translateX(8%);
    opacity: 0.42;
  }
  88% {
    transform: translateX(115%);
    opacity: 0;
  }
}



:root[data-mode="light"] body.single-fcn_chapter.zy-cohesion-view .main__wrapper {
  box-shadow: 0 22px 42px rgba(89, 59, 11, 0.12), 0 10px 22px rgba(89, 59, 11, 0.06);
}



:root[data-mode="light"] body.single-fcn_chapter.zy-cohesion-view .progress {
  background: linear-gradient(90deg, rgba(170, 124, 41, 0.06), rgba(255, 247, 236, 0.82), rgba(170, 124, 41, 0.06));
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.72), 0 8px 18px rgba(95, 63, 19, 0.10);
}

:root[data-mode="light"] body.single-fcn_chapter.zy-cohesion-view .progress__bar {
  background: linear-gradient(90deg, rgba(162, 112, 29, 0.88), rgba(210, 164, 80, 0.96) 56%, rgba(247, 231, 194, 0.96));
  box-shadow: 0 0 8px rgba(180, 132, 42, 0.16);
}

:root[data-mode="light"] body.single-fcn_chapter.zy-cohesion-view .zy-chapter-context-strip__fact,
:root[data-mode="light"] body.single-fcn_chapter.zy-cohesion-view .zy-chapter-context-chip__label {
  color: rgba(65, 57, 46, 0.88);
}

:root[data-mode="light"] body.single-fcn_chapter.zy-cohesion-view .zy-chapter-context-chip__kicker,
:root[data-mode="light"] body.single-fcn_chapter.zy-cohesion-view .zy-chapter-context-strip__fact::before {
  color: rgba(145, 103, 30, 0.88);
}





:root[data-mode="light"] body.single-fcn_chapter.zy-cohesion-view.zy-near-chapter-end .zy-chapter-footer-whisper {
  border-color: rgba(170, 124, 41, 0.20);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84), 0 14px 28px rgba(95, 63, 19, 0.10), 0 0 18px rgba(210, 164, 80, 0.06);
}

:root[data-mode="light"] body.single-fcn_chapter.zy-cohesion-view.zy-near-chapter-end .zy-chapter-footer-whisper__label {
  color: rgba(114, 74, 18, 0.95);
}

@media (max-width: 720px) {
  body.single-fcn_chapter.zy-cohesion-view .zy-chapter-context-chip,
  body.single-fcn_chapter.zy-cohesion-view .zy-chapter-context-chip__label {
    max-width: none;
  }
}

/* v1.33.63 constellation star refinement.
 * Preserve the chapter-map interaction, but make the nodes read less like glyphs
 * and more like tiny sky lights with halos/flares.
 */
.zy-chapter-constellation__star {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  color: transparent;
  text-shadow: none;
}

.zy-chapter-constellation__star::before,
.zy-chapter-constellation__star::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.zy-chapter-constellation__star::before {
  width: clamp(0.34rem, 30%, 0.52rem);
  height: clamp(0.34rem, 30%, 0.52rem);
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 1) 0 16%, var(--zy-star-core) 34%, rgba(184, 213, 255, 0.40) 60%, transparent 78%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.10),
    0 0 9px var(--zy-star-halo),
    0 0 20px rgba(162, 201, 255, 0.12);
}

.zy-chapter-constellation__star::after {
  width: 1.16rem;
  height: 1.16rem;
  opacity: 0.58;
  background:
    linear-gradient(90deg, transparent 0 44%, rgba(255, 255, 255, 0.46) 49% 51%, transparent 56% 100%),
    linear-gradient(0deg, transparent 0 44%, rgba(255, 255, 255, 0.26) 49% 51%, transparent 56% 100%);
  filter: drop-shadow(0 0 6px var(--zy-star-halo));
}

.zy-chapter-constellation__node.is-current .zy-chapter-constellation__star::before {
  width: clamp(0.42rem, 38%, 0.68rem);
  height: clamp(0.42rem, 38%, 0.68rem);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.16),
    0 0 12px rgba(255, 214, 140, 0.42),
    0 0 28px rgba(255, 214, 140, 0.20),
    0 0 46px rgba(255, 214, 140, 0.10);
}

.zy-chapter-constellation__node.is-current .zy-chapter-constellation__star::after {
  width: 1.42rem;
  height: 1.42rem;
  opacity: 0.74;
  background:
    linear-gradient(90deg, transparent 0 43%, rgba(255, 235, 184, 0.62) 49% 51%, transparent 57% 100%),
    linear-gradient(0deg, transparent 0 43%, rgba(255, 235, 184, 0.38) 49% 51%, transparent 57% 100%);
}

.zy-chapter-constellation__node.is-locked .zy-chapter-constellation__star::before {
  background:
    radial-gradient(circle, rgba(255, 246, 226, 1) 0 16%, var(--zy-patreon-amber) 36%, rgba(255, 166, 76, 0.36) 62%, transparent 80%);
  box-shadow:
    0 0 0 1px rgba(255, 166, 76, 0.12),
    0 0 10px rgba(255, 166, 76, 0.34),
    0 0 24px rgba(255, 166, 76, 0.14);
}

.zy-chapter-constellation__node.is-locked .zy-chapter-constellation__star::after {
  background:
    linear-gradient(90deg, transparent 0 44%, rgba(255, 196, 128, 0.50) 49% 51%, transparent 56% 100%),
    linear-gradient(0deg, transparent 0 44%, rgba(255, 196, 128, 0.28) 49% 51%, transparent 56% 100%);
}

.zy-chapter-constellation__link:hover .zy-chapter-constellation__star::before,
.zy-chapter-constellation__link:focus-visible .zy-chapter-constellation__star::before {
  filter: brightness(1.12);
}

@media (max-width: 720px) {
  .zy-chapter-constellation__star::after {
    width: 1rem;
    height: 1rem;
    opacity: 0.48;
  }

  .zy-chapter-constellation__node.is-current .zy-chapter-constellation__star::after {
    width: 1.22rem;
    height: 1.22rem;
  }
}

/* v1.33.64 constellation clipping guard.
 * Some chapter-map nodes intentionally rise above the baseline; do not clip their glow.
 */
.zy-chapter-constellation {
  --zy-constellation-track-padding-block: clamp(1.38rem, 2.4vw, 1.72rem);
  overflow: visible;
}

.zy-chapter-constellation__viewport {
  overflow-y: visible;
  padding-block: 0.46rem 0.18rem;
}

.zy-chapter-constellation__track {
  padding-top: var(--zy-constellation-track-padding-block);
}

.zy-chapter-constellation__link:focus-visible {
  outline-offset: 4px;
}

/* ===== fictioneer-audit-fixes.css ===== */
/*
 * Zyrenicus Fictioneer post-audit repair layer.
 *
 * Purpose:
 * - narrow the inner-page shell/background work to actual Fictioneer views
 * - replace the buried chapter-only starfield with a real shell overlay host
 * - provide one authoritative late-pass chapter headline block
 * - keep the true late-pass repair layer narrow: shell starfield host, settings card, and chapter-only overrides
 */

:root {
  --zy-starfield-opacity: 0.72;
}

body.zy-cohesion-view #site {
  position: relative;
  isolation: isolate;
  z-index: 0;
}

body.zy-cohesion-view .zy-shell-starfield {
  display: none;
  pointer-events: none;
}

body.zy-cohesion-view :is(.main.story, .main.chapter, .main.collection, .main.archive, .main.singular, .story__header, .collection__header, .archive__header, .singular__header, .chapter__actions, .chapter__footer, .site-footer),
body.single-fcn_chapter.zy-cohesion-view header.chapter__headline.layout-links {
  position: relative;
  z-index: 1;
}

body.zy-cohesion-view :is(#full-navigation, .main-navigation, .main-navigation__wrapper, .main-navigation__left, .main-navigation__right, .icon-menu, .icon-menu .menu-item, .mobile-menu-button) {
  position: relative;
}

body.zy-cohesion-view :is(#full-navigation, .main-navigation) {
  z-index: 1030;
}

body.zy-cohesion-view :is(.main-navigation__wrapper, .main-navigation__left, .main-navigation__right, .icon-menu, .icon-menu .menu-item, .mobile-menu-button) {
  z-index: 2;
}

body.zy-cohesion-view .main-navigation__background {
  z-index: -1;
}

body.zy-cohesion-view :is(.main-navigation .sub-menu, .main-navigation .alerts.sub-menu, .main-navigation .popup-menu, .icon-menu .sub-menu, .icon-menu .popup-menu) {
  z-index: 1035;
}

body.zy-cohesion-view .mobile-menu {
  z-index: 1035;
}

@media only screen and (min-width: 900px) {
  :root:not(.no-starfield):not([data-mode="light"]) body.zy-cohesion-view.zy-starfield-enabled .zy-shell-starfield {
    display: block;
  }

  body.zy-cohesion-view .zy-shell-starfield {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: none;
    overflow: hidden;
    pointer-events: none;
    opacity: 1;
  }

  body.zy-cohesion-view .zy-shell-starfield__nebula,
  body.zy-cohesion-view .zy-shell-starfield__haze,
  body.zy-cohesion-view .zy-shell-starfield__star-cloud,
  body.zy-cohesion-view .zy-shell-starfield__layer,
  body.zy-cohesion-view .zy-shell-starfield__shooting,
  body.zy-cohesion-view .zy-shell-starfield__galaxies {
    position: absolute;
    inset: -8%;
    pointer-events: none;
  }

  body.zy-cohesion-view .zy-shell-starfield__nebula {
    inset: 0;
    opacity: calc(var(--zy-starfield-opacity) * 0.98);
    background:
      radial-gradient(ellipse at 12% 18%, rgba(124, 96, 224, 0.30) 0, rgba(124, 96, 224, 0.14) 16%, rgba(124, 96, 224, 0.045) 34%, transparent 56%),
      radial-gradient(ellipse at 84% 22%, rgba(72, 139, 224, 0.28) 0, rgba(72, 139, 224, 0.12) 18%, rgba(72, 139, 224, 0.045) 36%, transparent 58%),
      radial-gradient(ellipse at 72% 82%, rgba(244, 177, 112, 0.15) 0, rgba(244, 177, 112, 0.06) 18%, transparent 48%),
      linear-gradient(118deg, transparent 0 22%, rgba(114, 142, 236, 0.035) 32%, rgba(255, 238, 206, 0.045) 47%, rgba(127, 94, 208, 0.035) 59%, transparent 76%);
    filter: blur(2px) saturate(1.14) brightness(1.04);
    animation: zy-shell-nebula-breathe 26s ease-in-out infinite;
  }

  body.zy-cohesion-view .zy-shell-starfield__haze {
    inset: 0;
    opacity: calc(var(--zy-starfield-opacity) * 0.36);
    background:
      radial-gradient(ellipse at 50% 46%, rgba(255, 255, 255, 0.028) 0 14%, rgba(255, 255, 255, 0.010) 34%, transparent 66%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.018) 0%, transparent 18%, transparent 78%, rgba(255, 255, 255, 0.018) 100%),
      linear-gradient(112deg, transparent 0%, rgba(206, 224, 255, 0.026) 34%, rgba(255, 236, 196, 0.022) 49%, rgba(170, 146, 255, 0.022) 63%, transparent 100%);
    mix-blend-mode: screen;
    animation: zy-shell-haze-drift 54s linear infinite alternate;
  }

  body.zy-cohesion-view .zy-shell-starfield__star-cloud {
    z-index: 1;
    opacity: calc(var(--zy-starfield-opacity) * 0.30);
    background:
      radial-gradient(circle at 18% 28%, rgba(255, 255, 255, 0.075) 0 0.08rem, transparent 0.12rem),
      radial-gradient(circle at 32% 36%, rgba(194, 219, 255, 0.050) 0 0.065rem, transparent 0.11rem),
      radial-gradient(circle at 68% 32%, rgba(255, 235, 191, 0.052) 0 0.07rem, transparent 0.12rem),
      radial-gradient(circle at 78% 68%, rgba(210, 227, 255, 0.046) 0 0.06rem, transparent 0.10rem),
      linear-gradient(116deg, transparent 0 28%, rgba(186, 208, 255, 0.045) 42%, rgba(255, 232, 190, 0.035) 50%, rgba(135, 109, 218, 0.038) 60%, transparent 76%);
    background-size: 19rem 13rem, 23rem 17rem, 29rem 19rem, 31rem 21rem, 100% 100%;
    filter: blur(0.35px) saturate(1.04);
    mix-blend-mode: screen;
    animation: zy-shell-star-cloud-drift 118s linear infinite alternate;
  }

  body.zy-cohesion-view .zy-shell-starfield__layer--far {
    animation: zy-shell-starfield-drift-far 94s linear infinite alternate;
  }

  body.zy-cohesion-view .zy-shell-starfield__layer--mid {
    animation: zy-shell-starfield-drift-mid 134s linear infinite alternate;
  }

  body.zy-cohesion-view .zy-shell-starfield__layer--hero {
    animation: zy-shell-starfield-drift-hero 156s linear infinite alternate;
  }

  body.zy-cohesion-view .zy-shell-starfield__star {
    position: absolute;
    left: calc(var(--x) * 1%);
    top: calc(var(--y) * 1%);
    width: var(--size);
    height: var(--size);
    opacity: var(--opacity);
    transform: translate3d(0, 0, 0);
    will-change: transform, opacity;
    animation: zy-star-twinkle var(--twinkle-duration) ease-in-out infinite;
    animation-delay: var(--twinkle-delay);
  }

  body.zy-cohesion-view .zy-shell-starfield__star::before,
  body.zy-cohesion-view .zy-shell-starfield__star::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border-radius: 999px;
    pointer-events: none;
  }

  body.zy-cohesion-view .zy-shell-starfield__star::before {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, var(--star-core, rgba(255, 255, 255, 0.98)) 0 34%, var(--star-mid, rgba(222, 236, 255, 0.62)) 58%, var(--star-outer, rgba(255, 236, 198, 0.24)) 74%, transparent 100%);
    box-shadow: 0 0 var(--glow-size) var(--star-glow, rgba(180, 214, 255, 0.22));
  }

  body.zy-cohesion-view .zy-shell-starfield__star::after {
    width: calc(var(--size) * 2.4);
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.42), transparent);
    opacity: 0;
  }

  body.zy-cohesion-view .zy-shell-starfield__star--far::before {
    box-shadow: 0 0 var(--glow-size) var(--star-glow, rgba(170, 205, 255, 0.14));
  }

  body.zy-cohesion-view .zy-shell-starfield__star--mid::before {
    filter: saturate(1.06);
  }

  body.zy-cohesion-view .zy-shell-starfield__star--hero::before {
    box-shadow: 0 0 var(--glow-size) rgba(200, 227, 255, 0.34), 0 0 calc(var(--glow-size) * 1.9) rgba(180, 212, 255, 0.12);
  }

  body.zy-cohesion-view .zy-shell-starfield__star--hero::after {
    width: var(--flare-size);
    opacity: 0.52;
  }

  body.zy-cohesion-view .zy-shell-starfield__shooting-star {
    position: absolute;
    left: var(--start-x);
    top: var(--start-y);
    width: var(--tail-length);
    height: 2px;
    opacity: 0;
    transform: translate3d(0, 0, 0) rotate(var(--shoot-angle));
    transform-origin: right center;
    will-change: transform, opacity;
    animation: zy-shell-shooting-star var(--shoot-duration) linear infinite;
    animation-delay: var(--shoot-delay);
  }

  body.zy-cohesion-view .zy-shell-starfield__shooting-star::before,
  body.zy-cohesion-view .zy-shell-starfield__shooting-star::after {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
  }

  body.zy-cohesion-view .zy-shell-starfield__shooting-star::before {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(126, 161, 232, 0.08) 34%, rgba(184, 213, 255, 0.20) 62%, rgba(217, 236, 255, 0.62) 88%, rgba(255, 255, 255, 0.96) 100%);
    border-radius: 999px;
    box-shadow: 0 0 12px rgba(188, 218, 255, 0.20);
  }

  body.zy-cohesion-view .zy-shell-starfield__shooting-star::after {
    width: 7px;
    height: 7px;
    left: auto;
    right: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 1) 0 38%, rgba(207, 230, 255, 0.74) 62%, transparent 100%);
    box-shadow: 0 0 16px rgba(201, 228, 255, 0.34);
  }

  body.zy-cohesion-view .zy-shell-starfield__galaxies {
    inset: 0;
    z-index: 1;
  }

  body.zy-cohesion-view .zy-shell-starfield__galaxy {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: var(--galaxy-width);
    height: var(--galaxy-height);
    opacity: var(--galaxy-opacity);
    transform: translate3d(-50%, -50%, 0) rotate(var(--galaxy-rotate));
    border-radius: 999px;
    background:
      radial-gradient(ellipse at 50% 50%, var(--galaxy-core) 0 4%, var(--galaxy-bulge) 8%, transparent 30%),
      radial-gradient(ellipse at 48% 50%, var(--galaxy-violet) 0 22%, transparent 62%),
      radial-gradient(ellipse at 56% 44%, var(--galaxy-blue) 0 18%, transparent 58%),
      radial-gradient(ellipse at 40% 58%, var(--galaxy-gold) 0 14%, transparent 48%);
    filter: blur(var(--galaxy-blur)) saturate(1.14);
    mix-blend-mode: screen;
    will-change: transform, opacity;
    animation: zy-shell-galaxy-drift var(--galaxy-duration) ease-in-out infinite;
    animation-delay: var(--galaxy-delay);
  }

  body.zy-cohesion-view .zy-shell-starfield__galaxy::before,
  body.zy-cohesion-view .zy-shell-starfield__galaxy::after {
    content: "";
    position: absolute;
    inset: 42% -8%;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.03) 18%, rgba(221, 234, 255, 0.16) 50%, rgba(255, 226, 176, 0.06) 72%, transparent 100%);
  }

  body.zy-cohesion-view .zy-shell-starfield__galaxy::after {
    inset: 46% 6%;
    opacity: 0.54;
    transform: rotate(7deg);
  }
}

:root[data-mode="light"] body.zy-cohesion-view .zy-shell-starfield__nebula {
  opacity: calc(var(--zy-starfield-opacity) * 0.44);
  filter: saturate(0.9) brightness(0.95);
}

:root[data-mode="light"] body.zy-cohesion-view .zy-shell-starfield__haze {
  opacity: calc(var(--zy-starfield-opacity) * 0.22);
}

:root[data-mode="light"] body.zy-cohesion-view .zy-shell-starfield__star {
  opacity: calc(var(--opacity) * 0.58);
}

:root[data-mode="light"] body.zy-cohesion-view .zy-shell-starfield__shooting-star {
  opacity: 0;
}

:root[data-mode="light"] body.zy-cohesion-view .zy-shell-starfield__galaxy {
  opacity: calc(var(--galaxy-opacity) * 0.48);
  filter: blur(calc(var(--galaxy-blur) * 1.05)) saturate(0.88);
}

:root[data-mode="dark"] body.zy-cohesion-view .zy-shell-starfield__nebula {
  opacity: calc(var(--zy-starfield-opacity) * 0.98);
}

:root[data-mode="dark"] body.zy-cohesion-view .zy-shell-starfield__haze {
  opacity: calc(var(--zy-starfield-opacity) * 0.36);
}

:root[data-mode="dark"] body.zy-cohesion-view .zy-shell-starfield__galaxy {
  opacity: calc(var(--galaxy-opacity) * 0.96);
}

body.zy-cohesion-view .site-settings__starfield {
  position: relative;
  gap: 0.7rem;
  padding: 0.56rem 0.85rem;
  border: 1px solid rgba(116, 138, 196, 0.22);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(17, 23, 42, 0.52), rgba(10, 16, 30, 0.34));
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body.zy-cohesion-view .site-settings__starfield::before {
  content: "";
  position: absolute;
  right: 0.9rem;
  top: 0.72rem;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 244, 214, 0.96) 0 26%, rgba(180, 214, 255, 0.42) 58%, transparent 100%);
  box-shadow: 0 0 12px rgba(255, 233, 166, 0.22), 0 0 20px rgba(180, 214, 255, 0.12);
}

body.zy-cohesion-view .site-settings__starfield .modal__setting-toggle {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  padding-right: 1.25rem;
  line-height: 1.24;
}

body.zy-cohesion-view .site-settings__starfield-title {
  font-weight: 700;
}

body.zy-cohesion-view .site-settings__starfield-note {
  font-size: 0.72rem;
  color: var(--fg-500);
}

body.zy-cohesion-view .site-settings__starfield.is-disabled {
  opacity: 0.62;
}

body.zy-cohesion-view .site-settings__starfield.is-disabled .modal__setting-toggle {
  cursor: not-allowed;
}

/*
 * v133.42: stable chapter headline typography moved into fictioneer-cohesion.css.
 * This file should remain the late repair layer for shell/starfield/settings fixes.
 */

@keyframes zy-shell-starfield-drift-far {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(22px, 14px, 0) scale(1.03);
  }
}

@keyframes zy-shell-starfield-drift-mid {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(-28px, 22px, 0) scale(1.04);
  }
}

@keyframes zy-shell-starfield-drift-hero {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(18px, -16px, 0) scale(1.02);
  }
}

@keyframes zy-shell-nebula-breathe {
  0%,
  100% {
    transform: scale(1) translate3d(0, 0, 0);
    filter: saturate(1.08) brightness(1.03);
  }
  50% {
    transform: scale(1.04) translate3d(-0.7%, 0.6%, 0);
    filter: saturate(1.14) brightness(1.07);
  }
}

@keyframes zy-shell-haze-drift {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(2%, -1.5%, 0);
  }
}

@keyframes zy-star-twinkle {
  0%,
  100% {
    opacity: calc(var(--opacity) * 0.82);
    transform: translate3d(0, 0, 0) scale(0.96);
  }
  38% {
    opacity: calc(var(--opacity) * 1.18);
    transform: translate3d(var(--drift-x), var(--drift-y), 0) scale(1.16);
  }
  72% {
    opacity: calc(var(--opacity) * 0.72);
    transform: translate3d(calc(var(--drift-x) * -0.42), calc(var(--drift-y) * -0.35), 0) scale(0.92);
  }
}

@keyframes zy-shell-shooting-star {
  0%,
  82%,
  100% {
    opacity: 0;
    transform: translate3d(0, 0, 0) rotate(var(--shoot-angle)) scaleX(0.78);
  }
  86% {
    opacity: var(--shoot-opacity);
    transform: translate3d(0, 0, 0) rotate(var(--shoot-angle)) scaleX(1);
  }
  97% {
    opacity: 0;
    transform: translate3d(var(--travel-x), var(--travel-y), 0) rotate(var(--shoot-angle)) scaleX(1.12);
  }
}


@keyframes zy-shell-star-cloud-drift {
  0% {
    transform: translate3d(-1.4%, -0.8%, 0);
    background-position: 0 0, 0 0, 0 0, 0 0, 0 0;
  }
  100% {
    transform: translate3d(1.6%, 1%, 0);
    background-position: 2.2rem 1.4rem, -1.8rem 2.1rem, 1.2rem -1.6rem, -2.4rem -1.2rem, 0 0;
  }
}

@keyframes zy-shell-galaxy-drift {
  0%,
  100% {
    opacity: var(--galaxy-opacity);
    transform: translate3d(-50%, -50%, 0) rotate(var(--galaxy-rotate)) scale(1);
  }
  52% {
    opacity: calc(var(--galaxy-opacity) * 1.12);
    transform: translate3d(calc(-50% + var(--galaxy-drift-x)), calc(-50% + var(--galaxy-drift-y)), 0) rotate(calc(var(--galaxy-rotate) + 2deg)) scale(1.035);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.zy-cohesion-view .zy-shell-starfield__nebula,
  body.zy-cohesion-view .zy-shell-starfield__haze,
  body.zy-cohesion-view .zy-shell-starfield__layer,
  body.zy-cohesion-view .zy-shell-starfield__star-cloud,
  body.zy-cohesion-view .zy-shell-starfield__star,
  body.zy-cohesion-view .zy-shell-starfield__shooting-star,
  body.zy-cohesion-view .zy-shell-starfield__galaxy {
    animation: none !important;
    transform: none !important;
  }

  body.zy-cohesion-view .zy-shell-starfield__shooting {
    display: none !important;
  }
}

@media print {
  body.zy-cohesion-view .zy-shell-starfield,
  body.zy-cohesion-view .zy-shell-starfield * {
    display: none !important;
    content: none !important;
  }
}

/* ===== fictioneer-reading-polish.css ===== */
/* Zyrenicus Fictioneer reading polish v1.41.0
 * Narrow source of truth for chapter hierarchy, prose handoff spacing, and
 * overflow safety. Footer navigation lives in fictioneer-chapter-shell.css.
 */

body.single-fcn_chapter.zy-cohesion-view :is(
  .chapter__headline,
  .chapter__actions,
  .chapter__footer,
  .zy-chapter-context-strip,
  .zy-chapter-utility-lane
) {
  min-width: 0;
}

body.single-fcn_chapter.zy-cohesion-view .zy-chapter-context-strip {
  align-items: stretch;
  overflow: clip;
}

body.single-fcn_chapter.zy-cohesion-view .zy-chapter-context-strip__trail {
  min-width: 0;
}

body.single-fcn_chapter.zy-cohesion-view .zy-chapter-context-chip {
  flex: 1 1 13rem;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

body.single-fcn_chapter.zy-cohesion-view :is(
  .zy-chapter-context-chip__label,
  .zy-chapter-context-strip__fact,
  .zy-extra-nav-button__label,
  .zy-chapter-footer-whisper__body
) {
  min-width: 0;
  overflow-wrap: anywhere;
}

body.single-fcn_chapter.zy-cohesion-view .zy-chapter-footer-whisper {
  align-items: center;
  min-height: 48px;
  padding-inline: clamp(0.78rem, 2vw, 1.1rem);
}

body.single-fcn_chapter.zy-cohesion-view .zy-chapter-footer-whisper__body {
  display: -webkit-box;
  max-width: min(58rem, 100%);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.single-fcn_chapter.zy-cohesion-view .zy-chapter-utility-actions {
  gap: 0.68rem;
}

body.single-fcn_chapter.zy-cohesion-view .zy-extra-nav-button {
  box-sizing: border-box;
  justify-content: center;
  min-width: 0;
  max-width: 100%;
  min-height: 42px;
}

body.single-fcn_chapter.zy-cohesion-view .zy-extra-nav-button__label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.single-fcn_chapter.zy-cohesion-view {
  --zy-reading-shell-max: min(100%, 76rem);
  --zy-reading-handoff-max: min(100%, 64rem);
}

body.single-fcn_chapter.zy-cohesion-view header.chapter__headline.layout-links {
  width: var(--zy-reading-shell-max);
  margin-inline: auto;
  padding-inline: clamp(0.2rem, 1.2vw, 0.9rem);
}

body.single-fcn_chapter.zy-cohesion-view .chapter__title {
  max-width: min(34ch, 100%);
  margin-inline: auto;
  text-wrap: balance;
}

body.single-fcn_chapter.zy-cohesion-view .chapter__headline :is(.chapter__story-link, .chapter__author, > a) {
  max-width: min(56ch, 100%);
  margin-inline: auto;
  overflow-wrap: anywhere;
}

body.single-fcn_chapter.zy-cohesion-view :is(
  .zy-chapter-context-strip,
  .zy-chapter-utility-lane,
  .chapter__footer.chapter__actions--bottom
) {
  width: var(--zy-reading-handoff-max);
  margin-inline: auto;
}

body.single-fcn_chapter.zy-cohesion-view #chapter-content {
  scroll-margin-top: clamp(1.5rem, 5vh, 4rem);
}

body.single-fcn_chapter.zy-cohesion-view .zy-chapter-context-strip {
  margin-top: clamp(0.72rem, 1.4vw, 1rem);
}

body.single-fcn_chapter.zy-cohesion-view .zy-chapter-utility-lane {
  margin-bottom: 0.45rem;
}

body.single-fcn_chapter.zy-cohesion-view .zy-chapter-footer-whisper--link {
  text-decoration: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease, background 180ms ease;
}

body.single-fcn_chapter.zy-cohesion-view .zy-chapter-footer-whisper--link:hover,
body.single-fcn_chapter.zy-cohesion-view .zy-chapter-footer-whisper--link:focus-visible {
  border-color: rgba(255, 214, 140, 0.24);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

body.single-fcn_chapter.zy-cohesion-view .zy-chapter-footer-whisper--link:focus-visible {
  outline: 2px solid rgba(255, 226, 160, 0.44);
  outline-offset: 3px;
}

:root[data-mode="light"] body.single-fcn_chapter.zy-cohesion-view .zy-chapter-footer-whisper--link:hover,
:root[data-mode="light"] body.single-fcn_chapter.zy-cohesion-view .zy-chapter-footer-whisper--link:focus-visible {
  border-color: rgba(160, 113, 31, 0.24);
  box-shadow: 0 10px 24px rgba(89, 59, 11, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

@media (max-width: 720px) {
  body.single-fcn_chapter.zy-cohesion-view header.chapter__headline.layout-links {
    padding-inline: 0;
  }

  body.single-fcn_chapter.zy-cohesion-view :is(
    .zy-chapter-context-strip,
    .zy-chapter-utility-lane,
    .chapter__footer.chapter__actions--bottom
  ) {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.single-fcn_chapter.zy-cohesion-view .zy-chapter-footer-whisper--link {
    transition: none;
    transform: none;
  }
}

/* ===== fictioneer-reading-ambience.css ===== */
/*
 * Zyrenicus Fictioneer reading ambience layer.
 *
 * Purpose:
 * - elevate the existing inner-page starfield without changing Fictioneer markup
 * - add depth/nebula/comet polish behind the reading surface only
 * - protect long-form text readability with a soft central calm zone
 * - keep motion respectful through reduced-motion and print fallbacks
 */

:root {
  --zy-ambience-center-calm: rgba(8, 12, 24, 0.42);
  --zy-ambience-edge-violet: rgba(93, 71, 170, 0.24);
  --zy-ambience-edge-blue: rgba(74, 130, 210, 0.20);
  --zy-ambience-gold: rgba(255, 214, 143, 0.18);
  --zy-ambience-comet: rgba(225, 240, 255, 0.92);
  --zy-ambience-comet-soft: rgba(176, 210, 255, 0.32);
}

@media only screen and (min-width: 900px) {
  body.zy-cohesion-view .zy-shell-starfield {
    contain: paint;
    transform: translateZ(0);
  }

  body.zy-cohesion-view .zy-shell-starfield::before,
  body.zy-cohesion-view .zy-shell-starfield::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
  }

  body.zy-cohesion-view .zy-shell-starfield::before {
    z-index: 2;
    opacity: calc(var(--zy-starfield-opacity) * 0.52);
    background:
      radial-gradient(ellipse at 50% 24%, transparent 0 18%, rgba(0, 0, 0, 0.05) 45%, rgba(0, 0, 0, 0.20) 100%),
      radial-gradient(ellipse at 50% 50%, var(--zy-ambience-center-calm) 0 22%, rgba(8, 12, 24, 0.14) 42%, transparent 68%);
    mix-blend-mode: multiply;
  }

  body.zy-cohesion-view .zy-shell-starfield::after {
    z-index: 5;
    opacity: calc(var(--zy-starfield-opacity) * 0.30);
    background:
      linear-gradient(90deg, rgba(0, 0, 0, 0.28) 0%, transparent 17%, transparent 83%, rgba(0, 0, 0, 0.28) 100%),
      linear-gradient(180deg, rgba(0, 0, 0, 0.16) 0%, transparent 16%, transparent 76%, rgba(0, 0, 0, 0.24) 100%);
  }

  body.zy-cohesion-view .zy-shell-starfield__aurora,
  body.zy-cohesion-view .zy-shell-starfield__galaxies,
  body.zy-cohesion-view .zy-shell-starfield__dust,
  body.zy-cohesion-view .zy-shell-starfield__comets {
    position: absolute;
    inset: -10%;
    pointer-events: none;
  }

  body.zy-cohesion-view .zy-shell-starfield__aurora {
    z-index: 0;
    opacity: calc(var(--zy-starfield-opacity) * 0.46);
    background:
      radial-gradient(ellipse at 20% 28%, var(--zy-ambience-edge-violet) 0 12%, rgba(93, 71, 170, 0.08) 30%, transparent 55%),
      radial-gradient(ellipse at 82% 20%, var(--zy-ambience-edge-blue) 0 10%, rgba(74, 130, 210, 0.08) 28%, transparent 52%),
      radial-gradient(ellipse at 72% 82%, var(--zy-ambience-gold) 0 9%, rgba(255, 214, 143, 0.06) 24%, transparent 50%),
      conic-gradient(from 138deg at 50% 42%, transparent 0 18%, rgba(151, 121, 230, 0.10) 25%, transparent 38%, rgba(88, 151, 224, 0.08) 48%, transparent 64%, rgba(255, 217, 157, 0.07) 72%, transparent 100%);
    filter: blur(11px) saturate(1.18);
    transform: translate3d(0, 0, 0) scale(1.04);
    animation: zy-ambience-aurora-drift 72s ease-in-out infinite alternate;
  }

  body.zy-cohesion-view .zy-shell-starfield__dust {
    z-index: 2;
  }

  body.zy-cohesion-view .zy-shell-starfield__dust-speck {
    position: absolute;
    left: calc(var(--x) * 1%);
    top: calc(var(--y) * 1%);
    width: var(--size);
    height: var(--size);
    border-radius: 999px;
    opacity: var(--opacity);
    background: radial-gradient(circle, rgba(255, 244, 214, 0.84) 0 28%, rgba(194, 220, 255, 0.32) 54%, transparent 100%);
    box-shadow: 0 0 var(--glow) rgba(196, 220, 255, 0.22);
    transform: translate3d(0, 0, 0);
    will-change: transform, opacity;
    animation: zy-ambience-dust-drift var(--duration) ease-in-out infinite alternate;
    animation-delay: var(--delay);
  }

  body.zy-cohesion-view .zy-shell-starfield__comets {
    z-index: 4;
    overflow: hidden;
  }

  body.zy-cohesion-view .zy-shell-starfield__comet {
    position: absolute;
    left: var(--start-x);
    top: var(--start-y);
    width: var(--length);
    height: 14px;
    opacity: 0;
    transform: translate3d(0, 0, 0) rotate(var(--angle));
    transform-origin: right center;
    will-change: transform, opacity;
    animation: zy-ambience-comet-flight var(--duration) linear infinite;
    animation-delay: var(--delay);
  }

  body.zy-cohesion-view .zy-shell-starfield__comet-trail,
  body.zy-cohesion-view .zy-shell-starfield__comet-core,
  body.zy-cohesion-view .zy-shell-starfield__comet-spark {
    position: absolute;
    top: 50%;
    pointer-events: none;
  }

  body.zy-cohesion-view .zy-shell-starfield__comet-trail {
    left: 0;
    width: 100%;
    height: 3px;
    transform: translateY(-50%);
    border-radius: 999px;
    background:
      linear-gradient(90deg, transparent 0%, rgba(126, 161, 232, 0.07) 24%, var(--zy-ambience-comet-soft) 54%, rgba(214, 232, 255, 0.60) 84%, var(--zy-ambience-comet) 100%);
    box-shadow: 0 0 16px rgba(188, 220, 255, 0.22), 0 0 32px rgba(116, 146, 230, 0.09);
  }

  body.zy-cohesion-view .zy-shell-starfield__comet-core {
    left: auto;
    right: -1px;
    width: var(--core-size);
    height: var(--core-size);
    transform: translateY(-50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 1) 0 34%, rgba(221, 239, 255, 0.86) 56%, rgba(179, 211, 255, 0.20) 76%, transparent 100%);
    box-shadow: 0 0 18px rgba(223, 240, 255, 0.50), 0 0 42px rgba(158, 194, 255, 0.22);
  }

  body.zy-cohesion-view .zy-shell-starfield__comet-spark {
    left: calc(100% - var(--spark-x));
    width: var(--spark-size);
    height: var(--spark-size);
    transform: translateY(var(--spark-y));
    border-radius: 50%;
    opacity: var(--spark-opacity);
    background: radial-gradient(circle, rgba(255, 236, 190, 0.96), transparent 70%);
    box-shadow: 0 0 10px rgba(255, 222, 166, 0.20);
  }

  body.single-fcn_chapter.zy-cohesion-view .chapter__content,
  body.single-fcn_chapter.zy-cohesion-view .chapter__headline,
  body.single-fcn_chapter.zy-cohesion-view .zy-chapter-context-strip,
  body.single-fcn_chapter.zy-cohesion-view .zy-chapter-constellation,
  body.single-fcn_chapter.zy-cohesion-view .chapter__footer {
    position: relative;
    z-index: 2;
  }

}

:root[data-mode="light"] body.zy-cohesion-view .zy-shell-starfield {
  display: none !important;
}

:root[data-mode="light"] {
  --zy-ambience-center-calm: rgba(247, 242, 230, 0.38);
  --zy-ambience-edge-violet: rgba(122, 102, 184, 0.13);
  --zy-ambience-edge-blue: rgba(76, 128, 196, 0.11);
  --zy-ambience-gold: rgba(194, 139, 64, 0.10);
  --zy-ambience-comet: rgba(86, 116, 168, 0.50);
  --zy-ambience-comet-soft: rgba(96, 124, 178, 0.16);
}

:root[data-mode="light"] body.zy-cohesion-view .zy-shell-starfield::before {
  opacity: calc(var(--zy-starfield-opacity) * 0.20);
  background: radial-gradient(ellipse at 50% 50%, rgba(255, 252, 244, 0.48) 0 24%, rgba(255, 252, 244, 0.22) 43%, transparent 72%);
  mix-blend-mode: normal;
}

:root[data-mode="light"] body.zy-cohesion-view .zy-shell-starfield::after {
  opacity: calc(var(--zy-starfield-opacity) * 0.18);
  background:
    linear-gradient(90deg, rgba(95, 105, 140, 0.12) 0%, transparent 18%, transparent 82%, rgba(95, 105, 140, 0.12) 100%),
    linear-gradient(180deg, rgba(95, 105, 140, 0.08) 0%, transparent 20%, transparent 78%, rgba(95, 105, 140, 0.10) 100%);
}

:root[data-mode="light"] body.zy-cohesion-view .zy-shell-starfield__aurora {
  opacity: calc(var(--zy-starfield-opacity) * 0.26);
  filter: blur(12px) saturate(0.92);
}

:root[data-mode="light"] body.zy-cohesion-view .zy-shell-starfield__dust-speck {
  opacity: calc(var(--opacity) * 0.36);
  background: radial-gradient(circle, rgba(86, 116, 168, 0.44) 0 28%, rgba(105, 130, 184, 0.16) 58%, transparent 100%);
  box-shadow: 0 0 var(--glow) rgba(103, 127, 184, 0.08);
}

:root[data-mode="light"] body.zy-cohesion-view .zy-shell-starfield__comet {
  filter: saturate(0.78) brightness(0.88);
}

@keyframes zy-ambience-aurora-drift {
  0% {
    transform: translate3d(-1.2%, 0.4%, 0) scale(1.04) rotate(-0.4deg);
  }
  50% {
    transform: translate3d(1.6%, -1.1%, 0) scale(1.08) rotate(0.6deg);
  }
  100% {
    transform: translate3d(-0.4%, 1.3%, 0) scale(1.05) rotate(-0.2deg);
  }
}

@keyframes zy-ambience-dust-drift {
  0% {
    transform: translate3d(0, 0, 0) scale(0.92);
    opacity: calc(var(--opacity) * 0.58);
  }
  42% {
    transform: translate3d(var(--drift-x), var(--drift-y), 0) scale(1.12);
    opacity: var(--opacity);
  }
  100% {
    transform: translate3d(calc(var(--drift-x) * -0.36), calc(var(--drift-y) * 0.54), 0) scale(0.98);
    opacity: calc(var(--opacity) * 0.74);
  }
}

@keyframes zy-ambience-comet-flight {
  0%,
  76%,
  100% {
    opacity: 0;
    transform: translate3d(0, 0, 0) rotate(var(--angle)) scaleX(0.72);
  }
  80% {
    opacity: var(--opacity);
    transform: translate3d(0, 0, 0) rotate(var(--angle)) scaleX(0.92);
  }
  94% {
    opacity: calc(var(--opacity) * 0.78);
  }
  99% {
    opacity: 0;
    transform: translate3d(var(--travel-x), var(--travel-y), 0) rotate(var(--angle)) scaleX(1.04);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.zy-cohesion-view .zy-shell-starfield__aurora,
  body.zy-cohesion-view .zy-shell-starfield__galaxy,
  body.zy-cohesion-view .zy-shell-starfield__dust-speck,
  body.zy-cohesion-view .zy-shell-starfield__comet {
    animation: none !important;
    transform: none !important;
  }

  body.zy-cohesion-view .zy-shell-starfield__comets {
    display: none !important;
  }
}

@media print {
  body.zy-cohesion-view .zy-shell-starfield__aurora,
  body.zy-cohesion-view .zy-shell-starfield__galaxies,
  body.zy-cohesion-view .zy-shell-starfield__dust,
  body.zy-cohesion-view .zy-shell-starfield__comets {
    display: none !important;
    content: none !important;
  }
}

/* v1.33.62 dark-mode cosmos refinement.
 * Keep the ambience CSS/DOM based for now: no canvas render loop before testing.
 * The goal is a subtler sky: star/dust band first, visible galaxy blobs second.
 */
@media only screen and (min-width: 900px) {
  body.zy-cohesion-view .zy-shell-starfield__milkyway {
    position: absolute;
    inset: -18%;
    z-index: 1;
    pointer-events: none;
    opacity: calc(var(--zy-starfield-opacity) * 0.42);
    transform: translate3d(0, 0, 0) rotate(-7deg) scale(1.08);
    transform-origin: 50% 50%;
    background:
      radial-gradient(circle at 14% 49%, rgba(255, 255, 255, 0.12) 0 0.055rem, transparent 0.095rem),
      radial-gradient(circle at 27% 52%, rgba(190, 219, 255, 0.085) 0 0.048rem, transparent 0.09rem),
      radial-gradient(circle at 41% 47%, rgba(255, 231, 188, 0.07) 0 0.05rem, transparent 0.095rem),
      radial-gradient(circle at 62% 55%, rgba(214, 231, 255, 0.075) 0 0.045rem, transparent 0.085rem),
      radial-gradient(circle at 78% 49%, rgba(245, 249, 255, 0.105) 0 0.052rem, transparent 0.094rem),
      linear-gradient(90deg,
        transparent 0%,
        rgba(92, 118, 214, 0.035) 18%,
        rgba(173, 196, 255, 0.090) 36%,
        rgba(255, 231, 184, 0.060) 47%,
        rgba(154, 118, 218, 0.080) 58%,
        rgba(82, 129, 213, 0.036) 78%,
        transparent 100%);
    background-size:
      10.5rem 6.6rem,
      13.2rem 8rem,
      16.4rem 9.6rem,
      18.8rem 11.2rem,
      21rem 12.4rem,
      100% 100%;
    filter: blur(0.45px) saturate(1.08);
    mix-blend-mode: screen;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.40) 18%, rgba(0, 0, 0, 0.88) 42%, rgba(0, 0, 0, 0.84) 58%, rgba(0, 0, 0, 0.34) 82%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.40) 18%, rgba(0, 0, 0, 0.88) 42%, rgba(0, 0, 0, 0.84) 58%, rgba(0, 0, 0, 0.34) 82%, transparent 100%);
    animation: zy-ambience-milkyway-drift 164s linear infinite alternate;
  }

  body.zy-cohesion-view .zy-shell-starfield__galaxy {
    opacity: calc(var(--galaxy-opacity) * 0.72);
    background:
      radial-gradient(ellipse at 50% 50%, rgba(255, 255, 255, 0.38) 0 2%, var(--galaxy-bulge) 7%, transparent 36%),
      radial-gradient(ellipse at 44% 50%, var(--galaxy-violet) 0 26%, transparent 68%),
      radial-gradient(ellipse at 58% 45%, var(--galaxy-blue) 0 22%, transparent 64%),
      radial-gradient(ellipse at 42% 58%, var(--galaxy-gold) 0 16%, transparent 54%);
    filter: blur(calc(var(--galaxy-blur) * 1.08)) saturate(1.04);
  }

  body.zy-cohesion-view .zy-shell-starfield__galaxy::before,
  body.zy-cohesion-view .zy-shell-starfield__galaxy::after {
    opacity: 0.36;
    background: linear-gradient(90deg, transparent 0%, rgba(220, 232, 255, 0.045) 24%, rgba(255, 255, 255, 0.10) 50%, rgba(255, 226, 176, 0.035) 74%, transparent 100%);
  }

  body.zy-cohesion-view .zy-shell-starfield__star-cloud {
    opacity: calc(var(--zy-starfield-opacity) * 0.24);
    filter: blur(0.55px) saturate(0.96);
  }
}

@keyframes zy-ambience-milkyway-drift {
  0% {
    transform: translate3d(-1.2%, -0.4%, 0) rotate(-7deg) scale(1.08);
    background-position: 0 0, 0 0, 0 0, 0 0, 0 0, 0 0;
  }
  100% {
    transform: translate3d(1.1%, 0.7%, 0) rotate(-6.4deg) scale(1.10);
    background-position: 1.2rem 0.8rem, -1.8rem 1.1rem, 1.4rem -0.9rem, -1.2rem -1.4rem, 2rem 1.2rem, 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.zy-cohesion-view .zy-shell-starfield__milkyway {
    animation: none !important;
  }
}

@media print {
  body.zy-cohesion-view .zy-shell-starfield__milkyway {
    display: none !important;
    content: none !important;
  }
}

/* v1.33.64 ambience QA pass.
 * Keep the effect CSS/DOM based, but avoid first-paint jitter and make the dark sky denser.
 */
@media only screen and (min-width: 900px) {
  body.zy-cohesion-view .zy-shell-starfield {
    opacity: 0;
    transition: opacity 520ms ease;
  }

  :root:not(.no-starfield):not([data-mode="light"]) body.zy-cohesion-view.zy-starfield-enabled .zy-shell-starfield.is-ready {
    opacity: 1;
  }

  body.zy-cohesion-view .zy-shell-starfield__star-cloud {
    opacity: calc(var(--zy-starfield-opacity) * 0.44);
    filter: blur(0.34px) saturate(1.04);
  }

  body.zy-cohesion-view .zy-shell-starfield__star-cloud::before,
  body.zy-cohesion-view .zy-shell-starfield__star-cloud::after {
    content: "";
    position: absolute;
    inset: -10%;
    pointer-events: none;
    background:
      radial-gradient(circle at 8% 18%, rgba(255,255,255,0.36) 0 0.045rem, transparent 0.088rem),
      radial-gradient(circle at 18% 72%, rgba(190,220,255,0.25) 0 0.04rem, transparent 0.082rem),
      radial-gradient(circle at 35% 34%, rgba(255,230,180,0.22) 0 0.043rem, transparent 0.084rem),
      radial-gradient(circle at 51% 81%, rgba(230,241,255,0.28) 0 0.04rem, transparent 0.082rem),
      radial-gradient(circle at 69% 23%, rgba(178,210,255,0.24) 0 0.043rem, transparent 0.085rem),
      radial-gradient(circle at 86% 58%, rgba(255,246,224,0.28) 0 0.04rem, transparent 0.082rem);
    background-size: 13rem 8rem, 15rem 10rem, 18rem 11rem, 21rem 13rem, 25rem 15rem, 29rem 17rem;
    mix-blend-mode: screen;
  }

  body.zy-cohesion-view .zy-shell-starfield__star-cloud::after {
    opacity: 0.42;
    transform: rotate(-10deg) scale(1.08);
    filter: blur(0.7px);
    background-size: 10rem 7rem, 14rem 9rem, 17rem 10rem, 20rem 12rem, 23rem 14rem, 27rem 16rem;
  }

  body.zy-cohesion-view .zy-shell-starfield__milkyway {
    opacity: calc(var(--zy-starfield-opacity) * 0.55);
    filter: blur(0.32px) saturate(1.16) brightness(1.04);
  }

  body.zy-cohesion-view .zy-shell-starfield__galaxy {
    opacity: calc(var(--galaxy-opacity) * 1.08);
    filter: blur(calc(var(--galaxy-blur) * 0.78)) saturate(1.18) brightness(1.08);
  }

  body.zy-cohesion-view .zy-shell-starfield__aurora {
    opacity: calc(var(--zy-starfield-opacity) * 0.54);
    filter: blur(13px) saturate(1.14) brightness(0.98);
  }

  body.zy-cohesion-view .zy-shell-starfield__dust-speck {
    opacity: calc(var(--opacity) * 1.18);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.zy-cohesion-view .zy-shell-starfield {
    transition: none !important;
  }
}

/* ===== fictioneer-story-gateway.css ===== */
/* Zyrenicus Fictioneer story gateway v1.33.51
 * Conversion-focused entry panel for Fictioneer story landing pages.
 * Keep this narrow: fcn_story only, before the normal Fictioneer story body/chapter list.
 */

body.single-fcn_story.zy-cohesion-view {
  --zy-story-gateway-bg: linear-gradient(135deg, rgba(22, 27, 39, 0.97), rgba(12, 15, 23, 0.985) 58%, rgba(26, 19, 35, 0.97));
  --zy-story-gateway-border: rgba(247, 214, 141, 0.22);
  --zy-story-gateway-border-hot: rgba(255, 226, 160, 0.40);
  --zy-story-gateway-text: rgba(246, 241, 231, 0.96);
  --zy-story-gateway-muted: rgba(224, 216, 199, 0.72);
  --zy-story-gateway-shadow: 0 22px 58px rgba(0, 0, 0, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.055);
  --zy-story-gateway-glow: 0 0 34px rgba(245, 205, 110, 0.13), 0 0 64px rgba(118, 142, 255, 0.08);
}

body.single-fcn_story.zy-cohesion-view .zy-story-gateway {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(17rem, 0.44fr);
  gap: clamp(1rem, 3vw, 1.8rem);
  align-items: stretch;
  max-width: min(100%, 74rem);
  margin: clamp(1rem, 3vw, 1.9rem) auto clamp(1.25rem, 3vw, 2.2rem);
  padding: clamp(1rem, 2.8vw, 1.55rem);
  overflow: clip;
  border: 1px solid var(--zy-story-gateway-border);
  border-radius: clamp(22px, 3vw, 32px);
  background:
    radial-gradient(circle at 17% 8%, rgba(255, 224, 166, 0.16), transparent 34%),
    radial-gradient(circle at 90% 0%, rgba(121, 151, 255, 0.16), transparent 35%),
    var(--zy-story-gateway-bg);
  box-shadow: var(--zy-story-gateway-shadow);
  color: var(--zy-story-gateway-text);
  transform: translateZ(0);
}

body.single-fcn_story.zy-cohesion-view .zy-story-gateway::before,
body.single-fcn_story.zy-cohesion-view .zy-story-gateway::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: -1;
}

body.single-fcn_story.zy-cohesion-view .zy-story-gateway::before {
  inset: 1px;
  border-radius: inherit;
  background:
    linear-gradient(120deg, rgba(255, 231, 177, 0.18), transparent 25%, transparent 70%, rgba(157, 187, 255, 0.12)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 34%);
  opacity: 0.72;
}

body.single-fcn_story.zy-cohesion-view .zy-story-gateway::after {
  inset: auto -12% -38% 34%;
  height: 9rem;
  border-radius: 999px;
  background: radial-gradient(ellipse, rgba(255, 220, 146, 0.16), transparent 68%);
  filter: blur(18px);
  opacity: 0.8;
}

body.single-fcn_story.zy-cohesion-view .zy-story-gateway__glow {
  position: absolute;
  inset: -40% auto auto -8%;
  width: clamp(12rem, 36vw, 28rem);
  height: clamp(12rem, 36vw, 28rem);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 228, 168, 0.15) 0 20%, rgba(255, 228, 168, 0.06) 42%, transparent 68%),
    conic-gradient(from 70deg, transparent, rgba(140, 165, 255, 0.10), transparent, rgba(255, 211, 135, 0.10), transparent);
  filter: blur(4px);
  opacity: 0.9;
  pointer-events: none;
}

body.single-fcn_story.zy-cohesion-view .zy-story-gateway__copy,
body.single-fcn_story.zy-cohesion-view .zy-story-gateway__actions {
  position: relative;
  z-index: 1;
  min-width: 0;
}

body.single-fcn_story.zy-cohesion-view .zy-story-gateway__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.74rem;
}

body.single-fcn_story.zy-cohesion-view .zy-story-gateway__eyebrow {
  width: fit-content;
  max-width: 100%;
  padding: 0.34rem 0.7rem;
  border: 1px solid rgba(255, 226, 160, 0.18);
  border-radius: 999px;
  background: rgba(255, 226, 160, 0.07);
  color: rgba(255, 226, 160, 0.92);
  font-family: "Cinzel", var(--ff-heading);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.1;
  text-transform: uppercase;
}

body.single-fcn_story.zy-cohesion-view .zy-story-gateway__title {
  margin: 0;
  max-width: 15ch;
  color: var(--zy-story-gateway-text);
  font-family: "Cinzel", var(--ff-heading);
  font-size: clamp(1.55rem, 1.08rem + 2.2vw, 3rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

body.single-fcn_story.zy-cohesion-view .zy-story-gateway__summary {
  max-width: 66ch;
  margin: 0;
  color: var(--zy-story-gateway-muted);
  font-size: clamp(0.96rem, 0.91rem + 0.22vw, 1.08rem);
  line-height: 1.62;
  text-wrap: pretty;
}

body.single-fcn_story.zy-cohesion-view .zy-story-gateway__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.48rem;
  margin-top: 0.2rem;
}

body.single-fcn_story.zy-cohesion-view .zy-story-gateway__facts span {
  display: inline-flex;
  min-height: 1.72rem;
  align-items: center;
  padding: 0.28rem 0.66rem;
  border: 1px solid rgba(202, 218, 248, 0.14);
  border-radius: 999px;
  background: rgba(202, 218, 248, 0.055);
  color: rgba(229, 233, 244, 0.78);
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.07em;
  line-height: 1.1;
  text-transform: uppercase;
}

body.single-fcn_story.zy-cohesion-view .zy-story-gateway__actions {
  display: grid;
  gap: 0.72rem;
  align-content: center;
}

body.single-fcn_story.zy-cohesion-view .zy-story-gateway__button {
  position: relative;
  display: grid;
  gap: 0.24rem;
  min-width: 0;
  min-height: 5rem;
  align-content: center;
  padding: 0.92rem 1rem;
  overflow: hidden;
  border: 1px solid rgba(255, 226, 160, 0.20);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 226, 160, 0.105), rgba(255, 226, 160, 0.035));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 13px 26px rgba(0, 0, 0, 0.18);
  color: rgba(249, 244, 234, 0.96);
  text-decoration: none;
  transform: translateZ(0);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease, filter 180ms ease;
}

body.single-fcn_story.zy-cohesion-view .zy-story-gateway__button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0 26%, rgba(255, 255, 255, 0.13) 45%, transparent 64%);
  opacity: 0;
  transform: translateX(-40%);
  transition: opacity 180ms ease, transform 520ms ease;
}

body.single-fcn_story.zy-cohesion-view .zy-story-gateway__button:hover,
body.single-fcn_story.zy-cohesion-view .zy-story-gateway__button:focus-visible {
  border-color: var(--zy-story-gateway-border-hot);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), var(--zy-story-gateway-glow), 0 16px 30px rgba(0, 0, 0, 0.24);
  filter: brightness(1.04);
  transform: translateY(-1px);
}

body.single-fcn_story.zy-cohesion-view .zy-story-gateway__button:hover::before,
body.single-fcn_story.zy-cohesion-view .zy-story-gateway__button:focus-visible::before {
  opacity: 1;
  transform: translateX(34%);
}

body.single-fcn_story.zy-cohesion-view .zy-story-gateway__button:focus-visible {
  outline: 2px solid rgba(255, 226, 160, 0.48);
  outline-offset: 3px;
}

body.single-fcn_story.zy-cohesion-view .zy-story-gateway__button:active {
  transform: translateY(0);
  filter: brightness(0.98);
}

body.single-fcn_story.zy-cohesion-view .zy-story-gateway__button--primary {
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 226, 160, 0.15), transparent 42%),
    linear-gradient(180deg, rgba(255, 226, 160, 0.15), rgba(255, 226, 160, 0.055));
}

body.single-fcn_story.zy-cohesion-view .zy-story-gateway__button--secondary {
  border-color: rgba(202, 218, 248, 0.16);
  background: linear-gradient(180deg, rgba(202, 218, 248, 0.09), rgba(202, 218, 248, 0.032));
}

body.single-fcn_story.zy-cohesion-view .zy-story-gateway__button.is-locked {
  border-color: rgba(255, 173, 102, 0.28);
}

body.single-fcn_story.zy-cohesion-view .zy-story-gateway__button-kicker {
  position: relative;
  z-index: 1;
  color: rgba(255, 226, 160, 0.92);
  font-family: "Cinzel", var(--ff-heading);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.1;
  text-transform: uppercase;
}

body.single-fcn_story.zy-cohesion-view .zy-story-gateway__button-title {
  position: relative;
  z-index: 1;
  display: -webkit-box;
  min-width: 0;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  color: rgba(246, 241, 231, 0.95);
  font-size: clamp(0.92rem, 0.85rem + 0.24vw, 1.02rem);
  font-weight: 800;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

body.single-fcn_story.zy-cohesion-view.zy-story-gateway-seen .zy-story-gateway {
  border-color: rgba(255, 226, 160, 0.28);
}

:root[data-mode="light"] body.single-fcn_story.zy-cohesion-view {
  --zy-story-gateway-bg: linear-gradient(135deg, rgba(255, 250, 238, 0.98), rgba(246, 238, 222, 0.98) 58%, rgba(240, 234, 225, 0.98));
  --zy-story-gateway-border: rgba(133, 95, 44, 0.18);
  --zy-story-gateway-border-hot: rgba(139, 91, 28, 0.36);
  --zy-story-gateway-text: rgba(44, 36, 28, 0.96);
  --zy-story-gateway-muted: rgba(76, 64, 52, 0.75);
  --zy-story-gateway-shadow: 0 18px 46px rgba(58, 44, 25, 0.13), inset 0 1px 0 rgba(255, 255, 255, 0.72);
  --zy-story-gateway-glow: 0 0 28px rgba(176, 120, 47, 0.13), 0 0 48px rgba(89, 120, 190, 0.08);
}

:root[data-mode="light"] body.single-fcn_story.zy-cohesion-view .zy-story-gateway__facts span {
  border-color: rgba(82, 98, 138, 0.14);
  background: rgba(82, 98, 138, 0.055);
  color: rgba(63, 69, 86, 0.78);
}

:root[data-mode="light"] body.single-fcn_story.zy-cohesion-view .zy-story-gateway__button {
  color: rgba(46, 37, 28, 0.96);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 10px 22px rgba(61, 45, 28, 0.11);
}

:root[data-mode="light"] body.single-fcn_story.zy-cohesion-view .zy-story-gateway__button-title {
  color: rgba(46, 37, 28, 0.94);
}

@media (max-width: 820px) {
  body.single-fcn_story.zy-cohesion-view .zy-story-gateway {
    grid-template-columns: 1fr;
  }

  body.single-fcn_story.zy-cohesion-view .zy-story-gateway__actions {
    grid-template-columns: 1fr;
  }

  body.single-fcn_story.zy-cohesion-view .zy-story-gateway__title {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  body.single-fcn_story.zy-cohesion-view .zy-story-gateway {
    margin-inline: auto;
    padding: 0.9rem;
    border-radius: 22px;
  }

  body.single-fcn_story.zy-cohesion-view .zy-story-gateway__button {
    min-height: 4.6rem;
    border-radius: 17px;
  }

  body.single-fcn_story.zy-cohesion-view .zy-story-gateway__facts span {
    min-height: 1.6rem;
    font-size: 0.7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.single-fcn_story.zy-cohesion-view .zy-story-gateway,
  body.single-fcn_story.zy-cohesion-view .zy-story-gateway__button,
  body.single-fcn_story.zy-cohesion-view .zy-story-gateway__button::before {
    transition: none !important;
    animation: none !important;
  }

  body.single-fcn_story.zy-cohesion-view .zy-story-gateway__button:hover::before,
  body.single-fcn_story.zy-cohesion-view .zy-story-gateway__button:focus-visible::before {
    opacity: 0;
    transform: none;
  }
}
