/* HTML5 Games Catalog — dark/teal, matches Profile */
.hapk-games-shell.hapk-profile-box {
  padding: 1.5rem 1.35rem 1.75rem;
}

.hapk-games-header {
  margin-bottom: 1.5rem;
  max-width: 40rem;
}

.hapk-games-eyebrow {
  display: block;
  color: #86dfc1;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 10px;
  font-weight: 700;
  margin-bottom: 0.55rem;
}

.hapk-games-header h1 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.6rem, 3vw, 2rem);
  color: #fff;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.hapk-games-lead {
  margin: 0;
  color: #9aa3b2;
  font-size: 0.95rem;
  line-height: 1.6;
}

.hapk-games-empty {
  color: #9aa3b2;
  margin: 0;
}

.hapk-games-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
}

@media (min-width: 760px) {
  .hapk-games-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

.hapk-game-card {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(27, 188, 155, 0.22);
  border-radius: 14px;
  background: linear-gradient(165deg, #232936, #181d27);
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.hapk-game-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background:
    radial-gradient(ellipse at 70% 30%, rgba(27, 188, 155, 0.18), transparent 55%),
    #12161e;
  overflow: hidden;
}

.hapk-game-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.hapk-game-card-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 3rem;
  color: #86dfc1;
}

.hapk-game-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(27, 188, 155, 0.92);
  color: #102b27;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hapk-game-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.05rem 1.1rem 1.2rem;
  flex: 1;
}

.hapk-game-card-tagline {
  color: #86dfc1;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hapk-game-card-body h2 {
  margin: 0;
  font-size: 1.2rem;
  color: #f4f7fb;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.hapk-game-card-body p {
  margin: 0;
  color: #aeb8c6;
  font-size: 0.9rem;
  line-height: 1.6;
  flex: 1;
}

.hapk-game-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0.15rem 0 0.35rem;
  padding: 0;
}

.hapk-game-card-tags li {
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #9aa3b2;
  font-size: 10px;
  font-weight: 600;
}

.hapk-games-shell .hapk-game-play {
  align-self: flex-start;
  margin-top: 0.25rem;
  text-decoration: none !important;
}

.hapk-games-shell .hapk-game-play:hover {
  filter: brightness(1.05);
}

body.hapk-games-page #backtotop {
  display: none !important;
}
