/* Dark mode rules */
body {
    --bg: #f4f6fb;
    --text: #1f2937;
    --border: #1f2937;

    margin: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
}

body.dark {
    --bg: #111827;
    --text: #f3f4f6;
    --border: #6b7280;
}

.game {
    text-align: center;
}

canvas {
    border: 3px solid var(--border);
    border-radius: 8px;
    max-width: 100%;
}

select {
    margin-bottom: 0.75rem;
    padding: 0.3rem 0.5rem;
    font: inherit;
}

#theme-toggle {
    margin-bottom: 0.75rem;
    padding: 0.3rem 0.75rem;
    font: inherit;
    cursor: pointer;
}