/* Cosmic Background Sky with Twinkling Stars */
body {
  background-color: #050714;
  overflow-x: hidden;
}

.cosmic-sky {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(ellipse at bottom, #1b0e3b 0%, #050714 80%);
}

/* Twinkling Stars Effect */
.star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: #fff;
  border-radius: 50%;
  animation: twinkle 4s infinite ease-in-out;
}
.star:nth-child(1) { top: 10%; left: 20%; animation-delay: 0s; }
.star:nth-child(2) { top: 25%; left: 75%; animation-delay: 1.5s; }
.star:nth-child(3) { top: 60%; left: 10%; animation-delay: 2.2s; }
.star:nth-child(4) { top: 80%; left: 85%; animation-delay: 0.8s; }
.star:nth-child(5) { top: 40%; left: 50%; animation-delay: 3s; }

@keyframes twinkle {
  0%, 100% { opacity: 0.2; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.6); box-shadow: 0 0 8px #f3e5ab; }
}

/* Floating Planets in Background */
.planet-orbit {
  position: absolute;
  font-size: 35px;
  opacity: 0.25;
  filter: drop-shadow(0 0 10px #d4af37);
  animation: floatPlanet 12s infinite alternate ease-in-out;
}
.planet-orbit.p1 { top: 15%; left: 8%; animation-duration: 15s; }
.planet-orbit.p2 { bottom: 20%; right: 10%; animation-duration: 10s; }

@keyframes floatPlanet {
  0% { transform: translateY(0px) rotate(0deg); }
  100% { transform: translateY(-30px) rotate(15deg); }
}

/* Cosmic Arcade Main Section */
.cosmic-arcade-section {
  padding: 80px 0;
  position: relative;
  z-index: 2;
}

/* Cosmic Top Badge */
.cosmic-badge {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(162, 155, 254, 0.2));
  border: 1px solid rgba(212, 175, 55, 0.5);
  color: #f3e5ab;
  padding: 6px 20px;
  border-radius: 25px;
  font-size: 11px;
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  display: inline-block;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.25);
}

/* Arcade Card Design with Mystic Vibe */
.arcade-card {
  background: linear-gradient(145deg, rgba(24, 18, 56, 0.85), rgba(10, 13, 36, 0.95));
  border: 2px solid rgba(115, 90, 185, 0.35);
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 30px;
  position: relative;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.arcade-card:hover {
  transform: translateY(-8px);
  border-color: #d4af37;
  box-shadow: 0 15px 45px rgba(212, 175, 55, 0.35), inset 0 0 20px rgba(162, 155, 254, 0.25);
}

/* Top Icon Box with Icon Floating Loop Animation */
.arcade-img-box {
  height: 130px;
  background: radial-gradient(circle at center, rgba(60, 37, 117, 0.6) 0%, rgba(11, 15, 41, 0.9) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(115, 90, 185, 0.3);
  position: relative;
}

/* 🌟 ICON FLY / FLOATING ANIMATION IN LOOP */
.floating-icon {
  font-size: 45px;
  display: inline-block;
  animation: iconFlyLoop 3s infinite ease-in-out alternate;
  filter: drop-shadow(0 0 10px rgba(243, 229, 171, 0.6));
}

@keyframes iconFlyLoop {
  0% { transform: translateY(0px) scale(1); }
  100% { transform: translateY(-8px) scale(1.08); filter: drop-shadow(0 0 18px #d4af37); }
}

/* Card Content */
.arcade-content {
  padding: 22px;
  text-align: center;
}

.arcade-title {
  font-family: 'Cinzel', serif;
  color: #f3e5ab;
  font-size: 18px;
  margin-bottom: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.arcade-desc {
  font-size: 13px;
  color: #b2bec3;
  margin-bottom: 20px;
  min-height: 42px;
  line-height: 1.5;
  font-family: 'Poppins', sans-serif;
}

/* Play Now Button Styling */
.play-btn {
  background: linear-gradient(45deg, #d4af37, #f3e5ab);
  color: #0b0f29;
  font-family: 'Orbitron', sans-serif;
  font-weight: bold;
  border: none;
  padding: 11px 25px;
  border-radius: 25px;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 1.5px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  width: 100%;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.play-btn:hover {
  background: linear-gradient(45deg, #f3e5ab, #ffffff);
  color: #0b0f29;
  text-decoration: none;
  transform: scale(1.03);
  box-shadow: 0 0 25px #d4af37, 0 0 10px #ffeaa7;
}

/* Pagination Controls */
.arcade-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 50px;
}

.arcade-pagination button {
  background: rgba(22, 18, 53, 0.85);
  border: 2px solid rgba(115, 90, 185, 0.5);
  color: #f3e5ab;
  font-family: 'Orbitron', sans-serif;
  padding: 10px 18px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 13px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.arcade-pagination button:hover,
.arcade-pagination button.active {
  background: linear-gradient(45deg, #d4af37, #f3e5ab);
  color: #0b0f29;
  border-color: #d4af37;
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

.arcade-pagination button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  background: #161235;
  color: #636e72;
  border-color: #2d3436;
  transform: none;
  box-shadow: none;
}