.GAMES-main { max-width: 1000px; margin-left: auto; margin-right: auto; padding: 0 20px; width: 100%; box-sizing: border-box; }
@media (max-width: 1020px) { .GAMES-main { padding: 0 12px; } }

.GAMES-section { padding: 28px 0 48px; }

.GAMES-heading {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 12px;
  text-align: center;
  letter-spacing: 0.02em;
  line-height: 1.25;
}
@media (min-width: 640px) {
  .GAMES-heading { font-size: 2rem; margin-bottom: 16px; }
}

.GAMES-intro {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0 auto 32px;
  max-width: 640px;
  text-align: center;
  padding: 18px 24px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
}
.GAMES-intro p { margin: 0 0 10px; }
.GAMES-intro p:last-child { margin-bottom: 0; }
@media (max-width: 640px) {
  .GAMES-intro { padding: 14px 18px; margin-bottom: 28px; font-size: 0.9375rem; }
}

.GAMES-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 28px 24px;
  justify-items: center;
  margin-left: -20px;
  margin-right: -20px;
  width: calc(100% + 40px);
}
@media (max-width: 1020px) {
  .GAMES-grid { margin-left: -12px; margin-right: -12px; width: calc(100% + 24px); gap: 24px 18px; }
}

.GAMES-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  width: 100%;
  max-width: 180px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
}

.GAMES-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.3);
}

.GAMES-card-inner {
  position: relative;
  display: block;
  width: 100%;
  padding-bottom: 100%;
  height: 0;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
  flex-shrink: 0;
  background: var(--surface);
}

.GAMES-card-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
}

.GAMES-card:hover .GAMES-card-img {
  transform: scale(1.06);
}

.GAMES-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.45) 45%, rgba(0, 0, 0, 0.82) 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.GAMES-card:hover .GAMES-card-overlay {
  opacity: 1;
}

.GAMES-card-name {
  display: block;
  width: 100%;
  padding: 12px 10px 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  letter-spacing: 0.02em;
  line-height: 1.3;
  background: var(--card-bg);
  border-top: 1px solid var(--card-border);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.GAMES-card:hover .GAMES-card-name {
  color: var(--brand-yellow);
}

.GAMES-card-play {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  background: rgba(139, 92, 246, .12);
  border: 1px solid rgba(139, 92, 246, 0.4);
  border-radius: 100px;
  backdrop-filter: blur(8px);
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.GAMES-card:hover .GAMES-card-play {
  background: var(--brand-yellow);
  color: var(--surface-contrast);
  border-color: #7F1D1D;
}

.GAMES-card-play-arrow { display: inline-flex; align-items: center; justify-content: center; }

.GAMES-empty { text-align: center; color: var(--text-secondary); font-size: 16px; margin: 0; }

@media (max-width: 600px) {
  .GAMES-grid { grid-template-columns: repeat(2, 1fr); gap: 20px 14px; }
  .GAMES-card { max-width: 180px; }
  .GAMES-card-name { padding: 10px 8px 12px; font-size: 13px; }
}
