/* Loom-style dark dual-column language switcher */
.gamequ-lang-root {
  position: fixed;
  top: 14px;
  right: 16px;
  z-index: 10050;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.gamequ-lang-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: rgba(22, 24, 32, 0.88);
  color: #f3f4f6;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.gamequ-lang-trigger:hover,
.gamequ-lang-root.is-open .gamequ-lang-trigger {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(28, 30, 40, 0.95);
}

.gamequ-lang-trigger__globe {
  opacity: 0.92;
  flex: 0 0 auto;
}

.gamequ-lang-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(460px, calc(100vw - 20px));
  padding: 12px 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: rgba(28, 30, 38, 0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
}

.gamequ-lang-panel[hidden] {
  display: none !important;
}

.gamequ-lang-panel__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 8px;
}

.gamequ-lang-col {
  list-style: none;
  margin: 0;
  padding: 0;
}

.gamequ-lang-item {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 5px 10px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 400;
}

.gamequ-lang-item:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.gamequ-lang-item.is-active {
  color: #fff;
  font-weight: 600;
}

.gamequ-lang-item__label {
  flex: 0 1 auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gamequ-lang-item__badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 7px;
  border-radius: 999px;
  background: #2f6bff;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1;
}

.gamequ-lang-item__check {
  margin-left: auto;
  width: 14px;
  flex: 0 0 14px;
  text-align: right;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.92);
}

@media (max-width: 640px) {
  .gamequ-lang-root {
    top: 10px;
    right: 10px;
  }
  .gamequ-lang-panel {
    width: min(300px, calc(100vw - 16px));
  }
  .gamequ-lang-panel__grid {
    grid-template-columns: 1fr;
  }
}
