* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Press Start 2P', monospace;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none; /* Prevent scroll/zoom on mobile taps */
}

body, html {
    width: 100%;
    height: 100%;
    background-color: #1a1a1a;
    overflow: hidden;
    color: #e5e5e5;
}

#game-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #242424;
    overflow: hidden;
}

canvas {
    display: block;
    width: 100%;
    height: 100%;
    image-rendering: pixelated;
}

#ui-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

#score-display {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 14px;
    color: #a3a3a3;
    letter-spacing: 2px;
}

.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgba(36, 36, 36, 0.85);
    transition: opacity 0.3s;
    pointer-events: auto;
}

.screen.hidden {
    opacity: 0;
    pointer-events: none;
}

h1 {
    font-size: 24px;
    color: #D46B4E;
    margin-bottom: 20px;
    text-shadow: 2px 2px 0px #000;
    text-align: center;
}

p {
    font-size: 12px;
    color: #aaa;
    margin-bottom: 10px;
    text-align: center;
}

.subtitle {
    font-size: 10px;
    color: #777;
    margin-top: 10px;
}

@media (max-width: 600px) {
    h1 { font-size: 20px; }
    p { font-size: 10px; }
    #score-display { top: 20px; right: 10px; font-size: 10px; }
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}

#submit-score-btn:hover {
    background: #F4A688 !important;
    transform: scale(1.05);
}

#initials-input:focus {
    border-color: #D46B4E !important;
}
