
        /* Preloader Styles */
        #preloader {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: url('bg.jpg') no-repeat center center fixed;
            background-size: cover;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            z-index: 9999;
            transition: opacity 0.5s ease-out;
        }

        #preloader.hidden {
            opacity: 0;
            pointer-events: none;
        }

        .loader {
            position: relative;
            width: 80px;
            height: 80px;
        }

        .fruit-loader {
            position: absolute;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            animation: orbit 2s linear infinite;
        }

        .fruit-loader:nth-child(1) {
            background: #FF6B6B;
            animation-delay: 0s;
            box-shadow: 0 0 20px #FF6B6B;
        }

        .fruit-loader:nth-child(2) {
            background: #4ECDC4;
            animation-delay: -0.4s;
            box-shadow: 0 0 20px #4ECDC4;
        }

        .fruit-loader:nth-child(3) {
            background: #FFD166;
            animation-delay: -0.8s;
            box-shadow: 0 0 20px #FFD166;
        }

        .fruit-loader:nth-child(4) {
            background: #9B5DE5;
            animation-delay: -1.2s;
            box-shadow: 0 0 20px #9B5DE5;
        }

        .fruit-loader:nth-child(5) {
            background: #F15BB5;
            animation-delay: -1.6s;
            box-shadow: 0 0 20px #F15BB5;
        }

        @keyframes orbit {
            0% {
                transform: rotate(0deg) translateX(40px) scale(1);
            }

            50% {
                transform: rotate(180deg) translateX(40px) scale(1.3);
            }

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

        .loading-text {
            margin-top: 120px;
            color: white;
            font-size: 24px;
            font-weight: bold;
            animation: pulse 1.5s ease-in-out infinite;
        }

        @keyframes pulse {

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

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

        /* Original Game Styles */
        * {
            font-family: Verdana, Geneva, sans-serif;
        }

        body {
            margin: 0;
            padding: 0;
            background: url('bg.jpg') no-repeat center center fixed;
            background-size: cover;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        #game {
            width: 400px;
            height: 510px;
            position: relative;
            margin: 0 auto;
            margin-top: 6%;
        }

        #score {
            font-size: 14px;
            color: #FFD166;
            font-weight: bold;
            line-height: 30px;
            width: 90px;
            background-color: #4ECDC4;
            border-radius: 10px;
            padding: 0 15px;
            box-shadow: 4px 4px 10px #4ECDC4 inset, 5px 5px 5px #FFF inset;
            position: absolute;
            top: 10px;
            left: 0px;
        }

        #score span {
            text-align: right;
            display: block;
            float: right;
        }

        #level {
            font-size: 14px;
            color: #FFF;
            font-weight: bold;
            line-height: 30px;
            width: 90px;
            background-color: #9B5DE5;
            border-radius: 10px;
            padding: 0 15px;
            box-shadow: 4px 4px 10px #9B5DE5 inset, 5px 5px 5px #FFF inset;
            position: absolute;
            top: 50px;
            left: 0px;
        }

        #level span {
            text-align: right;
            display: block;
            float: right;
        }

        #target {
            font-size: 12px;
            color: #FFF;
            font-weight: bold;
            line-height: 15px;
            width: 120px;
            background-color: #F15BB5;
            border-radius: 10px;
            padding: 5px 10px;
            box-shadow: 4px 4px 10px #F15BB5 inset, 5px 5px 5px #FFF inset;
            position: absolute;
            top: 50px;
            right: 0px;
            text-align: center;
        }

        #target span {
            font-size: 14px;
            display: block;
        }

        #health {
            background-color: #4ECDC4;
            width: 250px;
            height: 14px;
            border-radius: 10px;
            padding: 8px;
            position: absolute;
            top: 10px;
            right: 0px;
            box-shadow: -4px -4px 10px #4ECDC4 inset, -5px -5px 5px #FFF inset;
        }

        #health #hp {
            width: 100%;
            height: 100%;
            border-radius: 8px;
            background-color: #333;
            overflow: hidden;
        }

        #health #remaining-hp {
            width: 100%;
            height: 100%;
            background-color: #FF6B6B;
            transition: width 0.5s linear;
            -moz-transition: width 0.5s linear;
            -webkit-transition: width 0.5s linear;
            -o-transition: width 0.5s linear;
        }

        #board {
            position: absolute;
            top: 95px;
            left: 0px;
            width: 400px;
            height: 400px;
            box-sizing: border-box;
            background-color: #4ECDC4;
            border-radius: 10px;
            padding: 2%;
            box-shadow: -4px -4px 10px #4ECDC4 inset, -5px -5px 5px #FFF inset;
        }

        #board>div {
            position: relative;
            width: 100%;
            height: 100%;
            overflow: hidden;
        }

        #board .tile {
            box-shadow: 0 0 5px #3AA89F inset;
            background-color: #A6E8E1;
            width: 12.5%;
            height: 12.5%;
            display: block;
            float: left;
        }

        #board .tile a {
            width: 8.5%;
            height: 8.5%;
            display: block;
            margin: 2%;
            border-radius: 50%;
            position: absolute;
            text-decoration: none;
            top: 0;
            left: 0;
        }

        #board .tile a span {
            position: absolute;
            width: 55%;
            height: 55%;
            top: 5%;
            left: 5%;
            border-radius: 70% 30%;
            background-color: rgba(255, 255, 255, 0.15);
        }

        #board .tile a.fruit1::before {
            content: "🍎";
            font-size: 30px;
        }

        #board .tile a.fruit2::before {
            content: "🍌";
            font-size: 30px;
        }

        #board .tile a.fruit3::before {
            content: "🍒";
            font-size: 30px;
        }

        #board .tile a.fruit4::before {
            content: "🍓";
            font-size: 30px;
        }

        #board .tile a.fruit5::before {
            content: "🥝";
            font-size: 30px;
        }

        #board .tile a.fruit6::before {
            content: "🍇";
            font-size: 30px;
        }

        #board .tile a.selected {
            animation: fadeInOut 0.6s linear 0 infinite alternate;
            -moz-animation: fadeInOut 0.6s linear 0 infinite alternate;
            -webkit-animation: fadeInOut 0.6s linear 0 infinite alternate;
        }

        /* Match Animation Styles */
        #board .tile a.match {
            animation: matchAnimation 0.5s ease-out forwards;
        }

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

            25% {
                transform: scale(1.2);
                opacity: 0.8;
            }

            50% {
                transform: scale(1.3);
                opacity: 0.6;
            }

            75% {
                transform: scale(1.4);
                opacity: 0.3;
            }

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

        .score-popup {
            position: absolute;
            color: white;
            font-weight: bold;
            font-size: 18px;
            text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
            animation: scorePopup 1s ease-out forwards;
            pointer-events: none;
            z-index: 100;
        }

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

            100% {
                opacity: 0;
                transform: translateY(-50px) scale(1.5);
            }
        }

        .fruit-particle {
            position: absolute;
            width: 8px;
            height: 8px;
            border-radius: 50%;
            pointer-events: none;
            z-index: 50;
        }

        @keyframes fadeInOut {
            0% {
                box-shadow: 0 0 30px 10px rgba(255, 255, 255, 0.2), 0 0 30px rgba(255, 255, 255, 0.2) inset;
            }

            100% {
                box-shadow: 0 0 30px 10px rgba(255, 255, 255, 1), 0 0 30px rgba(255, 255, 255, 0.2) inset;
            }
        }

        @-moz-keyframes fadeInOut {
            0% {
                box-shadow: 0 0 30px 10px rgba(255, 255, 255, 0.2), 0 0 30px rgba(255, 255, 255, 0.2) inset;
            }

            100% {
                box-shadow: 0 0 30px 10px rgba(255, 255, 255, 1), 0 0 30px rgba(255, 255, 255, 0.2) inset;
            }
        }

        @-webkit-keyframes fadeInOut {
            0% {
                box-shadow: 0 0 30px 10px rgba(255, 255, 255, 0.2), 0 0 30px rgba(255, 255, 255, 0.2) inset;
            }

            100% {
                box-shadow: 0 0 30px 10px rgba(255, 255, 255, 1), 0 0 30px rgba(255, 255, 255, 0.2) inset;
            }
        }

        #game #game-over {
            background-color: #000;
            opacity: 0.95;
            color: #FFF;
            font-size: 25px;
            text-align: center;
            vertical-align: middle;
            line-height: 1.5;
            width: 100%;
            height: 100%;
            padding: 0;
            position: absolute;
            top: 0;
            left: 0;
            z-index: 999;
            display: none;
            flex-direction: column;
            justify-content: center;
            align-items: center;
        }

        #game-over .game-over-content {
            padding: 30px;
        }

        #game-over h2 {
            margin: 0 0 20px 0;
            font-size: 32px;
            color: #FF6B6B;
        }

        #game-over .stats {
            margin: 20px 0;
            font-size: 18px;
        }

        #game-over button {
            background-color: #4ECDC4;
            color: white;
            border: none;
            padding: 15px 40px;
            font-size: 18px;
            font-weight: bold;
            border-radius: 10px;
            cursor: pointer;
            margin-top: 20px;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
            transition: all 0.3s;
        }

        #game-over button:hover {
            background-color: #3AA89F;
            transform: scale(1.05);
        }

        .level-complete {
            background-color: #000;
            opacity: 0.95;
            color: #FFF;
            text-align: center;
            width: 100%;
            height: 100%;
            position: absolute;
            top: 0;
            left: 0;
            z-index: 999;
            display: none;
            flex-direction: column;
            justify-content: center;
            align-items: center;
        }

        .level-complete .content {
            padding: 30px;
        }

        .level-complete h2 {
            margin: 0 0 20px 0;
            font-size: 24px;
            color: #FFD166;
            animation: celebrate 0.5s ease-in-out infinite alternate;
        }

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

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

        .level-complete .stats {
            margin: 20px 0;
            font-size: 20px;
        }

        .level-complete button {
            background-color: #9B5DE5;
            color: white;
            border: none;
            padding: 15px 50px;
            font-size: 20px;
            font-weight: bold;
            border-radius: 10px;
            cursor: pointer;
            margin-top: 20px;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
            transition: all 0.3s;
        }

        .level-complete button:hover {
            background-color: #7B3DC5;
            transform: scale(1.05);
        }

        /* Sound Controls */
        .sound-controls {
            position: absolute;
            bottom: 10px;   
            right: 10px;
            display: flex;
            gap: 10px;
        }

        .sound-btn {
            background-color: rgba(255, 255, 255, 0.7);
            border: none;
            border-radius: 50%;
            width: 40px;
            height: 40px;
            cursor: pointer;
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 20px;
            transition: all 0.3s;
        }

        .sound-btn:hover {
            background-color: rgba(255, 255, 255, 0.9);
            transform: scale(1.1);
        }
