@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@400;600;700&display=swap');
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Baloo 2', 'Comic Sans MS', Arial, sans-serif;
    background: linear-gradient(135deg, #1a237e, #4a148c);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 15px 60px;
}

.visitor-counter {
    position: fixed; top: 10px; right: 14px;
    background: rgba(255,255,255,0.9); backdrop-filter: blur(8px);
    border-radius: 18px; padding: 4px 14px; font-size: 12px; color: #555;
    box-shadow: 0 2px 10px rgba(0,0,0,0.12); z-index: 9999;
}
.visitor-counter strong { color: #4a148c; }

.header { text-align: center; color: white; margin-bottom: 8px; }
.header h1 { font-size: 32px; font-weight: 700; text-shadow: 2px 2px 6px rgba(0,0,0,0.3); }
.header .subtitle { font-size: 13px; opacity: 0.8; }

.tab-bar { display: flex; gap: 6px; margin-bottom: 0; flex-wrap: wrap; justify-content: center; }
.tab-btn {
    padding: 9px 20px; font-size: 14px; font-weight: 600; font-family: inherit;
    border: none; border-radius: 12px 12px 0 0; cursor: pointer;
    background: rgba(255,255,255,0.25); color: rgba(255,255,255,0.8);
    transition: all 0.2s;
}
.tab-btn:hover { background: rgba(255,255,255,0.4); color: white; }
.tab-btn.active {
    background: white; color: #4a148c;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.game-card {
    background: white;
    border-radius: 0 16px 16px 16px;
    padding: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1100px;
    width: 100%;
}

canvas {
    border-radius: 10px;
    background: #fafafa;
    display: block;
    max-width: 100%;
}

#controls {
    margin-top: 14px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

#controls button {
    padding: 12px 28px;
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    color: white;
}
#controls button:hover { transform: translateY(-2px); box-shadow: 0 4px 14px rgba(0,0,0,0.2); }
#controls button:active { transform: translateY(0); }

.btn-yes { background: linear-gradient(135deg, #43A047, #2E7D32); }
.btn-no { background: linear-gradient(135deg, #E53935, #C62828); }
.btn-reset { background: linear-gradient(135deg, #78909C, #546E7A); }
