/* ——— Gece / kadife / cam ——— */
.theme-velvet {
    --void: #020108;
    --void-mid: #0c0614;
    --glass: rgba(22, 10, 28, 0.62);
    --glass-edge: rgba(255, 200, 220, 0.14);
    --blush: #f0a0b8;
    --blush-hot: #ff7eb3;
    --blush-dim: rgba(255, 160, 190, 0.42);
    --wine: #5c1a38;
    --gold: #f2d4b8;
    --gold-soft: rgba(245, 214, 190, 0.62);
    --ember: rgba(255, 120, 160, 0.22);
    --text: rgba(255, 250, 252, 0.94);
    --text-dim: rgba(255, 238, 245, 0.62);
    --font-display: "Playfair Display", Georgia, serif;
    --font-flare: "Playfair Display", Georgia, serif;
    --font-body: "Newsreader", Georgia, serif;
    --font-ui: "Outfit", system-ui, sans-serif;
    --radius: 1.45rem;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --heart-clip: polygon(50% 96%, 87% 63%, 95% 38%, 86% 20%, 69% 14%, 50% 30%, 31% 14%, 14% 20%, 5% 38%, 13% 63%);
    --heart-photo-left: url("img/kalp-cift.png");
    --heart-photo-right: url("img/kalp-cift.png");
}

*, *::before, *::after { box-sizing: border-box; }
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

::selection {
    background: rgba(255, 126, 179, 0.38);
    color: #fff;
}

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    font-family: var(--font-body);
    font-size: clamp(1.02rem, 0.35vw + 0.95rem, 1.14rem);
    line-height: 1.65;
    color: var(--text-dim);
    background: var(--void);
}

.ambient {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 90% 70% at 50% -15%, rgba(180, 50, 100, 0.55), transparent 52%),
        radial-gradient(ellipse 55% 45% at 95% 25%, rgba(100, 40, 140, 0.35), transparent 48%),
        radial-gradient(ellipse 65% 55% at 5% 75%, rgba(60, 15, 40, 0.65), transparent 50%),
        radial-gradient(ellipse 40% 35% at 80% 90%, rgba(120, 40, 80, 0.2), transparent 45%),
        linear-gradient(168deg, #0a0412 0%, var(--void) 38%, #050208 100%);
    animation: ambient-shift 22s ease-in-out infinite alternate;
    will-change: transform, opacity;
}

@keyframes ambient-shift {
    from { transform: scale(1); opacity: 0.96; }
    to { transform: scale(1.035); opacity: 1; }
}

.noise {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.app {
    position: relative;
    z-index: 2;
    display: flex;
    min-height: 100vh;
}

/* ——— Ana sahne ——— */
.stage {
    flex: 1 1 auto;
    width: 100%;
    max-width: 56rem;
    margin-left: auto;
    margin-right: auto;
    padding-top: max(1rem, env(safe-area-inset-top, 0));
    padding-left: max(clamp(1rem, 3.5vw, 2.25rem), env(safe-area-inset-left, 0));
    padding-right: max(clamp(1rem, 3.5vw, 2.25rem), env(safe-area-inset-right, 0));
    padding-bottom: max(5.5rem, calc(4.5rem + env(safe-area-inset-bottom, 0)));
}

.sheet {
    position: relative;
    width: 100%;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--glass-edge);
    background: linear-gradient(165deg, rgba(40, 18, 45, 0.35) 0%, rgba(12, 6, 18, 0.75) 100%), var(--glass);
    backdrop-filter: blur(14px) saturate(1.08);
    -webkit-backdrop-filter: blur(14px) saturate(1.08);
    box-shadow:
        0 0 0 1px rgba(255, 200, 220, 0.1),
        0 0 48px rgba(100, 30, 70, 0.16),
        0 22px 64px rgba(0, 0, 0, 0.46),
        inset 0 1px 0 rgba(255, 255, 255, 0.09);
    contain: layout paint;
}

.sheet::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: linear-gradient(
        135deg,
        rgba(255, 190, 210, 0.35) 0%,
        rgba(120, 40, 90, 0.15) 40%,
        rgba(255, 220, 200, 0.12) 65%,
        rgba(255, 140, 180, 0.2) 100%
    );
    opacity: 0.35;
    z-index: 0;
    pointer-events: none;
}

.sheet > * {
    position: relative;
    z-index: 1;
}

/* ——— Kapak ——— */
.sheet--cover {
    min-height: min(88vh, 40rem);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(2rem, 6vw, 3.5rem);
}

.cover-glow {
    position: absolute;
    inset: -45%;
    background:
        radial-gradient(circle at 50% 35%, rgba(255, 150, 190, 0.2), transparent 42%),
        radial-gradient(circle at 20% 80%, rgba(180, 60, 120, 0.12), transparent 40%);
    pointer-events: none;
    animation: cover-mist 8s ease-in-out infinite alternate;
}

@keyframes cover-mist {
    from { opacity: 0.85; transform: scale(1); }
    to { opacity: 1; transform: scale(1.03); }
}

.cover-rule {
    display: block;
    width: 5rem;
    height: 1px;
    margin: 0 auto;
    background: linear-gradient(90deg, transparent, rgba(255, 200, 210, 0.7), transparent);
    box-shadow: 0 0 18px rgba(255, 160, 190, 0.45);
}

.cover-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 26rem;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2rem;
}

.cover-heart {
    position: relative;
    width: min(100%, clamp(16rem, 68vw, 23rem));
    aspect-ratio: 1 / 0.94;
    margin: 0 auto;
    min-height: 15rem;
    transform: translateY(2px) scale(1.01);
    filter: drop-shadow(0 22px 30px rgba(0, 0, 0, 0.45));
    animation: heart-pulse 0.9s ease-in-out infinite;
}

.cover-heart::before {
    content: "";
    position: absolute;
    inset: 0;
    clip-path: var(--heart-clip);
    background:
        radial-gradient(circle at 34% 22%, rgba(255, 255, 255, 0.35), transparent 32%),
        linear-gradient(155deg, rgba(255, 220, 232, 0.95), rgba(255, 138, 182, 0.58) 36%, rgba(20, 8, 24, 0.98) 100%);
    box-shadow:
        0 18px 48px rgba(0, 0, 0, 0.45),
        0 0 40px rgba(255, 120, 170, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.cover-heart::after {
    content: "";
    position: absolute;
    inset: 0;
    clip-path: var(--heart-clip);
    background:
        radial-gradient(circle at 50% 19%, rgba(255, 255, 255, 0.44), transparent 44%),
        linear-gradient(180deg, rgba(255, 180, 210, 0.08), rgba(0, 0, 0, 0.18));
    pointer-events: none;
}

.cover-heart__media {
    position: absolute;
    inset: 0.62rem;
    clip-path: var(--heart-clip);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.3rem;
    overflow: hidden;
    background: rgba(8, 4, 12, 0.78);
    box-shadow: inset 0 0 0 1px rgba(255, 205, 225, 0.22), inset 0 -20px 30px rgba(0, 0, 0, 0.3);
}

.heart-photo {
    position: relative;
    background-size: cover;
    background-position: center top;
    filter: saturate(1.1) contrast(1.06) brightness(1.02);
    transition: transform 0.6s var(--ease), filter 0.45s ease;
}

.heart-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(0, 0, 0, 0.22)),
        radial-gradient(circle at 52% 14%, rgba(255, 170, 205, 0.2), transparent 38%);
}

.heart-photo--left {
    background-image: var(--heart-photo-left);
}

.heart-photo--right {
    background-image: var(--heart-photo-right);
}

.bg-audio {
    position: fixed;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
    .cover-heart:hover .heart-photo--left {
        transform: scale(1.05) translateX(2px);
    }

    .cover-heart:hover .heart-photo--right {
        transform: scale(1.05) translateX(-2px);
    }
}

@keyframes heart-pulse {
    0%, 100% {
        transform: translateY(2px) scale(1.01);
    }
    50% {
        transform: translateY(-1px) scale(1.035);
    }
}

.cover-kicker {
    margin: 0;
    font-family: var(--font-ui);
    font-size: 0.52rem;
    font-weight: 500;
    letter-spacing: 0.58em;
    text-transform: uppercase;
    color: rgba(255, 190, 210, 0.55);
    text-align: center;
}

.cover-card {
    padding: 1.85rem 1.95rem;
    border-radius: calc(var(--radius) - 0.3rem);
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.1) 0%, rgba(0, 0, 0, 0.35) 100%);
    border: 1px solid rgba(255, 200, 220, 0.16);
    box-shadow:
        inset 0 0 80px rgba(255, 140, 180, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.cover-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-style: italic;
    font-size: clamp(1.75rem, 5vw, 2.35rem);
    line-height: 1.12;
    margin: 0 0 1rem;
    letter-spacing: -0.02em;
    background: linear-gradient(110deg, #fffefc 0%, #ffd8e8 38%, #f5d4bc 72%, #fffefc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 4px 28px rgba(255, 120, 160, 0.18));
}

.cover-body {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.75;
    color: rgba(255, 240, 248, 0.68);
}

.cover-cta {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 1.1rem 1.65rem;
    text-align: center;
    text-decoration: none;
    border-radius: 999px;
    border: 1px solid rgba(255, 190, 210, 0.35);
    background: linear-gradient(145deg, rgba(90, 25, 55, 0.75), rgba(8, 4, 14, 0.95));
    overflow: hidden;
    transition: transform 0.4s var(--ease), border-color 0.35s ease, box-shadow 0.35s ease;
    animation: cta-glow 4.5s ease-in-out infinite alternate;
}

@keyframes cta-glow {
    from { box-shadow: 0 0 28px rgba(255, 120, 160, 0.15), 0 8px 32px rgba(0, 0, 0, 0.35); }
    to { box-shadow: 0 0 48px rgba(255, 140, 180, 0.28), 0 12px 40px rgba(60, 15, 40, 0.45); }
}

.cover-cta__line {
    font-family: var(--font-ui);
    font-size: 0.5rem;
    font-weight: 300;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: rgba(255, 230, 240, 0.55);
}

.cover-cta__accent {
    font-family: var(--font-display);
    font-size: 1.08rem;
    font-style: italic;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 0 24px rgba(255, 160, 190, 0.45);
}

@media (hover: hover) and (pointer: fine) {
    .cover-cta:hover {
        transform: translateY(-4px) scale(1.02);
        border-color: rgba(255, 200, 220, 0.55);
        box-shadow: 0 16px 50px rgba(100, 25, 60, 0.5);
    }
}

/* ——— Bölüm ——— */
.sheet--chapter {
    display: flex;
    flex-direction: column;
}

.chapter-hero {
    position: relative;
    margin: 0;
    aspect-ratio: 16 / 10;
    max-height: min(52vh, 420px);
    overflow: hidden;
}

.chapter-hero .chapter-hero__media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    vertical-align: middle;
    filter: saturate(1.04) contrast(1.02) brightness(1.01);
    transition: transform 0.8s var(--ease);
}

.chapter-hero--video .chapter-hero__media {
    background: #0a040e;
}

@media (hover: hover) and (pointer: fine) {
    .sheet--chapter:hover .chapter-hero:not(.chapter-hero--video) .chapter-hero__media {
        transform: scale(1.04);
    }
}

.chapter-hero__veil {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(3, 1, 8, 0.55) 0%, transparent 18%, transparent 82%, rgba(3, 1, 8, 0.55) 100%),
        linear-gradient(180deg, transparent 20%, rgba(3, 2, 8, 0.25) 45%, rgba(8, 2, 12, 0.92) 100%),
        radial-gradient(ellipse 80% 50% at 50% 100%, rgba(120, 30, 70, 0.25), transparent 55%);
    pointer-events: none;
}

.chapter-hero__roman {
    position: absolute;
    right: 1rem;
    bottom: 0.75rem;
    font-family: var(--font-display);
    font-size: clamp(2.75rem, 14vw, 4.5rem);
    font-weight: 600;
    font-style: italic;
    line-height: 1;
    letter-spacing: -0.03em;
    pointer-events: none;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 160, 190, 0.12) 50%, rgba(255, 255, 255, 0.08) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 8px 32px rgba(0, 0, 0, 0.5));
}

.chapter-panel {
    padding: clamp(1.35rem, 4vw, 2rem) clamp(1.25rem, 4vw, 2rem) 1.5rem;
}

.chapter-head {
    margin-bottom: 1.25rem;
}

.chapter-tag {
    margin: 0 0 0.55rem;
    font-family: var(--font-ui);
    font-size: 0.5rem;
    font-weight: 500;
    letter-spacing: 0.38em;
    text-transform: uppercase;
    color: rgba(255, 180, 200, 0.55);
}

.chapter-title {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 600;
    font-style: italic;
    font-size: clamp(1.72rem, 4.5vw, 2.25rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: rgba(255, 252, 255, 0.96);
    text-shadow: 0 6px 40px rgba(80, 20, 50, 0.35), 0 0 60px rgba(255, 120, 160, 0.08);
}

.chapter-prose p {
    margin: 0;
    font-size: 1.14rem;
    line-height: 1.78;
    color: rgba(255, 242, 248, 0.72);
}

.chapter-prose p::first-letter {
    float: left;
    font-family: var(--font-display);
    font-size: 3.15rem;
    line-height: 0.82;
    padding-right: 0.45rem;
    margin-top: 0.04em;
    font-style: italic;
    font-weight: 600;
    color: rgba(255, 200, 210, 0.9);
    text-shadow: 0 0 28px rgba(255, 140, 170, 0.35);
}

.chapter-whisper {
    margin: 1.65rem 0 0;
    padding: 1.45rem 0 0 1.1rem;
    border-top: 1px solid rgba(255, 200, 220, 0.1);
    border-left: 3px solid rgba(255, 160, 185, 0.45);
    box-shadow: inset 8px 0 24px -8px rgba(255, 140, 170, 0.08);
    font-family: var(--font-flare);
    font-size: 1.08rem;
    font-style: italic;
    font-weight: 500;
    line-height: 1.6;
    color: rgba(255, 230, 245, 0.52);
    letter-spacing: 0.01em;
}

.chapter-whisper::before {
    content: "“";
    color: var(--blush-dim);
}

.chapter-whisper::after {
    content: "”";
    color: var(--blush-dim);
}

.chapter-pager {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.pager-link {
    font-family: var(--font-ui);
    font-size: 0.55rem;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold-soft);
    text-decoration: none;
    padding: 0.5rem 0;
    border-bottom: 1px solid transparent;
    transition: color 0.25s ease, border-color 0.25s ease;
}

.pager-link:hover {
    color: #fff;
    border-bottom-color: rgba(255, 170, 195, 0.55);
    text-shadow: 0 0 20px rgba(255, 160, 190, 0.25);
}

.pager-link--prev::before {
    content: "← ";
    opacity: 0.7;
}

.pager-link--next::after {
    content: " →";
    opacity: 0.7;
}

/* ——— Son ——— */
.sheet--fin {
    position: relative;
    text-align: center;
    padding: clamp(2.5rem, 8vw, 4rem) 1.5rem;
    overflow: visible;
    background:
        radial-gradient(circle at 50% 18%, rgba(255, 85, 155, 0.2), transparent 42%),
        linear-gradient(165deg, rgba(55, 16, 45, 0.42), rgba(12, 5, 20, 0.86));
}

.fin-inner {
    max-width: 25rem;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.fin-decor {
    position: absolute;
    top: clamp(0.8rem, 2vw, 1.4rem);
    bottom: clamp(0.8rem, 2vw, 1.4rem);
    width: clamp(2.8rem, 8vw, 4.5rem);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    pointer-events: none;
    z-index: 1;
}

.fin-decor--left {
    left: clamp(-1.5rem, -2vw, -0.4rem);
}

.fin-decor--right {
    right: clamp(-1.5rem, -2vw, -0.4rem);
}

.fin-mascot {
    display: grid;
    place-items: center;
    width: clamp(2rem, 5vw, 2.6rem);
    height: clamp(2rem, 5vw, 2.6rem);
    margin: 0 auto;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.38), rgba(84, 18, 48, 0.85));
    border: 1px solid rgba(255, 160, 205, 0.5);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.38), 0 0 24px rgba(255, 95, 165, 0.35);
    animation: mascot-float 2.2s ease-in-out infinite alternate;
}

.fin-mascot:nth-child(2) {
    animation-duration: 1.75s;
    transform: scale(1.08);
}

.fin-mascot:nth-child(3) {
    animation-duration: 3s;
}

.fin-mascot--ruby {
    background:
        radial-gradient(circle at 32% 24%, rgba(255, 255, 255, 0.4), transparent 42%),
        radial-gradient(circle at 65% 70%, rgba(255, 75, 145, 0.55), rgba(78, 14, 48, 0.9) 72%);
}

.fin-mascot--ember {
    background:
        radial-gradient(circle at 34% 22%, rgba(255, 255, 255, 0.36), transparent 40%),
        radial-gradient(circle at 64% 70%, rgba(255, 152, 90, 0.55), rgba(82, 22, 42, 0.9) 72%);
}

.fin-mascot--rose {
    background:
        radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.38), transparent 40%),
        radial-gradient(circle at 64% 70%, rgba(255, 112, 170, 0.55), rgba(70, 16, 55, 0.92) 72%);
}

.fin-mascot--pearl {
    background:
        radial-gradient(circle at 33% 23%, rgba(255, 255, 255, 0.5), transparent 42%),
        radial-gradient(circle at 64% 70%, rgba(255, 220, 236, 0.4), rgba(74, 20, 52, 0.9) 72%);
}

.fin-mascot--heart {
    background:
        radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.42), transparent 40%),
        radial-gradient(circle at 64% 70%, rgba(255, 85, 156, 0.6), rgba(68, 12, 42, 0.92) 72%);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.38), 0 0 30px rgba(255, 82, 158, 0.46);
}

.fin-mascot--wine {
    background:
        radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.36), transparent 40%),
        radial-gradient(circle at 66% 70%, rgba(170, 84, 132, 0.56), rgba(54, 8, 34, 0.95) 72%);
}

.confetti-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 30;
    transition: opacity 0.65s ease;
}

.confetti-layer--fade {
    opacity: 0;
}

.confetti-piece {
    position: absolute;
    top: -12vh;
    background: var(--piece-color, #ff9dc7);
    border-radius: 70% 0 70% 0;
    box-shadow: 0 0 14px rgba(255, 120, 180, 0.38);
    opacity: 0;
    transform: translate3d(0, 0, 0);
    animation:
        confetti-fall var(--fall-duration, 3.4s) ease-in var(--fall-delay, 0s) forwards,
        confetti-spin calc(var(--fall-duration, 3.4s) * 0.35) linear var(--fall-delay, 0s) infinite;
}

@keyframes mascot-float {
    from { transform: translateY(0) scale(1) rotate(-3deg); }
    to { transform: translateY(-7px) scale(1.08) rotate(3deg); }
}

@keyframes confetti-fall {
    0% {
        opacity: 0;
        transform: translate3d(0, -8vh, 0) rotate(0deg);
    }
    12% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translate3d(var(--drift, 0px), 112vh, 0) rotate(var(--piece-rotation, 360deg));
    }
}

@keyframes confetti-spin {
    from { filter: hue-rotate(0deg); }
    to { filter: hue-rotate(110deg); }
}

.fin-eyebrow {
    margin: 0 0 1rem;
    font-family: var(--font-ui);
    font-size: 0.52rem;
    font-weight: 500;
    letter-spacing: 0.45em;
    text-transform: uppercase;
    color: var(--blush-dim);
}

.fin-line {
    margin: 0 0 1rem;
    font-family: var(--font-ui);
    font-size: 0.55rem;
    font-weight: 300;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: rgba(255, 240, 245, 0.28);
}

.fin-love {
    margin: 0 0 1.75rem;
    font-family: var(--font-display);
    font-size: 1.28rem;
    font-style: italic;
    font-weight: 500;
    color: rgba(255, 248, 252, 0.62);
    text-shadow: 0 4px 40px rgba(100, 30, 70, 0.25);
}

.fin-heart {
    color: var(--blush-hot);
    text-shadow: 0 0 32px rgba(255, 140, 180, 0.65);
}

.fin-back {
    font-family: var(--font-ui);
    font-size: 0.52rem;
    font-weight: 400;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold-soft);
    text-decoration: none;
    padding: 0.6rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    display: inline-block;
    transition: border-color 0.25s ease, background 0.25s ease;
}

.fin-back:hover {
    border-color: rgba(232, 148, 168, 0.35);
    background: rgba(255, 255, 255, 0.04);
}

@media (max-width: 900px) {
    :root {
        --radius: 1rem;
    }

    .ambient,
    .noise {
        display: none;
    }

    .stage {
        max-width: none;
        width: 100%;
        padding-left: max(0.85rem, env(safe-area-inset-left, 0));
        padding-right: max(0.85rem, env(safe-area-inset-right, 0));
    }

    .sheet {
        max-width: none;
        border-radius: var(--radius);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .sheet--cover {
        min-height: min(85dvh, 36rem);
        padding: clamp(1.25rem, 4vw, 2rem);
    }

    .cover-inner {
        gap: 1.5rem;
    }

    .cover-heart {
        width: min(100%, 19rem);
        animation: none;
        transform: none;
        filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.35));
    }

    .cover-card {
        padding: 1.35rem 1.25rem;
    }

    .cover-cta {
        width: 100%;
        max-width: 22rem;
        margin: 0 auto;
        min-height: 52px;
        justify-content: center;
        padding: 1rem 1.25rem;
    }

    .chapter-hero {
        max-height: none;
        aspect-ratio: 3 / 4;
        min-height: 220px;
    }

    .chapter-hero__roman {
        right: max(0.75rem, env(safe-area-inset-right, 0));
        bottom: 0.65rem;
    }

    .chapter-pager {
        flex-direction: column;
        align-items: stretch;
        gap: 0.65rem;
    }

    .pager-link {
        text-align: center;
        padding: 0.85rem 1rem;
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 0.65rem;
        letter-spacing: 0.14em;
    }

    .pager-link:hover {
        border-color: rgba(232, 148, 168, 0.25);
        background: rgba(255, 255, 255, 0.04);
    }

    .fin-back {
        min-height: 48px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding-left: 1.35rem;
        padding-right: 1.35rem;
    }

    .fin-decor {
        width: 2.6rem;
    }

    .fin-decor--left {
        left: -0.35rem;
    }

    .fin-decor--right {
        right: -0.35rem;
    }
}

@media (hover: none), (pointer: coarse) {
    .cover-glow,
    .cover-cta,
    .ambient {
        animation: none;
    }

    .sheet {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        box-shadow:
            0 0 0 1px rgba(255, 200, 220, 0.1),
            0 16px 42px rgba(0, 0, 0, 0.35);
    }
}

@media (min-width: 901px) and (max-width: 1100px) {
    .chapter-hero {
        max-height: min(44vh, 360px);
        aspect-ratio: 5 / 4;
    }
}

@media (min-width: 1400px) {
    .sheet {
        max-width: 44rem;
    }

    .stage {
        padding-left: clamp(2rem, 4vw, 3rem);
        padding-right: clamp(2rem, 4vw, 3rem);
    }
}

@media (max-width: 900px) and (orientation: landscape) and (max-height: 520px) {
    .chapter-hero {
        aspect-ratio: 16 / 9;
        min-height: 0;
        max-height: 42vh;
    }

    .sheet--cover {
        min-height: auto;
        padding-top: 1rem;
        padding-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    .chapter-prose p::first-letter {
        font-size: 2.5rem;
        line-height: 0.88;
    }

    .chapter-title {
        font-size: clamp(1.45rem, 6vw, 1.85rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .ambient { animation: none; }
    .chapter-hero .chapter-hero__media {
        transform: none !important;
    }
    .cover-glow,
    .cover-cta {
        animation: none;
    }
    .fin-mascot,
    .confetti-piece {
        animation: none !important;
    }
    .confetti-layer {
        display: none;
    }
}
