/**
 * Ye Gez — Story reading flow v2 (default story UX since v1.5.0).
 * Disable: PHANTASO_STORY_FLOW_V2 = false in functions.php
 */

@keyframes yz-flow-card-in {
	from {
		opacity: 0.82;
		transform: translateY(8px);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes yz-flow-img-in {
	from {
		opacity: 0.88;
		transform: scale(1.012);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

/* ── Flow tokens ── */
body.yz-story-flow--v2.yegez-luxe {
	--yz-flow-body: 1.0625rem;
	--yz-flow-lead: 1.84;
	--yz-flow-copy: 1.82;
	--yz-flow-measure: min(54rem, 100%);
}

/* ── Page canvas (unified paper tone; white only on cards/panels) ── */
body.yz-story-flow--v2.yegez-luxe.phantaso-single--single-11 {
	background: var(--yz-paper-tonu, var(--yz-paper, #f3f6f5));
}

body.yz-story-flow--v2.yegez-luxe.phantaso-single--single-11 .yz-inner {
	background: var(--yz-paper-tonu, var(--yz-paper, #f3f6f5));
}

body.yz-story-flow--v2.yegez-luxe .yz-story-nav__card,
body.yz-story-flow--v2.yegez-luxe .yz-article__rail--story .yz-sb,
body.yz-story-flow--v2.yegez-luxe .yz-article__rail--story .yz-pulse {
	background: #fff;
	box-shadow:
		0 1px 0 color-mix(in srgb, #fff 90%, transparent) inset,
		0 12px 28px -22px rgba(15, 40, 32, 0.18);
}

/* ── Typography & measure ── */
body.yz-story-flow--v2.yegez-luxe .yz-inner--story .yz-prose--story {
	font-size: var(--yz-flow-body);
	line-height: var(--yz-flow-copy);
	letter-spacing: 0.004em;
	font-variant-ligatures: common-ligatures;
	text-wrap: pretty;
	hanging-punctuation: first last;
}

body.yz-story-flow--v2.yegez-luxe .yz-inner--story .yz-prose--story .yz-prose-intro > p:first-of-type {
	line-height: var(--yz-flow-lead);
}

body.yz-story-flow--v2.yegez-luxe .yz-prose--story .yz-prose-section > p:first-of-type,
body.yz-story-flow--v2.yegez-luxe .yz-prose--story .yz-prose-interlude-fold__body > p:first-of-type {
	font-size: 1.045em;
	color: color-mix(in srgb, var(--yz-ink) 93%, transparent);
}

body.yz-story-flow--v2.yegez-luxe .yz-prose--story p {
	margin-bottom: 1.32rem;
	max-width: var(--yz-flow-measure);
}

body.yz-story-flow--v2.yegez-luxe .yz-prose--story .yz-prose-section > p,
body.yz-story-flow--v2.yegez-luxe .yz-prose--story .yz-dest-card__body p {
	max-width: none;
}

body.yz-story-flow--v2.yegez-luxe .yz-prose--story p + p {
	margin-top: -0.15rem;
}

body.yz-story-flow--v2.yegez-luxe .yz-prose--story .yz-prose-intro {
	margin-bottom: 0.35rem;
	padding-bottom: clamp(1.65rem, 3.2vw, 2.15rem);
}

body.yz-story-flow--v2.yegez-luxe .yz-prose--story .yz-prose-intro::after {
	opacity: 0.75;
}

body.yz-story-flow--v2.yegez-luxe .yz-prose--story a:not(.yz-prose-share__btn):not(.yz-prose-section-nav__link):not(.yz-prose-takeaways__row):focus-visible {
	outline: 2px solid color-mix(in srgb, var(--pt-intent-color, var(--yz-accent)) 55%, transparent);
	outline-offset: 3px;
	border-radius: 2px;
}

/* Lists */
body.yz-story-flow--v2.yegez-luxe .yz-inner--story .yz-prose--story ul li,
body.yz-story-flow--v2.yegez-luxe .yz-inner--story .yz-prose--story ol li {
	margin-bottom: 0.62rem;
	line-height: 1.78;
}

body.yz-story-flow--v2.yegez-luxe .yz-prose--story blockquote,
body.yz-story-flow--v2.yegez-luxe .yz-prose--story .wp-block-quote {
	margin: 2.35rem 0;
	padding-left: 1.35rem;
	font-size: 1.12rem;
	line-height: 1.74;
}

body.yz-story-flow--v2.yegez-luxe .yz-prose--story .yz-prose-section__deck {
	margin-bottom: 1.65rem;
	padding-left: 1.15rem;
	font-size: 1.08rem;
	line-height: 1.8;
}

body.yz-story-flow--v2.yegez-luxe .yz-prose--story .yz-editor-note {
	margin: 1.75rem 0;
}

/* Images */
body.yz-story-flow--v2.yegez-luxe .yz-prose--story .yz-dest-card__media img,
body.yz-story-flow--v2.yegez-luxe .yz-prose--story figure img {
	opacity: 0.92;
	transform: scale(1.008);
	transition:
		opacity 0.55s cubic-bezier(0.25, 0.8, 0.25, 1),
		transform 0.55s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body.yz-story-flow--v2.yegez-luxe .yz-prose--story .yz-dest-card__media img.is-loaded,
body.yz-story-flow--v2.yegez-luxe .yz-prose--story figure img.is-loaded {
	opacity: 1;
	transform: none;
	animation: yz-flow-img-in 0.55s cubic-bezier(0.25, 0.8, 0.25, 1) both;
}

@media (prefers-reduced-motion: reduce) {
	body.yz-story-flow--v2.yegez-luxe .yz-prose--story .yz-dest-card__media img,
	body.yz-story-flow--v2.yegez-luxe .yz-prose--story figure img {
		opacity: 1;
		transform: none;
		transition: none;
		animation: none;
	}
}

/* ── Section rhythm & focus ── */
body.yz-story-flow--v2.yegez-luxe .yz-prose-section--story {
	padding-top: clamp(2.35rem, 4.8vw, 3.35rem);
}

body.yz-story-flow--v2.yegez-luxe .yz-prose-section--story + .yz-prose-section--story {
	border-top: 0;
}

body.yz-story-flow--v2.yegez-luxe .yz-prose-section--story:not(.yz-prose-section--interlude) {
	position: relative;
	padding-left: clamp(0.95rem, 2.4vw, 1.35rem);
	padding-bottom: clamp(1.85rem, 3.6vw, 2.65rem);
	border-radius: 0 var(--yz-r-md) var(--yz-r-md) 0;
	transition:
		opacity 0.35s ease,
		background-color 0.35s ease,
		filter 0.35s ease;
}

body.yz-story-flow--v2.yegez-luxe .yz-prose-section--story.is-past:not(.yz-prose-section--interlude) {
	opacity: 0.9;
	filter: saturate(0.97);
}

body.yz-story-flow--v2.yegez-luxe .yz-prose-section--story.is-reading:not(.yz-prose-section--interlude) {
	opacity: 1;
	filter: none;
}

body.yz-story-flow--v2.yegez-luxe .yz-prose-section--story:not(.yz-prose-section--interlude)::before {
	content: "";
	position: absolute;
	left: 0;
	top: clamp(2.5rem, 5vw, 3.5rem);
	bottom: clamp(1rem, 2.5vw, 1.75rem);
	width: 2px;
	border-radius: 999px;
	background: linear-gradient(
		180deg,
		color-mix(in srgb, var(--yz-line) 70%, transparent) 0%,
		color-mix(in srgb, var(--yz-line) 70%, transparent) 100%
	);
	opacity: 0.45;
	pointer-events: none;
	transition: opacity 0.3s ease, width 0.3s ease;
}

body.yz-story-flow--v2.yegez-luxe .yz-prose-section--story:not(.yz-prose-section--interlude)::after {
	content: "";
	position: absolute;
	left: 0;
	top: clamp(2.5rem, 5vw, 3.5rem);
	width: 3px;
	height: var(--yz-section-progress, 0%);
	max-height: calc(100% - clamp(3.5rem, 6vw, 4.5rem));
	border-radius: 999px;
	background: linear-gradient(
		180deg,
		var(--pt-intent-color, var(--yz-accent)),
		color-mix(in srgb, var(--pt-intent-color, var(--yz-accent)) 55%, var(--yz-brass, #c4a574))
	);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.25s ease;
}

body.yz-story-flow--v2.yegez-luxe .yz-prose-section--story.is-reading:not(.yz-prose-section--interlude) {
	background: linear-gradient(
		90deg,
		color-mix(in srgb, var(--pt-intent-color, var(--yz-accent)) 4.5%, var(--yz-paper-tonu, var(--yz-paper, #f3f6f5))) 0%,
		transparent 28%
	);
}

body.yz-story-flow--v2.yegez-luxe .yz-prose-section--story.is-reading:not(.yz-prose-section--interlude)::before {
	opacity: 0.25;
	width: 2px;
}

body.yz-story-flow--v2.yegez-luxe .yz-prose-section--story.is-reading:not(.yz-prose-section--interlude)::after {
	opacity: 1;
}

body.yz-story-flow--v2.yegez-luxe .yz-prose-section--story:not(.yz-prose-section--interlude) + .yz-prose-section--story:not(.yz-prose-section--interlude) {
	padding-top: clamp(3rem, 6vw, 4.25rem);
	background-image:
		radial-gradient(circle, color-mix(in srgb, var(--yz-line) 78%, transparent) 0 1.5px, transparent 2px),
		linear-gradient(
			90deg,
			transparent,
			color-mix(in srgb, var(--yz-line) 62%, transparent) 50%,
			transparent
		);
	background-size:
		6px 6px,
		min(10rem, 48%) 1px;
	background-repeat: no-repeat;
	background-position:
		center clamp(1.05rem, 2.2vw, 1.45rem),
		center clamp(1.15rem, 2.4vw, 1.55rem);
}

/* Scroll reveal */
body.yz-story-flow--v2.yegez-luxe .yz-prose-section--story {
	opacity: 0.9;
	transform: translateY(8px);
	transition:
		opacity 0.45s cubic-bezier(0.25, 0.8, 0.25, 1),
		transform 0.45s cubic-bezier(0.25, 0.8, 0.25, 1),
		background-color 0.35s ease,
		filter 0.35s ease;
}

body.yz-story-flow--v2.yegez-luxe .yz-prose-section--story.is-inview {
	opacity: 1;
	transform: none;
}

body.yz-story-flow--v2.yegez-luxe .yz-prose-section--story.is-past.is-inview {
	opacity: 0.82;
}

body.yz-story-flow--v2.yegez-luxe .yz-prose-section--story.is-reading.is-inview {
	opacity: 1;
}

body.yz-story-flow--v2.yegez-luxe .yz-prose-section--story.is-inview .yz-dest-card {
	animation: yz-flow-card-in 0.48s cubic-bezier(0.25, 0.8, 0.25, 1) both;
}

body.yz-story-flow--v2.yegez-luxe .yz-prose-section--story.is-inview .yz-dest-card:nth-child(1) { animation-delay: 0.03s; }
body.yz-story-flow--v2.yegez-luxe .yz-prose-section--story.is-inview .yz-dest-card:nth-child(2) { animation-delay: 0.08s; }
body.yz-story-flow--v2.yegez-luxe .yz-prose-section--story.is-inview .yz-dest-card:nth-child(3) { animation-delay: 0.13s; }
body.yz-story-flow--v2.yegez-luxe .yz-prose-section--story.is-inview .yz-dest-card:nth-child(4) { animation-delay: 0.18s; }

@media (prefers-reduced-motion: reduce) {
	body.yz-story-flow--v2.yegez-luxe .yz-prose-section--story {
		opacity: 1;
		transform: none;
		transition: none;
	}

	body.yz-story-flow--v2.yegez-luxe .yz-prose-section--story.is-past {
		opacity: 1;
		filter: none;
	}

	body.yz-story-flow--v2.yegez-luxe .yz-prose-section--story.is-inview .yz-dest-card {
		animation: none;
	}
}

/* ── Editorial chapter headers ── */
body.yz-story-flow--v2.yegez-luxe .yz-inner--story .yz-prose--story .yz-prose-section--story:not(.yz-prose-section--interlude) > h2 {
	flex-direction: column;
	align-items: flex-start;
	gap: 0.68rem;
	margin: 0 0 1.1rem;
	padding: 0 0 1.1rem;
	border: 0;
	border-bottom: 1px solid color-mix(in srgb, var(--yz-line) 86%, transparent);
	border-radius: 0;
	background: none;
	box-shadow: none;
	overflow: visible;
	transition: border-color 0.3s ease;
	text-wrap: balance;
}

body.yz-story-flow--v2.yegez-luxe .yz-prose-section--story.is-reading:not(.yz-prose-section--interlude) > h2 {
	border-bottom-color: color-mix(in srgb, var(--pt-intent-color, var(--yz-accent)) 24%, var(--yz-line));
}

body.yz-story-flow--v2.yegez-luxe .yz-inner--story .yz-prose--story .yz-prose-section--story:not(.yz-prose-section--interlude) > h2::before {
	order: -1;
	min-width: 2.15rem;
	height: 1.55rem;
	margin: 0;
	padding: 0 0.5rem;
	border-radius: 999px;
	font-size: 0.62rem;
	letter-spacing: 0.08em;
	box-shadow: none;
}

body.yz-story-flow--v2.yegez-luxe .yz-inner--story .yz-prose--story .yz-prose-section--story:not(.yz-prose-section--interlude) > h2::after {
	display: none;
}

body.yz-story-flow--v2.yegez-luxe .yz-prose--story .yz-prose-section__lead {
	margin: 0 0 1.4rem;
	padding: 0;
	justify-content: flex-start;
	gap: 0.45rem;
}

body.yz-story-flow--v2.yegez-luxe .yz-prose--story .yz-prose-section__progress {
	padding: 0.22rem 0.55rem;
	border-radius: 999px;
	background: color-mix(in srgb, var(--pt-intent-color, var(--yz-accent)) 7%, #fff);
	border: 1px solid color-mix(in srgb, var(--pt-intent-color, var(--yz-accent)) 14%, var(--yz-line));
}

body.yz-story-flow--v2.yegez-luxe .yz-prose--story .yz-prose-section__time {
	background: color-mix(in srgb, var(--pt-intent-color, var(--yz-accent)) 6%, #fff);
	border-color: color-mix(in srgb, var(--pt-intent-color, var(--yz-accent)) 14%, var(--yz-line));
}

/* ── Planlama ── */
body.yz-story-flow--v2.yegez-luxe .yz-prose--story .yz-prose-section--interlude {
	padding-top: clamp(2rem, 4vw, 2.75rem);
	padding-left: 0;
}

body.yz-story-flow--v2.yegez-luxe .yz-prose--story .yz-prose-section--interlude::before,
body.yz-story-flow--v2.yegez-luxe .yz-prose--story .yz-prose-section--interlude::after {
	display: none;
}

body.yz-story-flow--v2.yegez-luxe .yz-prose--story .yz-prose-section--interlude.is-reading .yz-prose-interlude-fold {
	border-color: color-mix(in srgb, var(--pt-intent-color, var(--yz-accent)) 24%, var(--yz-line));
	box-shadow:
		inset 0 1px 0 color-mix(in srgb, #fff 90%, transparent),
		0 10px 32px -22px color-mix(in srgb, var(--pt-intent-color, var(--yz-accent)) 18%, rgba(15, 40, 32, 0.22));
}

body.yz-story-flow--v2.yegez-luxe .yz-prose--story .yz-prose-interlude-fold {
	border-radius: var(--yz-r-lg);
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* ── Dest cards & spot sheet ── */
body.yz-story-flow--v2.yegez-luxe .yz-inner--story .yz-prose--story .yz-dest-card__head > h3,
body.yz-story-flow--v2.yegez-luxe .yz-inner--story .yz-prose--story .yz-dest-card > h3 {
	margin-top: 2rem;
}

body.yz-story-flow--v2.yegez-luxe .yz-prose-section--story.is-reading .yz-dest-card__head > h3,
body.yz-story-flow--v2.yegez-luxe .yz-prose-section--story.is-reading .yz-dest-card > h3 {
	border-left-color: color-mix(in srgb, var(--pt-intent-color, var(--yz-accent)) 100%, #fff);
}

body.yz-story-flow--v2.yegez-luxe .yz-prose--story .yz-dest-card:not(:last-child)::after {
	margin-top: clamp(1.35rem, 2.6vw, 1.85rem);
	opacity: 0.58;
}

body.yz-story-flow--v2.yegez-luxe .yz-inner--story .yz-prose--story .yz-spot-sheet {
	margin-top: 1.55rem;
}

body.yz-story-flow--v2.yegez-luxe .yz-prose-section--story.is-reading .yz-spot-sheet {
	border-left-width: 4px;
}

body.yz-story-flow--v2.yegez-luxe .yz-prose--story .yz-dest-card__media {
	border-radius: calc(var(--yz-r-lg) + 1px);
	box-shadow:
		0 1px 0 color-mix(in srgb, #fff 88%, transparent) inset,
		0 14px 36px -24px rgba(15, 40, 32, 0.28);
}

/* ── Intro kit & read progress ── */
body.yz-story-flow--v2.yegez-luxe .yz-prose--story .yz-prose-intro-kit--premium {
	margin-bottom: clamp(2.15rem, 4.2vw, 2.85rem);
}

body.yz-story-flow--v2.yegez-luxe .yz-prose-read-progress {
	height: 2px;
	background: color-mix(in srgb, var(--yz-line) 55%, transparent);
}

body.yz-story-flow--v2.yegez-luxe .yz-prose-read-progress__bar {
	background: linear-gradient(
		90deg,
		var(--pt-intent-color, var(--yz-accent)),
		color-mix(in srgb, var(--yz-brass, #c4a574) 50%, var(--pt-intent-color, var(--yz-accent)))
	);
}

/* ── Desktop breadcrumb (sticky in main column — no header/sidebar overlap) ── */
body.yz-story-flow--v2.yegez-luxe .yz-article__main {
	position: relative;
	z-index: 2;
}

body.yz-story-flow--v2.yegez-luxe .yz-flow-crumb {
	position: sticky;
	top: calc(var(--yz-header-offset, 3.75rem) + 0.35rem);
	z-index: 8;
	width: 100%;
	max-height: 0;
	margin: 0;
	overflow: hidden;
	opacity: 0;
	pointer-events: none;
	transform: translateY(-6px);
	transition:
		opacity 0.28s ease,
		transform 0.28s cubic-bezier(0.25, 0.8, 0.25, 1),
		max-height 0.28s ease,
		margin 0.28s ease;
}

body.yz-story-flow--v2.yegez-luxe .yz-flow-crumb.is-visible {
	max-height: 4rem;
	margin: 0 0 clamp(0.55rem, 1.2vw, 0.75rem);
	opacity: 1;
	transform: none;
	pointer-events: auto;
}

body.yz-story-flow--v2.yegez-luxe .yz-flow-crumb__inner {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 0.65rem 1rem;
	width: 100%;
	max-width: none;
	margin-inline: 0;
	padding: 0.5rem 0.85rem;
	border: 1px solid color-mix(in srgb, var(--yz-line) 84%, var(--pt-intent-color, var(--yz-accent)));
	border-radius: 999px;
	background: color-mix(in srgb, #fff 94%, var(--yz-paper, #f3f6f5));
	backdrop-filter: blur(12px);
	box-shadow: 0 10px 28px -18px rgba(15, 40, 32, 0.22);
	cursor: pointer;
}

body.yz-story-flow--v2.yegez-luxe .yz-flow-crumb__kicker {
	font-family: var(--yz-display);
	font-size: 0.62rem;
	font-weight: 800;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: var(--pt-intent-color, var(--yz-accent));
	white-space: nowrap;
}

body.yz-story-flow--v2.yegez-luxe .yz-flow-crumb__title {
	min-width: 0;
	font-family: var(--yz-story-display, var(--yz-display));
	font-size: 0.82rem;
	font-weight: 700;
	line-height: 1.35;
	color: var(--yz-ink);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

body.yz-story-flow--v2.yegez-luxe .yz-flow-crumb__meta {
	font-family: var(--yz-display);
	font-size: 0.62rem;
	font-weight: 700;
	color: var(--yz-muted);
	white-space: nowrap;
}

body.yz-story-flow--v2.yegez-luxe.yz-flow-crumb-active .yz-prose-section--story[id] {
	scroll-margin-top: calc(var(--yz-header-offset, 3.75rem) + 2.75rem);
}

/* ── Desktop TOC ── */
@media (min-width: 1024px) {
	body.yz-story-flow--v2.yegez-luxe {
		--yz-flow-body: 1.075rem;
		--yz-flow-copy: 1.84;
	}

	body.yz-story-flow--v2.yegez-luxe .yz-story-nav--desktop .yz-story-nav__link.is-active,
	body.yz-story-flow--v2.yegez-luxe .yz-article__toc--desktop .yz-story-nav__link.is-active {
		background: color-mix(in srgb, var(--pt-intent-color, var(--yz-accent)) 9%, #fff);
		border-color: color-mix(in srgb, var(--pt-intent-color, var(--yz-accent)) 24%, var(--yz-line));
		box-shadow: inset 2px 0 0 var(--pt-intent-color, var(--yz-accent));
	}

	body.yz-story-flow--v2.yegez-luxe .yz-prose-section--story:not(.yz-prose-section--interlude) + .yz-prose-section--story:not(.yz-prose-section--interlude) {
		padding-top: clamp(3.35rem, 5vw, 4.5rem);
	}
}

@media (min-width: 1280px) {
	body.yz-story-flow--v2.yegez-luxe {
		--yz-flow-body: 1.0875rem;
		--yz-flow-measure: min(56rem, 100%);
	}
}

/* ── Mobile chapter chips ── */
@media (max-width: 1023px) {
	body.yz-story-flow--v2.yegez-luxe .yz-story-chapters {
		background: color-mix(in srgb, #fff 93%, transparent);
		backdrop-filter: blur(12px);
		border-bottom-color: color-mix(in srgb, var(--yz-line) 80%, transparent);
		box-shadow: 0 4px 18px -14px rgba(15, 40, 32, 0.12);
	}

	body.yz-story-flow--v2.yegez-luxe .yz-story-chapters__chip.is-active {
		border-color: color-mix(in srgb, var(--yz-accent) 45%, var(--yz-line));
		background: color-mix(in srgb, var(--yz-accent) 5%, #fff);
		box-shadow: 0 0 0 1px color-mix(in srgb, var(--yz-accent) 8%, transparent);
	}

	body.yz-story-flow--v2.yegez-luxe .yz-story-chapters__chip.is-active .yz-story-chapters__num {
		background: var(--yz-accent);
		color: #fff;
	}

	body.yz-story-flow--v2.yegez-luxe .yz-inner--story .yz-prose--story {
		font-size: 1.035rem;
		line-height: 1.8;
	}

	body.yz-story-flow--v2.yegez-luxe .yz-prose-section--story:not(.yz-prose-section--interlude) {
		padding-left: 0.75rem;
	}

	body.yz-story-flow--v2.yegez-luxe .yz-inner--story .yz-prose--story .yz-prose-section--story:not(.yz-prose-section--interlude) > h2 {
		font-size: clamp(1.32rem, 5.2vw, 1.62rem);
	}
}

/* ── Mobile reading rail ── */
body.yz-story-flow--v2.yegez-luxe .yz-flow-rail {
	display: none;
}

@media (max-width: 1023px) {
	body.yz-story-flow--v2.yegez-luxe .yz-flow-rail {
		display: block;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 88;
		padding: 0 0 env(safe-area-inset-bottom, 0);
		pointer-events: none;
		transform: translateY(110%);
		opacity: 0;
		transition: transform 0.28s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.28s ease;
	}

	body.yz-story-flow--v2.yegez-luxe .yz-flow-rail.is-visible {
		transform: none;
		opacity: 1;
	}

	body.yz-story-flow--v2.yegez-luxe .yz-flow-rail__inner {
		pointer-events: auto;
		margin: 0 0.55rem 0.55rem;
		border: 1px solid color-mix(in srgb, var(--yz-line) 84%, var(--pt-intent-color, var(--yz-accent)));
		border-radius: calc(var(--yz-r-lg) + 2px);
		background: color-mix(in srgb, #fff 94%, transparent);
		backdrop-filter: blur(14px);
		box-shadow:
			0 1px 0 color-mix(in srgb, #fff 92%, transparent) inset,
			0 16px 40px -18px rgba(15, 40, 32, 0.28);
		overflow: hidden;
		touch-action: pan-y;
	}

	body.yz-story-flow--v2.yegez-luxe .yz-flow-rail__progress {
		height: 3px;
		background: color-mix(in srgb, var(--yz-line) 55%, transparent);
	}

	body.yz-story-flow--v2.yegez-luxe .yz-flow-rail__progress span {
		display: block;
		height: 100%;
		width: 0;
		background: linear-gradient(90deg, var(--pt-intent-color, var(--yz-accent)), color-mix(in srgb, var(--yz-brass, #c4a574) 55%, var(--pt-intent-color, var(--yz-accent))));
		transition: width 0.12s linear;
	}

	body.yz-story-flow--v2.yegez-luxe .yz-flow-rail__row {
		display: grid;
		grid-template-columns: auto minmax(0, 1fr) auto;
		align-items: stretch;
		gap: 0.35rem;
		padding: 0.45rem 0.45rem 0.5rem;
	}

	body.yz-story-flow--v2.yegez-luxe .yz-flow-rail__step {
		display: inline-grid;
		place-items: center;
		width: 2.35rem;
		border: 1px solid color-mix(in srgb, var(--yz-line) 88%, transparent);
		border-radius: 999px;
		background: #fff;
		color: var(--yz-ink);
		cursor: pointer;
		transition: border-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
	}

	body.yz-story-flow--v2.yegez-luxe .yz-flow-rail__step:disabled {
		opacity: 0.35;
		cursor: not-allowed;
	}

	body.yz-story-flow--v2.yegez-luxe .yz-flow-rail__step:not(:disabled):active,
	body.yz-story-flow--v2.yegez-luxe .yz-flow-rail__main:active {
		border-color: color-mix(in srgb, var(--pt-intent-color, var(--yz-accent)) 35%, var(--yz-line));
		color: var(--pt-intent-color, var(--yz-accent));
	}

	body.yz-story-flow--v2.yegez-luxe .yz-flow-rail__main {
		display: grid;
		gap: 0.12rem;
		min-width: 0;
		padding: 0.42rem 0.65rem;
		border: 1px solid color-mix(in srgb, var(--yz-line) 82%, transparent);
		border-radius: calc(var(--yz-r-md) + 1px);
		background: color-mix(in srgb, var(--yz-paper, #f3f6f5) 16%, #fff);
		text-align: left;
		cursor: pointer;
		color: inherit;
		font: inherit;
	}

	body.yz-story-flow--v2.yegez-luxe .yz-flow-rail__meta {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 0.5rem;
		min-width: 0;
	}

	body.yz-story-flow--v2.yegez-luxe .yz-flow-rail__kicker {
		flex-shrink: 0;
		font-family: var(--yz-display);
		font-size: 0.58rem;
		font-weight: 800;
		letter-spacing: 0.07em;
		text-transform: uppercase;
		color: var(--pt-intent-color, var(--yz-accent));
	}

	body.yz-story-flow--v2.yegez-luxe .yz-flow-rail__count {
		flex-shrink: 0;
		font-family: var(--yz-display);
		font-size: 0.58rem;
		font-weight: 700;
		letter-spacing: 0.04em;
		color: var(--yz-muted);
	}

	body.yz-story-flow--v2.yegez-luxe .yz-flow-rail__title {
		min-width: 0;
		font-family: var(--yz-story-display, var(--yz-display));
		font-size: 0.8rem;
		font-weight: 700;
		line-height: 1.35;
		color: var(--yz-ink);
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	body.yz-story-flow--v2.yegez-luxe.yz-flow-rail-active .yz-inner--story {
		padding-bottom: calc(5.15rem + env(safe-area-inset-bottom, 0));
	}
}

/* ── Night mode ── */
html.yz-reading--night body.yz-story-flow--v2.yegez-luxe .yz-prose-section--story.is-reading:not(.yz-prose-section--interlude) {
	background: linear-gradient(
		90deg,
		color-mix(in srgb, var(--pt-intent-color, var(--yz-accent)) 8%, var(--yz-story-night-panel, #1b2320)) 0%,
		transparent 32%
	);
}

html.yz-reading--night body.yz-story-flow--v2.yegez-luxe .yz-prose-section--story.is-past {
	opacity: 0.68;
}

html.yz-reading--night body.yz-story-flow--v2.yegez-luxe .yz-flow-crumb__inner,
html.yz-reading--night body.yz-story-flow--v2.yegez-luxe .yz-flow-rail__inner {
	background: color-mix(in srgb, var(--yz-story-night-panel, #1b2320) 92%, transparent);
	border-color: var(--yz-story-night-border, rgba(255, 255, 255, 0.11));
}

html.yz-reading--night body.yz-story-flow--v2.yegez-luxe .yz-flow-crumb__title,
html.yz-reading--night body.yz-story-flow--v2.yegez-luxe .yz-flow-rail__title {
	color: var(--yz-story-night-strong, #f4f7f5);
}

html.yz-reading--night body.yz-story-flow--v2.yegez-luxe .yz-flow-rail__main {
	background: color-mix(in srgb, var(--yz-story-night-panel-2, #252e2a) 88%, transparent);
}

html.yz-reading--night body.yz-story-flow--v2.yegez-luxe .yz-flow-rail__step {
	background: var(--yz-story-night-panel-2, #252e2a);
	color: var(--yz-story-night-strong, #f4f7f5);
}

/* ── Comfort / compact reading modes ── */
html.yz-reading--comfort body.yz-story-flow--v2.yegez-luxe {
	--yz-flow-body: 1.1125rem;
	--yz-flow-copy: 1.9;
	--yz-flow-lead: 1.92;
}

html.yz-reading--compact body.yz-story-flow--v2.yegez-luxe {
	--yz-flow-body: 1rem;
	--yz-flow-copy: 1.72;
	--yz-flow-lead: 1.74;
}

@media print {
	body.yz-story-flow--v2.yegez-luxe .yz-flow-crumb,
	body.yz-story-flow--v2.yegez-luxe .yz-flow-rail {
		display: none !important;
	}

	body.yz-story-flow--v2.yegez-luxe .yz-prose-section--story {
		opacity: 1 !important;
		transform: none !important;
		filter: none !important;
		break-inside: avoid;
	}
}
