html, body { touch-action: none; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #050505;
    font-family: 'Courier New', Courier, monospace;
}

#game-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

#gameCanvas {
    background: #000;
    image-rendering: pixelated;
    border: 2px solid #39ff14;
    box-shadow: 0 0 20px rgba(57, 255, 20, 0.2);
}

#start-overlay { display: none !important; }

#start-overlay button {
    background: #39ff14;
    color: #000;
    border: none;
    padding: 1rem 2rem;
    font-family: inherit;
    font-weight: bold;
    cursor: pointer;
    margin-top: 2rem;
}

#ui-layer {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    pointer-events: none;
    color: #39ff14;
}

#top-bar {
    display: flex;
    justify-content: space-between;
    font-size: 1.5rem;
    font-weight: bold;
    text-shadow: 0 0 5px #39ff14;
}

#message-display {
    position: absolute;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.2rem;
    opacity: 0.9;
    width: 100%;
    text-align: center;
    white-space: nowrap;
}

#game-container::after {
    content: " ";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.1) 50%);
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 5;
}

.melt-down {
    animation: jitter 0.1s infinite;
    color: #ff0000 !important;
}

@keyframes jitter {
    0% { transform: translate(0,0); }
    25% { transform: translate(2px, -2px); }
    50% { transform: translate(-2px, 2px); }
    75% { transform: translate(2px, 2px); }
    100% { transform: translate(0,0); }
}

canvas, #gameCanvas {
    max-width: 100vw !important;
    max-height: 100dvh !important;
    max-height: 100vh !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    touch-action: none !important;
    box-sizing: border-box !important;
}
