/* ============================================
   GENEL STILLER VE RESET
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
    background: linear-gradient(135deg, #f06292 0%, #c2185b 100%);
    min-height: 100vh;
}

/* ============================================
   İLERLEME ÇUBUĞU
   ============================================ */
.progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 1000;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #ff80ab, #ff4081, #c2185b);
    width: 0%;
    transition: width 0.5s ease;
    box-shadow: 0 0 8px rgba(255, 64, 129, 0.6);
}

.progress-text {
    position: fixed;
    top: 15px;
    right: 20px;
    color: white;
    font-weight: bold;
    font-size: 14px;
    z-index: 1001;
    background: rgba(0, 0, 0, 0.3);
    padding: 5px 15px;
    border-radius: 20px;
}

/* Ses Kontrol Butonu */
.sound-toggle {
    position: fixed;
    top: 15px;
    left: 20px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 1.2em;
    cursor: pointer;
    z-index: 1001;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sound-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.sound-toggle.muted {
    color: rgba(255, 255, 255, 0.5);
}

/* Balonlar Container */
.balloons-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

/* ============================================
   SECTION YAPISI
   ============================================ */
.section {
    min-height: 100vh;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    position: relative;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.section.active {
    display: flex;
    flex-direction: column;
    opacity: 1;
    animation: fadeIn 0.8s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   1. GİRİŞ EKRANI - GİZEMLİ KAPI
   ============================================ */
#entrance {
    background: linear-gradient(135deg, #1a0a14 0%, #2d0a1e 100%);
    overflow: hidden;
}

.stars {
    position: absolute;
    width: 100%;
    height: 100%;
    background: transparent;
}

.stars::before,
.stars::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    box-shadow:
        100px 200px white, 200px 100px white, 300px 300px white,
        400px 150px white, 500px 250px white, 600px 100px white,
        150px 350px white, 250px 450px white, 350px 150px white,
        450px 350px white, 550px 450px white, 650px 250px white;
    animation: twinkle 3s infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Kayan Yıldızlar */
.shooting-star {
    position: absolute;
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 6px 2px rgba(255, 255, 255, 0.6);
    animation: shooting 3s linear infinite;
}

.shooting-star::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100px;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.8), transparent);
}

@keyframes shooting {
    0% {
        transform: translateX(0) translateY(0);
        opacity: 1;
    }
    70% {
        opacity: 1;
    }
    100% {
        transform: translateX(-500px) translateY(300px);
        opacity: 0;
    }
}

.shooting-star:nth-child(1) { top: 10%; left: 80%; animation-delay: 0s; }
.shooting-star:nth-child(2) { top: 20%; left: 90%; animation-delay: 1.5s; }
.shooting-star:nth-child(3) { top: 5%; left: 70%; animation-delay: 3s; }

/* Balon Animasyonu */
.balloon {
    position: fixed;
    width: 30px;
    height: 40px;
    border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
    animation: floatBalloon 8s ease-in-out infinite;
    z-index: 1;
}

.balloon::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 20px;
    background: rgba(255, 255, 255, 0.5);
}

@keyframes floatBalloon {
    0%, 100% {
        transform: translateY(0) rotate(-5deg);
    }
    50% {
        transform: translateY(-30px) rotate(5deg);
    }
}

/* Parıltı Efekti */
.sparkle {
    position: absolute;
    width: 10px;
    height: 10px;
    animation: sparkle 2s ease-in-out infinite;
}

.sparkle::before,
.sparkle::after {
    content: '';
    position: absolute;
    background: #FFD700;
}

.sparkle::before {
    width: 100%;
    height: 2px;
    top: 50%;
    transform: translateY(-50%);
}

.sparkle::after {
    width: 2px;
    height: 100%;
    left: 50%;
    transform: translateX(-50%);
}

@keyframes sparkle {
    0%, 100% { transform: scale(0) rotate(0deg); opacity: 0; }
    50% { transform: scale(1) rotate(90deg); opacity: 1; }
}

.door-container {
    text-align: center;
    z-index: 10;
}

.door {
    width: 200px;
    height: 300px;
    background: linear-gradient(135deg, #8B4513 0%, #654321 100%);
    border-radius: 10px 10px 0 0;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
    box-shadow: 0 0 50px rgba(255, 215, 0, 0.5);
    margin: 0 auto 30px;
}

.door:hover {
    transform: scale(1.05);
    box-shadow: 0 0 80px rgba(255, 215, 0, 0.8);
}

.door-light {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 80px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.8) 0%, transparent 70%);
    animation: glow 2s infinite;
}

@keyframes glow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.door-handle {
    position: absolute;
    right: 20px;
    top: 50%;
    width: 15px;
    height: 15px;
    background: gold;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.mystery-text {
    color: white;
    font-size: 2em;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.click-hint {
    color: rgba(255, 255, 255, 0.6);
    margin-top: 10px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* ============================================
   2. PAROLA BÖLÜMÜ
   ============================================ */
#password {
    background: linear-gradient(135deg, #f06292 0%, #c2185b 100%);
}

.password-container {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 60px 40px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.question {
    color: white;
    font-size: 1.8em;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

#passwordInput {
    flex: 1;
    padding: 15px 20px;
    font-size: 1.2em;
    border: none;
    border-radius: 10px;
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#submitPassword {
    padding: 15px 40px;
    font-size: 1.2em;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    transition: transform 0.2s ease;
}

#submitPassword:hover {
    transform: scale(1.05);
}

.hint {
    color: #FFD700;
    font-size: 1.1em;
    min-height: 30px;
}

#confettiCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
}

/* ============================================
   3. ANA MENÜ
   ============================================ */
#mainMenu {
    background: linear-gradient(135deg, #ff758c 0%, #ff4081 100%);
}

.welcome-title {
    color: white;
    font-size: 3em;
    text-align: center;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
    animation: bounce 1s ease;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.welcome-subtitle {
    color: white;
    font-size: 1.5em;
    text-align: center;
    margin: 20px 0 40px;
}

.start-journey-btn {
    padding: 20px 60px;
    font-size: 1.5em;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.start-journey-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #FFE066, #FFB347);
}

.start-journey-btn:active {
    transform: translateY(-2px);
}

/* Glow Pulse Efekti */
@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    }
    50% {
        box-shadow: 0 0 40px rgba(255, 215, 0, 0.8), 0 0 60px rgba(255, 215, 0, 0.4);
    }
}

.start-journey-btn {
    animation: glowPulse 2s ease-in-out infinite;
}

/* ============================================
   4. ZAMAN TÜNELİ
   ============================================ */
#timeline {
    background: linear-gradient(135deg, #fce4ec 0%, #ffb6c1 100%);
}

.section-title {
    color: #333;
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
}

.timeline-container {
    width: 100%;
    max-width: 800px;
    padding: 40px 20px;
}

.timeline-track {
    display: flex;
    flex-direction: column;
    gap: 60px;
    padding: 20px;
    position: relative;
}

.timeline-track::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #f06292, #c2185b);
    transform: translateX(-50%);
    z-index: 0;
}

.timeline-item {
    position: relative;
    width: 100%;
}

.timeline-content {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
}

.timeline-dot {
    width: 30px;
    height: 30px;
    background: #FFD700;
    border-radius: 50%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
    transition: transform 0.3s ease;
}

.timeline-item:hover .timeline-dot {
    transform: translateX(-50%) scale(1.3);
}

.timeline-card {
    width: calc(50% - 50px);
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    margin-left: auto;
    animation: slideInRight 0.5s ease;
    min-height: auto;
}

.timeline-item:nth-child(even) .timeline-card {
    margin-left: 0;
    margin-right: auto;
    animation: slideInLeft 0.5s ease;
}

@media (max-width: 768px) {
    .timeline-track::before {
        left: 20px;
    }

    .timeline-card {
        width: calc(100% - 60px);
        margin-left: 60px !important;
        margin-right: 0 !important;
    }

    .timeline-dot {
        left: 20px;
        transform: translateX(0);
    }

    .timeline-item:hover .timeline-dot {
        transform: scale(1.3);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.timeline-card h3 {
    color: #c2185b;
    margin-bottom: 10px;
}

.timeline-card p {
    color: #666;
    line-height: 1.6;
}

/* ============================================
   5. ÇARKIFELEK
   ============================================ */
#wheel {
    background: linear-gradient(135deg, #fce4ec 0%, #f8bbd0 100%);
}

.wheel-container {
    position: relative;
    margin: 40px 0;
}

#wheelCanvas {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
}

.spin-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: white;
    font-size: 1.2em;
    font-weight: bold;
    border: 5px solid white;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease;
    z-index: 10;
}

.spin-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.spin-btn:active {
    transform: translate(-50%, -50%) scale(0.95);
}

.wheel-result {
    margin-top: 30px;
    padding: 20px;
    background: white;
    border-radius: 15px;
    text-align: center;
    font-size: 1.3em;
    color: #c2185b;
    min-height: 60px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* ============================================
   6. DİLEK KARTLARI
   ============================================ */
#wishTree {
    background: linear-gradient(135deg, #fce4ec 0%, #f48fb1 100%);
}

.section-subtitle {
    color: #555;
    font-size: 1.2em;
    text-align: center;
    margin-bottom: 40px;
}

.wishes-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 30px;
    max-width: 700px;
    width: 100%;
    margin: 0 auto 40px;
    padding: 20px;
}

.wish-card {
    background: white;
    border-radius: 20px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.wish-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.wish-card:hover::before {
    left: 100%;
}

.wish-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.wish-icon {
    font-size: 3.5em;
    margin-bottom: 15px;
    animation: bounce 2s infinite;
}

.wish-icon i {
    background: linear-gradient(135deg, #ff4081, #c2185b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 6px rgba(194, 24, 91, 0.35));
}

.wish-card:nth-child(1) .wish-icon i { background: linear-gradient(135deg, #ff4081, #e91e63); -webkit-background-clip: text; background-clip: text; }
.wish-card:nth-child(2) .wish-icon i { background: linear-gradient(135deg, #f06292, #ff80ab); -webkit-background-clip: text; background-clip: text; }
.wish-card:nth-child(3) .wish-icon i { background: linear-gradient(135deg, #c2185b, #ff4081); -webkit-background-clip: text; background-clip: text; }
.wish-card:nth-child(4) .wish-icon i { background: linear-gradient(135deg, #ff80ab, #f48fb1); -webkit-background-clip: text; background-clip: text; }
.wish-card:nth-child(5) .wish-icon i { background: linear-gradient(135deg, #e91e63, #f06292); -webkit-background-clip: text; background-clip: text; }
.wish-card:nth-child(6) .wish-icon i { background: linear-gradient(135deg, #ff4081, #c2185b); -webkit-background-clip: text; background-clip: text; }

.wish-card h3 {
    color: #c2185b;
    font-size: 1.2em;
    margin: 0;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@media (max-width: 480px) {
    .wishes-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
        padding: 8px;
        max-width: 100%;
    }

    .wish-card {
        padding: 20px 8px;
        min-height: 110px;
    }

    .wish-icon {
        font-size: 2.2em;
    }
}

.wish-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.wish-modal.active {
    display: flex;
}

.wish-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    max-width: 500px;
    position: relative;
    animation: popIn 0.3s ease;
}

@keyframes popIn {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

.close-wish {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 2em;
    cursor: pointer;
    color: #999;
}

#wishText {
    font-size: 1.3em;
    color: #c2185b;
    text-align: center;
    line-height: 1.8;
}

/* ============================================
   7. MİNİ OYUN
   ============================================ */
#game {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
}

.game-subtitle {
    color: #555;
    font-size: 1.2em;
    text-align: center;
    margin-bottom: 20px;
}

.game-stats {
    font-size: 1.5em;
    color: #c2185b;
    font-weight: bold;
    margin-bottom: 20px;
}

.game-container {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
}

#gameCanvas {
    max-width: 100%;
    height: auto;
    background: linear-gradient(180deg, #87CEEB 0%, #E0F6FF 100%);
    border-radius: 10px;
}

.start-game-btn {
    padding: 15px 40px;
    font-size: 1.2em;
    background: linear-gradient(135deg, #f06292, #c2185b);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    transition: transform 0.2s ease;
}

.start-game-btn:hover {
    transform: scale(1.05);
}

/* ============================================
   8. MÜZİK KUTUSU
   ============================================ */
#musicBox {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
}

.music-box-container {
    text-align: center;
}

.music-box {
    width: 300px;
    height: 300px;
    margin: 0 auto 40px;
    position: relative;
    cursor: pointer;
}

.box-lid {
    width: 100%;
    height: 40%;
    background: linear-gradient(135deg, #8B4513 0%, #654321 100%);
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: bold;
    transition: transform 0.5s ease;
    transform-origin: bottom;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.music-box.open .box-lid {
    transform: rotateX(-120deg);
}

.box-base {
    width: 100%;
    height: 60%;
    background: linear-gradient(135deg, #CD853F 0%, #8B4513 100%);
    border-radius: 0 0 10px 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.ballerina {
    font-size: 4em;
    animation: spin 4s linear infinite;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.music-box.open .ballerina {
    opacity: 1;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.lyrics {
    min-height: 100px;
    color: white;
    font-size: 1.5em;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* ============================================
   9. MESAJ DUVARI
   ============================================ */
#messageWall {
    background: linear-gradient(135deg, #fce4ec 0%, #f8bbd0 100%);
}

.wall-container {
    width: 100%;
    max-width: 1000px;
    height: 600px;
    position: relative;
}

.post-it {
    position: absolute;
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, #fff9c4 0%, #fff59d 100%);
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.post-it:nth-child(2) { background: linear-gradient(135deg, #f8bbd0 0%, #f48fb1 100%); }
.post-it:nth-child(3) { background: linear-gradient(135deg, #b2dfdb 0%, #80cbc4 100%); }
.post-it:nth-child(4) { background: linear-gradient(135deg, #ffe0b2 0%, #ffcc80 100%); }
.post-it:nth-child(5) { background: linear-gradient(135deg, #d1c4e9 0%, #b39ddb 100%); }
.post-it:nth-child(6) { background: linear-gradient(135deg, #c5e1a5 0%, #aed581 100%); }

.post-it:hover {
    transform: scale(1.1) rotate(0deg) !important;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.post-it p {
    font-size: 3em;
}

.message-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.message-modal.active {
    display: flex;
}

.message-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    max-width: 500px;
    position: relative;
    animation: popIn 0.3s ease;
}

.close-message {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 2em;
    cursor: pointer;
    color: #999;
}

#messageText {
    font-size: 1.3em;
    color: #c2185b;
    text-align: center;
    line-height: 1.8;
}

/* ============================================
   10. SÜRPRİZ KUTULARI
   ============================================ */
#boxes {
    background: linear-gradient(135deg, #ff6b9d 0%, #ffb6c1 100%);
}

.boxes-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
    max-width: 1000px;
}

.gift-box {
    width: 150px;
    height: 150px;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gift-box:hover {
    transform: scale(1.1);
}

.box-top {
    width: 100%;
    height: 30%;
    background: linear-gradient(135deg, #FF6B6B 0%, #C73E3E 100%);
    position: relative;
    transition: transform 0.5s ease;
}

.box-top::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 20px;
    background: #FFD700;
}

.box-top::after {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 40px;
    border: 5px solid #FFD700;
    border-bottom: none;
    border-radius: 20px 20px 0 0;
}

.gift-box.opened .box-top {
    transform: translateY(-50px) rotateX(-90deg);
}

.box-body {
    width: 100%;
    height: 70%;
    background: linear-gradient(135deg, #FF8E8E 0%, #E85757 100%);
    position: relative;
}

.box-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 100%;
    background: #FFD700;
}

.gift-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.gift-modal.active {
    display: flex;
}

.gift-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    max-width: 600px;
    position: relative;
    animation: popIn 0.3s ease;
}

.close-gift {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 2em;
    cursor: pointer;
    color: #999;
}

#giftContent {
    text-align: center;
    font-size: 1.3em;
    color: #c2185b;
}

/* ============================================
   11. FİNAL - DOĞUM GÜNÜ PARTİSİ
   ============================================ */
#finale {
    background: linear-gradient(135deg, #f06292 0%, #c2185b 100%);
}

.finale-container {
    text-align: center;
    z-index: 10;
}

.finale-title {
    color: white;
    font-size: 2.5em;
    margin-bottom: 60px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
}

.cake-container {
    margin: 80px 0 40px;
}

.cake {
    width: 300px;
    height: 200px;
    background: linear-gradient(135deg, #FF69B4 0%, #FFB6C1 100%);
    border-radius: 20px 20px 60px 60px;
    position: relative;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.cake::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    height: 20px;
    background: #FFD700;
    border-radius: 10px;
}

.candle {
    position: absolute;
    width: 15px;
    height: 60px;
    background: linear-gradient(135deg, #FFE4B5 0%, #F0E68C 100%);
    top: -60px;
}

.candle:nth-child(1) { left: 30%; }
.candle:nth-child(2) { left: 50%; transform: translateX(-50%); }
.candle:nth-child(3) { right: 30%; }

.flame {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 30px;
    background: radial-gradient(circle, #FFD700 0%, #FF4500 70%);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    animation: flicker 0.5s infinite;
}

@keyframes flicker {
    0%, 100% { transform: translateX(-50%) scaleY(1); }
    50% { transform: translateX(-50%) scaleY(1.2); }
}

.candle.blown-out .flame {
    display: none;
}

.blow-btn {
    padding: 20px 60px;
    font-size: 1.5em;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    margin-top: 30px;
}

.blow-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.final-message {
    margin-top: 50px;
}

.final-message.hidden {
    display: none;
}

.big-text {
    color: #FFD700;
    font-size: 3em;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
    margin-bottom: 30px;
    animation: rainbow 3s infinite;
}

@keyframes rainbow {
    0% { color: #FFD700; text-shadow: 0 0 30px #FFD700; }
    25% { color: #FF69B4; text-shadow: 0 0 30px #FF69B4; }
    50% { color: #87CEEB; text-shadow: 0 0 30px #87CEEB; }
    75% { color: #98FB98; text-shadow: 0 0 30px #98FB98; }
    100% { color: #FFD700; text-shadow: 0 0 30px #FFD700; }
}

/* Konfeti Yağmuru için Ek Stil */
.confetti-piece {
    position: fixed;
    width: 10px;
    height: 10px;
    background: #FFD700;
    animation: confettiFall 3s linear forwards;
    z-index: 1000;
}

@keyframes confettiFall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

.finale-wishes {
    color: white;
    font-size: 1.5em;
    margin: 15px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.finale-letter {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 20px;
    max-width: 700px;
    margin: 30px auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    color: #333;
    line-height: 1.8;
    text-align: left;
}

.finale-letter p {
    margin: 8px 0;
    font-size: 1.1em;
}

.finale-letter strong {
    color: #c2185b;
    font-size: 1.2em;
}

#fireworksCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

/* ============================================
   NEXT BUTTON
   ============================================ */
.next-btn {
    padding: 15px 40px;
    font-size: 1.2em;
    background: linear-gradient(135deg, #f06292, #c2185b);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    margin-top: 30px;
}

.next-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.next-btn.hidden {
    display: none;
}

/* ============================================
   FLOATING HEARTS
   ============================================ */
.floating-hearts {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
}

.heart {
    position: absolute;
    animation: floatUp 5s linear;
    opacity: 0;
    pointer-events: none;
}

@keyframes floatUp {
    0% {
        bottom: -50px;
        opacity: 1;
        transform: translateX(0) scale(1);
    }
    50% {
        opacity: 0.8;
        transform: translateX(-40px) scale(1.1);
    }
    100% {
        bottom: 110%;
        opacity: 0;
        transform: translateX(60px) scale(0.7);
    }
}

@keyframes floatUp2 {
    0% {
        bottom: -50px;
        opacity: 1;
        transform: translateX(0) rotate(0deg);
    }
    33% {
        transform: translateX(30px) rotate(10deg);
    }
    66% {
        transform: translateX(-20px) rotate(-5deg);
    }
    100% {
        bottom: 110%;
        opacity: 0;
        transform: translateX(10px) rotate(5deg);
    }
}

/* ============================================
   RESPONSIVE TASARIM
   ============================================ */
@media (max-width: 768px) {
    .wishes-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px;
        max-width: 100%;
        padding: 10px;
    }

    .wish-card {
        padding: 25px 10px;
        min-height: 120px;
    }

    .wish-icon {
        font-size: 2.8em;
    }

    .section-title {
        font-size: 2em;
    }

    .welcome-title {
        font-size: 2em;
    }

    .door {
        width: 150px;
        height: 250px;
    }

    .mystery-text {
        font-size: 1.5em;
    }

    .question {
        font-size: 1.3em;
    }

    .input-group {
        flex-direction: column;
    }

    .tree-container {
        width: 100%;
    }

    .boxes-container {
        gap: 20px;
    }

    .gift-box {
        width: 120px;
        height: 120px;
    }

    .wall-container {
        height: 400px;
    }

    .post-it {
        width: 100px;
        height: 100px;
    }

    #wheelCanvas {
        width: 350px;
        height: 350px;
    }

    .cake {
        width: 250px;
        height: 150px;
    }

    .big-text {
        font-size: 2em;
    }

    .finale-letter {
        padding: 25px;
        max-width: 90%;
    }

    .finale-letter p {
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 20px 10px;
    }

    .welcome-title {
        font-size: 1.5em;
    }

    .section-title {
        font-size: 1.5em;
    }

    .password-container {
        padding: 30px 20px;
    }

    #wheelCanvas {
        width: 280px;
        height: 280px;
    }

    .spin-btn {
        width: 80px;
        height: 80px;
        font-size: 1em;
    }
}
