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(19rem, 55vh);
  max-height: min(19rem, 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: 8px;
  box-sizing: border-box;
  min-height: 46px;
  padding: 5px 7px;
  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: 34px;
  height: 34px;
  border-radius: 6px;
  background: var(--color1, #151436);
  object-fit: cover;
}

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

.game-search-tag-mark {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: var(--color1, #151436);
  font-weight: 700;
}

.game-search-heading {
  padding: 3px 7px 5px;
  font-size: 11px;
  font-weight: 600;
  opacity: .82;
}

.game-search-option + .game-search-option {
  border-top: 1px solid var(--gn-line, rgba(150, 148, 188, .24));
}

.game-search-copy {
  display: grid;
  flex: 1;
  gap: 1px;
}

.game-search-title {
  font-size: 13px;
  font-weight: 600;
}

.game-search-secondary {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  opacity: .82;
  font-size: 11px;
}

.game-search-score {
  flex: none;
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.game-search-star {
  margin-inline-end: 3px;
  color: #e8aa33;
}

.game-search-list :is(.game-search-collection, .game-search-all) {
  min-height: 34px;
}

.game-search-all::after {
  content: '→' / '';
}

@media (pointer: coarse) {
  .game-search-list :is(.game-search-collection, .game-search-all) {
    min-height: 44px;
  }
}

.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;
}
