.game-page-header .game-stage { margin-block-start: 0; }

.game-setup, .game-setup-grid { display: grid; gap: 16px; }
.game-setup-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.game-setup-panel {
    position: relative;
    min-inline-size: 0;
    margin: 0;
    padding: 55px 18px 18px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--surface);
    color: var(--text);
}
.game-setup-panel legend {
    position: absolute;
    inset: 17px 18px auto;
    padding: 0;
    font-size: 19px;
    font-weight: 700;
}
.game-setup-options { display: flex; flex-wrap: wrap; gap: 8px; }
.game-setup-options--described { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; }
.game-setup-choice { display: grid; align-content: start; justify-items: start; gap: 7px; }
.game-setup-control { position: relative; display: inline-flex; margin: 0; }
.game-setup-control input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.game-setup-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 7px 15px;
    border-radius: 999px;
    background: var(--surface-inset);
    color: #f3f6ff;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
}
.game-setup-control:hover input:not(:checked):not(:disabled) + .game-setup-pill { background: #1c3284; }
.game-setup-control input:checked + .game-setup-pill { background: linear-gradient(145deg, #ffec33, #ffd400); color: #14251d; }
.game-setup-control input:focus-visible + .game-setup-pill { outline: 2px solid #fff; outline-offset: 3px; }
.game-setup-control input:disabled + .game-setup-pill { color: var(--muted); opacity: .65; cursor: not-allowed; }
.game-setup-choice small a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.game-setup-panel small, .game-setup-panel p { margin: 0; color: var(--muted); font-size: 13px; }
.game-setup-panel p { margin-top: 8px; }
.game-setup-panel[hidden] { display: none; }
.game-setup-actions { display: flex; justify-content: flex-end; }
.game-setup-error { color: var(--loss); }
@media (max-width: 767.98px) {
    .game-setup-grid { grid-template-columns: minmax(0, 1fr); }
    .game-setup-actions .site-button { width: 100%; }
}
