/* ============================================================
   HİLAL — Gölgelerin Ardındaki Işık
   Dark fantasy → mor şakayıklı aydınlık
   ============================================================ */

:root {
    --color-void:          #05050a;
    --color-obsidian:      #0d0d14;
    --color-shadow:        #1a1a24;
    --color-blood-deep:    #3a0a12;
    --color-blood:         #6b0f1a;
    --color-purple-deep:   #2a0a3a;
    --color-purple-mystic: #4a1a6b;
    --color-purple-royal:  #6d1e9a;
    --color-purple-bloom:  #a555d4;
    --color-mist:          rgba(80, 70, 100, 0.08);
    --color-pale:          #c9c4d4;
    --color-faded:         #7a7686;
    --color-rune:          #8a6ea8;

    --color-ember:         #d4691a;
    --color-gold:          #d4a545;
    --color-gold-pale:     #ffe9b8;
    --color-warm-mist:     rgba(255, 180, 80, 0.10);

    --font-title: 'Cinzel Decorative', serif;
    --font-story: 'Cormorant Garamond', serif;

    --stage-fade: 1.4s;
    --word-stagger: 90ms;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: var(--color-void);
    color: var(--color-pale);
    font-family: var(--font-story);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    cursor: default;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

#app-container {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 30% 20%, var(--color-purple-deep) 0%, transparent 55%),
        radial-gradient(ellipse at 70% 80%, var(--color-blood-deep) 0%, transparent 60%),
        linear-gradient(180deg, var(--color-void) 0%, var(--color-obsidian) 50%, var(--color-void) 100%);
    isolation: isolate;
}

/* ============================================================
   ATMOSFER
   ============================================================ */

.fog {
    position: absolute;
    inset: -20%;
    width: 140%;
    height: 140%;
    background-repeat: repeat;
    pointer-events: none;
    opacity: 0.5;
    mix-blend-mode: screen;
    background-image:
        radial-gradient(circle at 20% 30%, var(--color-mist) 0px, transparent 80px),
        radial-gradient(circle at 70% 60%, var(--color-mist) 0px, transparent 120px),
        radial-gradient(circle at 40% 80%, var(--color-mist) 0px, transparent 100px),
        radial-gradient(circle at 85% 15%, var(--color-mist) 0px, transparent 90px);
    transition: opacity 3s ease, filter 3s ease;
    will-change: transform;
    z-index: 2;
    transform: translateZ(0);
}

.fog-layer-1 { animation: drift-fog-a 65s linear infinite; opacity: 0.45; }
.fog-layer-2 { animation: drift-fog-b 90s linear infinite; opacity: 0.32; filter: blur(3px); }
.fog-layer-3 { animation: drift-fog-c 120s linear infinite; opacity: 0.22; filter: blur(5px); }

@keyframes drift-fog-a { 0%,100% { transform: translate3d(0,0,0) scale(1); }    50% { transform: translate3d(-6%, 4%, 0) scale(1.05); } }
@keyframes drift-fog-b { 0%,100% { transform: translate3d(0,0,0) scale(1.1); }  50% { transform: translate3d(5%, -3%, 0) scale(1.15); } }
@keyframes drift-fog-c { 0%,100% { transform: translate3d(0,0,0) scale(1.2); }  50% { transform: translate3d(-4%, -5%, 0) scale(1.25); } }

.warm-overlay, .finale-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 3;
    opacity: 0;
    transition: opacity 3.4s ease;
    mix-blend-mode: screen;
}

.warm-overlay {
    background:
        radial-gradient(ellipse at 50% 50%, rgba(255, 180, 80, 0.20) 0%, transparent 55%),
        radial-gradient(ellipse at 30% 70%, rgba(180, 40, 40, 0.18) 0%, transparent 55%),
        radial-gradient(ellipse at 75% 30%, rgba(255, 220, 130, 0.14) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 90%, rgba(212, 105, 26, 0.14) 0%, transparent 50%);
}

.finale-overlay {
    background:
        radial-gradient(ellipse at 50% 42%, rgba(255, 220, 140, 0.28) 0%, transparent 45%),
        radial-gradient(ellipse at 22% 78%, rgba(200, 60, 130, 0.22) 0%, transparent 55%),
        radial-gradient(ellipse at 82% 22%, rgba(255, 210, 120, 0.2) 0%, transparent 55%),
        radial-gradient(ellipse at 78% 82%, rgba(140, 60, 200, 0.16) 0%, transparent 55%),
        radial-gradient(ellipse at 50% 100%, rgba(212, 105, 26, 0.18) 0%, transparent 55%);
}

body[data-progress="18"] .finale-overlay {
    animation: finale-overlay-drift 18s ease-in-out infinite alternate;
}

@keyframes finale-overlay-drift {
    0%   { filter: hue-rotate(0deg)  brightness(1);    }
    100% { filter: hue-rotate(-12deg) brightness(1.08); }
}

body.theme-awakened .warm-overlay { opacity: 1; }
body[data-progress="18"] .finale-overlay { opacity: 1; }
body.theme-awakened .fog { opacity: 0.14; filter: blur(4px) hue-rotate(30deg); }

.particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 4;
}

.particle {
    position: absolute;
    bottom: -20px;
    width: 3px;
    height: 3px;
    background: var(--color-rune);
    border-radius: 50%;
    opacity: 0;
    box-shadow: 0 0 6px var(--color-purple-mystic);
    animation: rise 22s linear infinite;
    pointer-events: none;
    transition: background 3s ease, box-shadow 3s ease, width 3s ease, height 3s ease;
    will-change: transform, opacity;
}

.particle:nth-child(1) { left: 8%;  animation-delay: 0s;  animation-duration: 24s; }
.particle:nth-child(2) { left: 22%; animation-delay: 5s;  animation-duration: 28s; }
.particle:nth-child(3) { left: 34%; animation-delay: 11s; animation-duration: 22s; }
.particle:nth-child(4) { left: 46%; animation-delay: 2s;  animation-duration: 26s; }
.particle:nth-child(5) { left: 58%; animation-delay: 14s; animation-duration: 30s; }
.particle:nth-child(6) { left: 70%; animation-delay: 7s;  animation-duration: 21s; }
.particle:nth-child(7) { left: 82%; animation-delay: 17s; animation-duration: 25s; }
.particle:nth-child(8) { left: 92%; animation-delay: 3s;  animation-duration: 27s; }

@keyframes rise {
    0%   { transform: translate3d(0, 0, 0); opacity: 0; }
    10%  { opacity: 0.55; }
    50%  { transform: translate3d(20px, -50vh, 0); opacity: 0.85; }
    90%  { opacity: 0.35; }
    100% { transform: translate3d(-15px, -105vh, 0); opacity: 0; }
}

body.theme-awakened .particle {
    background: #ffd97a;
    width: 4px; height: 4px;
    box-shadow: 0 0 8px #ffb84d, 0 0 20px rgba(255, 184, 77, 0.7);
}

.vignette {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 5;
    background: radial-gradient(ellipse at center,
        transparent 30%,
        rgba(0, 0, 0, 0.55) 80%,
        rgba(0, 0, 0, 0.9) 100%);
    transition: opacity 3s ease;
}

body.theme-awakened .vignette { opacity: 0.55; }

/* ============================================================
   RÜN PATLAMASI & SAHNE GEÇİŞ FLASH
   ============================================================ */

.light-burst {
    position: absolute;
    inset: -30%;
    pointer-events: none;
    z-index: 7;
    opacity: 0;
    background: radial-gradient(circle,
        rgba(255, 240, 200, 0.95) 0%,
        rgba(255, 200, 100, 0.7) 18%,
        rgba(212, 105, 26, 0.35) 40%,
        transparent 70%);
    mix-blend-mode: screen;
    filter: blur(6px);
    transform: scale(0.2);
    will-change: opacity, transform;
}

body.rune-firing .light-burst {
    animation: light-burst-anim 2.6s cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
}

@keyframes light-burst-anim {
    0%   { opacity: 0;    transform: scale(0.2); }
    25%  { opacity: 1;    transform: scale(0.85); }
    55%  { opacity: 0.95; transform: scale(1.15); }
    100% { opacity: 0;    transform: scale(1.7); }
}

.transition-flash {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 6;
    opacity: 0;
    background: radial-gradient(circle at 50% 50%,
        rgba(154, 92, 196, 0.35) 0%,
        transparent 60%);
    mix-blend-mode: screen;
    will-change: opacity;
}

body.transitioning .transition-flash {
    animation: transition-flash-anim 900ms ease-out;
}
body.theme-awakened.transitioning .transition-flash {
    background: radial-gradient(circle at 50% 50%,
        rgba(255, 200, 100, 0.35) 0%,
        rgba(180, 40, 40, 0.18) 40%,
        transparent 70%);
}
@keyframes transition-flash-anim {
    0%   { opacity: 0;   }
    35%  { opacity: 0.8; }
    100% { opacity: 0;   }
}

/* ============================================================
   GÖKKUŞAĞI — sahne 8 (zarif merkez tasarım)
   ============================================================ */

.rainbow-arc {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    transform-origin: 50% 50%;
    width: min(74vw, 640px);
    height: min(36vh, 320px);
    pointer-events: none;
    opacity: 0;
    transition:
        opacity 3.4s cubic-bezier(0.2, 0.7, 0.3, 1),
        transform 3.4s cubic-bezier(0.2, 0.7, 0.3, 1);
    z-index: 4;
    mix-blend-mode: screen;
    filter:
        drop-shadow(0 0 12px rgba(255, 240, 220, 0.35))
        drop-shadow(0 0 32px rgba(220, 180, 240, 0.18))
        blur(0.4px);
    mask-image: radial-gradient(ellipse 90% 90% at 50% 50%,
        rgba(0, 0, 0, 1) 60%,
        rgba(0, 0, 0, 0.6) 82%,
        rgba(0, 0, 0, 0) 100%);
    -webkit-mask-image: radial-gradient(ellipse 90% 90% at 50% 50%,
        rgba(0, 0, 0, 1) 60%,
        rgba(0, 0, 0, 0.6) 82%,
        rgba(0, 0, 0, 0) 100%);
}
.rainbow-arc svg { width: 100%; height: 100%; display: block; overflow: visible; }

.rainbow-arc .rainbow-arcs path {
    animation: rainbow-shimmer 6s ease-in-out infinite;
    will-change: opacity, filter;
}
.rainbow-arc .rainbow-arcs path:nth-child(2) { animation-delay: -0.9s; }
.rainbow-arc .rainbow-arcs path:nth-child(3) { animation-delay: -1.8s; }
.rainbow-arc .rainbow-arcs path:nth-child(4) { animation-delay: -2.7s; }

@keyframes rainbow-shimmer {
    0%, 100% { filter: drop-shadow(0 0 3px rgba(255, 250, 220, 0.35)); }
    50%      { filter: drop-shadow(0 0 8px rgba(255, 250, 220, 0.9)); }
}

.rainbow-arc .rainbow-sparkles circle {
    opacity: 0;
    animation: rainbow-spark 3.4s ease-in-out infinite;
    transform-origin: center;
    filter: drop-shadow(0 0 3px rgba(255, 246, 208, 0.9));
}
.rainbow-arc .rainbow-sparkles circle:nth-child(1) { animation-delay: 0s;   }
.rainbow-arc .rainbow-sparkles circle:nth-child(2) { animation-delay: 0.7s; }
.rainbow-arc .rainbow-sparkles circle:nth-child(3) { animation-delay: 1.4s; }
.rainbow-arc .rainbow-sparkles circle:nth-child(4) { animation-delay: 2.0s; }
.rainbow-arc .rainbow-sparkles circle:nth-child(5) { animation-delay: 2.6s; }

@keyframes rainbow-spark {
    0%, 100% { opacity: 0;    }
    45%      { opacity: 0.95; }
    60%      { opacity: 0.55; }
}

body[data-progress="8"] .rainbow-arc {
    opacity: 0.85;
    transform: translate(-50%, -50%) scale(1);
    animation: rainbow-breathe 8s ease-in-out infinite 3s;
}

@keyframes rainbow-breathe {
    0%, 100% { transform: translate(-50%, -50%) scale(1);    }
    50%      { transform: translate(-50%, -50%) scale(1.04); }
}

/* ============================================================
   KAYAN YILDIZLAR — sahne 9
   ============================================================ */

.stars-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 1.6s ease;
    z-index: 6;
    overflow: hidden;
}
body[data-progress="9"] .stars-layer { opacity: 1; }

.shooting-star {
    position: absolute;
    width: 110px;
    height: 1.4px;
    background: linear-gradient(90deg,
        rgba(255, 255, 255, 0)    0%,
        rgba(255, 240, 200, 0.22) 45%,
        rgba(255, 255, 255, 0.75) 100%);
    border-radius: 2px;
    box-shadow:
        0 0 4px rgba(255, 255, 255, 0.55),
        0 0 12px rgba(255, 220, 160, 0.28);
    opacity: 0;
    filter: blur(0.4px);
    animation: shoot 3.6s linear infinite;
    will-change: transform, opacity;
}

.stars-layer .shooting-star:nth-child(1) { top:  6%; left: -18%; animation-delay: 0s;    animation-duration: 3.1s; }
.stars-layer .shooting-star:nth-child(2) { top: 18%; left: -22%; animation-delay: 0.6s;  animation-duration: 3.6s; }
.stars-layer .shooting-star:nth-child(3) { top: 30%; left: -14%; animation-delay: 1.3s;  animation-duration: 2.9s; }
.stars-layer .shooting-star:nth-child(4) { top: 42%; left: -20%; animation-delay: 2.0s;  animation-duration: 3.4s; }
.stars-layer .shooting-star:nth-child(5) { top: 12%; left: -16%; animation-delay: 2.6s;  animation-duration: 3.2s; }
.stars-layer .shooting-star:nth-child(6) { top: 24%; left: -24%; animation-delay: 1.8s;  animation-duration: 3.8s; }
.stars-layer .shooting-star:nth-child(7) { top: 36%; left: -18%; animation-delay: 0.9s;  animation-duration: 3.0s; }
.stars-layer .shooting-star:nth-child(8) { top: 48%; left: -22%; animation-delay: 2.3s;  animation-duration: 3.5s; }

@keyframes shoot {
    0%   { transform: translate3d(0, 0, 0) rotate(22deg);        opacity: 0;    }
    8%   {                                                        opacity: 0.7; }
    70%  {                                                        opacity: 0.6; }
    100% { transform: translate3d(150vw, 55vh, 0) rotate(22deg); opacity: 0;    }
}

/* ============================================================
   YAPRAKLAR — sahne 10
   ============================================================ */

.petals-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 1.8s ease;
    z-index: 6;
    overflow: hidden;
}
body[data-progress="10"] .petals-layer { opacity: 1; }

.petal {
    position: absolute;
    top: -30px;
    width: 16px;
    height: 22px;
    background: radial-gradient(ellipse at 30% 40%,
        #fff0f6 0%,
        #ffb0d0 55%,
        #d9569a 100%);
    border-radius: 65% 65% 55% 55% / 80% 80% 40% 40%;
    box-shadow:
        0 0 6px rgba(255, 158, 200, 0.5),
        0 0 14px rgba(220, 90, 160, 0.35);
    opacity: 0;
    animation: petal-fall linear infinite;
    will-change: transform, opacity;
}

.petals-layer .petal:nth-child(1)  { left:  5%;  animation-duration: 14s; animation-delay:  0s;   }
.petals-layer .petal:nth-child(2)  { left: 13%;  animation-duration: 18s; animation-delay:  2.4s; width: 14px; height: 18px; }
.petals-layer .petal:nth-child(3)  { left: 22%;  animation-duration: 12s; animation-delay:  5.1s; }
.petals-layer .petal:nth-child(4)  { left: 30%;  animation-duration: 16s; animation-delay:  1.2s; width: 18px; height: 24px; }
.petals-layer .petal:nth-child(5)  { left: 38%;  animation-duration: 20s; animation-delay:  7.8s; }
.petals-layer .petal:nth-child(6)  { left: 46%;  animation-duration: 15s; animation-delay:  3.3s; width: 12px; height: 16px; }
.petals-layer .petal:nth-child(7)  { left: 55%;  animation-duration: 13s; animation-delay:  6.5s; }
.petals-layer .petal:nth-child(8)  { left: 63%;  animation-duration: 17s; animation-delay:  0.7s; width: 18px; height: 22px; }
.petals-layer .petal:nth-child(9)  { left: 71%;  animation-duration: 19s; animation-delay:  4.2s; }
.petals-layer .petal:nth-child(10) { left: 79%;  animation-duration: 14s; animation-delay:  8.6s; width: 14px; height: 20px; }
.petals-layer .petal:nth-child(11) { left: 87%;  animation-duration: 16s; animation-delay:  2.0s; }
.petals-layer .petal:nth-child(12) { left: 94%;  animation-duration: 18s; animation-delay:  5.8s; width: 12px; height: 18px; }

@keyframes petal-fall {
    0%   { transform: translate3d(0, 0, 0) rotate(0deg);              opacity: 0; }
    8%   {                                                             opacity: 0.9; }
    50%  { transform: translate3d(30px, 55vh, 0) rotate(180deg);      opacity: 0.85; }
    92%  {                                                             opacity: 0.55; }
    100% { transform: translate3d(-20px, 108vh, 0) rotate(360deg);    opacity: 0; }
}

/* ============================================================
   MAGIC DUST CANVAS
   ============================================================ */

#magic-dust-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 9;
    opacity: 0;
    pointer-events: none;
    transition: opacity 2.4s ease;
}

body[data-progress="18"] #magic-dust-canvas {
    opacity: 1;
    pointer-events: auto;
}

/* ============================================================
   STORY STAGE
   ============================================================ */

#story-stage {
    position: absolute;
    inset: 0;
    z-index: 10;
    pointer-events: none;
}

.stage {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3.5rem 1.5rem;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transform: translate3d(0, 22px, 0);
    filter: blur(2px);
    transition:
        opacity var(--stage-fade) ease,
        transform var(--stage-fade) ease,
        filter var(--stage-fade) ease,
        visibility 0s linear var(--stage-fade);
    pointer-events: none;
    cursor: pointer;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    will-change: opacity, transform, filter;
}

.stage.active {
    opacity: 1;
    visibility: visible;
    transform: translate3d(0, 0, 0);
    filter: blur(0);
    pointer-events: auto;
    transition:
        opacity var(--stage-fade) ease,
        transform var(--stage-fade) ease,
        filter var(--stage-fade) ease,
        visibility 0s;
}

/* Finale — canvas dust etkileşimi engellenmesin */
body[data-progress="18"] .stage.stage-finale.active {
    pointer-events: none;
    cursor: default;
}

.stage-line {
    font-family: var(--font-story);
    font-style: italic;
    font-weight: 300;
    letter-spacing: 0.02em;
    color: var(--color-pale);
    text-shadow:
        0 0 12px rgba(74, 26, 107, 0.55),
        0 0 30px rgba(0, 0, 0, 0.9);
    max-width: 760px;
    padding: 0 1rem;
    margin: 0.4rem 0;
    transition: color 3s ease, text-shadow 3s ease;
}

.stage-line-main {
    font-size: clamp(1.1rem, 2.15vw, 1.55rem);
    line-height: 1.7;
}

.stage-line-sub {
    font-size: clamp(1rem, 1.9vw, 1.35rem);
    line-height: 1.65;
    color: var(--color-faded);
    margin-top: 1.3rem;
    max-width: 700px;
}

body.theme-awakened .stage-line {
    color: #fff2c8;
    text-shadow:
        0 0 18px rgba(255, 200, 100, 0.7),
        0 0 45px rgba(180, 40, 40, 0.35);
}
body.theme-awakened .stage-line-sub { color: #e8c98f; }

/* ============================================================
   KELİME REVEAL — spans önceden HTML'e yerleştirilir, opacity:0
   .animate class triggerlar animasyonu, .done snap eder
   Böylece layout shift olmaz
   ============================================================ */

.stage-line .word {
    display: inline-block;
    opacity: 0;
    transform: translate3d(0, 10px, 0);
    filter: blur(4px);
    will-change: opacity, transform, filter;
}

.stage-line.animate .word {
    animation: word-in 0.9s cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
    animation-delay: calc(var(--word-index, 0) * var(--word-stagger));
}

.stage-line.done .word {
    opacity: 1;
    transform: none;
    filter: none;
    animation: none;
}

@keyframes word-in {
    0%   { opacity: 0; transform: translate3d(0, 10px, 0); filter: blur(4px); }
    100% { opacity: 1; transform: translate3d(0, 0, 0);    filter: blur(0);   }
}

/* ============================================================
   SAHNE AKSİYON SLOTU + DEVAM BUTONU (yerini önceden ayır)
   ============================================================ */

.stage-actions {
    min-height: 4.2em;
    margin-top: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.continue-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2.2rem;
    background: rgba(20, 10, 30, 0.35);
    border: 1px solid rgba(154, 92, 196, 0.55);
    border-radius: 2px;
    color: rgba(220, 210, 235, 0.9);
    font-family: var(--font-story);
    font-style: italic;
    font-weight: 400;
    font-size: 0.95rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(74, 26, 107, 0.55);
    cursor: pointer;
    opacity: 0;
    transform: translate3d(0, 10px, 0);
    box-shadow:
        0 0 18px rgba(74, 26, 107, 0.35),
        inset 0 0 10px rgba(74, 26, 107, 0.18);
    transition:
        opacity 1.2s ease,
        transform 1.2s cubic-bezier(0.2, 0.7, 0.3, 1),
        background 0.4s ease,
        border-color 0.4s ease,
        color 0.4s ease,
        letter-spacing 0.4s ease,
        box-shadow 0.4s ease;
    pointer-events: none;
    -webkit-tap-highlight-color: transparent;
    will-change: opacity, transform;
}

.continue-btn.visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    pointer-events: auto;
    animation: continue-breath 3.6s ease-in-out infinite;
}

.continue-btn:hover {
    background: rgba(74, 26, 107, 0.28);
    border-color: rgba(200, 150, 220, 0.9);
    color: #fff;
    letter-spacing: 0.36em;
    box-shadow:
        0 0 26px rgba(154, 92, 196, 0.55),
        inset 0 0 14px rgba(154, 92, 196, 0.3);
}

.continue-btn:focus { outline: none; }
.continue-btn:focus-visible { outline: 2px solid rgba(200, 150, 220, 0.6); outline-offset: 6px; }

@keyframes continue-breath {
    0%, 100% {
        box-shadow:
            0 0 18px rgba(74, 26, 107, 0.35),
            inset 0 0 10px rgba(74, 26, 107, 0.18);
    }
    50% {
        box-shadow:
            0 0 28px rgba(154, 92, 196, 0.55),
            inset 0 0 16px rgba(154, 92, 196, 0.3);
    }
}

body.theme-awakened .continue-btn {
    background: rgba(40, 20, 10, 0.35);
    border-color: rgba(255, 180, 80, 0.55);
    color: rgba(255, 230, 180, 0.9);
    text-shadow: 0 0 12px rgba(255, 180, 80, 0.5);
    box-shadow:
        0 0 20px rgba(212, 105, 26, 0.35),
        inset 0 0 12px rgba(212, 105, 26, 0.18);
}
body.theme-awakened .continue-btn:hover {
    background: rgba(212, 105, 26, 0.22);
    border-color: rgba(255, 220, 130, 0.9);
    color: #fff6d0;
    box-shadow:
        0 0 30px rgba(255, 180, 80, 0.55),
        inset 0 0 18px rgba(255, 180, 80, 0.3);
}
body.theme-awakened .continue-btn.visible {
    animation: continue-breath-warm 3.6s ease-in-out infinite;
}
@keyframes continue-breath-warm {
    0%, 100% {
        box-shadow:
            0 0 20px rgba(212, 105, 26, 0.35),
            inset 0 0 12px rgba(212, 105, 26, 0.18);
    }
    50% {
        box-shadow:
            0 0 30px rgba(255, 180, 80, 0.55),
            inset 0 0 18px rgba(255, 180, 80, 0.3);
    }
}

/* ============================================================
   LIGHT RUNE — sahne 6
   ============================================================ */

.light-rune {
    position: relative;
    width: clamp(140px, 22vw, 220px);
    height: clamp(140px, 22vw, 220px);
    margin-top: 3rem;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.85);
    pointer-events: none;
    transition:
        opacity 1.8s ease,
        transform 1.8s cubic-bezier(0.2, 0.7, 0.3, 1),
        filter 0.6s ease;
}

.light-rune.visible {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.light-rune.visible:hover { transform: scale(1.06); filter: brightness(1.15); }
.light-rune:focus { outline: none; }
.light-rune:focus-visible { outline: 2px solid rgba(255, 220, 130, 0.6); outline-offset: 10px; }

.light-halo {
    position: absolute;
    inset: -35%;
    border-radius: 50%;
    background: radial-gradient(circle,
        rgba(255, 200, 100, 0.35) 0%,
        rgba(180, 40, 40, 0.18) 40%,
        transparent 72%);
    filter: blur(20px);
    animation: halo-pulse 4.5s ease-in-out infinite;
    pointer-events: none;
    will-change: transform, opacity;
}

.light-core {
    position: absolute;
    inset: 22%;
    border-radius: 50%;
    background: radial-gradient(circle,
        #fff6c8 0%,
        #ffcf70 28%,
        #d4691a 70%,
        #6b1010 100%);
    box-shadow:
        0 0 40px rgba(255, 180, 80, 0.75),
        0 0 90px rgba(180, 40, 40, 0.55),
        inset 0 0 22px rgba(255, 240, 200, 0.55);
    animation: core-pulse 3.2s ease-in-out infinite;
    pointer-events: none;
    will-change: transform, opacity;
}

.light-ring {
    position: absolute;
    inset: 4%;
    border-radius: 50%;
    border: 1px solid rgba(255, 200, 100, 0.45);
    box-shadow:
        0 0 22px rgba(255, 180, 80, 0.4),
        inset 0 0 16px rgba(255, 180, 80, 0.22);
    animation: ring-rotate 22s linear infinite, ring-pulse 3.2s ease-in-out infinite;
    pointer-events: none;
    will-change: transform;
}

.rune-symbol {
    position: relative;
    z-index: 2;
    font-family: var(--font-title);
    font-size: clamp(2.4rem, 5vw, 4rem);
    color: #fff6d0;
    text-shadow:
        0 0 16px #ffcf70,
        0 0 32px rgba(255, 100, 40, 0.65);
    pointer-events: none;
}

.rune-heart {
    position: relative;
    z-index: 2;
    width: 46%;
    height: 46%;
    pointer-events: none;
    filter:
        drop-shadow(0 0 10px rgba(255, 255, 255, 0.95))
        drop-shadow(0 0 22px rgba(255, 220, 190, 0.7))
        drop-shadow(0 0 34px rgba(255, 140, 90, 0.5));
    animation: heart-beat 1.6s ease-in-out infinite;
}

@keyframes heart-beat {
    0%, 100% { transform: scale(1); }
    30%      { transform: scale(1.08); }
    45%      { transform: scale(0.98); }
    60%      { transform: scale(1.05); }
}

@keyframes core-pulse { 0%,100% { transform: scale(1);    opacity: 0.9; } 50% { transform: scale(1.08); opacity: 1; } }
@keyframes halo-pulse { 0%,100% { transform: scale(1);    opacity: 0.7; } 50% { transform: scale(1.18); opacity: 1; } }
@keyframes ring-rotate { 0% { transform: rotate(0); } 100% { transform: rotate(360deg); } }
@keyframes ring-pulse {
    0%,100% { border-color: rgba(255, 200, 100, 0.4); }
    50%     { border-color: rgba(255, 240, 180, 0.75); }
}

@keyframes light-dissolve {
    0%   { opacity: 1;    transform: scale(1);    filter: blur(0)    brightness(1);   }
    60%  { opacity: 0.85; transform: scale(1.35); filter: blur(3px)  brightness(1.4); }
    100% { opacity: 0;    transform: scale(1.9);  filter: blur(10px) brightness(1.7); }
}

.light-rune.fading {
    animation: light-dissolve 2.4s ease forwards;
    pointer-events: none;
}

/* ============================================================
   HEDİYE KUTUSU — sahne 10
   ============================================================ */

.stage-gift .gift-container {
    position: relative;
    width: clamp(220px, 46vw, 340px);
    height: clamp(220px, 46vw, 340px);
    margin: 2.2rem auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
}

.gift-glow {
    position: absolute;
    inset: -30%;
    border-radius: 50%;
    background: radial-gradient(circle,
        rgba(154, 92, 196, 0.45) 0%,
        rgba(74, 26, 107, 0.3) 30%,
        transparent 65%);
    filter: blur(24px);
    animation: gift-glow-pulse 4s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}
@keyframes gift-glow-pulse {
    0%,100% { transform: scale(1);    opacity: 0.75; }
    50%     { transform: scale(1.12); opacity: 1;    }
}

/* Buket container — çocuk çiçekler tek tek bloom eder (aşağıda) */
.gift-peony-inner {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.gift-box {
    position: relative;
    width: 78%;
    height: 78%;
    border-radius: 6px;
    background:
        linear-gradient(135deg, #2a0a3a 0%, #4a1a6b 45%, #2a0a3a 100%);
    box-shadow:
        0 14px 36px rgba(0, 0, 0, 0.55),
        0 0 24px rgba(74, 26, 107, 0.35),
        inset 0 0 20px rgba(20, 6, 34, 0.5);
    cursor: grab;
    touch-action: none;
    z-index: 3;
    overflow: hidden;
    transition: transform 0.6s ease, opacity 0.9s ease;
}

.gift-box.locked { cursor: default; opacity: 0.4; }
.gift-box:active { cursor: grabbing; }

.gift-container.interactive .gift-box {
    animation: gift-breath 2.6s ease-in-out infinite;
}
@keyframes gift-breath {
    0%,100% { box-shadow: 0 14px 36px rgba(0,0,0,0.55), 0 0 24px rgba(74, 26, 107, 0.35), inset 0 0 20px rgba(20, 6, 34, 0.5); }
    50%     { box-shadow: 0 14px 42px rgba(0,0,0,0.6),  0 0 36px rgba(154, 92, 196, 0.55), inset 0 0 24px rgba(20, 6, 34, 0.5); }
}

.gift-wrap {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    background:
        repeating-linear-gradient(135deg,
            rgba(255, 217, 122, 0.22) 0px,
            rgba(255, 217, 122, 0.22) 2px,
            transparent 2px,
            transparent 10px),
        linear-gradient(135deg, #a04010 0%, #d4691a 40%, #c94a7a 80%, #6b0f1a 100%);
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.4);
    transition: transform 0.06s linear;
    will-change: transform;
    z-index: 2;
}
.gift-wrap-left  { left: 0;  transform-origin: right center; }
.gift-wrap-right { right: 0; transform-origin: left  center; }

.gift-tear-edge {
    position: absolute;
    top: 0;
    width: 8px;
    height: 100%;
    background:
        linear-gradient(180deg,
            transparent 0%,
            rgba(0, 0, 0, 0.4) 4px,
            transparent 8px,
            rgba(0, 0, 0, 0.5) 14px,
            transparent 20px,
            rgba(0, 0, 0, 0.35) 28px,
            transparent 36px,
            rgba(0, 0, 0, 0.5) 44px,
            transparent 52px,
            rgba(0, 0, 0, 0.4) 60px);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.gift-wrap-left  .gift-tear-edge { right: -4px; }
.gift-wrap-right .gift-tear-edge { left:  -4px; }
.gift-container.tearing .gift-tear-edge { opacity: 1; }

.gift-ribbon-h {
    position: absolute;
    top: 45%;
    left: -6%;
    width: 112%;
    height: 10%;
    background: linear-gradient(90deg, #6b0f1a 0%, #b71c3a 50%, #6b0f1a 100%);
    box-shadow:
        0 2px 6px rgba(0, 0, 0, 0.5),
        inset 0 -2px 2px rgba(0, 0, 0, 0.3),
        inset 0 2px 2px rgba(255, 200, 200, 0.2);
    z-index: 4;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.gift-ribbon-v {
    position: absolute;
    left: 45%;
    top: -6%;
    width: 10%;
    height: 112%;
    background: linear-gradient(180deg, #6b0f1a 0%, #b71c3a 50%, #6b0f1a 100%);
    box-shadow:
        2px 0 6px rgba(0, 0, 0, 0.5),
        inset -2px 0 2px rgba(0, 0, 0, 0.3),
        inset 2px 0 2px rgba(255, 200, 200, 0.2);
    z-index: 4;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.gift-bow {
    position: absolute;
    top: -4%;
    left: 50%;
    transform: translateX(-50%);
    width: 44%;
    height: 22%;
    z-index: 5;
    transition: opacity 0.5s ease, transform 0.7s ease;
}
.gift-bow span {
    position: absolute;
    display: block;
    background: linear-gradient(135deg, #b71c3a, #6b0f1a);
    box-shadow: 0 2px 4px rgba(0,0,0,0.4), inset 0 -2px 2px rgba(0,0,0,0.3);
    border-radius: 50% 50% 45% 45%;
}
.gift-bow-l { top: 20%; left: 0;   width: 42%; height: 65%; transform: rotate(-24deg); }
.gift-bow-r { top: 20%; right: 0;  width: 42%; height: 65%; transform: rotate(24deg); }
.gift-bow-c { top: 42%; left: 50%; width: 22%; height: 42%; transform: translateX(-50%); border-radius: 4px; background: linear-gradient(135deg, #8b1428, #4a0910); }

.gift-container.opened .gift-ribbon-h,
.gift-container.opened .gift-ribbon-v,
.gift-container.opened .gift-bow {
    opacity: 0;
    transform: translateY(-40px) scale(0.7) rotate(20deg);
}

.gift-container.opened .gift-wrap-left  { transform: translateX(-140%) rotate(-8deg); opacity: 0; }
.gift-container.opened .gift-wrap-right { transform: translateX(140%)  rotate(8deg);  opacity: 0; }
.gift-container.opened .gift-box { background: transparent; box-shadow: none; animation: none; }

.gift-drag-hint {
    position: absolute;
    left: 0; right: 0;
    bottom: 6%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    font-family: var(--font-story);
    font-style: italic;
    font-size: 0.78rem;
    letter-spacing: 0.24em;
    color: rgba(255, 220, 180, 0.7);
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
    text-transform: uppercase;
    pointer-events: none;
    opacity: 0;
    z-index: 6;
    transition: opacity 0.9s ease;
}
.gift-container.interactive .gift-drag-hint { opacity: 1; animation: drag-hint-breath 2.6s ease-in-out infinite; }
.gift-container.tearing     .gift-drag-hint,
.gift-container.opened      .gift-drag-hint { opacity: 0; }

@keyframes drag-hint-breath { 0%,100% { opacity: 0.4; } 50% { opacity: 0.95; } }

.drag-arrow {
    display: inline-block;
    font-size: 1rem;
    color: rgba(255, 240, 200, 0.85);
}
.drag-arrow-l { animation: drag-arrow-left  2.4s ease-in-out infinite; }
.drag-arrow-r { animation: drag-arrow-right 2.4s ease-in-out infinite; }
@keyframes drag-arrow-left  { 0%,100% { transform: translateX(0); } 50% { transform: translateX(-6px); } }
@keyframes drag-arrow-right { 0%,100% { transform: translateX(0); } 50% { transform: translateX(6px);  } }

/* ============================================================
   MOR ŞAKAYIKLAR
   ============================================================ */

.peony-wrap {
    position: fixed;
    pointer-events: none;
    z-index: 8;
    opacity: 0;

    --peony-rot: 0deg;
    --peony-base-scale: 1;
    --peony-bloom: 0;

    transform: rotate(var(--peony-rot)) scale(calc(var(--peony-base-scale) * var(--peony-bloom)));
    transition:
        transform 2.4s cubic-bezier(0.34, 1.4, 0.64, 1),
        opacity 2.2s ease;
    will-change: transform, opacity;
}

.peony-wrap svg {
    width: 100%;
    height: 100%;
    display: block;
    filter: grayscale(100%) brightness(0.35);
    transition: filter 3s ease;
}

.peony-tl { top: -120px;    left: -120px;   width: 280px; height: 280px; --peony-rot: -22deg; --peony-base-scale: 1.05; }
.peony-tr { top: -95px;     right: -120px;  width: 260px; height: 260px; --peony-rot: 25deg;  --peony-base-scale: 0.9;  }
.peony-bl { bottom: -125px; left: -120px;   width: 280px; height: 280px; --peony-rot: -14deg; --peony-base-scale: 1.15; }
.peony-br { bottom: -100px; right: -120px;  width: 260px; height: 260px; --peony-rot: 17deg;  --peony-base-scale: 0.95; }
.peony-l  { top: 44%;       left: -140px;   width: 220px; height: 220px; --peony-rot: -6deg;  --peony-base-scale: 0.85; }
.peony-r  { top: 50%;       right: -140px;  width: 220px; height: 220px; --peony-rot: 8deg;   --peony-base-scale: 0.8;  }
.peony-tm { top: -110px;    left: 32%;      width: 200px; height: 200px; --peony-rot: 10deg;  --peony-base-scale: 0.75; }
.peony-bm { bottom: -110px; right: 30%;     width: 200px; height: 200px; --peony-rot: -12deg; --peony-base-scale: 0.8;  }

/* Aşamalı reveal */
body[data-progress="1"] .peony-wrap[data-order="1"] { opacity: 0.35; --peony-bloom: 0.22; }

body[data-progress="2"] .peony-wrap[data-order="1"] { opacity: 0.45; --peony-bloom: 0.32; }
body[data-progress="2"] .peony-wrap[data-order="2"] { opacity: 0.35; --peony-bloom: 0.22; }

body[data-progress="3"] .peony-wrap[data-order="1"] { opacity: 0.55; --peony-bloom: 0.42; }
body[data-progress="3"] .peony-wrap[data-order="2"] { opacity: 0.45; --peony-bloom: 0.32; }
body[data-progress="3"] .peony-wrap[data-order="3"] { opacity: 0.35; --peony-bloom: 0.22; }

body[data-progress="4"] .peony-wrap[data-order="1"] { opacity: 0.65; --peony-bloom: 0.52; }
body[data-progress="4"] .peony-wrap[data-order="2"] { opacity: 0.55; --peony-bloom: 0.42; }
body[data-progress="4"] .peony-wrap[data-order="3"] { opacity: 0.45; --peony-bloom: 0.32; }
body[data-progress="4"] .peony-wrap[data-order="4"] { opacity: 0.35; --peony-bloom: 0.22; }

body[data-progress="5"] .peony-wrap[data-order="1"] { opacity: 0.72; --peony-bloom: 0.6;  }
body[data-progress="5"] .peony-wrap[data-order="2"] { opacity: 0.62; --peony-bloom: 0.5;  }
body[data-progress="5"] .peony-wrap[data-order="3"] { opacity: 0.52; --peony-bloom: 0.4;  }
body[data-progress="5"] .peony-wrap[data-order="4"] { opacity: 0.45; --peony-bloom: 0.3;  }

body[data-progress="6"] .peony-wrap[data-order="1"] { opacity: 0.78; --peony-bloom: 0.7;  }
body[data-progress="6"] .peony-wrap[data-order="2"] { opacity: 0.7;  --peony-bloom: 0.62; }
body[data-progress="6"] .peony-wrap[data-order="3"] { opacity: 0.6;  --peony-bloom: 0.55; }
body[data-progress="6"] .peony-wrap[data-order="4"] { opacity: 0.55; --peony-bloom: 0.45; }

body.theme-awakened .peony-wrap {
    opacity: 0.92 !important;
    --peony-bloom: 1;
}

body.theme-awakened .peony-wrap svg {
    filter:
        grayscale(0%)
        brightness(1)
        drop-shadow(0 0 12px rgba(140, 60, 200, 0.55))
        drop-shadow(0 0 26px rgba(90, 30, 150, 0.35));
    animation: peony-sway 8s ease-in-out infinite;
}

@keyframes peony-sway {
    0%, 100% { transform: rotate(-2.4deg); }
    50%      { transform: rotate(2.4deg); }
}

body.theme-awakened .peony-tr svg { animation-delay: -1.7s; animation-direction: reverse; }
body.theme-awakened .peony-bl svg { animation-delay: -3.5s; }
body.theme-awakened .peony-br svg { animation-delay: -5.2s; animation-direction: reverse; }
body.theme-awakened .peony-l  svg { animation-delay: -2.1s; }
body.theme-awakened .peony-r  svg { animation-delay: -4.8s; animation-direction: reverse; }
body.theme-awakened .peony-tm svg { animation-delay: -6.3s; }
body.theme-awakened .peony-bm svg { animation-delay: -7.1s; animation-direction: reverse; }

/* ============================================================
   BLOSSOM (kiraz çiçeği) — sadece uyanıştan sonra bloom
   ============================================================ */

.blossom-wrap {
    position: fixed;
    pointer-events: none;
    z-index: 8;
    opacity: 0;
    --blossom-rot: 0deg;
    --blossom-scale: 0.3;
    transform: rotate(var(--blossom-rot)) scale(var(--blossom-scale));
    transition:
        transform 2.6s cubic-bezier(0.34, 1.4, 0.64, 1),
        opacity 2.4s ease;
    will-change: transform, opacity;
}

.blossom-wrap svg {
    width: 100%;
    height: 100%;
    display: block;
    filter: grayscale(80%) brightness(0.4);
    transition: filter 3s ease;
}

.blossom-a { top: 8%;   left: 14%;  width: 130px; height: 130px; --blossom-rot: -12deg; }
.blossom-b { top: 14%;  right: 12%; width: 110px; height: 110px; --blossom-rot: 18deg;  }
.blossom-c { bottom: 22%; left: 8%;   width: 120px; height: 120px; --blossom-rot: 24deg; }
.blossom-d { bottom: 12%; right: 16%; width: 130px; height: 130px; --blossom-rot: -20deg; }
.blossom-e { top: 42%;  right: 4%;  width: 90px;  height: 90px;  --blossom-rot: 8deg;  }

body.theme-awakened .blossom-wrap {
    opacity: 0.85;
    --blossom-scale: 1;
}

body.theme-awakened .blossom-wrap svg {
    filter:
        grayscale(0%)
        brightness(1)
        drop-shadow(0 0 10px rgba(240, 130, 180, 0.55))
        drop-shadow(0 0 22px rgba(200, 60, 130, 0.3));
    animation: blossom-sway 9s ease-in-out infinite;
}

@keyframes blossom-sway {
    0%,100% { transform: rotate(-3deg) scale(1);    }
    50%     { transform: rotate(3deg)  scale(1.05); }
}

body.theme-awakened .blossom-b svg { animation-delay: -2.4s; animation-direction: reverse; }
body.theme-awakened .blossom-c svg { animation-delay: -4.1s; }
body.theme-awakened .blossom-d svg { animation-delay: -6.5s; animation-direction: reverse; }
body.theme-awakened .blossom-e svg { animation-delay: -3.2s; }

/* ============================================================
   CONTINUE HINT
   ============================================================ */

#continue-hint {
    position: fixed;
    left: 50%;
    bottom: 2.6rem;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-story);
    font-style: italic;
    font-size: 0.82rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(200, 190, 220, 0.5);
    text-shadow: 0 0 10px rgba(74, 26, 107, 0.4);
    pointer-events: none;
    opacity: 0;
    z-index: 20;
    transition: opacity 1.4s ease;
    white-space: nowrap;
}

#continue-hint.visible { animation: hint-breath 2.8s ease-in-out infinite; }
@keyframes hint-breath { 0%,100% { opacity: 0.35; } 50% { opacity: 0.85; } }

.hint-arrow {
    display: block;
    font-size: 0.9rem;
    letter-spacing: 0;
    animation: hint-bob 2.6s ease-in-out infinite;
}
@keyframes hint-bob {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(4px); }
}

body.theme-awakened #continue-hint {
    color: rgba(255, 230, 180, 0.7);
    text-shadow: 0 0 12px rgba(255, 180, 80, 0.5);
}

/* ============================================================
   FINALE — Sahne 18 (zarif ve dikkat çekici)
   ============================================================ */

.stage-finale {
    gap: 0;
}

/* Süs ornamenti — mesajın üstünde */
.finale-ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
    margin-bottom: 1.8rem;
    opacity: 0;
    transform: translateY(-10px);
}
.stage-finale.active .finale-ornament {
    animation: finale-fade-down 2s cubic-bezier(0.2, 0.7, 0.3, 1) 0.4s forwards;
}

.ornament-flourish {
    font-family: var(--font-title);
    font-size: clamp(0.9rem, 1.5vw, 1.2rem);
    color: #ffd97a;
    text-shadow:
        0 0 8px rgba(255, 200, 100, 0.85),
        0 0 20px rgba(212, 105, 26, 0.5);
    animation: ornament-twinkle 3.4s ease-in-out infinite;
}
.ornament-flourish-r { animation-delay: -1.7s; }

.ornament-line {
    display: inline-block;
    width: clamp(30px, 6vw, 70px);
    height: 1px;
    background: linear-gradient(90deg,
        rgba(255, 200, 100, 0) 0%,
        rgba(255, 220, 150, 0.85) 50%,
        rgba(255, 200, 100, 0) 100%);
    box-shadow: 0 0 6px rgba(255, 200, 130, 0.55);
}

.ornament-diamond {
    font-size: clamp(0.75rem, 1.2vw, 1rem);
    color: #ffe9b8;
    text-shadow:
        0 0 10px rgba(255, 220, 150, 0.9),
        0 0 22px rgba(255, 180, 80, 0.55);
    animation: ornament-diamond-spin 8s linear infinite;
}

@keyframes ornament-twinkle {
    0%, 100% { opacity: 0.55; transform: scale(0.9);  }
    50%      { opacity: 1;    transform: scale(1.1); }
}

@keyframes ornament-diamond-spin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Ana kutlama mesajı — iki satır tipografi */
.birthday-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
    padding: 0 1rem;
    font-family: var(--font-title);
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1.2;
    text-align: center;

    opacity: 0;
    transform: translateY(24px);
    will-change: transform, filter, opacity;
}

.birthday-primary {
    display: block;
    font-size: clamp(1.5rem, 4.4vw, 3.2rem);
    letter-spacing: 0.06em;
    line-height: 1.25;
    text-transform: uppercase;

    background: linear-gradient(180deg,
        #fff6d0 0%,
        #ffe08a 32%,
        #ffcf70 60%,
        #e08a30 92%,
        #a04010 100%);
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
            color: transparent;

    filter:
        drop-shadow(0 0 5px  rgba(255, 220, 130, 0.85))
        drop-shadow(0 0 16px rgba(255, 160, 60, 0.55))
        drop-shadow(0 0 34px rgba(212, 105, 26, 0.4));
}

.birthday-secondary {
    display: block;
    font-family: var(--font-title);
    font-weight: 900;
    font-size: clamp(2rem, 6.4vw, 4.8rem);
    letter-spacing: 0.09em;
    line-height: 1.1;
    margin-top: 0.4rem;
    text-transform: uppercase;

    background: linear-gradient(180deg,
        #fff8de 0%,
        #ffe08a 25%,
        #ffb867 55%,
        #c94a7a 85%,
        #6b0f1a 100%);
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
            color: transparent;

    filter:
        drop-shadow(0 0 8px  rgba(255, 230, 150, 0.95))
        drop-shadow(0 0 22px rgba(255, 160, 80, 0.7))
        drop-shadow(0 0 48px rgba(200, 60, 100, 0.45));
}

.stage-finale.active .birthday-message {
    animation:
        birthday-appear 3s cubic-bezier(0.2, 0.7, 0.3, 1) 1.6s forwards,
        birthday-glow-pulse 5.5s ease-in-out 5s infinite;
}

/* Ayırıcı — mesaj ve tarih arasında zarif çizgi */
.finale-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    margin: 2.2rem 0 1.4rem;
    opacity: 0;
    transform: scaleX(0.4);
    transform-origin: center;
}
.stage-finale.active .finale-divider {
    animation: divider-expand 1.8s cubic-bezier(0.2, 0.7, 0.3, 1) 5s forwards;
}

.divider-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: radial-gradient(circle, #fff6d0 0%, #ffcf70 60%, transparent 100%);
    box-shadow:
        0 0 8px rgba(255, 200, 130, 0.85),
        0 0 18px rgba(212, 105, 26, 0.55);
}
.divider-line {
    display: inline-block;
    width: clamp(80px, 18vw, 220px);
    height: 1px;
    background: linear-gradient(90deg,
        rgba(255, 200, 100, 0) 0%,
        rgba(255, 220, 150, 0.85) 50%,
        rgba(255, 200, 100, 0) 100%);
    box-shadow: 0 0 6px rgba(255, 200, 130, 0.5);
}

/* Tarih bloğu — iki satır: gün + el yazısı açıklama */
.birth-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
    margin: 0 auto;
    padding: 0 1.25rem;
    max-width: 620px;

    opacity: 0;
    transform: translateY(16px);
    will-change: opacity, transform;
}

.date-day {
    font-family: var(--font-title);
    font-weight: 700;
    font-size: clamp(1.05rem, 2.1vw, 1.55rem);
    letter-spacing: 0.24em;
    line-height: 1.4;
    color: #ffe9b8;
    text-shadow:
        0 0 10px rgba(255, 200, 130, 0.7),
        0 0 22px rgba(212, 105, 26, 0.4),
        0 0 40px rgba(180, 60, 20, 0.2);
}

.date-caption {
    font-family: 'Great Vibes', 'Dancing Script', var(--font-story), cursive;
    font-weight: 400;
    font-size: clamp(1.4rem, 3.4vw, 2.2rem);
    letter-spacing: 0.02em;
    line-height: 1.25;
    color: #f4c9dc;
    text-shadow:
        0 0 12px rgba(240, 170, 210, 0.75),
        0 0 26px rgba(200, 90, 150, 0.4);
    transform: rotate(-2deg);
}

.stage-finale.active .birth-date {
    animation: birthday-appear 2.4s cubic-bezier(0.2, 0.7, 0.3, 1) 6.4s forwards;
}

@keyframes birthday-appear {
    0%   { opacity: 0; transform: translateY(24px); }
    100% { opacity: 1; transform: translateY(0);    }
}

@keyframes finale-fade-down {
    0%   { opacity: 0; transform: translateY(-10px); }
    100% { opacity: 1; transform: translateY(0);     }
}

@keyframes divider-expand {
    0%   { opacity: 0; transform: scaleX(0.4); }
    100% { opacity: 1; transform: scaleX(1);   }
}

@keyframes birthday-glow-pulse {
    0%, 100% {
        filter:
            drop-shadow(0 0 6px  rgba(255, 220, 130, 0.9))
            drop-shadow(0 0 18px rgba(255, 160, 60, 0.65))
            drop-shadow(0 0 40px rgba(212, 105, 26, 0.45));
    }
    50% {
        filter:
            drop-shadow(0 0 14px rgba(255, 240, 180, 1))
            drop-shadow(0 0 34px rgba(255, 180, 80, 0.85))
            drop-shadow(0 0 78px rgba(212, 105, 26, 0.65))
            drop-shadow(0 0 130px rgba(200, 60, 100, 0.4));
    }
}

/* ============================================================
   DUYGU AURALARI — sahne 11-16 (zarif arka plan animasyonları)
   ============================================================ */

.aura {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 4;
    opacity: 0;
    transition: opacity 2s cubic-bezier(0.2, 0.7, 0.3, 1);
    mix-blend-mode: screen;
    overflow: hidden;
}

body[data-progress="11"] .aura-hearts  { opacity: 1; }
body[data-progress="12"] .aura-prayer  { opacity: 1; }
body[data-progress="13"] .aura-piece   { opacity: 1; }
body[data-progress="14"] .aura-diamond { opacity: 1; }
body[data-progress="15"] .aura-whisper { opacity: 1; }
body[data-progress="16"] .aura-embrace { opacity: 1; }

/* ---- Sahne 11 — Yükselen kalpler ---- */

.aura-heart {
    position: absolute;
    bottom: -8%;
    width: 44px;
    height: 44px;
    fill: #ff9ec1;
    opacity: 0;
    filter:
        drop-shadow(0 0 8px rgba(255, 158, 200, 0.75))
        drop-shadow(0 0 22px rgba(220, 90, 160, 0.4));
    will-change: transform, opacity;
}

body[data-progress="11"] .aura-heart {
    animation: heart-rise 9s ease-in-out infinite;
}
.aura-heart.heart-a { left: 12%; width: 40px; height: 40px; animation-delay: 0s;   }
.aura-heart.heart-b { left: 26%; width: 32px; height: 32px; animation-delay: 1.6s; animation-duration: 10s; }
.aura-heart.heart-c { left: 44%; width: 48px; height: 48px; animation-delay: 3.1s; }
.aura-heart.heart-d { left: 60%; width: 34px; height: 34px; animation-delay: 4.4s; animation-duration: 11s; }
.aura-heart.heart-e { left: 76%; width: 40px; height: 40px; animation-delay: 2.2s; }
.aura-heart.heart-f { left: 88%; width: 28px; height: 28px; animation-delay: 5.7s; animation-duration: 8.5s; }

@keyframes heart-rise {
    0%   { transform: translate3d(0, 0, 0) scale(0.7); opacity: 0; }
    10%  { opacity: 0.85; }
    50%  { transform: translate3d(14px, -55vh, 0) scale(1); opacity: 0.85; }
    90%  { opacity: 0.3; }
    100% { transform: translate3d(-10px, -105vh, 0) scale(0.65); opacity: 0; }
}

/* ---- Sahne 12 — Semavi dua ışığı ---- */

.aura-prayer .prayer-glow {
    position: absolute;
    top: -10%;
    left: 50%;
    width: 60vmin;
    height: 60vmin;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(circle,
        rgba(255, 240, 200, 0.55) 0%,
        rgba(255, 210, 140, 0.28) 30%,
        rgba(255, 180, 100, 0.12) 55%,
        transparent 75%);
    filter: blur(18px);
    animation: prayer-glow-pulse 6s ease-in-out infinite;
}

@keyframes prayer-glow-pulse {
    0%, 100% { transform: translateX(-50%) scale(1);    opacity: 0.85; }
    50%      { transform: translateX(-50%) scale(1.15); opacity: 1;    }
}

.prayer-ray {
    position: absolute;
    top: -20%;
    left: 50%;
    width: 3px;
    height: 130vh;
    background: linear-gradient(180deg,
        rgba(255, 245, 200, 0.75) 0%,
        rgba(255, 220, 150, 0.35) 40%,
        transparent 90%);
    filter: blur(2px);
    transform-origin: top center;
    opacity: 0;
    animation: prayer-ray-fade 5.5s ease-in-out infinite;
}
.prayer-ray.ray-1 { transform: translateX(-50%) rotate(-45deg); animation-delay: 0s;   }
.prayer-ray.ray-2 { transform: translateX(-50%) rotate(-30deg); animation-delay: 0.6s; }
.prayer-ray.ray-3 { transform: translateX(-50%) rotate(-15deg); animation-delay: 1.2s; }
.prayer-ray.ray-4 { transform: translateX(-50%) rotate(0deg);   animation-delay: 1.8s; }
.prayer-ray.ray-5 { transform: translateX(-50%) rotate(15deg);  animation-delay: 2.4s; }
.prayer-ray.ray-6 { transform: translateX(-50%) rotate(30deg);  animation-delay: 3.0s; }
.prayer-ray.ray-7 { transform: translateX(-50%) rotate(45deg);  animation-delay: 3.6s; }

@keyframes prayer-ray-fade {
    0%, 100% { opacity: 0.15; }
    50%      { opacity: 0.75; }
}

/* ---- Sahne 13 — Birleşen eksik parça ---- */

.aura-piece .piece-halo {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 58vmin;
    height: 58vmin;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle,
        rgba(255, 220, 160, 0.35) 0%,
        rgba(220, 160, 240, 0.18) 45%,
        transparent 72%);
    filter: blur(28px);
    animation: piece-halo-pulse 5s ease-in-out infinite;
}

@keyframes piece-halo-pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1);    opacity: 0.75; }
    50%      { transform: translate(-50%, -50%) scale(1.1);  opacity: 1;    }
}

.piece-half {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 34vmin;
    height: 34vmin;
    margin-top: -17vmin;
    border: 1.5px solid rgba(255, 230, 180, 0.75);
    border-radius: 50%;
    box-shadow:
        0 0 20px rgba(255, 200, 130, 0.45),
        inset 0 0 20px rgba(255, 200, 130, 0.3);
    filter: drop-shadow(0 0 6px rgba(255, 220, 160, 0.5));
}
.piece-half-l {
    margin-left: -34vmin;
    border-right: none;
    border-radius: 100% 0 0 100% / 100% 0 0 100%;
    animation: piece-slide-l 5.4s cubic-bezier(0.3, 0.7, 0.2, 1) infinite;
}
.piece-half-r {
    margin-left: 0;
    border-left: none;
    border-radius: 0 100% 100% 0 / 0 100% 100% 0;
    animation: piece-slide-r 5.4s cubic-bezier(0.3, 0.7, 0.2, 1) infinite;
}

@keyframes piece-slide-l {
    0%   { transform: translateX(-55%); opacity: 0; }
    30%  { transform: translateX(-12%); opacity: 0.85; }
    50%  { transform: translateX(0);    opacity: 0.95; }
    75%  { transform: translateX(0);    opacity: 0.95; }
    100% { transform: translateX(-55%); opacity: 0; }
}
@keyframes piece-slide-r {
    0%   { transform: translateX(55%);  opacity: 0; }
    30%  { transform: translateX(12%);  opacity: 0.85; }
    50%  { transform: translateX(0);    opacity: 0.95; }
    75%  { transform: translateX(0);    opacity: 0.95; }
    100% { transform: translateX(55%);  opacity: 0; }
}

.piece-spark {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 6px;
    margin: -3px 0 0 -3px;
    border-radius: 50%;
    background: #fff6d0;
    box-shadow:
        0 0 10px #ffcf70,
        0 0 20px rgba(255, 180, 80, 0.7);
    opacity: 0;
    animation: piece-spark-burst 5s ease-in-out infinite;
}
.piece-spark.spark-a { animation-delay: 2s;   }
.piece-spark.spark-b { animation-delay: 2.2s; --sx: -30px; --sy: 20px; }
.piece-spark.spark-c { animation-delay: 2.1s; --sx: 25px;  --sy: -18px; }

@keyframes piece-spark-burst {
    0%, 40%   { opacity: 0; transform: translate(0, 0) scale(0.4); }
    55%       { opacity: 1; transform: translate(0, 0) scale(1.6); }
    100%      { opacity: 0; transform: translate(var(--sx, 0), var(--sy, 0)) scale(0.5); }
}

/* ---- Sahne 14 — Pırlanta parıltısı ---- */

.aura-diamond .diamond-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 58vmin;
    height: 58vmin;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle,
        rgba(230, 245, 255, 0.22) 0%,
        rgba(170, 210, 255, 0.1) 40%,
        transparent 72%);
    filter: blur(34px);
    animation: diamond-glow-pulse 4.5s ease-in-out infinite;
}

@keyframes diamond-glow-pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1);    opacity: 0.55; }
    50%      { transform: translate(-50%, -50%) scale(1.12); opacity: 0.8;  }
}

.diamond-shape {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 26vmin;
    height: 26vmin;
    transform: translate(-50%, -50%);
    opacity: 0.35;
    filter:
        drop-shadow(0 0 6px rgba(255, 255, 255, 0.35))
        drop-shadow(0 0 16px rgba(200, 230, 255, 0.25));
    animation: diamond-facet 7s ease-in-out infinite;
}

@keyframes diamond-facet {
    0%, 100% {
        transform: translate(-50%, -50%) rotate(-2deg);
        opacity: 0.28;
        filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.35)) drop-shadow(0 0 14px rgba(200, 230, 255, 0.22));
    }
    50% {
        transform: translate(-50%, -50%) rotate(2deg);
        opacity: 0.42;
        filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5)) drop-shadow(0 0 22px rgba(220, 240, 255, 0.35));
    }
}

.diamond-sparkle {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    box-shadow:
        0 0 4px rgba(255, 255, 255, 0.7),
        0 0 10px rgba(220, 240, 255, 0.55),
        0 0 20px rgba(180, 220, 255, 0.3);
    opacity: 0;
    animation: diamond-sparkle-twinkle 3.4s ease-in-out infinite;
}
.diamond-sparkle.ds-1 { top: 18%; left: 18%; animation-delay: 0s;   }
.diamond-sparkle.ds-2 { top: 14%; left: 78%; animation-delay: 0.6s; }
.diamond-sparkle.ds-3 { top: 42%; left: 8%;  animation-delay: 1.1s; }
.diamond-sparkle.ds-4 { top: 52%; left: 88%; animation-delay: 1.7s; }
.diamond-sparkle.ds-5 { top: 78%; left: 20%; animation-delay: 2.2s; }
.diamond-sparkle.ds-6 { top: 82%; left: 76%; animation-delay: 2.8s; }

@keyframes diamond-sparkle-twinkle {
    0%, 100% { opacity: 0;    transform: scale(0.4); }
    50%      { opacity: 0.75; transform: scale(1.3); }
}

/* ---- Sahne 15 — Fısıltı ışığı ---- */

.whisper-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 55vmin;
    height: 55vmin;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle,
        rgba(255, 220, 180, 0.35) 0%,
        rgba(220, 160, 240, 0.2) 40%,
        transparent 72%);
    filter: blur(28px);
    opacity: 0;
    animation: whisper-breathe 5.5s ease-in-out infinite;
}
.whisper-glow-1 { animation-delay: 0s;   }
.whisper-glow-2 { animation-delay: 1.8s; width: 40vmin; height: 40vmin; }
.whisper-glow-3 { animation-delay: 3.6s; width: 70vmin; height: 70vmin; }

@keyframes whisper-breathe {
    0%   { opacity: 0;   transform: translate(-50%, -50%) scale(0.7); }
    40%  { opacity: 0.9; transform: translate(-50%, -50%) scale(1);   }
    80%  { opacity: 0.2; transform: translate(-50%, -50%) scale(1.35); }
    100% { opacity: 0;   transform: translate(-50%, -50%) scale(1.5); }
}

/* ---- Sahne 16 — Sarmalayan sıcak halkalar ---- */

.embrace-core {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40vmin;
    height: 40vmin;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle,
        rgba(255, 240, 200, 0.55) 0%,
        rgba(255, 200, 130, 0.35) 30%,
        rgba(220, 130, 200, 0.2) 55%,
        transparent 78%);
    filter: blur(24px);
    animation: embrace-core-pulse 4.5s ease-in-out infinite;
}

@keyframes embrace-core-pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1);    opacity: 0.85; }
    50%      { transform: translate(-50%, -50%) scale(1.12); opacity: 1;    }
}

.embrace-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20vmin;
    height: 20vmin;
    margin: -10vmin 0 0 -10vmin;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 220, 160, 0.75);
    box-shadow:
        0 0 20px rgba(255, 200, 130, 0.55),
        inset 0 0 12px rgba(255, 200, 130, 0.35);
    opacity: 0;
    animation: embrace-ring-expand 5s ease-out infinite;
}
.embrace-ring.ring-1 { animation-delay: 0s;   }
.embrace-ring.ring-2 { animation-delay: 1.2s; }
.embrace-ring.ring-3 { animation-delay: 2.4s; }
.embrace-ring.ring-4 { animation-delay: 3.6s; }

@keyframes embrace-ring-expand {
    0%   { opacity: 0;   transform: scale(0.3);  border-color: rgba(255, 240, 200, 1); }
    20%  { opacity: 0.9; }
    100% { opacity: 0;   transform: scale(4.5);  border-color: rgba(220, 130, 200, 0.4); }
}

/* Auralar için theme-awakened durumunda tam parlaklık — zaten uyanışın içindeyiz */
body.theme-awakened .aura { mix-blend-mode: screen; }

/* ============================================================
   KIŞ — kar yağışı (sahne 4-6) + buzul dokusu köşelerde
   ============================================================ */

.snow-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 6;
    opacity: 0;
    transition: opacity 3.4s ease;
}
body.state-winter .snow-layer { opacity: 1; }

.snowflake {
    position: absolute;
    top: -30px;
    width: 4px;
    height: 4px;
    background: rgba(230, 240, 255, 0.85);
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(200, 230, 255, 0.6);
    opacity: 0;
    animation: snow-fall linear infinite;
    will-change: transform, opacity;
}

.snowflake:nth-child(1)  { left:  4%; animation-duration: 14s; animation-delay:  0s; }
.snowflake:nth-child(2)  { left: 11%; animation-duration: 19s; animation-delay:  3s; width: 3px; height: 3px; }
.snowflake:nth-child(3)  { left: 18%; animation-duration: 15s; animation-delay:  7s; width: 5px; height: 5px; }
.snowflake:nth-child(4)  { left: 26%; animation-duration: 22s; animation-delay:  1s; }
.snowflake:nth-child(5)  { left: 33%; animation-duration: 17s; animation-delay:  9s; width: 3px; height: 3px; }
.snowflake:nth-child(6)  { left: 40%; animation-duration: 20s; animation-delay:  4s; width: 4px; height: 4px; }
.snowflake:nth-child(7)  { left: 47%; animation-duration: 16s; animation-delay: 11s; }
.snowflake:nth-child(8)  { left: 54%; animation-duration: 24s; animation-delay:  2s; width: 3px; height: 3px; }
.snowflake:nth-child(9)  { left: 61%; animation-duration: 18s; animation-delay:  6s; width: 5px; height: 5px; }
.snowflake:nth-child(10) { left: 68%; animation-duration: 21s; animation-delay: 13s; }
.snowflake:nth-child(11) { left: 75%; animation-duration: 15s; animation-delay:  5s; width: 3px; height: 3px; }
.snowflake:nth-child(12) { left: 82%; animation-duration: 19s; animation-delay: 10s; }
.snowflake:nth-child(13) { left: 89%; animation-duration: 23s; animation-delay:  8s; width: 4px; height: 4px; }
.snowflake:nth-child(14) { left: 95%; animation-duration: 17s; animation-delay:  0s; width: 3px; height: 3px; }
.snowflake:nth-child(15) { left: 30%; animation-duration: 25s; animation-delay: 15s; width: 2px; height: 2px; }
.snowflake:nth-child(16) { left: 58%; animation-duration: 26s; animation-delay: 18s; width: 2px; height: 2px; }
.snowflake:nth-child(17) { left: 72%; animation-duration: 27s; animation-delay: 20s; width: 2px; height: 2px; }
.snowflake:nth-child(18) { left: 15%; animation-duration: 28s; animation-delay: 12s; width: 2px; height: 2px; }

@keyframes snow-fall {
    0%   { transform: translate3d(0, 0, 0);       opacity: 0;   }
    6%   {                                        opacity: 0.85; }
    50%  { transform: translate3d(18px, 55vh, 0); opacity: 0.85; }
    94%  {                                        opacity: 0.55; }
    100% { transform: translate3d(-14px, 108vh, 0); opacity: 0; }
}

.frost-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 6;
    opacity: 0;
    transition: opacity 3.6s ease;
    background:
        radial-gradient(ellipse at 0% 0%,   rgba(200, 225, 255, 0.22) 0%, transparent 24%),
        radial-gradient(ellipse at 100% 0%, rgba(200, 225, 255, 0.22) 0%, transparent 24%),
        radial-gradient(ellipse at 0% 100%, rgba(180, 210, 240, 0.18) 0%, transparent 22%),
        radial-gradient(ellipse at 100% 100%, rgba(180, 210, 240, 0.18) 0%, transparent 22%),
        linear-gradient(180deg, rgba(200, 225, 255, 0.05) 0%, transparent 20%, transparent 80%, rgba(200, 225, 255, 0.04) 100%);
    mix-blend-mode: screen;
    filter: blur(0.5px);
}
body.state-winter .frost-overlay { opacity: 1; }

/* Karartma (sahne 5) — arkaplan hafiften kararır */
.dim-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 5;
    opacity: 0;
    transition: opacity 2.8s ease;
    background: radial-gradient(ellipse at center,
        rgba(0, 0, 0, 0.28) 30%,
        rgba(0, 0, 0, 0.55) 100%);
}
body.state-dimmed .dim-overlay { opacity: 1; }

/* ============================================================
   BUKET — hediye kutusundan çıkan 5 mor şakayık + sap/kurdele
   ============================================================ */

.bouquet {
    position: absolute;
    inset: 0;
}

.bouquet-flower {
    position: absolute;
    opacity: 0;
    transform-origin: bottom center;
    transition:
        opacity 1.6s cubic-bezier(0.2, 0.7, 0.3, 1),
        transform 2s cubic-bezier(0.34, 1.5, 0.44, 1),
        filter 1.6s ease;
    filter: drop-shadow(0 0 14px rgba(154, 92, 196, 0.5));
    will-change: opacity, transform;
}

/* Merkez şakayık — en büyük, en önde */
.bf-peony {
    width: 62%;
    height: 62%;
    top: 20%;
    left: 19%;
    z-index: 5;
    transform: scale(0.2) rotate(0);
    filter: drop-shadow(0 0 22px rgba(200, 130, 240, 0.85));
}

/* Yan çift — orta, yanlara doğru açılı */
.bf-peony-l {
    width: 48%;
    height: 48%;
    top: 26%;
    left: -3%;
    z-index: 3;
    transform: scale(0.2) rotate(-40deg);
    transition-delay: 0.18s;
    filter: drop-shadow(0 0 14px rgba(180, 100, 220, 0.65));
}
.bf-peony-r {
    width: 48%;
    height: 48%;
    top: 26%;
    right: -3%;
    z-index: 3;
    transform: scale(0.2) rotate(40deg);
    transition-delay: 0.18s;
    filter: drop-shadow(0 0 14px rgba(180, 100, 220, 0.65));
}

/* Arka çift — üstte, daha derinden peekliyor */
.bf-peony-back-l {
    width: 40%;
    height: 40%;
    top: 2%;
    left: 12%;
    z-index: 1;
    transform: scale(0.15) rotate(-55deg);
    transition-delay: 0.36s;
    filter: drop-shadow(0 0 12px rgba(140, 80, 200, 0.55));
}
.bf-peony-back-r {
    width: 40%;
    height: 40%;
    top: 2%;
    right: 12%;
    z-index: 1;
    transform: scale(0.15) rotate(55deg);
    transition-delay: 0.36s;
    filter: drop-shadow(0 0 12px rgba(140, 80, 200, 0.55));
}

/* Bouquet açıldığında pozisyonlar */
.gift-container.opened .bf-peony        { opacity: 1; transform: scale(1)    rotate(0);      animation: bouquet-sway 6s ease-in-out infinite 1.8s; }
.gift-container.opened .bf-peony-l      { opacity: 1; transform: scale(0.78) rotate(-22deg); }
.gift-container.opened .bf-peony-r      { opacity: 1; transform: scale(0.78) rotate(22deg);  }
.gift-container.opened .bf-peony-back-l { opacity: 1; transform: scale(0.68) rotate(-38deg); }
.gift-container.opened .bf-peony-back-r { opacity: 1; transform: scale(0.68) rotate(38deg);  }

@keyframes bouquet-sway {
    0%, 100% { transform: scale(1) rotate(-2deg); }
    50%      { transform: scale(1) rotate(2deg);  }
}

/* Saplar — buketin alt kısmında koyu yeşil bant */
.bouquet-stems {
    position: absolute;
    bottom: 6%;
    left: 46%;
    width: 8%;
    height: 34%;
    z-index: 2;
    background: linear-gradient(180deg,
        rgba(58, 92, 42, 0) 0%,
        rgba(58, 92, 42, 0.85) 35%,
        rgba(30, 50, 22, 0.95) 100%);
    border-radius: 3px 3px 2px 2px;
    opacity: 0;
    transform: scaleY(0.2);
    transform-origin: top center;
    transition:
        opacity 1.4s ease 0.15s,
        transform 1.4s cubic-bezier(0.34, 1.4, 0.64, 1) 0.15s;
}
.gift-container.opened .bouquet-stems {
    opacity: 0.85;
    transform: scaleY(1);
}

/* Kurdele — sapları birleştiren mor şerit */
.bouquet-tie {
    position: absolute;
    bottom: 12%;
    left: 40%;
    width: 20%;
    height: 8%;
    z-index: 4;
    background:
        linear-gradient(180deg, #6d1e9a 0%, #4a1a6b 55%, #2a0a3a 100%);
    border-radius: 4px;
    box-shadow:
        0 3px 8px rgba(0, 0, 0, 0.5),
        inset 0 -2px 3px rgba(0, 0, 0, 0.35),
        inset 0 2px 2px rgba(200, 150, 220, 0.35);
    opacity: 0;
    transform: translateY(10px) scale(0.6);
    transition:
        opacity 1.2s ease 0.45s,
        transform 1.2s cubic-bezier(0.34, 1.5, 0.44, 1) 0.45s;
}
.gift-container.opened .bouquet-tie {
    opacity: 0.95;
    transform: translateY(0) scale(1);
}

/* ============================================================
   HEDİYE CAPTION — buket bloom sonrası zarif satır
   ============================================================ */

.gift-caption {
    font-family: var(--font-story);
    font-style: italic;
    font-weight: 400;
    letter-spacing: 0.025em;
    font-size: clamp(1rem, 1.9vw, 1.25rem);
    line-height: 1.55;
    color: rgba(255, 220, 160, 0.92);
    text-shadow:
        0 0 14px rgba(255, 180, 80, 0.55),
        0 0 30px rgba(180, 40, 40, 0.25);
    margin: 1.8rem auto 0;
    max-width: 620px;
    padding: 0 1rem;
    opacity: 0;
    transform: translateY(14px);
    transition:
        opacity 1.8s cubic-bezier(0.2, 0.7, 0.3, 1),
        transform 1.8s cubic-bezier(0.2, 0.7, 0.3, 1);
    pointer-events: none;
}
.stage-gift.revealed .gift-caption {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 1.7s;
}

/* ============================================================
   MOBIL & KISA VIEWPORT
   ============================================================ */

@media (max-width: 768px) {
    .peony-tl { width: 190px; height: 190px; top: -80px; left: -80px; }
    .peony-tr { width: 170px; height: 170px; top: -60px; right: -80px; }
    .peony-bl { width: 190px; height: 190px; bottom: -85px; left: -80px; }
    .peony-br { width: 170px; height: 170px; bottom: -70px; right: -80px; }
    .peony-l  { width: 150px; height: 150px; left: -100px; }
    .peony-r  { width: 150px; height: 150px; right: -100px; }
    .peony-tm { width: 140px; height: 140px; top: -75px; left: 15%; }
    .peony-bm { width: 140px; height: 140px; bottom: -75px; right: 12%; }

    .blossom-a { width: 90px;  height: 90px;  top: 10%; left: 6%;   }
    .blossom-b { width: 80px;  height: 80px;  top: 16%; right: 5%;  }
    .blossom-c { width: 90px;  height: 90px;  bottom: 26%; left: 4%; }
    .blossom-d { width: 90px;  height: 90px;  bottom: 14%; right: 6%; }
    .blossom-e { display: none; }

    .stage { padding: 3rem 1rem; }
    .stage-line { padding: 0 0.8rem; }
    .stage-line-main { font-size: clamp(1rem, 3.5vw, 1.25rem); line-height: 1.65; }
    .stage-line-sub  { font-size: clamp(0.95rem, 3vw, 1.15rem); line-height: 1.6; }
    .stage-with-rune .stage-line-sub { margin-top: 0.9rem; }
    .light-rune { margin-top: 2rem; }

    .stage-actions { min-height: 3.8em; margin-top: 1.6rem; }
    .continue-btn {
        padding: 0.85rem 2rem;
        font-size: 0.88rem;
        letter-spacing: 0.28em;
    }
    .continue-btn:hover { letter-spacing: 0.30em; }

    .stage-gift .gift-container { margin-top: 0; }

    .finale-ornament { gap: 0.6rem; margin-bottom: 1.3rem; }
    .finale-divider  { margin: 1.6rem 0 1.1rem; }
    .birthday-primary   { font-size: clamp(1.4rem, 5.4vw, 2.2rem); }
    .birthday-secondary { font-size: clamp(1.8rem, 7.4vw, 2.8rem); letter-spacing: 0.06em; }
    .date-day     { font-size: clamp(0.98rem, 3.6vw, 1.25rem); letter-spacing: 0.18em; }
    .date-caption { font-size: clamp(1.2rem, 5.4vw, 1.75rem); }

    #continue-hint { bottom: 1.8rem; font-size: 0.72rem; letter-spacing: 0.22em; }

    .gift-caption { font-size: clamp(0.88rem, 3.2vw, 1.05rem); margin-top: 1.3rem; }
}

@media (max-width: 480px) {
    .stage-line-main { font-size: 1rem; }
    .stage-line-sub  { font-size: 0.92rem; }
    .stage { padding: 2.5rem 0.9rem; }
    .peony-tm, .peony-bm { display: none; }
    .blossom-e { display: none; }

    /* Küçük ekranlarda kalabalık olmasın — 4 kar tanesini sakla */
    .snowflake:nth-child(3n)   { display: none; }
}

@media (max-height: 700px) {
    .stage { justify-content: flex-start; padding-top: 3rem; padding-bottom: 3.5rem; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
    .fog, .particle,
    .light-halo, .light-core, .light-ring,
    body.theme-awakened .peony-wrap svg,
    body.theme-awakened .blossom-wrap svg,
    .snowflake, .shooting-star, .petal, .rune-heart,
    .gift-glow, .drag-arrow-l, .drag-arrow-r,
    .gift-container.interactive .gift-box,
    .gift-container.opened .bf-peony,
    .rainbow-arc .rainbow-arcs path,
    .rainbow-arc .rainbow-sparkles circle,
    body[data-progress="8"] .rainbow-arc,
    body[data-progress="11"] .aura-heart,
    .aura-prayer .prayer-glow, .prayer-ray,
    .aura-piece .piece-halo, .piece-half-l, .piece-half-r, .piece-spark,
    .aura-diamond .diamond-glow, .diamond-shape, .diamond-sparkle,
    .whisper-glow,
    .embrace-core, .embrace-ring {
        animation: none;
    }

    .stage, .peony-wrap, .peony-wrap svg,
    .blossom-wrap, .blossom-wrap svg,
    .fog, .particle, .vignette,
    .warm-overlay, .finale-overlay,
    .stage-line, #continue-hint,
    #magic-dust-canvas {
        transition-duration: 0.6s;
    }

    .stage-finale.active .birthday-message,
    .stage-finale.active .birth-date,
    .stage-finale.active .finale-ornament,
    .stage-finale.active .finale-divider {
        animation: birthday-appear 1s ease-out forwards;
    }
    .ornament-flourish, .ornament-diamond,
    body[data-progress="18"] .finale-overlay {
        animation: none;
    }

    .stage-line .word {
        animation-duration: 0.4s !important;
        animation-delay: 0s !important;
    }
    .continue-btn.visible { animation: none; }
}
