body {
  margin: 0;
  font-family: 'Lato', sans-serif;
  background-color: #0e0f1d;
  color: #fff;
  position: relative;
  z-index: 0;
  overflow-x: hidden;
}



@keyframes parallaxStars {
  0% { transform: translate(0px, 0px); }
  100% { transform: translate(1px, 1px); }
}


@keyframes twinkle {
  0%, 100% { opacity: 0.08; }
  50% { opacity: 0.2; }
}

header.hero {
  text-align: center;
  padding: 50px 20px;
  background: radial-gradient(circle, #2b2d45 0%, #0e0f1d 100%);
}

nav a {
  margin: 0 10px;
  text-decoration: none;
  color: #9f9fff;
}

nav a:hover {
  text-decoration: underline;
}

footer a {
  margin: 0 10px;
  text-decoration: none;
  color: #9f9fff;
}

footer a:hover {
  text-decoration: none;
}

section {
  padding: 40px 20px;
  max-width: 1000px;
  margin: auto;
}

.grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

a.button {
  display: inline-flex; /* ← changed to inline-flex */
  align-items: center;  /* ← vertical center */
  gap: 8px;             /* ← spacing between icon and text */
  padding: 10px 20px;
  background-color: #9f9fff;
  color: #0e0f1d;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
}

a.button img {
  height: 1em;
  vertical-align: middle;
}

#backToTop {
  position: fixed;
  bottom: 20px;
  right: 20px;
  text-decoration: none;
  z-index: 999;
}

.starfield {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.starfield canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 64px;
  height: 64px;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  background-color: transparent;
  pointer-events: none;
}

.starfield:hover canvas {
  opacity: 1;
}

.starfield img {
  z-index: 1;
  position: relative;
  pointer-events: none;
  transition: transform 0.2s ease-in-out;
}

.starfield:hover img {
  animation: rocketShake 0.2s infinite;
}

@keyframes rocketShake {
  0%   { transform: translate(0px, 0px) rotate(0deg); }
  10%  { transform: translate(-1px, 1px) rotate(-0.5deg); }
  20%  { transform: translate(-2px, 0px) rotate(0.5deg); }
  30%  { transform: translate(2px, 1px) rotate(0deg); }
  40%  { transform: translate(1px, -1px) rotate(-0.5deg); }
  50%  { transform: translate(-1px, 1px) rotate(0.5deg); }
  60%  { transform: translate(1px, -2px) rotate(0deg); }
  70%  { transform: translate(-2px, 1px) rotate(0.5deg); }
  80%  { transform: translate(2px, -1px) rotate(-0.5deg); }
  90%  { transform: translate(-1px, 2px) rotate(0deg); }
  100% { transform: translate(0px, 0px) rotate(0deg); }
}

img.playnow-hover {
  transition: transform 0.1s ease, filter 0.3s ease;
  filter: drop-shadow(0 0 4px rgba(0, 200, 255, 0.4));
}

img.playnow-hover:hover {
  animation: rocketShake 0.15s infinite;
  filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.9));
}

.hero-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 10px;
}

.hero-logo .title-text {
  font-size: 2em;
  font-weight: bold;
  color: white;
}

#meteorLayer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -5;
  pointer-events: none;
  overflow: hidden;
}

#bgStars {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -10;
  pointer-events: none;
}

.flying-meteor {
  position: fixed;
  top: 0;
  left: 0;
  width: 64px;
  height: 64px;
  z-index: 1000;
  pointer-events: none;
  will-change: transform, left, top;
  transition: left linear, transform linear;
}

@keyframes spinBlackhole {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}

.blackhole {
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.placeholder {
  position: relative;
  width: 175px;
  height: 175px;
  background-color: #1e1f2e;
  border: 1px solid #9f9fff;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  font-family: 'Lato', sans-serif;  /* 👈 apply Lato */
  color: #ffffff;                   /* 👈 default text color */
}

.placeholder-ships {
  position: relative;
  width: 110px;
  height: 110px;
  background-color: #1e1f2e;
  border: 1px solid #9f9fff;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  font-family: 'Lato', sans-serif;  /* 👈 apply Lato */
  color: #ffffff;                   /* 👈 default text color */
}

.placeholder-label {
  position: absolute;
  top: 6px;
  left: 8px;
  font-size: 14px;
  color: #9f9fff;
  font-weight: bold;
  opacity: 0.9;
  color: #ffffff;                   /* 👈 default text color */
}

.placeholder-score {
  position: absolute;
  bottom: 6px;
  right: 8px;
  font-size: 12px;
  color: #cfcfff;
  font-style: italic;
  opacity: 0.8;
  color: #ffffff;   /* 👈 override individual label colors if needed */
}


