/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #87CEEB 0%, #98FB98 50%, #F0E68C 100%);
    overflow: hidden;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
    position: fixed;
    width: 100%;
    height: 100%;
    color: #2c3e50;
}

#game-container {
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
    overflow: hidden;
    background: linear-gradient(135deg, #87CEEB 0%, #98FB98 50%, #F0E68C 100%);
}

/* Background elements */
.background-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.cloud {
    position: absolute;
    font-size: 3rem;
    opacity: 0.7;
    animation: cloudFloat 20s linear infinite, cloudPulse 4s ease-in-out infinite;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.1));
}

.cloud1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 15s;
}

.cloud2 {
    top: 20%;
    right: 15%;
    animation-delay: -3s;
    animation-duration: 18s;
}

.cloud3 {
    top: 15%;
    left: 50%;
    animation-delay: -7s;
    animation-duration: 20s;
}

.cloud4 {
    top: 5%;
    left: 80%;
    animation-delay: -5s;
    animation-duration: 16s;
}

.cloud5 {
    top: 25%;
    left: 30%;
    animation-delay: -2s;
    animation-duration: 22s;
}

@keyframes cloudPulse {
    0%, 100% { 
        transform: scale(1);
        opacity: 0.7;
    }
    50% { 
        transform: scale(1.1);
        opacity: 0.9;
    }
}

/* Floating particles background */
.floating-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle-bg {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: particleFloat 15s linear infinite;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.4);
}

.particle-bg:nth-child(1) { left: 5%; animation-delay: 0s; animation-duration: 8s; }
.particle-bg:nth-child(2) { left: 15%; animation-delay: 1s; animation-duration: 12s; }
.particle-bg:nth-child(3) { left: 25%; animation-delay: 2s; animation-duration: 10s; }
.particle-bg:nth-child(4) { left: 35%; animation-delay: 0.5s; animation-duration: 14s; }
.particle-bg:nth-child(5) { left: 45%; animation-delay: 1.5s; animation-duration: 11s; }
.particle-bg:nth-child(6) { left: 55%; animation-delay: 3s; animation-duration: 9s; }
.particle-bg:nth-child(7) { left: 65%; animation-delay: 1s; animation-duration: 15s; }
.particle-bg:nth-child(8) { left: 75%; animation-delay: 2.5s; animation-duration: 12s; }
.particle-bg:nth-child(9) { left: 85%; animation-delay: 1.5s; animation-duration: 13s; }
.particle-bg:nth-child(10) { left: 10%; animation-delay: 4s; animation-duration: 9s; }
.particle-bg:nth-child(11) { left: 30%; animation-delay: 5s; animation-duration: 14s; }
.particle-bg:nth-child(12) { left: 50%; animation-delay: 6s; animation-duration: 12s; }
.particle-bg:nth-child(13) { left: 70%; animation-delay: 7s; animation-duration: 11s; }
.particle-bg:nth-child(14) { left: 90%; animation-delay: 8s; animation-duration: 16s; }
.particle-bg:nth-child(15) { left: 20%; animation-delay: 9s; animation-duration: 13s; }

@keyframes cloudFloat {
    0% {
        transform: translateX(-100px) translateY(0px);
    }
    25% {
        transform: translateX(25vw) translateY(-20px);
    }
    50% { 
        transform: translateX(50vw) translateY(10px);
    }
    75% {
        transform: translateX(75vw) translateY(-15px);
    }
    100% { 
        transform: translateX(calc(100vw + 100px)) translateY(0px);
    }
}

@keyframes particleFloat {
    0% {
        top: 100vh;
        opacity: 0;
        transform: scale(0) rotate(0deg);
    }
    10% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
    50% { 
        opacity: 0.8;
        transform: scale(1.2) rotate(180deg);
    }
    90% {
        opacity: 1;
        transform: scale(1) rotate(360deg);
    }
    100% { 
        top: -10px;
        opacity: 0;
        transform: scale(0) rotate(720deg);
    }
}

/* Game UI */
.game-ui {
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 10;
    pointer-events: none;
}

.brand-logo {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-transform: none;
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.03rem;
    line-height: 1;
    z-index: 30;
    pointer-events: none;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
    border-radius: 6px;
    padding: 4px 8px 6px;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.9);
}

.logo-line {
    font-size: clamp(0.75rem, 2.1vw, 1.2rem);
}

.logo-lead {
    font-size: clamp(1.1rem, 3vw, 1.8rem);
    margin-bottom: 0.15rem;
}

.score-display, .lives-display, .time-display {
    background: rgba(255, 255, 255, 0.9);
    padding: 10px 15px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    font-weight: bold;
    font-size: 1.1rem;
    color: #2c3e50;
    backdrop-filter: blur(10px);
}

.score-label, .lives-label, .time-label {
    margin-right: 5px;
}

/* Game area */
#game-area {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 2;
}

/* Player Basket */
#basket {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 5rem;
    z-index: 5;
    transition: transform 0.1s ease;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.3));
    animation: basketPulse 2s ease-in-out infinite;
    text-shadow: 0 0 20px rgba(139, 69, 19, 0.8);
}

#basket.moving {
    animation: basketMove 0.1s ease, basketPulse 2s ease-in-out infinite;
}

#basket.catching {
    animation: basketCatching 0.4s ease-in-out;
}

@keyframes basketMove {
    0% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.1); }
    100% { transform: translateX(-50%) scale(1); }
}

@keyframes basketPulse {
    0%, 100% { 
        transform: translateX(-50%) scale(1);
        text-shadow: 0 0 20px rgba(139, 69, 19, 0.8);
        filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.3));
    }
    50% { 
        transform: translateX(-50%) scale(1.05);
        text-shadow: 0 0 30px rgba(139, 69, 19, 1);
        filter: drop-shadow(0 8px 15px rgba(0, 0, 0, 0.4));
    }
}

@keyframes basketCatching {
    0% { 
        transform: translateX(-50%) scale(1);
        text-shadow: 0 0 20px rgba(139, 69, 19, 0.8);
    }
    25% { 
        transform: translateX(-50%) scale(1.3) rotate(-5deg);
        text-shadow: 0 0 40px rgba(46, 125, 50, 1);
    }
    50% { 
        transform: translateX(-50%) scale(1.2) rotate(5deg);
        text-shadow: 0 0 50px rgba(46, 125, 50, 1);
    }
    75% { 
        transform: translateX(-50%) scale(1.3) rotate(-3deg);
        text-shadow: 0 0 40px rgba(46, 125, 50, 1);
    }
    100% { 
        transform: translateX(-50%) scale(1);
        text-shadow: 0 0 20px rgba(139, 69, 19, 0.8);
    }
}

/* Fruit styles */
.fruit {
    position: absolute;
    font-size: 2.5rem;
    z-index: 3;
    pointer-events: none;
    animation: fruitFall linear, fruitSpin 2s linear infinite;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.3));
    transition: all 0.3s ease;
}

.fruit.blue {
    color: #3498db;
    text-shadow: 0 0 10px rgba(52, 152, 219, 0.6);
}

.fruit.red {
    color: #e74c3c;
    text-shadow: 0 0 10px rgba(231, 76, 60, 0.6);
}

.fruit.green {
    color: #27ae60;
    text-shadow: 0 0 10px rgba(39, 174, 96, 0.6);
}

.fruit.yellow {
    color: #f1c40f;
    text-shadow: 0 0 10px rgba(241, 196, 15, 0.6);
}

.fruit.purple {
    color: #9b59b6;
    text-shadow: 0 0 10px rgba(155, 89, 182, 0.6);
}

.fruit.orange {
    color: #f39c12;
    text-shadow: 0 0 10px rgba(243, 156, 18, 0.6);
}

@keyframes fruitFall {
    from {
        transform: translateY(-100px) rotate(0deg);
        opacity: 1;
    }
    to {
        transform: translateY(calc(100vh + 100px)) rotate(720deg);
        opacity: 0.8;
    }
}

@keyframes fruitSpin {
    0% {
        transform: rotate(0deg) scale(1);
    }
    25% {
        transform: rotate(90deg) scale(1.1);
    }
    50% {
        transform: rotate(180deg) scale(1);
    }
    75% {
        transform: rotate(270deg) scale(1.1);
    }
    100% {
        transform: rotate(360deg) scale(1);
    }
}

/* Screen management */
.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
    color: #2c3e50;
    touch-action: manipulation;
    overflow: hidden;
    background: linear-gradient(135deg, #87CEEB 0%, #98FB98 50%, #F0E68C 100%);
    z-index: 20;
}

.hidden {
    display: none !important;
}

/* Start screen */
.start-content {
    animation: contentBreathing 4s ease-in-out infinite;
}

.start-content h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    color: #2c3e50;
    animation: titleBounce 2s ease-in-out infinite, titleGlow 3s ease-in-out infinite, rainbowGlow 4s ease-in-out infinite;
}

.start-content p {
    font-size: clamp(1rem, 3vw, 1.3rem);
    margin-bottom: 1rem;
    opacity: 0.8;
    color: #34495e;
    line-height: 1.5;
    animation: textPulse 2.5s ease-in-out infinite;
}

.start-content .start-tagline {
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #ffffff;
    font-size: clamp(1.1rem, 3.5vw, 1.6rem);
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.6), 0 0 6px rgba(255, 215, 0, 0.4);
}

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

@keyframes titleGlow {
    0%, 100% { 
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1), 0 0 20px rgba(52, 152, 219, 0.3);
    }
    50% { 
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1), 0 0 40px rgba(52, 152, 219, 0.6);
    }
}

@keyframes textPulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

@keyframes contentBreathing {
    0%, 100% { 
        transform: scale(1);
        filter: brightness(1);
    }
    50% { 
        transform: scale(1.02);
        filter: brightness(1.1);
    }
}

.start-button {
    background: linear-gradient(45deg, #e74c3c, #f39c12, #e74c3c);
    background-size: 200% 200%;
    border: none;
    color: white;
    padding: 20px 40px;
    font-size: 1.5rem;
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    margin-top: 2rem;
    animation: buttonPulse 2s ease-in-out infinite, buttonGlow 3s ease-in-out infinite, gradientShift 4s ease-in-out infinite;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
}

.start-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: buttonShine 3s ease-in-out infinite;
}

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

@keyframes buttonGlow {
    0%, 100% { 
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3), 0 0 20px rgba(231, 76, 60, 0.5);
    }
    50% { 
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3), 0 0 40px rgba(231, 76, 60, 0.8);
    }
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes buttonShine {
    0% { left: -100%; }
    100% { left: 100%; }
}

.start-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4), 0 0 50px rgba(231, 76, 60, 1);
    animation: none;
}

.start-button:active {
    transform: translateY(-1px) scale(1.02);
}

/* Game over screen */
.game-over-content h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 2rem;
    color: #2c3e50;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.final-score, .final-level {
    background: rgba(255, 255, 255, 0.9);
    padding: 15px 25px;
    border-radius: 15px;
    margin: 10px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.final-score-label, .final-level-label {
    font-weight: bold;
    margin-right: 10px;
    color: #2c3e50;
}

#final-score, #final-level {
    font-size: 1.5rem;
    color: #e74c3c;
    font-weight: bold;
}

.buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 2rem;
    max-width: 300px;
}

.restart-button, .cta-button, .resume-button {
    background: linear-gradient(45deg, #27ae60, #2ecc71);
    border: none;
    color: white;
    padding: 15px 30px;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.cta-button {
    background: linear-gradient(45deg, #e74c3c, #f39c12);
}

.restart-button:hover, .cta-button:hover, .resume-button:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.restart-button:active, .cta-button:active, .resume-button:active {
    transform: translateY(0) scale(1.02);
}

/* Pause screen */
.pause-content h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 2rem;
    color: #2c3e50;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

/* Effects canvas */
#effects-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 15;
}

/* Score popup */
.score-popup {
    position: absolute;
    font-size: 1.5rem;
    font-weight: bold;
    color: #27ae60;
    pointer-events: none;
    z-index: 10;
    animation: scorePopup 1s ease-out forwards;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    filter: drop-shadow(0 0 10px rgba(39, 174, 96, 0.8));
}

@keyframes scorePopup {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3), 0 0 10px rgba(39, 174, 96, 0.8);
    }
    50% {
        opacity: 1;
        transform: translateY(-25px) scale(1.3);
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3), 0 0 20px rgba(39, 174, 96, 1);
    }
    100% {
        opacity: 0;
        transform: translateY(-50px) scale(1.2);
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3), 0 0 10px rgba(39, 174, 96, 0.5);
    }
}

/* Particle effects */
.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: radial-gradient(circle, #f39c12, #e67e22);
    border-radius: 50%;
    pointer-events: none;
    z-index: 8;
    animation: particleExplode 0.8s ease-out forwards;
    box-shadow: 0 0 10px rgba(243, 156, 18, 0.8);
}

@keyframes particleExplode {
    0% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
        box-shadow: 0 0 10px rgba(243, 156, 18, 0.8);
    }
    50% {
        opacity: 1;
        transform: scale(1.5) rotate(180deg);
        box-shadow: 0 0 20px rgba(243, 156, 18, 1);
    }
    100% {
        opacity: 0;
        transform: scale(0) translate(var(--dx), var(--dy)) rotate(360deg);
        box-shadow: 0 0 5px rgba(243, 156, 18, 0.3);
    }
}

/* Mobile responsiveness - Telefon odaklı tasarım */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }
    
    .game-ui {
        padding: 0 10px;
        top: 10px;
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }
    
    .score-display, .lives-display {
        padding: 6px 10px;
        font-size: 0.9rem;
        min-width: 80px;
        text-align: center;
    }
    
    #basket {
        font-size: 4rem;
        bottom: 30px;
        animation: basketPulse 1.5s ease-in-out infinite;
    }
    
    .fruit {
        font-size: 2.2rem;
    }
    
    .start-content h1 {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }
    
    .start-content p {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }
    
    .start-button {
        padding: 15px 30px;
        font-size: 1.2rem;
        margin-top: 1.5rem;
    }
    
    .buttons {
        max-width: 250px;
        gap: 12px;
    }
    
    .restart-button, .cta-button, .resume-button {
        padding: 12px 24px;
        font-size: 1rem;
    }
    
    /* Oyun alanını telefon boyutuna optimize et */
    #game-area {
        height: calc(100vh - 120px);
        margin-top: 80px;
    }
}

@media (max-width: 480px) {
    .game-ui {
        flex-direction: column;
        gap: 10px;
        align-items: center;
        top: 10px;
    }
    
    .score-display, .lives-display {
        padding: 6px 10px;
        font-size: 0.9rem;
    }
    
    #basket {
        font-size: 3rem;
        bottom: 30px;
    }
    
    .fruit {
        font-size: 1.8rem;
    }
    
    .start-content h1 {
        font-size: 2rem;
    }
    
    .start-content p {
        font-size: 1rem;
    }
    
    .start-button {
        padding: 15px 30px;
        font-size: 1.2rem;
    }
    
    .buttons {
        max-width: 250px;
    }
    
    .restart-button, .cta-button, .resume-button {
        padding: 12px 24px;
        font-size: 1rem;
    }
}

/* Touch device optimizations - Telefon odaklı */
@media (hover: none) and (pointer: coarse) {
    .start-button:hover, .restart-button:hover, .cta-button:hover, .resume-button:hover {
        transform: none;
        animation: buttonPulse 2s ease-in-out infinite;
    }
    
    #basket {
        font-size: 5rem;
        bottom: 40px;
    }
    
    .fruit {
        font-size: 3.2rem;
    }
    
    /* Telefon için daha büyük dokunma alanları */
    .start-button, .restart-button, .cta-button, .resume-button {
        min-height: 50px;
        min-width: 120px;
        touch-action: manipulation;
    }
    
    /* Oyun alanını telefon için optimize et */
    #game-area {
        height: calc(100vh - 100px);
        margin-top: 60px;
    }
    
    /* UI elementlerini telefon için düzenle */
    .game-ui {
        flex-direction: row;
        justify-content: space-between;
        top: 5px;
        padding: 0 5px;
    }
    
    .score-display, .lives-display {
        padding: 8px 12px;
        font-size: 1rem;
        min-width: 70px;
    }
}

/* Landscape orientation */
@media (orientation: landscape) and (max-height: 500px) {
    .game-ui {
        flex-direction: row;
        justify-content: space-between;
        top: 10px;
    }
    
    .score-display, .lives-display {
        padding: 5px 10px;
        font-size: 0.9rem;
    }
    
    #basket {
        font-size: 3rem;
        bottom: 20px;
    }
    
    .fruit {
        font-size: 2rem;
    }
    
    .start-content h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .start-content p {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .start-button {
        padding: 12px 25px;
        font-size: 1.1rem;
        margin-top: 1rem;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .fruit, #basket {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Sparkle effect animation */
@keyframes sparkleEffect {
    0% {
        opacity: 1;
        transform: scale(0.5) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: scale(1.2) rotate(180deg);
    }
    100% {
        opacity: 0;
        transform: scale(0.8) translate(calc(var(--end-x) - 50%), calc(var(--end-y) - 50%)) rotate(360deg);
    }
}

/* Yeni heyecanlı efektler */
@keyframes screenShake {
    0%, 100% { transform: translateX(0); }
    10% { transform: translateX(-5px); }
    20% { transform: translateX(5px); }
    30% { transform: translateX(-5px); }
    40% { transform: translateX(5px); }
    50% { transform: translateX(-5px); }
    60% { transform: translateX(5px); }
    70% { transform: translateX(-5px); }
    80% { transform: translateX(5px); }
    90% { transform: translateX(-5px); }
}

@keyframes rainbowGlow {
    0% { 
        text-shadow: 0 0 20px #ff0000, 0 0 30px #ff0000;
        filter: hue-rotate(0deg);
    }
    16% { 
        text-shadow: 0 0 20px #ff8000, 0 0 30px #ff8000;
        filter: hue-rotate(60deg);
    }
    33% { 
        text-shadow: 0 0 20px #ffff00, 0 0 30px #ffff00;
        filter: hue-rotate(120deg);
    }
    50% { 
        text-shadow: 0 0 20px #00ff00, 0 0 30px #00ff00;
        filter: hue-rotate(180deg);
    }
    66% { 
        text-shadow: 0 0 20px #0080ff, 0 0 30px #0080ff;
        filter: hue-rotate(240deg);
    }
    83% { 
        text-shadow: 0 0 20px #8000ff, 0 0 30px #8000ff;
        filter: hue-rotate(300deg);
    }
    100% { 
        text-shadow: 0 0 20px #ff0000, 0 0 30px #ff0000;
        filter: hue-rotate(360deg);
    }
}

@keyframes megaExplosion {
    0% { 
        transform: scale(1);
        opacity: 1;
    }
    25% { 
        transform: scale(2) rotate(90deg);
        opacity: 0.8;
    }
    50% { 
        transform: scale(3) rotate(180deg);
        opacity: 0.6;
    }
    75% { 
        transform: scale(2) rotate(270deg);
        opacity: 0.4;
    }
    100% { 
        transform: scale(1) rotate(360deg);
        opacity: 0;
    }
}

@keyframes powerUpGlow {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(255, 255, 0, 0.5);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 0 40px rgba(255, 255, 0, 1), 0 0 60px rgba(255, 255, 0, 0.8);
        transform: scale(1.1);
    }
}

@keyframes speedLines {
    0% { 
        transform: translateX(-100%);
        opacity: 0;
    }
    50% { 
        opacity: 1;
    }
    100% { 
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .cloud {
        animation: none;
    }
    
    .fruit {
        animation: none;
    }
    
    .start-button {
        animation: none;
    }
    
    .titleBounce {
        animation: none;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(135deg, #2c3e50 0%, #34495e 50%, #7f8c8d 100%);
    }
    
    #game-container {
        background: linear-gradient(135deg, #2c3e50 0%, #34495e 50%, #7f8c8d 100%);
    }
    
    .screen {
        background: linear-gradient(135deg, #2c3e50 0%, #34495e 50%, #7f8c8d 100%);
    }
    
    .score-display, .lives-display, .final-score {
        background: rgba(0, 0, 0, 0.7);
        color: #ecf0f1;
    }
    
    .start-content h1, .game-over-content h2, .pause-content h2 {
        color: #ecf0f1;
    }
    
    .start-content p {
        color: #bdc3c7;
    }
}

/* Final page nefes alma efektleri */
@keyframes finalBreathing {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

@keyframes finalGlow {
    0%, 100% {
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    }
    50% {
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.8), 0 0 30px rgba(255, 255, 255, 0.6);
    }
}

@keyframes finalPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 0 30px rgba(255, 255, 255, 0.6);
    }
}

.breathing-title {
    animation: finalBreathing 3s ease-in-out infinite, finalGlow 2s ease-in-out infinite;
}

.breathing-label {
    animation: finalBreathing 3.5s ease-in-out infinite;
}

.breathing-number {
    animation: finalBreathing 2.5s ease-in-out infinite, finalGlow 1.5s ease-in-out infinite;
    font-weight: bold;
    color: #ffd700;
}

.breathing-button {
    animation: finalPulse 4s ease-in-out infinite;
}

.breathing-score {
    animation: finalBreathing 3.2s ease-in-out infinite;
} 
