 @import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #87ceeb 100%);
            font-family: 'Press Start 2P', cursive;
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 100vh;
            overflow: hidden;
        }

        /* Snowfall animation */
        .snowflakes {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            overflow: hidden;
            z-index: 1;
        }

        .snowflake {
            position: absolute;
            top: -10px;
            color: white;
            user-select: none;
            pointer-events: none;
            z-index: 1;
            animation: snowfall linear infinite;
        }

        @keyframes snowfall {
            0% {
                transform: translateY(-10px) rotate(0deg);
                opacity: 1;
            }
            100% {
                transform: translateY(110vh) rotate(360deg);
                opacity: 0;
            }
        }
        
        .page {
            width: 800px;
            height: 500px;
            background: rgba(255, 255, 255, 0.95);
            border: 6px solid #2c5aa0;
            border-radius: 15px;
            position: relative;
            overflow: hidden;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
            z-index: 10;
        }

        /* Welcome Page */
        .welcome-page {
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            text-align: center;
            background: linear-gradient(to bottom, #87ceeb 0%, #e0f6ff 50%, #ffffff 100%);
            color: #2c5aa0;
        }

        .welcome-title {
            font-size: 3em;
            margin-bottom: 20px;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
            animation: titleBounce 2s ease-in-out infinite alternate;
        }

        @keyframes titleBounce {
            0% { transform: translateY(0px); }
            100% { transform: translateY(-10px); }
        }

        .welcome-penguin {
            font-size: 4em;
            margin: 20px 0;
            animation: penguinWaddle 3s ease-in-out infinite;
        }

        @keyframes penguinWaddle {
            0%, 100% { transform: rotate(-5deg); }
            50% { transform: rotate(5deg); }
        }

        .welcome-subtitle {
            font-size: 1.2em;
            margin-bottom: 30px;
            color: #1e3c72;
        }

        .welcome-buttons {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        /* Instructions Page */
        .instructions-page {
            display: none;
            padding: 40px;
            background: linear-gradient(to bottom, #e0f6ff 0%, #ffffff 100%);
            color: #2c5aa0;
            overflow-y: auto;
        }

        .instructions-title {
            text-align: center;
            font-size: 2em;
            margin-bottom: 30px;
            color: #1e3c72;
        }

        .instructions-content {
            font-size: 12px;
            line-height: 2;
            text-align: left;
            max-width: 600px;
            margin: 0 auto;
        }

        .instruction-section {
            margin-bottom: 25px;
            background: rgba(135, 206, 235, 0.2);
            padding: 15px;
            border-radius: 10px;
            border-left: 4px solid #2c5aa0;
        }

        .instruction-section h3 {
            color: #1e3c72;
            margin-bottom: 15px;
            font-size: 14px;
        }

        .controls {
            display: flex;
            justify-content: space-around;
            margin: 20px 0;
            flex-wrap: wrap;
        }

        .control-item {
            text-align: center;
            background: rgba(255, 255, 255, 0.8);
            padding: 15px;
            border-radius: 10px;
            margin: 5px;
            border: 2px solid #2c5aa0;
        }

        .control-key {
            font-size: 16px;
            color: #1e3c72;
            margin-bottom: 10px;
        }

        /* Game Page */
        .game-page {
            display: none;
            padding: 0;
            background: linear-gradient(to bottom, #1e3c72 0%, #2a5298 30%, #87ceeb 70%, #e0f6ff 100%);
            position: relative;
        }
        
        .game-container {
            width: 100%;
            height: 100%;
            position: relative;
            overflow: hidden;
            image-rendering: pixelated;
        }
        
        .game-ui {
            position: absolute;
            top: 15px;
            left: 20px;
            z-index: 100;
            color: #fff;
            font-size: 10px;
            text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
        }
        
        .score {
            margin-bottom: 8px;
        }
        
        .high-score {
            color: #ffd700;
        }
        
        /* Buttons */
        .btn {
            background: linear-gradient(to bottom, #4CAF50, #45a049);
            color: white;
            border: 3px solid #2c5aa0;
            padding: 12px 25px;
            font-family: 'Press Start 2P', cursive;
            font-size: 12px;
            cursor: pointer;
            border-radius: 8px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
            transition: all 0.2s;
            image-rendering: pixelated;
        }
        
        .btn:hover {
            background: linear-gradient(to bottom, #5CBF60, #4CAF50);
            transform: translateY(-2px);
            box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
        }
        
        .btn:active {
            transform: translateY(0px);
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
        }

        .btn-secondary {
            background: linear-gradient(to bottom, #2196F3, #1976D2);
        }

        .btn-secondary:hover {
            background: linear-gradient(to bottom, #42A5F5, #2196F3);
        }

        .btn-back {
            position: absolute;
            top: 20px;
            left: 20px;
            background: linear-gradient(to bottom, #ff6b6b, #ee5a52);
            padding: 10px 15px;
            font-size: 10px;
        }

        .btn-back:hover {
            background: linear-gradient(to bottom, #ff8a80, #ff6b6b);
        }
        
        /* Game Over and Start Screens */
        .game-screen {
            position: absolute;
            top: 50%;
             left: 50%;
            transform: translate(-50%, -50%);
            text-align: center;
            background: rgba(30, 60, 114, 0.95);
            color: #FFF;
            padding: 30px;
            border: 4px solid #87ceeb;
            border-radius: 15px;
            z-index: 200;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        }

        .game-screen h1 {
            color: #87ceeb;
            margin-bottom: 20px;
            font-size: 1.5em;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
        }

        .game-screen h2 {
            color: #e0f6ff;
            margin-bottom: 20px;
            font-size: 1.2em;
        }
        
        .start-screen {
            display: none;
        }
        
        .game-over {
            display: none;
        }
        
        .instructions-text {
            font-size: 10px;
            margin: 20px 0;
            line-height: 1.8;
            color: #e0f6ff;
        }
        
        canvas {
            position: absolute;
            top: 0;
            left: 0;
            image-rendering: pixelated;
        }

        /* Winter decorations */
        .winter-decor {
            position: absolute;
            font-size: 2em;
            animation: float 3s ease-in-out infinite;
        }

        .winter-decor:nth-child(1) {
            top: 10%;
            left: 10%;
            animation-delay: 0s;
        }

        .winter-decor:nth-child(2) {
            top: 15%;
            right: 15%;
            animation-delay: 1s;
        }

        .winter-decor:nth-child(3) {
            bottom: 20%;
            left: 20%;
            animation-delay: 2s;
        }

        .winter-decor:nth-child(4) {
            bottom: 25%;
            right: 10%;
            animation-delay: 1.5s;
        }

        @keyframes float {
            0%, 100% { transform: translateY(0px); }
            50% { transform: translateY(-15px); }
        }
        
        /* Footer */
        .footer {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: rgba(0, 0, 0, 0.8);
            color: #fff;
            text-align: center;
            padding: 8px 0;
            font-size: 8px;
            z-index: 1000;
            border-top: 2px solid #2c5aa0;
        }

        @media (max-width: 850px) {
            .page {
                width: 95vw;
                height: 90vh;
                margin-bottom: 30px;
            }
            
            .welcome-title {
                font-size: 2em;
            }

            .welcome-subtitle {
                font-size: 1em;
            }
            
            .game-ui {
                font-size: 9px;
            }

            .instructions-content {
                font-size: 10px;
            }

            .btn {
                font-size: 10px;
                padding: 10px 20px;
            }

            .footer {
                font-size: 7px;
                padding: 6px 0;
            }
        }