@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    touch-action: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    user-select: none;
    overscroll-behavior: none;
    font-family: 'Press Start 2P', cursive;
    background: #2d2d2d;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
}

.game-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px;
    height: 600px;
    background: #1a1a1a;
    border: 4px solid #4a4a4a;
    box-shadow: 0 0 0 4px #2d2d2d, 0 0 50px rgba(0, 0, 0, 0.5);
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

#gameCanvas {
    display: block;
    width: 100%;
    height: 100%;
    background: #1a1a1a;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

.ui-container {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    pointer-events: none;
    z-index: 10;
}

.score-panel {
    display: flex;
    gap: 20px;
}

.score-item {
    background: #000;
    border: 3px solid #fff;
    padding: 10px 15px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    box-shadow: 4px 4px 0 #4a4a4a;
}

.score-item .label {
    font-size: 8px;
    color: #888;
}

.score-item .value {
    font-size: 16px;
    color: #fff;
}

.menu-screen {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.menu-content {
    text-align: center;
    padding: 40px;
    background: #1a1a1a;
    border: 4px solid #fff;
    box-shadow: 8px 8px 0 #4a4a4a;
}

.pixel-title {
    font-size: 48px;
    color: #fff;
    margin-bottom: 30px;
    line-height: 1.3;
    text-shadow: 4px 4px 0 #ff6b6b;
}

.pixel-title.small {
    font-size: 32px;
}

.pixel-text {
    font-size: 12px;
    color: #aaa;
    margin: 15px 0;
    line-height: 1.6;
}

.pixel-text.small {
    font-size: 10px;
}

.pixel-button {
    margin-top: 30px;
    padding: 15px 40px;
    font-family: 'Press Start 2P', cursive;
    font-size: 16px;
    color: #fff;
    background: #ff6b6b;
    border: 4px solid #fff;
    cursor: pointer;
    transition: all 0.1s;
    box-shadow: 4px 4px 0 #4a4a4a;
    text-transform: uppercase;
}

.pixel-button:hover {
    background: #ff5252;
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 #4a4a4a;
}

.pixel-button:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 #4a4a4a;
}

.hidden {
    display: none !important;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .game-wrapper {
        max-width: 100%;
        height: 100vh;
        border: none;
    }

    .pixel-title {
        font-size: 32px;
    }

    .pixel-title.small {
        font-size: 24px;
    }

    .pixel-text {
        font-size: 10px;
    }

    .pixel-button {
        font-size: 12px;
        padding: 12px 30px;
    }

    .score-item .label {
        font-size: 6px;
    }

    .score-item .value {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .menu-content {
        padding: 20px;
    }

    .pixel-title {
        font-size: 24px;
    }

    .pixel-title.small {
        font-size: 18px;
    }
}
