/* ==== Ilustrasi animasi untuk semua game (offline, tanpa gambar eksternal) ==== */

.ga-scene {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--ga-c1, #4f46e5), var(--ga-c2, #06b6d4));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28), 0 10px 24px rgba(15, 23, 42, .16);
  color: #fff;
}
.ga-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 28%, rgba(255, 255, 255, .26) 47%, transparent 66%);
  transform: translateX(-130%);
  animation: ga-shine 7s ease-in-out infinite;
}
.ga-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}

/* Emoji sebagai "gambar" utama dan pendamping */
.ga-main, .ga-sat, .ga-spark {
  position: absolute;
  z-index: 2;
  line-height: 1;
  user-select: none;
  pointer-events: none;
}
.ga-main {
  left: 11%;
  top: 50%;
  transform: translateY(-50%);
  font-size: clamp(2.9rem, 8vw, 4.4rem);
  filter: drop-shadow(0 8px 8px rgba(0, 0, 0, .28));
  animation: ga-float 3.6s ease-in-out infinite;
}
.ga-sat {
  font-size: clamp(1.15rem, 3vw, 1.75rem);
  filter: drop-shadow(0 4px 5px rgba(0, 0, 0, .25));
  animation: ga-bob 4.4s ease-in-out infinite;
}
.ga-sat.s1 { left: 33%; top: 16%; animation-delay: .45s; }
.ga-sat.s2 { left: 41%; bottom: 12%; animation-delay: 1.3s; }
.ga-sat.s3 { left: 24%; top: 12%; font-size: clamp(.9rem, 2.2vw, 1.2rem); animation-delay: 2.1s; }
.ga-spark {
  color: rgba(255, 255, 255, .95);
  font-size: 1rem;
  animation: ga-twinkle 2.6s ease-in-out infinite;
}
.ga-spark.p1 { left: 6%; top: 14%; }
.ga-spark.p2 { left: 46%; top: 44%; animation-delay: .9s; }
.ga-spark.p3 { left: 18%; bottom: 12%; animation-delay: 1.6s; }

.ga-copy {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  text-align: right;
  max-width: 55%;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .28);
}
.ga-copy small {
  display: block;
  font-size: .66rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 800;
  opacity: .88;
}
.ga-copy strong {
  display: block;
  margin-top: 3px;
  font-size: clamp(1.05rem, 3.4vw, 1.7rem);
  font-weight: 900;
  line-height: 1.12;
}

/* Banner di dalam tiap halaman game */
.ga-banner {
  height: 124px;
  margin: 2px 0 16px;
}
.ga-banner .ga-main { font-size: clamp(3.2rem, 9vw, 4.8rem); }

/* Thumbnail di halaman utama */
.ga-card-art {
  height: 118px;
  margin: -4px -4px 12px;
  transition: transform .25s ease, box-shadow .25s ease;
}
a.card:hover .ga-card-art,
a.card:focus-visible .ga-card-art {
  transform: scale(1.02);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45), 0 14px 26px rgba(0, 0, 0, .28);
}
.ga-card-art .ga-main { left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: 3.5rem; }
.ga-card-art .ga-sat.s1 { left: 16%; top: 20%; }
.ga-card-art .ga-sat.s2 { left: 74%; bottom: 16%; }
.ga-card-art .ga-sat.s3 { left: 82%; top: 16%; }
.ga-card-art .ga-spark.p1 { left: 12%; bottom: 18%; }
.ga-card-art .ga-spark.p2 { left: 84%; top: 46%; }
.ga-card-art .ga-spark.p3 { left: 50%; top: 12%; }

/* Animasi elemen SVG */
.ga-twinkle { animation: ga-twinkle 2.4s ease-in-out infinite; }
.ga-wave { animation: ga-wave 6s ease-in-out infinite; }
.ga-orbit { transform-box: view-box; transform-origin: 470px 90px; animation: ga-spin 16s linear infinite; }
.ga-grow { transform-box: fill-box; transform-origin: center bottom; animation: ga-grow 3.2s ease-in-out infinite; }

@keyframes ga-float {
  0%, 100% { transform: translateY(-50%) rotate(-5deg); }
  50% { transform: translateY(calc(-50% - 9px)) rotate(6deg); }
}
@keyframes ga-bob {
  0%, 100% { transform: translateY(0) rotate(-8deg); }
  50% { transform: translateY(-8px) rotate(8deg); }
}
.ga-card-art .ga-main {
  animation-name: ga-float-center;
}
@keyframes ga-float-center {
  0%, 100% { transform: translate(-50%, -50%) rotate(-5deg); }
  50% { transform: translate(-50%, calc(-50% - 9px)) rotate(6deg); }
}
@keyframes ga-shine {
  0%, 55% { transform: translateX(-130%); }
  80%, 100% { transform: translateX(130%); }
}
@keyframes ga-twinkle {
  0%, 100% { opacity: .35; transform: scale(.8); }
  50% { opacity: 1; transform: scale(1.2); }
}
@keyframes ga-wave {
  0%, 100% { transform: translateX(0) translateY(0); }
  50% { transform: translateX(-14px) translateY(3px); }
}
@keyframes ga-spin { to { transform: rotate(360deg); } }
@keyframes ga-grow {
  0%, 100% { transform: scaleY(.72); }
  50% { transform: scaleY(1); }
}

@media (prefers-reduced-motion: reduce) {
  .ga-scene *, .ga-scene::after { animation: none !important; transition: none !important; }
}
