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

body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #1a1a1a;
}

.game-container {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: calc(100vh * 400 / 600);
    max-height: calc(100vw * 600 / 400);
}

#gameCanvas {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #4ec0ca 0%, #87ceeb 70%, #deb887 70%, #c19a6b 100%);
    touch-action: none;
    user-select: none;
}

.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.7);
    color: white;
    z-index: 10;
}

.screen.hidden {
    display: none;
}

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

.screen p {
    font-size: 20px;
    margin-bottom: 30px;
}

button {
    padding: 15px 40px;
    font-size: 20px;
    font-weight: bold;
    color: white;
    background: #ff6b6b;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s;
}

button:hover {
    background: #ff5252;
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.4);
}

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

#score {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 48px;
    font-weight: bold;
    color: white;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
    z-index: 5;
}

#score.hidden {
    display: none;
}

