/* ============================================
   Hudson's Arcade — Retro Theme
   ============================================ */

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

body {
  background: #0a0a0a;
  color: #fff;
  font-family: 'Press Start 2P', monospace;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

/* ---- Header ---- */
header {
  text-align: center;
  padding: 48px 16px 24px;
}

.title {
  font-size: 28px;
  line-height: 1.5;
  color: #39ff14;
  text-shadow:
    0 0 10px #39ff14,
    0 0 30px #39ff14,
    0 0 60px rgba(57, 255, 20, 0.3);
  letter-spacing: 4px;
  animation: flicker 4s infinite alternate;
}

@keyframes flicker {
  0%, 95%, 100% { opacity: 1; }
  96% { opacity: 0.8; }
  97% { opacity: 1; }
  98% { opacity: 0.7; }
  99% { opacity: 1; }
}

/* ---- Game Grid ---- */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  padding: 24px;
  max-width: 700px;
  width: 100%;
  flex: 1;
}

/* ---- Game Card ---- */
.game-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 32px 16px;
  min-height: 220px;
  background: #111;
  border: 3px solid #333;
  border-radius: 4px;
  text-decoration: none;
  color: #fff;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.1s;
  image-rendering: pixelated;
}

.game-card:active {
  transform: scale(0.96);
}

.game-card:hover,
.game-card:focus {
  border-color: #00fff5;
  box-shadow:
    0 0 12px rgba(0, 255, 245, 0.4),
    0 0 30px rgba(0, 255, 245, 0.15),
    inset 0 0 20px rgba(0, 255, 245, 0.05);
}

.game-icon {
  font-size: 64px;
  line-height: 1;
}

.game-name {
  font-size: 16px;
  letter-spacing: 2px;
  color: #00fff5;
  text-shadow: 0 0 8px rgba(0, 255, 245, 0.5);
}

.game-tag {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 1px;
}

/* ---- Coming Soon ---- */
.coming-soon {
  border-color: #222;
  opacity: 0.4;
  cursor: default;
  pointer-events: none;
}

.coming-soon .game-icon {
  color: #555;
}

.coming-soon .game-name {
  color: #555;
  text-shadow: none;
}

/* ---- Footer ---- */
footer {
  padding: 24px;
  text-align: center;
}

.footer-text {
  font-size: 8px;
  color: rgba(255, 255, 255, 0.2);
  letter-spacing: 2px;
}

/* ---- Scanline overlay (subtle CRT effect) ---- */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.08) 2px,
    rgba(0, 0, 0, 0.08) 4px
  );
  pointer-events: none;
  z-index: 9999;
}
