body:has(> header.site-header) .GAMES-main .GAME-breadcrumb { margin-top: 0; margin-bottom: 16px; }

.GAMES-main {
  max-width: var(--site-content-max);
  margin-left: auto;
  margin-right: auto;
  padding: 24px 22px 48px;
  width: 100%;
  box-sizing: border-box;
}
@media (max-width: 900px) {
  .GAMES-main {
    padding: 14px max(10px, env(safe-area-inset-right, 0px)) 36px 14px;
  }
}
@media (max-width: 768px) {
  .GAMES-main { padding: 10px 12px 28px; }
}

.GAMES-section { padding: 16px 0 0; }

.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;
  width: 100%;
  max-width: 100%;
  margin: 0;
  box-sizing: border-box;
}
@media (max-width: 768px) {
  .GAMES-grid { gap: 24px 18px; }
}

.GAMES-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
  border-radius: 16px;
  overflow: visible;
  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-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  z-index: 3;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 8px;
  line-height: 1.2;
  pointer-events: none;
}
.GAMES-card-badge--new {
  color: #fff;
  background: linear-gradient(135deg, #22C55E 0%, #16A34A 100%);
  border: 2px solid #fff;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(22, 163, 74, 0.5);
}

.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 {
  margin: 0;
  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; }
}

.GAMES-grid.GAMES-grid--flat {
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 22px 18px;
}
@media (max-width: 600px) {
  .GAMES-grid.GAMES-grid--flat {
    grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
    gap: 18px 12px;
  }
  .GAMES-grid.GAMES-grid--flat .GAMES-card { max-width: none; width: 100%; }
}
