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

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #101522;
    color: white;
    min-height: 100vh;
}

.game-wrapper {
    width: 100%;
    max-width: 1100px;
    margin: auto;
    padding: 15px;
}


/* HEADER */

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    background: #1b2335;

    padding: 16px 20px;

    border-radius: 15px;

    margin-bottom: 15px;
}

.game-header h1 {
    font-size: 28px;
}

.game-header p {
    color: #aeb8ca;
    margin-top: 5px;
    font-size: 14px;
}

.stats {
    display: flex;
    gap: 18px;

    font-size: 18px;
}


/* GAME */

.game-container {
    position: relative;

    width: 100%;

    background: #182235;

    border-radius: 15px;

    overflow: hidden;

    border: 2px solid #29364f;
}

canvas {
    display: block;

    width: 100%;

    height: auto;

    background: #6ca34a;

    cursor: crosshair;
}


/* OVERLAY */

.overlay {
    position: absolute;

    inset: 0;

    display: flex;

    justify-content: center;

    align-items: center;

    background: rgba(0, 0, 0, 0.65);
}

.hidden {
    display: none;
}

.menu-box {
    width: 90%;
    max-width: 420px;

    text-align: center;

    background: #1c2639;

    padding: 35px 25px;

    border-radius: 20px;

    box-shadow: 0 15px 50px rgba(0,0,0,.5);
}

.menu-box h2 {
    font-size: 32px;

    margin-bottom: 15px;
}

.menu-box p {
    color: #d5dbea;

    line-height: 1.6;

    margin-bottom: 20px;
}

.menu-box button {
    border: none;

    background: #5865f2;

    color: white;

    padding: 13px 28px;

    border-radius: 10px;

    font-size: 17px;

    font-weight: bold;

    cursor: pointer;
}

.menu-box button:hover {
    opacity: .85;
}


/* MOBILE CONTROLS */

.mobile-controls {
    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-top: 15px;

    gap: 20px;
}

.movement {
    text-align: center;
}

.movement button,
.shoot-button {
    border: none;

    background: #252e43;

    color: white;

    min-width: 58px;

    min-height: 50px;

    margin: 3px;

    border-radius: 10px;

    font-size: 18px;

    font-weight: bold;

    cursor: pointer;

    touch-action: manipulation;
}

.movement button:active,
.shoot-button:active {
    transform: scale(.94);
}

.shoot-button {
    background: #e53935;

    min-width: 120px;

    min-height: 65px;

    font-size: 17px;
}


/* INSTRUCTIONS */

.instructions {
    background: #1b2335;

    margin-top: 15px;

    padding: 20px;

    border-radius: 15px;

    line-height: 1.7;
}

.instructions h2 {
    margin-bottom: 8px;
}

.instructions p {
    color: #c5ccda;
}


/* MOBILE */

@media (max-width: 600px) {

    .game-wrapper {
        padding: 8px;
    }

    .game-header {
        padding: 12px;
    }

    .game-header h1 {
        font-size: 20px;
    }

    .game-header p {
        font-size: 11px;
    }

    .stats {
        gap: 7px;
        font-size: 13px;
    }

    .mobile-controls {
        gap: 5px;
    }

    .movement button {
        min-width: 52px;
        min-height: 48px;
    }

    .shoot-button {
        min-width: 100px;
        min-height: 60px;
    }

    .menu-box h2 {
        font-size: 26px;
    }

}
