* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Fredoka One', sans-serif;
    user-select: none;
}

body, html {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #3498db;
    touch-action: none;
}

#game-container {
    position: relative;
    width: 100%;
    height: 100%;
}

canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* HUD */
#hud {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
}

#level-display, #coins-display {
    color: white;
    font-size: 24px;
    text-shadow: 2px 2px 0 #000, -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000;
}

/* Overlays */
.overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 20;
    transition: opacity 0.3s;
}

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

.panel {
    background: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    max-width: 400px;
    width: 90%;
}

.panel h1 {
    font-size: 36px;
    color: #3498db;
    margin-bottom: 20px;
}

.panel p {
    font-size: 20px;
    color: #555;
    margin-bottom: 10px;
    font-family: 'Roboto', sans-serif;
}

.btn {
    margin-top: 20px;
    padding: 15px 40px;
    font-size: 24px;
    border: none;
    border-radius: 50px;
    background: #3498db;
    color: white;
    cursor: pointer;
    box-shadow: 0 5px 0 #2980b9;
    transition: transform 0.1s;
}

.btn:active {
    transform: translateY(5px);
    box-shadow: none;
}
