.vote-pucks {
  position: absolute;
  right: 8px;
  top: 8px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: calc(100% - 16px);
}

.vote-puck {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #eee;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* ============================================================
   TIE HIGHLIGHT
   ============================================================ */

.lp-game-banner.tied {
  animation: tiePulse 0.8s infinite alternate;
  border-color: #ffb347 !important;
}

/* ============================================================
   HOST OPTIONS (MP LOBBY)
   ============================================================ */

.lp-host-opts {
  border: 1px solid #2b2b2b;
  background: rgba(0,0,0,0.35);
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 10px;
}

.lp-host-opts-header {
  font-variant: all-small-caps;
  letter-spacing: 0.5px;
  opacity: 0.9;
  margin-bottom: 8px;
}

.lp-host-opts-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 6px 0;
}

.lp-host-opts-btn {
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid #3a3a3a;
  background: #151515;
  color: #fff;
  cursor: pointer;
}

.lp-host-opts-btn:hover {
  border-color: #ffd45e;
  filter: brightness(1.1);
}

.lp-host-opts-hint {
  font-size: 11px;
  opacity: 0.75;
}

.lp-host-opts-select {
  background: #151515;
  color: #fff;
  border: 1px solid #3a3a3a;
  border-radius: 6px;
  padding: 3px 6px;
}

.lp-host-opts-subheader {
  font-size: 12px;
  opacity: 0.8;
  margin-top: 10px;
  margin-bottom: 6px;
}

.lp-host-opts-pool {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 8px;
  margin-bottom: 8px;
}

.lp-host-opts-pool-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  opacity: 0.9;
}

/* MP Lobby host options compact/scrollable so chat remains visible */
#lobby-panel .lp-right {
  gap: 8px;
}

#lobby-panel .lp-host-opts {
  flex: 0 0 auto;
  max-height: 190px;
  min-height: 0;
  overflow-y: auto;
  padding: 8px 10px;
  margin-bottom: 0;
}

#lobby-panel .lp-host-opts-header {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(12, 22, 32, 0.96);
  padding-bottom: 4px;
  margin-bottom: 6px;
}

#lobby-panel .lp-host-opts-row {
  margin: 4px 0;
  gap: 8px;
}

#lobby-panel .lp-host-opts-subheader {
  margin-top: 6px;
  margin-bottom: 4px;
}

#lobby-panel .lp-host-opts-hint {
  font-size: 10px;
  line-height: 1.25;
}

#lobby-panel .lp-host-opts-pool {
  max-height: 92px;
  overflow-y: auto;
  padding-right: 4px;
  margin-bottom: 6px;
}

#lobby-panel .lp-chat-right {
  flex: 1 1 auto;
  min-height: 220px;
}

#lobby-panel .lp-chat-right .lp-chat-log {
  height: auto;
  min-height: 150px;
  flex: 1 1 auto;
}

/* Voting disabled state */
.lp-game-banner.lp-voting-disabled {
  cursor: default;
  opacity: 0.95;
}

.lp-game-banner.lp-selected {
  border-color: #ffd45e !important;
  box-shadow: 0 0 10px rgba(255,212,94,0.25);
}

@keyframes tiePulse {
  from { box-shadow: 0 0 6px #ffb347; }
  to   { box-shadow: 0 0 14px #ffce7d; }
}

/* ============================================================
   START BUTTON (INLINE, HOST ONLY)
   ============================================================ */

.lp-start-btn,
#lp-start-btn {
  font-size: 14px;
  padding: 6px 12px;
  background: #3d79ff;
  color: #fff;
  border-radius: 6px;
  border: 1px solid #2c62dd;
  cursor: pointer;
  width: auto;
}

#lp-start-btn:hover,
#mpip-accept:hover {
  background: #538aff;
}

/* ============================================================
   GUEST MESSAGE
   ============================================================ */

.lp-guest-msg,
#lp-guest-msg {
  margin-top: 12px;
  color: #d0e1ff;
  font-size: 16px;
  text-align: center;
}

/* ============================================================
   FOOTER BUTTONS
   ============================================================ */

.lp-invite-btn,
#lp-invite-btn {
  width: 100%;
  padding: 8px;
  background: #2f3338;
  border: 1px solid #4a4f55;
  color: #fff;
  border-radius: 6px;
  cursor: pointer;
}

.lp-invite-btn:hover {
  background: #3d4248;
}

.lobby-secondary-btn,
#lp-invite-url-btn {
  width: 100%;
  padding: 8px 10px;
  background: #1c2f45;
  border: 1px solid #335070;
  color: #fff;
  border-radius: 6px;
  cursor: pointer;
  font-size: 15px;
  text-align: center;
  transition: 0.13s;
}

#lp-invite-url-btn:hover {
  background: #244564;
}

/* ============================================================
   FRIEND ICON
   ============================================================ */

.lobby-friend-btn {
  width: 16px;
  height: 16px;
  margin-left: 10px;
  image-rendering: pixelated;
  cursor: pointer;
  vertical-align: middle;
}


/* ===== extracted: lobby-fit-cleanup-patch29 ===== */

/* Lobby */
#lobby-panel .lp-topbar,
#matchmake-panel > .panel-header > .panel-header-controls,
#lobby-search-panel > .panel-header > .panel-header-controls,
#mp-chat-panel > .panel-header > .panel-header-controls,
#mp-chat-panel .mpchat-input-row,
#lobby-panel #lp-copy-url-btn,
#lobby-panel #lp-host-options-btn,
#lobby-panel .lp-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

#lobby-panel .lp-wrapper {
  flex: 1 1 auto;
  min-height: 0;
  gap: 12px;
}


/* ===== extracted: lobby-search-size-patch33 ===== */

#lobby-search-panel.panel {
  width: 940px;
  height: 540px;
  max-width: min(940px, calc(var(--app-authored-width) - 24px));
  max-height: min(540px, calc(var(--app-authored-height) - 24px));
}

/* ===== extracted: multiplayer-root-z-and-invite-popup ===== */


#matchmake-panel.panel,
#lobby-search-panel.panel,
#shared-garden-panel { z-index: 9050; }


#lobby-panel { z-index: 9000; }


/* ===== extracted: multiplayer-comms-search-authority ===== */

/* ============================================================
   Display pass patch51 — comms/search/help sidecard authority cleanup
   Purpose: prune duplicated lobby-search leftovers and pin the remaining
   communication/search/help sidecards under the multiplayer lobby owner.
   ============================================================ */

#matchmake-panel.panel,
#lobby-search-panel.panel,
#mp-chat-panel {
  min-width: 0;
}

#matchmake-panel > .panel-header,
#lobby-search-panel > .panel-header,
#mp-chat-panel > .panel-header {
  min-width: 0;
  flex: 0 0 auto;
}

#matchmake-panel > .panel-header > .panel-title,
#lobby-search-panel > .panel-header > .panel-title,
#mp-chat-panel > .panel-header > .panel-title {
  min-width: 0;
}

#matchmake-panel > .panel-body.matchmake-body,
#lobby-search-panel > .panel-body.lsp-body,
#mp-chat-panel > .panel-body.mpchat-panel-body {
  height: auto !important;
  overflow: hidden;
}

#matchmake-panel .matchmake-topbar,
#matchmake-panel .matchmake-grid,
#matchmake-panel .matchmake-left,
#matchmake-panel .matchmake-right,
#lobby-search-panel .lsp-results,
#lobby-search-panel .lsp-grid,
#lobby-search-panel .lsp-filters,
#mp-chat-panel .mpchat-log,
#mp-chat-panel .mpchat-input-row {
  min-width: 0;
  min-height: 0;
}

#matchmake-panel .matchmake-right,
#lobby-search-panel .lsp-grid,
#mp-chat-panel .mpchat-log {
  overflow: auto;
  scrollbar-gutter: stable;
  padding-right: 4px;
}

#lobby-search-panel .lsp-results,
#lobby-search-panel .lsp-filters,
#mp-chat-panel .mpchat-log {
  flex: 1 1 auto;
}



