:root,
html[data-theme="light"] {
  --bg-primary: #F7F5F0;
  --bg-secondary: #FFFFFF;
  --bg-elevated: #FCFBF8;
  --surface: var(--bg-secondary);
  --surface-hover: #F3F1EB;
  --border: #DDD9D2;
  --border-subtle: #E9E6E0;
  --border-strong: #C9C4BB;

  --text-primary: #181817;
  --text-secondary: #6F6D69;
  --text-muted: #96938E;

  --accent: #7053A8;
  --accent-hover: #604492;
  --on-accent: #FCFBF8;
  --accent-soft: #EEE9F7;
  --accent-deep: #604492;

  --danger: #A45151;
  --success: #477A62;
  --focus: #7053A8;

  --shadow-soft: 0 12px 32px rgba(24, 24, 23, 0.08);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --radius-btn: 14px;

  /* legacy aliases */
  --bg: var(--bg-primary);
  --card: var(--bg-secondary);
  --text: var(--text-primary);
  --ink: var(--text-primary);
  --ink-soft: var(--text-secondary);
  --paper: var(--bg-primary);
  --paper-dim: var(--bg-elevated);
  --paper-raise: var(--bg-elevated);
  --muted: var(--text-muted);
  --amber: var(--accent);
  --amber-deep: var(--accent);
  --line: var(--border);

  --genre-mystery: #6B5CA5;
  --genre-romance: #A45C74;
  --genre-horror: #4E7A62;
  --genre-fantasy: #7053A8;
  --genre-drama: #4A7FB5;
  --genre-thriller: #8B5E3C;
  --max: 72rem;

  --font-stack: "Onest", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-involve: var(--font-stack);
  --font-display: var(--font-stack);
  --font-reading: var(--font-stack);
  --font-reader: var(--font-stack);
  --font-ui: var(--font-stack);
  --font-body: var(--font-stack);
  --font-cormorant: var(--font-stack);

  --ease-ui: 180ms ease;
}

html[data-theme="dark"] {
  --bg-primary: #101116;
  --bg-secondary: #171820;
  --bg-elevated: #1D1E27;
  --surface: var(--bg-secondary);
  --surface-hover: #22232D;
  --border: #2B2C36;
  --border-subtle: #23242C;
  --border-strong: #3A3B48;

  --text-primary: #F3F0E9;
  --text-secondary: #C2C0C8;
  --text-muted: #A09EA8;

  --accent: #9B7BE5;
  --accent-hover: #B69AF1;
  --on-accent: #101116;
  --accent-soft: rgba(155, 123, 229, 0.14);
  --accent-deep: #B69AF1;

  --danger: #D27B7B;
  --success: #70A88B;
  --focus: #9B7BE5;

  --shadow-soft: 0 12px 28px rgba(0, 0, 0, 0.28);

  --bg: var(--bg-primary);
  --card: var(--bg-secondary);
  --text: var(--text-primary);
  --ink: var(--text-primary);
  --ink-soft: var(--text-secondary);
  --paper: var(--bg-primary);
  --paper-dim: var(--bg-elevated);
  --paper-raise: var(--bg-elevated);
  --muted: var(--text-muted);
  --amber: var(--accent);
  --amber-deep: var(--accent);
  --line: var(--border);
}

@font-face {
  font-family: "Involve";
  src: url("/fonts/involve/Involve-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Involve";
  src: url("/fonts/involve/Involve-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: light;
}

html[data-theme="dark"] {
  color-scheme: dark;
}

body {
  margin: 0;
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 1.0625rem;
  font-weight: 400;
  background: var(--bg);
  line-height: 1.6;
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--focus) 28%, transparent);
}

button:focus:not(:focus-visible),
a:focus:not(:focus-visible),
input:focus:not(:focus-visible),
textarea:focus:not(:focus-visible),
select:focus:not(:focus-visible) {
  outline: none;
  box-shadow: none;
}

body.modal-open {
  overflow: hidden;
}

h1,
h2,
h3 {
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 500;
  text-shadow: none;
}

.story-text {
  max-width: 68ch;
  font-family: var(--font-reading);
  font-size: clamp(18px, 1.4vw, 21px);
  line-height: 1.7;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent-hover);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 0.6rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 0.75rem;
  top: 0.75rem;
}

.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 max(1rem, calc((100% - var(--max, 72rem)) / 2 + 1rem));
  color: var(--text);
}

.site-header-start {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.site-header-sep {
  color: color-mix(in srgb, var(--accent-soft) 55%, transparent);
  font-size: 0.95rem;
  line-height: 1;
  user-select: none;
}

.site-header-nav {
  display: flex;
  align-items: center;
}

.site-header-link {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  font-weight: 600;
  color: var(--accent-soft);
  text-decoration: none;
  white-space: nowrap;
}

.site-header-link:hover {
  color: #f3e6d4;
  opacity: 1;
}

.site-header-link-short {
  display: none;
}

@media (max-width: 480px) {
  .site-header-link-long {
    display: none;
  }

  .site-header-link-short {
    display: inline;
  }
}

.logo {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--accent-soft);
  text-decoration: none;
  font-weight: 600;
}

.site-header-login.btn {
  min-height: 2.2rem;
  padding: 0.45rem 0.95rem;
  font-size: 0.8rem;
}

.site-header .logo,
.site-header .site-header-link {
  -webkit-text-stroke: 0.35px rgba(255, 248, 238, 0.88);
  paint-order: stroke fill;
  text-shadow:
    0 0 1px rgba(255, 248, 238, 0.55),
    0 0 10px rgba(255, 248, 238, 0.12);
}

.logo:hover {
  color: #f3e6d4;
  opacity: 1;
}

.site-header .logo:hover,
.site-header .site-header-link:hover {
  color: #fff;
  -webkit-text-stroke: 0.35px rgba(255, 248, 238, 0.95);
}

body.home-page .btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  border-color: color-mix(in srgb, var(--accent) 52%, #fff);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--accent) 26%, transparent),
    0 8px 22px color-mix(in srgb, var(--accent) 36%, transparent);
}

body.home-page .btn-primary:hover {
  background: var(--accent-hover);
  color: var(--on-accent);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--accent-hover) 34%, transparent),
    0 10px 26px color-mix(in srgb, var(--accent) 44%, transparent);
}

body.home-page .hero .btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent),
    0 0 28px color-mix(in srgb, var(--accent) 42%, transparent),
    0 8px 22px rgba(0, 0, 0, 0.35);
}

body.home-page .hero .btn-primary:hover {
  background: var(--accent-hover);
  color: var(--on-accent);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--accent-hover) 38%, transparent),
    0 0 36px color-mix(in srgb, var(--accent) 52%, transparent),
    0 10px 26px rgba(0, 0, 0, 0.4);
}

body.home-page a.demo-choice-cta {
  background: var(--accent);
  color: var(--on-accent);
}

body.home-page .demo-choice {
  border-color: var(--accent-soft);
}

body.home-page a.demo-choice-cta:hover,
body.home-page a.demo-choice-cta:focus-visible {
  background: var(--accent-hover);
  color: var(--on-accent);
}

.site-header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--text-primary) 28%, transparent);
  background: color-mix(in srgb, var(--bg-primary) 35%, transparent);
  color: var(--text-primary);
  cursor: pointer;
  flex-shrink: 0;
}

.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.theme-icon {
  width: 18px;
  height: 18px;
  display: block;
  pointer-events: none;
}

html[data-theme="light"] .site-header .logo,
html[data-theme="light"] .site-header .site-header-link {
  -webkit-text-stroke: 0;
  text-shadow: 0 1px 2px rgba(243, 239, 231, 0.85);
}

html[data-theme="light"] .site-header .logo.logo-lockup {
  text-shadow: none;
}

.site-header-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  min-width: 6.85rem;
  padding: 0.45rem 1.25rem;
  font-size: 0.85rem;
}

.site-header-login.is-disabled,
.site-auth-btn.is-disabled,
.btn.is-disabled,
a.is-disabled,
button.is-disabled {
  opacity: 0.45;
  pointer-events: none;
  cursor: not-allowed;
  filter: grayscale(0.15);
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.auth-modal[hidden] {
  display: none;
}

body.auth-modal-open {
  overflow: hidden;
}

.auth-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 8, 12, 0.62);
  backdrop-filter: blur(4px);
}

.auth-modal-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 26rem);
  padding: 1.75rem 1.65rem 1.5rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

.auth-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
}

.auth-modal-close:hover {
  background: rgba(244, 239, 230, 0.08);
  color: var(--text);
}

.auth-modal-kicker {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-soft);
}

.auth-modal-title {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--accent-soft);
}

.auth-modal-lead {
  margin: 0 0 1.35rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--muted);
}

.auth-modal-oauth {
  display: grid;
  gap: 0.65rem;
}

.auth-oauth-btn {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  border: 1px solid rgba(243, 230, 212, 0.72);
  border-radius: 999px;
  background: rgba(244, 239, 230, 0.06);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: #f3e6d4;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.auth-oauth-btn:hover {
  background: rgba(201, 162, 39, 0.14);
  border-color: var(--accent-soft);
  color: #fff;
  transform: translateY(-1px);
}

.auth-oauth-btn--vk,
.auth-oauth-btn--yandex {
  background: rgba(244, 239, 230, 0.06);
}

.auth-oauth-btn:disabled,
.auth-oauth-btn[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.auth-oauth-btn:disabled:hover,
.auth-oauth-btn[aria-disabled="true"]:hover {
  background: rgba(244, 239, 230, 0.06);
  border-color: rgba(243, 230, 212, 0.72);
  color: #f3e6d4;
  transform: none;
}

.auth-oauth-soon {
  margin: 0.15rem 0 0;
  font-size: 0.82rem;
  line-height: 1.4;
  color: rgba(244, 239, 230, 0.55);
  text-align: center;
}

.auth-telegram-block {
  margin-top: 0.35rem;
  display: grid;
  gap: 0.65rem;
  justify-items: center;
}

.auth-telegram-block[hidden] {
  display: none !important;
}

.auth-telegram-widget {
  min-height: 2.5rem;
  display: grid;
  place-items: center;
}

.auth-modal-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  margin: 0 0 1.15rem;
  padding: 0.25rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--border);
}

.auth-modal-tab {
  min-height: 2.35rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.auth-modal-tab.is-active {
  background: rgba(201, 162, 39, 0.22);
  color: var(--accent-soft);
}

.auth-modal-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.15rem 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.auth-modal-divider::before,
.auth-modal-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: color-mix(in srgb, var(--accent) 22%, var(--border));
}

.auth-modal-form {
  display: grid;
  gap: 0.75rem;
}

.auth-modal-form[hidden],
.auth-register-entry[hidden],
.auth-register-consents[hidden],
#auth-forgot-form[hidden] {
  display: none !important;
}

.auth-forgot-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0.15rem auto 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent-soft);
  font: inherit;
  font-size: 0.82rem;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.auth-forgot-link:hover {
  color: #fff;
}

.auth-forgot-lead {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--muted);
}

.auth-form-success {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.45;
  color: #8fd4a0;
}

.auth-reset-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.auth-reset-wrap {
  width: min(100%, 26rem);
  display: grid;
  gap: 1.25rem;
}

.auth-reset-panel {
  padding: 1.75rem 1.65rem 1.5rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

.auth-reset-back {
  margin: 0.75rem 0 0;
  font-size: 0.85rem;
}

.auth-reset-back a {
  color: var(--accent-soft);
}

.auth-register-consents {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.auth-consent {
  display: grid;
  grid-template-columns: 1.1rem 1fr;
  gap: 0.55rem;
  align-items: start;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--muted);
  cursor: pointer;
}

.auth-consent input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  margin: 0.12rem 0 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.auth-consent a {
  color: var(--accent-soft);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.auth-consent a:hover {
  color: #fff;
}

.cookie-banner {
  position: fixed;
  top: max(0.75rem, env(safe-area-inset-top));
  right: 1rem;
  bottom: auto;
  left: auto;
  z-index: 90;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  gap: 0.55rem 0.5rem;
  width: min(100% - 2rem, 22.5rem);
  padding: 0.8rem 0.85rem;
  border-radius: 0.85rem;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--border));
  background: var(--card);
  color: var(--text);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.42);
}

.cookie-banner[hidden] {
  display: none !important;
}

.cookie-banner-text {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--muted);
}

.cookie-banner-text a {
  color: var(--accent-soft);
}

.cookie-banner-accept {
  width: 100%;
  min-height: 2.5rem;
  padding: 0.45rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.25;
  border-radius: 0.55rem;
  cursor: pointer;
}

.auth-field {
  display: grid;
  gap: 0.35rem;
}

.auth-field-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}

.auth-field input {
  width: 100%;
  min-height: 2.65rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--border));
  border-radius: 0.65rem;
  background: rgba(0, 0, 0, 0.22);
  color: var(--text);
  font: inherit;
  font-size: 0.92rem;
  box-sizing: border-box;
}

.auth-field input::placeholder {
  color: rgba(138, 135, 160, 0.85);
}

.auth-field input:focus {
  outline: none;
  border-color: var(--accent-soft);
  box-shadow: 0 0 0 2px rgba(201, 162, 39, 0.18);
}

.auth-form-error {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  line-height: 1.4;
  color: #f08a8a;
}

.auth-field .auth-form-error {
  margin-top: 0.35rem;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.auth-submit-btn {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  margin-top: 0.15rem;
  border: 0;
  border-radius: 999px;
  background: #f0c93a;
  color: #0e0d14;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}

.auth-submit-btn:hover:not(:disabled) {
  background: #ffd95c;
  transform: translateY(-1px);
}

.auth-submit-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.auth-submit-btn--outline {
  background: transparent;
  color: #f3e6d4;
  border: 1px solid rgba(243, 230, 212, 0.72);
  font-weight: 600;
}

.auth-submit-btn--outline:hover:not(:disabled) {
  background: rgba(201, 162, 39, 0.14);
  border-color: var(--accent-soft);
  color: #fff;
  transform: translateY(-1px);
}

.auth-register-entry {
  display: grid;
}

.auth-email-entry {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  border: 1px solid rgba(243, 230, 212, 0.72);
  border-radius: 999px;
  background: transparent;
  color: #f3e6d4;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.auth-email-entry:hover {
  background: rgba(201, 162, 39, 0.14);
  border-color: var(--accent-soft);
  color: #fff;
  transform: translateY(-1px);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.92rem;
}

.nav-links a {
  color: rgba(244, 239, 230, 0.92);
  text-decoration: none;
}

.nav-links a:hover {
  color: #fff;
  text-decoration: underline;
}

.hero {
  position: relative;
  min-height: clamp(26rem, 58vh, 36rem);
  height: auto;
  display: grid;
  align-items: center;
  color: var(--text);
  overflow: hidden;
  isolation: isolate;
}

@media (max-width: 700px) {
  .hero {
    min-height: clamp(22rem, 62vh, 30rem);
    height: auto;
  }
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: #1f1216;
}

.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  min-height: 100%;
  opacity: 0;
  transition: opacity 1s ease;
  pointer-events: none;
}

.hero-media img.is-active {
  opacity: 1;
  z-index: 1;
}

@media (min-width: 1400px) {
  .hero-media img {
    object-position: 70% center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-media img {
    transition: none;
  }
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(12, 14, 22, 0.78) 0%, rgba(12, 14, 22, 0.55) 28%, rgba(12, 14, 22, 0.22) 52%, rgba(12, 14, 22, 0.06) 72%, transparent 100%),
    linear-gradient(180deg, rgba(12, 14, 22, 0.12) 0%, rgba(12, 14, 22, 0.28) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 4.5rem clamp(1.25rem, 4vw, 3rem) 2.75rem;
  text-align: center;
}

.hero-inner > * {
  max-width: min(32rem, 100%);
  margin-inline: auto;
}

.hero .cta-row {
  justify-content: center;
}

@media (max-width: 700px) {
  .hero-media img {
    display: block;
    object-position: 78% center;
  }

  .hero-media {
    background: #0c0e16;
  }

  .hero-scrim {
    background:
      linear-gradient(180deg, rgba(12, 14, 22, 0.62) 0%, rgba(12, 14, 22, 0.78) 100%),
      linear-gradient(90deg, rgba(12, 14, 22, 0.7) 0%, rgba(12, 14, 22, 0.35) 55%, rgba(12, 14, 22, 0.12) 100%);
  }

  .hero-inner {
    padding-top: 3.75rem;
    padding-bottom: 2.5rem;
  }

  .hero-inner > * {
    max-width: 100%;
  }
}

.hero-kicker {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.78);
  text-shadow: none;
}

.hero h1 {
  margin: 0 auto 0.85rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.85rem, 3.6vw, 2.75rem);
  max-width: 760px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #ffffff;
  text-shadow: none;
}

@media (max-width: 700px) {
  .hero h1 {
    max-width: 100%;
    font-size: clamp(1.55rem, 6.2vw, 2rem);
    line-height: 1.1;
  }
}

.hero-lead {
  margin: 0 auto 1.75rem;
  max-width: 620px;
  font-family: var(--font-ui);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: none;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-note {
  margin: 0.85rem auto 0;
  max-width: 28rem;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.4;
  color: rgba(237, 235, 245, 0.78);
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 0.35rem 0.65rem;
  margin: 0;
  padding: 1.15rem clamp(1.25rem, 4vw, 3rem);
  max-width: none;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.005em;
  color: var(--text);
  background: color-mix(in srgb, var(--accent) 14%, #1a1824);
  border-top: 3px solid var(--accent);
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 35%, var(--border));
  box-shadow: inset 0 -1px 0 rgba(201, 162, 39, 0.12);
}

.hero-trust > span:not(.hero-trust-sep) {
  color: var(--text);
}

.hero-trust-sep {
  color: var(--accent-soft);
  font-weight: 700;
}

@media (max-width: 700px) {
  .hero-trust {
    justify-content: center;
    font-size: 0.92rem;
    gap: 0.25rem 0.5rem;
  }
}

.hero-benefits {
  display: grid;
  gap: 1.25rem 1.5rem;
  margin: 0;
  padding: 2.1rem clamp(1.25rem, 4vw, 3rem) 2.35rem;
  max-width: none;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  background: #12111a;
  border-bottom: 1px solid var(--border);
  box-shadow: inset 0 1px 0 rgba(201, 162, 39, 0.18);
}

@media (min-width: 800px) {
  .hero-benefits {
    grid-template-columns: repeat(3, minmax(0, 22rem));
    justify-content: center;
    gap: 1.5rem 2.25rem;
    padding-top: 2.35rem;
    padding-bottom: 2.6rem;
  }
}

.hero-benefits article {
  margin: 0;
  min-width: 0;
  padding-left: 0;
  border-left: none;
  border-top: 3px solid var(--accent);
  padding-top: 0.85rem;
}

.hero-benefits h2 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
}

.hero-benefits p {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--muted);
}

@media (max-width: 799px) {
  .hero-benefits article + article {
    margin-top: 0.25rem;
    border-top-color: color-mix(in srgb, var(--accent) 22%, var(--border));
  }
}

.hero .cta-row .btn {
  min-height: 3.15rem;
  padding: 0.85rem 1.55rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.85rem;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(1px);
  filter: brightness(0.94);
}

.btn:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--focus) 32%, transparent);
}

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 26%, transparent), 0 8px 24px color-mix(in srgb, var(--accent) 36%, transparent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--on-accent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent-hover) 34%, transparent), 0 10px 28px color-mix(in srgb, var(--accent) 44%, transparent);
}

.btn-primary:active {
  filter: none;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 26%, transparent), 0 4px 12px color-mix(in srgb, var(--accent) 28%, transparent);
}

.btn-primary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  box-shadow:
    0 0 0 3px var(--bg-primary),
    0 0 0 6px var(--focus);
}

.btn-secondary {
  background: rgba(244, 239, 230, 0.22);
  color: #fff;
  border-color: rgba(255, 248, 238, 0.72);
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}

.btn-secondary:hover {
  background: rgba(244, 239, 230, 0.34);
  color: #fff;
  border-color: rgba(244, 239, 230, 0.75);
}

.hero .btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent), 0 0 32px color-mix(in srgb, var(--accent) 42%, transparent), 0 8px 22px rgba(0, 0, 0, 0.35);
}

.hero .btn-primary:hover {
  background: var(--accent-hover);
  color: var(--on-accent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent-hover) 38%, transparent), 0 0 40px color-mix(in srgb, var(--accent) 52%, transparent), 0 10px 26px rgba(0, 0, 0, 0.4);
}

.hero .btn-secondary {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.hero .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.28);
  border-color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: rgba(28, 23, 18, 0.28);
  color: var(--amber-deep);
}

.btn-on-light.btn-secondary {
  color: var(--text);
  border-color: var(--line);
  background: transparent;
}

.btn-on-light.btn-secondary:hover {
  background: rgba(28, 23, 18, 0.04);
  color: var(--amber-deep);
}

.section {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 4.5rem clamp(1.25rem, 4vw, 3rem);
  scroll-margin-top: 1.25rem;
}

.section-pack-after {
  padding-bottom: 1.1rem;
}

.section-pack-before {
  padding-top: 1.1rem;
}

.section-head {
  max-width: 38rem;
  margin-bottom: 2rem;
}

.section-how .section-head {
  max-width: 46rem;
}

.section-why {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  background: #12111a;
  border-top: 3px solid var(--accent);
  border-bottom: 1px solid var(--border);
  box-shadow: inset 0 1px 0 rgba(201, 162, 39, 0.18);
  padding-top: 3.25rem;
  padding-bottom: 0;
}

.section-why .why-grid {
  max-width: var(--max);
  margin-inline: auto;
  margin-bottom: 0;
  padding-bottom: 2.5rem;
}

.why-grid {
  display: grid;
  gap: 1.75rem;
  margin: 0 0 2.5rem;
}

@media (min-width: 900px) {
  .why-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem 2rem;
  }
}

.why-grid article {
  margin: 0;
  min-width: 0;
  padding-left: 0.9rem;
  border-left: 3px solid var(--accent);
}

.why-grid h2 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}

.why-grid p {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.55;
  color: var(--muted);
}

@media (max-width: 899px) {
  .why-grid article + article {
    padding-top: 1.5rem;
    border-top: 1px solid color-mix(in srgb, var(--accent) 22%, var(--border));
  }
}

.section-head h2 {
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-shadow: none;
  overflow: visible;
  scroll-margin-top: 1.25rem;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.6;
}

.channels {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 800px) {
  .channels {
    grid-template-columns: repeat(3, 1fr);
  }
}

.channel {
  padding: 0;
  border: 0;
  background: transparent;
}

.channel h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
}

.channel h3 a {
  color: inherit;
  text-decoration: none;
}

.channel h3 a:hover {
  color: var(--accent);
}

.channel p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.story-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 560px) {
  .story-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .story-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

#stories {
  padding-top: 2.25rem;
  width: min(100%, 96rem);
}

#stories .story-grid {
  gap: 1rem 0.85rem;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  #stories .story-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  #stories .story-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) {
  #stories .story-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1.1rem 1rem;
  }
}

/* Catalog-style home cards: portrait cover + title / blurb / tags */
#stories .story-card {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

#stories .story-card::before {
  display: none;
}

#stories .story-card:hover {
  transform: translateY(-2px);
  border-color: transparent;
  box-shadow: none;
}

#stories .story-media {
  aspect-ratio: 3 / 4;
  border-radius: 0.55rem;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
}

#stories .story-slide img {
  object-position: center top;
}

#stories .story-age {
  position: absolute;
  right: 0.4rem;
  top: 0.4rem;
  bottom: auto;
  z-index: 4;
  padding: 0.12rem 0.38rem;
  border-radius: 0.22rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.2;
  color: #fff;
  background: #c45a2c;
  pointer-events: none;
}

#stories .story-card-body {
  padding: 0.55rem 0.1rem 0;
  gap: 0.22rem;
}

#stories .story-card .tag {
  display: none;
}

#stories .story-card h3 {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.05vw, 1.12rem);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.01em;
  padding: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#stories .story-card .story-meta {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--muted);
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
}

#stories .story-card p:not(.story-meta):not(.story-tags) {
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink-soft);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#stories .story-tags {
  margin: 0.2rem 0 0;
  display: flex;
  flex-wrap: nowrap;
  gap: 0.28rem;
  max-height: 1.7em;
  overflow: hidden;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--genre);
}

#stories .story-tags span {
  display: inline-block;
  flex: 0 0 auto;
  padding: 0.16rem 0.42rem;
  border-radius: 999px;
  letter-spacing: 0.02em;
  color: var(--genre);
  background: color-mix(in srgb, var(--genre) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--genre) 38%, transparent);
  white-space: nowrap;
}

#stories .story-cast-title {
  font-size: 0.7rem;
}

#stories .story-cast-mini {
  padding: 0.28rem 0.4rem;
}

#stories .story-cast-mini strong {
  font-size: 0.78rem;
}

#stories .story-cast-mini span {
  font-size: 0.68rem;
  line-height: 1.25;
}

#stories .section-more,
#stories + .section-more {
  width: min(100%, 96rem);
}

.story-card {
  --genre: var(--accent);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1.1rem;
  overflow: visible;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.story-card-main {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  color: inherit;
  text-decoration: none;
  min-height: 0;
}

.story-card-main:hover {
  color: inherit;
  opacity: 1;
}

.story-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85rem;
  bottom: 0.85rem;
  width: 3px;
  border-radius: 999px;
  background: var(--genre);
  z-index: 3;
  pointer-events: none;
}

.story-card[data-genre^="mystery"] { --genre: var(--genre-mystery); }
.story-card[data-genre^="romance"] { --genre: var(--genre-romance); }
.story-card[data-genre^="horror"] { --genre: var(--genre-horror); }
.story-card[data-genre^="fantasy"] { --genre: var(--genre-fantasy); }
.story-card[data-genre^="drama"] { --genre: var(--genre-drama); }
.story-card[data-genre^="thriller"] { --genre: var(--genre-thriller); }

.story-card:hover {
  opacity: 1;
  color: inherit;
  border-color: color-mix(in srgb, var(--genre) 42%, var(--border));
  transform: translateY(-3px);
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.36),
    0 0 30px color-mix(in srgb, var(--genre) 26%, transparent);
}

.story-media {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  background: var(--paper-dim);
  overflow: hidden;
  border-radius: 1.1rem 1.1rem 0 0;
  box-shadow: 0 18px 42px -14px color-mix(in srgb, var(--genre) 48%, transparent);
}

.story-card > img,
.story-card-main > img {
  border-radius: 1.1rem 1.1rem 0 0;
  box-shadow: 0 18px 42px -14px color-mix(in srgb, var(--genre) 48%, transparent);
}

.story-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease;
  pointer-events: none;
  z-index: 0;
}

.story-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.story-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  margin: 0;
}

.story-slide-cast img {
  z-index: 0;
  filter: brightness(1.08) saturate(0.45) contrast(0.88);
  opacity: 0.55;
  transform: none;
}

.story-slide-cast::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(232, 224, 209, 0.55);
  pointer-events: none;
}

.story-cast-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.45rem;
  padding: 0.55rem 0.55rem 1.7rem;
  color: var(--text);
}

.story-card .story-cast-title {
  margin: 0;
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 4.2vw, 1.45rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
  text-shadow: none;
  background: var(--paper-raise);
  border: 1px solid rgba(28, 23, 18, 0.16);
  border-radius: 0.5rem;
  padding: 0.32rem 0.55rem;
  box-shadow: 0 6px 18px rgba(20, 17, 14, 0.14);
}

.story-cast-grid {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  display: grid;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
  align-content: stretch;
}

.story-card .story-cast-mini {
  display: grid;
  gap: 0.12rem;
  min-height: 0;
  align-content: center;
  padding: 0.38rem 0.55rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(28, 23, 18, 0.16);
  background: var(--paper-raise);
  box-shadow: 0 4px 12px rgba(20, 17, 14, 0.1);
}

.story-card .story-cast-mini strong {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 3.4vw, 1.05rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--ink);
}

.story-card .story-cast-mini span {
  font-size: clamp(0.72rem, 2.6vw, 0.8rem);
  font-weight: 600;
  line-height: 1.3;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.story-media-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.65rem;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 0.35rem;
  pointer-events: auto;
}

.story-media-dots button {
  width: 0.45rem;
  height: 0.45rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(244, 239, 230, 0.45);
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(20, 17, 14, 0.2);
}

.story-media-dots button.is-active {
  background: #edebf5;
  width: 0.85rem;
}

.story-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1rem 1rem 0.85rem;
  flex: 1;
  overflow: visible;
}

.story-card .tag {
  display: inline-block;
  margin: 0;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--genre);
  background: color-mix(in srgb, var(--genre) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--genre) 32%, transparent);
}

.story-card h3 {
  margin: 0;
  padding: 0.15em 0 0.08em;
  font-family: var(--font-cormorant);
  font-size: clamp(1.55rem, 2.4vw, 1.95rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
  overflow: visible;
  text-shadow: none;
}

.story-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.5;
}

.story-card .story-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.story-card .card-cta {
  margin-top: auto;
  padding-top: 0.65rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-soft);
}

.story-card-actions {
  margin-top: auto;
  padding: 0 1.15rem 1.15rem;
}

.story-card-actions .btn-card-start {
  width: 100%;
  justify-content: center;
  font-size: 0.92rem;
  padding: 0.7rem 1rem;
}

.section-more {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 0.25rem clamp(1.25rem, 4vw, 3rem) 0.5rem;
}

.section > .section-more {
  width: auto;
  margin: 0 0 1rem;
  padding-left: 0;
  padding-right: 0;
}

#stories .section-more {
  margin: 0 0 1.1rem;
}

.demo-section .story-scene-demo,
body.home-page .story-demo-inner .story-scene-demo {
  margin-inline: auto;
}

.demo-section .story-scene-demo--text-only,
body.home-page .story-scene-demo--text-only {
  height: var(--demo-embed-h, 25.625rem);
  min-height: var(--demo-embed-h, 25.625rem);
  max-height: var(--demo-embed-h, 25.625rem);
  overflow: hidden;
}

.demo-section .story-scene-demo--text-only .demo-stage--embed,
body.home-page .story-scene-demo--text-only .demo-stage--embed {
  height: 100%;
  min-height: 0;
  max-height: none;
}

.story-scene-demo--text-only .demo-stage--embed {
  border-top: 0;
}

body.home-page .story-scene-demo[data-genre="mystery"] .demo-continue .btn-primary {
  background: var(--accent-soft);
  color: #0e0d14;
  border-color: color-mix(in srgb, var(--accent-soft) 52%, white);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--accent-soft) 26%, transparent),
    0 8px 22px color-mix(in srgb, var(--accent-soft) 36%, transparent);
}

body.home-page .story-scene-demo[data-genre="mystery"] .demo-continue .btn-primary:hover {
  background: color-mix(in srgb, var(--accent-soft) 82%, white);
  color: #0e0d14;
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--accent-soft) 34%, white),
    0 10px 26px color-mix(in srgb, var(--accent-soft) 44%, transparent);
}

body.home-page #demo.story-demo.section {
  padding-top: 2.75rem;
}

.demo-section-label {
  margin: 0 auto 0.85rem;
  max-width: 40rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  color: var(--accent-soft);
}

.demo-section .demo-stage {
  margin-top: 0;
  margin-inline: auto;
}

[data-demo-autoplay] {
  display: flex;
  flex-direction: column;
  height: 26rem;
  min-height: 26rem;
  max-height: 26rem;
  padding-bottom: 0.4rem;
  overflow: hidden;
  overflow-anchor: none;
}

.demo-section [data-demo-autoplay] {
  height: 28rem;
  min-height: 28rem;
  max-height: 28rem;
}

[data-demo-autoplay] [data-demo-meta] {
  flex: 0 0 auto;
  margin-bottom: 0.7rem;
  font-family: "Golos Text", sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

[data-demo-autoplay] [data-demo-body] {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  overflow-anchor: none;
}

[data-demo-autoplay] .demo-line {
  margin-bottom: 0.55rem;
  font-family: "Onest", sans-serif;
  font-size: 15.5px;
  font-weight: 400;
  line-height: 1.6;
}

[data-demo-autoplay] [data-demo-choices],
[data-demo-autoplay] [data-demo-end] {
  flex: 0 0 auto;
  margin-top: 0;
  margin-bottom: 0;
}

[data-demo-autoplay] [data-demo-choices] {
  display: block;
  margin-bottom: 0;
}

[data-demo-autoplay] .demo-choice-input {
  padding: 0.55rem 0.8rem;
}

.demo-composer {
  display: grid;
  align-content: start;
  gap: 0.4rem;
  padding: 0.55rem 0.7rem 0.45rem;
  border: 1px solid rgba(201, 162, 39, 0.38);
  border-radius: 0.9rem;
  background: rgba(244, 239, 230, 0.05);
}

.demo-composer-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.demo-composer-chip {
  padding: 0.28rem 0.55rem;
  border: 1px solid #f0c93a;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.3;
  color: rgba(255, 248, 238, 0.92);
  background: rgba(240, 201, 58, 0.12);
}

.demo-composer-field {
  display: grid;
  gap: 0.2rem;
  padding: 0.45rem 0.6rem;
  border: 1px dashed rgba(244, 239, 230, 0.28);
  border-radius: 0.65rem;
  background: rgba(0, 0, 0, 0.22);
}

.demo-composer-field .demo-input-hint {
  margin: 0;
}

.demo-composer-field .demo-input-field {
  min-height: 1.4em;
}

[data-demo-autoplay] .demo-end--live {
  margin-top: 0.75rem;
  padding-top: 0;
}

[data-demo-autoplay] .demo-end-actions .btn {
  min-height: 2.4rem;
  padding: 0.5rem 1rem;
  font-size: 0.88rem;
}

[data-demo-autoplay] .demo-line {
  opacity: 0;
  transform: translateY(0.35rem);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

[data-demo-autoplay] .demo-line.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  [data-demo-autoplay] .demo-line {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 700px) {
  [data-demo-autoplay] {
    height: 28rem;
    min-height: 28rem;
    max-height: 28rem;
  }

  .demo-section [data-demo-autoplay] {
    height: 30rem;
    min-height: 30rem;
    max-height: 30rem;
  }
}

.demo-stage {
  max-width: 40rem;
  padding: 1.5rem 1.35rem 1.6rem;
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 1.1rem;
  overflow: hidden;
  font-family: "Onest", "Golos Text", sans-serif;
}

.demo-meta {
  margin: 0 0 1rem;
  font-family: "Golos Text", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 248, 238, 0.72);
}

.demo-line {
  margin: 0 0 0.9rem;
  font-family: "Onest", sans-serif;
  font-size: 15.5px;
  font-weight: 400;
  line-height: 1.6;
}

.demo-narrator {
  color: rgba(255, 248, 238, 0.92);
}

.demo-line--stream {
  margin-bottom: 0;
}

@media (prefers-reduced-motion: reduce) {
  .demo-line--stream {
    animation: none;
  }
}

.demo-char span,
.demo-char .demo-char-name {
  display: block;
  margin-bottom: 0.25rem;
  font-family: "Golos Text", sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--amber);
}

.demo-char .demo-line-text {
  display: inline;
  margin: 0;
  font-family: inherit;
  font-size: inherit;
  letter-spacing: normal;
  text-transform: none;
  color: inherit;
  font-weight: inherit;
}

.demo-prompt {
  margin: 1.25rem 0 0.65rem;
  font-family: "Golos Text", sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 248, 238, 0.82);
}

.demo-choices {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.demo-choice {
  text-align: left;
  padding: 0.75rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm, 10px);
  background: var(--bg-elevated, transparent);
  color: var(--text);
  font-family: "Onest", sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
  animation: none;
}

.demo-choice:disabled {
  cursor: default;
  opacity: 1;
}

.demo-choice:hover,
.demo-choice:focus-visible,
.demo-choice.is-active {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: none;
  outline: none;
  animation: none;
}

a.demo-choice {
  text-decoration: none;
  display: block;
  box-sizing: border-box;
}

a.demo-choice-cta {
  border-color: transparent;
  background: var(--accent);
  color: #0e0d14;
  font-weight: 700;
  text-align: center;
  animation: none;
}

a.demo-choice-cta:hover,
a.demo-choice-cta:focus-visible {
  background: var(--accent-soft);
  color: #0e0d14;
  border-color: transparent;
}

.demo-choice-input {
  display: grid;
  gap: 0.35rem;
  border-style: dashed;
  background: rgba(244, 239, 230, 0.04);
}

.demo-choice-input.is-active,
.demo-choice-input:hover,
.demo-choice-input:focus-visible {
  border-style: solid;
}

@keyframes demo-choice-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(240, 201, 58, 0), 0 0 8px rgba(240, 201, 58, 0.22);
    border-color: #f0c93a;
  }
  50% {
    box-shadow: 0 0 0 1px rgba(240, 201, 58, 0.7), 0 0 22px rgba(240, 201, 58, 0.45);
    border-color: #ffd95c;
  }
}

@media (prefers-reduced-motion: reduce) {
  .demo-choice {
    animation: none;
    box-shadow: 0 0 14px rgba(201, 162, 39, 0.28);
    border-color: rgba(201, 162, 39, 0.5);
  }
}

.demo-input-hint {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 248, 238, 0.55);
}

.demo-input-field {
  display: flex;
  align-items: center;
  min-height: 1.35em;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff8ef;
}

.demo-input-text {
  white-space: pre-wrap;
}

.demo-caret {
  display: inline-block;
  width: 0.08em;
  height: 1.05em;
  margin-left: 0.08em;
  background: var(--amber);
  vertical-align: text-bottom;
  animation: demo-caret-blink 1s steps(1) infinite;
}

@keyframes demo-caret-blink {
  0%,
  45% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .demo-caret {
    animation: none;
    opacity: 1;
  }
}

.demo-note {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  color: rgba(244, 239, 230, 0.55);
}


.steps {
  list-style: none;
  margin: 0 0 2.5rem;
  padding: 0;
  display: grid;
  gap: 1.35rem;
}

@media (min-width: 900px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 2rem;
  }
}

.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
}

.step-num {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--amber-deep);
  line-height: 1.2;
}

.steps h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
}

.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 500;
}

.channels-compact {
  margin-top: 0.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}

.section-why .channels-compact {
  margin-top: 0;
  margin-inline: calc(-1 * clamp(1.25rem, 4vw, 3rem));
  padding: 1.5rem clamp(1.25rem, 4vw, 3rem) 2rem;
  max-width: none;
  width: auto;
  box-sizing: border-box;
  background: color-mix(in srgb, var(--accent) 14%, #1a1824);
  border-top: 1px solid color-mix(in srgb, var(--accent) 35%, var(--border));
  box-shadow: inset 0 1px 0 rgba(201, 162, 39, 0.12);
}

.channels-why {
  align-items: start;
  text-align: center;
}

.channels-why .channel--cta {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.channels-why .channel--cta .btn {
  justify-content: center;
}

@media (max-width: 799px) {
  .channels-why {
    grid-template-columns: 1fr;
  }

  .channels-why .channel--cta {
    order: -1;
  }
}

.position-section .section-head {
  max-width: 46rem;
}

.position-grid {
  display: grid;
  gap: 1.35rem;
}

@media (min-width: 800px) {
  .position-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.position-grid h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
}

.position-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 500;
}

.catalog-list {
  display: grid;
  gap: 1.5rem;
}

.catalog-item {
  display: grid;
  gap: 0.35rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.catalog-item h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 600;
}

.catalog-item .meta {
  color: var(--muted);
  font-size: 0.88rem;
}

.catalog-item p {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.page-hero {
  padding: 6.5rem clamp(1.25rem, 4vw, 3rem) 2.5rem;
  background:
    radial-gradient(ellipse at top left, rgba(201, 162, 39, 0.12), transparent 50%),
    linear-gradient(180deg, #17161f 0%, var(--paper) 100%);
}

.page-hero--rotate {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: clamp(18rem, 42vh, 26rem);
  display: flex;
  align-items: flex-end;
  background: #12111a;
}

.page-hero--rotate .page-hero-inner {
  position: relative;
  z-index: 1;
}

.page-hero--rotate .page-hero-inner > * {
  max-width: min(36rem, 100%);
}

.page-hero--rotate h1 {
  max-width: 16ch;
  color: var(--text);
}

.page-hero--rotate .lead,
.page-hero--rotate .lead-follow {
  color: color-mix(in srgb, var(--text) 82%, var(--muted));
}

.page-hero--rotate .breadcrumb {
  color: color-mix(in srgb, var(--text) 70%, var(--muted));
}

@media (max-width: 700px) {
  .page-hero--rotate {
    min-height: clamp(16rem, 48vh, 22rem);
    align-items: flex-end;
  }

  .page-hero--rotate .page-hero-inner > * {
    max-width: 100%;
  }
}

.page-hero-inner {
  width: min(100%, var(--max));
  margin: 0 auto;
}

.breadcrumb {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.breadcrumb a {
  color: inherit;
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--amber-deep);
  text-decoration: underline;
}

.page-hero h1 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 18ch;
}

.page-hero .lead {
  margin: 0;
  max-width: 40rem;
  color: var(--muted);
  font-size: 1.08rem;
}

.story-page-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.55rem;
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.page-hero--cover .story-page-meta > span:not(.story-genre-badge):not(.story-meta-badge) {
  color: rgba(244, 239, 230, 0.9);
}

.story-genre-badge {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--genre, var(--accent));
  background: color-mix(in srgb, var(--genre, var(--accent)) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--genre, var(--accent)) 36%, transparent);
  vertical-align: 0.05em;
}

.page-hero--cover .story-genre-badge {
  color: var(--genre, var(--accent));
  background: color-mix(in srgb, var(--genre, var(--accent)) 22%, rgba(12, 14, 22, 0.55));
  border-color: color-mix(in srgb, var(--genre, var(--accent)) 45%, transparent);
}

.story-meta-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255, 248, 238, 0.96);
  text-shadow: none;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 36%, transparent);
}

.page-hero--cover .story-meta-badge {
  background: color-mix(in srgb, var(--accent) 22%, rgba(12, 14, 22, 0.55));
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
}

body[data-genre="mystery"],
.page-hero[data-genre="mystery"] { --genre: var(--genre-mystery); }
body[data-genre="romance"],
.page-hero[data-genre="romance"] { --genre: var(--genre-romance); }
body[data-genre="horror"],
.page-hero[data-genre="horror"] { --genre: var(--genre-horror); }
body[data-genre="fantasy"],
.page-hero[data-genre="fantasy"] { --genre: var(--genre-fantasy); }
body[data-genre="drama"],
.page-hero[data-genre="drama"] { --genre: var(--genre-drama); }
body[data-genre="thriller"],
.page-hero[data-genre="thriller"] { --genre: var(--genre-thriller); }

body.story-page[data-genre] .page-hero--cover .cta-row .btn-primary {
  background: var(--genre, var(--accent));
  color: #0e0d14;
  border-color: color-mix(in srgb, var(--genre, var(--accent)) 55%, white);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--genre, var(--accent)) 28%, transparent),
    0 8px 22px color-mix(in srgb, var(--genre, var(--accent)) 36%, transparent);
}

body.story-page[data-genre] .page-hero--cover .cta-row .btn-primary:hover {
  background: color-mix(in srgb, var(--genre, var(--accent)) 78%, white);
  color: #0e0d14;
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--genre, var(--accent)) 38%, white),
    0 10px 26px color-mix(in srgb, var(--genre, var(--accent)) 44%, transparent);
}

body.story-page .site-header-login.btn-ghost {
  color: rgba(255, 248, 238, 0.88);
  border-color: rgba(255, 248, 238, 0.32);
  background: transparent;
  box-shadow: none;
}

body.story-page .site-header-login.btn-ghost:hover {
  color: #fff;
  border-color: rgba(255, 248, 238, 0.58);
  background: rgba(255, 248, 238, 0.08);
}

body.story-page .page-hero--cover .cta-row .btn-secondary {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  box-shadow: none;
  backdrop-filter: blur(8px);
}

body.story-page .page-hero--cover .cta-row .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.28);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.82);
}

body[data-genre] .page-hero::after,
.page-hero[data-genre]::after {
  content: "";
  display: block;
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, var(--genre), transparent 72%);
}

body[data-genre] .page-hero--cover::after,
.page-hero--cover[data-genre]::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  height: 3px;
  background: linear-gradient(90deg, var(--genre) 0%, color-mix(in srgb, var(--genre) 35%, transparent) 55%, transparent 100%);
}

body[data-genre] .story-synopsis-art {
  box-shadow: 0 22px 48px -16px color-mix(in srgb, var(--genre) 42%, transparent);
}

.page-hero--cover {
  position: relative;
  isolation: isolate;
  min-height: min(58vh, 30rem);
  display: flex;
  align-items: flex-end;
  padding-top: 2.5rem;
  padding-bottom: 2.75rem;
  background-color: #14110e;
  background-image: var(--story-hero-bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

@media (max-width: 700px) {
  .page-hero--cover {
    min-height: min(48vh, 20rem);
    padding-top: 1.75rem;
    padding-bottom: 2rem;
  }
}

.page-hero--cover::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(14, 11, 8, 0.58) 0%, rgba(14, 11, 8, 0.32) 38%, rgba(14, 11, 8, 0.1) 68%, rgba(14, 11, 8, 0.16) 100%),
    linear-gradient(180deg, rgba(14, 11, 8, 0.12) 0%, rgba(14, 11, 8, 0.28) 50%, rgba(14, 11, 8, 0.62) 100%);
}

.page-hero--cover .page-hero-inner {
  position: relative;
  z-index: 1;
  padding-bottom: 0.5rem;
}

.page-hero--cover h1,
.page-hero--cover .lead,
.page-hero--cover .story-page-meta {
  color: #edebf5;
}

.page-hero--cover .lead,
.page-hero--cover .story-page-meta {
  color: rgba(244, 239, 230, 0.9);
}

.page-hero--cover .breadcrumb {
  color: rgba(244, 239, 230, 0.75);
}

.page-hero--cover .breadcrumb a:hover {
  color: #f0c9a8;
}

.ending-names {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 1.25rem 0 0;
  max-width: 46rem;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.65rem 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .ending-names {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .ending-names {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.ending-names li {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding-left: 0;
  line-height: 1.25;
}

.ending-names li::before {
  display: none;
}

.ending-names strong {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.ending-names strong::before {
  content: "—";
  margin-right: 0.45rem;
  color: var(--amber-deep);
  font-weight: 500;
}

.ending-names em {
  margin: 0 0 0 1.15rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-style: italic;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.35;
}

.story-layout {
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .story-layout {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: start;
  }
}

.story-synopsis {
  display: grid;
  gap: 1.5rem;
  max-width: 52rem;
}

.story-synopsis--compact {
  gap: 0.55rem;
}

.story-synopsis--compact p {
  margin: 0;
  line-height: 1.55;
  color: var(--muted);
}

.story-intro.section {
  padding-top: 1.35rem;
  padding-bottom: 0.85rem;
}

.story-demo.section {
  padding-top: 1.15rem;
  padding-bottom: 0.85rem;
}

.story-cast.section {
  padding-top: 0.85rem;
  padding-bottom: 0.5rem;
}

.story-path.section {
  padding-top: 0.85rem;
}

.story-demo-inner {
  max-width: 52rem;
}

.story-path .story-aside {
  max-width: 52rem;
}

.story-layout > .story-synopsis-art {
  max-width: 52rem;
}

.story-synopsis-art {
  margin: 0;
  overflow: hidden;
  background: var(--paper-dim);
}

.story-synopsis-art img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  display: block;
}

.story-scene-demo {
  display: grid;
  gap: 0;
  max-width: 52rem;
  border-radius: 1.1rem;
  overflow: hidden;
  border: 1px solid rgba(20, 17, 14, 0.12);
}

.story-scene-demo .demo-continue {
  flex: 0 0 auto;
  margin-top: 0.65rem;
}

.story-scene-demo .demo-continue .btn {
  width: 100%;
}

body.story-page[data-genre] .story-scene-demo .demo-continue .btn-primary {
  background: var(--genre, var(--accent));
  color: #0e0d14;
  border-color: color-mix(in srgb, var(--genre, var(--accent)) 55%, white);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--genre, var(--accent)) 28%, transparent),
    0 8px 22px color-mix(in srgb, var(--genre, var(--accent)) 36%, transparent);
}

body.story-page[data-genre] .story-scene-demo .demo-continue .btn-primary:hover {
  background: color-mix(in srgb, var(--genre, var(--accent)) 78%, white);
  color: #0e0d14;
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--genre, var(--accent)) 38%, white),
    0 10px 26px color-mix(in srgb, var(--genre, var(--accent)) 44%, transparent);
}

.story-scene-demo .story-synopsis-art {
  border-radius: 0;
}

.demo-stage--embed {
  max-width: none;
  border-radius: 0;
  border: 0;
  border-top: 1px solid rgba(244, 239, 230, 0.12);
}

.demo-stage--embed[data-demo-autoplay] {
  padding-top: 1.15rem;
  padding-bottom: 0.75rem;
}

.demo-stage--embed .btn,
.demo-stage--embed .demo-end-actions .btn {
  margin-top: 0;
}

.story-scene-demo .demo-stage--embed {
  --demo-embed-h: 25.625rem;
  --demo-dock-h: 15.0625rem;
  position: relative;
  display: flex;
  flex-direction: column;
  height: var(--demo-embed-h);
  min-height: var(--demo-embed-h);
  max-height: var(--demo-embed-h);
  overflow: hidden;
  overflow-anchor: none;
  padding: 1.15rem 1.25rem 0.9rem;
  box-sizing: border-box;
}

.story-scene-demo .demo-stage--embed .demo-meta {
  flex: 0 0 auto;
  margin: 0 0 0.65rem;
  font-family: "Golos Text", sans-serif;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.story-scene-demo .demo-stage--embed [data-demo-body] {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  box-sizing: border-box;
}

.story-scene-demo .demo-stage--embed .demo-dock {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: auto;
  pointer-events: none;
}

.story-scene-demo .demo-stage--embed.demo-stage--streaming .demo-dock {
  flex: 0 0 var(--demo-dock-h);
  min-height: var(--demo-dock-h);
  visibility: hidden;
  overflow: hidden;
  pointer-events: none;
}

.story-scene-demo .demo-stage--embed .demo-dock > * {
  pointer-events: auto;
}

.story-scene-demo .demo-stage--embed .demo-line {
  opacity: 1;
  transform: none;
}

.story-scene-demo .demo-stage--embed [data-demo-choices] {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  grid-auto-rows: minmax(2.65rem, auto);
  gap: 0.5rem;
  align-content: start;
  margin: 0;
  overflow: visible;
}

.story-scene-demo .demo-stage--embed.demo-stage--streaming [data-demo-choices],
.story-scene-demo .demo-stage--embed .demo-choices--idle,
.story-scene-demo .demo-stage--embed .demo-choices[hidden] {
  visibility: hidden;
  pointer-events: none;
}

.story-scene-demo .demo-stage--embed .demo-choice {
  animation: none;
  min-height: 2.65rem;
  padding: 0.62rem 0.85rem;
  font-family: "Onest", sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.4;
}

.story-scene-demo .demo-stage--embed .demo-free--inline {
  min-height: 2.65rem;
  margin-top: 0.55rem;
}

.story-scene-demo .demo-stage--embed .demo-free--inline .demo-free-input {
  min-height: 2.65rem;
  padding: 0.62rem 0.85rem;
  font-size: 0.9rem;
  line-height: 1.35;
}

.story-scene-demo .demo-stage--embed .demo-continue {
  flex: 0 0 auto;
  min-height: 2.85rem;
  max-height: 2.85rem;
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
}

.story-scene-demo .demo-stage--embed .demo-continue--idle,
.story-scene-demo .demo-stage--embed .demo-continue[hidden] {
  visibility: hidden;
  flex: 0 0 0;
  min-height: 0;
  max-height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  pointer-events: none;
}

.story-scene-demo .demo-stage--embed:not(.demo-stage--streaming) [data-demo-choices]:not(.demo-choices--idle) {
  padding-top: 0.75rem;
}

.story-scene-demo .demo-stage--embed .demo-line,
.story-scene-demo .demo-stage--embed .demo-line--stream {
  margin-bottom: 0;
  font-family: "Onest", sans-serif;
  font-size: 15.5px;
  font-weight: 400;
  line-height: 1.6;
}

.story-scene-demo .demo-stage--embed .demo-end--live {
  margin-top: 0.75rem;
}

.story-scene-demo .demo-stage--embed .demo-end-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.story-layout > .story-scene-demo {
  min-width: 0;
}

.seo-prose {
  max-width: 46rem;
}

.seo-points {
  margin-top: 1.75rem;
  display: grid;
  gap: 1.25rem;
  max-width: 52rem;
}

@media (min-width: 720px) {
  .seo-points {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

.seo-points h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
}

.seo-points p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.5;
}

/* Keep CTA on its own row under the 3 points, not visually under col 1 */
.seo-points + .cta-row {
  display: flex;
  width: 100%;
  max-width: 52rem;
  margin-top: 2rem;
  clear: both;
}

.story-cover {
  width: 100%;
  max-height: min(70vh, 36rem);
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
  background: var(--paper-dim);
}

.story-start-band {
  margin: 1.25rem 0 0;
  padding: 0.25rem 0 0;
}

.story-start-band p {
  margin: 0 0 0.85rem;
  color: var(--muted);
}

body.story-page .page-hero--cover .cta-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  width: fit-content;
  max-width: 100%;
}

body.story-page .page-hero--cover .cta-row .btn {
  width: 100%;
  min-width: 0;
}

.story-scene-demo .demo-end-actions {
  width: auto;
  max-width: 100%;
}

.story-scene-demo .demo-end-actions .btn {
  flex: 0 1 auto;
}

.story-aside h2 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
}

.story-aside > p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 700px) {
  body.story-page .site-header {
    padding: 0.85rem 1rem;
    gap: 0.5rem;
  }

  body.story-page .site-header-start {
    gap: 0.4rem;
    min-width: 0;
    flex: 1 1 auto;
  }

  body.story-page .logo,
  body.story-page .site-header-link {
    font-size: 0.84rem;
    letter-spacing: 0.02em;
  }

  body.story-page .site-header-sep {
    font-size: 0.84rem;
  }

  body.story-page .site-header-login {
    flex-shrink: 0;
    min-height: 2.35rem;
    min-width: 6.5rem;
    padding: 0.35rem 1rem;
    font-size: 0.82rem;
  }

  body.story-page .page-hero--cover {
    padding-top: 3.75rem;
    min-height: min(52vh, 22rem);
  }

  body.story-page .page-hero--cover h1 {
    font-size: clamp(2rem, 9vw, 2.6rem);
    max-width: none;
  }

  body.story-page .page-hero--cover .lead {
    font-size: 0.98rem;
    line-height: 1.5;
  }

  body.story-page .story-page-meta {
    font-size: 0.88rem;
    gap: 0.3rem 0.4rem;
  }

  body.story-page .story-meta-badge {
    white-space: normal;
    line-height: 1.35;
    max-width: 100%;
  }

  body.story-page .story-start-band p {
    font-size: 0.92rem;
    line-height: 1.45;
  }

  body.story-page .page-hero--cover .cta-row,
  body.story-page .story-scene-demo .demo-end-actions {
    grid-template-columns: 1fr;
    width: 100%;
  }

  body.story-page .page-hero--cover .cta-row .btn,
  body.story-page .story-scene-demo .demo-end-actions .btn {
    width: 100%;
  }

  body.story-page .section {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  body.story-page .story-demo.section {
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
  }

  body.story-page .story-intro.section {
    padding-top: 1rem;
    padding-bottom: 0.75rem;
  }

  body.story-page .story-layout {
    gap: 1.5rem;
  }

  body.story-page .story-scene-demo {
    border-radius: 0.85rem;
  }

  body.story-page .story-scene-demo .demo-stage--embed {
    --demo-embed-h: 27.5rem;
    --demo-dock-h: 16rem;
    padding: 1rem 0.85rem 0.85rem;
  }

  body.home-page .story-scene-demo--text-only {
    height: var(--demo-embed-h, 27.5rem);
    min-height: var(--demo-embed-h, 27.5rem);
    max-height: var(--demo-embed-h, 27.5rem);
  }

  body.home-page .story-scene-demo--text-only .demo-stage--embed {
    padding: 1rem 0.85rem 0.85rem;
  }

  .demo-section .story-scene-demo--text-only {
    height: var(--demo-embed-h, 27.5rem);
    min-height: var(--demo-embed-h, 27.5rem);
    max-height: var(--demo-embed-h, 27.5rem);
  }

  .demo-section .story-scene-demo .demo-stage--embed {
    --demo-embed-h: 27.5rem;
    --demo-dock-h: 16rem;
    padding: 1rem 0.85rem 0.85rem;
  }

  body.story-page .story-scene-demo .demo-choice {
    font-size: 0.9rem;
    padding: 0.7rem 0.85rem;
  }

  body.story-page .ending-locks[data-count="9"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.story-page .ending-lock {
    min-height: 9.5rem;
    padding: 0.75rem 0.45rem 0.7rem;
  }

  body.story-page .ending-lock-label {
    font-size: 0.82rem;
    max-width: none;
    min-height: 2.4em;
  }

  body.story-page .story-aside h2 {
    font-size: 1.35rem;
  }

  body.story-page .section-more {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

.chapter-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.chapter-list li {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 0.65rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.98rem;
}

.chapter-list .ch-no {
  font-family: var(--font-display);
  color: var(--amber-deep);
  font-size: 1.05rem;
}

.chapter-list strong {
  color: var(--text);
  font-weight: 600;
}

/* Ending locks — spoiler-free collection tease */
.ending-locks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  align-items: stretch;
  gap: 0.75rem;
}

.ending-locks[data-count="4"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ending-locks[data-count="5"] {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

@media (max-width: 899px) {
  .ending-locks[data-count="5"] {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 599px) {
  .ending-locks[data-count="5"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.ending-locks[data-count="9"] {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (min-width: 700px) {
  .ending-locks[data-count="4"] {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.ending-lock {
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto auto;
  justify-items: center;
  align-items: center;
  gap: 0.35rem;
  height: 100%;
  min-height: 11rem;
  padding: 1rem 0.7rem 0.85rem;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--genre, var(--accent)) 28%, var(--line));
  background: var(--paper-raise);
  color: var(--muted);
  text-align: center;
  opacity: 0;
  transform: translateY(0.4rem);
  animation: ending-lock-in 0.55s ease forwards;
  box-sizing: border-box;
}

.ending-lock-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  margin: 0;
}

.ending-lock-bg picture,
.ending-lock-bg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.ending-lock::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, #0e0d14 18%, transparent) 0%,
      color-mix(in srgb, #0e0d14 72%, transparent) 48%,
      color-mix(in srgb, #0e0d14 92%, transparent) 100%
    );
  pointer-events: none;
}

.ending-lock-icon,
.ending-lock-label,
.ending-lock-state {
  position: relative;
  z-index: 2;
}

.ending-lock-icon {
  align-self: end;
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  color: var(--genre, var(--accent));
  background: color-mix(in srgb, var(--genre, var(--accent)) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--genre, var(--accent)) 32%, transparent);
}

.ending-lock-label {
  min-height: 2.6em;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
  line-height: 1.25;
  color: var(--text);
  max-width: 11rem;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
}

.ending-locks[data-count="5"] .ending-lock {
  min-height: 12rem;
  padding: 1rem 0.45rem 0.85rem;
}

.ending-locks[data-count="5"] .ending-lock-label {
  min-height: 2.8em;
  font-size: 0.84rem;
  max-width: none;
  width: 100%;
}

.ending-lock-state {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--text) 72%, var(--muted));
}

.ending-lock:nth-child(1) { animation-delay: 0.05s; }
.ending-lock:nth-child(2) { animation-delay: 0.12s; }
.ending-lock:nth-child(3) { animation-delay: 0.19s; }
.ending-lock:nth-child(4) { animation-delay: 0.26s; }
.ending-lock:nth-child(5) { animation-delay: 0.33s; }
.ending-lock:nth-child(6) { animation-delay: 0.4s; }
.ending-lock:nth-child(7) { animation-delay: 0.47s; }
.ending-lock:nth-child(8) { animation-delay: 0.54s; }
.ending-lock:nth-child(9) { animation-delay: 0.61s; }

@keyframes ending-lock-in {
  to {
    opacity: 1;
    transform: none;
  }
}

.ending-lock-svg {
  width: 1.15rem;
  height: 1.15rem;
}

.ending-locks-note {
  margin: 0.9rem 0 0;
  max-width: 36rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.ending-locks-note--solo {
  margin-top: 0;
}

@media (prefers-reduced-motion: reduce) {
  .ending-lock {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

.cast-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 700px) {
  .cast-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cast-grid[data-count="3"] {
    grid-template-columns: repeat(3, 1fr);
  }

  .cast-grid[data-count="4"] {
    grid-template-columns: repeat(4, 1fr);
  }

  .cast-grid[data-count="5"] {
    grid-template-columns: repeat(3, 1fr);
  }

  .cast-grid[data-count="1"] {
    grid-template-columns: minmax(0, 16rem);
  }
}

.cast-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper-raise);
}

.cast-card-media {
  position: relative;
  aspect-ratio: 3 / 4;
  margin: 0;
  background:
    linear-gradient(
      165deg,
      color-mix(in srgb, var(--genre, var(--accent)) 18%, transparent),
      color-mix(in srgb, var(--card) 70%, #0a0910) 70%
    );
  border-bottom: 1px solid var(--line);
}

.cast-card-media::after {
  content: "";
  position: absolute;
  inset: 18% 22% 12%;
  border-radius: 50% 50% 42% 42%;
  background: color-mix(in srgb, var(--genre, var(--accent)) 14%, var(--border));
  opacity: 0.55;
}

.cast-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.cast-card-media picture {
  display: block;
  width: 100%;
  height: 100%;
}

.cast-card-media:has(img)::after {
  display: none;
}

.cast-card-body {
  padding: 0.85rem 0.95rem 1rem;
  border-top: 3px solid var(--genre, var(--accent));
}

.cast-card h3 {
  margin: 0 0 0.3rem;
  font-family: var(--font-cormorant);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text);
}

.cast-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

body.story-page .cast-grid {
  gap: 0.75rem;
  max-width: 46rem;
}

body.story-page .cast-card {
  display: grid;
  grid-template-columns: 5.25rem 1fr;
  align-items: stretch;
}

body.story-page .cast-card-media {
  width: 5.25rem;
  max-height: 7rem;
  aspect-ratio: 3 / 4;
  border-bottom: none;
  border-right: 1px solid var(--line);
}

body.story-page .cast-card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.65rem 0.85rem;
  border-top: none;
  border-left: 3px solid var(--genre, var(--accent));
}

body.story-page .cast-card h3 {
  font-size: 1.08rem;
}

body.story-page .cast-card p {
  font-size: 0.84rem;
  line-height: 1.4;
}

@media (min-width: 700px) {
  body.story-page .cast-grid[data-count="3"] {
    grid-template-columns: 1fr;
  }

  body.story-page .cast-grid[data-count="4"],
  body.story-page .cast-grid[data-count="5"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.scene-gallery {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .scene-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

.scene-gallery figure {
  margin: 0;
  border: 1px solid var(--line);
  background: var(--paper-dim);
  overflow: hidden;
}

.scene-gallery img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.scene-gallery figcaption {
  padding: 0.55rem 0.75rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.prose p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 1.08rem;
  font-weight: 500;
}

.prose h2 {
  margin: 1.75rem 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
}

.prose h3 {
  margin: 1.25rem 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
}

.prose ul {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
  color: var(--muted);
  font-size: 1.02rem;
  font-weight: 500;
}

.prose li {
  margin: 0.35rem 0;
}

.prose .fine {
  margin-top: 1.5rem;
  font-size: 0.9rem;
}


.faq-section .section-head {
  max-width: 42rem;
}

.faq-list {
  max-width: 46rem;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 0;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.05rem 1.75rem 1.05rem 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  position: relative;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--amber-deep);
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 600;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item p {
  margin: 0 0 1.15rem;
  max-width: 40rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
}

.site-footer {
  margin-top: 2rem;
  padding: 2.5rem clamp(1.25rem, 4vw, 3rem) 3rem;
  border-top: 1px solid var(--line);
  background: var(--paper-dim);
}

.site-footer-inner {
  width: min(100%, var(--max));
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-footer a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.92rem;
}

.site-footer a:hover {
  color: var(--amber-deep);
  text-decoration: underline;
}

.site-footer .fine {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.site-footer .fine a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(20, 17, 14, 0.55);
}

.modal-backdrop[hidden] {
  display: none !important;
}

.modal {
  position: relative;
  width: min(100%, 26rem);
  background: var(--card);
  color: var(--text);
  padding: 1.75rem 1.5rem 1.5rem;
  border: 1px solid var(--border);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.modal h2 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 600;
}

.modal p {
  margin: 0 0 1.25rem;
  color: var(--muted);
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.modal-close {
  position: absolute;
  top: 0.55rem;
  right: 0.7rem;
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
}

.header-light {
  position: relative;
  color: var(--text);
  background: transparent;
}

.header-light .nav-links a {
  color: var(--muted);
}

.header-light .logo {
  color: var(--text);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn,
  .story-card,
  .story-slide {
    transition: none;
  }

  .btn:hover {
    transform: none;
  }
}

.hub-intro {
  padding-bottom: 0;
}

.hub-intro .seo-prose {
  max-width: 42rem;
}

.hub-genres {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
  margin: 1.5rem 0 0;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
}

.hub-genres a {
  color: var(--amber-deep);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.hub-genres a:hover {
  color: var(--amber);
}

.genre-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1.5rem 0 0;
}

.genre-filters a {
  display: inline-flex;
  align-items: center;
  min-height: 2.35rem;
  padding: 0.35rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.genre-filters a:hover {
  border-color: rgba(201, 162, 39, 0.45);
  color: var(--amber-deep);
}

.genre-filters a.is-active {
  border-color: transparent;
  background: var(--accent);
  color: #0e0d14;
}

.catalog-filter-status {
  margin: 0.85rem 0 0;
  min-height: 1.25rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.catalog-empty {
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-weight: 600;
}

.catalog-cta {
  margin-top: 2.75rem;
  max-width: 36rem;
}

.catalog-cta h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.2;
}

.catalog-cta p {
  margin: 0 0 1.15rem;
  color: var(--muted);
  font-size: 1.02rem;
  font-weight: 500;
  line-height: 1.5;
}

.page-hero .lead-follow {
  margin: 0.65rem 0 0;
}

[data-catalog] [data-genres][hidden],
[data-catalog-empty][hidden],
[data-catalog-soon-head][hidden] {
  display: none !important;
}

.demo-your span {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 248, 238, 0.7);
}

.demo-end {
  margin-top: 0.15rem;
  padding-top: 0;
}

.demo-end-text {
  margin: 0 0 1rem;
  font-family: var(--font-reader);
  color: rgba(255, 248, 238, 0.88);
  line-height: 1.7;
}

.demo-end-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.btn-on-dark {
  background: transparent;
  border-color: rgba(255, 248, 238, 0.45);
  color: #fff;
}

.btn-on-dark:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  color: #fff;
}

.demo-free {
  display: grid;
  gap: 0.55rem;
}

.demo-free--inline {
  gap: 0;
}

.demo-free-form--inline {
  display: block;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.demo-free--inline .demo-free-input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.75rem 0.95rem;
  border: 1px dashed rgba(240, 201, 58, 0.55);
  border-radius: 0.75rem;
  background: rgba(244, 239, 230, 0.04);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.45;
}

.demo-free--inline .demo-free-input::placeholder {
  color: rgba(255, 248, 238, 0.48);
}

.demo-free--inline .demo-free-input.is-demo-typing {
  border-style: solid;
  border-color: rgba(240, 201, 58, 0.72);
  background: rgba(201, 162, 39, 0.1);
  caret-color: var(--amber, #f0c93a);
}

.demo-free--inline .demo-free-input:focus {
  outline: none;
  border-style: solid;
  border-color: #e0bc4a;
  background: rgba(201, 162, 39, 0.12);
  box-shadow: 0 0 0 1px rgba(201, 162, 39, 0.45), 0 0 22px rgba(201, 162, 39, 0.35);
}

.demo-free-form {
  display: grid;
  gap: 0.5rem;
  padding: 0.75rem 0.85rem;
  border: 1px dashed rgba(244, 239, 230, 0.28);
  border-radius: 0.75rem;
  background: rgba(244, 239, 230, 0.05);
}

.demo-free-form[hidden] {
  display: none !important;
}

.demo-free-label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 248, 238, 0.55);
}

.demo-free-input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(244, 239, 230, 0.28);
  border-radius: 0.55rem;
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  font-family: var(--font-reader);
  font-size: 1.02rem;
  line-height: 1.7;
}

.demo-free-input:focus {
  outline: 2px solid rgba(201, 162, 39, 0.55);
  outline-offset: 1px;
}

.demo-free-submit {
  justify-self: start;
}

.demo-stage:not(.demo-stage--embed) .demo-choices[hidden],
.demo-stage:not(.demo-stage--embed) .demo-end[hidden],
.demo-stage:not(.demo-stage--embed) .demo-continue[hidden] {
  display: none !important;
}

.chapter-more {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.tg-gate-page {
  min-height: 100vh;
  background:
    radial-gradient(90% 60% at 70% 0%, rgba(90, 42, 52, 0.22) 0%, transparent 55%),
    radial-gradient(80% 50% at 10% 100%, rgba(40, 24, 32, 0.18) 0%, transparent 50%),
    var(--paper);
}

.tg-gate {
  display: grid;
  place-items: center;
  padding: 2rem clamp(1.25rem, 4vw, 3rem) 3rem;
  min-height: calc(100vh - 10rem);
}

.tg-gate-card {
  width: min(100%, 28rem);
  padding: 2.25rem 1.75rem 2rem;
  text-align: center;
  background: #16131a;
  color: #edebf5;
  border: 1px solid rgba(244, 239, 230, 0.12);
  border-radius: 1.25rem;
}

.tg-gate-avatar {
  width: 5.5rem;
  height: 5.5rem;
  margin: 0 auto 1.1rem;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(244, 239, 230, 0.2);
}

.tg-gate-kicker {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244, 239, 230, 0.62);
  font-weight: 700;
}

.tg-gate-card h1 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 4vw, 1.95rem);
  font-weight: 700;
  line-height: 1.25;
  color: #edebf5;
}

.tg-gate-lead {
  margin: 0 0 1.5rem;
  color: rgba(244, 239, 230, 0.82);
  font-size: 0.98rem;
  line-height: 1.55;
}

.tg-gate-actions {
  justify-content: center;
}

.tg-gate-actions .btn-secondary {
  color: #edebf5;
  border-color: rgba(244, 239, 230, 0.35);
  background: transparent;
}

.tg-gate-actions .btn-secondary:hover {
  color: #fff;
  border-color: rgba(244, 239, 230, 0.7);
  background: rgba(244, 239, 230, 0.06);
}

.tg-gate-note {
  margin: 1.1rem 0 0;
  font-size: 0.85rem;
  color: rgba(244, 239, 230, 0.55);
}

.tg-gate-back {
  margin: 1.35rem 0 0;
  font-size: 0.92rem;
}

.tg-gate-back a {
  color: rgba(244, 239, 230, 0.78);
  text-decoration: none;
}

.tg-gate-back a:hover {
  color: #fff;
  text-decoration: underline;
}

.local-dev-note {
  margin: 0;
  padding: 0.45rem 1rem;
  text-align: center;
  font-size: 0.82rem;
  color: var(--ink-soft);
  background: rgba(112, 83, 168, 0.1);
  border-bottom: 1px solid rgba(112, 83, 168, 0.2);
}

