.GAMES-main { max-width: 1010px; 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(5, 1fr);
  gap: 20px 16px;
  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: 16px 14px; }
}
@media (max-width: 700px) {
  .GAMES-grid { grid-template-columns: repeat(4, 1fr); }
}

.GAMES-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.13);
  transition: transform 0.22s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.22s ease;
  width: 100%;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
}

.GAMES-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.22);
}

.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(--accent);
}

.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: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 100px;
  backdrop-filter: blur(8px);
}

.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(3, 1fr); gap: 12px 10px; }
  .GAMES-card-name { padding: 8px 8px 10px; font-size: 12px; }
}
@media (max-width: 400px) {
  .GAMES-grid { grid-template-columns: repeat(2, 1fr); gap: 10px 8px; }
}

/* ── section shared ── */
.GAMES-section-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  margin: 0 0 24px;
  letter-spacing: 0.01em;
  background: linear-gradient(90deg,#f59e0b,#ff3b3b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@media (min-width: 640px) { .GAMES-section-title { font-size: 1.6rem; } }

/* ── features ── */
.GAMES-features-section { padding: 0 0 48px; }
.GAMES-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 700px) { .GAMES-features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .GAMES-features-grid { grid-template-columns: 1fr 1fr; gap: 12px; } }

.GAMES-feature-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 20px 18px;
  text-align: center;
}
.GAMES-feature-icon { font-size: 1.75rem; margin-bottom: 10px; }
.GAMES-feature-title { font-size: 0.9375rem; font-weight: 700; margin: 0 0 6px; color: var(--text); }
.GAMES-feature-desc { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.55; margin: 0; }

/* ── about ── */
.GAMES-about-section { padding: 0 0 48px; }
.GAMES-about-body {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 24px 28px;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-secondary);
  max-width: 800px;
  margin: 0 auto;
}
.GAMES-about-body p { margin: 0 0 14px; }
.GAMES-about-body p:last-child { margin-bottom: 0; }
@media (max-width: 640px) { .GAMES-about-body { padding: 18px 18px; } }

/* ── faq ── */
.GAMES-faq-section { padding: 0 0 56px; }
.GAMES-faq-list { max-width: 800px; margin: 0 auto; }
.GAMES-faq-item {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 18px 22px;
  margin-bottom: 12px;
}
.GAMES-faq-q {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px;
  line-height: 1.4;
}
.GAMES-faq-a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
}
