body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: #2c3e50;
    color: #fff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    touch-action: none;
    user-select: none;
}

#game-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Wooden background style */
    background: radial-gradient(circle at center, #8d6e63 0%, #3e2723 100%);
}

/* Wood texture overlay */
#game-container::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: repeating-linear-gradient(
        90deg,
        rgba(0,0,0,0.05) 0px,
        rgba(0,0,0,0.05) 2px,
        transparent 2px,
        transparent 15px
    );
    pointer-events: none;
}

#game-canvas {
    max-width: 100%;
    max-height: 100%;
    box-shadow: inset 0 0 50px rgba(0,0,0,0.8);
    z-index: 1;
}

#ui-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

#score-display {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 4rem;
    font-weight: bold;
    color: #f1c40f;
    text-shadow: 0 4px 10px rgba(0,0,0,0.8), 0 0 20px rgba(241, 196, 15, 0.5);
    margin: 0;
}

#lives-display {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2.5rem;
    letter-spacing: 5px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

#start-screen, #game-over-screen {
    pointer-events: auto;
    background: rgba(44, 62, 80, 0.9);
    padding: 40px 60px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.6), inset 0 2px 10px rgba(255,255,255,0.2);
    text-align: center;
    border: 2px solid #f1c40f;
}

h2 {
    font-size: 3.5rem;
    margin-top: 0;
    margin-bottom: 20px;
    color: #f1c40f;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #ecf0f1;
}

/* Button */
.btn {
    pointer-events: auto;
    font-size: 1.5rem;
    padding: 15px 40px;
    border: none;
    border-radius: 50px;
    background: linear-gradient(to bottom, #e74c3c 0%, #c0392b 100%);
    color: white;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 5px 10px rgba(0,0,0,0.3), inset 0 2px 5px rgba(255,255,255,0.3);
    transition: transform 0.1s, box-shadow 0.1s;
}

.btn:active {
    transform: translateY(4px);
    box-shadow: 0 1px 5px rgba(0,0,0,0.3), inset 0 2px 5px rgba(0,0,0,0.2);
}
