/* assets/style.css - minimal responsive styling */
* {
    box-sizing: border-box;
    font-family: Inter, system-ui, Arial, sans-serif;
    color: #ddd;
}

body {
    background: #070707;
    margin: 0;
    padding-top: 52px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    padding: 12px 16px;
    background: #0f0f0f;
    border-bottom: 1px solid #111;
}

header h1 {
    margin: 0;
    font-size: 20px;
}

main {
    flex: 1 0 auto;
    /* maintain flex growth/shrink */
    padding: 0 12px;
    /* keep horizontal padding only */
    margin: 0;
    /* remove default margin */
}

#canvas-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

canvas {
    background: #000;
    border: 1px solid #111;
    cursor: grab;
}

#controls {
    position: fixed;
    right: 12px;
    bottom: 12px;
    background: rgba(10, 10, 10, 0.7);
    padding: 8px;
    border-radius: 6px;
}

#controls button {
    margin-right: 6px;
}

footer {
    padding: 8px 16px;
    background: #070707;
    border-top: 1px solid #111;
}

/* Smooth, gentle pulse effect for newly added pixels */
.pixel.highlight {
    outline: 1px solid #0ff;
    /* neon cyan outline */
    box-shadow: 0 0 8px #0ff;
    /* glow effect */
    animation: smoothPulse 2.5s ease-in-out forwards;
}

@keyframes smoothPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 6px #0ff;
        outline-color: #0ff;
    }

    40% {
        transform: scale(1.15);
        /* gentle grow */
        box-shadow: 0 0 10px #0ff;
        /* slightly stronger glow */
        outline-color: #0ff;
    }

    70% {
        transform: scale(1.08);
        /* minor settle */
        box-shadow: 0 0 8px #0ff;
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 4px #0ff;
        /* final subtle glow */
        outline-color: transparent;
    }
}

@media (max-width: 720px) {
    #controls {
        left: 8px;
        right: auto;
        bottom: 8px;
    }
}

/* Header section */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 52px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid #111;
    z-index: 1000;
}

.site-header h1 {
    margin: 0;
    font-size: 18px;
    color: #eee;
    font-weight: 600;
}

.support-btn {
    display: inline-block;
    background: #444;
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
}

.support-btn:hover {
    background: #666;
}