.room-game-picker {
  min-width: 0;
}
.room-game-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface-2);
  color: var(--text);
  text-align: left;
}
.room-game-toggle > span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.room-game-toggle > .icon {
  flex-shrink: 0;
  width: 16px;
  color: var(--muted);
}
.room-game-toggle[aria-expanded='true'] {
  border-color: var(--accent);
}
.room-game-toggle:focus-visible,
.room-game-search:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.room-game-dropdown {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.room-game-dropdown[hidden] {
  display: none;
}
.room-game-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px;
  padding-left: 11px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
}
.room-game-search > .icon {
  flex-shrink: 0;
  width: 16px;
  color: var(--muted);
}
.room-game-search input {
  min-width: 0;
  height: 40px;
  padding: 8px 10px 8px 0;
  border: 0;
  border-radius: 8px;
  outline: none;
  background: transparent;
  color: var(--text);
}
#room-game-search:focus,
#room-game-search:focus-visible {
  /* The surrounding search field supplies the focus ring. */
  outline: none !important;
  box-shadow: none;
}
.room-game-options {
  max-height: 264px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 6px;
  scrollbar-gutter: stable;
}
.room-game-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  padding: 10px;
  border-radius: 7px;
  color: var(--text);
  text-align: left;
}
.room-game-option > span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.room-game-option > .icon {
  flex-shrink: 0;
  width: 16px;
  color: var(--accent);
}
.room-game-option:hover,
.room-game-option.is-active {
  background: var(--accent-soft);
  color: var(--accent);
}
.room-game-option[aria-selected='true'] {
  color: var(--accent);
}
.room-game-results {
  margin: 0;
  padding: 10px 13px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}
