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

html, body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    position: relative;
}

body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #a8e6cf 0%, #dcedc8 30%, #ffd3b6 60%, #ffaaa5 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
    padding: 20px;
    box-sizing: border-box;
}

.hearts-rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.heart {
    position: absolute;
    font-size: 20px;
    opacity: 0.7;
    animation: heartFall linear forwards;
}

@keyframes heartFall {
    to {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

.flowers-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
    max-width: 100vw;
}

/* Beyaz Papatya CSS */
.daisy, .small-daisy {
    position: relative;
    margin: 0 auto;
}

.daisy {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
}

.small-daisy {
    width: 60px;
    height: 60px;
    display: inline-block;
    margin: 0 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.small-daisy:hover {
    transform: scale(1.15) rotate(10deg);
}

.small-daisy:active {
    transform: scale(0.95) rotate(-5deg);
}

.daisy-container {
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.daisies-row {
    margin: 30px 0;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Papatya yaprakları - JavaScript ile oluşturulacak, CSS sadece temel stil */

/* Papatya merkezi */
.daisy .center, .small-daisy .center {
    position: absolute;
    background: #ffd700;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

.daisy .center {
    width: 25px;
    height: 25px;
}

.small-daisy .center {
    width: 18px;
    height: 18px;
}

/* Papatya yaprakları için ekstra div'ler */
.daisy-petal {
    position: absolute;
    width: 35px;
    height: 35px;
    background: white;
    border-radius: 50% 50% 50% 0;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    top: 5px;
    left: 50%;
    transform-origin: bottom center;
    z-index: 1;
}

.small-daisy-petal {
    position: absolute;
    width: 25px;
    height: 25px;
    background: white;
    border-radius: 50% 50% 50% 0;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    top: 5px;
    left: 50%;
    transform-origin: bottom center;
    z-index: 1;
}

.container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 600px;
    padding: 20px;
    margin: 0 auto;
    box-sizing: border-box;
}

.content {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    border-radius: 35px;
    padding: 40px 35px 30px 35px;
    text-align: center;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.5);
    animation: fadeIn 1s ease-in;
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 182, 193, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
    pointer-events: none;
    z-index: 0;
    border-radius: 50%;
    overflow: hidden;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.title {
    font-family: 'Dancing Script', cursive;
    font-size: 42px;
    color: #ff6b9d;
    margin-bottom: 15px;
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(255, 107, 157, 0.3);
    position: relative;
    z-index: 2;
    animation: titleGlow 3s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% { text-shadow: 2px 2px 8px rgba(255, 107, 157, 0.3); }
    50% { text-shadow: 2px 2px 15px rgba(255, 107, 157, 0.6), 0 0 20px rgba(255, 107, 157, 0.4); }
}

.message {
    font-size: 22px;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.8;
    position: relative;
    z-index: 2;
    font-weight: 300;
}

.reveal-btn {
    background: linear-gradient(135deg, #ff6b9d 0%, #ffaaa5 100%);
    color: white;
    border: none;
    padding: 18px 40px;
    font-size: 18px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(255, 107, 157, 0.4);
    position: relative;
    z-index: 3;
    margin-bottom: 0;
}

.reveal-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 107, 157, 0.6);
}

.reveal-btn:active {
    transform: translateY(0);
}

.test-btn {
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    color: white;
    border: none;
    padding: 15px 35px;
    font-size: 16px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.4);
    position: relative;
    z-index: 3;
    opacity: 0.9;
}

.test-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(74, 144, 226, 0.6);
    opacity: 1;
}

.test-btn:active {
    transform: translateY(0);
}

.next-btn {
    margin-top: 30px;
    background: linear-gradient(135deg, #ff6b9d 0%, #ffaaa5 100%);
    color: white;
    border: none;
    padding: 15px 35px;
    font-size: 16px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 8px 25px rgba(255, 107, 157, 0.4);
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 30px auto 20px auto;
    opacity: 0;
    transform: scale(0.8);
    position: relative;
    z-index: 4;
    width: auto;
    overflow: hidden;
}

.next-btn::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 ease;
}

.next-btn:hover::before {
    left: 100%;
}

.next-btn.show {
    opacity: 1 !important;
    transform: scale(1) !important;
    display: flex !important;
    visibility: visible !important;
}

.next-btn:not(.show) {
    opacity: 0;
    display: none !important;
}

.next-btn:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 12px 35px rgba(255, 107, 157, 0.6);
}

.next-btn:active {
    transform: scale(0.98) translateY(0);
}

.next-btn .arrow {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.next-btn:hover .arrow {
    transform: translateX(5px);
}

.hidden {
    display: none !important;
}

.message-container {
    margin-top: 0;
    min-height: 0;
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: visible;
    display: none;
    opacity: 0;
    transform: translateY(30px);
    padding: 20px;
    transition: min-height 0.4s ease-out, padding 0.4s ease-out;
}

.message-container:not(.hidden) {
    display: block;
    margin-top: 40px;
    min-height: 400px;
    padding: 20px;
    transition: min-height 0.3s ease-out;
}


.message-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 248, 250, 0.9) 100%);
    border-radius: 25px;
    padding: 50px 40px;
    box-shadow: 0 15px 40px rgba(255, 107, 157, 0.2);
    border: 2px solid rgba(255, 107, 157, 0.1);
    position: relative;
    opacity: 0;
    transform: translateY(30px) scale(0.9);
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 3;
    width: calc(100% - 10px);
    max-width: calc(100% - 10px);
    display: none;
    box-sizing: border-box;
    overflow: hidden;
    margin: 0 5px;
}

.message-card.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    display: block !important;
}

.message-number {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 14px;
    color: #ff6b9d;
    font-weight: 600;
    opacity: 0.6;
    z-index: 3;
}

.message-title {
    font-family: 'Dancing Script', cursive;
    font-size: 42px;
    color: #ff6b9d;
    margin-bottom: 25px;
    font-weight: 700;
    text-shadow: 2px 2px 6px rgba(255, 107, 157, 0.2);
    min-height: 60px;
    position: relative;
    z-index: 2;
}

.message-text {
    font-size: 22px;
    color: #555;
    line-height: 2;
    font-weight: 300;
    min-height: 150px;
    position: relative;
    word-wrap: break-word;
    overflow-wrap: break-word;
    z-index: 2;
}

.message-text::before {
    content: '"';
    font-size: 80px;
    position: absolute;
    top: -20px;
    left: -15px;
    color: rgba(255, 107, 157, 0.15);
    font-family: Georgia, serif;
    line-height: 1;
    overflow: hidden;
}

.typing {
    border-right: 3px solid #ff6b9d;
    animation: blink 0.7s infinite;
}

@keyframes blink {
    0%, 50% { border-color: #ff6b9d; }
    51%, 100% { border-color: transparent; }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.confetti {
    margin-top: 30px;
    font-size: 40px;
    animation: bounce 2s infinite;
}

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

/* Arka plan papatyaları */
.background-daisy {
    position: absolute;
    width: 80px;
    height: 80px;
    animation: floatBackground 6s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
    max-width: 100vw;
    box-sizing: border-box;
}

/* Arka plan papatya yaprakları JavaScript ile oluşturulacak */

.background-daisy .bg-center {
    position: absolute;
    width: 20px;
    height: 20px;
    background: #ffd700;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

@keyframes floatBackground {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

.fade-out {
    animation: fadeOut 0.6s ease forwards;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

/* Responsive */
@media (max-width: 600px) {
    html, body {
        overflow-x: hidden;
        max-width: 100vw;
    }
    
    body {
        padding: 10px;
    }
    
    .container {
        padding: 10px;
        max-width: 100%;
    }
    
    .content {
        padding: 30px 20px 25px 20px;
        border-radius: 25px;
        max-width: 100%;
    }
    
    .title {
        font-size: 32px;
        margin-bottom: 12px;
    }
    
    .message {
        font-size: 18px;
        margin-bottom: 20px;
    }
    
    .reveal-btn {
        padding: 15px 30px;
        font-size: 16px;
    }
    
    .daisy {
        width: 70px;
        height: 70px;
    }
    
    .daisy .center {
        width: 20px;
        height: 20px;
    }
    
    .daisy-petal {
        width: 28px;
        height: 28px;
    }
    
    .small-daisy {
        width: 50px;
        height: 50px;
        margin: 0 10px;
    }
    
    .small-daisy-petal {
        width: 20px;
        height: 20px;
    }
    
    .message-title {
        font-size: 28px;
        margin-bottom: 20px;
        min-height: 50px;
    }
    
    .message-text {
        font-size: 17px;
        line-height: 1.8;
        min-height: 120px;
    }
    
    .message-text::before {
        font-size: 60px;
        top: -15px;
        left: -10px;
    }
    
    .message-card {
        padding: 30px 20px;
    }
    
    .message-number {
        top: 15px;
        right: 20px;
        font-size: 12px;
    }
    
    .next-btn {
        padding: 12px 25px;
        font-size: 14px;
        margin-top: 20px;
    }
    
    .game-title {
        font-size: 28px;
        margin-bottom: 15px;
    }
    
    .game-area {
        height: 350px;
        min-height: 350px;
    }
    
    .score-board {
        font-size: 14px;
        padding: 12px;
        flex-direction: column;
        gap: 10px;
    }
    
    .game-instructions {
        padding: 20px;
        border-radius: 15px;
    }
    
    .game-instructions p {
        font-size: 16px;
    }
    
    .start-game-btn,
    .restart-game-btn,
    .finish-game-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .game-basket {
        width: 80px;
        height: 65px;
        bottom: 15px;
    }
    
    .game-basket::before {
        font-size: 35px;
    }
    
    .game-flower {
        width: 40px;
        height: 40px;
        font-size: 32px;
        line-height: 40px;
    }
    
    .game-result {
        padding: 30px 20px;
        min-height: 250px;
    }
    
    .game-result h3 {
        font-size: 28px;
    }
    
    .game-result p {
        font-size: 18px;
    }
    
    .big-emoji {
        font-size: 70px;
    }
    
    .celebration-flower {
        font-size: 24px;
    }
}

/* Mini Game Styles */
.mini-game {
    margin-top: 40px;
    position: relative;
    z-index: 5;
    animation: fadeIn 0.8s ease-in;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.mini-game.hidden {
    display: none !important;
}

.game-title {
    font-family: 'Dancing Script', cursive;
    font-size: 38px;
    color: #ff6b9d;
    margin-bottom: 20px;
    text-shadow: 2px 2px 6px rgba(255, 107, 157, 0.3);
}

.game-info {
    margin-bottom: 20px;
}

.score-board {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.1) 0%, rgba(255, 170, 165, 0.1) 100%);
    padding: 15px 20px;
    border-radius: 15px;
    font-size: 18px;
    font-weight: 600;
    color: #ff6b9d;
    box-shadow: 0 5px 15px rgba(255, 107, 157, 0.15);
}

.score-board span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.game-area {
    position: relative;
    width: 100%;
    height: 400px;
    background: linear-gradient(180deg, rgba(168, 230, 207, 0.3) 0%, rgba(255, 211, 182, 0.3) 100%);
    border-radius: 20px;
    overflow: hidden;
    border: 3px solid rgba(255, 107, 157, 0.3);
    margin-bottom: 20px;
    min-height: 400px;
    box-sizing: border-box;
}

.game-instructions {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 5;
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    width: 90%;
    max-width: 400px;
}

.game-instructions p {
    font-size: 18px;
    color: #666;
    margin: 10px 0;
}

.start-game-btn,
.restart-game-btn,
.finish-game-btn {
    background: linear-gradient(135deg, #ff6b9d 0%, #ffaaa5 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    margin: 10px 5px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(255, 107, 157, 0.4);
}

.start-game-btn:hover,
.restart-game-btn:hover,
.finish-game-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(255, 107, 157, 0.6);
}

.game-basket {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 80px;
    background: linear-gradient(135deg, #ff6b9d 0%, #ffaaa5 100%);
    border-radius: 10px 10px 0 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: left 0.08s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 10;
    pointer-events: none;
    will-change: left;
}

.game-basket::before {
    content: '🧺';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 40px;
    pointer-events: none;
}

.game-flower {
    position: absolute;
    width: 50px;
    height: 50px;
    font-size: 40px;
    text-align: center;
    line-height: 50px;
    animation: flowerFall linear forwards;
    cursor: pointer;
    z-index: 5;
    pointer-events: none;
    user-select: none;
}

@keyframes flowerFall {
    to {
        transform: translateY(450px) rotate(360deg);
        opacity: 0;
    }
}

@keyframes fall {
    to {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

.game-result {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 248, 250, 0.95) 100%);
    border-radius: 25px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(255, 107, 157, 0.2);
    margin-top: 20px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 107, 157, 0.1);
    animation: fadeIn 0.5s ease-in;
    position: relative;
    overflow: hidden;
    min-height: 300px;
}

.game-area .game-result {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
    width: 90%;
    max-width: 400px;
    margin-top: 0;
}

/* Mystery result için daha geniş */
#mystery-result {
    width: 90% !important;
    max-width: 600px !important;
}

.game-result h3 {
    font-family: 'Dancing Script', cursive;
    font-size: 36px;
    color: #ff6b9d;
    margin-bottom: 15px;
}

.game-result p {
    font-size: 20px;
    color: #666;
    margin-bottom: 25px;
}

.finish-game-btn {
    background: linear-gradient(135deg, #a8e6cf 0%, #dcedc8 100%);
    color: #555;
}

/* Oyun sonu kutlama animasyonları */
.celebration-container {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 150px;
    height: 150px;
    pointer-events: none;
    z-index: 100;
    overflow: visible;
}

.big-emoji {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 80px;
    animation: emojiBounce 1s ease-in-out infinite;
    z-index: 16;
}

@keyframes emojiBounce {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2) rotate(10deg);
    }
}

.celebration-flower {
    position: absolute;
    font-size: 30px;
    animation: celebrationFloat 3s ease-in-out infinite;
    opacity: 0.8;
}

@keyframes celebrationFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg) scale(1);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-20px) rotate(180deg) scale(1.2);
        opacity: 1;
    }
}

@keyframes daisyClick {
    0% {
        transform: scale(1) rotate(0deg);
    }
    50% {
        transform: scale(1.3) rotate(180deg);
    }
    100% {
        transform: scale(1) rotate(360deg);
    }
}

/* Memory Game Styles */
.memory-game {
    margin-top: 40px;
    position: relative;
    z-index: 5;
    animation: fadeIn 0.8s ease-in;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.memory-game.hidden {
    display: none !important;
}

.memory-area {
    position: relative;
    width: 100%;
    min-height: 500px;
    background: linear-gradient(180deg, rgba(255, 182, 193, 0.2) 0%, rgba(255, 211, 182, 0.2) 100%);
    border-radius: 20px;
    padding: 30px;
    overflow: hidden;
    border: 3px solid rgba(255, 107, 157, 0.3);
    margin-bottom: 20px;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    justify-items: center;
    align-items: center;
}

.memory-instructions {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 5;
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    width: 90%;
    max-width: 400px;
}

.memory-instructions p {
    font-size: 18px;
    color: #666;
    margin: 10px 0;
}

.memory-card {
    width: 100%;
    max-width: 120px;
    height: 120px;
    position: relative;
    cursor: pointer;
    perspective: 1000px;
    transition: transform 0.3s ease;
}

.memory-card:hover:not(.flipped):not(.matched) {
    transform: scale(1.05);
}

.memory-card-front,
.memory-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.6s;
}

.memory-card-front {
    background: linear-gradient(135deg, #ff6b9d 0%, #ffaaa5 100%);
    color: white;
    transform: rotateY(0deg);
}

.memory-card-back {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 248, 250, 0.95) 100%);
    transform: rotateY(180deg);
    border: 2px solid rgba(255, 107, 157, 0.3);
}

.memory-card.flipped .memory-card-front {
    transform: rotateY(180deg);
}

.memory-card.flipped .memory-card-back {
    transform: rotateY(0deg);
}

.memory-card.matched {
    cursor: default;
    opacity: 0.7;
    animation: matchPulse 0.5s ease;
}

.memory-card.matched .memory-card-back {
    background: linear-gradient(135deg, #a8e6cf 0%, #dcedc8 100%);
    border: 3px solid rgba(255, 107, 157, 0.5);
}

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

/* Responsive Memory Game */
@media (max-width: 600px) {
    .memory-area {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        padding: 20px;
        min-height: 400px;
    }
    
    .memory-card {
        max-width: 90px;
        height: 90px;
    }
    
    .memory-card-front,
    .memory-card-back {
        font-size: 30px;
    }
    
    .memory-instructions {
        padding: 20px;
    }
    
    .memory-instructions p {
        font-size: 16px;
    }
}

/* Story Game Styles */
.story-game {
    margin-top: 40px;
    position: relative;
    z-index: 5;
    animation: fadeIn 0.8s ease-in;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.story-game.hidden {
    display: none !important;
}

.story-container {
    position: relative;
    width: 100%;
    min-height: 500px;
    border-radius: 20px;
    padding: 40px;
    overflow: hidden;
    border: 3px solid rgba(255, 107, 157, 0.3);
    margin-bottom: 20px;
    box-sizing: border-box;
    background-size: cover;
    background-position: center;
    transition: background 0.5s ease;
}

.story-bg-forest {
    background: linear-gradient(135deg, rgba(139, 195, 74, 0.3) 0%, rgba(76, 175, 80, 0.3) 100%);
}

.story-bg-field {
    background: linear-gradient(135deg, rgba(255, 235, 59, 0.3) 0%, rgba(255, 193, 7, 0.3) 100%);
}

.story-bg-magic {
    background: linear-gradient(135deg, rgba(156, 39, 176, 0.3) 0%, rgba(233, 30, 99, 0.3) 100%);
}

.story-bg-river {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.3) 0%, rgba(3, 169, 244, 0.3) 100%);
}

.story-bg-garden {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.3) 0%, rgba(139, 195, 74, 0.3) 100%);
}

.story-bg-castle {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.3) 0%, rgba(255, 193, 7, 0.3) 100%);
}

.story-content {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.story-character {
    font-size: 80px;
    margin-bottom: 20px;
    animation: bounce 2s ease-in-out infinite;
}

.story-text {
    font-size: 20px;
    color: #555;
    line-height: 1.8;
    text-align: center;
    margin-bottom: 30px;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}

.story-text p {
    margin: 0;
    font-weight: 300;
}

.story-choices {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 600px;
    align-items: stretch;
    overflow: visible;
}

.story-choice-btn {
    background: linear-gradient(135deg, #ff6b9d 0%, #ffaaa5 100%);
    color: white;
    border: none;
    padding: 18px 30px;
    font-size: 16px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 8px 25px rgba(255, 107, 157, 0.4);
    opacity: 0;
    transform: translateY(20px);
    animation: slideInChoice 0.5s ease forwards;
    width: 100%;
    display: block;
    position: relative;
    z-index: 1;
}

.story-choice-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(255, 107, 157, 0.6);
    z-index: 2;
    width: 100%;
}

.story-choice-btn:active {
    transform: translateY(0) scale(0.98);
}

@keyframes slideInChoice {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Story Game */
@media (max-width: 600px) {
    .story-container {
        padding: 20px;
        min-height: 400px;
    }
    
    .story-content {
        padding: 25px;
        min-height: 300px;
    }
    
    .story-character {
        font-size: 60px;
        margin-bottom: 15px;
    }
    
    .story-text {
        font-size: 17px;
        min-height: 120px;
    }
    
    .story-choice-btn {
        padding: 15px 25px;
        font-size: 14px;
    }
}

/* Mystery Game Styles */
.mystery-game {
    margin-top: 40px;
    position: relative;
    z-index: 100;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    transition: opacity 1s ease;
}

.mystery-game.hidden {
    display: none !important;
}

.mystery-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #0f0f1a;
    z-index: -1;
    pointer-events: none;
    transition: background 2s ease;
}

/* Fener efekti: Sayfanın üstünde gezinen bir ışık */
.spotlight {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: radial-gradient(
        circle 120px at var(--x, 50%) var(--y, 50%),
        transparent 0%,
        rgba(0, 0, 0, 0.98) 100%
    );
    z-index: 998; /* İçeriğin altında ama overlay'in üstünde */
    mix-blend-mode: multiply; /* Alt tarafı karart */
    transition: background 0.05s ease; /* Yumuşak takip */
}

/* İçerik, spotlight'ın üstünde */
.mystery-content {
    position: relative;
    z-index: 1000; /* Spotlight'ın üstünde */
    background: transparent;
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    color: #fff;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mystery-title {
    color: #fff;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.9), 0 0 30px rgba(100, 149, 237, 0.8);
    font-size: 3rem;
    margin-bottom: 10px;
    position: relative;
    z-index: 1001;
}

.mystery-instruction {
    color: #e0e0ff;
    font-size: 1.2rem;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    position: relative;
    z-index: 1001;
}

.mystery-score {
    font-size: 1.5rem;
    color: #ffd700;
    margin-bottom: 30px;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.8), 0 0 20px rgba(255, 215, 0, 0.5);
    position: relative;
    z-index: 1001;
}

.mystery-area {
    position: relative;
    width: 100%;
    height: 400px;
    border: 2px dashed rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden; /* Harfler dışarı taşmasın */
}

.hidden-item {
    position: absolute;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    opacity: 0; /* Başlangıçta görünmez */
    transform: scale(0.5);
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
    z-index: 1002;
    pointer-events: none; /* Başlangıçta tıklanamaz */
    user-select: none;
}

.hidden-item:hover {
    transform: scale(1.1);
}

.hidden-item.found {
    opacity: 1 !important;
    transform: scale(1.2) !important;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.8), 0 0 60px rgba(255, 215, 0, 0.4);
    animation: glowPulse 2s infinite;
    pointer-events: none;
    cursor: default;
}

.hidden-item .item-content {
    display: block;
    color: #ffd700;
    font-weight: bold;
    text-shadow: 0 0 15px rgba(255, 215, 0, 1);
}

.hidden-item.found .item-content {
    display: block;
    animation: letterGlow 1s ease-in-out infinite;
}

@keyframes letterGlow {
    0%, 100% {
        text-shadow: 0 0 15px rgba(255, 215, 0, 1);
        transform: scale(1);
    }
    50% {
        text-shadow: 0 0 25px rgba(255, 215, 0, 1), 0 0 40px rgba(255, 215, 0, 0.6);
        transform: scale(1.1);
    }
}

/* Bulunan harfler gösterimi */
.found-letters {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    min-height: 60px;
    flex-wrap: wrap;
}

.found-letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    font-size: 36px;
    font-weight: bold;
    color: #ffd700;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border: 2px solid rgba(255, 215, 0, 0.5);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
    text-shadow: 0 0 15px rgba(255, 215, 0, 1);
    animation: foundLetterPulse 2s ease-in-out infinite;
}

@keyframes foundLetterPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 30px rgba(255, 215, 0, 0.9), 0 0 50px rgba(255, 215, 0, 0.4);
    }
}

@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 15px rgba(255, 215, 0, 0.4); transform: scale(1); }
    50% { box-shadow: 0 0 30px rgba(255, 215, 0, 0.8); transform: scale(1.1); }
}

/* Karanlık modda diğer elemanları gizle veya stilize et */
body.dark-mode {
    background: #050510 !important;
}

body.dark-mode .content {
    background: rgba(10, 10, 20, 0.8);
    box-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .daisy-container,
body.dark-mode .title,
body.dark-mode .message,
body.dark-mode .reveal-btn {
    opacity: 0.1; /* Arka plan elemanlarını soluklaştır */
    pointer-events: none;
}

/* Mobil için spotlight */
@media (max-width: 600px) {
    .spotlight {
        background: radial-gradient(
            circle 100px at var(--x, 50%) var(--y, 50%),
            transparent 0%,
            rgba(0, 0, 0, 0.98) 100%
        );
    }
    
    .mystery-title {
        font-size: 2rem;
    }
    
    .mystery-instruction {
        font-size: 1rem;
    }
    
    .mystery-score {
        font-size: 1.2rem;
    }
}

/* Final Message Styles */
.final-message {
    margin-top: 40px;
    position: relative;
    z-index: 5;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.final-message.hidden {
    display: none !important;
}

.final-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 248, 250, 0.98) 100%);
    border-radius: 30px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: 0 25px 70px rgba(255, 107, 157, 0.3);
    border: 3px solid rgba(255, 107, 157, 0.2);
    backdrop-filter: blur(15px);
    width: 100%;
    max-width: 600px;
    position: relative;
    overflow: hidden;
    animation: finalGlow 3s ease-in-out infinite;
}

@keyframes finalGlow {
    0%, 100% {
        box-shadow: 0 25px 70px rgba(255, 107, 157, 0.3);
    }
    50% {
        box-shadow: 0 25px 70px rgba(255, 107, 157, 0.6), 0 0 50px rgba(255, 107, 157, 0.3);
    }
}

.final-emoji {
    font-size: 100px;
    margin-bottom: 20px;
    animation: emojiFloat 3s ease-in-out infinite;
    display: inline-block;
}

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

.final-title {
    font-family: 'Dancing Script', cursive;
    font-size: 48px;
    color: #ff6b9d;
    margin-bottom: 30px;
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(255, 107, 157, 0.3);
    animation: titlePulse 2s ease-in-out infinite;
}

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

.final-text {
    font-size: 24px;
    color: #555;
    line-height: 2;
    margin-bottom: 30px;
}

.final-text p {
    margin: 15px 0;
    font-weight: 300;
}

.final-text .highlight {
    font-size: 28px;
    color: #ff6b9d;
    font-weight: 600;
    text-shadow: 1px 1px 4px rgba(255, 107, 157, 0.2);
    animation: highlightGlow 2s ease-in-out infinite;
}

@keyframes highlightGlow {
    0%, 100% {
        text-shadow: 1px 1px 4px rgba(255, 107, 157, 0.2);
    }
    50% {
        text-shadow: 1px 1px 8px rgba(255, 107, 157, 0.5), 0 0 15px rgba(255, 107, 157, 0.3);
    }
}

.final-love {
    font-size: 32px !important;
    color: #ff6b9d !important;
    font-weight: 700 !important;
    margin-top: 30px !important;
    animation: lovePulse 1.5s ease-in-out infinite;
}

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

.final-flowers {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.final-flower {
    font-size: 40px;
    animation: flowerRotate 4s ease-in-out infinite;
    display: inline-block;
}

.final-flower:nth-child(1) {
    animation-delay: 0s;
}

.final-flower:nth-child(2) {
    animation-delay: 0.5s;
}

.final-flower:nth-child(3) {
    animation-delay: 1s;
}

.final-flower:nth-child(4) {
    animation-delay: 1.5s;
}

.final-flower:nth-child(5) {
    animation-delay: 2s;
}

@keyframes flowerRotate {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }
    25% {
        transform: rotate(90deg) scale(1.2);
    }
    50% {
        transform: rotate(180deg) scale(1);
    }
    75% {
        transform: rotate(270deg) scale(1.2);
    }
}

/* Final Next Button */
.final-next-btn {
    margin: 40px auto 0 auto;
    display: block;
    background: linear-gradient(135deg, #ff6b9d 0%, #ffaaa5 100%);
    color: white;
    border: none;
    padding: 18px 40px;
    font-size: 18px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 10px 30px rgba(255, 107, 157, 0.4);
    opacity: 0;
    transform: translateY(20px);
    width: auto;
}

.final-next-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px rgba(255, 107, 157, 0.6);
}

.final-next-btn:active {
    transform: translateY(0) scale(0.98);
}

/* Feedback Options Styles */
.feedback-options {
    margin-top: 40px;
    position: relative;
    z-index: 5;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feedback-options.hidden {
    display: none !important;
}

.feedback-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 248, 250, 0.98) 100%);
    border-radius: 30px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: 0 25px 70px rgba(255, 107, 157, 0.3);
    border: 3px solid rgba(255, 107, 157, 0.2);
    backdrop-filter: blur(15px);
    width: 100%;
    max-width: 600px;
    position: relative;
    overflow: hidden;
}

.feedback-title {
    font-family: 'Dancing Script', cursive;
    font-size: 42px;
    color: #ff6b9d;
    margin-bottom: 40px;
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(255, 107, 157, 0.3);
}

.feedback-buttons {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.feedback-btn {
    background: linear-gradient(135deg, #ff6b9d 0%, #ffaaa5 100%);
    color: white;
    border: none;
    padding: 20px 40px;
    font-size: 18px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 10px 30px rgba(255, 107, 157, 0.4);
    width: 100%;
    max-width: 500px;
    opacity: 0;
    transform: translateY(20px);
    animation: slideInButton 0.6s ease forwards;
}

.feedback-btn:nth-child(1) {
    animation-delay: 0.2s;
}

.feedback-btn:nth-child(2) {
    animation-delay: 0.4s;
}

@keyframes slideInButton {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feedback-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(255, 107, 157, 0.6);
}

.feedback-btn:active {
    transform: translateY(0) scale(0.98);
}

.feedback-btn-1 {
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    box-shadow: 0 10px 30px rgba(74, 144, 226, 0.4);
}

.feedback-btn-1:hover {
    box-shadow: 0 15px 40px rgba(74, 144, 226, 0.6);
}

.feedback-btn-2 {
    background: linear-gradient(135deg, #ff6b9d 0%, #ffaaa5 100%);
}

/* Responsive Feedback */
@media (max-width: 600px) {
    .feedback-content {
        padding: 40px 25px;
    }
    
    .feedback-title {
        font-size: 32px;
        margin-bottom: 30px;
    }
    
    .feedback-btn {
        padding: 15px 30px;
        font-size: 16px;
    }
    
    .final-next-btn {
        padding: 15px 30px;
        font-size: 16px;
    }
}

/* Responsive Final Message */
@media (max-width: 600px) {
    .final-content {
        padding: 40px 25px;
        border-radius: 25px;
    }
    
    .final-emoji {
        font-size: 70px;
        margin-bottom: 15px;
    }
    
    .final-title {
        font-size: 32px;
        margin-bottom: 20px;
    }
    
    .final-text {
        font-size: 18px;
        line-height: 1.8;
    }
    
    .final-text .highlight {
        font-size: 22px;
    }
    
    .final-love {
        font-size: 24px !important;
        margin-top: 20px !important;
    }
    
    .final-flower {
        font-size: 30px;
    }
    
    .final-flowers {
        gap: 15px;
        margin-top: 20px;
    }
}
