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

html, body {
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    margin: 0;
    padding: 20px 0;
    box-sizing: border-box;
}

.game-container {
    text-align: center;
    max-width: 600px;
    width: 100%;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.game-info {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
    font-size: 1.2rem;
    font-weight: bold;
}

.canvas-container {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

#game-canvas {
    border: 2px solid #fff;
    border-radius: 5px;
    background: #2e3747;
    display: block;
    margin: 0 auto;
}

.controls {
    margin-bottom: 20px;
}

.controls button {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 10px 20px;
    margin: 0 10px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.controls button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.controls button:active {
    transform: translateY(0);
}

.instructions {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.instructions h3 {
    margin-bottom: 10px;
    color: #f39c12;
    font-size: 1.2rem;
}

.instructions p {
    margin: 5px 0;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .game-container {
        padding: 15px;
    }

    header h1 {
        font-size: 2rem;
        margin-bottom: 20px;
    }

    .game-info {
        font-size: 1rem;
        margin-bottom: 15px;
    }

    #game-canvas {
        width: 300px;
        height: 300px;
    }

    .controls button {
        padding: 8px 15px;
        margin: 5px;
        font-size: 0.9rem;
    }

    .instructions {
        padding: 15px;
    }
}