* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  font-family: 'Roboto', sans-serif;
  background: #121212;
  color: #ffffff;
  overflow-x: hidden;
  padding-top: 80px;
}
html {
  font-size: 16px;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
}

.stars {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.star {
  position: absolute;
  background: rgb(46, 72, 216);
  border-radius: 50%;
  opacity: 0.8;
  animation: twinkle var(--duration) infinite alternate,
             floatStar var(--duration) ease-in-out infinite;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 1; }
}

@keyframes floatStar {
  0% { transform: translate(0px, 0px); }
  50% { transform: translate(var(--dx), var(--dy)); }
  100% { transform: translate(0px, 0px); }
}

.container {
  position: relative;
  z-index: 1;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding: 20px;
  justify-items: center;
}

.game-card {
  border-radius: 30px;
  padding: 15px;
  display: flex;
  animation: cardTwinkle 3s ease-in-out infinite;
  flex-direction: column;
  align-items: center;
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 135, 255, 0.4);
  width: 100%;
  max-width: 220px;
}

.game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 15px rgba(0, 135, 255, 0.3);
  border-color: rgba(0, 135, 255, 0.2);
}

.game-image {
    width: 100%;
    height: auto;
    border-radius: 20px;
    margin-bottom: 15px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.game-card:hover .game-image {
  transform: scale(1.05);
}

.play-button {
  background: linear-gradient(145deg, #001fff, #00d2ff);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border-radius: 30px;
  color: white;
  border: none;
  width: 100%;
  padding: 12px 0;
  cursor: pointer;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: bold;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
}
.play-button:hover {
  background: linear-gradient(145deg, #00abfc, #0f2295);
  box-shadow: 0 6px 12px rgba(50, 102, 177, 0.6),
              inset 0 1px 0 rgba(255, 255, 255, 0.3);
}


.top-bar {
    position: fixed;
    top: 20px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    z-index: 1000;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.language-switcher,
.device-info {
  padding: 8px 15px;
  height: 40px;
  animation: pulseGlow 3s ease-in-out infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 30px;
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
}

.language-switcher:hover,
.device-info:hover {
  background: rgba(255, 255, 255, 0.05);
}

.lang-flag {
  width: 28px;
  height: 28px;
  object-fit: cover;
  display: inline-block;
  margin-right: 8px;
  border-radius: 50%;
  vertical-align: middle;
}

.lang-text,
.device-info-text {
  color: white;
  font-size: 16px;
  font-weight: bold;
  line-height: 40px;
  margin-left: 8px;
  vertical-align: middle;
}

.lang-options {
  position: absolute;
  top: calc(100% + 5px);
  background: rgba(30, 30, 30, 0.6);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  overflow: hidden;
  transform-origin: top;
  transform: scaleY(0);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  min-width: 120px;
  pointer-events: none;
  overflow-y: auto;
}

.lang-options.show {
  transform: scaleY(1);
  opacity: 1;
  pointer-events: all;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
  background: rgba(30, 30, 30, 0.7);
  border: 1px solid rgba(31, 111, 255, 0.3);
  backdrop-filter: blur(10px);
  box-shadow: 0 0 10px rgba(31, 111, 255, 0.2);
}

.lang-option:hover {
  background: rgba(31, 111, 255, 0.2);
}

.hidden {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

.device-info {
  background: rgba(0, 255, 255, 0.05);
  border: 1px solid rgba(0, 135, 255, 0.3);
  box-shadow: 0 0 10px rgba(0, 135, 255, 0.3);
  border-radius: 30px;
  animation: pulseGlow 3s ease-in-out infinite;
}

.device-info-icon {
  font-size: 22px;
  filter: drop-shadow(0 0 2px #0087ff);
}

@keyframes cardTwinkle {
  0%, 100% {
    box-shadow: 0 0 10px rgba(0, 135, 255, 0.08);
  }
  50% {
    box-shadow: 0 0 10px rgba(0, 135, 255, 0.18);
  }
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 10px rgba(0, 135, 255, 0.12);
  }
  50% {
    box-shadow: 0 0 10px rgba(0, 135, 255, 0.23);
  }
}

@media (max-width: 768px) {
  .container {
    grid-template-columns: repeat(2, 1fr);
  }

}


