@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;700&display=swap');

        body {
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 100vh;
            margin: 0;
            background: linear-gradient(135deg, #87CEEB 0%, #ADD8E6 100%); /* Sky gradient */
            font-family: 'Fredoka', cursive;
            color: #333;
            overflow: hidden;
            user-select: none;
            touch-action: manipulation;
        }

        #game-container {
            position: relative;
            width: 100%;
            max-width: 600px;
            height: 100vh;
            max-height: 800px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
            border: 10px solid #5a4b3d;
            border-radius: 15px;
            overflow: hidden;
        }

        #gameCanvas {
            display: block;
            background-color: #79c5f8;
            width: 100%;
            height: 100%;
        }

        #overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.6);
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            text-align: center;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s ease;
            z-index: 10;
        }

        #overlay.active {
            opacity: 1;
            visibility: visible;
        }

        #title-screen {
            background-color: rgba(255, 255, 255, 0.95);
            padding: 30px;
            border-radius: 20px;
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
            transform: scale(0.9);
        }

        h1 {
            color: #FF5733;
            font-size: 3em;
            margin-bottom: 5px;
            text-shadow: 2px 2px #fff;
        }

        h2 {
            color: #33A8FF;
            font-size: 2em;
            margin-top: 0;
            margin-bottom: 20px;
        }

        .score-info {
            font-size: 1.5em;
            margin: 10px 0;
            color: #5a4b3d;
        }

        button {
            padding: 12px 25px;
            font-size: 1.5em;
            font-family: 'Fredoka', cursive;
            background-color: #FFC300;
            color: #5a4b3d;
            border: 4px solid #5a4b3d;
            border-radius: 12px;
            cursor: pointer;
            box-shadow: 0 5px #5a4b3d;
            transition: all 0.1s;
            margin-top: 20px;
        }

        button:hover {
            background-color: #FFD700;
        }

        button:active {
            transform: translateY(4px);
            box-shadow: 0 1px #5a4b3d;
        }

        /* Responsive adjustments */
        @media (max-width: 600px) {
            #game-container {
                border-width: 5px;
                border-radius: 0;
                max-height: 100vh;
            }
            #title-screen {
                padding: 20px;
            }
            h1 {
                font-size: 2.5em;
            }
            h2 {
                font-size: 1.5em;
            }
            button {
                font-size: 1.2em;
                padding: 10px 20px;
            }
        }