* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            -webkit-tap-highlight-color: transparent;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 100vh;
            background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #7e22ce 100%);
            overflow: hidden;
            touch-action: none;
        }

        #game-wrapper {
            width: 100%;
            max-width: 900px;
            padding: 10px;
        }

        #game-container {
            position: relative;
            width: 100%;
            height: 400px;
            background: linear-gradient(to bottom, #87CEEB 0%, #E0F6FF 60%, #FFF8DC 100%);
            border: 5px solid #fff;
            border-radius: 20px;
            overflow: hidden;
            box-shadow: 0 15px 50px rgba(0,0,0,0.4);
        }

        /* Sun */
        .sun {
            position: absolute;
            top: 40px;
            right: 60px;
            width: 60px;
            height: 60px;
            background: radial-gradient(circle, #FFD700 0%, #FFA500 100%);
            border-radius: 50%;
            box-shadow: 0 0 30px rgba(255, 215, 0, 0.6);
            animation: sunPulse 3s ease-in-out infinite;
        }

        .sun::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 80px;
            height: 80px;
            background: radial-gradient(circle, rgba(255, 215, 0, 0.3) 0%, transparent 70%);
            border-radius: 50%;
        }

        @keyframes sunPulse {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.1); }
        }

        /* Mountains in background */
        .mountain {
            position: absolute;
            bottom: 65px;
            width: 0;
            height: 0;
            border-left: 100px solid transparent;
            border-right: 100px solid transparent;
            border-bottom: 150px solid #8B7355;
            opacity: 0.3;
        }

        .mountain1 {
            left: 50px;
            transform: scale(0.8);
        }

        .mountain2 {
            left: 200px;
            transform: scale(1.2);
        }

        .mountain3 {
            right: 100px;
            transform: scale(0.9);
        }

        /* Clouds */
        .cloud {
            position: absolute;
            background: white;
            border-radius: 100px;
            opacity: 0.8;
            animation: cloudMove linear infinite;
        }

        .cloud::before, .cloud::after {
            content: '';
            position: absolute;
            background: white;
            border-radius: 100px;
        }

        .cloud1 {
            width: 60px;
            height: 18px;
            top: 40px;
            animation-duration: 30s;
        }

        .cloud1::before {
            width: 35px;
            height: 18px;
            top: -10px;
            left: 12px;
        }

        .cloud1::after {
            width: 40px;
            height: 18px;
            top: -6px;
            left: 30px;
        }

        .cloud2 {
            width: 50px;
            height: 15px;
            top: 80px;
            animation-duration: 35s;
            animation-delay: -10s;
        }

        .cloud2::before {
            width: 30px;
            height: 15px;
            top: -8px;
            left: 10px;
        }

        .cloud3 {
            width: 70px;
            height: 20px;
            top: 120px;
            animation-duration: 40s;
            animation-delay: -20s;
        }

        .cloud3::before {
            width: 40px;
            height: 20px;
            top: -11px;
            left: 15px;
        }

        .cloud3::after {
            width: 45px;
            height: 20px;
            top: -7px;
            left: 35px;
        }

        @keyframes cloudMove {
            from { left: -150px; }
            to { left: 110%; }
        }

        /* Ground */
        #ground {
            position: absolute;
            bottom: 0;
            width: 100%;
            height: 65px;
            background: linear-gradient(to bottom, #6B4423 0%, #4A2F1A 100%);
            border-top: 4px solid #3a1f0a;
        }

        #ground::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 8px;
            background: repeating-linear-gradient(
                90deg,
                #8B6F47 0px,
                #8B6F47 5px,
                #A0826D 5px,
                #A0826D 10px
            );
            animation: groundMove 0.3s linear infinite;
        }

        @keyframes groundMove {
            from { background-position: 0 0; }
            to { background-position: 10px 0; }
        }

        /* Grass */
        .grass {
            position: absolute;
            bottom: 65px;
            width: 100%;
            height: 20px;
            background: linear-gradient(to bottom, #32CD32 0%, #228B22 100%);
            overflow: hidden;
        }

        .grass::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 100%;
            background: repeating-linear-gradient(
                90deg,
                transparent 0px,
                transparent 3px,
                rgba(0, 100, 0, 0.3) 3px,
                rgba(0, 100, 0, 0.3) 4px
            );
            animation: grassSway 0.4s linear infinite;
        }

        @keyframes grassSway {
            from { background-position: 0 0; }
            to { background-position: 4px 0; }
        }

        /* Player */
        #player {
            position: absolute;
            bottom: 85px;
            left: 80px;
            width: 40px;
            height: 50px;
            transition: bottom 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                        height 0.15s ease,
                        width 0.15s ease;
            z-index: 10;
        }

        /* Player body */
        .player-body {
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 70%;
            background: linear-gradient(135deg, #FF6B6B 0%, #EE5A52 50%, #FF6B6B 100%);
            border-radius: 8px 8px 12px 12px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.3);
        }

        /* Player head */
        .player-head {
            position: absolute;
            top: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 60%;
            height: 35%;
            background: linear-gradient(135deg, #FFB6B6 0%, #FF9999 100%);
            border-radius: 50% 50% 40% 40%;
            box-shadow: 0 3px 8px rgba(0,0,0,0.2);
        }

        /* Player eyes */
        .player-head::before,
        .player-head::after {
            content: '';
            position: absolute;
            top: 40%;
            width: 20%;
            height: 20%;
            background: white;
            border-radius: 50%;
            box-shadow: inset 0 0 3px rgba(0,0,0,0.5);
        }

        .player-head::before {
            left: 20%;
        }

        .player-head::after {
            right: 20%;
        }

        /* Player pupils */
        .player-body::before,
        .player-body::after {
            content: '';
            position: absolute;
            top: 18%;
            width: 8%;
            height: 8%;
            background: #333;
            border-radius: 50%;
        }

        .player-body::before {
            left: 28%;
        }

        .player-body::after {
            right: 28%;
        }

        /* Player legs */
        .player-legs {
            position: absolute;
            bottom: -5px;
            left: 50%;
            transform: translateX(-50%);
            width: 80%;
            height: 12px;
            display: flex;
            justify-content: space-around;
        }

        .player-leg {
            width: 35%;
            height: 100%;
            background: linear-gradient(to bottom, #FF6B6B 0%, #CC5555 100%);
            border-radius: 3px;
            animation: legRun 0.3s infinite alternate;
        }

        .player-leg:nth-child(2) {
            animation-delay: 0.15s;
        }

        @keyframes legRun {
            0% { height: 12px; }
            100% { height: 15px; }
        }

        /* Jumping animation */
        .jumping .player-body {
            animation: jumpRotate 0.6s ease-in-out;
        }

        @keyframes jumpRotate {
            0% { transform: rotate(0deg); }
            50% { transform: rotate(360deg); }
            100% { transform: rotate(360deg); }
        }

        /* Sliding state */
        .sliding .player-body {
            height: 40%;
            border-radius: 12px;
        }

        .sliding .player-head {
            height: 50%;
            top: 10%;
        }

        /* Obstacles - Cactus */
        .obstacle-cactus {
            position: absolute;
            bottom: 85px;
            width: 35px;
            height: 45px;
        }

        .cactus-body {
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 50%;
            height: 100%;
            background: linear-gradient(to right, #2D5016 0%, #3A6B1F 50%, #2D5016 100%);
            border-radius: 10px 10px 5px 5px;
        }

        .cactus-arm-left,
        .cactus-arm-right {
            position: absolute;
            top: 45%;
            width: 35%;
            height: 25%;
            background: linear-gradient(to bottom, #2D5016 0%, #3A6B1F 100%);
            border-radius: 5px;
        }

        .cactus-arm-left {
            left: -20%;
            transform: rotate(-30deg);
        }

        .cactus-arm-right {
            right: -20%;
            transform: rotate(30deg);
        }

        /* Obstacles - Rock */
        .obstacle-rock {
            position: absolute;
            bottom: 85px;
            width: 40px;
            height: 30px;
        }

        .rock-body {
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, #708090 0%, #556B2F 50%, #696969 100%);
            border-radius: 50% 40% 30% 60% / 60% 50% 40% 30%;
            box-shadow: inset -5px -5px 10px rgba(0,0,0,0.3);
        }

        /* Obstacles - Tall Cactus */
        .obstacle-tall {
            position: absolute;
            bottom: 85px;
            width: 35px;
            height: 65px;
        }

        .tall-cactus-body {
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 55%;
            height: 100%;
            background: linear-gradient(to right, #2D5016 0%, #3A6B1F 50%, #2D5016 100%);
            border-radius: 12px 12px 5px 5px;
        }

        .tall-cactus-arm {
            position: absolute;
            width: 40%;
            height: 20%;
            background: linear-gradient(to bottom, #2D5016 0%, #3A6B1F 100%);
            border-radius: 5px;
        }

        .tall-cactus-arm-left {
            top: 30%;
            left: -25%;
            transform: rotate(-20deg);
        }

        .tall-cactus-arm-right {
            top: 50%;
            right: -25%;
            transform: rotate(20deg);
        }

        /* Flying obstacles - Bird */
        .obstacle-bird {
            position: absolute;
            bottom: 160px;
            width: 50px;
            height: 30px;
        }

        .bird-body {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 60%;
            height: 50%;
            background: linear-gradient(135deg, #8B4513 0%, #654321 100%);
            border-radius: 50%;
        }

        .bird-wing {
            position: absolute;
            top: 50%;
            width: 45%;
            height: 60%;
            background: linear-gradient(135deg, #8B4513 0%, #654321 100%);
            border-radius: 50%;
            transform-origin: right center;
        }

        .bird-wing-left {
            left: 0;
            animation: wingFlap 0.3s ease-in-out infinite;
        }

        .bird-wing-right {
            right: 0;
            transform-origin: left center;
            animation: wingFlap 0.3s ease-in-out infinite;
            animation-delay: 0.15s;
        }

        @keyframes wingFlap {
            0%, 100% { transform: rotateY(0deg) rotateZ(-10deg); }
            50% { transform: rotateY(0deg) rotateZ(-30deg); }
        }

        .bird-beak {
            position: absolute;
            top: 50%;
            right: -20%;
            transform: translateY(-50%);
            width: 0;
            height: 0;
            border-top: 5px solid transparent;
            border-bottom: 5px solid transparent;
            border-left: 10px solid #FFA500;
        }

        /* Power-Ups - Coin */
        .powerup-coin {
            position: absolute;
            bottom: 120px;
            width: 35px;
            height: 35px;
        }

        .coin-outer {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FFD700 100%);
            border-radius: 50%;
            box-shadow: 0 0 20px rgba(255, 215, 0, 0.8),
                        inset 0 -3px 8px rgba(0,0,0,0.2);
            animation: coinRotate 2s linear infinite;
        }

        .coin-inner {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 70%;
            height: 70%;
            background: radial-gradient(circle, #FFF8DC 0%, #FFD700 100%);
            border-radius: 50%;
            box-shadow: inset 0 2px 4px rgba(255,255,255,0.8);
        }

        .coin-inner::before {
            content: '$';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            color: #FFA500;
            font-size: 18px;
            font-weight: bold;
            text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
        }

        @keyframes coinRotate {
            0% { transform: translate(-50%, -50%) rotateY(0deg); }
            100% { transform: translate(-50%, -50%) rotateY(360deg); }
        }

        /* Power-Up - Star */
        .powerup-star {
            position: absolute;
            bottom: 130px;
            width: 40px;
            height: 40px;
            animation: starFloat 1.5s ease-in-out infinite;
        }

        .star-shape {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 0;
            height: 0;
            border-left: 15px solid transparent;
            border-right: 15px solid transparent;
            border-bottom: 25px solid #FFD700;
            filter: drop-shadow(0 0 15px rgba(255,215,0,0.8));
        }

        .star-shape::before {
            content: '';
            position: absolute;
            top: 8px;
            left: -15px;
            width: 0;
            height: 0;
            border-left: 15px solid transparent;
            border-right: 15px solid transparent;
            border-top: 25px solid #FFD700;
        }

        .star-shape::after {
            content: '';
            position: absolute;
            top: -8px;
            left: -20px;
            width: 40px;
            height: 3px;
            background: #FFD700;
            transform: rotate(90deg);
        }

        @keyframes starFloat {
            0%, 100% { transform: translateY(0) rotate(0deg); }
            50% { transform: translateY(-15px) rotate(180deg); }
        }

        /* Power-Up - Shield */
        .powerup-shield {
            position: absolute;
            bottom: 125px;
            width: 38px;
            height: 42px;
            animation: shieldPulse 1s ease-in-out infinite;
        }

        .shield-shape {
            position: absolute;
            top: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, #4169E1 0%, #1E90FF 50%, #4169E1 100%);
            clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
            box-shadow: 0 0 20px rgba(30,144,255,0.6);
        }

        .shield-inner {
            position: absolute;
            top: 15%;
            left: 50%;
            transform: translateX(-50%);
            width: 70%;
            height: 70%;
            background: linear-gradient(135deg, #87CEEB 0%, #4169E1 100%);
            clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
        }

        @keyframes shieldPulse {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.1); }
        }

        /* UI */
        #ui {
            position: absolute;
            top: 20px;
            left: 20px;
            right: 20px;
            z-index: 100;
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            flex-wrap: wrap;
            gap: 10px;
        }

        .ui-panel {
            background: rgba(255, 255, 255, 0.95);
            padding: 10px 18px;
            border-radius: 25px;
            font-weight: bold;
            color: #333;
            box-shadow: 0 4px 15px rgba(0,0,0,0.2);
            font-size: 16px;
            display: flex;
            align-items: center;
            gap: 8px;
            backdrop-filter: blur(10px);
        }

        .ui-icon {
            font-size: 20px;
        }

        #combo-display {
            position: absolute;
            top: 80px;
            left: 50%;
            transform: translateX(-50%);
            background: linear-gradient(135deg, #FF6B6B 0%, #FF5252 100%);
            color: white;
            padding: 8px 20px;
            border-radius: 20px;
            font-weight: bold;
            font-size: 18px;
            box-shadow: 0 4px 15px rgba(255,107,107,0.5);
            display: none;
            animation: comboPopIn 0.3s ease-out;
        }

        @keyframes comboPopIn {
            0% { transform: translateX(-50%) scale(0); }
            100% { transform: translateX(-50%) scale(1); }
        }

        #powerup-bar {
            width: 140px;
        }

        #powerup-indicator {
            display: inline-block;
            width: 80px;
            height: 10px;
            background: #ddd;
            border-radius: 10px;
            overflow: hidden;
            vertical-align: middle;
        }

        #powerup-fill {
            height: 100%;
            width: 0%;
            background: linear-gradient(90deg, #4169E1, #1E90FF);
            transition: width 0.1s linear;
        }

        /* Mobile Controls */
        #mobile-controls {
            position: absolute;
            bottom: 30px;
            left: 0;
            right: 0;
            display: none;
            justify-content: center;
            gap: 25px;
            z-index: 100;
        }

        .control-btn {
            width: 85px;
            height: 85px;
            background: rgba(255, 255, 255, 0.95);
            border: 4px solid #667eea;
            border-radius: 50%;
            font-size: 32px;
            font-weight: bold;
            color: #667eea;
            cursor: pointer;
            box-shadow: 0 6px 20px rgba(0,0,0,0.3);
            user-select: none;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: transform 0.1s, background 0.1s;
            touch-action: manipulation;
            -webkit-tap-highlight-color: transparent;
        }

        .control-btn:active {
            transform: scale(0.85);
            background: #667eea;
            color: white;
            box-shadow: 0 3px 10px rgba(0,0,0,0.4);
        }

        /* Better mobile touch targets */
        @media (max-width: 768px) {
            #mobile-controls {
                display: flex;
            }

            .control-btn {
                width: 90px;
                height: 90px;
                font-size: 34px;
            }
        }

        @media (max-width: 480px) {
            #mobile-controls {
                bottom: 20px;
                gap: 20px;
            }

            .control-btn {
                width: 75px;
                height: 75px;
                font-size: 30px;
                border-width: 3px;
            }
        }

        /* Game Over */
        #game-over {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.9);
            display: none;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            z-index: 200;
            backdrop-filter: blur(5px);
        }

        #game-over.show {
            display: flex;
            animation: fadeIn 0.3s ease-out;
        }

        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        #game-over h2 {
            color: #FF6B6B;
            font-size: 56px;
            margin-bottom: 25px;
            text-shadow: 3px 3px 6px rgba(0,0,0,0.5);
            animation: gameOverShake 0.5s ease-out;
        }

        @keyframes gameOverShake {
            0%, 100% { transform: translateX(0); }
            25% { transform: translateX(-10px); }
            75% { transform: translateX(10px); }
        }

        #game-over p {
            color: white;
            font-size: 24px;
            margin: 8px 0;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
        }

        .stats-highlight {
            color: #FFD700;
            font-weight: bold;
            font-size: 28px;
        }

        #restart-btn {
            margin-top: 35px;
            padding: 18px 45px;
            font-size: 22px;
            font-weight: bold;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border: none;
            border-radius: 35px;
            cursor: pointer;
            box-shadow: 0 6px 20px rgba(0,0,0,0.4);
            transition: transform 0.2s, box-shadow 0.2s;
        }

        #restart-btn:hover {
            transform: scale(1.05);
            box-shadow: 0 8px 25px rgba(0,0,0,0.5);
        }

        #restart-btn:active {
            transform: scale(0.98);
        }

        /* Pause Menu */
        #pause-menu {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.8);
            display: none;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            z-index: 150;
            backdrop-filter: blur(3px);
        }

        #pause-menu.show {
            display: flex;
        }

        #pause-menu h2 {
            color: white;
            font-size: 48px;
            margin-bottom: 30px;
        }

        .pause-btn {
            margin: 10px;
            padding: 15px 35px;
            font-size: 18px;
            font-weight: bold;
            background: white;
            color: #667eea;
            border: none;
            border-radius: 25px;
            cursor: pointer;
            box-shadow: 0 4px 15px rgba(0,0,0,0.3);
            transition: transform 0.2s;
        }

        .pause-btn:hover {
            transform: scale(1.05);
        }

        /* Particles */
        .particle {
            position: absolute;
            width: 6px;
            height: 6px;
            background: #FFD700;
            border-radius: 50%;
            pointer-events: none;
            animation: particleFloat 1s ease-out forwards;
        }

        @keyframes particleFloat {
            0% {
                opacity: 1;
                transform: translate(0, 0) scale(1);
            }
            100% {
                opacity: 0;
                transform: translate(var(--tx), var(--ty)) scale(0);
            }
        }

        /* Invincibility Effect */
        .invincible #player {
            animation: invincibleBlink 0.15s linear infinite;
        }

        @keyframes invincibleBlink {
            0%, 50% { opacity: 1; filter: drop-shadow(0 0 10px #4169E1); }
            51%, 100% { opacity: 0.5; }
        }

        /* Score popup */
        .score-popup {
            position: absolute;
            color: #FFD700;
            font-size: 24px;
            font-weight: bold;
            pointer-events: none;
            animation: scoreFloat 1s ease-out forwards;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
        }

        @keyframes scoreFloat {
            0% {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
            100% {
                opacity: 0;
                transform: translateY(-50px) scale(1.5);
            }
        }

        /* Responsive */
        @media (max-width: 768px) {
            #game-container {
                height: 350px;
            }

            #mobile-controls {
                display: flex;
            }

            .ui-panel {
                font-size: 14px;
                padding: 8px 14px;
            }

            #game-over h2 {
                font-size: 42px;
            }

            #game-over p {
                font-size: 18px;
            }

            .stats-highlight {
                font-size: 22px;
            }

            .control-btn {
                width: 75px;
                height: 75px;
                font-size: 28px;
            }
        }

        @media (max-width: 480px) {
            #game-container {
                height: 300px;
                border-radius: 15px;
                border-width: 3px;
            }

            #player {
                left: 60px;
                width: 35px;
                height: 45px;
            }

            .ui-panel {
                font-size: 12px;
                padding: 6px 12px;
            }

            #game-over h2 {
                font-size: 36px;
            }

            #restart-btn {
                padding: 14px 35px;
                font-size: 18px;
            }

            #mobile-controls {
                bottom: 15px;
                gap: 15px;
            }

            .control-btn {
                width: 70px;
                height: 70px;
                font-size: 26px;
                border-width: 3px;
            }
        }

        /* Pause button */
        #pause-btn {
            position: absolute;
            top: 20px;
            right: 20px;
            width: 50px;
            height: 50px;
            background: rgba(255, 255, 255, 0.95);
            border: 3px solid #667eea;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
            color: #667eea;
            box-shadow: 0 4px 15px rgba(0,0,0,0.2);
            z-index: 101;
            transition: transform 0.2s;
            user-select: none;
        }

        #pause-btn:hover {
            transform: scale(1.1);
        }

        #pause-btn:active {
            transform: scale(0.95);
        }

        /* Website Links Section */
        #website-links {
            width: 100%;
            max-width: 900px;
            margin-top: 25px;
            display: flex;
            justify-content: center;
            gap: 20px;
            flex-wrap: wrap;
            padding: 0 10px;
        }

        .website-link {
            flex: 1;
            min-width: 200px;
            max-width: 280px;
            padding: 18px 25px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            text-decoration: none;
            border-radius: 15px;
            font-size: 18px;
            font-weight: bold;
            text-align: center;
            box-shadow: 0 6px 20px rgba(0,0,0,0.3);
            transition: transform 0.3s, box-shadow 0.3s;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            cursor: pointer;
        }

        .website-link:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 30px rgba(0,0,0,0.4);
        }

        .website-link:active {
            transform: translateY(-2px);
        }

        .website-link-icon {
            font-size: 24px;
        }

        .website-link-1 {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        }

        .website-link-2 {
            background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
        }

        .website-link-3 {
            background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
        }

        @media (max-width: 768px) {
            #website-links {
                margin-top: 20px;
                gap: 15px;
            }

            .website-link {
                min-width: 150px;
                padding: 15px 20px;
                font-size: 16px;
            }

            .website-link-icon {
                font-size: 20px;
            }
        }

        @media (max-width: 480px) {
            #website-links {
                margin-top: 15px;
                gap: 12px;
                flex-direction: column;
            }

            .website-link {
                min-width: auto;
                max-width: 100%;
                padding: 14px 18px;
                font-size: 15px;
            }
        }

        /* Improved touch feedback */
        .control-btn:active,
        #pause-btn:active,
        .pause-btn:active,
        #restart-btn:active {
            transform: scale(0.92);
        }

        /* Prevent text selection on mobile */
        * {
            -webkit-user-select: none;
            -moz-user-select: none;
            -ms-user-select: none;
            user-select: none;
        }

        /* Better mobile viewport */
        @media (max-width: 768px) {
            body {
                padding: 10px 0;
            }
            
            #game-wrapper {
                padding: 5px;
            }
        }