﻿:root {
    
    --hyper-casual-font: 'Fredoka', 'Bubblegum Sans', 'Baloo 2', 'Quicksand', cursive, sans-serif;

    
    --cartoon-primary-red: #ff6b6b;
    --cartoon-primary-orange: #ff8e53;
    --cartoon-primary-yellow: #ffeb3b;
    --cartoon-primary-green: #4caf50;
    --cartoon-primary-blue: #2196f3;
    --cartoon-primary-purple: #9c27b0;

    
    --cartoon-gradient-red: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
    --cartoon-gradient-orange: linear-gradient(135deg, #ff8e53 0%, #ffeb3b 100%);
    --cartoon-gradient-yellow: linear-gradient(135deg, #ffeb3b 0%, #ffc107 100%);
    --cartoon-gradient-green: linear-gradient(135deg, #4caf50 0%, #8bc34a 100%);
    --cartoon-gradient-blue: linear-gradient(135deg, #2196f3 0%, #03a9f4 100%);
    --cartoon-gradient-purple: linear-gradient(135deg, #9c27b0 0%, #e91e63 100%);

    
    --cartoon-pastel-yellow: #ffeaa7;
    --cartoon-pastel-orange: #fdcb6e;
    --cartoon-pastel-green: #a8e6cf;
    --cartoon-pastel-blue: #81ecec;
    --cartoon-pastel-pink: #fd79a8;

    
    --cartoon-dark: #2d2d2d;
    --cartoon-darker: #1a1a1a;
    --cartoon-darkest: #0d0d0d;

    
    --cartoon-text-dark: #2d2d2d;
    --cartoon-text-white: #ffffff;
    --cartoon-text-light: #f8f9fa;

    
    --cartoon-shadow-red: #d63031;
    --cartoon-shadow-orange: #e17055;
    --cartoon-shadow-yellow: #f57f17;
    --cartoon-shadow-green: #2e7d32;
    --cartoon-shadow-blue: #1565c0;

    
    --bg-dark: var(--cartoon-dark);
    --bg-darker: var(--cartoon-darker);
    --bg-gradient: linear-gradient(135deg, #87ceeb 0%, #e0f7ff 50%, #fff9e6 100%);
    --panel-bg: rgba(255, 255, 255, 0.9);
    --panel-shadow: rgba(0, 0, 0, 0.3);

    
    --hover-bg: rgba(255, 107, 107, 0.2);
    --border-color: var(--cartoon-primary-blue);
    --border-dark: var(--cartoon-dark);
    --button-hover: #FF1493;
    --text-dark: #FFFFFF;
    --text-light: #FFFFFF;
    --text-muted: rgba(255, 255, 255, 0.65);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

html,
body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    
    font-family: var(--hyper-casual-font);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    
    /* Pull-to-refresh ve browser scrolling'i engelle */
    overscroll-behavior: none;
    overscroll-behavior-y: none;
    overscroll-behavior-x: none;
}

/* Oyun sırasında scroll ve swipe to refresh'i engelle */
body.game-active {
    touch-action: none;
    -webkit-overflow-scrolling: none;
    overscroll-behavior: none;
    overscroll-behavior-y: none;
    overscroll-behavior-x: none;
    position: fixed;
    width: 100%;
    height: 100%;
}

html.game-active {
    overscroll-behavior: none;
    overscroll-behavior-y: none;
    overscroll-behavior-x: none;
    overflow: hidden;
}

body.game-active #game-wrapper {
    touch-action: none;
    overscroll-behavior: none;
    overscroll-behavior-y: none;
    overscroll-behavior-x: none;
    -webkit-overflow-scrolling: none;
    overflow: hidden;
}

body.game-active #game-container {
    touch-action: none;
    overscroll-behavior: none;
    overscroll-behavior-y: none;
    overscroll-behavior-x: none;
    -webkit-overflow-scrolling: none;
    overflow: hidden;
}

#game-content:not(.hidden) {
    touch-action: none;
    overscroll-behavior: none;
    overscroll-behavior-y: none;
    overscroll-behavior-x: none;
    -webkit-overflow-scrolling: none;
    overflow: hidden;
}

#game-content:not(.hidden) * {
    touch-action: none;
}

#game-content:not(.hidden) .general-upgrades,
#game-content:not(.hidden) .upgrade-panels-container,
#game-content:not(.hidden) .upgrade-panel {
    touch-action: pan-y;
    overscroll-behavior: contain;
}


body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    z-index: 9999;
    pointer-events: none;
    animation: hidePreloader 0.3s ease 0.5s forwards;
    
}

@keyframes hidePreloader {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

h1,
h2,
h3,
h4 {
    margin: 0;
    font-family: var(--hyper-casual-font);
    font-weight: 700;
    line-height: 1.3;
}


#game-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    
    transform-origin: center center;
    opacity: 0;
    
    animation: fadeInWrapper 0.4s ease 0.5s forwards;
    
}

@keyframes fadeInWrapper {
    to {
        opacity: 1;
    }
}


#game-container {
    position: relative;
    width: 720px;
    height: 1280px;
    float: left;
    border: none;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    opacity: 0;
    
    animation: fadeInContainer 0.4s ease 0.6s forwards;
    
}

@keyframes fadeInContainer {
    to {
        opacity: 1;
    }
}

#game-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 0;
    padding-bottom: 100px;
    pointer-events: none;
    z-index: 1000;
    visibility: visible;
    opacity: 1;
}

#game-content.hidden {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    z-index: -1 !important;
}

#game-content:not(.hidden) {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 1000 !important;
}

#game-content>* {
    pointer-events: auto;
    
}


#header {
    width: 100%;
    color: var(--text-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--border-color);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

#header .top-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background-image: url('assets/ui/oyun/ust_bar.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    gap: 10px;
    width: 100%;
    position: relative;
    height:70px;
}

#header .currency-item {
    display: flex;
    align-items: center;
    background-color: #000000;
    border-radius: 8px;
    border: 2px solid #333;
    padding: 8px 15px;
    min-width: 80px;
    position: absolute;
    top: 10px;
    pointer-events: auto;
}

#header .currency-item .coin-icon,
#header .currency-item .gem-icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

#header .currency-item .coin-icon {
    background-image: url('assets/icons/coin.png');
}

#header .currency-item .gem-icon {
    background-image: url('assets/icons/gem.png');
}

#header .currency-item .currency-value {
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    font-family: var(--hyper-casual-font);
}

#header .currency-item.currency-left {
    left: 20px;
}

#header .currency-item.currency-right {
    right: 20px;
}

#header .collect-btn {
    order: 1;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    border: 5px solid #000000;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--hyper-casual-font);
    text-transform: uppercase;
    width: 150px;
    position: absolute;
    left: 50%;
    margin-left: -75px;
    z-index: 1000;
    pointer-events: auto;
}

#header .reward-button-wrapper {
    position: absolute;
    top: 50%;
    z-index: 1000;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#header .reward-button-wrapper .reward-banner {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.95) 0%, rgba(255, 165, 0, 0.95) 100%);
    border: 2px solid #FFD700;
    border-radius: 6px;
    padding: 3px 6px;
    white-space: nowrap;
    z-index: 102;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    min-width: 50px;
    text-align: center;
}

#header .reward-button-wrapper .reward-banner-text {
    display: none;
}

#header .reward-button-wrapper .reward-banner-short {
    font-size: 11px;
    font-weight: 900;
    color: #000;
    font-family: var(--hyper-casual-font);
    line-height: 1;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
    letter-spacing: 0.5px;
}

#header .speed-boost-wrapper {
    left: 160px;
}

#header .reward-2x-wrapper {
    right: 160px;
}

#header .speed-boost-btn {
    width: 55px;
    height: 55px;
    background-image: url('assets/ui/ad_double_speed.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--cartoon-primary-red);
    border: solid 2px black;
    border-radius: 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    position: relative;
    overflow: visible;
    animation: rewardPulse 2s ease-in-out infinite;
    cursor: pointer;
    transition: transform 0.3s ease;
    padding: 0;
    top: -30px;
    pointer-events: auto;
}

#header .speed-boost-btn:hover {
    transform: scale(1.15);
    filter: brightness(1.2) drop-shadow(0 8px 16px rgba(255, 215, 0, 0.5));
}

#header .speed-boost-btn.active {
    filter: grayscale(1) brightness(0.7);
    animation: none;
    cursor: not-allowed;
    pointer-events: none;
}

#header .speed-boost-btn:active {
    transform: scale(0.95);
}

#header .collect-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: var(--idle-progress, 0%);
    background: var(--cartoon-gradient-red);
    transition: width 0.3s ease;
    z-index: 1;
}

#header .collect-btn>* {
    position: relative;
    z-index: 1000;
}

#header .collect-text {
    position: relative;
    z-index: 1000;
    color: white;
    font-size: 12px;
    font-weight: 600;
    font-family: var(--hyper-casual-font);
    text-transform: uppercase;

}

#header .collect-btn:hover {
    background: linear-gradient(135deg, #45a049, #3d8b40);
    transform:  scale(1.05);
}

#header .speed-boost-btn .speed-boost-text {
    display: none;
}

#header .collect-btn:active {
    transform: translateY(-50%) scale(0.95);
}

#header .collect-btn.filling {
    background: linear-gradient(135deg, #272727, #2c2c2c);
    border-color: #222222;
}

#header .collect-btn.full {
    background: var(--cartoon-gradient-red);
    border-color: #222222;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

#header .menu-btn {
    background: var(--cartoon-gradient-purple);
    border: 3px solid var(--cartoon-dark);
    border-radius: 8px;
    
    padding: 8px 15px;
    color: var(--cartoon-text-white);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.15s ease;
    flex-shrink: 0;
    font-family: var(--hyper-casual-font);
    font-weight: 700;
    box-shadow:
        0 4px 0 var(--cartoon-shadow-blue),
        0 6px 10px rgba(0, 0, 0, 0.2);
}

#header .menu-btn:hover {
    background: var(--cartoon-gradient-orange);
    transform: translateY(-2px);
    box-shadow:
        0 6px 0 var(--cartoon-shadow-orange),
        0 8px 15px rgba(0, 0, 0, 0.3);
}

#header .menu-btn:active {
    transform: scale(0.95);
}


.collect-idle-btn {
    position: relative;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 8px;
    
    padding: 6px 14px;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin-right: 8px;
    overflow: hidden;
    min-width: 80px;
    z-index: 1;
}

.collect-idle-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: var(--idle-progress, 0%);
    transition: width 0.3s ease, background 0.3s ease;
    z-index: -1;
}

.collect-idle-btn.full::before {
    background: var(--cartoon-shadow-green);
    animation: pulse-bg 1.5s infinite;
}



@keyframes pulse-bg {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.8;
    }
}

.collect-idle-btn:hover {
    transform: scale(1.08);

}

.collect-idle-btn:active {
    transform: scale(0.95);
}

.collect-idle-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    animation: none !important;
}

.collect-idle-btn:disabled:hover {
    transform: none !important;

}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}


.ingame-level-progress {
    position: absolute;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    pointer-events: none;
    display: flex;
    align-items: center;

}

.level-progress-container {
    position: relative;
    width: 446px;
    height: 40px;
    background-image: url('assets/ui/oyun/level_ilerleme_bg.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    pointer-events: none;
}

.ingame-level-progress .achievements-btn {
    background-color: #0087ff;
    border: 2px solid #333;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
    z-index: 101;
    height: 40px;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    overflow: hidden;
    position: absolute;
    right: -90px;
    top: 0px;
}

.ingame-level-progress .achievements-btn:hover {
    transform: scale(1.05);
    border-color: #555;
}

.ingame-level-progress .achievements-btn:active {
    transform: scale(0.95);
}

.level-progress-fill {
    position: absolute;
    left: 10px;
    top: 15%;
    height: 60%;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    width: 10px;
    
    transition: width 0.3s ease;
    z-index: 1;
    border-radius: 10px 0 0 10px;
}

.level-progress-text {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 18px;
    font-weight: 800;
    color: white;
    font-family: var(--hyper-casual-font);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    z-index: 2;
}



#header .progress-bar-bg {
    flex: 1;
    height: 8px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid var(--primary-neon-yellow);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.8);
}

#header .progress-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary-neon-orange) 0%, var(--primary-neon-yellow) 50%, var(--primary-neon-green) 100%);
    border-radius: 10px;
    transition: width 0.3s ease;
}


#game-area {
    width: 100%;
    flex: 1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 0;
    position: relative;
    overflow: hidden;
    
    border: none;
    z-index: 10;
    
    padding: 0;
    margin: 0;
    margin-bottom: -30px;
    pointer-events: auto;
    top: 0px;
    
    /* Pull-to-refresh ve scroll engelleme */
    touch-action: none;
    overscroll-behavior: none;
    overscroll-behavior-y: none;
    overscroll-behavior-x: none;
    -webkit-overflow-scrolling: none;
}


#bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #00193da4;
    
    opacity: 0.5;
    z-index: 1;
    
    pointer-events: none;
    
}


#l9m3n7p1-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 70;
    pointer-events: none;
}

@keyframes mosaicFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }

    60% {
        transform: scale(1.08);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}


.mosaic {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 60;
    
    will-change: background-color, opacity, transform;
    transform: translateZ(0);
    backface-visibility: hidden;
    transform: translate3d(0, 0, 0) scale(0.3);
    
    opacity: 0;
    
    cursor: pointer;
    user-select: none;
    
    /* Tekrar eden texture - tüm mozaikler üzerinde tek bütün gibi görünür */
    background-image: url('assets/mosaic_texture.jpg');
    background-repeat: repeat;
    background-blend-mode: multiply; /* Renk ile texture karışır */
    /* background-position her mozaik için ayrı ayrı JS ile ayarlanacak */
    
    pointer-events: auto;
    

    
    box-sizing: border-box;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;

    border: none;
    border-radius: 0;
    box-shadow: none;
}


.mosaic.animate {
    animation: mosaicFadeIn 0.8s ease-out forwards;
}

.mosaic-health {
    font-size: 24px;
    font-weight: 800;
    color: #ffffff;
    pointer-events: none;
    text-shadow:
        -2px -2px 0 #000,
        2px -2px 0 #000,
        -2px 2px 0 #000,
        2px 2px 0 #000,
        -2px 0 0 #000,
        2px 0 0 #000,
        0 -2px 0 #000,
        0 2px 0 #000,
        0 0 4px rgba(0, 0, 0, 0.8);
}

.mosaic.hit {
    animation: hitFlash 0.15s ease-out !important;
    animation-fill-mode: none !important;
}


.mosaic.critical-hit {
    animation: criticalHitFlash 0.15s ease-out !important;
    animation-fill-mode: none !important;
}


.mosaic.destroyed {
    animation: shatterBreak 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards !important;
    pointer-events: none;
}

@keyframes hitFlash {
    0% {
        transform: scale(1);
        filter: brightness(1);
    }

    50% {
        transform: scale(0.9);
        filter: brightness(1.3);
    }

    100% {
        transform: scale(1);
        filter: brightness(1);
    }
}

@keyframes criticalHitFlash {
    0% {
        transform: scale(1);
        filter: brightness(1) saturate(1);
    }

    25% {
        transform: scale(0.85);
        filter: brightness(2) saturate(2);
    }

    50% {
        transform: scale(1.1);
        filter: brightness(1.8) saturate(1.8) drop-shadow(0 0 10px rgba(255, 255, 0, 0.8));
    }

    100% {
        transform: scale(1);
        filter: brightness(1) saturate(1);
    }
}

@keyframes shatterBreak {
    0% {
        transform: scale(1);
        opacity: 1;
        stroke-width: 2;
    }

    15% {
        transform: scale(1.15) rotate(3deg);
        opacity: 1;
        stroke-width: 8;
        stroke: var(--primary-neon-pink);
    }

    30% {
        transform: scale(0.9) rotate(-4deg);
        opacity: 0.95;
    }

    50% {
        transform: scale(1.08) rotate(2deg);
        opacity: 0.8;
    }

    70% {
        transform: scale(0.5) rotate(-8deg);
        opacity: 0.4;
    }

    85% {
        transform: scale(0.2) rotate(15deg);
        opacity: 0.15;
    }

    100% {
        transform: scale(0) rotate(25deg);
        opacity: 0;
    }
}


.bomb-explosion,
.pulse-wave,
.laser-beam {
    will-change: transform, opacity;
    backface-visibility: hidden;
}


.health-text {
    display: block;
    font-family: var(--hyper-casual-font);
    font-size: 24px;
    font-weight: 900;
    color: white;
    text-align: center;
    pointer-events: none;
    user-select: none;
    stroke: #1a1a2e;
    stroke-width: 5px;
}


.damage-popup {
    position: absolute;
    font-size: 28px;
    font-weight: 900;
    color: #ff3333;
    
    will-change: transform, opacity;
    transform: translateZ(0);
    pointer-events: none;
    z-index: 20;
    animation: popupFloat 1.5s ease-out forwards;
    font-family: var(--hyper-casual-font);
}


.damage-popup.critical {
    font-size: 36px;
    
    color: #ffd700;
    
    animation: criticalPopupFloat 2s ease-out forwards;
    
    will-change: transform, opacity;
    transform: translateZ(0);
}

@keyframes criticalPopupFloat {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.3) rotate(-10deg);
    }

    20% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.5) rotate(5deg);
    }

    40% {
        transform: translate(-50%, -50%) scale(1.2) rotate(-2deg);
    }

    60% {
        transform: translate(-50%, -50%) scale(1.0) rotate(0deg);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8) translateY(-60px);
    }
}

@keyframes popupFloat {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }

    15% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.3);
    }

    70% {
        opacity: 1;
        transform: translate(-50%, -40px) scale(1);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -60px) scale(0.8);
    }
}


#z2n4m8p6 {
    position: absolute;
    width: 85.3333px;
    height: 115.2px;
    background-image: url('assets/silahlar/turet.png');
    background-repeat: no-repeat;
    background-position: 0 0;
    background-size: 768px 115.2px;
    z-index: 100;
    transform: translate(-50%, -50%);
}


.bullet-container {
    position: absolute;
    z-index: 100;
    
    pointer-events: none;
    
    width: 20px;
    height: 30px;
    
    transform: translate(-50%, -50%);
    
    will-change: transform;
    backface-visibility: hidden;
}


.bullet-triangle {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url('assets/mermiler/mermi1.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    top: 0;
    left: 0;
        transform: scale(1.3);

}


.bullet2 .bullet-triangle {
    background-image: url('assets/mermiler/mermi2.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    
    transform: scale(1.8);
}

.bullet2 .bullet-trail {
    background-image: url('assets/mermiler/merrmi_iz2.png');
}


.bullet-trail {
    position: absolute;
    width: 10px; 
    height: 45px; 
    background-image: url('assets/mermiler/merrmi_iz1.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.2;
    z-index: -1; 
    pointer-events: none;
    transform-origin: center bottom; 
    
    top: 15px; 
    left: 50%;
    transform: translateX(-50%);
}


.laser-beam {
    position: absolute;
    height: 8px;
    
    transform-origin: 0 50%;
    pointer-events: none;
    z-index: 100;
    
    background: #FF69B4;
    box-shadow: 0 0 10px #FF69B4, 0 0 20px #FF69B4;
}


.bomb {
    position: absolute;
    width: 32px;
    height: 32px;
    background-image: url('assets/mermiler/mermi4.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 100;
    
    pointer-events: none;
    transform: translate(-50%, -50%);
    animation: bombSpin 0.5s linear infinite;
    
}

@keyframes bombSpin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}


.bomb-explosion {
    position: absolute;
    background: rgba(255, 0, 0, 0.7);
    border-radius: 50%;
    
    animation: explode 0.4s ease-out forwards;
    z-index: 100;
    
    pointer-events: none;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.8);
}

@keyframes explode {
    0% {
        transform: scale(0);
        opacity: 1;
    }

    100% {
        transform: scale(1.2);
        opacity: 0;
    }
}


.chain-lightning {
    position: absolute;
    height: 10px;
    background: #32CD32;
    transform-origin: 0 50%;
    z-index: 100;
    
    pointer-events: none;
    animation: chainFadeOut 1000ms ease-out forwards;
    box-shadow: 0 0 12px #32CD32, 0 0 20px #32CD32;
}

@keyframes chainFadeOut {
    0% {
        opacity: 1;
        height: 10px;
    }
    70% {
        opacity: 0.9;
        height: 8px;
    }
    100% {
        opacity: 0;
        height: 4px;
    }
}


.pulse-wave {
    position: absolute;
    z-index: 10;
    
    pointer-events: none;
    background-image: url('assets/mermiler/mermi6.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 50%;
    animation: pulseWobble 1.5s ease-in-out infinite;
}

@keyframes pulseWobble {
    0% {
        transform: rotate(-10deg);
    }
    25% {
        transform: rotate(10deg);
    }
    50% {
        transform: rotate(-10deg);
    }
    75% {
        transform: rotate(10deg);
    }
    100% {
        transform: rotate(-10deg);
    }
}




#button-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 10px;
    gap: 15px;
}


#upgrade-container {
    display: none;
}

#upgrade-container::-webkit-scrollbar {
    width: 6px;
}

#upgrade-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

#upgrade-container::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 136, 0.5);
    border-radius: 10px;
}

#upgrade-container::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 136, 0.8);
}


.weapon-selector {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 130px;
    z-index: 9999 !important;
    justify-content: center;
    align-items: flex-end;
    overflow: visible;
}


#game-content:not(.hidden) .weapon-selector {
    display: flex !important;
    visibility: visible !important;
}

.weapon-title-bar {
    display: none;
    
}

.weapon-buttons-container {
    display: flex !important;
    flex-direction: row;
    gap: 0;
    padding: 0;
    margin: 0;
    width: 100%;
    height: 100px;
    align-items: flex-end;
    justify-content: flex-start;
    pointer-events: auto !important;
    position: relative;
    background-color: #292734;
    overflow: visible;
}

.weapon-select-btn {
    
    width: calc(100vw / 6);
    height: 100px;
    background: transparent;
    background-image: url('assets/ui/oyun/silah_bg.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    border: none;
    padding: 0;
    padding-bottom: 10px;
    margin: 0;
    font-family: var(--hyper-casual-font);
    cursor: pointer !important;
    font-size: 18px;
    transition: all 0.15s ease;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 700;
    text-align: center;
    box-shadow: none;
    transform: translateY(0);
    position: relative;
    z-index: 1;
    pointer-events: auto !important;
    user-select: none;
    flex: 0.7;
}



.weapon-select-btn:hover:not(.active) {
    transform: scale(1.05);
    z-index: 2;
    transition: all 0.15s ease;
}

.weapon-select-btn.active {
    
    width: calc(100vw / 9);
    height: 100px;
    background: transparent;
    background-image: url('assets/ui/oyun/silah_secili_bg.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 3;
    flex: 1.0;
}

.weapon-select-btn .weapon-icon {
    display: block;
    width: 80px;
    height: 80px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin: 0;
    padding: 0;
    transition: all 0.15s ease;
    
    filter: drop-shadow(3px 3px 0 rgba(0, 0, 0, 0.3));
    pointer-events: none;
}


.weapon-select-btn[data-weapon="1"] .weapon-icon {
    background-image: url('assets/silahlar/silah1.png');
}

.weapon-select-btn[data-weapon="2"] .weapon-icon {
    background-image: url('assets/silahlar/silah2.png');
}

.weapon-select-btn[data-weapon="3"] .weapon-icon {
    background-image: url('assets/silahlar/silah3.png');
}

.weapon-select-btn[data-weapon="4"] .weapon-icon {
    background-image: url('assets/silahlar/silah4.png');
}

.weapon-select-btn[data-weapon="5"] .weapon-icon {
    background-image: url('assets/silahlar/silah5.png');
}

.weapon-select-btn[data-weapon="6"] .weapon-icon {
    background-image: url('assets/silahlar/silah6.png');
}



.weapon-select-btn.active .weapon-icon {
    
    transform: translateY(-5px) scale(1.05);
    
    filter: drop-shadow(4px 4px 0 rgba(0, 0, 0, 0.4));
}

.weapon-select-btn.locked {
    filter: grayscale(100%) brightness(0.7);
    
    opacity: 0.8;
    cursor: pointer;
}

.weapon-select-btn.locked .weapon-icon {
    filter: grayscale(100%) brightness(0.7) drop-shadow(3px 3px 0 rgba(0, 0, 0, 0.3));
    opacity: 0.6;
}

.weapon-lock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    z-index: 2;
    cursor: pointer;
    user-select: none;
    
    will-change: opacity;
    backface-visibility: hidden;
}


.unlock-progress-container {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: rgba(34, 29, 29, 0.938);
    overflow: hidden;
}

.unlock-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #4caf50, #8bc34a, #cddc39);
    transition: width 0.05s linear;
    
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.6);
}


.lock-icon {
    width: 48px;
    height: 48px;
    background-image: url('assets/icons/lock.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5));
    transition: transform 0.3s ease;
}

.weapon-lock-overlay.holding .lock-icon {
    animation: lockShake 0.3s infinite, lockGrow 1s ease-in-out;
}

.weapon-lock-overlay.unlocking {
    animation: fadeOut 0.3s ease-out forwards;
    
}

@keyframes lockShake {

    0%,
    100% {
        transform: translateX(0) scale(1);
    }

    25% {
        transform: translateX(-3px) scale(1.08);
    }

    75% {
        transform: translateX(3px) scale(1.08);
    }
}

@keyframes lockGrow {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }

    100% {
        transform: scale(1.1);
    }
}

@keyframes fadeOut {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    100% {
        opacity: 0;
        transform: scale(0.8);
    }
}


.unlock-cost {
    font-size: 18px;
    font-weight: 700;
    color: #ffc107;
    font-family: var(--hyper-casual-font);
}

.weapon-select-btn.locked:hover {
    background: var(--cartoon-gradient-green);
    opacity: 0.8;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-10px);
    }

    75% {
        transform: translateX(10px);
    }
}


.shake-animation {
    animation: shake 0.3s cubic-bezier(0.36, 0.07, 0.19, 0.97) !important;
}

.weapon-select-btn .weapon-name {
    display: none;
}

.weapon-select-btn .weapon-cost {
    font-size: 8px;
    margin-top: 1px;
    font-weight: 600;
    line-height: 1;
    color: inherit;
}


.upgrade-panel {
    display: none;
    flex-direction: row;
    gap: 0px;
    padding: 0px;
    width: 100%;
    height: 260px;
    
    position: absolute;
    top: 0px;
    left: 0;
    z-index: 50;
    overflow-y: visible;
    overflow-x: hidden;
    scroll-behavior: smooth;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    background-color: rgba(25, 25, 112, 0.295);
    
}

.upgrade-panel::-webkit-scrollbar {
    height: 8px;
}

.upgrade-panel::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.upgrade-panel::-webkit-scrollbar-thumb {
    background: var(--cartoon-gradient-green);
    border-radius: 4px;
}

.upgrade-panel::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #ff9800 0%, #ffc107 100%);
}

.upgrade-panel.active {
    display: flex;
    
    opacity: 1;
}

.upgrade-panel:active {
    cursor: grabbing;
}

.upgrade-panels-container {
    position: fixed;
    bottom: 90px;
    
    left: 0;
    width: 100%;
    height: 250px;
    
    overflow: visible;
    
    z-index: 90;
    opacity: 0;
    pointer-events: none;
    display: none;
    
}


.upgrade-panels-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(25, 25, 112, 0.7);
    
    z-index: -1;
    pointer-events: none;
}

.upgrade-panels-container.show {
    opacity: 1;
    display: block;
    
}

.upgrade-panels-container.show .upgrade-panel {
    pointer-events: auto;
}

.upgrade-panels-container.show .upgrade-panel.active {
    pointer-events: auto;
}


.upgrade-row {
    width: 140px;
    height: 150px;
    background-image: url('assets/ui/weapon_arka_plan.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    border-radius: 12px;
    padding: 15px 10px 10px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    position: relative;
    margin: 0;
    top: 50px;
    pointer-events: auto;
    
}







.upgrade-value {
    color: #666666;
    font-size: 12px;
    font-weight: 500;
}

.upgrade-cost {
    color: var(--primary-neon-orange);
    font-size: 16px;
    font-weight: 800;
    display: block;
    text-align: center;
    margin-bottom: 8px;
    font-family: var(--hyper-casual-font);
}


.upgrade-element {
    width: 150px;
    height: 240px;
    top: 1px;
    background-image: url('assets/ui/oyun/UpgradeElementBG.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    border: none;
    border-radius: 0;
    padding: 0;
    margin: 0 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    position: relative;
    flex-shrink: 0;
    color: #ffffff;
    font-family: var(--hyper-casual-font);
}


.upgrade-icon {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 75px;
    height: 80px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: drop-shadow(2px 2px 0 rgba(0, 0, 0, 0.8));
}


.upgrade-element[data-upgrade="damage"] .upgrade-icon {
    background-image: url('assets/silahlar/gelistirme/hasar.png');
}

.upgrade-element[data-upgrade="speed"] .upgrade-icon {
    background-image: url('assets/silahlar/gelistirme/mermi_hizi.png');
}

.upgrade-element[data-upgrade="attackSpeed"] .upgrade-icon {
    background-image: url('assets/silahlar/gelistirme/ates_hizi.png');
}

.upgrade-element[data-upgrade="lifetime"] .upgrade-icon {
    background-image: url('assets/silahlar/gelistirme/mermi_yasam_suresi.png');
}

.upgrade-element[data-upgrade="criticalChance"] .upgrade-icon {
    background-image: url('assets/silahlar/gelistirme/krit_sans.png');
}

.upgrade-element[data-upgrade="criticalDamage"] .upgrade-icon {
    background-image: url('assets/silahlar/gelistirme/kritik_dmg.png');
}

.upgrade-element[data-upgrade="radius"] .upgrade-icon {
    background-image: url('assets/silahlar/gelistirme/bomba_range.png');
}


.upgrade-element[data-upgrade="k8m2p6n4"] .upgrade-icon {
    background-image: url('assets/ana_gelistirme/tiklama_dmg.png');
}

.upgrade-element[data-upgrade="c7z3b9n1"] .upgrade-icon {
    background-image: url('assets/ana_gelistirme/tiklama_kritik_sans.png');
}

.upgrade-element[data-upgrade="g5h1j7k3"] .upgrade-icon {
    background-image: url('assets/ana_gelistirme/tiklama_kritik_hasar.png');
}

.upgrade-element[data-upgrade="m9l3p7r5"] .upgrade-icon {
    background-image: url('assets/ana_gelistirme/tiklama_oto.png');
}

.upgrade-element[data-upgrade="j4h8v2x6"] .upgrade-icon {
    background-image: url('assets/ana_gelistirme/para_carpan.png');
}

.upgrade-element[data-upgrade="f6d4s8l2"] .upgrade-icon {
    background-image: url('assets/ana_gelistirme/idle_artis.png');
}

.upgrade-element[data-upgrade="t9r5y1u7"] .upgrade-icon {
    background-image: url('assets/ana_gelistirme/idle_max_depo.png');
}

.upgrade-element[data-upgrade="w3q7e1i5"] .upgrade-icon {
    background-image: url('assets/ana_gelistirme/elmas_mozaik.png');
}

.upgrade-element[data-upgrade="o1p5a9s3"] .upgrade-icon {
    background-image: url('assets/ana_gelistirme/altin_mozaik.png');
}


.upgrade-stat {
    font-size: 25px;
    position: absolute;
    top: 120px;
    left: 50%;
    transform: translateX(-110%);
    font-weight: bold;
    color: #ffffff;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.8);
    margin-top: -10px;
    text-align: right;
    white-space: nowrap;
}


.upgrade-increase {
    font-size: 18px;
    position: absolute;
    top: 135px;
    left: 50%;
    transform: translateX(0%);
    font-weight: bold;
    color: #4be24b;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.8);
    margin-top: -20px;
    text-align: left;
    white-space: nowrap;
}


.upgrade-btn {
    min-width: 100px;
    position: absolute;
    height: 40px;
    background: #ffba01;
    border: 2px solid #2b300f;
    border-radius: 6px;
    color: #ffffff;
    cursor: pointer;
    font-size: 24px;
    font-weight: bold;
    top: 145px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 12px;
    box-sizing: border-box;
    white-space: nowrap;
}

.upgrade-btn img {
    flex-shrink: 0;
}


.weapon-upgrade-btn::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    background-image: url('assets/icons/coin.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    vertical-align: middle;
    margin-right: 6px;
    margin-bottom: 3px;
}

.upgrade-btn:hover {
    transform: scale(1.05);
    background: #ffcd43;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.upgrade-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: linear-gradient(135deg, #666666 0%, #888888 100%);
    transform: none;
}
.upgrade-level{
    font-size: 20px;
}

.upgrade-name {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 23px;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.8);
    text-align: center;
    line-height: 1.1;
    width: 90%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}


.upgrade-name.long-text {
    font-size: 18px;
}

.upgrade-name.very-long-text {
    font-size: 16px;
}

.upgrade-name.extremely-long-text {
    font-size: 13px;
}


#home-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/ui/menu_bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 2000;
    transition: opacity 0.3s;
    display: flex;
    flex-direction: column;
    visibility: visible;
    opacity: 1;
}

#home-screen.hidden {
    opacity: 0 !important;
    pointer-events: none !important;
    display: none !important;
    visibility: hidden !important;
    z-index: -1 !important;
}

#home-screen:not(.hidden) {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 2000 !important;
}


.menu-header {
    display: none;
}


















.idle-bar-fill {
    background: linear-gradient(90deg, #ffd700, #ffaa00, #ff8800);
    height: 100%;
    width: 0%;
    transition: width 0.3s ease, background 0.3s ease;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
}

.idle-bar-fill.full {
    background: linear-gradient(90deg, #00ff88, #00cc66, #00aa55);
    animation: pulse-glow 1.5s infinite;
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 15px rgba(0, 255, 136, 0.6);
    }

    50% {
        box-shadow: 0 0 30px rgba(0, 255, 136, 1);
    }
}




.menu-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}


.menu-sidebar {
    order: 2;
    width: 100%;
    background: transparent;
    
    padding: 0;
    
    display: flex;
    flex-direction: row;
    justify-content: center;
    
    align-items: flex-end;
    
    gap: 0;
    
    position: absolute;
    
    bottom: 0;
    
    left: 0;
    right: 0;
    height: 182px;
    
    pointer-events: none;
    
}

.menu-sidebar>* {
    pointer-events: auto;
    
}

.menu-tab {
    
    width: 347px;
    height: 100px;
    background: transparent;
    
    background-image: url('assets/ui/ana_menu_alt_buton.png');
    
    background-size: 100% 100%;
    
    background-repeat: no-repeat;
    background-position: center;
    border: none;
    
    padding: 0;
    
    border-radius: 0;
    
    cursor: pointer;
    transition: all 0.15s ease;
    
    color: #ffffff;
    font-size: 18px;
    
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    
    font-family: var(--hyper-casual-font);
    font-weight: 700;
    text-align: center;
    padding-top: 0;
    
    padding-bottom: 10px;
    
    box-shadow: none;
    
    transform: translateY(0);
    position: relative;
    
    z-index: 1;
    margin-left: -2px;
    
}

.menu-tab:first-child {
    margin-left: 0;
    
}

.menu-tab .tab-icon {
    font-size: 65px;
    
    filter: drop-shadow(3px 3px 0 rgba(0, 0, 0, 0.3));
    
    transition: all 0.15s ease;
    
    transform: translateY(0);
    
    text-shadow:
        -1px -1px 0 #000,
        1px -1px 0 #000,
        -1px 1px 0 #000,
        1px 1px 0 #000;
    
    
}


.menu-tab .tab-icon-play {
    background-image: url('assets/ui/oyna_menu.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    display: inline-block;
    width: 120px;
    height: 120px;
    font-size: 0;
}

.menu-tab .tab-icon-upgrades {
    background-image: url('assets/ui/upgrade_menu.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    display: inline-block;
    width: 70px;
    height: 100px;
    font-size: 0;
}

.menu-tab .tab-icon-leaderboard {
    background-image: url('assets/ui/leaderboard_menu.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    display: inline-block;
    width: 100px;
    height: 100px;
    font-size: 0;
}

.menu-tab .tab-icon-settings {
    background-image: url('assets/ui/settings_menu.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    display: inline-block;
    width: 100px;
    height: 100px;
    font-size: 0;
}

.menu-tab .tab-name {
    display: none;
    
    font-size: 20px;
    
    line-height: 1.2;
    text-shadow:
        -1px -1px 0 #000,
        1px -1px 0 #000,
        -1px 1px 0 #000,
        1px 1px 0 #000,
        2px 2px 4px rgba(0, 0, 0, 0.5);
    
    font-weight: 800;
    
    transform: translateY(-10px);
    
}

.menu-tab:hover {
    
    transform: scale(1.05);
    z-index: 2;
    
    transition: all 0.15s ease;
    
}

.menu-tab:hover .tab-icon {
    transform: translateY(0) scale(1.1);
    
}

.menu-tab.active {
    
    width: 430px;
    height: 120px;
    background: transparent;
    
    background-image: url('assets/ui/ana_menu_alt_buton_secili.png');
    
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    color: #fff;
    transform: translateY(0);
    z-index: 3;
    
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    
}

.menu-tab.active .tab-icon {
    position:absolute   ;
    top:10px;
    font-size: 72px;
    transform: translateY(-10px) scale(1.1);
    
    filter: drop-shadow(4px 4px 0 rgba(0, 0, 0, 0.4));
    text-shadow:
        -1px -1px 0 #000,
        1px -1px 0 #000,
        -1px 1px 0 #000,
        1px 1px 0 #000;
    
}

.menu-tab.active .tab-name {
    font-size: 23px;
    
    text-shadow:
        -1px -1px 0 #000,
        1px -1px 0 #000,
        -1px 1px 0 #000,
        1px 1px 0 #000,
        3px 3px 6px rgba(0, 0, 0, 0.6);
    
    transform: translateY(-10px);
    
}

.menu-tab:active {
    
    transform: scale(0.98);
    transition: all 0.1s ease;
    
}

.menu-tab.active:active {
    
    transform: translateY(0) scale(0.98);
    
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transition: all 0.1s ease;
    
}





.corner-button {
    position: absolute;
    width: 60px;
    height: 60px;
    background: #FFD700;
    
    border: 3px solid #FFA500;
    
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 100;
}

.corner-button:hover {
    transform: scale(1.1);
    background: #FFED4E;
    
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}


.corner-button.bottom-left {
    bottom: 400px;
    left: 20px;
}

.corner-button.bottom-right {
    bottom: 400px;
    right: 20px;
}

.corner-button-wrapper {
    position: absolute;
    bottom: 400px;
    right: 20px;
    display: inline-block;
}

.corner-button-wrapper .corner-button.bottom-right {
    position: relative;
    bottom: auto;
    right: auto;
}

.corner-button-wrapper .reward-banner {
    position: absolute;
    top: 70%;
    left: 50%;
    transform: translateX(-50%);
    height: 30px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.95) 0%, rgba(255, 165, 0, 0.95) 100%);
    border: 2px solid #FFD700;
    border-radius: 8px;
    padding: 0 8px;
    white-space: nowrap;
    z-index: 101;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    min-width: 74px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reward-banner {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.95) 0%, rgba(255, 165, 0, 0.95) 100%);
    border: 2px solid #FFD700;
    border-radius: 8px;
    padding: 4px 8px;
    white-space: nowrap;
    z-index: 101;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    min-width: 50px;
    text-align: center;
}

.reward-banner-text {
    display: none;
}

.reward-banner-short {
    font-size: 11px;
    font-weight: 900;
    color: #000;
    font-family: var(--hyper-casual-font);
    line-height: 1;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
    letter-spacing: 0.5px;
}

.corner-button-wrapper .reward-banner .reward-banner-short {
    line-height: 30px;
    font-size: 18px;
}

#achievements-corner-btn {
    background-image: url('assets/ui/achıevments.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    width: 80px;
    height: 80px;
}

#achievements-corner-btn:hover {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    transform: scale(1.05);
}

/* 2x Reward Button */
#reward-2x-btn {
    width: 80px;
    height: 80px;
    background-image: url('assets/ui/ad_double_money.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--cartoon-primary-red);
    border: solid 2px black;
    border-radius: 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    position: absolute;
    overflow: visible;
    animation: rewardPulse 2s ease-in-out infinite;
    cursor: pointer;
    right: 20px;
    bottom: 400px;
    transition: transform 0.3s ease;
    padding: 0;
}

.corner-button-wrapper #reward-2x-btn {
    position: relative;
    bottom: auto;
    right: auto;
}

/* Shine efekti kaldırıldı - görsel yeterli */

@keyframes rewardPulse {
    0%, 100% {
        filter: brightness(1) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
        transform: scale(1);
    }
    50% {
        filter: brightness(1.1) drop-shadow(0 6px 12px rgba(255, 215, 0, 0.4));
        transform: scale(1.05);
    }
}

@keyframes rewardShine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

#reward-2x-btn:hover {
    transform: scale(1.15);
    filter: brightness(1.2) drop-shadow(0 8px 16px rgba(255, 215, 0, 0.5));
}

#reward-2x-btn.active,
#header .reward-2x-btn.active {
    filter: grayscale(1) brightness(0.7);
    animation: none;
    cursor: not-allowed;
    pointer-events: none;
}

#header .reward-2x-btn {
    width: 55px;
    height: 55px;
    background-image: url('assets/ui/ad_double_money.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--cartoon-primary-red);
    border: solid 2px black;
    border-radius: 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    position: relative;
    overflow: visible;
    animation: rewardPulse 2s ease-in-out infinite;
    cursor: pointer;
    transition: transform 0.3s ease;
    padding: 0;
    top: -30px;
    pointer-events: auto;
}

#header .reward-2x-btn:hover {
    transform: scale(1.15);
    filter: brightness(1.2) drop-shadow(0 8px 16px rgba(255, 215, 0, 0.5));
}

#header .reward-2x-btn:active {
    transform: scale(0.95);
}

#header .reward-2x-btn .reward-timer {
    position: absolute;
    top: 10px;
    left: 0;
    right: 0;
    bottom: 0;
    color: white;
    font-size: 16px;
    font-weight: 900;
    font-family: var(--hyper-casual-font);
    padding: 0;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 1001;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9), 0 0 8px rgba(0, 0, 0, 0.6);
    opacity: 1 !important;
    filter: none !important;
}

.reward-timer {
    font-size: 33px;
    font-weight: 900;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9), 0 0 8px rgba(0, 0, 0, 0.6);
    font-family: 'Fredoka', sans-serif;
    z-index: 110;
    padding: 3px 8px;
    border-radius: 8px;
    position: absolute;
    /* Button'un altında konumlan (button right: 20px, bottom: 400px) */
    bottom: 419px;
    right: 25px;
    pointer-events: none;
}

#header .reward-2x-btn .reward-timer,
#header .speed-boost-btn .reward-timer {
    position: absolute;
    top: 10px;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 1001;
    opacity: 1 !important;
    filter: none !important;
    font-size: 16px;
}



.menu-main {
    flex: 1;
    order: 1;
    padding: 0;
    padding-bottom: 0;
    
    overflow-y: auto;
    overflow-x: hidden;
    background: transparent;
    position: relative;
}

.menu-main::-webkit-scrollbar {
    width: 4px;
}

.menu-main::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.5);
}

.menu-main::-webkit-scrollbar-thumb {
    background: var(--primary-neon-cyan);
    border-radius: 10px;
}

.tab-content {
    display: none;
    height: 100%;
    position: relative;
}

.tab-content.active {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

#tab-play {
    position: relative;
    height: 100%;
}

.tab-title {
    font-size: 38px;
    color: var(--primary-neon-cyan);
    margin-bottom: 30px;
    font-family: var(--hyper-casual-font);
    font-weight: 800;
    flex-shrink: 0;
    text-align: center;
    padding: 15px 30px;
    background-image: url('assets/ui/para_arkaplan.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    display: inline-block;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin-left: -10px;
    margin-right: -10px;
}


#tab-play .tab-title {
    display: none;
}






.level-preview-card {
    margin: 15px auto;
    width: 380px;
    height: 380px;
    border-radius: 20px;
    top: -66px;
    transition: transform 0.3s ease;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);

}



.level-preview-image {
    width: 100%;
    height: 100%;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    animation: float-bounce 15s ease-in-out infinite;
    top: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}



@keyframes float-bounce {

    0%,
    100% {
        transform: translateY(0px) scale(1);
    }

    50% {
        transform: translateY(-15px) scale(1.05);
    }
}

.level-preview-info {
    position: absolute;
    text-align: center;
    display: flex;
    width: 100%;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    align-items: center;
    justify-content: center;
    color: var(--cartoon-text-light);

}

.level-preview-number {
    font-size: 32px;
    font-weight: 900;
    color: #2d2d2d;
    font-family: var(--hyper-casual-font);
    text-shadow:
        3px 3px 0 rgba(70, 68, 68, 0.8),
        -1px -1px 0 rgba(0, 0, 0, 0.1);
    color: var(--cartoon-text-light);

}

.big-play-button {

    width: 40%;
    height: 20%;
    position: fixed;
    top: 421px;
    left: 30%;
    padding: 25px;
    background-image: url('assets/ui/play_button.png');
    background-color: transparent;
    background-size: 100% 100%;
    border: none;
    outline: none;
    box-shadow: none;
    cursor: pointer;
    transition: all 0.15s ease;

    filter: drop-shadow(4px 4px 0 rgba(0, 0, 0, 0.3));


}

.big-play-button:hover {
    transform: scale(1.05);

    filter: drop-shadow(4px 4px 0 rgba(0, 0, 0, 0.3));
}

.big-play-button:active {
    filter: drop-shadow(4px 4px 0 rgba(0, 0, 0, 0.3));
}

.bottom-section {
    margin-top: auto;
    padding: 15px 0 20px;
    flex-shrink: 0;
}


.idle-storage-cartoon {
    position: absolute;
    top: 986px;
    
    left: 50%;
    transform: translateX(-50%);
    max-width: 641px;
    width: 90%;
    padding: 12px;
    background: linear-gradient(135deg, #01acce 0%, #01acce 100%);
    border-radius: 8px;
    
    border: 4px solid #2d2d2d;
    box-shadow:
        0 6px 0 #1a1a1a,
        0 8px 12px rgba(0, 0, 0, 0.4);
    z-index: 100;
    
}

.idle-bar-wrapper {
    position: relative;
    margin-bottom: 10px;
}

.idle-bar-bg-cartoon {
    position: relative;
    width: 100%;
    height: 45px;
    background: linear-gradient(180deg, #ffffff 0%, #f0f0f0 100%);
    border-radius: 8px;
    
    border: 3px solid #2d2d2d;
    overflow: hidden;
    box-shadow:
        inset 0 3px 6px rgba(0, 0, 0, 0.15),
        0 2px 0 rgba(255, 255, 255, 0.5);
}

.idle-bar-fill-cartoon {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(135deg, #ffeb3b 0%, #ffc107 50%, #ff9800 100%);
    transition: width 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55), background 0.3s ease;
    box-shadow:
        inset 0 2px 8px rgba(255, 255, 255, 0.6),
        inset 0 -2px 8px rgba(0, 0, 0, 0.2);
}

.idle-bar-fill-cartoon.full {
    background: linear-gradient(135deg, #4caf50 0%, #8bc34a 50%, #cddc39 100%);
    animation: bounce-glow 1s infinite;
}

@keyframes bounce-glow {

    0%,
    100% {
        filter: brightness(1);
        transform: scaleY(1);
    }

    50% {
        filter: brightness(1.2);
        transform: scaleY(1.05);
    }
}

.idle-amount-cartoon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20px;
    font-weight: 900;
    color: #2d2d2d;
    text-shadow:
        2px 2px 0 rgba(255, 255, 255, 0.8),
        -1px -1px 0 rgba(0, 0, 0, 0.1);
    font-family: var(--hyper-casual-font);
    z-index: 5;
    pointer-events: none;
}

.idle-collect-btn-cartoon {
    width: 100%;
    background: var(--cartoon-gradient-red);
    border: 4px solid #2d2d2d;
    border-radius: 8px;
    
    padding: 14px;
    color: #fff;
    font-size: 18px;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.15s ease;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-family: var(--hyper-casual-font);
    box-shadow:
        0 5px 0 #c62828,
        0 7px 10px rgba(0, 0, 0, 0.4);
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.3),
        0 -1px 0 rgba(0, 0, 0, 0.2);
}

.idle-collect-btn-cartoon:hover {
    transform: translateY(-2px);
    box-shadow:
        0 7px 0 #c62828,
        0 9px 15px rgba(0, 0, 0, 0.5);
}

.idle-collect-btn-cartoon:active {
    transform: translateY(3px);
    box-shadow:
        0 2px 0 #c62828,
        0 3px 5px rgba(0, 0, 0, 0.3);
}

.idle-collect-btn-cartoon:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: linear-gradient(135deg, #9e9e9e 0%, #757575 100%);
    box-shadow:
        0 4px 0 #616161,
        0 6px 8px rgba(0, 0, 0, 0.3);
}

.play-tip {
    text-align: center;
    color: var(--text-muted);
    font-size: 16px;
    font-weight: 600;
}



.upgrades-currency-display {
    position: fixed;
    top: 10px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 1000;
    pointer-events: none;
}


#game-screen .upgrades-currency-display {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border: 3px solid #2a2a5a;
    border-radius: 15px;
    padding: 15px 20px;
    box-shadow:
        0 4px 0 #1a1a1a,
        0 6px 10px rgba(0, 0, 0, 0.3);
}

.upgrades-currency-display .currency-item {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    background-color: #000000;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    gap: 5px;
    border-radius: 8px;
    border: 2px solid #333;
    margin-top: 10px;
    pointer-events: auto;
}

.upgrades-currency-display .coin-icon,
.upgrades-currency-display .gem-icon {
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    width: 20px;
    height: 20px;
}

.upgrades-currency-display .coin-icon {
    background-image: url('assets/icons/coin.png');
}

.upgrades-currency-display .gem-icon {
    background-image: url('assets/icons/gem.png');
}

.upgrades-currency-display .currency-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--cartoon-text-white);
    font-family: var(--hyper-casual-font);
}

.gem-packages-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 0;
    padding: 0;
    margin-bottom: 0;
    width: 100%;
}

.gem-package-btn {
    font-size: 18px;
}

.general-upgrades {
    display: flex;
    flex-direction: column;
    max-height: 80%;
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    
    padding-bottom: 80px;
    
    
    width: 100%;
    box-sizing: border-box;
    align-items: center;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.general-upgrades::-webkit-scrollbar {
    display: none;
}

.general-upgrades:active {
    cursor: grabbing;
}


.upgrade-category-container {
    display: flex;
    align-items: center;

    width: 100%;
    justify-content: center;
}


.general-upgrades .upgrade-element {
    top: 0;
    margin-top: 20px;
    margin-bottom: 20px;
    
}


.upgrade-category-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 30px;
    margin: 0;
    width: 100%;
    
    background: #5959ff;
    
    border-radius: 0;
    
    border: 3px solid #2a2a5a;
    position: relative;
    overflow: hidden;
}

.upgrade-category-header:first-child {
    margin-top: 0;
}

.upgrade-category-header::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: calc(50% - 60px);
    
    height: 4px;
    background: transparent;
    border-radius: 0;
    box-shadow:
        inset 0 2px 4px rgba(0, 0, 0, 0.9),
        inset 0 1px 2px rgba(0, 0, 0, 0.7),
        inset 0 -1px 1px rgba(255, 255, 255, 0.05),
        inset 0 -2px 2px rgba(0, 0, 0, 0.3);
    filter: blur(0.5px);
}

.upgrade-category-header::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: calc(50% - 60px);
    
    height: 4px;
    background: transparent;
    border-radius: 0;
    box-shadow:
        inset 0 2px 4px rgba(0, 0, 0, 0.9),
        inset 0 1px 2px rgba(0, 0, 0, 0.7),
        inset 0 -1px 1px rgba(255, 255, 255, 0.05),
        inset 0 -2px 2px rgba(0, 0, 0, 0.3);
    filter: blur(0.5px);
}

.upgrade-category-header .category-title {
    font-size: 24px;
    font-weight: 900;
    color: white;
    
    font-family: 'Arial Black', Arial, sans-serif;
    letter-spacing: 3px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    position: relative;
    z-index: 2;
}


.leaderboard-container {
    background: transparent;
    border-radius: 0;
    overflow: visible;
    border: none;
    box-shadow: none;
    padding: 10px;
}

.leaderboard-header {
    display: none !important;
}

.leaderboard-header>div {
    display: none;
}

.lb-rank {
    width: 50px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 20px;
    font-size: 22px;
    font-weight: 900;
    margin-right: 15px;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.lb-player {
    flex: 1;
    font-size: 18px;
    font-weight: 700;
    margin-right: auto;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    min-width: 0;
}

.lb-level {
    width: 100px;
    font-size: 16px;
    font-weight: 700;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
    flex-shrink: 0;
}

.lb-level::before {
    content: '';
    font-size: 14px;
    opacity: 0.8;
}

.lb-score {
    width: 140px;
    font-size: 16px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
    text-align: right;
}

.leaderboard-list {
    max-height: 1050px;
    overflow-y: auto;
    padding: 5px;
}

/* Coin icon ekle (score yanında) */
.lb-score::before {
    content: '';
    width: 20px;
    height: 20px;
    background-image: url('assets/icons/coin.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.leaderboard-list::-webkit-scrollbar {
    width: 4px;
}

.leaderboard-list::-webkit-scrollbar-track {
    background: var(--cartoon-pastel-green);
}

.leaderboard-list::-webkit-scrollbar-thumb {
    background: var(--cartoon-primary-blue);
    border-radius: 10px;
}

.lb-item {
    display: flex;
    align-items: center;
    padding: 16px 24px;
    border-bottom: none;
    color: white;
    transition: all 0.3s ease;
    font-weight: 700;
    border-radius: 25px;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3),
                0 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
}

/* 1. Sıra - Sarı */
.lb-item:nth-child(1) {
    background: linear-gradient(135deg, #fed264 0%, #ffc93d 100%);
    border: 3px solid #ffdb4d;
}

/* 2. Sıra - Mavi */
.lb-item:nth-child(2) {
    background: linear-gradient(135deg, #6fddff 0%, #4fc3e8 100%);
    border: 3px solid #8ee6ff;
}

/* 3. Sıra - Kırmızı */
.lb-item:nth-child(3) {
    background: linear-gradient(135deg, #ff7581 0%, #ff5566 100%);
    border: 3px solid #ff9ba5;
}

/* 4. ve sonraki sıralar - Mor */
.lb-item:nth-child(n+4) {
    background: linear-gradient(135deg, #a8a8fe 0%, #8888eb 100%);
    border: 3px solid #c0c0ff;
}

.lb-item:last-child {
    margin-bottom: 0;
}

.lb-item>div {
    font-size: 18px;
    font-family: 'Fredoka', sans-serif;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}


.settings-container {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 12px;
    padding: 25px;
    border: 2px solid var(--border-color);
}

.setting-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 3px solid var(--cartoon-dark);
    border-radius: 8px;
    
    margin-bottom: 15px;
    background: var(--cartoon-gradient-yellow);
    border: 3px solid var(--cartoon-dark);
    transition: all 0.15s ease;
    box-shadow:
        0 4px 0 var(--cartoon-shadow-yellow),
        0 6px 10px rgba(0, 0, 0, 0.2);
}

.setting-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.setting-row:hover {
    background: var(--cartoon-gradient-green);
    transform: translateY(-2px);
    box-shadow:
        0 6px 0 var(--cartoon-shadow-green),
        0 8px 15px rgba(0, 0, 0, 0.3);
}

.setting-label {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--cartoon-text-dark);
    font-weight: 600;
}

.setting-icon {
    font-size: 28px;
}

.setting-name {
    font-size: 18px;
    font-weight: 700;
    font-family: var(--hyper-casual-font);
    text-shadow:
        1px 1px 0 rgba(255, 255, 255, 0.8),
        -1px -1px 0 rgba(0, 0, 0, 0.1);
}


.toggle-switch {
    position: relative;
    width: 60px;
    height: 30px;
    display: inline-block;
}

input[type="checkbox"],
input[type="radio"],
select {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    transition: 0.3s;
    border-radius: 30px;
    border: 2px solid rgba(0, 255, 255, 0.3);
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 2px;
    bottom: 2px;
    background: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input:checked+.toggle-slider {
    background: rgba(7, 160, 32, 0.8);
}

input:checked+.toggle-slider:before {
    transform: translateX(30px);
}

.setting-select {
    padding: 12px 18px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: white;
    font-size: 15px;
    font-family: var(--hyper-casual-font);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}


.setting-separator {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-neon-cyan), transparent);
    margin: 30px 0;
}

.setting-subtitle {
    font-family: var(--hyper-casual-font);
    font-size: 20px;
    color: var(--primary-neon-yellow);
    margin-bottom: 20px;
    text-align: center;
}

.reset-btn {
    padding: 10px 24px;
    background: var(--cartoon-gradient-blue);
    border: 3px solid var(--cartoon-dark);
    border-radius: 8px;
    
    color: var(--cartoon-text-white);
    font-size: 15px;
    font-family: var(--hyper-casual-font);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow:
        0 4px 0 var(--cartoon-shadow-blue),
        0 6px 10px rgba(0, 0, 0, 0.2);
}

.reset-btn:hover {
    background: var(--cartoon-gradient-orange);
    color: var(--cartoon-text-white);
    transform: translateY(-2px);
    box-shadow:
        0 6px 0 var(--cartoon-shadow-orange),
        0 8px 15px rgba(0, 0, 0, 0.3);
}

.reset-btn.danger {
    background: var(--cartoon-gradient-red);
    border-color: var(--cartoon-dark);
    color: var(--cartoon-text-white);
}

.reset-btn.danger:hover {
    background: #ff0064;
    color: white;
    box-shadow: 0 0 20px #ff0064;
}

.setting-select:hover {
    border-color: var(--primary-neon-pink);
}


#loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    z-index: 10000;
    transition: opacity 0.5s ease;
    opacity: 1;
    visibility: visible;
}

#loading.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    display: none !important;
    z-index: -1 !important;
}

/* Müzik Aktivasyon Overlay - Yükleme sonrası ilk tıklama için */
#music-activation-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 99999;
    pointer-events: auto;
    cursor: pointer;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#music-activation-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Loading içeriği gizlendi - sadece siyah ekran gösteriliyor */
.loading-logo,
.loading-text,
.loading-bar-container,
.loading-percentage {
    display: none;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}


.screen {
    transition: all 0.5s ease;
}

.screen.hidden {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    z-index: -1 !important;
}




.achievements-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.achievements-overlay.active {
    display: flex;
}

.achievements-panel {
    background: var(--panel-bg);
    border: 5px solid var(--cartoon-dark);
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
}

.achievements-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 3px solid var(--cartoon-dark);
}

.achievements-title {
    font-family: var(--hyper-casual-font);
    font-size: 28px;
    font-weight: 700;
    color: var(--cartoon-dark);
    margin: 0;
}

.achievements-header .close-btn {
    background: var(--cartoon-gradient-red);
    border: 3px solid var(--cartoon-dark);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.15s ease;
    color: var(--cartoon-text-white);
    font-weight: 700;
    box-shadow: 0 3px 0 var(--cartoon-shadow-red);
}

.achievements-header .close-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 0 var(--cartoon-shadow-red);
}

.achievements-header .close-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 0 var(--cartoon-shadow-red);
}

.achievements-content {
    padding: 20px;
    overflow-y: auto;
    max-height: calc(80vh - 100px);
}

.achievement-item {
    background: var(--cartoon-gradient-red);
    border: 3px solid var(--cartoon-dark);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.2s ease;
    box-shadow: 0 3px 0 var(--cartoon-shadow-red);
}

.achievement-item.locked {
    opacity: 0.6;
    filter: grayscale(0.5);
}

.achievement-item.unlocked {
    background: var(--cartoon-gradient-red);
    border-color: var(--cartoon-primary-yellow);
    box-shadow: 0 3px 0 var(--cartoon-shadow-red), 0 0 20px rgba(255, 107, 107, 0.4);
}

.achievement-info {
    flex: 1;
}

.achievement-name {
    font-family: var(--hyper-casual-font);
    font-size: 20px;
    font-weight: 700;
    color: white;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.3);
    margin: 0 0 5px 0;
}

.achievement-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 5px 0;
}

.achievement-reward {
    font-size: 16px;
    font-weight: 700;
    color: white;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.3);
}

.achievement-tier {
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 5px;
    font-weight: 700;
}

.achievement-tier.tier-1 {
    background: #d3d3d3;
    color: #666;
}

.achievement-tier.tier-2 {
    background: #87ceeb;
    color: #1565c0;
}

.achievement-tier.tier-3 {
    background: #ffd700;
    color: #f57f17;
}

.achievement-tier.tier-4 {
    background: #ff6b6b;
    color: #d63031;
}


.achievement-notification {
    position: fixed;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--cartoon-gradient-red);
    border: 4px solid var(--cartoon-dark);
    border-radius: 15px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 9999;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow:
        0 5px 0 var(--cartoon-shadow-red),
        0 10px 30px rgba(255, 107, 107, 0.5);
    min-width: 300px;
    
    will-change: transform;
    backface-visibility: hidden;
}

.achievement-notification.show {
    top: 100px;
}

.achievement-notification .ach-content {
    flex: 1;
    text-align: center;
}

.achievement-notification .ach-title {
    font-family: var(--hyper-casual-font);
    font-size: 22px;
    font-weight: 700;
    color: white;
    margin: 0 0 8px 0;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.3);
}

.achievement-notification .ach-name {
    font-family: var(--hyper-casual-font);
    font-size: 32px;
    font-weight: 700;
    color: white;
    margin: 0 0 8px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.achievement-notification .ach-reward {
    font-size: 24px;
    font-weight: 600;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}


.achievement-stats {
    background: white;
    border: 3px solid var(--cartoon-dark);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
    text-align: center;
}

.achievement-stats h3 {
    font-family: var(--hyper-casual-font);
    font-size: 20px;
    margin: 0 0 10px 0;
    color: var(--cartoon-dark);
}

.achievement-stats .stats-row {
    display: flex;
    justify-content: space-around;
    gap: 10px;
}

.achievement-stats .stat-item {
    flex: 1;
}

.achievement-stats .stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--cartoon-primary-blue);
}

.achievement-stats .stat-label {
    font-size: 12px;
    color: #666;
}



.daily-quest-container {
    background: #4031fb;
    border: 3px solid #2a2a5a;
    border-radius: 15px;
    padding: 0px 10px;
    box-shadow:
        0 4px 0 #1a1a1a,
        0 6px 10px rgba(0, 0, 0, 0.3);
    position: absolute;
    left: 50%;
    width: 60%;
    transform: translateX(-50%);
    top: 824px;
    transform: translate(-50%, -50%);
    height: 240px;
}

.daily-quest-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 8px;
    padding-bottom: 5px;
    border-bottom: 2px solid #2a2a5a;
}

.daily-quest-title {
    font-size: 26px;
    font-weight: 700;
    margin: 0;
    font-family: var(--hyper-casual-font);
    text-align: center;
    -webkit-text-stroke: 0.2px #000000;
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.2),
        0 -1px 0 rgba(0, 0, 0, 0.2);
}

.daily-quest-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.quest-item {
    background: #0093ca;
    border: 3px solid #000000;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}



.quest-item.completed {
    background: linear-gradient(135deg, #2d5a2d 0%, #1a3a1a 100%);
    border-color: #4a7a4a;
}

.quest-item.claimed {
    opacity: 0.89;
    background: linear-gradient(135deg, #4a4a4a 0%, #2a2a2a 100%);
    border-color: #6a6a6a;
}

.quest-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.quest-info {
    flex: 1;
}

.quest-title {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin: 0 10px;
    font-family: var(--hyper-casual-font);
}

.quest-progress-bar {
    width: 100%;
    height: 4px;
    background: #1a1a1a;
    border-radius: 2px;
    overflow: hidden;
    margin-top: 4px;
}

.quest-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #45a049);
    border-radius: 2px;
    transition: width 0.3s ease;
    width: 0%;
}

.quest-item.completed .quest-progress-fill {
    background: linear-gradient(90deg, #8BC34A, #689F38);
}

.quest-button-container {
    display: flex;
    justify-content: center;
    margin-left: 8px;
}

.quest-button {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    border: 2px solid #4CAF50;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 2px 2px 0 #000000;
    font-family: var(--hyper-casual-font);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 4px;
    margin-right: 8px;
    width: 100px;
}

.quest-button:hover {
    background: linear-gradient(135deg, #45a049, #3d8b40);
    transform: scale(1.05);
}

.quest-button:disabled {
    background: #363468;
    border-color: #666;
    cursor: not-allowed;
    transform: none;
}

.quest-button.claimed {
    background: #666;
    border-color: #666;
    cursor: default;
}


@keyframes questComplete {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }

    100% {
        transform: scale(1);
    }
}

.quest-item.completed {
    animation: questComplete 0.3s ease;
}

@keyframes gemReward {
    0% {
        transform: scale(1) rotate(0deg);
    }

    50% {
        transform: scale(1.2) rotate(180deg);
    }

    100% {
        transform: scale(1) rotate(360deg);
    }
}

.quest-reward.claimed {
    animation: gemReward 0.6s ease;
}




.upgrade-btn.affordable,
.weapon-lock-overlay.affordable {
    background: linear-gradient(135deg, #4CAF50, #45a049) !important;
    border: 2px solid #000000 !important;
    color: white !important;
    box-shadow: 0 4px 8px rgba(76, 175, 80, 0.3) !important;
    transform: scale(1.02) !important;
    transition: all 0.3s ease !important;
}

.upgrade-btn.affordable:hover,
.weapon-lock-overlay.affordable:hover {
    background: linear-gradient(135deg, #45a049, #3d8b40) !important;
    box-shadow: 0 6px 12px rgba(76, 175, 80, 0.4) !important;
    transform: scale(1.05) !important;
}


.upgrade-btn.unaffordable,
.weapon-lock-overlay.unaffordable {
    background: linear-gradient(135deg, #9E9E9E, #757575) !important;
    border: 2px solid #9E9E9E !important;
    color: #BDBDBD !important;
    box-shadow: 0 2px 4px rgba(158, 158, 158, 0.2) !important;
    opacity: 0.7 !important;
    cursor: not-allowed !important;
    transform: scale(0.98) !important;
    transition: all 0.3s ease !important;
    pointer-events: auto !important;
}

.upgrade-btn.unaffordable:hover,
.weapon-lock-overlay.unaffordable:hover {
    background: linear-gradient(135deg, #757575, #616161) !important;
    box-shadow: 0 2px 4px rgba(158, 158, 158, 0.2) !important;
    transform: scale(0.98) !important;
}

/* Disabled butonlar için ek stil */
.upgrade-btn:disabled,
.upgrade-btn[disabled] {
    cursor: not-allowed !important;
    pointer-events: auto !important;
}


/* Notification stilleri kaldırıldı - artık kullanılmıyor */

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.parachute-drop {
    position: absolute;
    width: 86px;
    height: 86px;
    background: url('assets/icons/parasut.png') center / contain no-repeat;
    pointer-events: auto;
    z-index: 160;
    opacity: 1;
    will-change: transform, top, opacity;
    backface-visibility: hidden;
}

.parachute-drop-sway {
    animation: parachute-sway 2.1s ease-in-out infinite alternate;
}

@keyframes parachute-sway {
    0% {
        transform: translate(-50%, 0) rotate(-5deg);
    }

    100% {
        transform: translate(-50%, 0) rotate(5deg);
    }
}

.parachute-drop-collected {
    animation: parachute-collect-pop 0.35s forwards ease-out;
}

@keyframes parachute-collect-pop {
    0% {
        transform: translate(-50%, 0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -40px) scale(0.6);
        opacity: 0;
    }
}

.parachute-drop-missed {
    opacity: 0;
}

.parachute-gem-popup {
    position: absolute;
    left: 0;
    top: 0;
    font-weight: 700;
    font-size: 22px;
    color: #4efff6;
    pointer-events: none;
    z-index: 170;
    transform: translate(-50%, 0);
    text-shadow: 0 0 8px rgba(78, 255, 246, 0.8);
    animation: parachute-gem-popup-rise 0.85s ease-out forwards;
    display: flex;
    align-items: center;
    gap: 6px;
}

.parachute-gem-popup .parachute-gem-icon {
    width: 20px;
    height: 20px;
    filter: drop-shadow(0 0 6px rgba(78, 255, 246, 0.7));
}

@keyframes parachute-gem-popup-rise {
    0% {
        opacity: 1;
        transform: translate(-50%, 0);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -50px);
    }
}

body.no-effects .damage-popup,
body.no-effects .bomb-explosion,
body.no-effects .chain-lightning,
body.no-effects .achievement-notification,
body.no-effects .bullet-trail,
body.no-effects .parachute-gem-popup {
    display: none !important;
}

body.no-effects .mosaic.hit,
body.no-effects .mosaic.critical-hit,
body.no-effects .mosaic.destroyed {
    animation: none !important;
}

body.no-effects .mosaic.animate {
    animation: none !important;
    opacity: 1 !important;
    transform: scale(1) !important;
}

/* ===== REKLAM OVERLAY ===== */
/* Reklam overlay stilleri kaldırıldı - artık kullanılmıyor */