/*
 * Game Locator palette.
 *
 * Tailwind never scans public/, so this file uses the semantic custom properties
 * from src/styles/global.css directly. Those are already redefined under .dark,
 * which is why there is not a single dark-mode rule here.
 */

.gl-wrap {
  max-width: 46rem;
  margin: 0 auto;
  padding: 3.5rem 1rem 5rem;
}

.gl-head {
  text-align: center;
  margin-bottom: 1.75rem;
}

.gl-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-fg-strong);
  margin: 0 0 0.4rem;
}

.gl-sub {
  color: var(--color-fg-muted);
  font-size: 1rem;
  margin: 0;
}

.gl-box {
  background: var(--color-surface-raised);
  border: 1px solid var(--color-border);
  border-radius: 0.9rem;
  overflow: hidden;
  box-shadow: 0 12px 32px rgb(0 0 0 / 0.1);
}

.gl-field {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--color-border);
}

.gl-icon {
  flex: none;
  width: 1.2rem;
  height: 1.2rem;
  color: var(--color-fg-muted);
}

.gl-input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--color-fg-strong);
  font-size: 1.15rem;
  font-family: inherit;
  padding: 0.15rem 0;
  min-width: 0;
}

.gl-input::placeholder {
  color: var(--color-fg-muted);
}

.gl-count {
  flex: none;
  font-size: 0.8rem;
  color: var(--color-fg-muted);
  font-variant-numeric: tabular-nums;
}

.gl-list {
  list-style: none;
  margin: 0;
  padding: 0.35rem;
}

.gl-row + .gl-row {
  margin-top: 1px;
}

.gl-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  border-radius: 0.55rem;
  text-decoration: none;
  color: inherit;
}

.gl-row.is-sel .gl-link {
  background: var(--color-accent-soft);
}

.gl-text {
  flex: 1;
  min-width: 0;
}

.gl-name {
  display: block;
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-fg-strong);
  line-height: 1.3;
}

.gl-loc {
  display: block;
  font-size: 0.82rem;
  color: var(--color-fg-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gl-key {
  flex: none;
  font-family: inherit;
  font-size: 0.75rem;
  color: var(--color-fg-muted);
  border: 1px solid var(--color-border-strong);
  border-radius: 0.3rem;
  padding: 0.1rem 0.4rem;
  line-height: 1.4;
}

.gl-row.is-sel .gl-key {
  color: var(--color-fg);
  border-color: var(--color-fg-muted);
}

.gl-empty {
  padding: 1.6rem 1.1rem;
  text-align: center;
  color: var(--color-fg-muted);
  font-size: 0.95rem;
}

.gl-hint {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-fg-muted);
}

.gl-hint b {
  font-weight: 600;
  color: var(--color-fg);
}

/* Keyboard affordances are noise on touch devices, which have no keys to press. */
@media (hover: none), (pointer: coarse) {
  .gl-key,
  .gl-hint {
    display: none;
  }
}
