/* =====================================================================
   Kachel: Games  →  /games
   Nachtlila, Bungee-Wortmarke mit Regenbogen-Schimmer, Scanlines –
   wie die Übersicht der Games-Seite.
   ===================================================================== */
@font-face { font-family: "Bungee"; font-weight: 400; font-display: swap;
  src: url("../fonts/bungee-latin-400-normal.woff2") format("woff2"); }

.kachel--games {
  --g-alle: linear-gradient(90deg, #ff3d9a, #ff9a3d, #ffe03d, #b6ff3d, #3dd6ff, #5b7bff, #c05bff, #ff3d9a);
  --k-bg:
    radial-gradient(90% 60% at 80% 10%, #5b7bff40, transparent 70%),
    radial-gradient(70% 50% at 0% 100%, #ff3d9a33, transparent 70%),
    #1b1036;
  --k-ink: #fff;
  --k-dim: #ffffffb0;
  --k-akzent: #ffe03d;
  --k-rand: #ffffff1f;
  --k-radius: 20px;
  --k-titel-font: Bungee, Impact, sans-serif;
  --k-titel-gr: clamp(2.6rem, 6.5vw, 3.6rem);
  --k-titel-lauf: 0;
}

.kachel--games .kachel__titel {
  font-weight: 400;
  background: var(--g-alle);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: games-schimmer 14s linear infinite;
}
@keyframes games-schimmer { to { background-position: 300% 0; } }

/* Scanlines über der ganzen Kachel */
.kachel--games::after {
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, rgba(27,16,54,.22) 0 2px, transparent 2px 5px);
  pointer-events: none;
  z-index: 0;
}

/* Spielsymbole in einem bunten Streifen, wie die Spielkacheln dort */
.kachel--games .kachel__bild {
  display: flex;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 0 0 16px 16px;
  top: 0;
  background: var(--g-alle);
  background-size: 200% 100%;
  font-size: clamp(1.6rem, 4vw, 2rem);
  line-height: 1;
}
.kachel--games .kachel__bild span {
  filter: drop-shadow(0 4px 6px rgba(0,0,0,.3));
  transition: transform .15s;
}
.kachel--games:hover .kachel__bild span:nth-child(1) { transform: rotate(-8deg) scale(1.1); }
.kachel--games:hover .kachel__bild span:nth-child(2) { transform: translateY(-3px) scale(1.1); }
.kachel--games:hover .kachel__bild span:nth-child(3) { transform: rotate(8deg) scale(1.1); }

@media (prefers-reduced-motion: reduce) {
  .kachel--games .kachel__titel { animation: none; }
  .kachel--games .kachel__bild span { transition: none; }
}
