@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&display=swap');

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

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #000;
    font-family: Arial, sans-serif;
}

.game-container {
    position: relative;
    background: #000;
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 0 30px rgba(255,215,0,0.2), 0 0 60px rgba(255,215,0,0.05);
    border: 1px solid rgba(255,215,0,0.25);
    text-align: center;
    width: min(640px, 100vw);
}

.header {
    display: flex;
    justify-content: space-between;
    padding: 8px 10px;
    color: #ffd700;
    font-size: clamp(0.75rem, 3vw, 1.1rem);
    font-weight: 700;
    margin-bottom: 10px;
    pointer-events: none;
    font-family: 'Orbitron', monospace;
    letter-spacing: 1px;
}

.instructions {
    color: white;
    margin-top: 10px;
    font-size: 16px;
    pointer-events: none;
}

#gameCanvas {
    border: 1px solid rgba(255,215,0,0.4);
    background: #000;
    display: block;
    margin: 0 auto;
    cursor: default;
    border-radius: 6px;
    box-shadow: 0 0 20px rgba(255,215,0,0.1);
    max-width: 100%;
    height: auto;
    touch-action: none;
}

#gameCanvas:focus {
    border-color: #ff0;
    outline: none;
}

.modal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.9);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    color: white;
    border: 2px solid #00f;
    z-index: 100;
}

.hidden {
    display: none;
}

button {
    margin-top: 15px;
    padding: 10px 20px;
    font-size: 16px;
    background: #ff0;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background: #ffd700;
}

@media (max-width: 600px) {
    .game-container {
        padding: 10px;
    }
    
    .header {
        font-size: 16px;
    }
    
    #gameCanvas {
        width: 100%;
        height: auto;
    }
    
    .instructions {
        font-size: 14px;
    }
}


