/**
 * 电竞邦 · 通用游戏选择器
 */
.gp-overlay {
  align-items: flex-end;
  z-index: 3000;
}
.gp-sheet {
  width: 100%;
  max-width: 480px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  background: var(--wx-surface, #fff);
  border-radius: 16px 16px 0 0;
  transform: translateY(100%);
  transition: transform .25s cubic-bezier(.4, 0, .2, 1);
  padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
}
.wx-overlay-show .gp-sheet {
  transform: translateY(0);
}

.gp-sheet-head {
  flex-shrink: 0;
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--wx-border, #e8e5f2);
}
.gp-sheet-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--wx-text, #1a1630);
  margin: 0 0 12px;
  text-align: center;
}
.gp-sheet-close {
  position: absolute;
  right: 12px;
  top: 14px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: var(--wx-bg, #f5f3fa);
  color: var(--wx-text-muted, #6b6880);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.gp-sheet-head { position: relative; }

.gp-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  min-height: 44px;
  border-radius: 14px;
  background: var(--wx-surface, #fff);
  border: 1.5px solid var(--wx-border, #e8e5f2);
  box-shadow: 0 2px 8px rgba(107, 92, 231, .06);
}
.gp-search:focus-within {
  border-color: var(--wx-primary-muted, #9d90f0);
  box-shadow: 0 0 0 4px rgba(107, 92, 231, .1);
}
.gp-search-icon {
  width: 18px; height: 18px; flex-shrink: 0; font-size: 0; color: transparent;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239b98b0' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-4-4'/%3E%3C/svg%3E") center / contain no-repeat;
}
.gp-search input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 14px;
  color: var(--wx-text, #1a1630);
  outline: none;
  min-width: 0;
}
.gp-search input::placeholder { color: #a8a5b8; }

.gp-tabs {
  flex-shrink: 0;
  display: flex;
  gap: 4px;
  padding: 4px 16px 10px;
  border-bottom: 1px solid var(--wx-border, #e8e5f2);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: linear-gradient(180deg, #ebe8f6, #e4e0f2);
}
.gp-tabs::-webkit-scrollbar { display: none; }
.gp-tab {
  flex-shrink: 0;
  padding: 9px 12px;
  border-radius: 11px;
  border: none;
  background: transparent;
  color: var(--wx-text-muted, #6b6880);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  text-align: center;
}
.gp-tab.active {
  background: var(--wx-surface, #fff);
  color: var(--wx-primary-dark, #5646d4);
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(91, 33, 182, .12);
}

.gp-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  min-height: 200px;
  position: relative;
}
.gp-hot {
  padding: 12px 16px 4px;
}
.gp-hot-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--wx-text-muted, #6b6880);
  margin-bottom: 10px;
}
.gp-hot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px 6px;
}
.gp-hot-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  padding: 4px 2px;
  border-radius: 10px;
}
.gp-hot-item:active { background: var(--wx-primary-light, #f1eeff); }
.gp-hot-name {
  font-size: 11px;
  color: var(--wx-text, #1a1630);
  text-align: center;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gp-letter {
  padding: 8px 16px 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--wx-primary, #6b5ce7);
  background: var(--wx-primary-light, #f1eeff);
  position: sticky;
  top: 0;
  z-index: 2;
}
.gp-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border-bottom: 1px solid #f0edf8;
  cursor: pointer;
  transition: background .12s;
}
.gp-row:active { background: var(--wx-primary-light, #f1eeff); }
.gp-row.gp-row-disabled {
  opacity: .45;
  pointer-events: none;
}
.gp-row-name {
  flex: 1;
  font-size: 15px;
  font-weight: 500;
  color: var(--wx-text, #1a1630);
  min-width: 0;
}
.gp-row-tags { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 3px; }
.gp-tag {
  display: inline-flex;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  border: 1px solid;
}
.gp-tag-boost { background: rgba(107, 92, 231, .08); border-color: rgba(107, 92, 231, .22); color: #5646d4; }
.gp-tag-account { background: rgba(21, 159, 149, .08); border-color: rgba(21, 159, 149, .22); color: #0f766e; }

.gp-icon, .gp-icon-ph {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  flex-shrink: 0;
  object-fit: cover;
  background: #f0edf8;
}
.gp-icon-ph, .gp-hot-item .gp-icon-ph {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #7c3aed, #38bdf8);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}
.gp-hot-item .gp-icon, .gp-hot-item .gp-icon-ph {
  width: 48px;
  height: 48px;
  border-radius: 14px;
}

.gp-empty, .gp-loading {
  text-align: center;
  padding: 48px 20px;
  color: var(--wx-text-muted, #6b6880);
  font-size: 14px;
}
.gp-loading .wx-spinner { margin-bottom: 10px; }

.gp-alpha {
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  padding: 4px 2px;
}
.gp-alpha span {
  display: block;
  width: 22px;
  height: 18px;
  line-height: 18px;
  text-align: center;
  font-size: 10px;
  font-weight: 600;
  color: var(--wx-primary, #6b5ce7);
  cursor: pointer;
  border-radius: 4px;
}
.gp-alpha span:active { background: var(--wx-primary, #6b5ce7); color: #fff; }

/* 表单触发器 */
.gp-field { margin-top: 6px; }
.gp-field-btn {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--wx-border, #e8e5f2);
  border-radius: 12px;
  background: var(--wx-surface, #fff);
  color: var(--wx-text, #1a1630);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  box-shadow: 0 2px 8px rgba(107, 92, 231, .06);
  transition: border-color .2s, box-shadow .2s;
}
.gp-field-btn:active, .gp-field-btn:focus {
  outline: none;
  border-color: var(--wx-primary, #6b5ce7);
  box-shadow: 0 0 0 3px rgba(107, 92, 231, .1);
}
.gp-field-icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  margin-right: 4px;
}
.gp-field-icon .gp-icon, .gp-field-icon .gp-icon-ph {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  margin: 0;
  font-size: 13px;
}
.gp-field-text { flex: 1; min-width: 0; }
.gp-field-text.gp-placeholder { color: #a8a5b8; font-weight: 400; }
.gp-field-arrow {
  color: var(--wx-text-light, #9b98b0);
  font-size: 18px;
  line-height: 1;
  margin-left: 8px;
}

/* 已选游戏 chips */
.wx-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  min-height: 36px;
}
.wx-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px 6px 12px;
  border-radius: 999px;
  background: var(--wx-primary-light, #f1eeff);
  border: 1px solid rgba(107, 92, 231, .2);
  color: var(--wx-primary-dark, #5646d4);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
}
.wx-chip-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border: none;
  border-radius: 50%;
  background: rgba(107, 92, 231, .15);
  color: var(--wx-primary-dark, #5646d4);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}
.wx-chip-remove:active { background: rgba(107, 92, 231, .3); }
.gp-chips-empty {
  font-size: 13px;
  color: #a8a5b8;
  padding: 6px 0;
}
