/* =============================================================================
   Fictioneer Child Theme V4 — front page (echoro-style, dark)

   Scoped to `body.fcv3-dark` (front page only). Layers:
     1. @font-face: self-hosted Fredoka variable font (theme fonts/ dir) so
        the display font works on local dev and production alike.
     2. AUTO-GENERATED parent-theme dark palette dump: the parent switches
        colors via html[data-mode]; visitors in light mode would otherwise
        inherit light-mode (dark-on-dark) values into this forced-dark page.
        Regenerate from fictioneer/css/properties.css (:root base block).
     3. Authored tokens/components (below the marker).

   Palette (echoro.net): slate-950 bg, slate-900 cards, cyan-500 brand.
   ========================================================================== */

@font-face {
  font-family: 'Fredoka Variable';
  src: url('../fonts/Fredoka-Variable.woff2') format('woff2-variations'),
       url('../fonts/Fredoka-Variable.ttf') format('truetype-variations');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

/* == 1. AUTO-GENERATED: parent theme base (dark) palette ================== */

/* Scope note: dark parent palette only outside light mode */
html:not([data-mode=light]) body.fcv3-dark {
  --font-saturation-offset: 0;
  --font-saturation: (1 + var(--font-saturation-offset));
  --font-lightness-offset: 0;
  --font-lightness: (1 + var(--font-lightness-offset));
  --wp--style--block-gap: 1.5rem;
  --sidebar-width: 256px;
  --sidebar-gap: 3rem;
  --sidebar-mobile-divider: 2px solid var(--layout-lineart-color);
  --sidebar-mobile-divider-margin: 1rem var(--layout-spacing-horizontal-small);
  --ff-input: var(--ff-base);
  --ff-card-title: var(--ff-heading);
  --ff-site-title: var(--ff-heading);
  --ff-story-title: var(--ff-heading);
  --ff-chapter-title: var(--ff-heading);
  --ff-chapter-list-title: var(--ff-base);
  --ff-card-body: var(--ff-note);
  --ff-card-list-link: inherit;
  --ff-nav-item: var(--ff-base);
  --header-height: calc(clamp(190px, 29.6875vw + 95px, 380px) - var(--page-inset-top, 0px));
  --site-title-font-size: clamp(32px, 4.375vw + 18px, 60px);
  --site-title-tagline-font-size: clamp(13px, 0.78125vw + 10.5px, 18px);
  --site-title-heading-color: var(--fg-400);
  --site-title-tagline-color: var(--fg-400);
  --site-title-text-shadow: 0 0 4px rgb(0 0 0 / 80%), 0 0 2px rgb(0 0 0 / 60%);
  --wp--preset--color--vivid-red: var(--red-400);
  --wp--preset--color--vivid-cyan-blue: #26aeeb;
  --wp--preset--color--vivid-purple: #c792fc;
  --theme-color-base: 219 15 17;
  --body-bg-color: var(--bg-900);
  --site-bg-color: var(--bg-800);
  --fullscreen-background: var(--page-bg-color);
  --dark-shade-rgb: 0 0 0;
  --read-ribbon-background: var(--bg-50);
  --read-ribbon-color: var(--fg-inverted);
  --read-ribbon-box-shadow: 0 0 2px rgb(0 0 0 / 30%);
  --code-background: rgb(var(--dark-shade-rgb) / 25%);
  --code-background-inline: rgb(var(--dark-shade-rgb) / 25%);
  --code-color: var(--fg-700);
  --spoiler-background: var(--bg-100);
  --spoiler-color-visible: var(--fg-inverted);
  --ins-background: var(--green-400);
  --ins-color: var(--fg-inverted);
  --del-background: var(--red-400);
  --del-color: var(--fg-inverted);
  --caption-overlay-background: linear-gradient( to top, hsla(0, 0%, 0%, 0.7) 0%, hsla(0, 0%, 0%, 0.691) 8.1%, hsla(0, 0%, 0%, 0.666) 15.5%, hsla(0, 0%, 0%, 0.627) 22.5%, hsla(0, 0%, 0%, 0.577) 29%, hsla(0, 0%, 0%, 0.519) 35.3%, hsla(0, 0%, 0%, 0.454) 41.2%, hsla(0, 0%, 0%, 0.385) 47.1%, hsla(0, 0%, 0%, 0.315) 52.9%, hsla(0, 0%, 0%, 0.246) 58.8%, hsla(0, 0%, 0%, 0.181) 64.7%, hsla(0, 0%, 0%, 0.123) 71%, hsla(0, 0%, 0%, 0.073) 77.5%, hsla(0, 0%, 0%, 0.034) 84.5%, hsla(0, 0%, 0%, 0.009) 91.9%, hsla(0, 0%, 0%, 0) 100% );
  --caption-overlay-color: #fff;
  --caption-padding: 1.25rem .5rem .5rem;
  --progress-bar-background: var(--navigation-background);
  --progress-bar-color: var(--bg-200);
  --skeleton-shape-color: var(--bg-300);
  --skeleton-cutout-color: var(--page-bg-color);
  --embed-background: var(--disabled-pattern);
  --embed-box-shadow: 0 0 1px rgb(var(--dark-shade-rgb) / 70%);
  --table-border-color: var(--fg-950);
  --table-border-color-striped: var(--fg-950);
  --table-background-striped: rgb(var(--dark-shade-rgb) / 15%);
  --calendar-th-background: var(--bg-800);
  --calendar-border-color: var(--bg-800);
  --calendar-color: var(--fg-700);
  --paragraph-spacing: 1.5rem;
  --blockquote-background: rgb(var(--dark-shade-rgb) / 15%);
  --placeholder-background: var(--bg-900);
  --kbd-background: rgb(var(--dark-shade-rgb) / 17%);
  --infobox-background: rgb(var(--dark-shade-rgb) / 17%);
  --text-shadow: -1px -1px 1px rgb(0 0 0 / 12%);
  --checkmark-checked: var(--fg-600);
  --checkmark-not-checked: var(--bg-900);
  --tax-cloud-current: var(--primary-500);
  --disabled-pattern: rgb(var(--dark-shade-rgb) / 8%) repeating-linear-gradient(-45deg, rgb(var(--dark-shade-rgb) / 8%), rgb(var(--dark-shade-rgb) / 8%) 2px, transparent 2px, transparent 5px);
  --strong-filter: brightness(1.05);
  --invert-filter: invert(0);
  --splide-arrow: var(--bg-400);
  --splide-arrow-hover: var(--bg-100);
  --splide-arrow-active: var(--bg-100);
  --splide-pagination: var(--bg-400);
  --splide-pagination-hover: var(--bg-300);
  --splide-pagination-active: var(--bg-100);
  --litrpg-background: var(--bg-50);
  --litrpg-color: var(--fg-inverted);
  --litrpg-ins: var(--green-600);
  --litrpg-del: var(--red-600);
  --litrpg-polygon: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px), 0 8px);
  --litrpg-drop-shadow: var(--drop-shadow-m);
  --content-li-background: var(--content-li-background-gradient);
  --content-li-background-full: hsl(var(--bg-950-free) / 10%);
  --content-li-background-gradient: linear-gradient(to left, hsl(var(--bg-950-free) / 10%) 0%, hsl(var(--bg-950-free) / 10%) 55%, transparent 90%);
  --content-li-hr-border: 1.5px solid var(--hr-border-color, var(--layout-lineart-color));
  --current-content-li-background: rgb(0 0 0 / 25%);
  --primary-400: hsl(46deg 87% 75%);
  --primary-500: hsl(44deg 86% 70%);
  --primary-600: hsl(34deg 82% 70%);
  --green-400: #86a35f;
  --green-500: #78994d;
  --green-600: #6c8a45;
  --red-400: #f26666;
  --red-500: #f15555;
  --red-600: #d94d4d;
  --bg-50-free: calc(222deg + var(--hue-rotate)) calc(12% * var(--saturation)) clamp(40%, 80% * var(--darken), 90%);
  --bg-100-free: calc(222deg + var(--hue-rotate)) calc(12% * var(--saturation)) clamp(34%, 68% * var(--darken), 84%);
  --bg-200-free: calc(222deg + var(--hue-rotate)) calc(12% * var(--saturation)) clamp(27%, 54% * var(--darken), 77%);
  --bg-300-free: calc(222deg + var(--hue-rotate)) calc(12% * var(--saturation)) clamp(19%, 38% * var(--darken), 69%);
  --bg-400-free: calc(222deg + var(--hue-rotate)) calc(13% * var(--saturation)) clamp(15.5%, 31% * var(--darken), 65.5%);
  --bg-500-free: calc(222deg + var(--hue-rotate)) calc(13% * var(--saturation)) clamp(13.25%, 26.5% * var(--darken), 63.25%);
  --bg-600-free: calc(222deg + var(--hue-rotate)) calc(14% * var(--saturation)) clamp(11.75%, 23.5% * var(--darken), 61.75%);
  --bg-700-free: calc(221deg + var(--hue-rotate)) calc(16% * var(--saturation)) clamp(10%, 20% * var(--darken), 60%);
  --bg-800-free: calc(219deg + var(--hue-rotate)) calc(15% * var(--saturation)) clamp(8.5%, 17% * var(--darken), 58.5%);
  --bg-900-free: calc(222deg + var(--hue-rotate)) calc(25% * var(--saturation)) clamp(4%, 8% * var(--darken), 54%);
  --bg-950-free: calc(222deg + var(--hue-rotate)) calc(60% * var(--saturation)) clamp(2%, 4% * var(--darken), 52%);
  --bg-50: hsl(var(--bg-50-free));
  --bg-100: hsl(var(--bg-100-free));
  --bg-200: hsl(var(--bg-200-free));
  --bg-300: hsl(var(--bg-300-free));
  --bg-400: hsl(var(--bg-400-free));
  --bg-500: hsl(var(--bg-500-free));
  --bg-600: hsl(var(--bg-600-free));
  --bg-700: hsl(var(--bg-700-free));
  --bg-800: hsl(var(--bg-800-free));
  --bg-900: hsl(var(--bg-900-free));
  --bg-950: hsl(var(--bg-950-free));
  --layout-spacing-vertical: clamp(24px, 5vw - 0px, 48px);
  --layout-spacing-horizontal: clamp(20px, 12.5% - 40px, 80px);
  --layout-spacing-horizontal-small: clamp(10px, 12.5% - 30px, 20px);
  --layout-border-radius-large: 4px;
  --layout-border-radius-small: 2px;
  --layout-link-color: inherit;
  --layout-link-color-hover: inherit;
  --layout-lineart-color: var(--bg-300);
  --layout-hr-dots-color: var(--bg-200);
  --layout-hr-border: 2px solid var(--hr-border-color, var(--layout-lineart-color));
  --layout-hr-border-dashed: 2px dashed var(--hr-border-color, var(--layout-lineart-color));
  --layout-widget-spacing: 2rem;
  --minimal-page-box-shadow: 0 0 1px rgb(0 0 0 / 40%);
  --minimal-page-drop-shadow: drop-shadow(0 0 1px rgb(0 0 0 / 40%));
  --minimal-box-shadow: 0 0 1px rgb(0 0 0 / 40%);
  --minimal-drop-shadow: drop-shadow(0 0 1px rgb(0 0 0 / 40%));
  --header-image-drop-shadow: drop-shadow(0 0 2px rgb(0 0 0 / 40%));
  --page-bg-color: var(--bg-700);
  --page-box-shadow: 0 0 3px rgb(0 0 0 / 20%);
  --page-drop-shadow: drop-shadow(0 1px 1.5px rgb(0 0 0 / 25%));
  --card-bg-color: var(--bg-600);
  --card-footer-bg-color: var(--bg-800);
  --card-overlay-bg-color: var(--bg-800);
  --card-content-li-background: var(--card-content-li-background-gradient);
  --card-content-li-background-full: hsl(var(--bg-950-free) / 16%);
  --card-content-li-background-gradient: linear-gradient(to left, hsl(var(--bg-950-free) / 16%) 0%, hsl(var(--bg-950-free) / 16%) 55%, transparent 90%);
  --card-label-color: var(--fg-inverted);
  --card-label-background: var(--fg-500);
  --card-unavailable-filter: grayscale(0.5) blur(1.5px);
  --card-frame-border-color: var(--bg-800);
  --navigation-background: var(--bg-900);
  --navigation-background-start-opacity: 0;
  --navigation-background-end-opacity: 1;
  --navigation-submenu-background: var(--bg-400);
  --navigation-item-background-hover: var(--bg-400);
  --navigation-subitem-background-hover: var(--bg-300);
  --navigation-color: var(--fg-400);
  --navigation-color-hover: var(--fg-300);
  --navigation-font-size: clamp(14px, 0.5089058524vw + 12.0916030534px, 16px);
  --navigation-subitem-divider: 1px solid var(--bg-700);
  --navigation-submenu-box-shadow: 0 4px 3px -2px rgb(0 0 0 / 30%);
  --navigation-drop-shadow: drop-shadow(0 3px 2px rgb(0 0 0 / 20%));
  --navigation-new-follow-background: var(--primary-500);
  --navigation-new-follow-color: var(--fg-inverted);
  --tab-background: var(--bg-500);
  --tab-background-hover: var(--bg-400);
  --tab-background-active: var(--bg-100);
  --tab-color: var(--fg-600);
  --tab-color-hover: var(--fg-500);
  --tab-color-active: var(--fg-inverted);
  --tab-text-shadow: 0 0 1px rgb(0 0 0 / 70%);
  --pagination-background: var(--bg-500);
  --pagination-background-hover: var(--bg-400);
  --pagination-background-current: var(--bg-200);
  --pagination-color: var(--fg-600);
  --pagination-color-hover: var(--fg-500);
  --pagination-color-current: var(--fg-inverted);
  --fg-isolated-footer: var(--fg-700);
  --fg-isolated-footer-hover: var(--fg-300);
  --bg-isolated-footer: var(--bg-900);
  --modal-overlay: rgb(0 0 0 / 35%);
  --modal-bg-color: var(--bg-600);
  --box-shadow-border: 0 0 0 1.5px var(--card-frame-border-color, rgb(0 0 0 / 60%));
  --box-shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 9%), 0 -1px 1px 0 rgb(0 0 0 / 3%);
  --box-shadow-s: 0 1px 3px 0 rgb(0 0 0 / 11%), 0 1px 2px -1px rgb(0 0 0 / 10%);
  --box-shadow: 0 3px 6px -1px rgb(0 0 0 / 12%), 0 -1px 4px -2px rgb(0 0 0 / 15%);
  --box-shadow-m: rgb(0 0 0 / 14%) 0 2px 5px 0, rgb(0 0 0 / 5%) 0 1px 1px 0;
  --box-shadow-l: rgb(0 0 0 / 10%) 0 5px 12px -2px, rgb(0 0 0 / 15%) 0 1px 7px -3px;
  --box-shadow-xl: 0 3px 8px -1px rgb(0 0 0 / 9%), 0 3px 12px -1px rgb(0 0 0 / 17%);
  --drop-shadow-border: drop-shadow(0 -1.5px 0 var(--card-frame-border-color,rgb(0 0 0/70%))) drop-shadow(0 1.5px 0 var(--card-frame-border-color,rgb(0 0 0/70%))) drop-shadow(1.5px 0 0 var(--card-frame-border-color,rgb(0 0 0/70%))) drop-shadow(-1.5px 0 0 var(--card-frame-border-color,rgb(0 0 0/70%)));
  --drop-shadow-xs: drop-shadow(0 1px 1px rgb(0 0 0 / 6%)) drop-shadow(0 0 1px rgb(0 0 0 / 6%));
  --drop-shadow-s: drop-shadow(0 1px 2px rgb(0 0 0 / 7%)) drop-shadow(0 1px 1px rgb(0 0 0 / 7%));
  --drop-shadow: drop-shadow(0 2px 2px rgb(0 0 0 / 10%)) drop-shadow(0 -1px 5px rgb(0 0 0 / 4%));
  --drop-shadow-m: drop-shadow(0 2px 3px rgb(0 0 0 / 10%)) drop-shadow(0 1px 1px rgb(0 0 0 / 10%));
  --drop-shadow-l: drop-shadow(0 4px 5px rgb(0 0 0 / 5%)) drop-shadow(0 3px 5px rgb(0 0 0 / 7%));
  --drop-shadow-xl: drop-shadow(0 3px 5px rgb(0 0 0 / 11%)) drop-shadow(0 3px 6px rgb(0 0 0 / 11%));
  --mobile-menu-background: var(--bg-700);
  --mobile-menu-advanced-background: color-mix(in srgb, var(--bg-900), white 3%);
  --mobile-menu-box-shadow: 2px 0 3px rgb(0 0 0 / 30%);
  --mobile-advanced-menu-site-box-shadow: inset -5px 0 3px -4px rgb(0 0 0 / 30%);
  --mobile-menu-overlay: rgb(0 0 0 / 50%);
  --mobile-menu-bookmark-progress-background: rgb(0 0 0 / 40%);
  --font-smoothing-webkit: subpixel-antialiased;
  --font-smoothing-moz: auto;
  --font-line-height-base: 1.7;
  --font-letter-spacing-base: 0.01em;
  --fs-xxxs: .625rem;
  --fs-xxs: .75rem;
  --fs-xs: .875rem;
  --fs-s: 1rem;
  --fs-m: 1.125rem;
  --fs-ml: 1.25rem;
  --fs-l: 1.5rem;
  --fs-xl: 1.75rem;
  --fs-xxl: 2.125rem;
  --fs-xxxl: 2.5rem;
  --fs-xxxxl: 3rem;
  --fs-em-xxxs: .625em;
  --fs-em-xxs: .75em;
  --fs-em-xs: .875em;
  --fs-em-s: 1em;
  --fs-em-m: 1.125em;
  --fs-em-ml: 1.25em;
  --fs-em-l: 1.5em;
  --fs-em-xl: 1.75em;
  --fs-em-xxl: 2.125em;
  --fs-em-xxxl: 2.5em;
  --fs-em-xxxxl: 3em;
  --fs-dxxs: clamp(11px, 0.5434782609vw + 8.8260869565px, 13px);
  --fs-dxs: clamp(12px, 0.2717391304vw + 10.9130434783px, 13px);
  --fs-ds: clamp(13px, 0.2717391304vw + 11.9130434783px, 14px);
  --fs-widget: clamp(13px, 5.5cqw, 15px);
  --heading-link-color: var(--fg-400);
  --heading-link-color-hover: var(--fg-200);
  --inline-link-color: var(--primary-500);
  --inline-link-color-hover: var(--primary-400);
  --inline-link-color-visited: var(--primary-600);
  --inline-link-text-decoration: underline transparent solid 1px;
  --inline-link-text-decoration-hover: underline currentColor solid 1px;
  --widget-link-color: inherit;
  --widget-link-color-hover: var(--fg-200);
  --bookmark-color-alpha: #7d8497;
  --bookmark-color-beta: #e06552;
  --bookmark-color-gamma: #77BFA3;
  --bookmark-color-delta: #3C91E6;
  --bookmark-line: var(--primary-500);
  --bookmark-button-color-active-alpha: var(--fg-inverted);
  --bookmark-button-color-active-beta: var(--fg-inverted);
  --bookmark-button-color-active-gamma: var(--fg-inverted);
  --bookmark-button-color-active-delta: var(--fg-inverted);
  --bookmark-progress-opacity: .15;
  --bookmark-progress-mobile-opacity: .75;
  --button-font-weight: 500;
  --button-box-shadow: none;
  --button-color-active: var(--fg-inverted);
  --button-background-active: var(--bg-100);
  --button-border-active: 1px solid transparent;
  --button-barberpole: var(--bg-500);
  --button-oauth-connected: var(--button-background-active);
  --button-primary-background: var(--bg-400);
  --button-primary-background-hover: var(--bg-300);
  --button-primary-background-disabled: var(--bg-500);
  --button-primary-color: var(--fg-400);
  --button-primary-color-hover: var(--fg-300);
  --button-primary-color-disabled: var(--fg-700);
  --button-primary-filter-disabled: saturate(.7) opacity(.3) brightness(1.4);
  --button-secondary-background: transparent;
  --button-secondary-background-hover: var(--bg-500);
  --button-secondary-background-disabled: repeating-linear-gradient(-45deg, rgb(255 255 255 / 6%), rgb(255 255 255 / 6%) 2px, transparent 2px, transparent 4px);
  --button-secondary-color: var(--fg-600);
  --button-secondary-color-hover: var(--fg-400);
  --button-secondary-color-disabled: var(--fg-800);
  --button-secondary-border: 1px solid var(--bg-300);
  --button-secondary-border-hover: 1px solid var(--bg-200);
  --button-secondary-border-disabled: 1px solid var(--bg-300);
  --button-warning-background: var(--red-500);
  --button-warning-background-hover: var(--red-600);
  --button-warning-color: #fff;
  --button-warning-color-hover: #fff;
  --button-suggestion-color: var(--fg-inverted);
  --button-suggestion-color-hover: var(--fg-inverted);
  --button-suggestion-background: var(--bg-100);
  --button-suggestion-background-hover: var(--bg-50);
  --button-quick-background: var(--bg-500);
  --button-quick-background-hover: var(--bg-300);
  --button-quick-color: var(--fg-600);
  --button-quick-color-hover: var(--fg-400);
  --button-file-block-color: var(--fg-inverted);
  --button-file-block-color-hover: var(--fg-inverted);
  --button-file-block-background: var(--bg-100);
  --button-file-block-background-hover: var(--bg-50);
  --post-password-background: var(--input-background);
  --post-password-cutout: var(--bg-700);
  --post-password-submit-color: var(--bg-500);
  --input-placeholder-color: var(--fg-950);
  --input-background: rgb(var(--dark-shade-rgb) / 32%);
  --input-background-disabled: rgb(var(--dark-shade-rgb) / 15%) repeating-linear-gradient(-45deg, rgb(var(--dark-shade-rgb) / 15%), rgb(var(--dark-shade-rgb) / 15%) 2px, transparent 2px, transparent 5px);
  --input-color: var(--fg-500);
  --input-color-disabled: var(--fg-800);
  --input-fill: var(--fg-700);
  --input-range-thumb: var(--fg-700);
  --input-range-thumb-hover: var(--fg-300);
  --input-token-background: var(--bg-500);
  --input-token-color: var(--fg-400);
  --popup-menu-background: var(--bg-50);
  --popup-menu-background-hover: var(--bg-100);
  --popup-menu-color: var(--fg-inverted);
  --popup-menu-color-hover: var(--fg-inverted);
  --micro-menu-background: var(--bg-900);
  --micro-menu-color: var(--fg-400);
  --micro-menu-color-hover: var(--fg-200);
  --micro-menu-box-shadow: var(--box-shadow-l);
  --tooltip-background: var(--bg-50);
  --tooltip-text: var(--fg-inverted);
  --notice-default-background: var(--bg-50);
  --notice-default-color: var(--fg-inverted);
  --notice-warning-background: var(--red-500);
  --notice-warning-color: #fff;
  --notice-success-background: var(--green-500);
  --notice-success-color: #fff;
  --notice-box-shadow: var(--box-shadow-l);
  --comment-background: rgb(var(--dark-shade-rgb) / 15%);
  --comment-background-private: var(--comment-background) repeating-linear-gradient(-45deg, rgb(0 0 0 / 10%), rgb(0 0 0 / 10%) 3px, transparent 3px, transparent 6px);
  --comment-background-deleted: var(--comment-background) repeating-linear-gradient(-45deg, rgb(255 255 255 / 3%), rgb(255 255 255 / 3%) 3px, transparent 3px, transparent 6px);
  --comment-background-offensive: var(--comment-background) repeating-linear-gradient(45deg, rgb(255 255 255 / 3%), rgb(255 255 255 / 3%) 3px, transparent 3px, transparent 6px);
  --comment-background-sticky: rgb(var(--dark-shade-rgb) / 20%);
  --comment-border-sticky: 1px dashed rgb(255 255 255 / 20%);
  --load-comments-background: rgb(var(--dark-shade-rgb) / 15%);
  --load-comments-background-hover: rgb(var(--dark-shade-rgb) / 25%);
  --load-comments-color: var(--fg-700);
  --load-comments-color-hover: var(--fg-600);
  --transition-duration: .2s;
  --text-selection-background: rgb(255 255 255 / 20%);
  --text-selection-color: var(--fg-100);
  --scrollbar-background: rgb(var(--dark-shade-rgb) / 20%);
  --scrollbar-thumb: var(--fg-950);
  --scrollbar-box-shadow: inset 0 0 6px rgb(0 0 0 / 10%);
  --badge-generic-color: var(--fg-400);
  --badge-generic-background: #505062;
  --badge-supporter-color: var(--fg-100);
  --badge-supporter-background: #e4445e;
  --badge-moderator-color: var(--fg-200);
  --badge-moderator-background: #4d628f;
  --badge-admin-color: var(--fg-100);
  --badge-admin-background: #79518d;
  --badge-author-color: var(--fg-200);
  --badge-author-background: #b37819;
  --badge-override-color: var(--fg-300);
  --badge-override-background: #5a5a7f;
  --fg-100: hsl(calc(222deg + var(--hue-rotate)) max(calc(40% * (var(--font-saturation) + var(--saturation) - 1)), 0%) clamp(0%, calc(93% * var(--font-lightness, 1)), 100%));
  --fg-200: hsl(calc(222deg + var(--hue-rotate)) max(calc(26% * (var(--font-saturation) + var(--saturation) - 1)), 0%) clamp(0%, calc(89% * var(--font-lightness, 1)), 100%));
  --fg-300: hsl(calc(224deg + var(--hue-rotate)) max(calc(20% * (var(--font-saturation) + var(--saturation) - 1)), 0%) clamp(0%, calc(85% * var(--font-lightness, 1)), 100%));
  --fg-400: hsl(calc(222deg + var(--hue-rotate)) max(calc(18% * (var(--font-saturation) + var(--saturation) - 1)), 0%) clamp(0%, calc(80.5% * var(--font-lightness, 1)), 100%));
  --fg-500: hsl(calc(222deg + var(--hue-rotate)) max(calc(18% * (var(--font-saturation) + var(--saturation) - 1)), 0%) clamp(0%, calc(77% * var(--font-lightness, 1)), 100%));
  --fg-600: hsl(calc(224deg + var(--hue-rotate)) max(calc(18% * (var(--font-saturation) + var(--saturation) - 1)), 0%) clamp(0%, calc(71% * var(--font-lightness, 1)), 100%));
  --fg-700: hsl(calc(224deg + var(--hue-rotate)) max(calc(16% * (var(--font-saturation) + var(--saturation) - 1)), 0%) clamp(0%, calc(65% * var(--font-lightness, 1)), 100%));
  --fg-800: hsl(calc(222deg + var(--hue-rotate)) max(calc(12% * (var(--font-saturation) + var(--saturation) - 1)), 0%) clamp(0%, calc(61% * var(--font-lightness, 1)), 100%));
  --fg-900: hsl(calc(222deg + var(--hue-rotate)) max(calc(11% * (var(--font-saturation) + var(--saturation) - 1)), 0%) clamp(0%, calc(54% * var(--font-lightness, 1)), 100%));
  --fg-950: hsl(calc(222deg + var(--hue-rotate)) max(calc(9% * (var(--font-saturation) + var(--saturation) - 1)), 0%) clamp(0%, calc(49% * var(--font-lightness, 1)), 100%));
  --fg-tinted: hsl(calc(224deg + var(--hue-rotate)) max(calc(22% * (var(--font-saturation) + var(--saturation) - 1)), 0%) clamp(0%, calc(76% * var(--font-lightness, 1)), 100%));
  --fg-inverted: hsl(calc(222deg + var(--hue-rotate)) max(calc(20% * (var(--font-saturation) + var(--saturation) - 1)), 0%) clamp(0%, calc(5% * var(--font-lightness, 1)), 100%));
  --consent-banner-color: var(--fg-600);
  --consent-banner-background: var(--bg-900);
  --paragraph-selection-background: rgb(255 255 255 / 10%);
  --paragraph-tools-filter: drop-shadow(0 1px 4px rgb(0 0 0 / 33%));
  --button-bookmark-background-active: var(--primary-500);
  --tts-background: var(--bg-900);
  --tts-button-active-background: var(--primary-500);
  --tts-button-active-text: var(--fg-inverted);
  --tts-current-reading-background: rgb(255 255 255 / 5%);
  --toggle-background: transparent;
  --toggle-background-checked: var(--bg-100);
  --toggle-background-hover: var(--bg-50);
  --toggle-color: var(--fg-600);
  --toggle-color-hover: var(--fg-300);
  --toggle-color-checked: var(--fg-inverted);
  --toggle-color-checked-hover: var(--fg-inverted);
  --toggle-border: var(--bg-100);
  --toggle-border-checked: var(--bg-100);
  --toggle-border-hover: var(--bg-50);
  --tag-background: var(--bg-400);
  --tag-background-hover: var(--bg-300);
  --tag-color: var(--fg-400);
  --tag-color-hover: var(--fg-200);
  --tag-secondary-background: transparent;
  --tag-secondary-background-hover: var(--bg-400);
  --tag-secondary-color: var(--fg-800);
  --tag-secondary-color-hover: var(--fg-200);
  --tag-secondary-border: .5px solid var(--bg-300);
  --tag-secondary-border-hover: .5px solid transparent;
  --tag-inline-color: var(--fg-700);
  --tag-inline-color-hover: var(--fg-400);
  --tag-warning-background: rgb(246 96 85 / 5%);
  --tag-warning-background-hover: rgb(246 96 85 / 50%);
  --tag-warning-color: var(--fg-800);
  --tag-warning-color-hover: var(--fg-100);
  --tag-warning-border: .5px solid var(--bg-300);
  --tag-warning-border-hover: .5px solid transparent;
  --mobile-menu-text-shadow: none;
  --story-blog-li-background: var(--minimal-content-li-background, var(--content-li-background-full));
  --chapter-li-background: var(--minimal-content-li-background, var(--content-li-background-full));
  --card-box-shadow: 0 0 0 1px var(--card-frame-border-color, rgb(0 0 0 / 20%));
  --card-drop-shadow: 0 0 1px var(--card-frame-border-color, rgb(0 0 0 / 30%));
  --card-style-border-width: 1px;

}

/* == 2. AUTHORED ========================================================== */

/* -- Color harmonization: align parent chrome with v3 tokens ------------- */

body.fcv3-dark .main-navigation,
body.fcv3-dark .main-navigation__left a,
body.fcv3-dark .main-navigation .menu-item a {
  color: var(--fcv3-fg-muted);
}
body.fcv3-dark .main-navigation .menu-item a:hover,
body.fcv3-dark .main-navigation .menu-item a:focus-visible,
body.fcv3-dark .main-navigation .menu-item.current-menu-item > a {
  color: var(--fcv3-fg);
}
body.fcv3-dark .main-navigation__background {
  background-color: rgba(var(--fcv3-bg-rgb), 0.97);
}
body.fcv3-dark .header__title-heading a,
body.fcv3-dark .header__title-link {
  color: var(--fcv3-fg);
}
/* -- Parent main background plate: KILL ----------------------------------
   The parent injects .main__background via the fictioneer_main hook: an
   absolute, z-index:0, OPAQUE plate (painted --page-bg-color) meant for the
   v1 page look. v1 content is shielded by a positioned wrapper; v3's static
   sections would paint UNDER it (CSS painting order), which reads as a solid
   black region in some browsers. v3 paints its own background — drop it. */
body.fcv3-dark .main.fcv3-page .main__background {
  display: none !important;
}
/* -- Parent big site-title header: KILL -----------------------------------
   The parent renders a large .header block (site title + tagline, up to
   ~380px tall via --header-height) above the content. On the v3 front page
   it only duplicates what the hero already carries — echoro goes slim nav
   straight into the hero, which reads much cleaner. The sticky
   #full-navigation bar is a separate element and stays. */
body.fcv3-dark .header,
body.fcv3-dark .header-background {
  display: none !important;
}
/* == TOKENS ============================================================== */

body.fcv3-dark {
  color-scheme: dark;

  /* echoro dark palette (globals.css, WCAG AA on #020617) */
  --fcv3-bg-rgb: 2, 6, 23;
  --fcv3-card-rgb: 15, 23, 42;
  --fcv3-muted-rgb: 30, 41, 59;
  --fcv3-border-rgb: 148, 163, 184;
  --fcv3-shadow-card: 0 10px 15px -3px rgba(0, 0, 0, 0.25), 0 4px 6px -4px rgba(0, 0, 0, 0.25);
  --fcv3-shadow-hover: 0 20px 32px -12px rgba(0, 0, 0, 0.45), 0 8px 20px -12px rgba(6, 182, 212, 0.22);
  --fcv3-shadow-panel: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
  --fcv3-bg: #020617;
  --fcv3-card: #0f172a;
  --fcv3-muted: #1e293b;
  --fcv3-fg: #f1f5f9;
  --fcv3-fg-muted: #94a3b8;
  --fcv3-primary: #06b6d4;
  --fcv3-primary-contrast: #052027;
  --fcv3-success: #10b981;
  --fcv3-warning: #fbbf24;
  --fcv3-danger: #ef4444;
  --fcv3-border: rgba(51, 65, 85, 0.4);
  --fcv3-border-soft: rgba(51, 65, 85, 0.35);
  --fcv3-border-hover: rgba(6, 182, 212, 0.4);
  --fcv3-radius-md: 6px;
  --fcv3-radius-lg: 10px;
  --fcv3-radius-xl: 12px;
  --fcv3-radius-card: 16px;
  --fcv3-radius-hero: 24px;
  --fcv3-radius-pill: 9999px;
  --fcv3-font: 'Fredoka Variable', 'Fredoka', system-ui, -apple-system,
    'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  /* Parent theme surface variables — flips header/main/footer together */
  --site-bg-color: var(--fcv3-bg);
  --body-bg-color: var(--fcv3-bg);
  --page-bg-color: var(--fcv3-bg);
  --card-bg-color: var(--fcv3-card);
  --header-background-color: var(--fcv3-bg);

  background-color: var(--fcv3-bg);
  color: var(--fcv3-fg);
  font-family: var(--fcv3-font);
}
body.fcv3-dark .site,
body.fcv3-dark .header,
body.fcv3-dark .footer {
  background-color: var(--fcv3-bg);
}
html[data-mode=light] body.fcv3-dark {
  color-scheme: light;

  /* Light palette (UX pass): slate-100 canvas makes white cards pop (surface
     separation), cyan-700 keeps >=4.5:1 on white for text AND button labels,
     shadows are soft/low-opacity instead of the dark-mode heavy scrims. */
  --fcv3-bg-rgb: 241, 245, 249;
  --fcv3-card-rgb: 255, 255, 255;
  --fcv3-muted-rgb: 226, 232, 240;
  --fcv3-border-rgb: 148, 163, 184;
  --fcv3-shadow-card: 0 1px 2px rgba(15, 23, 42, 0.05), 0 6px 16px -6px rgba(15, 23, 42, 0.1);
  --fcv3-shadow-hover: 0 8px 20px -8px rgba(15, 23, 42, 0.16), 0 2px 4px rgba(15, 23, 42, 0.05);
  --fcv3-shadow-panel: 0 12px 32px -12px rgba(15, 23, 42, 0.18);
  --fcv3-bg: #f1f5f9;
  --fcv3-card: #ffffff;
  --fcv3-muted: #e2e8f0;
  --fcv3-fg: #1e293b;
  --fcv3-fg-muted: #5c6b7f;
  --fcv3-primary: #0e7490;
  --fcv3-primary-strong: #155e75;
  --fcv3-primary-contrast: #ffffff;
  --fcv3-success: #047857;
  --fcv3-warning: #a16207;
  --fcv3-border: rgba(148, 163, 184, 0.5);
  --fcv3-border-soft: rgba(148, 163, 184, 0.32);
  --fcv3-border-hover: rgba(14, 116, 144, 0.5);

  /* Parent surfaces follow the light palette */
  --site-bg-color: var(--fcv3-bg);
  --body-bg-color: var(--fcv3-bg);
  --page-bg-color: var(--fcv3-bg);
  --card-bg-color: var(--fcv3-card);
  --header-background-color: var(--fcv3-bg);

  background-color: var(--fcv3-bg);
  color: var(--fcv3-fg);
}
body.fcv3-dark ::selection {
  background-color: rgba(6, 182, 212, 0.35);
  color: var(--fcv3-fg);
}
body.fcv3-dark .main.fcv3-page {
  max-width: none;
  margin: 0;
  padding: 0;
  min-height: 60vh;
}
/* Login-state toggles (both variants ship in the HTML for cache safety) */
body.fcv3-dark:not(.logged-in) .fcv3-continue { display: none; }
body.fcv3-dark.logged-in .fcv3-guest-cta { display: none; }
/* == LAYOUT ============================================================== */

.fcv3-container {
  max-width: 1400px;
  margin-inline: auto;
  padding-inline: 16px;
}
.fcv3-section {
  padding-block-start: 40px;
}
.fcv3-section__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-block-end: 16px;
}
.fcv3-section__headingleft {
  min-width: 0;
}
.fcv3-section__title {
  margin: 0;
  font-family: var(--fcv3-font);
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.35;
  color: var(--fcv3-fg);
}
.fcv3-section__subtitle {
  margin: 2px 0 0;
  font-size: 0.75rem;
  color: var(--fcv3-fg-muted);
  line-height: 1.4;
}
.fcv3-section__more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--fcv3-primary);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s ease;
}
.fcv3-section__more:hover,
.fcv3-section__more:focus-visible {
  color: rgba(6, 182, 212, 0.8);
}
.fcv3-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
/* Buttons (echoro pill + square variants) */
.fcv3-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: var(--fcv3-radius-pill);
  border: 1px solid transparent;
  font-family: var(--fcv3-font);
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease,
    background-color 0.2s ease, border-color 0.2s ease;
}
.fcv3-btn._primary {
  padding: 10px 20px;
  background-image: linear-gradient(135deg, var(--fcv3-primary), rgba(6, 182, 212, 0.8));
  color: var(--fcv3-primary-contrast);
  box-shadow: 0 10px 24px -8px rgba(6, 182, 212, 0.45);
}
.fcv3-btn._primary:hover,
.fcv3-btn._primary:focus-visible {
  transform: scale(1.03);
  filter: brightness(1.05);
}
.fcv3-btn._ghost {
  padding: 10px 16px;
  background-color: rgba(var(--fcv3-bg-rgb), 0.4);
  border-color: rgba(51, 65, 85, 0.6);
  color: var(--fcv3-fg);
}
.fcv3-btn._ghost:hover,
.fcv3-btn._ghost:focus-visible {
  background-color: rgba(var(--fcv3-bg-rgb), 0.6);
}
/* Square variant (rounded-lg, guest CTA) */
.fcv3-btn._square {
  border-radius: var(--fcv3-radius-lg);
  padding: 8px 16px;
  font-weight: 500;
}
.fcv3-btn._square._primary {
  background-image: none;
  background-color: var(--fcv3-primary);
  box-shadow: none;
}
.fcv3-btn._square._primary:hover {
  background-color: rgba(6, 182, 212, 0.9);
  transform: none;
}
body.fcv3-dark .fcv3-page a.fcv3-btn:focus-visible,
.fcv3-card__title:focus-visible,
.fcv3-rank__link:focus-visible {
  outline: 2px solid var(--fcv3-primary);
  outline-offset: 2px;
}
/* == HERO (echoro HeroSpotlight 1:1) ===================================== */

.fcv3-hero {
  position: relative;
  margin-block-start: 24px;
  border-radius: var(--fcv3-radius-hero);
  border: 1px solid var(--fcv3-border);
  background-color: rgba(var(--fcv3-card-rgb), 0.4);
  box-shadow: var(--fcv3-shadow-panel);
  overflow: hidden;
  isolation: isolate;
}
.fcv3-hero__track {
  position: relative;
  height: 320px;
}
.fcv3-hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 700ms ease;
}
.fcv3-hero__slide.is-active {
  opacity: 1;
  pointer-events: auto;
}
.fcv3-hero__image,
.fcv3-hero__image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.fcv3-hero__image img {
  object-fit: cover;
  object-position: center;
}
/* echoro double gradient, exact values */
.fcv3-hero__shade {
  position: absolute;
  inset: 0;
}
.fcv3-hero__shade._dir {
  background: linear-gradient(
    95deg,
    rgba(2, 6, 23, 0.95) 0%,
    rgba(2, 6, 23, 0.78) 35%,
    rgba(2, 6, 23, 0.35) 70%,
    rgba(2, 6, 23, 0.55) 100%
  );
}
.fcv3-hero__shade._up {
  background: linear-gradient(to top, rgba(2, 6, 23, 0.85), transparent 50%);
}
.fcv3-hero__content {
  position: relative;
  z-index: 1;
  height: 100%;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
}
.fcv3-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  margin: 0 0 12px;
  padding: 4px 10px;
  border-radius: var(--fcv3-radius-pill);
  border: 1px solid rgba(6, 182, 212, 0.4);
  background-color: rgba(6, 182, 212, 0.15);
  color: #22d3ee; /* over image scrim — mode-invariant */
  font-size: 0.6875rem;
  font-weight: 500;
}
.fcv3-hero__badge i {
  font-size: 0.625rem;
}
.fcv3-hero__title {
  margin: 0 0 8px;
  font-family: var(--fcv3-font);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.2;
  color: #f8fafc; /* over image scrim — mode-invariant */
}
.fcv3-hero__desc {
  margin: 0 0 20px;
  max-width: 520px;
  font-size: 0.875rem;
  line-height: 1.6;
  color: #a8b3c5; /* over image scrim — mode-invariant */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.fcv3-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.fcv3-hero__controls {
  position: absolute;
  bottom: 16px;
  right: 16px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
}
.fcv3-hero__toggle {
  width: 28px;
  height: 28px;
  border-radius: var(--fcv3-radius-pill);
  border: 1px solid rgba(241, 245, 249, 0.2);
  background-color: rgba(2, 6, 23, 0.6);
  color: #cbd5e1; /* over image scrim — mode-invariant */
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.5625rem;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.fcv3-hero__toggle:hover,
.fcv3-hero__toggle:focus-visible {
  color: #f8fafc;
  background-color: rgba(2, 6, 23, 0.8);
}
.fcv3-hero__dots {
  display: flex;
  align-items: center;
  gap: 6px;
}
.fcv3-hero__dot {
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: var(--fcv3-radius-pill);
  background-color: rgba(241, 245, 249, 0.3);
  cursor: pointer;
  transition: width 250ms ease, background-color 250ms ease;
}
.fcv3-hero__dot:hover {
  background-color: rgba(241, 245, 249, 0.5);
}
.fcv3-hero__dot.is-active {
  width: 24px;
  background-color: var(--fcv3-primary);
}
.fcv3-hero__watermark {
  position: absolute;
  right: 24px;
  top: 20px;
  z-index: 2;
  display: none;
  font-size: 0.625rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  color: rgba(241, 245, 249, 0.4);
  pointer-events: none;
}
/* == FOR YOU + RECENTLY VIEWED (echoro personalized rails) ================ */


.fcv3-foryou .fcv3-section__title ._accent {
  color: var(--fcv3-primary);
  margin-inline-end: 6px;
  font-size: 0.9em;
}
.fcv3-foryou .fcv3-card._row {
  flex: 0 0 176px;
}
.fcv3-foryou__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.fcv3-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: var(--fcv3-radius-lg);
  border: 1px solid var(--fcv3-border);
  background-color: rgba(var(--fcv3-card-rgb), 0.6);
  color: var(--fcv3-fg-muted);
  cursor: pointer;
  font-size: 0.8125rem;
  transition: color 0.15s ease, border-color 0.15s ease, transform 0.3s ease;
}
.fcv3-icon-btn:hover,
.fcv3-icon-btn:focus-visible {
  color: var(--fcv3-fg);
  border-color: var(--fcv3-border-hover);
}
.fcv3-icon-btn.is-spinning {
  transform: rotate(180deg);
}
.fcv3-recent .fcv3-card._row {
  flex: 0 0 176px;
}
/* == GENRE TILES (echoro REGIME_TILES 1:1) =============================== */

.fcv3-tiles__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.fcv3-tile {
  display: flex;
  flex-direction: column;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(var(--fcv3-border-rgb), 0.4);
  background-color: rgba(var(--fcv3-card-rgb), 0.4); /* literal values: immune to any var cascade failure */
  text-decoration: none;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.fcv3-tile:hover,
.fcv3-tile:focus-visible {
  border-color: var(--fcv3-border-hover);
  background-color: var(--fcv3-card);
}
.fcv3-tile__name {
  font-family: 'Fredoka Variable', 'Fredoka', system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--fcv3-fg) !important; /* literal: always light, never dark-on-dark */
  transition: color 0.2s ease;
}
.fcv3-tile:hover .fcv3-tile__name,
.fcv3-tile:focus-visible .fcv3-tile__name {
  color: var(--fcv3-primary);
}
.fcv3-tile__hint {
  margin-block-start: 2px;
  font-size: 0.75rem;
  color: var(--fcv3-fg-muted) !important; /* literal */
}
/* == RANK + LATEST (echoro TopRankBoard 1:1) ============================= */

.fcv3-rank-latest {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
}
.fcv3-rank {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.fcv3-rank__board {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  border-radius: var(--fcv3-radius-card);
  border: 1px solid var(--fcv3-border);
  background-color: rgba(var(--fcv3-card-rgb), 0.85);
  overflow: hidden;
}
.fcv3-rank__strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 16px;
  border-block-end: 1px solid rgba(51, 65, 85, 0.4);
  background-color: rgba(var(--fcv3-bg-rgb), 0.3);
}
.fcv3-rank__strip > i {
  color: var(--fcv3-warning);
  font-size: 0.875rem;
}
.fcv3-tabs {
  display: inline-flex;
  gap: 2px;
  padding: 2px;
  border-radius: var(--fcv3-radius-pill);
  background-color: rgba(var(--fcv3-muted-rgb), 0.4);
}
.fcv3-tabs__tab {
  padding: 4px 10px;
  border: 0;
  border-radius: var(--fcv3-radius-pill);
  background: transparent;
  color: var(--fcv3-fg-muted);
  font-family: var(--fcv3-font);
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.fcv3-tabs__tab:hover {
  color: var(--fcv3-fg);
}
.fcv3-tabs__tab.is-active {
  background-color: var(--fcv3-primary);
  color: var(--fcv3-primary-contrast);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}
.fcv3-rank__list {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}
.fcv3-rank__item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  transition: background-color 0.15s ease;
}
.fcv3-rank__item + .fcv3-rank__item {
  border-block-start: 1px solid rgba(51, 65, 85, 0.3);
}
.fcv3-rank__item:hover {
  background-color: rgba(var(--fcv3-bg-rgb), 0.4);
}
.fcv3-rank__link {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.fcv3-rank__badge,
.fcv3-rank__avatar,
.fcv3-rank__body,
.fcv3-rank__stats {
  pointer-events: none; /* clicks fall through to the overlay link */
}

.fcv3-rank__badge {
  flex: 0 0 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--fcv3-radius-pill);
  font-family: var(--fcv3-font);
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(var(--fcv3-border-rgb), 0.7);
}
.fcv3-rank__badge._t1 {
  background-image: linear-gradient(135deg, rgba(251, 191, 36, 0.3), rgba(251, 191, 36, 0.1));
  border: 1px solid rgba(251, 191, 36, 0.6);
  color: var(--fcv3-warning);
}
.fcv3-rank__badge._t2 {
  background-image: linear-gradient(135deg, rgba(148, 163, 184, 0.25), rgba(148, 163, 184, 0.05));
  border: 1px solid rgba(148, 163, 184, 0.4);
  color: var(--fcv3-fg);
}
.fcv3-rank__badge._t3 {
  background-image: linear-gradient(135deg, rgba(6, 182, 212, 0.25), rgba(6, 182, 212, 0.05));
  border: 1px solid rgba(6, 182, 212, 0.5);
  color: var(--fcv3-primary);
}
.fcv3-rank__badge i {
  font-size: 0.75rem;
}
.fcv3-rank__avatar {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: var(--fcv3-radius-lg);
  overflow: hidden;
  background-color: rgba(var(--fcv3-muted-rgb), 0.4);
  display: inline-flex;
}
.fcv3-rank__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.fcv3-rank__body {
  position: relative;
  z-index: 2;
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.fcv3-rank__name {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--fcv3-font);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--fcv3-fg);
  white-space: nowrap;
  overflow: hidden;
}
.fcv3-rank__name > span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
}
.fcv3-rank__mode {
  flex: 0 0 auto;
  padding: 1px 4px;
  border-radius: 4px;
  font-size: 0.5625rem;
  font-weight: 600;
  line-height: 1.3;
}
.fcv3-rank__mode._success {
  background-color: rgba(16, 185, 129, 0.2);
  color: var(--fcv3-success);
}
.fcv3-rank__mode._warning {
  background-color: rgba(251, 191, 36, 0.2);
  color: var(--fcv3-warning);
}
.fcv3-rank__mode._muted {
  background-color: rgba(var(--fcv3-border-rgb), 0.2);
  color: var(--fcv3-fg-muted);
}
.fcv3-rank__author {
  font-size: 0.6875rem;
  color: rgba(var(--fcv3-border-rgb), 0.7);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fcv3-rank__stats {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.6875rem;
  color: var(--fcv3-fg-muted);
}
.fcv3-rank__stats span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.fcv3-rank__stats i {
  font-size: 0.6875rem;
}
.fcv3-rank__stats span:first-child i {
  color: var(--fcv3-primary);
}
.fcv3-latest {
  min-width: 0;
}
.fcv3-latest__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
/* == CARD (echoro CharacterCard 1:1) ===================================== */

.fcv3-card {
  width: 100%;
  cursor: pointer;
}
.fcv3-card__frame {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--fcv3-radius-card);
  border: 1px solid var(--fcv3-border);
  background-color: rgba(var(--fcv3-card-rgb), 0.92);
  box-shadow: var(--fcv3-shadow-card);
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.fcv3-card:hover .fcv3-card__frame,
.fcv3-card:focus-within .fcv3-card__frame {
  transform: translateY(-4px);
  border-color: var(--fcv3-border-hover);
  box-shadow: var(--fcv3-shadow-hover);
}
.fcv3-card__frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 500ms ease;
}
.fcv3-card:hover .fcv3-card__frame img,
.fcv3-card:focus-within .fcv3-card__frame img {
  transform: scale(1.05);
}
.fcv3-card__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fcv3-fg-muted);
  font-size: 1.75rem;
  opacity: 0.4;
  background-color: rgba(var(--fcv3-muted-rgb), 0.4);
}
/* echoro overlay, exact stops */
.fcv3-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(2, 6, 23, 0.96) 0%,
    rgba(2, 6, 23, 0.55) 38%,
    rgba(2, 6, 23, 0.05) 70%,
    transparent 100%
  );
}
.fcv3-card__link {
  position: absolute;
  inset: 0;
  z-index: 1;
}
/* Badge stack: vertical, top-left (echoro) */
.fcv3-card__badges {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  max-width: 80%;
  pointer-events: none;
}
.fcv3-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  padding: 2px 6px;
  border-radius: var(--fcv3-radius-md);
  font-family: var(--fcv3-font);
  font-size: 0.625rem;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fcv3-badge i {
  font-size: 0.5625rem;
  margin-inline-end: 2px;
}
.fcv3-badge._mode_success {
  background-color: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: var(--fcv3-success);
}
.fcv3-badge._mode_warning {
  background-color: rgba(251, 191, 36, 0.2);
  border: 1px solid rgba(251, 191, 36, 0.4);
  color: var(--fcv3-warning);
}
.fcv3-badge._mode_muted {
  background-color: rgba(var(--fcv3-border-rgb), 0.2);
  border: 1px solid rgba(var(--fcv3-border-rgb), 0.4);
  color: var(--fcv3-fg-muted);
}
.fcv3-badge._genre {
  background-color: rgba(2, 6, 23, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--fcv3-fg-muted);
  font-weight: 500;
}
/* Like button: glass circle, top-right (echoro) */
.fcv3-card__like {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 3;
  width: 32px;
  height: 32px;
  border-radius: var(--fcv3-radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-color: rgba(2, 6, 23, 0.6);
  color: var(--fcv3-fg-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.fcv3-card__like:hover {
  transform: scale(1.1);
  background-color: rgba(2, 6, 23, 0.8);
}
/* Hover-only quick action pill (echoro) */
.fcv3-card__cta {
  position: absolute;
  left: 0;
  right: 0;
  top: 46%;
  z-index: 3;
  display: flex;
  justify-content: center;
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 200ms ease;
  pointer-events: none;
}
.fcv3-card:hover .fcv3-card__cta,
.fcv3-card:focus-within .fcv3-card__cta {
  opacity: 1;
}
.fcv3-card__cta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--fcv3-radius-pill);
  background-image: linear-gradient(135deg, rgba(6, 182, 212, 0.9), var(--fcv3-primary));
  color: var(--fcv3-primary-contrast);
  font-size: 0.75rem;
  font-weight: 600;
  box-shadow: 0 10px 22px -6px rgba(6, 182, 212, 0.4);
}
.fcv3-card__cta i {
  font-size: 0.6875rem;
}
/* Bottom info (echoro) */
.fcv3-card__body {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: 2;
  padding: 12px;
  display: flex;
  flex-direction: column;
  pointer-events: none;
}
.fcv3-card__desc {
  margin: 0 0 4px;
  font-size: 0.6875rem;
  color: rgba(203, 213, 225, 0.9); /* over cover gradient */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fcv3-card__title {
  margin: 0 0 2px;
  font-family: var(--fcv3-font);
  font-size: 1rem;
  font-weight: 600;
  color: #f8fafc; /* over cover gradient — mode-invariant */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fcv3-card__author {
  margin: 0 0 6px;
  font-size: 0.6875rem;
  color: rgba(203, 213, 225, 0.75); /* over cover gradient */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fcv3-card__stats {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.6875rem;
  color: rgba(203, 213, 225, 0.85); /* over cover gradient */
}
.fcv3-card__stats span {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  white-space: nowrap;
}
.fcv3-card__stats i {
  font-size: 0.6875rem;
}
.fcv3-card__stats span:first-child i {
  color: var(--fcv3-primary);
}
/* == LISTING PAGES (genre archives / stories) ============================= */

.fcv3-listing {
  padding-block: 28px 48px;
}
.fcv3-listing__head {
  margin-block-end: 18px;
}
.fcv3-listing__title {
  margin: 0;
  font-family: var(--fcv3-font);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--fcv3-fg);
}
.fcv3-listing__subtitle {
  margin: 4px 0 0;
  font-size: 0.875rem;
  color: var(--fcv3-fg-muted);
}
.fcv3-listing__toolbar {
  position: sticky;
  top: 60px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  margin-block-end: 18px;
  border-radius: var(--fcv3-radius-card);
  border: 1px solid var(--fcv3-border);
  background-color: rgba(var(--fcv3-card-rgb), 0.92);
  box-shadow: 0 8px 24px -10px rgba(0, 0, 0, 0.5);
}
.fcv3-listing__search {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: var(--fcv3-radius-pill);
  border: 1px solid rgba(var(--fcv3-border-rgb), 0.25);
  background-color: rgba(var(--fcv3-bg-rgb), 0.5);
  transition: border-color 0.2s ease;
}
.fcv3-listing__search:focus-within {
  border-color: var(--fcv3-primary);
}
.fcv3-listing__search i {
  color: var(--fcv3-fg-muted);
  font-size: 0.8125rem;
}
.fcv3-listing__search input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 8px 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--fcv3-fg) !important;
  font-family: var(--fcv3-font);
  font-size: 0.9375rem;
  outline: none;
  box-shadow: none !important;
}
.fcv3-listing__search input::placeholder {
  color: var(--fcv3-fg-muted);
}
.fcv3-listing__sort {
  flex: 0 0 auto;
  height: 40px;
  padding: 0 36px 0 14px;
  border-radius: var(--fcv3-radius-pill);
  border: 1px solid rgba(var(--fcv3-border-rgb), 0.25);
  background-color: rgba(var(--fcv3-bg-rgb), 0.5);
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2394a3b8' fill='none' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  appearance: none;
  color: var(--fcv3-fg);
  font-family: var(--fcv3-font);
  font-size: 0.875rem;
  cursor: pointer;
  outline: none;
}
.fcv3-listing__sort:focus {
  border-color: var(--fcv3-primary);
}
.fcv3-listing__sort option {
  background-color: var(--fcv3-card);
  color: var(--fcv3-fg);
}
.fcv3-listing__go {
  flex: 0 0 auto;
  height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--fcv3-radius-pill);
  background-image: linear-gradient(135deg, var(--fcv3-primary), #0891b2);
  color: var(--fcv3-primary-contrast);
  font-family: var(--fcv3-font);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: filter 0.2s ease;
}
.fcv3-listing__go:hover {
  filter: brightness(1.08);
}
.fcv3-listing__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-block-end: 22px;
}
.fcv3-chip {
  padding: 5px 14px;
  border-radius: var(--fcv3-radius-pill);
  border: 1px solid var(--fcv3-border-soft);
  background-color: rgba(var(--fcv3-card-rgb), 0.4);
  color: var(--fcv3-fg-muted);
  text-decoration: none;
  font-family: var(--fcv3-font);
  font-size: 0.8125rem;
  transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}
.fcv3-chip:hover,
.fcv3-chip:focus-visible {
  color: var(--fcv3-fg);
  border-color: var(--fcv3-border-hover);
}
.fcv3-chip.is-current {
  background-color: var(--fcv3-primary);
  border-color: var(--fcv3-primary);
  color: var(--fcv3-primary-contrast);
  font-weight: 600;
}
.fcv3-listing__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.fcv3-listing__pagination {
  margin-block-start: 32px;
  display: flex;
  justify-content: center;
  gap: 6px;
  font-family: var(--fcv3-font);
}
.fcv3-listing__pagination .page-numbers {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: var(--fcv3-radius-pill);
  border: 1px solid var(--fcv3-border-soft);
  background-color: rgba(var(--fcv3-card-rgb), 0.4);
  color: var(--fcv3-fg-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}
.fcv3-listing__pagination .page-numbers:hover {
  color: var(--fcv3-fg);
  border-color: var(--fcv3-border-hover);
}
.fcv3-listing__pagination .page-numbers.current {
  background-color: var(--fcv3-primary);
  border-color: var(--fcv3-primary);
  color: var(--fcv3-primary-contrast);
  font-weight: 600;
}
.fcv3-listing__pagination .page-numbers.dots {
  border: 0;
  background: none;
}
.fcv3-listing__empty {
  padding: 64px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  border-radius: var(--fcv3-radius-card);
  border: 1px dashed var(--fcv3-border);
  background-color: rgba(var(--fcv3-card-rgb), 0.3);
  color: var(--fcv3-fg-muted);
  text-align: center;
}
.fcv3-listing__empty i {
  font-size: 1.75rem;
  opacity: 0.5;
}
@media (min-width: 640px) {
  .fcv3-listing__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 768px) {
  .fcv3-listing__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1280px) {
  .fcv3-listing__grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
/* == LATEST UPDATES ======================================================= */

.fcv3-updates__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}
.fcv3-update {
  display: flex;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--fcv3-radius-card);
  border: 1px solid var(--fcv3-border-soft);
  background-color: rgba(var(--fcv3-card-rgb), 0.4);
}
.fcv3-update__cover {
  flex: 0 0 auto;
  width: 48px;
  border-radius: var(--fcv3-radius-lg);
  overflow: hidden;
  display: inline-flex;
}
.fcv3-update__cover img {
  width: 100%;
  height: auto;
  display: block;
}
.fcv3-update__body {
  min-width: 0;
  flex: 1 1 auto;
}
.fcv3-update__title {
  margin: 0;
  font-family: var(--fcv3-font);
  font-size: 0.9375rem;
  font-weight: 500;
  display: flex;
  align-items: baseline;
  gap: 10px;
  white-space: nowrap;
  overflow: hidden;
}
.fcv3-update__title a {
  color: var(--fcv3-fg);
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fcv3-update__title a:hover,
.fcv3-update__title a:focus-visible {
  color: var(--fcv3-primary);
}
.fcv3-update__time {
  flex: 0 0 auto;
  font-size: 0.6875rem;
  font-weight: 400;
  color: var(--fcv3-fg-muted);
}
.fcv3-update__chapters {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.fcv3-update__chapters li {
  min-width: 0;
}
.fcv3-update__chapters a {
  display: block;
  max-width: 100%;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--fcv3-fg-muted);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.15s ease;
}
.fcv3-update__chapters a:hover,
.fcv3-update__chapters a:focus-visible {
  color: var(--fcv3-primary);
}
.fcv3-update__chapters i {
  color: var(--fcv3-primary);
  font-size: 0.6875rem;
  margin-inline-end: 6px;
}
@media (min-width: 768px) {
  .fcv3-updates__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* == HERO SEARCH (floating pill on the hero's bottom edge) ================= */

.fcv3-hero__search {
  position: relative;
  z-index: 5;
  width: min(560px, 92%);
  margin: 16px auto 0;
}
.fcv3-hero__search .search-form {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}
.fcv3-hero__search .search-form__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 6px 6px 18px;
  border-radius: var(--fcv3-radius-pill);
  border: 1px solid rgba(var(--fcv3-border-rgb), 0.4);
  background-color: var(--fcv3-card);
  box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.6);
}
.fcv3-hero__search .search-form__string {
  flex: 1 1 auto;
  min-width: 0;
  width: auto !important;
  padding: 10px 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--fcv3-fg) !important;
  font-family: var(--fcv3-font);
  font-size: 0.9375rem;
  outline: none;
  box-shadow: none !important;
}
.fcv3-hero__search .search-form__string::placeholder {
  color: var(--fcv3-fg-muted);
}
.fcv3-hero__search .search-form__bar-actions {
  flex: 0 0 auto;
  display: flex;
  margin: 0 !important;
  padding: 0 !important;
}
.fcv3-hero__search .search-form__submit {
  height: 40px;
  padding: 0 20px !important;
  border: 0 !important;
  border-radius: var(--fcv3-radius-pill) !important;
  background-image: linear-gradient(135deg, var(--fcv3-primary), #0891b2) !important;
  color: var(--fcv3-primary-contrast) !important;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: filter 0.2s ease;
}
.fcv3-hero__search .search-form__submit:hover {
  filter: brightness(1.1);
}
/* == SEO GENRE LINKS ====================================================== */

.fcv3-seo-card__genres {
  margin-block-start: 12px !important;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.fcv3-seo-card__genres a {
  padding: 3px 10px;
  border-radius: var(--fcv3-radius-pill);
  border: 1px solid var(--fcv3-border-soft);
  color: var(--fcv3-fg-muted);
  text-decoration: none;
  font-size: 0.8125rem;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.fcv3-seo-card__genres a:hover,
.fcv3-seo-card__genres a:focus-visible {
  color: var(--fcv3-primary);
  border-color: var(--fcv3-border-hover);
}
/* == GENRE ROWS (echoro CollectionRows + CharacterRow 1:1) =============== */

.fcv3-row + .fcv3-row {
  margin-block-start: 32px;
}
.fcv3-row__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-block-end: 12px;
}
.fcv3-row__title {
  margin: 0;
  font-family: var(--fcv3-font);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--fcv3-fg);
}
.fcv3-row__count {
  margin-inline-start: 8px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--fcv3-fg-muted);
}
.fcv3-row__viewport {
  position: relative;
}
.fcv3-row__mask {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0,
    black 24px,
    black calc(100% - 24px),
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0,
    black 24px,
    black calc(100% - 24px),
    transparent 100%
  );
}
.fcv3-row__track {
  list-style: none;
  margin: 0;
  padding: 0 0 8px;
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.fcv3-row__track::-webkit-scrollbar {
  display: none;
}
.fcv3-card._row {
  flex: 0 0 176px;
  scroll-snap-align: start;
}
.fcv3-row__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: var(--fcv3-radius-pill);
  border: 1px solid var(--fcv3-border);
  background-color: rgba(var(--fcv3-card-rgb), 0.92);
  color: var(--fcv3-fg);
  box-shadow: 0 4px 10px -2px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  display: none; /* md+ only — touch users swipe naturally */
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  opacity: 0.85;
  transition: opacity 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

/* Scroll affordance: arrows always visible on md+; rail ends fade to a
   disabled state so the horizontal scroll reads at a glance. */
@media (min-width: 768px) {
  .fcv3-row__arrow {
    display: inline-flex;
  }

  /* Not enough cards to scroll? No arrows at all. */
  [data-fcv3-row]:not(.is-scrollable) .fcv3-row__arrow {
    display: none;
  }
}

.fcv3-row__arrow:hover,
.fcv3-row__arrow:focus-visible {
  opacity: 1;
  background-color: var(--fcv3-card);
  transform: translateY(-50%) scale(1.06);
}

.fcv3-row__arrow.is-disabled {
  opacity: 0.22;
  pointer-events: none;
}

/* Mobile: pulsing swipe chevron on the right edge, dismissed after the
   first swipe (is-touched) — teaches the rail is swipeable. */
[data-fcv3-row]:not(.is-touched).is-scrollable .fcv3-row__viewport::after {
  content: "\f054";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9;
  width: 30px;
  height: 30px;
  border-radius: var(--fcv3-radius-pill);
  border: 1px solid var(--fcv3-border);
  background-color: rgba(var(--fcv3-card-rgb), 0.95);
  color: var(--fcv3-fg-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  pointer-events: none;
  animation: fcv3-hint-pulse 2s ease-in-out infinite;
}

@media (min-width: 768px) {
  [data-fcv3-row]:not(.is-touched).is-scrollable .fcv3-row__viewport::after {
    display: none; /* arrows cover the affordance on desktop */
  }
}

@keyframes fcv3-hint-pulse {
  0%, 100% { transform: translateY(-50%) translateX(0); opacity: 0.85; }
  50% { transform: translateY(-50%) translateX(4px); opacity: 1; }
}
.fcv3-row__arrow._prev {
  left: 0;
}
.fcv3-row__arrow._next {
  right: 0;
}
/* == CONTINUE / GUEST CTA / SEO ========================================== */

body.fcv3-dark .fcv3-continue .bookmarks-block,
body.fcv3-dark .fcv3-continue .small-card-block {
  background-color: rgba(var(--fcv3-card-rgb), 0.85);
  border: 1px solid var(--fcv3-border);
  border-radius: var(--fcv3-radius-card);
  box-shadow: none;
}
body.fcv3-dark .fcv3-continue .small-card__title a,
body.fcv3-dark .fcv3-continue .bookmarks-block a {
  color: var(--fcv3-fg);
}
/* Guest CTA (echoro 3.9: muted/20 card, rounded-lg buttons) */
.fcv3-cta-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 40px 24px;
  border-radius: var(--fcv3-radius-card);
  border: 1px solid var(--fcv3-border);
  background-color: rgba(var(--fcv3-muted-rgb), 0.2);
  text-align: center;
}
.fcv3-cta-card__title {
  margin: 0;
  font-family: var(--fcv3-font);
  font-weight: 600;
  font-size: 1rem;
  color: var(--fcv3-fg);
}
.fcv3-cta-card__text {
  margin: 0;
  max-width: 448px;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--fcv3-fg-muted);
}
.fcv3-cta-card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
/* SEO card (echoro) */
.fcv3-seo-card {
  padding: 24px;
  border-radius: var(--fcv3-radius-card);
  border: 1px solid var(--fcv3-border);
  background-color: rgba(var(--fcv3-muted-rgb), 0.2);
}
.fcv3-seo-card h2 {
  margin: 0 0 12px;
  font-family: var(--fcv3-font);
  font-weight: 600;
  font-size: 1rem;
  color: var(--fcv3-fg);
}
.fcv3-seo-card p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--fcv3-fg-muted);
}
.fcv3-seo-card p + p {
  margin-block-start: 8px;
}
.fcv3-seo-card strong {
  color: var(--fcv3-fg);
  font-weight: 600;
}
.fcv3-seo-card__links {
  margin-block-start: 12px !important;
  display: flex;
  align-items: center;
  gap: 8px;
}
.fcv3-seo-card__links a {
  color: var(--fcv3-primary);
  text-decoration: none;
}
.fcv3-seo-card__links a:hover {
  text-decoration: underline;
}
/* == RESPONSIVE (echoro breakpoints 640/768/1024) ======================== */

@media (min-width: 640px) {
  .fcv3-container { padding-inline: 24px; }
  .fcv3-hero__track { height: 400px; }
  .fcv3-hero__content { padding: 40px; }
  .fcv3-hero__title { font-size: 1.875rem; }
  .fcv3-hero__desc { font-size: 1rem; }
  .fcv3-hero__controls { bottom: 20px; right: 24px; }
  .fcv3-hero__watermark { display: block; }
  .fcv3-tiles__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fcv3-section__title { font-size: 1.25rem; }
  .fcv3-section__subtitle { font-size: 0.875rem; }
}
@media (min-width: 768px) {
  .fcv3-hero__track { height: 460px; }
  .fcv3-latest__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fcv3-card._row { flex-basis: 200px; }
  .fcv3-row__arrow { display: inline-flex; }
  .fcv3-rank__item { gap: 16px; padding: 8px 16px; }
  .fcv3-rank__stats ._chapters { display: inline-flex; }
}
@media (min-width: 1024px) {
  .fcv3-container { padding-inline: 32px; }
  .fcv3-tiles__grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .fcv3-rank-latest { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
  .fcv3-seo-card { padding: 32px; }
}
/* Hide chapter stat below sm (echoro hides 2nd stat on mobile) */
.fcv3-rank__stats ._chapters { display: none; }
/* == MOTION =============================================================== */

@media (prefers-reduced-motion: reduce) {
  .fcv3-hero__slide,
  .fcv3-card__frame,
  .fcv3-card__frame img,
  .fcv3-card__cta,
  .fcv3-btn,
  .fcv3-tile {
    transition: none;
  }
  .fcv3-row__track {
    scroll-behavior: auto;
  }
}
/* == TAXONOMIES DIRECTORY ================================================== */

.fcv3-taxonomies__group {
  margin-block-start: 44px;
}
.fcv3-taxonomies__group:first-of-type {
  margin-block-start: 0;
}
.fcv3-taxonomies__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.fcv3-taxonomies__intro {
  margin-block-end: 8px;
  color: var(--fcv3-fg-muted);
}
.fcv3-taxonomies__filter {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px 4px 14px;
  border-radius: var(--fcv3-radius-pill);
  border: 1px solid rgba(var(--fcv3-border-rgb), 0.25);
  background-color: rgba(var(--fcv3-bg-rgb), 0.5);
  transition: border-color 0.2s ease;
}
.fcv3-taxonomies__filter:focus-within {
  border-color: var(--fcv3-primary);
}
.fcv3-taxonomies__filter i {
  color: var(--fcv3-fg-muted);
  font-size: 0.75rem;
}
.fcv3-taxonomies__filter input {
  padding: 8px 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--fcv3-fg) !important;
  font-family: var(--fcv3-font);
  font-size: 0.875rem;
  outline: none;
  box-shadow: none !important;
  width: 180px;
}
.fcv3-taxonomies__filter input::placeholder {
  color: var(--fcv3-fg-muted);
}
.fcv3-taxonomies__cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.fcv3-taxonomies__cloud .fcv3-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.fcv3-taxonomies__cloud .fcv3-chip.is-collapsed {
  display: none;
}
.fcv3-chip__count {
  padding: 1px 7px;
  border-radius: var(--fcv3-radius-pill);
  background-color: rgba(var(--fcv3-border-rgb), 0.15);
  color: var(--fcv3-fg-muted);
  font-size: 0.6875rem;
  font-weight: 600;
}
.fcv3-chip.is-current .fcv3-chip__count {
  background-color: rgba(var(--fcv3-bg-rgb), 0.2);
  color: var(--fcv3-primary-contrast);
}
.fcv3-taxonomies__expand {
  margin-block-start: 14px;
  padding: 9px 18px;
  border-radius: var(--fcv3-radius-pill);
  border: 1px solid var(--fcv3-border);
  background-color: rgba(var(--fcv3-card-rgb), 0.6);
  color: var(--fcv3-fg-muted);
  font-family: var(--fcv3-font);
  font-size: 0.8125rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.fcv3-taxonomies__expand:hover,
.fcv3-taxonomies__expand:focus-visible {
  color: var(--fcv3-fg);
  border-color: var(--fcv3-border-hover);
}
.fcv3-taxonomies__expand i {
  font-size: 0.6875rem;
}
.fcv3-taxonomies__group[data-fcv3-empty="1"] .fcv3-taxonomies__cloud::after {
  content: "No matching tags.";
  color: var(--fcv3-fg-muted);
  font-size: 0.8125rem;
}
@media (min-width: 640px) {
  .fcv3-taxonomies__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .fcv3-taxonomies__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
/* == COMPLETED SERIES RAIL ================================================= */

.fcv3-completed .fcv3-row__title ._accent {
  color: var(--fcv3-success);
  margin-inline-end: 6px;
  font-size: 0.9em;
}
.fcv3-completed .fcv3-card._row {
  flex: 0 0 176px;
}
@media (min-width: 768px) {
  .fcv3-completed .fcv3-card._row { flex-basis: 200px; }
}

/* == CHAPTER UPDATES PAGE ================================================== */

.fcv3-updates__grid--page {
  gap: 14px;
}

/* == INTERACTIVE FICTION RAIL (echoro cross-promotion) ===================== */

.fcv3-interactive .fcv3-row__title ._accent {
  color: var(--fcv3-primary);
  margin-inline-end: 6px;
  font-size: 0.9em;
}

.fcv3-section__more.fcv3-external {
  color: var(--fcv3-primary);
  font-size: 0.75rem;
}

.fcv3-interactive .fcv3-card._row {
  flex: 0 0 176px;
  cursor: pointer;
}

.fcv3-interactive .fcv3-card__remote-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 500ms ease;
}

.fcv3-interactive .fcv3-card:hover .fcv3-card__remote-img,
.fcv3-interactive .fcv3-card:focus-within .fcv3-card__remote-img {
  transform: scale(1.05);
}

/* overlay/cta/body reuse the standard card frame but on <li> directly */
.fcv3-interactive .fcv3-card {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--fcv3-radius-card);
  border: 1px solid var(--fcv3-border-soft);
  background-color: rgba(var(--fcv3-card-rgb), 0.8);
  box-shadow: var(--fcv3-shadow-card);
  overflow: hidden;
  display: block;
  scroll-snap-align: start;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.fcv3-interactive .fcv3-card:hover,
.fcv3-interactive .fcv3-card:focus-within {
  transform: translateY(-4px);
  border-color: var(--fcv3-border-hover);
  box-shadow: var(--fcv3-shadow-hover);
}

.fcv3-interactive .fcv3-card__link {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.fcv3-interactive .fcv3-card__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fcv3-fg-muted);
  font-size: 1.75rem;
  opacity: 0.4;
  background-color: rgba(var(--fcv3-muted-rgb), 0.4);
}

/* external badge (top-right, replaces the like button slot) */
.fcv3-card__ext-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  width: 32px;
  height: 32px;
  border-radius: var(--fcv3-radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-color: rgba(2, 6, 23, 0.6);
  color: #cbd5e1;
  backdrop-filter: blur(8px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6875rem;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.fcv3-interactive .fcv3-card:hover .fcv3-card__ext-badge {
  transform: scale(1.1);
  background-color: rgba(6, 182, 212, 0.85);
  color: #f8fafc;
}

/* CTA + body inherit the standard overlay structure */
.fcv3-interactive .fcv3-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(2, 6, 23, 0.96) 0%,
    rgba(2, 6, 23, 0.55) 38%,
    rgba(2, 6, 23, 0.05) 70%,
    transparent 100%
  );
}

.fcv3-interactive .fcv3-card__cta {
  position: absolute;
  left: 0;
  right: 0;
  top: 46%;
  z-index: 3;
  display: flex;
  justify-content: center;
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 200ms ease;
  pointer-events: none;
}

.fcv3-interactive .fcv3-card:hover .fcv3-card__cta,
.fcv3-interactive .fcv3-card:focus-within .fcv3-card__cta {
  opacity: 1;
}

.fcv3-interactive .fcv3-card__body {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: 2;
  padding: 52px 16px 16px;
  display: flex;
  flex-direction: column;
  pointer-events: none;
}

.fcv3-interactive .fcv3-card__title {
  margin: 0 0 2px;
  font-family: var(--fcv3-font);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fcv3-interactive .fcv3-card__desc {
  margin: 0 0 4px;
  font-size: 0.6875rem;
  color: rgba(203, 213, 225, 0.9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fcv3-interactive .fcv3-card__stats {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.6875rem;
  color: rgba(203, 213, 225, 0.85);
}

.fcv3-interactive .fcv3-card__stats span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.fcv3-interactive .fcv3-card__stats span:first-child i {
  color: var(--fcv3-primary);
}

.fcv3-interactive .fcv3-card__stats ._site {
  margin-left: auto;
  padding: 1px 7px;
  border-radius: var(--fcv3-radius-pill);
  border: 1px solid rgba(6, 182, 212, 0.4);
  color: #22d3ee;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

@media (min-width: 768px) {
  .fcv3-interactive .fcv3-card._row { flex-basis: 200px; }
}
