/* ── Games Hub Styles ────────────────────────────────────── */

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

.game-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 26px 24px 28px;
  overflow: hidden;
  border: 1px solid var(--page-surface-border);
  border-radius: 0;
  background:
    linear-gradient(135deg, rgba(94, 248, 231, 0.08), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    var(--page-surface);
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 24px 100%, 0 calc(100% - 24px));
  box-shadow: var(--page-shadow), var(--page-glow-cyan);
  backdrop-filter: blur(16px);
  text-decoration: none;
  color: var(--page-text);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.game-tile::before {
  content: "";
  position: absolute;
  inset: -20% auto auto -12%;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 86, 197, 0.14), transparent 68%);
  pointer-events: none;
}

.game-tile::after {
  content: "";
  position: absolute;
  top: 16px;
  right: 16px;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, rgba(94, 248, 231, 0), rgba(94, 248, 231, 0.88), rgba(255, 86, 197, 0.88));
  box-shadow: 0 0 16px rgba(94, 248, 231, 0.28);
  pointer-events: none;
}

.game-tile > * {
  position: relative;
  z-index: 1;
}

.game-tile:hover:not(.game-tile-soon) {
  transform: translateY(-3px);
  border-color: rgba(255, 86, 197, 0.32);
  box-shadow: var(--page-shadow), var(--page-glow-pink);
}

.game-tile-soon {
  opacity: 0.5;
  cursor: default;
}

.game-tile-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.game-tile-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-tile-icon-text {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(94, 248, 231, 0.18), rgba(255, 86, 197, 0.12));
  border: 1px solid rgba(94, 248, 231, 0.2);
  font-family: "DigitFusionDisplay", "Impact", sans-serif;
  font-size: 22px;
  letter-spacing: 0.04em;
  color: var(--page-accent);
}

.game-tile-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.game-tile-tag {
  display: inline-flex;
  align-self: flex-start;
  padding: 2px 10px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--page-accent);
  border: 1px solid rgba(94, 248, 231, 0.2);
  background: rgba(94, 248, 231, 0.06);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

.game-tile-title {
  margin: 4px 0 0;
  font-family: "DigitFusionDisplay", "Impact", sans-serif;
  font-size: clamp(24px, 3.5vw, 30px);
  line-height: 1.1;
}

.game-tile-desc {
  margin: 2px 0 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--page-text-muted);
}

.game-tile-action {
  display: inline-flex;
  align-self: flex-start;
  padding: 6px 16px;
  font-family: "DigitFusionDisplay", "Impact", sans-serif;
  font-size: 15px;
  letter-spacing: 0.04em;
  color: var(--page-accent);
  border: 1px solid rgba(94, 248, 231, 0.2);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  background: rgba(94, 248, 231, 0.06);
  transition: background 160ms ease, border-color 160ms ease;
}

.game-tile:hover .game-tile-action {
  background: rgba(94, 248, 231, 0.14);
  border-color: rgba(94, 248, 231, 0.36);
}

.hub-footer-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

@media (max-width: 720px) {
  .games-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
}
