* { 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, #1e40af, #7c2d12);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: white;
}

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

h1 {
    font-size: 42px;
    margin-bottom: 15px;
    text-shadow: 0 0 20px rgba(251, 191, 36, 0.8);
    color: #fbbf24;
}

.header {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: bold;
}

#gameCanvas {
    background: #1e293b;
    border: 3px solid #fbbf24;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(251, 191, 36, 0.3);
    display: block;
    margin: 0 auto;
}

.instructions {
    margin-top: 15px;
    color: #cbd5e1;
    font-size: 14px;
}

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

.overlay h2 {
    font-size: 48px;
    color: #fbbf24;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(251, 191, 36, 0.5);
}

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

.overlay button {
    margin-top: 20px;
    padding: 15px 40px;
    font-size: 20px;
    font-weight: bold;
    color: #1e293b;
    background: #fbbf24;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 5px 20px rgba(251, 191, 36, 0.4);
}

.overlay button:hover {
    background: #f59e0b;
    transform: translateY(-2px);
}

.hidden { display: none !important; }
