.freegames-hero {
  position: relative;
  overflow: hidden;
  padding: 150px 20px 90px;
  text-align: center;
}

.freegames-hero-content {
  position: relative;
  max-width: 900px;
  margin: auto;
  z-index: 1;
}

.freegames-glow {
  position: absolute;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  background: hsl(var(--primary));
  filter: blur(150px);
  opacity: 0.1;
  pointer-events: none;
}

.freegames-glow-1 {
  top: -180px;
  left: -150px;
}

.freegames-glow-2 {
  right: -150px;
  bottom: -200px;
}

.freegames-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  color: hsl(var(--primary));
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.8rem;
}

.freegames-hero h1 {
  margin: 0;
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.freegames-hero h1 span {
  color: hsl(var(--primary));
}

.freegames-hero p {
  max-width: 720px;
  margin: 1.8rem auto 0;
  color: hsl(var(--muted-foreground));
  font-size: 1.1rem;
  line-height: 1.8;
}

.freegames-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.8rem;
  margin-top: 2rem;
  color: hsl(var(--muted-foreground));
  font-size: 0.9rem;
}

.freegames-meta strong {
  color: hsl(var(--foreground));
}

.meta-dot {
  opacity: 0.5;
}

.freegames-section {
  max-width: 1300px;
  margin: auto;
  padding: 50px 20px 90px;
}

.freegames-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.freegames-toolbar h2 {
  margin: 0 0 0.5rem;
  font-size: 2.2rem;
}

.freegames-toolbar p {
  margin: 0;
  color: hsl(var(--muted-foreground));
}

.game-filters {
  display: flex;
  gap: 0.5rem;
  padding: 5px;
  border: 1px solid hsl(var(--border));
  border-radius: 14px;
  background: hsl(var(--card));
}

.game-filter {
  border: none;
  background: transparent;
  color: hsl(var(--muted-foreground));
  padding: 0.65rem 1rem;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  font-family: inherit;
  transition: 0.2s ease;
}

.game-filter:hover {
  color: hsl(var(--foreground));
}

.game-filter.active {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.game-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 20px;
  min-width: 0;
  height: 100%;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.game-card:hover {
  transform: translateY(-5px);
  border-color: hsl(var(--primary) / 0.5);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.game-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: hsl(var(--muted));
  flex-shrink: 0;
}

.game-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.game-card:hover .game-image {
  transform: scale(1.04);
}

.game-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  padding: 1.5rem;
}

.game-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.platform-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.65rem;
  border-radius: 7px;
  background: hsl(var(--secondary));
  color: hsl(var(--foreground));
  font-size: 0.72rem;
  font-weight: 700;
}

.game-content h3 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.35;
}

.game-description {
  margin: 0.8rem 0 1.5rem;
  color: hsl(var(--muted-foreground));
  font-size: 0.9rem;
  line-height: 1.65;

  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.game-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin-top: auto;
  margin-bottom: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid hsl(var(--border));
}

.game-info-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}

.info-label {
  color: hsl(var(--muted-foreground));
  font-size: 0.72rem;
}

.info-value {
  color: hsl(var(--foreground));
  font-size: 0.82rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.claim-button {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  height: 52px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;

  padding: 0 1rem;

  border: 0;
  border-radius: 12px;

  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));

  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;

  text-align: center;
  text-decoration: none;

  cursor: pointer;

  transition:
    transform 0.2s ease,
    opacity 0.2s ease,
    box-shadow 0.2s ease;
}

.claim-button:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px hsl(var(--primary) / 0.2);
}

.claim-button:active {
  transform: translateY(0);
}

.claim-button svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.claim-button:hover svg {
  transform: translate(2px, -2px);
}

.games-empty {
  text-align: center;

  padding: 6rem 2rem;

  border: 1px solid hsl(var(--border));
  border-radius: 20px;

  background: hsl(var(--card));
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.games-empty h3 {
  margin: 0 0 0.7rem;
  font-size: 1.5rem;
}

.games-empty p {
  margin: 0;
  color: hsl(var(--muted-foreground));
}

.freegames-info {
  max-width: 1300px;
  margin: auto;
  padding: 0 20px 100px;
}

.freegames-info-box {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;

  padding: 2rem;

  border: 1px solid hsl(var(--border));
  border-radius: 20px;

  background: hsl(var(--card));
}

.info-icon {
  width: 52px;
  height: 52px;

  flex-shrink: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 14px;

  background: hsl(var(--primary) / 0.12);

  font-size: 1.4rem;
}

.freegames-info h2 {
  margin: 0 0 0.6rem;
  font-size: 1.4rem;
}

.freegames-info p {
  margin: 0;
  color: hsl(var(--muted-foreground));
  line-height: 1.7;
}

.freegames-info code {
  padding: 2px 6px;

  border-radius: 5px;

  background: hsl(var(--secondary));

  color: hsl(var(--primary));

  font-size: 0.85rem;
}

@media (max-width: 800px) {
  .freegames-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .game-filters {
    width: 100%;
    overflow-x: auto;
  }

  .game-filter {
    flex: 1;
    white-space: nowrap;
  }
}

@media (max-width: 600px) {
  .freegames-hero {
    padding: 110px 20px 70px;
  }

  .freegames-hero h1 {
    font-size: 2.6rem;
  }

  .freegames-hero p {
    font-size: 1rem;
  }

  .freegames-meta {
    flex-direction: column;
    gap: 0.3rem;
  }

  .meta-dot {
    display: none;
  }

  .freegames-section {
    padding-top: 30px;
  }

  .freegames-toolbar h2 {
    font-size: 1.8rem;
  }

  .games-grid {
    grid-template-columns: 1fr;
  }

  .freegames-info-box {
    flex-direction: column;
  }
}
