body {
  font-family: Inter, sans-serif;
}

.game-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 1.25rem;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition:
    box-shadow 0.2s,
    transform 0.2s;
  text-decoration: none;
  color: inherit;
}

.game-card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.game-icon {
  font-size: 40px;
  line-height: 1;
  width: 64px;
  height: 64px;
  background: #f0fdf4;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.game-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  border-radius: 99px;
  padding: 1px 8px;
  font-size: 11px;
  font-weight: 600;
}

.game-badge.purple {
  background: #f5f3ff;
  border-color: #c4b5fd;
  color: #5b21b6;
}

.game-badge.blue {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1e40af;
}

.game-badge.orange {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #9a3412;
}

.game-badge.pink {
  background: #fdf2f8;
  border-color: #f9a8d4;
  color: #9d174d;
}

.game-badge.yellow {
  background: #fefce8;
  border-color: #fde68a;
  color: #92400e;
}

.cat-pill {
  border: 1px solid #e5e7eb;
  border-radius: 99px;
  padding: 4px 14px;
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  background: #fff;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

.cat-pill:hover {
  border-color: #6ee7b7;
  color: #065f46;
  background: #f0fdf4;
}

.cat-pill.active {
  border-color: #059669;
  color: #065f46;
  background: #ecfdf5;
}

#games-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 480px) {
  #games-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  #games-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.game-card.coming-soon {
  opacity: 0.55;
  pointer-events: none;
  border-style: dashed;
}

.stat-strip {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.04);
}

.search-wrap {
  position: relative;
  margin-bottom: 1rem;
}

.search-wrap svg.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  pointer-events: none;
}

#game-search {
  width: 100%;
  box-sizing: border-box;
  padding: 9px 36px 9px 38px;
  border: 1px solid #e5e7eb;
  border-radius: 0.6rem;
  font-size: 14px;
  font-family: Inter, sans-serif;
  color: #111827;
  background: #fff;
  outline: none;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

#game-search:focus {
  border-color: #059669;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.12);
}

#search-clear {
  display: none;
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #9ca3af;
  font-size: 16px;
  line-height: 1;
  padding: 2px 4px;
  border-radius: 4px;
}

#search-clear:hover {
  color: #374151;
}

#no-results {
  display: none;
  text-align: center;
  padding: 2.5rem 1rem;
  color: #6b7280;
  font-size: 14px;
  grid-column: 1 / -1;
}
