/* GameHub UX overlay — nav, sticky filters, card affordances */
.nav-toggle {
  display: none;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  border-radius: 8px;
  padding: 0.45rem 0.8rem;
  min-height: 44px;
  font-weight: 600;
  cursor: pointer;
}

.games-toolbar {
  position: sticky;
  top: 64px;
  z-index: 40;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(10px);
  padding: 0.65rem;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
}
.games-toolbar input[type="search"],
.games-toolbar select {
  font-size: 16px;
}
.games-toolbar input,
.games-toolbar select,
.games-toolbar button {
  min-height: 44px;
}
.games-toolbar input[type="search"] {
  flex: 1 1 160px;
}

.games-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0.75rem 0 0.25rem;
}
.games-chips .chip,
.recent-games .chip {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  min-height: 36px;
  cursor: pointer;
  font: inherit;
}
.games-chips .chip:focus-visible,
.recent-games .chip:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.visible-count {
  font-size: 0.85rem;
  opacity: 0.75;
  white-space: nowrap;
}

.game-card { cursor: pointer; position: relative; }
.game-card:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.games-empty .btn-inline { margin-left: 0.35rem; }

.fav-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(15,23,42,0.72);
  color: #fbbf24;
  font-size: 1.1rem;
  cursor: pointer;
}
.fav-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.recent-games {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0.75rem 0 1rem;
}
.recent-games .recent-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.7;
}

.game-ui {
  color: #e2e8f0;
  text-align: center;
  margin: 0.6rem 0 0;
  font-size: 0.95rem;
  position: static;
  pointer-events: none;
}

#game-container:focus { outline: none; }
#game-container { min-height: 120px; position: relative; }

button.package {
  color: inherit;
  font: inherit;
  width: 100%;
}
button.package:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

@media (max-width: 768px) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .nav-links { display: none; width: 100%; flex-direction: column; font-size: 0.95rem; }
  .nav-links.open { display: flex; }
  .games-toolbar { top: 56px; }
  .visible-count { width: 100%; text-align: center; }
  .game-card .btn-play { min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  .games-toolbar { backdrop-filter: none; }
}
