form[data-game-search] {
  position: relative;
  min-width: 0;
}

.game-search-panel {
  position: absolute;
  inset-inline: 0;
  top: calc(100% + 6px);
  z-index: 20;
  max-height: min(26rem, 55vh);
  max-height: min(26rem, 55dvh);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  box-sizing: border-box;
  padding: 5px;
  border: 1px solid var(--gn-line, rgba(150, 148, 188, .35));
  border-radius: 12px;
  background: var(--color2, #262653);
  color: var(--text-primary, #fff);
  box-shadow: 0 8px 24px rgba(10, 9, 25, .32);
}

.game-search-panel[hidden],
.game-search-panel [hidden] {
  display: none;
}

.game-search-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.game-search-list .game-search-option {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 5px 9px;
  border-radius: 8px;
  color: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  text-align: start;
  text-decoration: none;
}

.game-search-option img {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 6px;
  background: var(--color1, #151436);
  object-fit: cover;
}

.game-search-option span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.game-search-list .game-search-option:hover,
.game-search-list .game-search-option:focus-visible,
.game-search-list .game-search-option[aria-selected="true"] {
  background: rgba(122, 109, 245, .22);
  color: inherit;
}

.game-search-message {
  margin: 0;
  padding: 12px;
  font-size: 14px;
  line-height: 1.4;
}

.game-search-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.sidebar-right .game-search-panel {
  position: static;
  width: 100%;
  margin-top: 6px;
}
