/* Arcade.modes() — the "how do you want to play" control (games/arcade.js). Loaded by arcade.css, and on its own by the pages that keep their own styling (Backgammon). */
.modes { max-width: 520px; margin: 0 auto 12px; display: grid; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 12px; background: rgba(0,0,0,0.28); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent); }
.mode-btn {
  min-height: 44px; padding: 0 10px; border: 0; border-radius: 9px; cursor: pointer;
  font: 600 13px system-ui, sans-serif; color: var(--text-dim); background: transparent; -webkit-tap-highlight-color: transparent;
}
.mode-btn[aria-checked="true"] { background: var(--accent); color: var(--accent-ink, #0c1810); }
.mode-btn:disabled { opacity: .4; cursor: not-allowed; }
.mode-btn:focus-visible { outline: 3px solid #fff; outline-offset: 1px; }
.modes.levels { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: -4px; }
.modes[hidden] { display: none; }

/* the settings block above the field (Arcade.setup): mode, difficulty and the game's own options; one line once a game is under way */
.game-setup { max-width: 520px; margin: 0 auto 12px; }
.game-setup > .modes { margin-bottom: 8px; }
.game-setup .setup-opts { display: flex; flex-wrap: wrap; gap: 8px 12px; justify-content: center; margin: 0 0 8px; font: 13px system-ui, sans-serif; color: var(--text-dim); }
.game-setup .setup-opts[hidden] { display: none; }
.game-setup .setup-opts label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.game-setup .setup-opts select { min-height: 44px; padding: 0 10px; border: 0; border-radius: 8px; font: 14px system-ui, sans-serif; color: var(--text); background: rgba(255,255,255,0.08); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent); }
.game-setup .setup-opts select option { background: #1a1a1a; color: var(--text); }
.game-setup .setup-now { display: none; padding: 4px 8px; text-align: center; font: 600 12px system-ui, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); }
.game-setup.is-started > :not(.setup-now) { display: none; }
.game-setup.is-started > .setup-now { display: block; }
.game-setup .setup-now:empty { display: none !important; }
.game-setup.is-started > #onlineBox { display: block; } /* the room code and Leave stay in view during an online game (the page hides the box itself outside Online) */
.game-setup.is-started > #onlineBox[hidden] { display: none; }
.game-setup > #onlineBox { margin: 0 0 8px; }
