:root {
    /* NES Super Mario Sky Blue */
    --bg-color: #5c94fc;
    --text-color: #ffffff;
    --accent-color: #f1c40f;
    /* Gold coin color for text */
    --btn-bg: #e74c3c;
}

body,
html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: var(--bg-color);
    font-family: 'Press Start 2P', cursive;
}

#pixel-site {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    /* Keeping it below the game canvas */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    text-align: center;
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
    /* Subtle text shadow for readability on blue */
    text-shadow: 2px 2px 0px #000;
    pointer-events: none;
    /* Let clicks pass through generally */
}

#pixel-site h1 {
    font-size: 24px;
    line-height: 1.5;
    margin-bottom: 10px;
    color: var(--accent-color);
    text-shadow: 4px 4px 0px #000;
}

#pixel-site p {
    font-size: 12px;
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 600px;
}

.link-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    pointer-events: none;
    /* Container doesn't block, children do via JS if needed or z-index trickery */
}

.pixel-btn {
    display: inline-block;
    background-color: #e67e22;
    /* Brick color */
    color: #fff;
    text-decoration: none;
    padding: 15px 20px;
    font-size: 12px;
    position: relative;
    transition: transform 0.1s;
    text-shadow: 2px 2px 0 #000;
    box-shadow:
        inset 2px 2px 0px 0px #f39c12,
        inset -2px -2px 0px 0px #d35400,
        4px 4px 0px 0px #000;
    pointer-events: auto;
    /* Buttons catch clicks - but canvas is on top! */
    /* We rely on the canvas click handler to delegate clicks to these if missed */
}

.pixel-btn:hover {
    transform: translate(2px, 2px);
    background-color: #f39c12;
    box-shadow:
        inset 2px 2px 0px 0px #f1c40f,
        inset -2px -2px 0px 0px #e67e22,
        2px 2px 0px 0px #000;
}

#game-canvas {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    /* ABOVE the site content */
    touch-action: none;
    cursor: none;
    /* Hide default cursor for custom one */
}

/* Locked state for buttons covered by faces */
.pixel-btn.is-locked {
    background-color: #7f8c8d;
    /* Gray */
    box-shadow:
        inset 2px 2px 0px 0px #95a5a6,
        inset -2px -2px 0px 0px #34495e,
        4px 4px 0px 0px #000;
    transform: translate(2px, 2px);
    /* Look pressed/inactive */
    color: #bdc3c7;
    pointer-events: none;
    /* Double ensure no interaction */
}

#ui {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    font-family: 'Press Start 2P', cursive;
    color: #fff;
    text-shadow: 2px 2px 0 #000;
    background: rgba(0, 0, 0, 0.5);
    padding: 15px 20px;
    border: 2px solid #fff;
    pointer-events: none;
    text-align: center;
    font-size: 10px;
    width: 90%;
    max-width: 500px;
    line-height: 1.5;
}

#win-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(2px);
}

#win-banner.hidden {
    display: none;
}

.banner-content {
    background: #fff;
    color: #000;
    padding: 30px;
    text-align: center;
    border: 4px solid #000;
    box-shadow: 10px 10px 0px #000;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.banner-content h2 {
    color: #2ecc71;
    font-size: 20px;
    margin: 0;
    text-shadow: 2px 2px 0 #000;
    -webkit-text-stroke: 1px black;
}

.prize-btn {
    background-color: #f1c40f !important;
    color: #000 !important;
    animation: pulse 1s infinite alternate;
}

@keyframes pulse {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.05);
    }
}