/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background:
        /* Muddy texture overlay */
        radial-gradient(circle at 20% 30%, rgba(101, 67, 33, 0.8) 0%, transparent 25%),
        radial-gradient(circle at 80% 70%, rgba(62, 39, 35, 0.9) 0%, transparent 30%),
        radial-gradient(circle at 40% 80%, rgba(83, 53, 10, 0.7) 0%, transparent 20%),
        radial-gradient(circle at 70% 20%, rgba(139, 69, 19, 0.6) 0%, transparent 35%),
        /* Dirt layers */
        linear-gradient(135deg, rgba(47, 27, 20, 0.95) 0%, rgba(74, 44, 42, 0.95) 25%, rgba(93, 64, 55, 0.95) 50%, rgba(62, 39, 35, 0.95) 75%, rgba(47, 27, 20, 0.95) 100%),
        /* Rock/dirt texture pattern */
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 8px,
            rgba(139, 69, 19, 0.15) 10px,
            rgba(160, 82, 45, 0.1) 12px,
            transparent 14px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 12px,
            rgba(101, 67, 33, 0.2) 14px,
            transparent 16px
        );
    background-size:
        300px 300px, 250px 250px, 200px 200px, 350px 350px,
        400% 400%,
        30px 30px,
        40px 40px;
    animation: muddyGradient 25s ease infinite, dirtShift 30s linear infinite;
    height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #3E2723;
    overflow: hidden;
    padding: 0;
    position: relative;
    margin: 0;
    box-sizing: border-box;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        /* Muddy puddles and wet spots */
        radial-gradient(ellipse at 15% 25%, rgba(62, 39, 35, 0.4) 0%, transparent 40%),
        radial-gradient(ellipse at 85% 75%, rgba(47, 27, 20, 0.5) 0%, transparent 35%),
        radial-gradient(ellipse at 45% 85%, rgba(83, 53, 10, 0.3) 0%, transparent 30%),
        radial-gradient(ellipse at 75% 15%, rgba(101, 67, 33, 0.4) 0%, transparent 45%),
        /* Underground mineral veins */
        linear-gradient(25deg, transparent 40%, rgba(139, 69, 19, 0.2) 42%, transparent 44%),
        linear-gradient(-25deg, transparent 60%, rgba(160, 82, 45, 0.15) 62%, transparent 64%);
    animation: muddyAmbient 30s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        /* Dirt particle overlay */
        repeating-radial-gradient(
            circle at 30% 40%,
            transparent 0px,
            rgba(139, 69, 19, 0.1) 1px,
            transparent 2px,
            transparent 20px
        ),
        repeating-radial-gradient(
            circle at 70% 60%,
            transparent 0px,
            rgba(101, 67, 33, 0.08) 1px,
            transparent 2px,
            transparent 25px
        );
    animation: dirtParticles 40s linear infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes muddyGradient {
    0%, 100% {
        background-position:
            0% 0%, 100% 100%, 50% 50%, 25% 75%,
            0% 50%,
            0 0,
            0 0;
    }
    25% {
        background-position:
            25% 25%, 75% 25%, 75% 25%, 50% 50%,
            100% 25%,
            -15px -15px,
            20px -10px;
    }
    50% {
        background-position:
            50% 50%, 50% 50%, 100% 0%, 75% 25%,
            50% 100%,
            -30px -30px,
            40px 30px;
    }
    75% {
        background-position:
            75% 75%, 25% 75%, 25% 75%, 0% 50%,
            25% 0%,
            -15px -15px,
            -20px 20px;
    }
}

@keyframes dirtShift {
    0% {
        background-position:
            0% 0%, 100% 100%, 50% 50%, 25% 75%,
            0% 50%,
            0 0,
            0 0;
    }
    100% {
        background-position:
            100% 100%, 0% 0%, -50% -50%, -25% -75%,
            0% 50%,
            30px 30px,
            -40px -40px;
    }
}

@keyframes muddyAmbient {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    33% {
        opacity: 0.8;
        transform: scale(1.05);
    }
    66% {
        opacity: 0.4;
        transform: scale(0.95);
    }
}

@keyframes dirtParticles {
    0% {
        background-position: 0% 0%, 100% 100%;
        opacity: 0.3;
    }
    50% {
        background-position: 50% 50%, 50% 50%;
        opacity: 0.6;
    }
    100% {
        background-position: 100% 100%, 0% 0%;
        opacity: 0.3;
    }
}

@keyframes ambientGlow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

.game-container {
    background: linear-gradient(145deg, #F5DEB3 0%, #DEB887 100%);
    border-radius: 20px;
    padding: 20px;
    box-shadow:
        0 20px 40px rgba(47, 27, 20, 0.6),
        inset 0 2px 0 rgba(255, 255, 255, 0.3),
        inset 0 -2px 0 rgba(139, 69, 19, 0.2);
    backdrop-filter: blur(15px);
    width: min(550px, 95vw);
    height: min(90vh, 800px);
    overflow: hidden;
    position: relative;
    border: 3px solid #8B4513;
    z-index: 10;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.game-container::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, #CD853F, #D2691E, #DAA520, #B8860B);
    border-radius: 28px;
    z-index: -1;
    animation: borderGlow 3s ease-in-out infinite alternate;
}

@keyframes borderGlow {
    0% { opacity: 0.8; }
    100% { opacity: 1; }
}

/* Background Decorative Elements */
.background-decorations {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.wanted-poster {
    position: absolute;
    width: 65px;
    height: 90px;
    background:
        /* Muddy stains and dirt marks */
        radial-gradient(circle at 20% 30%, rgba(62, 39, 35, 0.3) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(83, 53, 10, 0.2) 0%, transparent 30%),
        linear-gradient(145deg, #F5DEB3, #DEB887);
    border: 2px solid #8B4513;
    border-radius: 6px;
    box-shadow:
        0 8px 16px rgba(47, 27, 20, 0.6),
        inset 0 1px 0 rgba(139, 69, 19, 0.3),
        inset 0 -1px 0 rgba(62, 39, 35, 0.4);
    transform: rotate(-15deg);
    animation: muddyPosterFloat 20s ease-in-out infinite;
    font-family: 'Fredoka One', cursive;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0.9;
    z-index: 5;
}

.wanted-poster::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        /* Dirt splatters */
        radial-gradient(circle at 15% 20%, rgba(47, 27, 20, 0.4) 0%, transparent 15%),
        radial-gradient(circle at 85% 80%, rgba(83, 53, 10, 0.3) 0%, transparent 20%),
        radial-gradient(circle at 60% 40%, rgba(101, 67, 33, 0.2) 0%, transparent 10%);
    border-radius: 6px;
    pointer-events: none;
}

.wanted-poster .poster-text {
    content: 'WANTED';
    font-size: 10px;
    font-weight: bold;
    color: #8B0000;
    margin-bottom: 4px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.wanted-poster .poster-mole {
    font-size: 28px;
    margin: 4px 0;
    filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.3));
}

/* Scattered posters - Filling all blank spaces across viewport */
.wanted-poster.poster1 {
    top: 5vh;
    left: 2vw;
    transform: rotate(-35deg);
    animation-delay: 0s;
}

.wanted-poster.poster2 {
    top: 8vh;
    right: 3vw;
    transform: rotate(42deg);
    animation-delay: -7s;
}

.wanted-poster.poster3 {
    top: 25vh;
    left: 1vw;
    transform: rotate(-28deg);
    animation-delay: -14s;
}

.wanted-poster.poster4 {
    top: 12vh;
    left: 15vw;
    transform: rotate(38deg);
    animation-delay: -3s;
}

.wanted-poster.poster5 {
    top: 45vh;
    left: 3vw;
    transform: rotate(-45deg);
    animation-delay: -10s;
}

.wanted-poster.poster6 {
    top: 18vh;
    right: 15vw;
    transform: rotate(52deg);
    animation-delay: -5s;
}

.wanted-poster.poster7 {
    top: 65vh;
    left: 8vw;
    transform: rotate(-22deg);
    animation-delay: -2s;
}

.wanted-poster.poster8 {
    top: 35vh;
    right: 2vw;
    transform: rotate(48deg);
    animation-delay: -9s;
}

.wanted-poster.poster9 {
    top: 85vh;
    left: 18vw;
    transform: rotate(-38deg);
    animation-delay: -6s;
}

.wanted-poster.poster10 {
    top: 55vh;
    right: 12vw;
    transform: rotate(32deg);
    animation-delay: -11s;
}

.wanted-poster.poster11 {
    top: 92vh;
    left: 25vw;
    transform: rotate(-48deg);
    animation-delay: -1s;
}

.wanted-poster.poster12 {
    top: 28vh;
    left: 25vw;
    transform: rotate(35deg);
    animation-delay: -13s;
}

.wanted-poster.poster13 {
    top: 75vh;
    right: 25vw;
    transform: rotate(-32deg);
    animation-delay: -4s;
}

.wanted-poster.poster14 {
    top: 68vh;
    right: 5vw;
    transform: rotate(45deg);
    animation-delay: -8s;
}

.wanted-poster.poster15 {
    top: 2vh;
    left: 30vw;
    transform: rotate(-25deg);
    animation-delay: -15s;
}

.wanted-poster.poster16 {
    top: 15vh;
    right: 30vw;
    transform: rotate(55deg);
    animation-delay: -7s;
}

.wanted-poster.poster17 {
    top: 42vh;
    left: 12vw;
    transform: rotate(-42deg);
    animation-delay: -12s;
}

.wanted-poster.poster18 {
    top: 38vh;
    right: 25vw;
    transform: rotate(38deg);
    animation-delay: -18s;
}

.wanted-poster.poster19 {
    top: 88vh;
    left: 5vw;
    transform: rotate(-35deg);
    animation-delay: -3s;
}

.wanted-poster.poster20 {
    top: 52vh;
    right: 35vw;
    transform: rotate(58deg);
    animation-delay: -21s;
}

@keyframes muddyPosterFloat {
    0%, 100% {
        transform: translateY(0px) rotate(-15deg) scale(1);
        opacity: 0.7;
        filter: sepia(20%) saturate(1.2);
    }
    25% {
        transform: translateY(-8px) rotate(-18deg) scale(1.02);
        opacity: 0.8;
        filter: sepia(30%) saturate(1.1);
    }
    50% {
        transform: translateY(-20px) rotate(-12deg) scale(0.98);
        opacity: 0.9;
        filter: sepia(10%) saturate(1.3);
    }
    75% {
        transform: translateY(-12px) rotate(-16deg) scale(1.01);
        opacity: 0.8;
        filter: sepia(25%) saturate(1.15);
    }
}

/* Splash Text Elements */
.splash-text {
    position: absolute;
    font-family: 'Fredoka One', cursive;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
    pointer-events: none;
    text-shadow:
        3px 3px 6px rgba(0, 0, 0, 0.8),
        0 0 10px rgba(139, 69, 19, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    animation: grittySplashFloat 25s ease-in-out infinite;
    filter: sepia(30%) saturate(1.4) brightness(0.9);
    z-index: 3;
}

.splash-text.whack {
    top: 12vh;
    right: 18vw;
    font-size: 18px;
    color: #D2691E;
    transform: rotate(-25deg);
    animation-delay: 0s;
}

.splash-text.boom {
    bottom: 25vh;
    left: 18vw;
    font-size: 20px;
    color: #8B0000;
    transform: rotate(20deg);
    animation-delay: -8s;
}

.splash-text.smash {
    top: 40vh;
    left: 2vw;
    font-size: 16px;
    color: #DAA520;
    transform: rotate(-12deg);
    animation-delay: -16s;
}

.splash-text.pow {
    top: 80vh;
    right: 20vw;
    font-size: 18px;
    color: #CD853F;
    transform: rotate(15deg);
    animation-delay: -4s;
}

.splash-text.bam {
    top: 60vh;
    right: 2vw;
    font-size: 17px;
    color: #B22222;
    transform: rotate(-18deg);
    animation-delay: -12s;
}

.splash-text.thud {
    bottom: 35vh;
    right: 25vw;
    font-size: 15px;
    color: #A0522D;
    transform: rotate(22deg);
    animation-delay: -20s;
}

.splash-text.zap {
    top: 8vh;
    left: 5vw;
    font-size: 16px;
    color: #FF6347;
    transform: rotate(-20deg);
    animation-delay: -2s;
}

.splash-text.crash {
    top: 25vh;
    left: 25vw;
    font-size: 19px;
    color: #DC143C;
    transform: rotate(18deg);
    animation-delay: -10s;
}

.splash-text.wham {
    bottom: 15vh;
    left: 5vw;
    font-size: 17px;
    color: #B8860B;
    transform: rotate(-15deg);
    animation-delay: -6s;
}

.splash-text.bonk {
    top: 90vh;
    right: 8vw;
    font-size: 14px;
    color: #8B4513;
    transform: rotate(25deg);
    animation-delay: -14s;
}

.splash-text.slam {
    top: 50vh;
    right: 30vw;
    font-size: 18px;
    color: #D2691E;
    transform: rotate(-12deg);
    animation-delay: -18s;
}

.splash-text.thwack {
    bottom: 50vh;
    left: 30vw;
    font-size: 16px;
    color: #CD853F;
    transform: rotate(20deg);
    animation-delay: -22s;
}

.splash-text.kapow {
    top: 70vh;
    left: 20vw;
    font-size: 20px;
    color: #FF4500;
    transform: rotate(-28deg);
    animation-delay: -3s;
}

.splash-text.bash {
    top: 15vh;
    right: 30vw;
    font-size: 15px;
    color: #8B0000;
    transform: rotate(12deg);
    animation-delay: -15s;
}

.splash-text.clunk {
    bottom: 8vh;
    right: 35vw;
    font-size: 14px;
    color: #A0522D;
    transform: rotate(-22deg);
    animation-delay: -7s;
}

.splash-text.sock {
    top: 85vh;
    left: 35vw;
    font-size: 16px;
    color: #DAA520;
    transform: rotate(30deg);
    animation-delay: -25s;
}

@keyframes grittySplashFloat {
    0%, 100% {
        transform: translateY(0px) scale(1) rotate(0deg);
        opacity: 0.4;
        filter: sepia(30%) saturate(1.4) brightness(0.9) blur(0px);
    }
    20% {
        transform: translateY(-8px) scale(1.05) rotate(1deg);
        opacity: 0.5;
        filter: sepia(40%) saturate(1.5) brightness(0.8) blur(0.2px);
    }
    40% {
        transform: translateY(-20px) scale(1.15) rotate(-1deg);
        opacity: 0.7;
        filter: sepia(50%) saturate(1.6) brightness(1.1) blur(0px);
    }
    60% {
        transform: translateY(-35px) scale(1.08) rotate(2deg);
        opacity: 0.8;
        filter: sepia(60%) saturate(1.7) brightness(1.2) blur(0.1px);
    }
    80% {
        transform: translateY(-20px) scale(1.12) rotate(-0.5deg);
        opacity: 0.6;
        filter: sepia(45%) saturate(1.5) brightness(1.0) blur(0.3px);
    }
}

/* Animated Background Shapes */
/* Muddy Rock Formations */
.bg-shape {
    position: absolute;
    opacity: 0.15;
    /* animation: muddyRockFloat 35s ease-in-out infinite; */
}

.bg-shape.shape1 {
    width: 70px;
    height: 50px;
    background:
        radial-gradient(ellipse at 30% 30%, rgba(62, 39, 35, 0.8) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 70%, rgba(83, 53, 10, 0.6) 0%, transparent 50%),
        linear-gradient(45deg, #654321, #8B4513);
    border-radius: 60% 40% 70% 30%;
    top: 12vh;
    left: 18vw;
    /* animation-delay: 0s; */
    box-shadow:
        inset 0 2px 4px rgba(47, 27, 20, 0.6),
        0 4px 8px rgba(62, 39, 35, 0.4);
}

.bg-shape.shape2 {
    width: 90px;
    height: 65px;
    background:
        radial-gradient(ellipse at 40% 20%, rgba(101, 67, 33, 0.7) 0%, transparent 55%),
        radial-gradient(ellipse at 60% 80%, rgba(47, 27, 20, 0.8) 0%, transparent 45%),
        linear-gradient(-30deg, #8B4513, #A0522D);
    border-radius: 50% 70% 40% 80%;
    bottom: 18vh;
    right: 22vw;
    /* animation-delay: -12s; */
    box-shadow:
        inset 0 3px 6px rgba(62, 39, 35, 0.7),
        0 5px 10px rgba(47, 27, 20, 0.5);
}

.bg-shape.shape3 {
    width: 55px;
    height: 40px;
    background:
        radial-gradient(ellipse at 50% 30%, rgba(139, 69, 19, 0.6) 0%, transparent 50%),
        radial-gradient(ellipse at 20% 80%, rgba(83, 53, 10, 0.7) 0%, transparent 40%),
        linear-gradient(60deg, #CD853F, #D2691E);
    border-radius: 70% 30% 60% 40%;
    top: 45vh;
    left: 12vw;
    /* animation-delay: -24s; */
    box-shadow:
        inset 0 2px 3px rgba(101, 67, 33, 0.6),
        0 3px 6px rgba(83, 53, 10, 0.4);
}

/* Dirt Clumps */
.dirt-clump {
    position: absolute;
    opacity: 0.2;
    animation: dirtClumpFloat 25s ease-in-out infinite;
    z-index: 2;
}

.dirt-clump.clump1 {
    width: 35px;
    height: 25px;
    background:
        radial-gradient(ellipse at 60% 40%, rgba(47, 27, 20, 0.9) 0%, transparent 70%),
        linear-gradient(30deg, #3E2723, #654321);
    border-radius: 80% 20% 70% 30%;
    top: 25vh;
    right: 8vw;
    /* animation-delay: -5s; */
}

.dirt-clump.clump2 {
    width: 28px;
    height: 35px;
    background:
        radial-gradient(ellipse at 30% 60%, rgba(83, 53, 10, 0.8) 0%, transparent 65%),
        linear-gradient(-45deg, #654321, #8B4513);
    border-radius: 40% 60% 30% 70%;
    bottom: 30vh;
    left: 25vw;
    /* animation-delay: -15s; */
}

.dirt-clump.clump3 {
    width: 42px;
    height: 30px;
    background:
        radial-gradient(ellipse at 70% 30%, rgba(101, 67, 33, 0.7) 0%, transparent 60%),
        linear-gradient(15deg, #8B4513, #A0522D);
    border-radius: 60% 40% 80% 20%;
    top: 70vh;
    right: 30vw;
    animation-delay: -20s;
}

.dirt-clump.clump4 {
    width: 25px;
    height: 20px;
    background:
        radial-gradient(ellipse at 40% 50%, rgba(47, 27, 20, 0.8) 0%, transparent 65%),
        linear-gradient(60deg, #654321, #3E2723);
    border-radius: 50% 30% 70% 40%;
    top: 15vh;
    left: 35vw;
    animation-delay: -8s;
}

.dirt-clump.clump5 {
    width: 38px;
    height: 28px;
    background:
        radial-gradient(ellipse at 80% 20%, rgba(83, 53, 10, 0.9) 0%, transparent 70%),
        linear-gradient(-30deg, #8B4513, #654321);
    border-radius: 40% 60% 30% 80%;
    bottom: 45vh;
    right: 35vw;
    animation-delay: -12s;
}

.dirt-clump.clump6 {
    width: 30px;
    height: 25px;
    background:
        radial-gradient(ellipse at 60% 70%, rgba(101, 67, 33, 0.8) 0%, transparent 60%),
        linear-gradient(120deg, #A0522D, #8B4513);
    border-radius: 70% 30% 50% 60%;
    top: 85vh;
    right: 10vw;
    animation-delay: -4s;
}

.dirt-clump.clump7 {
    width: 32px;
    height: 22px;
    background:
        radial-gradient(ellipse at 30% 40%, rgba(62, 39, 35, 0.7) 0%, transparent 65%),
        linear-gradient(90deg, #654321, #8B4513);
    border-radius: 80% 20% 60% 40%;
    top: 40vh;
    left: 35vw;
    animation-delay: -16s;
}

.dirt-clump.clump8 {
    width: 28px;
    height: 32px;
    background:
        radial-gradient(ellipse at 50% 80%, rgba(47, 27, 20, 0.9) 0%, transparent 70%),
        linear-gradient(180deg, #3E2723, #A0522D);
    border-radius: 30% 70% 80% 20%;
    bottom: 60vh;
    left: 8vw;
    animation-delay: -24s;
}

@keyframes muddyRockFloat {
    0%, 100% {
        transform: translateY(0px) scale(1) rotate(0deg);
        opacity: 0.15;
        filter: sepia(40%) saturate(1.3) brightness(0.8);
    }
    25% {
        transform: translateY(-15px) scale(1.05) rotate(2deg);
        opacity: 0.2;
        filter: sepia(50%) saturate(1.4) brightness(0.7);
    }
    50% {
        transform: translateY(-30px) scale(1.1) rotate(-1deg);
        opacity: 0.25;
        filter: sepia(30%) saturate(1.5) brightness(0.9);
    }
    75% {
        transform: translateY(-20px) scale(1.03) rotate(1deg);
        opacity: 0.18;
        filter: sepia(45%) saturate(1.2) brightness(0.8);
    }
}

@keyframes dirtClumpFloat {
    0%, 100% {
        transform: translateY(0px) scale(1) rotate(0deg);
        opacity: 0.12;
        filter: sepia(60%) saturate(1.6) brightness(0.6);
    }
    33% {
        transform: translateY(-10px) scale(1.08) rotate(-2deg);
        opacity: 0.18;
        filter: sepia(70%) saturate(1.7) brightness(0.5);
    }
    66% {
        transform: translateY(-25px) scale(0.95) rotate(3deg);
        opacity: 0.22;
        filter: sepia(50%) saturate(1.8) brightness(0.7);
    }
}

/* Particle Effects */
/* Dirt Particles and Debris */
.particle {
    position: absolute;
    opacity: 0.4;
    animation: dirtParticleFloat 25s linear infinite;
    z-index: 1;
}

.particle.p1 {
    width: 4px;
    height: 3px;
    background:
        radial-gradient(ellipse, rgba(101, 67, 33, 0.9) 0%, transparent 70%);
    border-radius: 60% 40%;
    top: 8vh;
    left: 25vw;
    /* animation-delay: 0s; */
    filter: blur(0.5px);
}

.particle.p2 {
    width: 3px;
    height: 4px;
    background:
        radial-gradient(ellipse, rgba(83, 53, 10, 0.8) 0%, transparent 65%);
    border-radius: 40% 60%;
    top: 82vh;
    left: 65vw;
    /* animation-delay: -6s; */
    filter: blur(0.3px);
}

.particle.p3 {
    width: 5px;
    height: 2px;
    background:
        linear-gradient(45deg, rgba(139, 69, 19, 0.7), rgba(160, 82, 45, 0.9));
    border-radius: 70% 30%;
    top: 35vh;
    right: 15vw;
    /* animation-delay: -12s; */
    filter: blur(0.4px);
}

.particle.p4 {
    width: 2px;
    height: 5px;
    background:
        radial-gradient(ellipse, rgba(62, 39, 35, 0.8) 0%, transparent 60%);
    border-radius: 30% 70%;
    bottom: 25vh;
    left: 20vw;
    /* animation-delay: -18s; */
    filter: blur(0.6px);
}

/* Additional dirt particles */
.particle.p5 {
    width: 3px;
    height: 3px;
    background:
        radial-gradient(circle, rgba(47, 27, 20, 0.9) 0%, transparent 50%);
    border-radius: 50%;
    top: 50vh;
    right: 35vw;
    /* animation-delay: -3s; */
    filter: blur(0.2px);
}

.particle.p6 {
    width: 4px;
    height: 2px;
    background:
        linear-gradient(30deg, rgba(101, 67, 33, 0.8), rgba(139, 69, 19, 0.6));
    border-radius: 80% 20%;
    bottom: 40vh;
    right: 45vw;
    animation-delay: -9s;
    filter: blur(0.3px);
}

.particle.p7 {
    width: 3px;
    height: 3px;
    background:
        radial-gradient(circle, rgba(62, 39, 35, 0.9) 0%, transparent 60%);
    border-radius: 50%;
    top: 12vh;
    left: 40vw;
    animation-delay: -2s;
    filter: blur(0.4px);
}

.particle.p8 {
    width: 2px;
    height: 4px;
    background:
        linear-gradient(45deg, rgba(83, 53, 10, 0.8), rgba(47, 27, 20, 0.7));
    border-radius: 30% 70%;
    top: 75vh;
    right: 40vw;
    animation-delay: -11s;
    filter: blur(0.5px);
}

.particle.p9 {
    width: 5px;
    height: 3px;
    background:
        radial-gradient(ellipse, rgba(139, 69, 19, 0.8) 0%, transparent 65%);
    border-radius: 70% 30%;
    bottom: 20vh;
    left: 40vw;
    animation-delay: -7s;
    filter: blur(0.2px);
}

.particle.p10 {
    width: 3px;
    height: 5px;
    background:
        linear-gradient(60deg, rgba(101, 67, 33, 0.9), rgba(160, 82, 45, 0.6));
    border-radius: 40% 60%;
    top: 30vh;
    left: 10vw;
    animation-delay: -14s;
    filter: blur(0.6px);
}

.particle.p11 {
    width: 4px;
    height: 4px;
    background:
        radial-gradient(circle, rgba(47, 27, 20, 0.8) 0%, transparent 50%);
    border-radius: 50%;
    bottom: 65vh;
    right: 15vw;
    animation-delay: -5s;
    filter: blur(0.3px);
}

.particle.p12 {
    width: 2px;
    height: 3px;
    background:
        linear-gradient(90deg, rgba(83, 53, 10, 0.7), rgba(139, 69, 19, 0.8));
    border-radius: 60% 40%;
    top: 95vh;
    left: 30vw;
    animation-delay: -17s;
    filter: blur(0.4px);
}

@keyframes dirtParticleFloat {
    0% {
        transform: translateY(0px) translateX(0px) scale(1) rotate(0deg);
        opacity: 0;
        filter: blur(0.8px) sepia(40%);
    }
    15% {
        opacity: 0.6;
        filter: blur(0.4px) sepia(60%);
    }
    30% {
        transform: translateY(-30px) translateX(10px) scale(1.2) rotate(45deg);
        opacity: 0.8;
        filter: blur(0.2px) sepia(80%);
    }
    60% {
        transform: translateY(-70px) translateX(25px) scale(0.9) rotate(120deg);
        opacity: 0.7;
        filter: blur(0.3px) sepia(70%);
    }
    85% {
        opacity: 0.4;
        filter: blur(0.6px) sepia(50%);
    }
    100% {
        transform: translateY(-120px) translateX(40px) scale(0.3) rotate(180deg);
        opacity: 0;
        filter: blur(1px) sepia(30%);
    }
}

/* Modern Glow Effects */
.glow-orb {
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(210, 105, 30, 0.08) 0%, transparent 70%);
    /* animation: orbFloat 25s ease-in-out infinite; */
    pointer-events: none;
}

.glow-orb.orb1 {
    top: 18vh;
    left: 8vw;
    /* animation-delay: 0s; */
}

.glow-orb.orb2 {
    bottom: 15vh;
    right: 12vw;
    /* animation-delay: -12s; */
    background: radial-gradient(circle, rgba(139, 69, 19, 0.08) 0%, transparent 70%);
}

@keyframes orbFloat {
    0%, 100% {
        transform: translate(0px, 0px) scale(1);
        opacity: 0.3;
    }
    33% {
        transform: translate(30px, -20px) scale(1.1);
        opacity: 0.5;
    }
    66% {
        transform: translate(-20px, 30px) scale(0.9);
        opacity: 0.4;
    }
}

/* Header Styles */
.game-header {
    text-align: center;
    margin-bottom: 30px;
}

.game-header {
    background: linear-gradient(145deg, #8B4513, #A0522D);
    margin: -20px -20px 15px -20px;
    padding: 12px 20px;
    border-radius: 20px 20px 0 0;
    border-bottom: 3px solid #5D4037;
    box-shadow:
        0 4px 8px rgba(47, 27, 20, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.game-title {
    font-family: 'Fredoka One', cursive;
    font-size: 2.2rem;
    color: #F5DEB3;
    margin: 0;
    text-align: center;
    text-shadow:
        3px 3px 6px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(245, 222, 179, 0.3);
    background: linear-gradient(45deg, #F5DEB3, #FFE4B5, #FFEFD5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
}



.difficulty-selector {
    display: flex;
    gap: 4px;
    margin-top: 5px;
}

.difficulty-btn {
    padding: 6px 12px;
    border: 2px solid #8B4513;
    background: linear-gradient(145deg, #F5DEB3, #DEB887);
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #5D4037;
    min-width: 50px;
    box-shadow: 0 2px 4px rgba(139, 69, 19, 0.2);
}

.difficulty-btn:hover {
    border-color: #A0522D;
    background: linear-gradient(145deg, #DEB887, #D2B48C);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(139, 69, 19, 0.3);
}

.difficulty-btn.active {
    background: linear-gradient(145deg, #8B4513, #A0522D);
    border-color: #5D4037;
    color: #F5DEB3;
    box-shadow:
        0 4px 8px rgba(139, 69, 19, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.difficulty-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.difficulty-btn:disabled:hover {
    border-color: #8B4513;
    background: linear-gradient(145deg, #F5DEB3, #DEB887);
    transform: none;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 12px;
    background: linear-gradient(145deg, #D2B48C, #DEB887);
    padding: 12px;
    border-radius: 12px;
    border: 2px solid #8B4513;
    box-shadow:
        inset 0 2px 4px rgba(139, 69, 19, 0.1),
        0 4px 8px rgba(139, 69, 19, 0.2);
    flex-shrink: 0;
}

.stat-item {
    background: linear-gradient(145deg, #F5DEB3, #DEB887);
    border-radius: 10px;
    padding: 12px 8px;
    text-align: center;
    box-shadow:
        0 4px 8px rgba(139, 69, 19, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    border: 1px solid #A0522D;
}

.stat-item:hover {
    transform: translateY(-3px);
    box-shadow:
        0 6px 12px rgba(139, 69, 19, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: #8B4513;
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.stat-value {
    display: block;
    font-size: 1.6rem;
    font-weight: 800;
    color: #5D4037;
    text-shadow: 1px 1px 2px rgba(139, 69, 19, 0.2);
}

/* Power-ups Container */
.power-ups-container {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    justify-content: center;
    flex-shrink: 0;
}

.power-up {
    background: linear-gradient(145deg, #fed7d7, #feb2b2);
    border-radius: 8px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    opacity: 0.6;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.power-up.active {
    opacity: 1;
    background: linear-gradient(145deg, #9ae6b4, #68d391);
    transform: scale(1.05);
    box-shadow:
        0 0 20px rgba(104, 211, 145, 0.6),
        0 4px 8px rgba(0, 0, 0, 0.2);
    animation: powerUpPulse 2s ease-in-out infinite;
}

@keyframes powerUpPulse {
    0%, 100% {
        box-shadow:
            0 0 20px rgba(104, 211, 145, 0.6),
            0 4px 8px rgba(0, 0, 0, 0.2);
    }
    50% {
        box-shadow:
            0 0 30px rgba(104, 211, 145, 0.8),
            0 6px 12px rgba(0, 0, 0, 0.3);
    }
}

.power-up-icon {
    font-size: 1.2rem;
}

.power-up-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: #fff;
    width: 0%;
    transition: width 0.1s linear;
    border-radius: 0 0 8px 8px;
}

/* Specific power-up styling */
#speedBoost.active {
    background: linear-gradient(145deg, #fef5e7, #fed7aa);
    color: #c05621;
}

#speedBoost.active .power-up-progress {
    background: linear-gradient(90deg, #f6ad55, #ed8936);
}

#doublePoints.active {
    background: linear-gradient(145deg, #fefcbf, #faf089);
    color: #744210;
}

#doublePoints.active .power-up-progress {
    background: linear-gradient(90deg, #f6e05e, #ecc94b);
}

#freezeTime.active {
    background: linear-gradient(145deg, #e6fffa, #b2f5ea);
    color: #234e52;
}

#freezeTime.active .power-up-progress {
    background: linear-gradient(90deg, #4fd1c7, #38b2ac);
}

/* Power-up message animation */
@keyframes powerUpMessageFloat {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }
    20% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.2);
    }
    80% {
        opacity: 1;
        transform: translate(-50%, -60%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -80%) scale(0.8);
    }
}

/* Game Board */
.game-board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 15px;
    padding: 15px;
    background: linear-gradient(145deg, #A0522D, #8B4513);
    border-radius: 15px;
    box-shadow:
        inset 0 4px 8px rgba(0, 0, 0, 0.4),
        0 8px 16px rgba(47, 27, 20, 0.5);
    border: 3px solid #5D4037;
    position: relative;
    flex: 1;
    min-height: 0;
    place-items: center;
}

.game-board::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    background: linear-gradient(145deg, #CD853F, #D2B48C);
    border-radius: 12px;
    z-index: 0;
    box-shadow: inset 0 2px 4px rgba(139, 69, 19, 0.3);
}

.game-board > .hole {
    position: relative;
    z-index: 1;
}

.hole {
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, #3E2723 0%, #1B0000 100%);
    border-radius: 50%;
    position: relative;
    cursor: pointer;
    box-shadow:
        inset 0 8px 16px rgba(0, 0, 0, 0.6),
        0 4px 8px rgba(139, 69, 19, 0.3);
    overflow: hidden;
    transition: all 0.2s ease;
    border: 3px solid #5D4037;
}

.hole::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(139, 69, 19, 0.3), transparent 50%);
}

.hole:hover {
    transform: scale(1.08);
    box-shadow:
        inset 0 12px 24px rgba(0, 0, 0, 0.7),
        0 6px 12px rgba(139, 69, 19, 0.4);
}

.hole:active {
    transform: scale(0.92);
}

.mole {
    width: 70px;
    height: 70px;
    background: linear-gradient(145deg, #8B4513, #5D4037);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, 150%);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    cursor: pointer;
    box-shadow:
        0 5px 10px rgba(0, 0, 0, 0.4),
        inset 0 2px 4px rgba(255, 255, 255, 0.2);
    border: 2px solid #3E2723;
}

.mole::before {
    content: '🐭';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.2rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.mole:hover {
    background: linear-gradient(145deg, #A0522D, #8B4513);
    transform: translate(-50%, -50%) scale(1.1);
}

.mole.golden {
    background: linear-gradient(145deg, #FFD700, #DAA520);
    animation: goldenSparkle 1.2s infinite alternate;
    border: 3px solid #B8860B;
    box-shadow:
        0 8px 16px rgba(255, 215, 0, 0.4),
        inset 0 2px 4px rgba(255, 255, 255, 0.3);
}

.mole.golden::before {
    content: '✨';
    font-size: 2.5rem;
    filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.8));
}

.mole.bomb {
    background: linear-gradient(145deg, #2F1B14, #1A0E0A);
    animation: bombDanger 0.6s infinite alternate;
    border: 3px solid #8B0000;
    box-shadow:
        0 8px 16px rgba(139, 0, 0, 0.5),
        inset 0 2px 4px rgba(255, 255, 255, 0.1);
}

.mole.bomb::before {
    content: '💣';
    font-size: 2.2rem;
    filter: drop-shadow(0 0 4px rgba(255, 0, 0, 0.6));
}

/* Power-up moles */
.mole.speedBoost {
    background: linear-gradient(145deg, #fed7aa, #f6ad55);
    box-shadow:
        0 5px 15px rgba(246, 173, 85, 0.6),
        inset 0 2px 4px rgba(255, 255, 255, 0.3);
    animation: powerUpGlow 1s ease-in-out infinite alternate;
}

.mole.speedBoost::before {
    content: '⚡';
    font-size: 2.2rem;
    filter: drop-shadow(0 0 6px rgba(255, 165, 0, 0.8));
}

.mole.doublePoints {
    background: linear-gradient(145deg, #faf089, #f6e05e);
    box-shadow:
        0 5px 15px rgba(246, 224, 94, 0.6),
        inset 0 2px 4px rgba(255, 255, 255, 0.3);
    animation: powerUpGlow 1s ease-in-out infinite alternate;
}

.mole.doublePoints::before {
    content: '💰';
    font-size: 2.2rem;
    filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.8));
}

.mole.freezeTime {
    background: linear-gradient(145deg, #b2f5ea, #4fd1c7);
    box-shadow:
        0 5px 15px rgba(79, 209, 199, 0.6),
        inset 0 2px 4px rgba(255, 255, 255, 0.3);
    animation: powerUpGlow 1s ease-in-out infinite alternate;
}

.mole.freezeTime::before {
    content: '❄️';
    font-size: 2.2rem;
    filter: drop-shadow(0 0 6px rgba(0, 255, 255, 0.8));
}

@keyframes powerUpGlow {
    from {
        transform: translate(-50%, -50%) scale(1);
    }
    to {
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.mole.up {
    transform: translate(-50%, -50%);
}

@keyframes goldenSparkle {
    0% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow:
            0 8px 16px rgba(255, 215, 0, 0.4),
            inset 0 2px 4px rgba(255, 255, 255, 0.3);
    }
    100% {
        transform: translate(-50%, -50%) scale(1.15);
        box-shadow:
            0 12px 24px rgba(255, 215, 0, 0.6),
            inset 0 2px 4px rgba(255, 255, 255, 0.5);
    }
}

@keyframes bombDanger {
    0% {
        box-shadow:
            0 8px 16px rgba(139, 0, 0, 0.5),
            inset 0 2px 4px rgba(255, 255, 255, 0.1);
    }
    100% {
        box-shadow:
            0 12px 24px rgba(255, 0, 0, 0.8),
            inset 0 2px 4px rgba(255, 255, 255, 0.2);
    }
}

/* Controls */
.controls {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-shrink: 0;
}

.game-btn {
    padding: 14px 28px;
    border: 2px solid #8B4513;
    border-radius: 30px;
    font-family: inherit;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    position: relative;
    overflow: hidden;
}

.game-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.game-btn:hover::before {
    left: 100%;
}

.game-btn.primary {
    background: linear-gradient(145deg, #8B4513, #A0522D);
    color: #F5DEB3;
    box-shadow:
        0 6px 18px rgba(139, 69, 19, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.game-btn.primary:hover {
    transform: translateY(-3px);
    background: linear-gradient(145deg, #A0522D, #CD853F);
    box-shadow:
        0 8px 24px rgba(139, 69, 19, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.game-btn.secondary {
    background: linear-gradient(145deg, #D2691E, #CD853F);
    color: #5D4037;
    box-shadow:
        0 6px 18px rgba(210, 105, 30, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.game-btn.secondary:hover {
    transform: translateY(-3px);
    background: linear-gradient(145deg, #CD853F, #DEB887);
    box-shadow:
        0 8px 24px rgba(210, 105, 30, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.game-btn:not(.primary):not(.secondary) {
    background: linear-gradient(145deg, #e2e8f0, #cbd5e0);
    color: #4a5568;
}

.game-btn:not(.primary):not(.secondary):hover {
    transform: translateY(-2px);
    background: linear-gradient(145deg, #cbd5e0, #a0aec0);
}

/* Modals */
.game-over-modal,
.instructions-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(145deg, #F5DEB3, #DEB887);
    padding: 45px;
    border-radius: 25px;
    text-align: center;
    max-width: 550px;
    width: 90%;
    box-shadow:
        0 25px 50px rgba(139, 69, 19, 0.4),
        inset 0 2px 0 rgba(255, 255, 255, 0.3);
    animation: modalSlideIn 0.4s ease;
    border: 3px solid #8B4513;
    position: relative;
}

.modal-content::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, #8B4513, #CD853F, #D2691E, #A0522D);
    border-radius: 28px;
    z-index: -1;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-content h2 {
    font-family: 'Fredoka One', cursive;
    font-size: 2.3rem;
    color: #5D4037;
    margin-bottom: 25px;
    text-shadow:
        2px 2px 4px rgba(139, 69, 19, 0.3),
        0 0 15px rgba(205, 133, 63, 0.4);
    background: linear-gradient(45deg, #8B4513, #D2691E, #CD853F);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.final-stats {
    margin: 25px 0;
    background: linear-gradient(145deg, #DEB887, #D2B48C);
    padding: 20px;
    border-radius: 15px;
    border: 2px solid #A0522D;
}

.final-stats p {
    font-size: 1.3rem;
    margin: 12px 0;
    color: #5D4037;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(139, 69, 19, 0.2);
}

.instructions {
    text-align: left;
    margin: 20px 0;
}

.instruction-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 15px 0;
    padding: 15px;
    background: #f7fafc;
    border-radius: 10px;
}

.instruction-icon {
    font-size: 1.5rem;
    min-width: 30px;
}

/* Floating Points Animation */
.floating-points {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 999;
}

.floating-point {
    position: absolute;
    font-weight: 800;
    font-size: 1.8rem;
    color: #8B4513;
    animation: floatUp 1.2s ease-out forwards;
    text-shadow:
        2px 2px 4px rgba(0, 0, 0, 0.5),
        0 0 10px rgba(139, 69, 19, 0.6);
    z-index: 1000;
}

.floating-point.negative {
    color: #8B0000;
    text-shadow:
        2px 2px 4px rgba(0, 0, 0, 0.5),
        0 0 10px rgba(139, 0, 0, 0.8);
}

.floating-point.golden {
    color: #FFD700;
    font-size: 2.2rem;
    text-shadow:
        2px 2px 4px rgba(0, 0, 0, 0.5),
        0 0 15px rgba(255, 215, 0, 0.8);
}

@keyframes floatUp {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    50% {
        opacity: 0.8;
        transform: translateY(-50px) scale(1.2);
    }
    100% {
        opacity: 0;
        transform: translateY(-120px) scale(0.8);
    }
}

/* Special brown theme effects */
.hole.hit {
    animation: holeHit 0.3s ease;
}

@keyframes holeHit {
    0% { transform: scale(1); }
    50% {
        transform: scale(1.2);
        box-shadow:
            inset 0 12px 24px rgba(0, 0, 0, 0.8),
            0 0 20px rgba(139, 69, 19, 0.8);
    }
    100% { transform: scale(1); }
}

.hole.combo-glow {
    animation: comboGlow 0.5s ease;
}

@keyframes comboGlow {
    0%, 100% {
        box-shadow:
            inset 0 10px 20px rgba(0, 0, 0, 0.6),
            0 4px 8px rgba(139, 69, 19, 0.3);
    }
    50% {
        box-shadow:
            inset 0 10px 20px rgba(0, 0, 0, 0.6),
            0 0 30px rgba(255, 215, 0, 0.8),
            0 4px 8px rgba(139, 69, 19, 0.3);
    }
}

/* Comprehensive Responsive Design - No Scrollbars */

/* Large Desktop */
@media (min-width: 1200px) {
    .game-container {
        width: min(600px, 95vw);
        height: min(85vh, 750px);
        padding: 25px;
    }

    .game-header {
        margin: -25px -25px 15px -25px;
        padding: 15px 25px;
    }

    .game-board {
        gap: 18px;
        padding: 18px;
    }

    .hole {
        width: 110px;
        height: 110px;
    }

    .mole {
        width: 80px;
        height: 80px;
    }

    .mole::before {
        font-size: 2.5rem;
    }
}

/* Medium Desktop */
@media (max-width: 1199px) and (min-width: 1024px) {
    .game-container {
        width: min(550px, 95vw);
        height: min(85vh, 700px);
        padding: 22px;
    }

    .game-header {
        margin: -22px -22px 12px -22px;
        padding: 12px 22px;
    }

    .game-title {
        font-size: 2rem;
    }

    .stats-container {
        gap: 8px;
        padding: 10px;
        margin-bottom: 10px;
    }

    .game-board {
        gap: 16px;
        padding: 16px;
        margin-bottom: 12px;
    }

    .hole {
        width: 100px;
        height: 100px;
    }

    .mole {
        width: 72px;
        height: 72px;
    }

    .mole::before {
        font-size: 2.2rem;
    }
}

/* Tablet Landscape */
@media (max-width: 1023px) and (min-width: 768px) {
    .game-container {
        width: min(500px, 95vw);
        height: min(85vh, 650px);
        padding: 18px;
    }

    .game-header {
        margin: -18px -18px 10px -18px;
        padding: 10px 18px;
    }

    .game-title {
        font-size: 1.8rem;
    }

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
        padding: 8px;
        margin-bottom: 8px;
    }

    .stat-item {
        padding: 8px 6px;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    .stat-value {
        font-size: 1.3rem;
    }

    .game-board {
        gap: 14px;
        padding: 14px;
        margin-bottom: 10px;
    }

    .hole {
        width: 90px;
        height: 90px;
    }

    .mole {
        width: 65px;
        height: 65px;
    }

    .mole::before {
        font-size: 2rem;
    }

    .power-ups-container {
        flex-wrap: wrap;
        gap: 5px;
        margin-bottom: 10px;
    }

    .power-up {
        padding: 5px 8px;
        font-size: 0.7rem;
    }
}

/* Mobile Portrait */
@media (max-width: 767px) and (min-width: 480px) {
    .game-container {
        width: 95vw;
        height: 90vh;
        padding: 15px;
        border-radius: 15px;
    }

    .game-header {
        margin: -15px -15px 8px -15px;
        padding: 8px 15px;
        border-radius: 15px 15px 0 0;
    }

    .game-title {
        font-size: 1.5rem;
    }

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 4px;
        padding: 6px;
        margin-bottom: 6px;
    }

    .stat-item {
        padding: 6px 4px;
    }

    .stat-label {
        font-size: 0.65rem;
        margin-bottom: 2px;
    }

    .stat-value {
        font-size: 1.1rem;
    }

    .game-board {
        gap: 10px;
        padding: 10px;
        margin-bottom: 8px;
    }

    .hole {
        width: 70px;
        height: 70px;
    }

    .mole {
        width: 50px;
        height: 50px;
    }

    .mole::before {
        font-size: 1.6rem;
    }

    .power-ups-container {
        flex-wrap: wrap;
        gap: 3px;
        margin-bottom: 8px;
        justify-content: center;
    }

    .power-up {
        padding: 3px 6px;
        font-size: 0.6rem;
        border-radius: 5px;
    }

    .controls {
        flex-direction: column;
        gap: 5px;
    }

    .game-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
        border-radius: 18px;
    }

    /* Adjust background elements for mobile */
    .wanted-poster {
        width: 40px;
        height: 55px;
    }

    .wanted-poster .poster-text {
        font-size: 6px;
    }

    .wanted-poster .poster-mole {
        font-size: 16px;
    }

    .splash-text {
        font-size: 10px !important;
    }

    .bg-shape {
        width: 18px !important;
        height: 18px !important;
    }

    .glow-orb {
        width: 60px !important;
        height: 60px !important;
    }
}

/* Small Mobile */
@media (max-width: 479px) {
    .game-container {
        width: 98vw;
        height: 95vh;
        padding: 10px;
        border-radius: 12px;
    }

    .game-header {
        margin: -10px -10px 5px -10px;
        padding: 6px 10px;
        border-radius: 12px 12px 0 0;
    }

    .game-title {
        font-size: 1.3rem;
    }

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 3px;
        padding: 5px;
        margin-bottom: 5px;
    }

    .stat-item {
        padding: 4px 2px;
    }

    .stat-label {
        font-size: 0.6rem;
        margin-bottom: 1px;
    }

    .stat-value {
        font-size: 1rem;
    }

    .game-board {
        gap: 8px;
        padding: 8px;
        margin-bottom: 5px;
    }

    .hole {
        width: 60px;
        height: 60px;
    }

    .mole {
        width: 44px;
        height: 44px;
    }

    .mole::before {
        font-size: 1.4rem;
    }

    .power-ups-container {
        flex-wrap: wrap;
        gap: 2px;
        margin-bottom: 5px;
    }

    .power-up {
        padding: 2px 4px;
        font-size: 0.55rem;
        border-radius: 4px;
    }

    .controls {
        gap: 4px;
    }

    .game-btn {
        padding: 6px 12px;
        font-size: 0.75rem;
        border-radius: 15px;
    }

    /* Further adjust background elements for very small screens */
    .wanted-poster {
        width: 30px;
        height: 42px;
    }

    .wanted-poster .poster-text {
        font-size: 5px;
    }

    .wanted-poster .poster-mole {
        font-size: 12px;
    }

    .splash-text {
        font-size: 8px !important;
    }

    .bg-shape {
        width: 12px !important;
        height: 12px !important;
    }

    .glow-orb {
        width: 40px !important;
        height: 40px !important;
    }
}

/* Height-based responsive design - No Scrollbars */
@media (max-height: 800px) {
    .game-container {
        height: 95vh;
        padding: 15px;
    }

    .game-header {
        margin: -15px -15px 8px -15px;
        padding: 8px 15px;
    }

    .game-title {
        font-size: 1.8rem;
    }

    .stats-container {
        padding: 8px;
        margin-bottom: 8px;
    }

    .game-board {
        gap: 12px;
        padding: 12px;
        margin-bottom: 8px;
    }

    .hole {
        width: 85px;
        height: 85px;
    }

    .mole {
        width: 62px;
        height: 62px;
    }

    .mole::before {
        font-size: 1.9rem;
    }
}

@media (max-height: 650px) {
    .game-container {
        height: 98vh;
        padding: 12px;
    }

    .game-header {
        margin: -12px -12px 6px -12px;
        padding: 6px 12px;
    }

    .game-title {
        font-size: 1.5rem;
    }

    .stats-container {
        padding: 6px;
        margin-bottom: 6px;
        gap: 3px;
    }

    .stat-item {
        padding: 5px 3px;
    }

    .stat-label {
        font-size: 0.65rem;
        margin-bottom: 2px;
    }

    .stat-value {
        font-size: 1.1rem;
    }

    .game-board {
        gap: 10px;
        padding: 10px;
        margin-bottom: 6px;
    }

    .hole {
        width: 70px;
        height: 70px;
    }

    .mole {
        width: 50px;
        height: 50px;
    }

    .mole::before {
        font-size: 1.6rem;
    }

    .power-ups-container {
        margin-bottom: 6px;
        gap: 3px;
    }

    .power-up {
        padding: 3px 5px;
        font-size: 0.6rem;
    }

    .controls {
        gap: 5px;
    }

    .game-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

/* Very short screens */
@media (max-height: 500px) {
    .game-container {
        height: 99vh;
        padding: 8px;
        border-radius: 10px;
    }

    .game-header {
        margin: -8px -8px 4px -8px;
        padding: 4px 8px;
    }

    .game-title {
        font-size: 1.2rem;
    }

    .stats-container {
        padding: 4px;
        margin-bottom: 4px;
        gap: 2px;
    }

    .stat-item {
        padding: 3px 2px;
    }

    .stat-label {
        font-size: 0.6rem;
        margin-bottom: 1px;
    }

    .stat-value {
        font-size: 0.9rem;
    }

    .game-board {
        gap: 6px;
        padding: 6px;
        margin-bottom: 4px;
    }

    .hole {
        width: 55px;
        height: 55px;
    }

    .mole {
        width: 40px;
        height: 40px;
    }

    .mole::before {
        font-size: 1.3rem;
    }

    .power-ups-container {
        margin-bottom: 4px;
        gap: 2px;
    }

    .power-up {
        padding: 2px 3px;
        font-size: 0.55rem;
    }

    .controls {
        gap: 3px;
    }

    .game-btn {
        padding: 4px 8px;
        font-size: 0.7rem;
    }
}

/* Additional Animations */
.hole.hit {
    animation: holeHit 0.3s ease;
}

@keyframes holeHit {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.combo-glow {
    animation: comboGlow 0.5s ease;
}

@keyframes comboGlow {
    0% { box-shadow: 0 0 0 rgba(72, 187, 120, 0.7); }
    50% { box-shadow: 0 0 20px rgba(72, 187, 120, 0.7); }
    100% { box-shadow: 0 0 0 rgba(72, 187, 120, 0.7); }
} 