.lobby-page {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
  gap: 24px;
  width: min(1050px, calc(100% - 40px));
  margin: 40px auto;
}
.lobby-browser, .lobby-detail { padding: 24px; border: 2px solid #171713; background: #4a4a42; }
.section-heading, .form-row, .lobby-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.section-heading h1 { margin-bottom: 8px; }
.section-heading p { margin: 0; font-family: Arial, sans-serif; }
#create-lobby-form { margin: 28px 0 20px; }
#create-lobby-form label { display: block; margin-bottom: 8px; font-size: 11px; }
#create-lobby-form .private-option { display: flex; margin-top: 12px; align-items: center; gap: 8px; font-family: Arial, sans-serif; font-size: 14px; }
#create-lobby-form .private-option input { width: auto; }
#lobby-name { flex: 1; min-width: 0; padding: 12px; background: #1b1b18; color: #e8e2c8; border: 1px solid #777263; }
.invite-link-panel { margin: 16px 0; padding: 12px; background: #292923; }
.invite-link-panel label { display: block; margin-bottom: 8px; font-family: Arial, sans-serif; }
#invite-link { min-width: 0; flex: 1; padding: 10px; background: #1b1b18; color: #e8e2c8; border: 1px solid #777263; font-family: Arial, sans-serif; }
.lobby-page button { padding: 11px 14px; border: 2px solid #171713; background: #6e6101; color: #e8e2c8; font-family: inherit; font-size: 10px; cursor: pointer; }
.lobby-page button:disabled { cursor: not-allowed; opacity: .45; }
.lobby-list, #player-list { padding: 0; list-style: none; }
.lobby-card { margin-bottom: 12px; padding: 16px; background: #292923; }
.lobby-card div { display: grid; gap: 8px; }
.lobby-card span, .status-message, #lobby-meta, #launch-help { font-family: Arial, sans-serif; }
.empty-lobbies { padding: 24px; text-align: center; font-family: Arial, sans-serif; }
.status-message { min-height: 20px; }
.status-message.error { color: #ffb1b1; }
#player-list li { display: flex; min-height: 65px; margin-bottom: 10px; padding: 4px 12px; align-items: center; justify-content: space-between; gap: 12px; background: #292923; font-family: Arial, sans-serif; }
.lobby-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.lobby-page .danger-button { background: #8b1e1e; }
.lobby-page .danger-button:hover { background: white; color: #8b1e1e; }
.character-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 18px; }
.lobby-page .character-option { display: flex; min-width: 0; padding: 6px; align-items: center; gap: 8px; background: #292923; text-align: left; }
.lobby-page .character-option.selected { border-color: #d5c47f; background: #6e6101; }
.lobby-page .character-option span:last-child { overflow-wrap: anywhere; }
.character-sprite { display: inline-block; width: 32px; height: 57px; flex: 0 0 32px; background-position: 0 0; background-repeat: no-repeat; image-rendering: pixelated; transform: scale(var(--character-scale, 1)); transform-origin: center bottom; }
@media (max-width: 760px) {
  .lobby-page { grid-template-columns: 1fr; }
  .section-heading, .form-row { align-items: stretch; flex-direction: column; }
  .character-options { grid-template-columns: 1fr; }
}
