/* Configuration: Tile Sizes handled in JS for Canvas */
:root {
    --bg: #111111;
    --pad-base: #1e1e1e;
    --pad-highlight: #2a2a2a;
    --active-color: #00f3ff;
    /* Techno Cyan */
}

body {
    background: var(--bg);
    background-image: radial-gradient(circle at 50% 50%, #1a1a1a 0%, #000 100%);
    min-height: 100vh;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    font-family: 'Segoe UI', sans-serif;
}

#canvas-container {
    width: 100vw;
    height: 100vh;
    display: block;
}

canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    touch-action: none;
    /* Disable native touch gestures/scrolling */
    /* Optional: can add CSS cursor here if needed */
    cursor: crosshair;
}

/* Bottom UI Container - Layout now handled in index.html */
#bottom-ui {
    pointer-events: none;
}

/* Button Base Styles */
#whatsapp-btn,
#menu-btn {
    pointer-events: auto;
    background: #111;
    color: #F3E8EE;
    border: 2px solid #F3E8EE;

    padding: 14px 30px;
    border-radius: 4px;

    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;

    transition: all 0.2s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* Specifics now handled by Flex in index.html */
#whatsapp-btn {
    /* Animation only on desktop/floating state */
    animation: btn-pulse 6s infinite ease-in-out;
}

#whatsapp-btn:hover,
#menu-btn:hover {
    background: #F3E8EE;
    color: #111;
    box-shadow: 0 0 30px rgba(243, 232, 238, 0.6), 0 0 10px rgba(243, 232, 238, 0.8) inset;
    transform: translateY(-2px);
    /* Base lift */
}

#whatsapp-btn:hover {
    transform: translateY(-2px) scale(1.05);
}

#menu-options {
    /* Visibility handled in index.html */
    align-items: flex-end;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

#menu-options.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

#menu-options a {
    background: #111;
    color: #F3E8EE;
    border: 2px solid #F3E8EE;
    padding: 12px 20px;
    text-decoration: none;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    min-width: 160px;
}

#menu-options a:hover {
    background: #F3E8EE;
    color: #111;
}

@keyframes btn-pulse {
    0% {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 0 25px rgba(243, 232, 238, 0.3);
        transform: scale(1.02);
    }

    100% {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
        transform: scale(1);
    }
}

/* Default State (Desktop): Show Text, Hide Icon */
.menu-text {
    display: inline-block;
}

.burger-icon {
    display: none;
}

@media (max-width: 600px) {
    #bottom-ui {
        pointer-events: auto;
    }

    #whatsapp-btn,
    #menu-btn {
        position: static;
        flex: 1;
        transform: none !important;
        animation: none;
        border: none;
        box-shadow: none;
        border-radius: 0;
        text-align: center;
        padding: 20px 10px;

        display: flex;
        justify-content: center;
        align-items: center;
    }

    #whatsapp-btn {
        border-right: 2px solid #F3E8EE;
        flex: 2;
        /* Give WA button more space */
    }

    #menu-btn {
        flex: 1;
        /* Smaller menu area */
    }

    /* Switch to Icon on Mobile */
    .menu-text {
        display: none;
    }

    .burger-icon {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 24px;
        height: 18px;
    }

    .burger-icon span {
        display: block;
        width: 100%;
        height: 2px;
        background-color: #F3E8EE;
        transition: all 0.2s;
    }

    /* Toggle state if menu is open (optional nice-to-have visual) */
    #menu-btn:active .burger-icon span {
        background-color: #111;
    }

    #whatsapp-btn:hover,
    #menu-btn:hover {
        transform: none;
        background: #F3E8EE;
        color: #111;
        box-shadow: none;
    }

    /* Invert burger color on hover */
    #menu-btn:hover .burger-icon span {
        background-color: #111;
    }

    /* Adjust menu options for mobile */
    #menu-options {
        bottom: 70px;
        /* Above the bar logic approx */
        right: 10px;
        left: 10px;
    }

    #menu-options a {
        text-align: center;
    }
}