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

html {
    overflow: hidden;
    height: 100%;
    width: 100%;
}

body {
    font-family: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: -0.02em;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 255, 120, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(100, 200, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 120, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 60% 60%, rgba(255, 200, 120, 0.06) 0%, transparent 50%),
        linear-gradient(135deg, #0a0e1a 0%, #1a2332 25%, #0d1117 50%, #161b22 75%, #0a0e1a 100%);
    height: 100vh;
    width: 100vw;
    color: #e6e6e6;
    overflow: hidden;
    position: relative;
    font-size: 16px;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 255, 120, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(100, 200, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 120, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 60% 60%, rgba(255, 200, 120, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

/* Animated particles */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, rgba(120, 255, 120, 0.8) 0%, transparent 70%);
    border-radius: 50%;
    animation: particleFloat 15s infinite linear;
}

.particle.particle-2 {
    background: radial-gradient(circle, rgba(100, 200, 255, 0.8) 0%, transparent 70%);
    animation-duration: 18s;
    animation-delay: 2s;
}

.particle.particle-3 {
    background: radial-gradient(circle, rgba(255, 120, 255, 0.8) 0%, transparent 70%);
    animation-duration: 12s;
    animation-delay: 4s;
}

.particle.particle-4 {
    background: radial-gradient(circle, rgba(255, 200, 120, 0.8) 0%, transparent 70%);
    animation-duration: 20s;
    animation-delay: 6s;
}

/* Floating pickles */
.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.floating-pickle {
    position: absolute;
    font-size: 2rem;
    opacity: 0.3;
    animation: float 6s ease-in-out infinite;
    z-index: 3;
}

.floating-pickle.pickle-1 { top: 10%; left: 10%; animation-delay: 0s; }
.floating-pickle.pickle-2 { top: 20%; right: 15%; animation-delay: 1s; }
.floating-pickle.pickle-3 { bottom: 30%; left: 20%; animation-delay: 2s; }
.floating-pickle.pickle-4 { bottom: 20%; right: 10%; animation-delay: 3s; }
.floating-pickle.pickle-5 { top: 50%; left: 5%; animation-delay: 4s; }

/* Glow elements */
.header-glow, .area-glow, .section-glow, .footer-glow, .score-glow, .button-glow {
    position: absolute;
    pointer-events: none;
    z-index: -1;
}

.header-glow {
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(120, 255, 120, 0.2) 0%, transparent 70%);
    filter: blur(60px);
    animation: glowPulse 4s ease-in-out infinite;
}

.area-glow {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(120, 255, 120, 0.12) 0%, transparent 70%);
    filter: blur(80px);
    animation: glowPulse 5s ease-in-out infinite;
}

.section-glow {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(100, 200, 255, 0.1) 0%, transparent 70%);
    filter: blur(100px);
    animation: glowPulse 6s ease-in-out infinite;
}

.footer-glow {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 120, 255, 0.08) 0%, transparent 70%);
    filter: blur(80px);
    animation: glowPulse 7s ease-in-out infinite;
}

.score-glow {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.3) 0%, transparent 70%);
    filter: blur(40px);
    animation: scoreGlow 2s ease-in-out infinite;
}

.button-glow {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(120, 255, 120, 0.4) 0%, transparent 70%);
    filter: blur(30px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pickle-button:hover .button-glow {
    opacity: 1;
    animation: buttonGlow 2s ease-in-out infinite;
}

.game-container {
    position: relative;
    z-index: 10;
    max-width: 100vw;
    height: 100vh;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
}

.game-header {
    text-align: center;
    margin-bottom: 40px;
    animation: fadeInDown 1s ease;
    position: relative;
}

.game-header h1 {
    font-family: 'Sansical', cursive;
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 25px;
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1.1;
    background: linear-gradient(135deg, #00ff00 0%, #78ff78 25%, #a8ff78 50%, #78ff78 75%, #00ff00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 50px rgba(0, 255, 0, 0.8);
    filter: drop-shadow(0 0 40px rgba(0, 255, 0, 0.6)) drop-shadow(0 0 60px rgba(120, 255, 120, 0.4)) drop-shadow(0 0 80px rgba(168, 255, 120, 0.2));
    animation: titleGlow 4s ease-in-out infinite, titlePulse 3s ease-in-out infinite;
    position: relative;
}

.score-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.score-box {
    position: relative;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(25px);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 25px;
    padding: 20px 40px;
    box-shadow: 0 15px 50px rgba(255, 215, 0, 0.2), 0 8px 30px rgba(0, 0, 0, 0.3), inset 0 0 30px rgba(255, 215, 0, 0.1), 0 0 60px rgba(255, 215, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
}

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

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

.score-display {
    font-family: 'Space Grotesk', 'Poppins', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 50%, #ffd700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 25px rgba(255, 215, 0, 0.6));
    animation: pulse 2s infinite;
    position: relative;
    letter-spacing: -0.02em;
    line-height: 1.2;
    z-index: 2;
}

.per-second {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1rem, 2vw, 1.3rem);
    font-weight: 500;
    color: #a8d5a8;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 8px 20px;
    display: inline-block;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.01em;
}

.game-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    flex: 1;
    align-items: start;
}

.pickle-area {
    text-align: center;
    animation: fadeInLeft 1s ease;
    position: relative;
}

.pickle-container {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.pickle-button {
    background: rgba(255, 255, 255, 0.04);
    border: 2px solid rgba(120, 255, 120, 0.4);
    border-radius: 35px;
    cursor: pointer;
    font-size: 8rem;
    padding: 25px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(25px);
    box-shadow: 0 25px 80px rgba(120, 255, 120, 0.25), 0 15px 40px rgba(0, 0, 0, 0.3), inset 0 0 30px rgba(120, 255, 120, 0.15), 0 0 60px rgba(120, 255, 120, 0.1);
    animation: float 4s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.pickle-button:hover {
    transform: scale(1.08);
    border-color: rgba(120, 255, 120, 0.6);
    box-shadow: 0 30px 90px rgba(120, 255, 120, 0.35), 0 20px 50px rgba(0, 0, 0, 0.4), inset 0 0 40px rgba(120, 255, 120, 0.25), 0 0 80px rgba(120, 255, 120, 0.2);
}

.pickle-button:active {
    transform: scale(0.92);
    transition: transform 0.1s ease;
}

.pickle-emoji {
    display: block;
    user-select: none;
    -webkit-user-select: none;
}

.click-effect {
    font-family: 'Space Grotesk', 'Poppins', sans-serif;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.8));
    pointer-events: none;
    opacity: 0;
    animation: clickFloat 1.5s ease-out;
    letter-spacing: -0.01em;
}

/* Auto-generation effect */
.auto-effect {
    font-family: 'Space Grotesk', 'Poppins', sans-serif;
    position: absolute;
    transform: translate(-50%, -50%);
    font-size: clamp(1rem, 2vw, 1.3rem);
    font-weight: 600;
    color: #78ff78;
    text-shadow: 0 0 10px rgba(120, 255, 120, 0.8);
    pointer-events: none;
    opacity: 0;
    z-index: 10;
}

@keyframes autoFloat {
    0% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(0.8);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -80%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -150%) scale(0.9);
    }
}

.pickle-instruction {
    font-family: 'Space Grotesk', 'Poppins', sans-serif;
    font-size: clamp(0.9rem, 1.8vw, 1.1rem);
    font-weight: 500;
    opacity: 0.8;
    margin-top: 15px;
    text-align: center;
    color: #a8d5a8;
    letter-spacing: 0.01em;
    line-height: 1.4;
}

.upgrades-section {
    animation: fadeInRight 1s ease;
    position: relative;
}

.upgrades-section h2 {
    font-family: 'Space Grotesk', 'Poppins', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 700;
    margin-bottom: 25px;
    text-align: center;
    background: linear-gradient(135deg, #64c8ff 0%, #78ff78 50%, #ff78ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 20px rgba(100, 200, 255, 0.4));
    position: relative;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.upgrades-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    max-height: 400px;
    overflow-y: auto;
    padding: 20px;
    margin: 0;
    position: relative;
}

.upgrade-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 18px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: visible;
    margin: 10px;
}

.upgrade-item:hover:not(.disabled) {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(120, 255, 120, 0.5);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 50px rgba(120, 255, 120, 0.3), 0 10px 35px rgba(0, 0, 0, 0.2), inset 0 0 35px rgba(255, 255, 255, 0.12), 0 0 60px rgba(120, 255, 120, 0.2);
    z-index: 10;
}

.upgrade-item.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    filter: grayscale(60%);
    transform: scale(0.98);
}

.upgrade-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.upgrade-name {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: #ffffff;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.upgrade-cost {
    font-family: 'Space Grotesk', 'Poppins', sans-serif;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    font-size: clamp(0.9rem, 1.8vw, 1.1rem);
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
    letter-spacing: -0.01em;
}

.upgrade-description {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(0.85rem, 1.5vw, 0.95rem);
    font-weight: 400;
    opacity: 0.85;
    margin-bottom: 8px;
    line-height: 1.4;
    color: #e6e6e6;
    letter-spacing: 0.005em;
}

.upgrade-effect {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(0.8rem, 1.4vw, 0.9rem);
    font-weight: 600;
    color: #ffd700;
    margin-bottom: 5px;
    letter-spacing: 0.01em;
}

.upgrade-owned {
    font-family: 'Inter', sans-serif;
    font-size: clamp(0.75rem, 1.3vw, 0.85rem);
    font-weight: 500;
    opacity: 0.7;
    color: #a8d5a8;
    letter-spacing: 0.01em;
}

.game-footer {
    margin-top: 40px;
    text-align: center;
    animation: fadeInUp 1s ease;
    position: relative;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.stat-item {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 15px 28px;
    border-radius: 28px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), inset 0 0 25px rgba(255, 255, 255, 0.08), 0 0 30px rgba(120, 255, 120, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 50px rgba(255, 120, 255, 0.15), 0 10px 35px rgba(0, 0, 0, 0.2), inset 0 0 35px rgba(255, 255, 255, 0.12), 0 0 40px rgba(255, 120, 255, 0.1);
}

.stat-label {
    font-family: 'Poppins', sans-serif;
    opacity: 0.8;
    margin-right: 10px;
    font-weight: 500;
    color: #e6e6e6;
    font-size: clamp(0.85rem, 1.3vw, 0.95rem);
    letter-spacing: 0.005em;
}

/* Animations */
@keyframes particleFloat {
    0% { transform: translateY(100vh) translateX(0) scale(0); opacity: 0; }
    10% { opacity: 1; transform: translateY(90vh) translateX(10px) scale(1); }
    90% { opacity: 1; transform: translateY(10vh) translateX(-10px) scale(1); }
    100% { transform: translateY(0) translateX(0) scale(0); opacity: 0; }
}

@keyframes glowPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.8; }
}

@keyframes scoreGlow {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.7; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
}

@keyframes buttonGlow {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
    50% { transform: translate(-50%, -50%) scale(1.3); opacity: 1; }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-50px); filter: blur(10px); }
    to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-50px); filter: blur(10px); }
    to { opacity: 1; transform: translateX(0); filter: blur(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(50px); filter: blur(10px); }
    to { opacity: 1; transform: translateX(0); filter: blur(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(50px); filter: blur(10px); }
    to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); filter: brightness(1); }
    50% { transform: scale(1.03); filter: brightness(1.2); }
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(2deg); }
    75% { transform: translateY(-10px) rotate(-2deg); }
}

@keyframes clickFloat {
    0% { opacity: 1; transform: translate(-50%, -50%) scale(1); filter: blur(0); }
    100% { opacity: 0; transform: translate(-50%, -250%) scale(1.5); filter: blur(3px); }
}

@keyframes titleGlow {
    0%, 100% { filter: drop-shadow(0 0 40px rgba(0, 255, 0, 0.6)) drop-shadow(0 0 60px rgba(120, 255, 120, 0.4)) drop-shadow(0 0 80px rgba(168, 255, 120, 0.2)) brightness(1); }
    25% { filter: drop-shadow(0 0 50px rgba(0, 255, 0, 0.8)) drop-shadow(0 0 70px rgba(120, 255, 120, 0.6)) drop-shadow(0 0 90px rgba(168, 255, 120, 0.3)) brightness(1.2); }
    50% { filter: drop-shadow(0 0 60px rgba(0, 255, 0, 1)) drop-shadow(0 0 80px rgba(120, 255, 120, 0.8)) drop-shadow(0 0 100px rgba(168, 255, 120, 0.4)) brightness(1.4); }
    75% { filter: drop-shadow(0 0 50px rgba(0, 255, 0, 0.8)) drop-shadow(0 0 70px rgba(120, 255, 120, 0.6)) drop-shadow(0 0 90px rgba(168, 255, 120, 0.3)) brightness(1.2); }
}

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

@keyframes titleGlowPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
}

/* Scrollbar styling */
.upgrades-grid::-webkit-scrollbar { width: 6px; }
.upgrades-grid::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.05); border-radius: 3px; }
.upgrades-grid::-webkit-scrollbar-thumb { background: rgba(120, 255, 120, 0.3); border-radius: 3px; }
.upgrades-grid::-webkit-scrollbar-thumb:hover { background: rgba(120, 255, 120, 0.5); }

/* Sound Controls */
.sound-controls {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    padding: 8px 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), inset 0 0 20px rgba(255, 255, 255, 0.08);
}

.sound-button {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), inset 0 0 20px rgba(255, 255, 255, 0.05);
    font-size: 1.2rem;
}

.sound-button:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15), inset 0 0 30px rgba(255, 255, 255, 0.08);
}

.volume-slider {
    width: 80px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, #78ff78 0%, #64c8ff 100%);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
}

.volume-slider::-webkit-slider-thumb:hover { transform: scale(1.2); box-shadow: 0 3px 12px rgba(0, 0, 0, 0.4); }

/* Music Controls */
.music-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-left: 10px;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.volume-slider.music-volume::-webkit-slider-thumb {
    background: linear-gradient(135deg, #ff78ff 0%, #ff64c8 100%);
}

/* Notifications */
.milestone-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(30px);
    border: 2px solid rgba(255, 215, 0, 0.4);
    border-radius: 20px;
    padding: 30px;
    z-index: 2000;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 20px 60px rgba(255, 215, 0, 0.3), 0 10px 30px rgba(0, 0, 0, 0.3), inset 0 0 40px rgba(255, 215, 0, 0.1);
}

.milestone-notification.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }

.milestone-content { text-align: center; color: #ffffff; }

.milestone-content h3 {
    font-family: 'Space Grotesk', 'Poppins', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.5));
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.milestone-content p {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    font-weight: 500;
    opacity: 0.9;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.offline-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(30px);
    border: 2px solid rgba(100, 200, 255, 0.4);
    border-radius: 20px;
    padding: 30px;
    z-index: 2000;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 20px 60px rgba(100, 200, 255, 0.3), 0 10px 30px rgba(0, 0, 0, 0.3), inset 0 0 40px rgba(100, 200, 255, 0.1);
    max-width: 400px;
}

.offline-notification.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }

.offline-content { text-align: center; color: #ffffff; }

.offline-content h3 {
    font-family: 'Space Grotesk', 'Poppins', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #64c8ff 0%, #78ff78 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 20px rgba(100, 200, 255, 0.5));
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.save-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 15px;
    padding: 12px 20px;
    z-index: 1500;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(255, 215, 0, 0.2), inset 0 0 20px rgba(255, 215, 0, 0.05);
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    color: #ffd700;
}

.save-notification.show { opacity: 1; transform: translateX(0); }

/* Back button */
.back-button {
    position: fixed;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    padding: 12px 24px;
    color: #ffffff;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), inset 0 0 20px rgba(255, 255, 255, 0.05);
}

.back-button:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15), inset 0 0 30px rgba(255, 255, 255, 0.08);
}

/* Settings Modal */
.settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.settings-modal.show {
    display: flex;
    opacity: 1;
}

.settings-content {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(30px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), inset 0 0 40px rgba(255, 255, 255, 0.05);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.settings-modal.show .settings-content {
    transform: scale(1);
}

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.settings-header h2 {
    font-family: 'Space Grotesk', 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #78ff78 0%, #64c8ff 50%, #ff78ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.close-button {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 2rem;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-button:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
}

.settings-section {
    margin-bottom: 30px;
}

.settings-section h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 15px;
}

.settings-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.settings-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 12px 24px;
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.settings-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.settings-btn span {
    font-size: 1.2rem;
}

.save-data-text {
    width: 100%;
    min-height: 100px;
    margin-top: 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 12px;
    color: #ffffff;
    font-family: 'Inter', monospace;
    font-size: 0.85rem;
    resize: vertical;
    outline: none;
}

.save-data-text:focus {
    border-color: rgba(120, 255, 120, 0.5);
    box-shadow: 0 0 20px rgba(120, 255, 120, 0.2);
}

.save-data-text::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.danger-zone {
    border-top: 1px solid rgba(255, 100, 100, 0.3);
    padding-top: 25px;
    margin-top: 25px;
}

.danger-zone h3 {
    color: #ff6464;
}

.danger-btn {
    background: rgba(255, 100, 100, 0.1);
    border-color: rgba(255, 100, 100, 0.3);
    color: #ff6464;
}

.danger-btn:hover {
    background: rgba(255, 100, 100, 0.2);
    border-color: rgba(255, 100, 100, 0.5);
    box-shadow: 0 8px 32px rgba(255, 100, 100, 0.3);
}

.warning-text {
    font-size: 0.85rem;
    color: #ff6464;
    opacity: 0.8;
    margin-top: 10px;
    font-style: italic;
}

.settings-button {
    margin-left: 5px;
}

/* Notification styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 15px 25px;
    z-index: 4000;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    color: #ffffff;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification.success {
    border-color: rgba(120, 255, 120, 0.4);
    background: rgba(120, 255, 120, 0.1);
    color: #78ff78;
}

.notification.error {
    border-color: rgba(255, 100, 100, 0.4);
    background: rgba(255, 100, 100, 0.1);
    color: #ff6464;
}

/* Responsive */
@media (max-width: 768px) {
    .game-main { grid-template-columns: 1fr; gap: 30px; }
    .game-header h1 { font-size: 2.5rem; }
    .score-display { font-size: 2.2rem; }
    .pickle-button { font-size: 6rem; padding: 15px; }
    .stats { flex-direction: column; align-items: center; gap: 15px; }
    .sound-controls { top: 10px; right: 10px; padding: 6px 12px; }
    .volume-slider { width: 60px; }
    .back-button { top: 10px; left: 10px; padding: 8px 16px; font-size: 0.8rem; }
}
