/* ---------------------------------------------------------------------------
   Play-hub panels — the game popup's Create-a-room form and its Join-a-game (lobby) list, plus the Settings
   panel. They sit inside the centered .app-modal__card (the chrome primitive in chrome.css), so they stretch
   full-width and left-align their form sections: small muted section labels over rows of toggle buttons,
   steppers, a dark-themed profile select, and card-backed lobby rows.
   Backed by GameModeCardHumans.razor and SettingsPanel.razor.
   --------------------------------------------------------------------------- */
.create-room__label {
    margin: 0;
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
/* A stepper row: the label (with its current value) left, the +/− buttons right. */
.create-room__stepper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}
/* The computer-profile select: dark-themed to match the card surfaces. */
.create-room__select {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    min-height: 2.75rem;
    padding: 0.45rem 0.6rem;
    border-radius: 0.6rem;
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    font-size: 0.85rem;
    cursor: pointer;
}
.create-room__select:focus {
    border-color: color-mix(in srgb, var(--accent-gold) 55%, var(--border-color));
    outline: none;
}

/* The lobby list: card-backed rows of open tables, each its metadata + a Join action. */
.lobby-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    width: 100%;
}
.lobby-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    padding: 0.5rem 0.7rem;
    border-radius: 0.6rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}
.lobby-row__text {
    font-size: 0.82rem;
    color: var(--text-secondary);
}
/* Join sits on a compact row, so it is sized down from the full-width default — but it stays on the 44px tap
   floor the rest of the app's controls hold, since it is the row's only action and often reached on a phone. */
.lobby-row .app-btn {
    width: auto;
    padding: 0.4rem 0.9rem;
    font-size: 0.85rem;
    min-height: 2.75rem;
    min-width: 2.75rem;
}
/* The loading / empty lobby placeholder: muted, centered, so an empty lobby reads as
   intentional rather than broken. */
.lobby-status {
    margin: 0.3rem 0;
    font-size: 0.88rem;
    color: var(--text-muted);
    text-align: center;
}

.name-input { width: 100%; text-align: center; }

/* ===========================================================================
   Settings panel (SettingsPanel.razor)
   A PanelModal on the Top tier so it floats above the full-screen game room. Its content is a list of setting
   rows that grows a section at a time. Compounded with the primitive's card class so these refinements win
   over the base recipe whatever the sheet order.
   =========================================================================== */
.app-modal__panel.settings-card {
    gap: 1rem;
    padding: 1.4rem 1.5rem 1.6rem;
}

.settings-section { display: flex; flex-direction: column; gap: 0.5rem; }
.settings-section__title {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}
.settings-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 2.2rem;
}
.settings-row__label { font-size: 0.95rem; color: var(--text-primary); }
/* A small explanatory line under a settings row (e.g. the "notifications blocked in your browser" note). */
.settings-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.35;
    margin-top: 0.35rem;
}

/* Mute gate as a pill switch: knob left + muted look when off, knob right + accent when on. */
.settings-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.28rem 0.7rem 0.28rem 0.35rem;
    border-radius: 9999px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.82rem;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.settings-toggle__knob {
    width: 1.05rem;
    height: 1.05rem;
    border-radius: 9999px;
    background: var(--text-muted);
    transition: background-color 0.15s ease, transform 0.15s ease;
}
.settings-toggle--on {
    background: color-mix(in srgb, var(--accent-blue) 22%, var(--bg-card));
    border-color: var(--accent-blue);
    color: var(--text-primary);
}
.settings-toggle--on .settings-toggle__knob {
    background: var(--accent-blue);
    transform: translateX(0.1rem);
}

.settings-slider {
    flex: 1;
    max-width: 11rem;
    accent-color: var(--accent-blue);
    cursor: pointer;
}
.settings-slider:disabled { opacity: 0.4; cursor: default; }

