  * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        body {
            width: 100vw;
            height: 100vh;
            overflow: hidden;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            display: flex;
            justify-content: center;
            align-items: center;
            font-family: "Momo Trust Display",Arial, sans-serif;
        }
        #canvasContainer {
            position: relative;
        }
        @media (min-width: 700px) {
            #canvasContainer {
                padding: 10px;
                background: white;
                border-radius: 20px;
                box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
            }
            canvas {
                border-radius: 10px;
            }
        }
        canvas {
            display: block;
            background: #f1f2eb;
        }
        #controls {
            position: fixed;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 20px;
            z-index: 10;
            touch-action: none;
        }
        #timer {
            position: fixed;
            background: white;
            color: #333333;
            padding: 8px 14px;
            min-width:83px;
            border-radius: 6px;
            border: 2px solid #dfe1d2;
            font-size: 16px;
            font-weight: normal;
            font-family: "Momo Trust Display",Arial, sans-serif;
            z-index: 10;
        }
        #levelIndicator {
            position: fixed;
            background: white;
            color: #333333;
            padding: 8px 14px;
            border-radius: 6px;
            border: 2px solid #dfe1d2;
            font-size: 16px;
            font-weight: normal;
            font-family: "Momo Trust Display", Arial, sans-serif;
            display: flex;
            align-items: center;
            gap: 8px;
            z-index: 10;
            cursor: pointer;
            transition: background 0.2s;
            touch-action: none;
        }
        #levelIndicator:hover {
            background: #f0f0f0;
        }
        #levelSwitcher {
            font-size: 18px;
                display: flex;
    align-items: center;
    justify-content: center;
        }
        #levelModal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            background: rgba(0, 0, 0, 0.7);
            display: none;
            justify-content: center;
            align-items: center;
            z-index: 100;
            touch-action: none;
        }
        #levelModal.active {
            display: flex;
        }
        #completionModal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            background: rgba(0, 0, 0, 0.2);
            display: none;
            justify-content: center;
            align-items: flex-start;
            padding-top: 80px;
            z-index: 200;
            pointer-events: none;
            touch-action: none;
        }
        #completionModal.active {
            display: flex;
        }
        
        #lottieContainer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    pointer-events: none;
}

#lottieAnimation {
    width: 80vw;
    max-width: 980px;
    height: 80vw;
    max-height: 980px;
}


        #completionContent {
            background: white;
            border-radius: 10px;
            padding: 15px 25px;
            display: flex;
            align-items: center;
            gap: 15px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
            pointer-events: auto;
            touch-action: none;
        }
        #completionContent .checkmark {
            font-size: 24px;
            color: #23b26b;
        }
        #completionContent .message {
            color: #333333;
            font-size: 16px;
        }
        #nextBtn {
            background: #669933;transistion:all 0.3s;
            color: white;
            border: none;
            padding: 8px 20px;
            border-radius: 6px;
            cursor: pointer;
            font-size: 14px;
            font-weight: bold;
            transition: background 0.2s;
            touch-action: none;
            font-family: "Momo Trust Display",Arial;
        }
        #nextBtn:hover {
            background: #444;transistion:all 0.3s;
        }
        #levelList {
            background: white;
            border-radius: 20px;
            padding: 30px;
            max-width: 400px;
            width: 90%;
            touch-action: none;
        }
        #levelList h2 {
            margin: 0 0 20px 0;
            color: #333333;
            text-align: center;
        }
        #levelButtons {
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            gap: 10px;
        }
        .levelBtn {
            background: #f0f0f0;
            padding: 15px;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.2s;
            border: 3px solid transparent;
            text-align: center;
            font-size: 18px;
            font-weight: bold;
            color: #333333;
            
        }
        .levelBtn:hover {
            background: #e0e0e0;
            transform: scale(1.05);
        }
        .levelBtn.current {
            border-color: #667eea;
            background: #e8ebfa;
        }
        .levelBtn.locked {
            background: #d0d0d0;
            color: #999;
            cursor: not-allowed;
            opacity: 0.5;
        }
        .levelBtn.locked:hover {
            background: #d0d0d0;
            transform: none;
        }
        .levelBtn.completed {
            background: #d4f4dd;
            border-color: #23b26b;
        }
.btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #333;
    border: none;
    cursor: pointer;
    font-size: 24px;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0);
    transition: transform 0.1s, box-shadow 0.1s;
    color: #ffffff; /* This ensures any text or unstyled SVG path is white */
    display: flex;
    align-items: center;
    justify-content: center;
}
        .btn:hover {
            transform: scale(1.1);
            box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
        }
        .btn:active {
            transform: scale(0.95);
        }
        #introModal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            background: rgba(0, 0, 0, 0.0);
            display: none;
            justify-content: center;
            align-items: flex-start;
            padding-top: 60px;
            z-index: 150;
            pointer-events: none;
            touch-action: none;

        }
        #introModal.active {
            display: flex;
        }
        #introContent {
            background: rgba(255,255,255,0.7);
            border-radius: 20px;
            padding: 22px 40px 10px 25px;
            max-width: 295px;
            width: 95%;
            position: relative;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
            cursor: move;
            pointer-events: auto;
        }
        #introContent .closeBtn {
            position: absolute;
            top: 7px;
            right: 7px;
            background: none;
            border: none;
            font-size: 29px;
            color: #888;
            cursor: pointer;
            line-height: 1;
            padding: 0;
            width: 25px;
            height: 25px;
        }
        #introContent .closeBtn:hover {
            color: #333;
        }
        #introContent .introText {
            color: #333333;
            font-size: 18px;
            line-height: 1.6;
            margin-bottom: 14px;
        }
        #introContent .startBtn {display:none;
            background: #669933;
            color: white;
            border: none;
            padding: 12px 30px;
            border-radius: 20px;
            cursor: pointer;
            font-size: 16px;
            font-weight: bold;
            width: 100px;
            transition: background 0.2s;
        }
        #introContent .startBtn:hover {
            background: #444;
        }