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

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;
    overflow: hidden;
    touch-action: manipulation;
}

.game-container {
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    overflow: hidden;
}

#gameCanvas {
    display: block;
    background: linear-gradient(to bottom, #4ec0ca 0%, #4ec0ca 60%, #ded895 60%, #ded895 100%);
    touch-action: 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;
    transition: opacity 0.3s ease;
    touch-action: manipulation;
}

.screen.hidden {
    opacity: 0;
    pointer-events: none;
}

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

.screen p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.screen button {
    padding: 15px 40px;
    font-size: 1.5rem;
    background: linear-gradient(to bottom, #f7dc6f, #f4d03f);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    color: #5d4e37;
    font-weight: bold;
    box-shadow: 0 4px 0 #c9a227, 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.1s, box-shadow 0.1s;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    min-width: 200px;
    min-height: 60px;
}

.screen button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #c9a227, 0 10px 25px rgba(0, 0, 0, 0.4);
}

.screen button:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #c9a227, 0 4px 15px rgba(0, 0, 0, 0.3);
}

#scoreDisplay {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    z-index: 5;
    pointer-events: none;
}

/* Responsive design */
@media (max-width: 600px) {
    .screen h1 {
        font-size: 2rem;
    }

    .screen p {
        font-size: 1rem;
    }

    .screen button {
        padding: 12px 30px;
        font-size: 1.2rem;
    }

    #scoreDisplay {
        font-size: 1.5rem;
        top: 10px;
    }
}
