* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        body {
            overflow: hidden;
            background: #1a1a2e;
            font-family: 'Arial', sans-serif;
            user-select: none;
        }
		/* Garante que o container ocupe a tela toda sem scroll */
		#gameContainer {
			display: flex;
			flex-direction: row; /* Força o alinhamento horizontal */
			width: 100vw;
			height: 100vh;
			overflow: hidden;
			position: relative;
		}
		/* Ajuste no Side Menu para não ser "esmagado" */
		#sideMenu {
			width: 120px;
			min-width: 120px; /* Impede o flexbox de encolher o menu */
			background: linear-gradient(180deg, #0f3460 0%, #16213e 100%);
			border-right: 3px solid #e94560;
			display: flex;
			flex-direction: column;
			padding: 10px;
			gap: 10px;
			overflow-y: auto;
			z-index: 1001; /* Garante que fique acima do canvas */
			height: 100%;
		}
        .menuButton {
            background: linear-gradient(135deg, #e94560 0%, #c23b52 100%);
            border: 2px solid #fff;
            border-radius: 8px;
            padding: 15px 5px;
            color: white;
            font-weight: bold;
            font-size: 12px;
            cursor: pointer;
            transition: all 0.2s;
            text-align: center;
            user-select: none;
            position: relative;
        }
        .menuButton:hover {
            transform: scale(1.05);
            box-shadow: 0 0 15px rgba(233, 69, 96, 0.8);
        }
        .menuButton:active {
            transform: scale(0.95);
        }
        .menuButton.selected {
            background: linear-gradient(135deg, #ffd700 0%, #ffaa00 100%);
            animation: pulse 1s infinite;
            color: #333;
        }
        @keyframes pulse {
            0%, 100% { box-shadow: 0 0 10px rgba(255, 215, 0, 0.5); }
            50% { box-shadow: 0 0 20px rgba(255, 215, 0, 1); }
        }
		/* Ajuste no Canvas para ocupar o resto do espaço */
		#gameCanvas {
			flex: 1;
			height: 100%;
			display: block;
			cursor: crosshair;
			min-width: 0; /* Correção comum para flexbox */
		}
		/* Ajuste das margens dos painéis para alinhar com o menu de 120px */
		#info, #instructions {
			left: 130px; /* Mantém uma pequena folga do menu */
		}
        #gameCanvas.placing {
            cursor: copy;
        }
        #gameCanvas.invalid {
            cursor: not-allowed;
        }

        /* PAINEL DE INFO - EMBAIXO ESTICADO */
        #info {
            position: absolute;
            bottom: 10px;
            left: 130px;
            right: 10px;
            background: rgba(0, 0, 0, 0.85);
            padding: 10px 15px;
            border-radius: 10px;
            color: white;
            font-family: 'Courier New', monospace;
            z-index: 1000;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
            border: 2px solid #e94560;
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            align-items: center;
        }

        .stat {
            display: flex;
            align-items: center;
            gap: 6px;
            padding: 5px 12px;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 6px;
            font-size: 12px;
            white-space: nowrap;
        }

        .stat-label {
            font-weight: 600;
            color: #aaa;
            font-size: 10px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .stat-value {
            font-weight: bold;
            font-size: 13px;
            color: #fff;
        }

        /* Cores específicas */
        #score {
            color: #ffd700;
            font-size: 16px;
        }

        #highScore {
            color: #ff6b6b;
            font-size: 12px;
        }

        #level {
            color: #4ecdc4;
        }

        #biome {
            color: #95e1d3;
            font-size: 11px !important;
            max-width: 160px;
        }

        #height {
            color: #a8e6cf;
        }

        #bootHeight {
            color: #ff8b94;
        }

        .hearts {
            display: flex;
            gap: 3px;
            font-size: 14px;
        }

        .heart-full { color: #ff1744; }
        .heart-empty { color: #333; }

        /* INSTRUÇÕES - EMBAIXO ESTICADO ACIMA DO PAINEL */
        #instructions {
            position: absolute;
            bottom: 60px;
            left: 130px;
            right: 10px;
            color: white;
            background: rgba(0,0,0,0.7);
            padding: 8px 15px;
            border-radius: 8px;
            font-size: 13px;
            pointer-events: none;
            text-align: center;
        }

        #combo {
            position: absolute;
            top: 20px;
            left: 50%;
            transform: translateX(-50%);
            color: #ffd700;
            font-size: 24px;
            font-weight: bold;
            background: rgba(255, 215, 0, 0.2);
            padding: 10px 20px;
            border-radius: 10px;
            border: 2px solid #ffd700;
            display: none;
            animation: comboShow 0.3s;
            pointer-events: none;
        }
        @keyframes comboShow {
            from { transform: translateX(-50%) scale(0.5); opacity: 0; }
            to { transform: translateX(-50%) scale(1); opacity: 1; }
        }
        #bootSpeech {
            position: absolute;
            top: 80px;
            left: 50%;
            transform: translateX(-50%);
            color: #00d9ff;
            font-size: 18px;
            font-weight: bold;
            background: rgba(0, 217, 255, 0.2);
            padding: 10px 20px;
            border-radius: 20px;
            border: 2px solid #00d9ff;
            display: none;
            max-width: 400px;
            text-align: center;
            animation: speechShow 0.3s;
            pointer-events: none;
        }
        @keyframes speechShow {
            from { transform: translateX(-50%) translateY(-20px); opacity: 0; }
            to { transform: translateX(-50%) translateY(0); opacity: 1; }
        }
        #warning {
            position: absolute;
            top: 140px;
            left: 50%;
            transform: translateX(-50%);
            color: #ff1744;
            font-size: 18px;
            font-weight: bold;
            background: rgba(255, 23, 68, 0.2);
            padding: 10px 20px;
            border-radius: 10px;
            border: 2px solid #ff1744;
            display: none;
            pointer-events: none;
        }
        #gameOver {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: rgba(0, 0, 0, 0.95);
            padding: 40px 60px;
            border-radius: 20px;
            border: 4px solid #e94560;
            text-align: center;
            color: white;
            display: none;
            z-index: 1000;
        }
        #gameOver h1 {
            font-size: 48px;
            color: #e94560;
            margin-bottom: 20px;
            text-shadow: 0 0 20px rgba(233, 69, 96, 0.8);
        }
        #gameOver .final-stats {
            margin: 20px 0;
            font-size: 20px;
        }
        #gameOver .final-stats div {
            margin: 10px 0;
        }
        #gameOver button {
            background: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%);
            border: none;
            padding: 15px 40px;
            font-size: 20px;
            font-weight: bold;
            color: white;
            border-radius: 10px;
            cursor: pointer;
            margin-top: 20px;
            transition: all 0.3s;
        }
        #gameOver button:hover {
            transform: scale(1.1);
            box-shadow: 0 0 20px rgba(0, 255, 136, 0.8);
        }
        #bonus {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            font-size: 48px;
            font-weight: bold;
            color: #ffd700;
            text-shadow: 0 0 20px rgba(255, 215, 0, 1);
            pointer-events: none;
            opacity: 0;
        }
        @keyframes bonusFloat {
            0% { opacity: 1; transform: translate(-50%, -50%) scale(0.5); }
            50% { transform: translate(-50%, -80%) scale(1.2); }
            100% { opacity: 0; transform: translate(-50%, -120%) scale(0.8); }
        }
        .show-bonus {
            animation: bonusFloat 2s ease-out;
        }
        #muteBtn {
            position: absolute;
            top: 10px;
            right: 10px;
            background: rgba(0,0,0,0.5);
            border: 2px solid white;
            color: white;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            font-size: 20px;
            cursor: pointer;
            z-index: 100;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        #muteBtn:hover {
            background: rgba(255,255,255,0.2);
        }

        .menuButton.cooldown {
            background: #555 !important;
            color: #999;
            border-color: #777;
            cursor: not-allowed;
            transform: scale(0.95);
            pointer-events: none;
            filter: grayscale(100%);
        }

        /* Responsivo */
        @media (max-width: 768px) {
            #info {
                left: 10px;
                gap: 6px;
                padding: 8px 12px;
            }
            .stat {
                font-size: 11px;
                padding: 4px 8px;
            }
            #instructions {
                left: 10px;
                font-size: 11px;
            }
        }