/* ===== Reset & Base ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --pink: #ff6b9d;
    --pink-soft: #ffb3c9;
    --purple: #9b5de5;
    --purple-dark: #3d1a4a;
    --bg-dark: #1a0a14;
    --bg-darker: #0d0509;
    --gold: #f4c542;
    --cream: #fff5f7;
    --text: #fce4ec;
    --curtain: #8b1a2b;
    --curtain-dark: #5c0f1c;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --safe-top: env(safe-area-inset-top, 0px);
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Quicksand', sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    min-height: 100dvh;
    overflow: hidden;
    touch-action: manipulation;
}

/* ===== Screens ===== */
.screen {
    position: fixed;
    inset: 0;
    display: none;
    flex-direction: column;
    z-index: 1;
}

.screen.active {
    display: flex;
}

/* ===== Login ===== */
.screen-login {
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    padding-top: calc(1.5rem + var(--safe-top));
    padding-bottom: calc(1.5rem + var(--safe-bottom));
}

.login-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(155, 93, 229, 0.25) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(255, 107, 157, 0.2) 0%, transparent 50%),
        var(--bg-dark);
}

.login-card {
    position: relative;
    width: 100%;
    max-width: 380px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    padding: 2.5rem 1.75rem;
    text-align: center;
    animation: fadeUp 0.8s ease;
}

.login-heart {
    font-size: 2.5rem;
    color: var(--pink);
    animation: heartbeat 1.5s ease infinite;
    margin-bottom: 0.5rem;
}

.login-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.75rem, 6vw, 2.25rem);
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
}

.login-hint {
    font-size: 0.95rem;
    opacity: 0.75;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.login-input {
    width: 100%;
    padding: 0.9rem 1.1rem;
    border: 2px solid rgba(255, 107, 157, 0.3);
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.3);
    color: var(--cream);
    font-family: inherit;
    font-size: 1rem;
    text-align: center;
    outline: none;
    transition: border-color 0.3s;
    -webkit-appearance: none;
}

.login-input:focus {
    border-color: var(--pink);
}

.login-input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

/* ===== Sweet Alert ===== */
.sweet-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    padding-top: calc(1.5rem + var(--safe-top));
    padding-bottom: calc(1.5rem + var(--safe-bottom));
    background: rgba(10, 5, 8, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.sweet-overlay.show {
    opacity: 1;
    visibility: visible;
}

.sweet-alert {
    width: 100%;
    max-width: 340px;
    background: linear-gradient(160deg, rgba(45, 20, 50, 0.97), rgba(26, 10, 20, 0.98));
    border: 1px solid rgba(255, 107, 157, 0.25);
    border-radius: 28px;
    padding: 2rem 1.5rem 1.5rem;
    text-align: center;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(255, 107, 157, 0.12);
    transform: scale(0.85) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sweet-overlay.show .sweet-alert {
    transform: scale(1) translateY(0);
}

.sweet-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: sweetBounce 0.6s ease 0.15s both;
}

.sweet-icon-oops {
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.25), rgba(155, 93, 229, 0.25));
    border: 2px solid rgba(255, 107, 157, 0.35);
    box-shadow: 0 0 24px rgba(255, 107, 157, 0.2);
}

.sweet-emoji {
    font-size: 2.25rem;
    line-height: 1;
    animation: sweetWiggle 0.5s ease 0.5s both;
}

.sweet-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--cream);
}

.sweet-text {
    font-size: 0.95rem;
    line-height: 1.55;
    opacity: 0.8;
    margin-bottom: 1.5rem;
    padding: 0 0.25rem;
}

.sweet-btn {
    width: 100%;
}

@keyframes sweetBounce {
    0% { transform: scale(0); opacity: 0; }
    60% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes sweetWiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-8deg); }
    75% { transform: rotate(8deg); }
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 1.75rem;
    border: none;
    border-radius: 50px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.3s;
    -webkit-tap-highlight-color: transparent;
    min-height: 48px;
}

.btn:active {
    transform: scale(0.97);
}

.btn-primary {
    background: linear-gradient(135deg, var(--pink), var(--purple));
    color: white;
    box-shadow: 0 4px 20px rgba(255, 107, 157, 0.35);
}

.btn-primary:hover {
    box-shadow: 0 6px 28px rgba(255, 107, 157, 0.5);
}

.btn-glow {
    animation: glowPulse 2s ease infinite;
}

/* ===== Intro Scene ===== */
.screen-intro {
    overflow: hidden;
}

.intro-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, #1a0a2e 0%, #2d1b4e 40%, #1a0a14 100%);
}

.stars {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(1px 1px at 10% 20%, rgba(255,255,255,0.6), transparent),
        radial-gradient(1px 1px at 30% 60%, rgba(255,255,255,0.4), transparent),
        radial-gradient(1.5px 1.5px at 50% 15%, rgba(255,255,255,0.5), transparent),
        radial-gradient(1px 1px at 70% 45%, rgba(255,255,255,0.3), transparent),
        radial-gradient(1px 1px at 85% 25%, rgba(255,255,255,0.5), transparent),
        radial-gradient(1px 1px at 20% 80%, rgba(255,255,255,0.3), transparent),
        radial-gradient(1.5px 1.5px at 60% 75%, rgba(255,255,255,0.4), transparent),
        radial-gradient(1px 1px at 90% 70%, rgba(255,255,255,0.35), transparent);
    animation: twinkle 4s ease infinite alternate;
}

.intro-ground {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30%;
    background: linear-gradient(180deg, transparent, rgba(61, 26, 74, 0.6));
    border-top: 1px solid rgba(155, 93, 229, 0.2);
}

/* Koyu atmosfer + uçuşan kalp/çiçekler */
.intro-particles {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    left: var(--x);
    top: var(--y);
    font-size: clamp(0.75rem, 2.2vw, 1.1rem);
    opacity: 0;
    filter: saturate(0.45) brightness(0.75);
    animation: particleDrift var(--dur, 10s) ease-in-out var(--delay, 0s) infinite;
    will-change: transform, opacity;
}

.intro-mood-filter {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 50% 40%, transparent 20%, rgba(0, 0, 0, 0.45) 100%),
        rgba(0, 0, 0, 0.22);
}

.intro-stage {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: calc(1rem + var(--safe-top)) 1.25rem 1rem;
    z-index: 2;
}

@media (min-width: 600px) {
    .intro-stage {
        flex-direction: row;
        gap: 3rem;
        padding: 2rem 3rem;
    }
}

/* ===== Tavşan Karakter ===== */
.robot-scene {
    flex-shrink: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    min-height: 210px;
    overflow: visible;
}

.robot-walk-in {
    animation: robotWalkIn 3s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

.robot-walk-in.arrived .bunny {
    animation: robotFloat 3s ease-in-out infinite;
}

.robot-walk-in.arrived .bunny-ear-left {
    animation: earWiggleLeft 3s ease-in-out infinite;
}

.robot-walk-in.arrived .bunny-ear-right {
    animation: earWiggleRight 3s ease-in-out infinite 0.4s;
}

.bunny {
    position: relative;
    width: 130px;
    height: 195px;
    --fur: #f6ebe0;
    --fur-shadow: #e5d4c4;
    --fur-deep: #d9c4ad;
}

.robot-walk-in.walking .bunny {
    animation: robotBob 0.42s ease-in-out infinite;
}

.robot-walk-in.walking .robot-leg-left {
    animation: robotLegStep 0.42s ease-in-out infinite;
    transform-origin: top center;
}

.robot-walk-in.walking .robot-leg-right {
    animation: robotLegStep 0.42s ease-in-out infinite 0.21s;
    transform-origin: top center;
}

.robot-walk-in.walking .robot-arm-left {
    animation: robotArmSwing 0.42s ease-in-out infinite 0.21s;
}

.robot-walk-in.walking .robot-arm-right {
    animation: robotArmSwing 0.42s ease-in-out infinite;
}

@media (min-width: 600px) {
    .bunny {
        width: 150px;
        height: 220px;
    }
}

/* Kulaklar */
.bunny-ear {
    position: absolute;
    top: 0;
    width: 28px;
    height: 62px;
    background: linear-gradient(180deg, var(--fur), var(--fur-shadow));
    border-radius: 50% 50% 45% 45%;
    box-shadow: inset -2px -4px 8px rgba(0, 0, 0, 0.06);
    z-index: 1;
}

.bunny-ear-left {
    left: 22px;
    transform: rotate(-8deg);
}

.bunny-ear-right {
    right: 22px;
    transform: rotate(8deg);
}

.bunny-ear-inner {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 14px;
    height: 42px;
    background: linear-gradient(180deg, #ffc8d8, #ffb3c9);
    border-radius: 50%;
    opacity: 0.85;
}

/* Kafa */
.bunny-head {
    position: absolute;
    top: 38px;
    left: 50%;
    transform: translateX(-50%);
    width: 96px;
    height: 88px;
    background: radial-gradient(ellipse at 50% 35%, var(--fur) 0%, var(--fur-shadow) 100%);
    border-radius: 48% 48% 46% 46%;
    box-shadow:
        inset 0 -6px 12px rgba(0, 0, 0, 0.05),
        0 4px 12px rgba(0, 0, 0, 0.08);
    z-index: 2;
}

.bunny-eye {
    position: absolute;
    top: 30px;
    width: 20px;
    height: 24px;
    background: #2c2c2c;
    border-radius: 50%;
    overflow: hidden;
}

.bunny-eye-left { left: 20px; }
.bunny-eye-right { right: 20px; }

.bunny-pupil {
    position: absolute;
    bottom: 3px;
    left: 50%;
    transform: translateX(-50%);
    width: 11px;
    height: 13px;
    background: #1a1a1a;
    border-radius: 50%;
    animation: lookAround 4s ease infinite;
}

.bunny-sparkle {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 5px;
    height: 5px;
    background: white;
    border-radius: 50%;
    opacity: 0.9;
}

.bunny-blush {
    position: absolute;
    top: 50px;
    width: 16px;
    height: 9px;
    background: rgba(255, 140, 170, 0.45);
    border-radius: 50%;
}

.bunny-blush-left { left: 10px; }
.bunny-blush-right { right: 10px; }

.bunny-nose {
    position: absolute;
    top: 56px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 8px;
    background: #ff9eb5;
    border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
    z-index: 3;
}

.bunny-mouth {
    position: absolute;
    top: 62px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 14px;
}

.bunny-mouth-line {
    position: absolute;
    top: 0;
    width: 14px;
    height: 10px;
    border: 2px solid #c9a88e;
    border-top: none;
    border-radius: 0 0 14px 14px;
}

.bunny-mouth-left {
    left: 0;
    transform: rotate(8deg);
    transform-origin: top right;
}

.bunny-mouth-right {
    right: 0;
    transform: rotate(-8deg);
    transform-origin: top left;
}

/* Gövde */
.bunny-body {
    position: absolute;
    top: 108px;
    left: 50%;
    transform: translateX(-50%);
    width: 72px;
    height: 68px;
    background: radial-gradient(ellipse at 50% 30%, var(--fur) 0%, var(--fur-deep) 100%);
    border-radius: 45% 45% 50% 50%;
    box-shadow: inset 0 -4px 10px rgba(0, 0, 0, 0.06);
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bunny-belly {
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: 42px;
    height: 38px;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 50%;
}

.bunny-heart {
    position: relative;
    z-index: 1;
    color: var(--pink);
    font-size: 1.35rem;
    animation: heartbeat 1.2s ease infinite;
    text-shadow: 0 0 8px rgba(255, 107, 157, 0.4);
}

/* Patiler */
.bunny-paw {
    position: absolute;
    top: 118px;
    width: 22px;
    height: 28px;
    background: linear-gradient(180deg, var(--fur), var(--fur-shadow));
    border-radius: 50% 50% 45% 45%;
    box-shadow: inset 0 -2px 4px rgba(0, 0, 0, 0.06);
    z-index: 3;
}

.bunny-paw::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 14px;
    height: 8px;
    background: rgba(255, 180, 195, 0.5);
    border-radius: 50%;
}

.robot-arm-left {
    left: 4px;
    transform: rotate(18deg);
    transform-origin: top center;
    animation: waveLeft 2.2s ease infinite;
}

.robot-arm-right {
    right: 4px;
    transform: rotate(-18deg);
    transform-origin: top center;
    animation: waveRight 2.2s ease infinite 0.5s;
}

/* Ayaklar */
.bunny-foot {
    position: absolute;
    bottom: 2px;
    width: 26px;
    height: 18px;
    background: linear-gradient(180deg, var(--fur-shadow), var(--fur-deep));
    border-radius: 50% 50% 45% 45%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 0;
}

.bunny-foot::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 18px;
    height: 6px;
    background: rgba(255, 180, 195, 0.45);
    border-radius: 50%;
}

.robot-leg-left { left: 28px; }
.robot-leg-right { right: 28px; }

/* Kuyruk */
.bunny-tail {
    position: absolute;
    bottom: 28px;
    right: 8px;
    width: 22px;
    height: 22px;
    background: radial-gradient(circle at 35% 35%, #fff, var(--fur));
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    z-index: 0;
    animation: tailWiggle 2.5s ease-in-out infinite;
}

/* ===== Typewriter ===== */
.intro-text-area {
    width: 100%;
    max-width: 420px;
    padding: 0 0.5rem;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.intro-text-area.visible {
    opacity: 1;
    transform: translateY(0);
}

.typewriter-box {
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 1.25rem 1.5rem;
    min-height: 100px;
    display: flex;
    align-items: flex-start;
}

.typewriter-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.15rem, 4.5vw, 1.5rem);
    line-height: 1.6;
    font-style: italic;
    flex: 1;
}

.typewriter-cursor {
    color: var(--pink);
    font-weight: 300;
    animation: blink 0.8s step-end infinite;
    margin-left: 2px;
}

.typewriter-cursor.hidden {
    opacity: 0;
}

/* ===== Intro Controls ===== */
.intro-controls {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem calc(1.5rem + var(--safe-bottom));
    animation: fadeUp 0.6s ease;
}

.intro-controls.hidden {
    display: none;
}

.music-toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    padding: 0.5rem;
}

.music-toggle input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.music-toggle-track {
    position: relative;
    width: 48px;
    height: 28px;
    background: rgba(255,255,255,0.15);
    border-radius: 14px;
    transition: background 0.3s;
    flex-shrink: 0;
}

.music-toggle input:checked + .music-toggle-track {
    background: var(--pink);
}

.music-toggle-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.music-toggle input:checked + .music-toggle-track .music-toggle-thumb {
    transform: translateX(20px);
}

.music-toggle-label {
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    opacity: 0.85;
}

/* ===== Curtain Scene ===== */
.screen-curtain {
    z-index: 10;
    pointer-events: none;
}

.screen-curtain.active {
    pointer-events: auto;
}

.curtain-overlay {
    position: absolute;
    inset: 0;
    background: black;
    opacity: 0;
    transition: opacity 1.2s ease;
    z-index: 1;
}

.curtain-overlay.dark {
    opacity: 1;
}

.curtains {
    position: absolute;
    inset: 0;
    display: flex;
    z-index: 2;
}

.curtain {
    flex: 1;
    background:
        repeating-linear-gradient(
            90deg,
            var(--curtain) 0px,
            var(--curtain-dark) 8px,
            var(--curtain) 16px
        );
    box-shadow: inset 0 0 40px rgba(0,0,0,0.5);
    transition: transform 2.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.curtain-left {
    transform: translateX(0);
    border-right: 2px solid rgba(0,0,0,0.3);
}

.curtain-right {
    transform: translateX(0);
    border-left: 2px solid rgba(0,0,0,0.3);
}

.curtain-left.open {
    transform: translateX(-100%);
}

.curtain-right.open {
    transform: translateX(100%);
}

.curtain-valance {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: linear-gradient(180deg, #6b1220, var(--curtain));
    z-index: 3;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.curtain-valance::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    right: 0;
    height: 15px;
    background: repeating-linear-gradient(
        90deg,
        var(--curtain) 0px,
        var(--curtain-dark) 20px,
        var(--curtain) 40px
    );
    border-radius: 0 0 50% 50% / 0 0 100% 100%;
}

/* ===== Cinema ===== */
.screen-cinema {
    z-index: 5;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.cinema-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(155, 93, 229, 0.25) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(255, 107, 157, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(61, 26, 74, 0.15) 0%, transparent 70%),
        linear-gradient(180deg, #1a0a2e 0%, #2d1b4e 40%, #1a0a14 100%);
    z-index: 0;
    overflow: hidden;
}

.cinema-particles {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.cinema-mood-filter {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 50% 40%, transparent 25%, rgba(0, 0, 0, 0.35) 100%),
        rgba(0, 0, 0, 0.12);
}

.cinema-wrapper {
    position: relative;
    z-index: 3;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: calc(1rem + var(--safe-top)) 1rem calc(1rem + var(--safe-bottom));
    gap: 1.25rem;
}

.cinema-frame {
    width: 100%;
    max-width: 700px;
    background: #111;
    border: 4px solid #333;
    border-radius: 4px;
    box-shadow:
        0 0 0 8px #1a1a1a,
        0 0 0 12px #2a2a2a,
        0 20px 60px rgba(0,0,0,0.8),
        inset 0 0 80px rgba(0,0,0,0.5);
    overflow: hidden;
    animation: frameReveal 1s ease 0.3s both;
}

.film-holes {
    position: relative;
    height: 22px;
    background: #0e0e0e;
    overflow: hidden;
    border-color: #1f1f1f;
    border-style: solid;
    border-width: 0;
}

.film-holes-top {
    border-bottom-width: 1px;
}

.film-holes-bottom {
    border-top-width: 1px;
}

.film-strip-track {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 200%;
    display: flex;
    background: #121212;
    animation: filmStripScroll 1.1s linear infinite;
    will-change: transform;
}

.film-strip-track::before,
.film-strip-track::after {
    content: '';
    flex: 1;
    height: 100%;
    background-image: repeating-linear-gradient(
        90deg,
        #121212 0px,
        #121212 6px,
        #2e2e2e 6px,
        #3d3d3d 7px,
        #060606 7px,
        #060606 15px,
        #3d3d3d 15px,
        #2e2e2e 16px,
        #121212 16px,
        #121212 22px
    );
    background-size: 22px 100%;
}

.film-holes-bottom .film-strip-track {
    animation-direction: reverse;
}

.cinema-screen {
    position: relative;
    aspect-ratio: 4 / 3;
    background: #000;
    overflow: hidden;
}

.cinema-screen::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
    background: repeating-linear-gradient(
        90deg,
        transparent 0px,
        transparent 3px,
        rgba(255, 255, 255, 0.012) 3px,
        rgba(255, 255, 255, 0.012) 4px
    );
    animation: filmProjectorDrift 1.1s linear infinite;
}

.cinema-screen::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.35);
}

@media (max-width: 400px) {
    .cinema-screen {
        aspect-ratio: 3 / 4;
    }
}

.slides-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
    display: flex;
    flex-direction: column;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide-image {
    flex: 1;
    background-size: cover;
    background-position: center;
    filter: grayscale(100%) contrast(1.1);
    position: relative;
}

.slide-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,0.4) 100%),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(255,255,255,0.02) 2px,
            rgba(255,255,255,0.02) 4px
        );
    pointer-events: none;
}

.slide-image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    filter: none;
    gap: 0.5rem;
    font-size: 2.5rem;
}

.slide-image-placeholder small {
    font-size: 0.75rem;
    opacity: 0.5;
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 1.25rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    text-align: center;
}

.slide-caption h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.25rem, 5vw, 1.75rem);
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: var(--cream);
}

.slide-caption p {
    font-size: clamp(0.85rem, 3.5vw, 1rem);
    opacity: 0.8;
    line-height: 1.5;
}

/* Cinema Nav */
.cinema-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    max-width: 700px;
    justify-content: center;
}

.cinema-nav-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.08);
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, border-color 0.2s;
    -webkit-tap-highlight-color: transparent;
    flex-shrink: 0;
}

.cinema-nav-btn:active {
    background: rgba(255, 107, 157, 0.3);
    border-color: var(--pink);
}

.cinema-dots {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.cinema-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
    -webkit-tap-highlight-color: transparent;
}

.cinema-dot.active {
    background: var(--pink);
    transform: scale(1.2);
}

/* Kapanış — Anı montajı */
.closing-memory-label {
    position: absolute;
    top: calc(1.5rem + var(--safe-top));
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    z-index: 8;
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.1rem, 4vw, 1.5rem);
    font-style: italic;
    color: var(--pink-soft);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease, transform 0.8s ease;
    text-shadow: 0 0 20px rgba(255, 107, 157, 0.4);
}

.closing-memory-label.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.screen-cinema.is-closing .cinema-nav,
.screen-cinema.is-closing .music-control {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
}

.cinema-wrapper.fading-out {
    opacity: 0;
    transform: scale(0.94);
    filter: blur(4px);
    transition: opacity 2.8s ease, transform 2.8s ease, filter 2.8s ease;
}

.slide.memory-flash {
    opacity: 0;
    z-index: 5;
    animation: memoryFlash 1s ease forwards;
}

.slide.memory-flash .slide-caption {
    animation: memoryCaption 1s ease forwards;
}

@keyframes memoryFlash {
    0% {
        opacity: 0;
        transform: scale(1.12);
        filter: grayscale(30%) brightness(1.4);
    }
    12% {
        opacity: 1;
        transform: scale(1.02);
        filter: grayscale(50%) brightness(1.15);
    }
    75% {
        opacity: 1;
        transform: scale(1);
        filter: grayscale(60%) contrast(1.05);
    }
    100% {
        opacity: 0;
        transform: scale(0.97);
        filter: grayscale(80%) brightness(0.85);
    }
}

@keyframes memoryCaption {
    0%, 100% { opacity: 0.6; }
    20%, 60% { opacity: 1; }
}

/* Sahne 4: Finale — Partikül Kalp */
.screen-finale {
    z-index: 15;
    overflow: hidden;
}

.finale-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(155, 93, 229, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(255, 107, 157, 0.25) 0%, transparent 50%),
        linear-gradient(180deg, #1a0a2e 0%, #2d1b4e 40%, #1a0a14 100%);
    z-index: 0;
}

.heart-canvas {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.finale-message {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 1.25rem 1.5rem calc(2.5rem + var(--safe-bottom));
    text-align: center;
    opacity: 0;
    transform: translateY(16px);
    pointer-events: none;
    transition: opacity 1.2s ease, transform 1.2s ease;
}

.finale-message.visible {
    opacity: 1;
    transform: translateY(0);
}

.finale-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.75rem, 6vw, 2.5rem);
    font-weight: 600;
    color: var(--cream);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 30px rgba(255, 107, 157, 0.5);
}

.finale-text {
    font-size: clamp(0.95rem, 3.5vw, 1.15rem);
    opacity: 0.85;
    line-height: 1.6;
    max-width: 320px;
}

/* Music Control */
.music-control {
    position: fixed;
    bottom: calc(1.25rem + var(--safe-bottom));
    right: 1rem;
    z-index: 20;
    border: none;
    padding: 0;
    background: transparent;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    animation: fadeUp 0.5s ease 1s both;
}

.music-control-glow {
    position: absolute;
    inset: -4px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(255, 107, 157, 0.35) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.music-control.is-playing .music-control-glow {
    opacity: 1;
    animation: musicGlowPulse 2.5s ease-in-out infinite;
}

.music-control-inner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.65rem 0.9rem 0.65rem 0.75rem;
    border-radius: 999px;
    background: rgba(18, 10, 16, 0.72);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    color: var(--cream);
    transition:
        transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
        border-color 0.3s ease,
        box-shadow 0.3s ease,
        background 0.3s ease;
}

.music-control:active .music-control-inner {
    transform: scale(0.96);
}

.music-control.is-playing .music-control-inner {
    border-color: rgba(255, 107, 157, 0.35);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.45),
        0 0 20px rgba(255, 107, 157, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.music-control.is-muted .music-control-inner {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(12, 12, 14, 0.78);
    color: rgba(255, 255, 255, 0.55);
}

.music-control-icon {
    position: relative;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.music-svg {
    position: absolute;
    width: 22px;
    height: 22px;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.music-svg-on {
    opacity: 1;
    transform: scale(1);
    color: var(--pink-soft);
}

.music-svg-off {
    opacity: 0;
    transform: scale(0.8);
}

.music-control.is-muted .music-svg-on {
    opacity: 0;
    transform: scale(0.8);
}

.music-control.is-muted .music-svg-off {
    opacity: 1;
    transform: scale(1);
}

.music-bars {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 16px;
    padding-bottom: 1px;
}

.music-bar {
    width: 3px;
    height: 6px;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--pink-soft), var(--purple));
    transform-origin: bottom center;
    transition: height 0.3s ease, opacity 0.3s ease;
}

.music-control.is-playing .music-bar:nth-child(1) { animation: musicBar 0.9s ease-in-out infinite; }
.music-control.is-playing .music-bar:nth-child(2) { animation: musicBar 0.9s ease-in-out infinite 0.15s; }
.music-control.is-playing .music-bar:nth-child(3) { animation: musicBar 0.9s ease-in-out infinite 0.3s; }
.music-control.is-playing .music-bar:nth-child(4) { animation: musicBar 0.9s ease-in-out infinite 0.45s; }

.music-control.is-muted .music-bar {
    height: 4px;
    opacity: 0.25;
    animation: none;
}

.music-control-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0.75;
    min-width: 2.2rem;
    text-align: left;
    transition: opacity 0.3s ease;
}

.music-control.is-playing .music-control-label {
    opacity: 0.9;
    color: var(--pink-soft);
}

.music-control.is-muted .music-control-label {
    opacity: 0.5;
}

@keyframes musicBar {
    0%, 100% { height: 5px; }
    50% { height: 15px; }
}

@keyframes musicGlowPulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

/* Hidden YouTube */
.youtube-hidden {
    position: fixed;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

/* ===== Animations ===== */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
}

@keyframes blink {
    50% { opacity: 0; }
}

@keyframes twinkle {
    from { opacity: 0.6; }
    to { opacity: 1; }
}

@keyframes robotWalkIn {
    0% {
        transform: translateX(calc(-100vw - 80px));
        opacity: 0;
    }
    12% { opacity: 1; }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes robotBob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes robotLegStep {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(-12deg); }
}

@keyframes robotArmSwing {
    0%, 100% { transform: rotate(-15deg); }
    50% { transform: rotate(12deg); }
}

@keyframes particleDrift {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(0.7);
        opacity: 0;
    }
    15% { opacity: var(--peak, 0.22); }
    50% {
        transform: translate(18px, -35px) rotate(12deg) scale(1);
        opacity: var(--peak, 0.22);
    }
    85% { opacity: calc(var(--peak, 0.22) * 0.6); }
    100% {
        transform: translate(-12px, -70px) rotate(-8deg) scale(0.85);
        opacity: 0;
    }
}

@keyframes robotFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes earWiggleLeft {
    0%, 100% { transform: rotate(-8deg); }
    50% { transform: rotate(-14deg); }
}

@keyframes earWiggleRight {
    0%, 100% { transform: rotate(8deg); }
    50% { transform: rotate(14deg); }
}

@keyframes tailWiggle {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

@keyframes lookAround {
    0%, 100% { transform: translateX(-50%); }
    25% { transform: translateX(-70%); }
    75% { transform: translateX(-30%); }
}

@keyframes waveLeft {
    0%, 100% { transform: rotate(15deg); }
    50% { transform: rotate(30deg); }
}

@keyframes waveRight {
    0%, 100% { transform: rotate(-15deg); }
    50% { transform: rotate(-30deg); }
}

@keyframes glowPulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(255, 107, 157, 0.35); }
    50% { box-shadow: 0 4px 35px rgba(155, 93, 229, 0.5); }
}

@keyframes frameReveal {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes filmStripScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@keyframes filmProjectorDrift {
    from { background-position: 0 0; }
    to { background-position: 22px 0; }
}

@media (prefers-reduced-motion: reduce) {
    .film-strip-track,
    .cinema-screen::before,
    .music-control.is-playing .music-bar,
    .music-control.is-playing .music-control-glow,
    .cinema-particles .particle,
    .slide.memory-flash {
        animation: none;
        opacity: 0.15;
    }

    .cinema-wrapper.fading-out {
        transition-duration: 0.5s;
    }
}

/* Swipe hint on mobile */
@media (max-width: 600px) {
    .cinema-screen {
        touch-action: pan-y;
    }
}

/* Landscape mobile adjustments */
@media (max-height: 500px) and (orientation: landscape) {
    .intro-stage {
        flex-direction: row;
        gap: 1.5rem;
        padding: 0.5rem 1.5rem;
    }

    .bunny {
        width: 100px;
        height: 155px;
    }

    .bunny-head { width: 76px; height: 72px; top: 30px; }
    .bunny-body { width: 58px; height: 54px; top: 88px; }
    .bunny-ear { height: 48px; width: 22px; }

    .typewriter-box {
        min-height: 70px;
        padding: 0.75rem 1rem;
    }

    .intro-controls {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        padding: 0.5rem 1rem calc(0.75rem + var(--safe-bottom));
    }
}
