.games-hero {
  margin-bottom: 24px;
  background: var(--primary-grad);
  border: none;
}

.games-hero h2 {
  margin: 10px 0;
  font-size: 36px;
  font-weight: 900;
}

.games-hero p {
  max-width: 500px;
  font-weight: 600;
  opacity: 0.9;
}

.discord-banner {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  color: var(--text-main);
  margin-bottom: 24px;
  background: var(--card-grad);
  border: 1px solid var(--card-border-strong);
  border-radius: 20px;
  padding: 20px;
  box-shadow: var(--card-shadow);
  transition: border-color 0.2s ease;
}

.discord-banner:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.discord-banner-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.discord-banner-title i {
  width: 24px;
  height: 24px;
  color: var(--text-main);
}

.discord-banner-title h2 {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
}

.discord-banner p {
  font-size: 14px;
  margin: 0;
}

.games-grid {
  align-items: stretch;
}

@media (max-width: 600px) {
  .games-hero {
    padding: 18px;
  }

  .games-hero h2 {
    font-size: clamp(28px, 9vw, 36px);
  }
}

.game-card.coming-soon {
  position: relative;
  filter: grayscale(1);
  opacity: 0.55;
  cursor: not-allowed;
  user-select: none;
}

.game-card.coming-soon > * {
  pointer-events: none;
}

.game-card.coming-soon:hover {
  border-color: var(--card-border-strong);
}

.game-card.coming-soon .cover {
  position: relative;
}

.game-card.coming-soon .soon-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 12px;
  font-weight: 800;
}

.game-card.coming-soon .game-play {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  box-shadow: none;
}

.discord-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(4, 2, 8, 0.72);
  backdrop-filter: blur(8px);
}

.discord-modal-overlay.hidden {
  display: none !important;
}

.discord-modal-card {
  position: relative;
  width: min(430px, 100%);
  max-height: calc(100vh - 2rem);
  overflow: hidden;
  border: 1px solid rgba(244, 114, 182, 0.55);
  border-radius: 24px;
  padding: 1.8rem 1.4rem 1.5rem;
  background: linear-gradient(180deg, rgba(41, 13, 31, 0.92), rgba(20, 8, 20, 0.94));
  box-shadow: 0 28px 56px rgba(0, 0, 0, 0.55), 0 0 60px rgba(236, 72, 153, 0.14);
  text-align: center;
  animation: discord-modal-pop 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

@keyframes discord-modal-pop {
  0% { transform: scale(0.82); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.discord-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: #fbcfe8;
  cursor: pointer;
  transition: filter 0.15s ease, background 0.15s ease;
}

.discord-modal-close:hover {
  background: rgba(244, 114, 182, 0.18);
  filter: brightness(1.12);
}

.discord-modal-close i {
  width: 16px;
  height: 16px;
}

.discord-modal-icon {
  margin-bottom: 0.4rem;
  font-size: 2.2rem;
}

.discord-modal-title {
  margin-bottom: 1.2rem;
  color: #fbcfe8;
  font-size: 1.4rem;
  font-weight: 900;
}

.discord-modal-qr {
  display: block;
  width: min(250px, 75vw);
  aspect-ratio: 1;
  margin: 0 auto;
  border: 8px solid rgba(255, 255, 255, 0.96);
  border-radius: 16px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.34), 0 0 28px rgba(244, 114, 182, 0.12);
}

.discord-modal-or {
  margin: 1rem 0;
  color: #f9a8d4;
  font-size: 0.9rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.discord-modal-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  border: 1px solid rgba(244, 114, 182, 0.7);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.28), rgba(190, 24, 93, 0.2));
  color: #fce7f3;
  font-weight: 800;
  text-decoration: none;
  transition: filter 0.15s ease, transform 0.15s ease;
}

.discord-modal-link:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
}

.discord-modal-link i {
  width: 17px;
  height: 17px;
}