/* === Reset === */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
  width: 100%;
  min-height: 100%;
  font-family: 'Comic Sans MS', 'Trebuchet MS', system-ui, sans-serif;
  background: linear-gradient(180deg, #8ed4ff 0%, #b8e9ff 60%, #e0f5ff 100%);
  color: #2a2a3a;
  overflow-x: hidden;
}

/* === Animierter Hintergrund === */
.bg-shapes {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.35;
  animation: float 25s ease-in-out infinite;
}
.s1 { width: 220px; height: 220px; background: #ffe066; top: 10%; left: 5%; animation-duration: 20s; }
.s2 { width: 160px; height: 160px; background: #ff8ba8; top: 60%; right: 8%; animation-duration: 28s; animation-delay: -5s; }
.s3 { width: 280px; height: 280px; background: #88e788; bottom: 15%; left: 18%; animation-duration: 32s; animation-delay: -10s; }
.s4 { width: 140px; height: 140px; background: #b088ff; top: 30%; right: 25%; animation-duration: 24s; animation-delay: -8s; }
.s5 { width: 200px; height: 200px; background: #ffaa5a; bottom: 35%; right: 5%; animation-duration: 30s; animation-delay: -15s; }

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -30px) scale(1.1); }
  66% { transform: translate(-30px, 40px) scale(0.95); }
}

/* === Header === */
.hero {
  text-align: center;
  padding: 60px 20px 40px;
  position: relative;
}
.hero h1 {
  font-size: clamp(36px, 7vw, 64px);
  color: #1a4a8c;
  text-shadow: 4px 4px 0 #fff, 8px 8px 0 rgba(0,0,0,0.1);
  margin-bottom: 12px;
  letter-spacing: -1px;
}
.hero-emoji {
  display: inline-block;
  animation: wobble 3s ease-in-out infinite;
}
@keyframes wobble {
  0%, 100% { transform: rotate(-5deg) scale(1); }
  50% { transform: rotate(5deg) scale(1.1); }
}
.hero-sub {
  font-size: clamp(14px, 2.5vw, 18px);
  color: #2a4a7c;
  max-width: 600px;
  margin: 0 auto;
  text-shadow: 1px 1px 0 rgba(255,255,255,0.5);
}

/* === Game-Grid === */
.game-grid {
  max-width: 1280px;
  margin: 20px auto 40px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

/* === Game-Card === */
.game-card {
  background: rgba(255, 255, 255, 0.92);
  border: 5px solid #2a2a3a;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 8px 0 rgba(0,0,0,0.25), 0 12px 28px rgba(0,0,0,0.18);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s;
}

.game-card.available {
  cursor: pointer;
}

.game-card.available:hover {
  transform: translateY(-6px) rotate(-0.5deg);
  box-shadow: 0 14px 0 rgba(0,0,0,0.25), 0 20px 36px rgba(0,0,0,0.25);
}

.game-card.available:active {
  transform: translateY(2px);
  box-shadow: 0 4px 0 rgba(0,0,0,0.25), 0 6px 16px rgba(0,0,0,0.15);
}

.game-card.coming-soon {
  opacity: 0.65;
  filter: saturate(0.7);
}

/* === Card Thumbnail === */
.card-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #ffd86b, #ff9a5b);
  overflow: hidden;
  border-bottom: 5px solid #2a2a3a;
}
.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.placeholder-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(
    45deg,
    #d8d8d8,
    #d8d8d8 20px,
    #c4c4c4 20px,
    #c4c4c4 40px
  );
}
.placeholder-icon {
  font-size: 80px;
  opacity: 0.6;
}

.card-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: #ff3366;
  color: white;
  font-weight: bold;
  font-size: 14px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 3px solid white;
  box-shadow: 0 3px 0 rgba(0,0,0,0.25);
  letter-spacing: 1px;
  transform: rotate(8deg);
}

/* === Card Body === */
.card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-title {
  font-size: 24px;
  color: #1a4a8c;
  margin-bottom: 8px;
  text-shadow: 1px 1px 0 rgba(255,255,255,0.8);
}
.card-desc {
  font-size: 14px;
  color: #4a4a5a;
  line-height: 1.5;
  margin-bottom: 14px;
  flex: 1;
}
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}
.tag {
  background: #fff5cc;
  border: 2px solid #b8a200;
  color: #6b5e0a;
  font-size: 12px;
  font-weight: bold;
  padding: 3px 10px;
  border-radius: 999px;
}
.coming-soon .tag {
  background: #e8e8e8;
  border-color: #888;
  color: #555;
}
.card-play {
  background: linear-gradient(135deg, #4caf50, #3a8c3e);
  color: white;
  font-weight: bold;
  font-size: 17px;
  padding: 12px 18px;
  border-radius: 14px;
  border: 3px solid #2a2a3a;
  text-align: center;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 0 rgba(0,0,0,0.25);
  transition: transform 0.1s;
}
.game-card.available:hover .card-play {
  background: linear-gradient(135deg, #5cc760, #46a04a);
}
.game-card.available:hover .arrow {
  transform: translateX(4px);
}
.arrow {
  transition: transform 0.2s;
}

/* === Footer === */
footer {
  text-align: center;
  padding: 30px 20px 40px;
  color: #2a4a7c;
  font-size: 14px;
  text-shadow: 1px 1px 0 rgba(255,255,255,0.5);
}

/* === Mobile-Optimierungen === */
@media (max-width: 600px) {
  .hero {
    padding: 40px 20px 24px;
  }
  .game-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 16px;
  }
  .card-thumb {
    aspect-ratio: 16 / 9;
  }
}
