* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Arial", sans-serif;
  background: linear-gradient(135deg, #1a1a2e, #16213e, #1a1a2e);
  min-height: 100vh;
  color: white;
  overflow-x: hidden;
}

.background-effects {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.bg-circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.2;
  animation: pulse 3s ease-in-out infinite;
}

.bg-circle-1 {
  top: -160px;
  right: -160px;
  width: 320px;
  height: 320px;
  background: #8b5cf6;
}

.bg-circle-2 {
  bottom: -160px;
  left: -160px;
  width: 320px;
  height: 320px;
  background: #06b6d4;
  animation-delay: 1s;
}

.bg-circle-3 {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 320px;
  height: 320px;
  background: #ec4899;
  animation-delay: 0.5s;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 0.2;
  }

  50% {
    opacity: 0.3;
  }
}

.container {
  position: relative;
  z-index: 10;
  max-width: 900px;
  margin: 0 auto;
  padding: 64px 16px;
}

.header {
  text-align: center;
  margin-bottom: 64px;
}

.title-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.gamepad-icon {
  width: 64px;
  height: 64px;
  margin-right: 16px;
  fill: #06b6d4;
}

.main-title {
  font-size: 4rem;
  font-weight: bold;
  background: linear-gradient(to right, #06b6d4, #8b5cf6, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  font-size: 1.5rem;
  color: #d1d5db;
  max-width: 512px;
  margin: 0 auto;
}

.divider {
  width: 96px;
  height: 4px;
  background: linear-gradient(to right, #06b6d4, #8b5cf6);
  border-radius: 2px;
  margin: 32px auto 0;
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.link-card {
  position: relative;
  background: rgba(31, 41, 55, 0.5);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(75, 85, 99, 0.5);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: white;
  transition: all 0.3s ease;
}

.link-card:hover {
  transform: scale(1.05);
  border-color: rgba(6, 182, 212, 0.5);
  box-shadow: 0 25px 50px -12px rgba(139, 92, 246, 0.2);
}

.card-image {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.link-card:hover .card-image {
  transform: scale(1.1);
}

.card-title {
  padding: 16px;
  text-align: center;
  font-size: 1.25rem;
  font-weight: bold;
  transition: color 0.3s ease;
}

.link-card:hover .card-title {
  color: #06b6d4;
}

.footer {
  text-align: center;
  margin-top: 64px;
}

.footer-text {
  color: #6b7280;
  margin-bottom: 16px;
}

.dots-container {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.dot-1 {
  background: #06b6d4;
}

.dot-2 {
  background: #8b5cf6;
  animation-delay: 0.1s;
}

.dot-3 {
  background: #ec4899;
  animation-delay: 0.2s;
}

.game-canvas {
  aspect-ratio: 4/2;
  max-height: 80vh;
  margin: 0 auto;
}

@keyframes ping {

  75%,
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

@media (max-width: 768px) {
  .main-title {
    font-size: 2.5rem;
  }

  .title-container {
    flex-direction: column;
  }

  .gamepad-icon {
    margin-right: 0;
    margin-bottom: 16px;
  }

  .subtitle {
    font-size: 1.25rem;
  }

  .links-grid {
    grid-template-columns: 1fr;
  }

  .game-canvas {
    aspect-ratio: 5/8;
  }
}
