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

body {
    touch-action: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    user-select: none;
    overscroll-behavior: none;
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #ff6b6b, #feca57, #48dbfb);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.game-wrapper { text-align: center; padding: 20px; }

.header {
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
}

h1 {
    font-size: 42px;
    color: #ff6b6b;
    margin-bottom: 10px;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.stat {
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

.stat span { color: #ff6b6b; }

#gameCanvas {
    background: rgba(255, 255, 255, 0.3);
    border: 3px solid white;
    border-radius: 15px;
    display: block;
    margin: 0 auto;
    cursor: crosshair;
}

.instructions {
    margin-top: 15px;
    font-size: 16px;
    color: white;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 100;
    color: white;
}

.overlay h2 {
    font-size: 56px;
    color: #feca57;
    margin-bottom: 20px;
}

.overlay p { font-size: 20px; margin: 10px 0; }

.overlay button {
    margin-top: 30px;
    padding: 15px 40px;
    font-size: 20px;
    font-weight: bold;
    color: white;
    background: linear-gradient(135deg, #ff6b6b, #feca57);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
}

.overlay button:hover {
    transform: scale(1.05);
}

.hidden { display: none !important; }
