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

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #70c5ce;
    font-family: 'Arial', sans-serif;
    overflow: hidden;
}

.game-container {
    position: relative;
    width: 320px;
    height: 480px;
    margin: 20px auto;
    background: #70c5ce;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

canvas {
    display: block;
    background: #70c5ce;
}

.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    text-align: center;
    z-index: 10;
}

.screen h1 {
    font-size: 3em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.screen p {
    font-size: 1.2em;
    margin: 10px 0;
}

.hidden {
    display: none !important;
}

.score {
    position: absolute;
    top: 20px;
    width: 100%;
    text-align: center;
    font-size: 2em;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    z-index: 5;
}

#restartButton {
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 1.2em;
    background: #f1c40f;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

#restartButton:hover {
    background: #f39c12;
}

/* Responsive Design */
@media (max-width: 400px) {
    .game-container {
        width: 100%;
        height: 100vh;
        margin: 0;
    }
    
    canvas {
        width: 100%;
        height: 100%;
    }
}
