@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Share+Tech+Mono&display=swap');

:root {
    --matte-red: #7c2626;
    --dark-red: #4a1515;
    --led-green: #00ff00;
    --led-red: #ff0000;
}

body {
    background-color: var(--matte-red);
    background-image: radial-gradient(circle, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.6) 100%), 
                      url('data:image/svg+xml;utf8,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><path d="M30 0 L60 30 L30 60 L0 30 Z" fill="none" stroke="%235a1616" stroke-width="1" opacity="0.3"/></svg>');
    color: #ffffff;
    font-family: 'Courier New', Courier, monospace;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    touch-action: manipulation;
}

.screen {
    display: none;
    flex-direction: column;
    align-items: center;
    width: 100%;
    min-height: 100vh;
    justify-content: center;
    box-sizing: border-box;
    padding: 40px 20px;
}

.screen.active {
    display: flex;
}

.game-title {
    font-family: 'Press Start 2P', cursive;
    font-size: 24px;
    color: #ffcc00;
    text-shadow: 4px 4px 0px #000;
    margin-bottom: 40px;
    text-align: center;
    line-height: 1.5;
}

.menu-btn {
    background: linear-gradient(to bottom, #555, #222);
    border: 4px solid #111;
    color: white;
    font-family: 'Press Start 2P', cursive;
    font-size: 14px;
    padding: 15px 20px;
    margin: 10px;
    width: 90%;
    max-width: 300px;
    cursor: pointer;
    box-shadow: inset 0 0 10px rgba(255,255,255,0.2), 0 5px 0 #000;
    transition: all 0.1s;
}

.menu-btn:active {
    transform: translateY(5px);
    box-shadow: inset 0 0 10px rgba(255,255,255,0.2), 0 0 0 #000;
}

select {
    width: 90%;
    max-width: 300px;
    padding: 15px;
    font-family: 'Press Start 2P', cursive;
    font-size: 10px;
    background: #222;
    color: #ffcc00;
    border: 4px solid #111;
    margin-bottom: 20px;
    outline: none;
}

.back-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    background: none;
    border: none;
    color: #ffcc00;
    font-size: 30px;
    cursor: pointer;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}
.shake { animation: shake 0.4s; }

.flash {
    filter: brightness(2) saturate(1.5);
}