@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Share+Tech+Mono&display=swap');

/* === Reset & Base === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-dark: #1a1a2e;
  --bg-card: #16213e;
  --bg-card-hover: #1a2744;
  --neon-green: #39ff14;
  --neon-cyan: #00fff5;
  --text-white: #e0e0e0;
  --text-muted: #8892b0;
  --border-color: #2a2a4a;
  --pixel-font: 'Press Start 2P', monospace;
  --body-font: 'Share Tech Mono', 'Consolas', monospace;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  background-color: var(--bg-dark);
  color: var(--text-white);
  line-height: 1.7;
  font-size: 15px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--neon-cyan);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--neon-green);
}

img {
  max-width: 100%;
  height: auto;
}

/* === Scanline Overlay === */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.03) 0px,
    rgba(0, 0, 0, 0.03) 1px,
    transparent 1px,
    transparent 3px
  );
  z-index: 9999;
}

/* === Header === */
.site-header {
  background: linear-gradient(180deg, #0f0f23 0%, var(--bg-dark) 100%);
  border-bottom: 3px solid var(--neon-green);
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  font-family: var(--pixel-font);
  font-size: 14px;
  color: var(--neon-green);
  text-shadow: 0 0 10px rgba(57, 255, 20, 0.5);
  letter-spacing: 1px;
}

.site-logo a {
  color: var(--neon-green);
}

.site-logo a:hover {
  color: var(--neon-cyan);
}

/* === Hero Section === */
.hero {
  text-align: center;
  padding: 4rem 2rem;
  background: radial-gradient(ellipse at center, #1a2744 0%, var(--bg-dark) 70%);
}

.hero h1 {
  font-family: var(--pixel-font);
  font-size: 26px;
  color: var(--neon-green);
  text-shadow: 0 0 20px rgba(57, 255, 20, 0.4), 0 0 40px rgba(57, 255, 20, 0.2);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.hero .tagline {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.8;
}

/* === Game Grid === */
.games-section {
  padding: 3rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.games-section h2 {
  text-align: center;
  font-family: var(--pixel-font);
  font-size: 14px;
  color: var(--neon-cyan);
  margin-bottom: 2.5rem;
  text-shadow: 0 0 10px rgba(0, 255, 245, 0.3);
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

/* === Game Card === */
.game-card {
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  padding: 1.5rem;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.2s;
  display: flex;
  flex-direction: column;
}

.game-card:hover {
  border-color: var(--neon-green);
  box-shadow: 0 0 15px rgba(57, 255, 20, 0.2), inset 0 0 15px rgba(57, 255, 20, 0.05);
  transform: translateY(-2px);
}

.game-card .card-rank {
  font-family: var(--pixel-font);
  font-size: 10px;
  color: var(--neon-green);
  margin-bottom: 0.5rem;
  opacity: 0.7;
}

.game-card h3 {
  font-family: var(--pixel-font);
  font-size: 13px;
  color: var(--text-white);
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.game-card:hover h3 {
  color: var(--neon-green);
}

.game-card .genre-tag {
  display: inline-block;
  font-size: 12px;
  background: rgba(0, 255, 245, 0.1);
  color: var(--neon-cyan);
  border: 1px solid rgba(0, 255, 245, 0.3);
  padding: 0.3rem 0.6rem;
  margin-bottom: 1rem;
  align-self: flex-start;
}

.game-card .card-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 1.25rem;
}

.game-card .card-link {
  font-family: var(--pixel-font);
  font-size: 10px;
  color: var(--neon-green);
  border: 1px solid var(--neon-green);
  padding: 0.5rem 1rem;
  text-align: center;
  transition: background 0.2s, color 0.2s;
}

.game-card .card-link:hover {
  background: var(--neon-green);
  color: var(--bg-dark);
}

/* === Game Detail Page === */
.game-detail {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.breadcrumb {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--neon-cyan);
}

.breadcrumb .separator {
  margin: 0 0.5rem;
  color: var(--border-color);
}

.game-detail h1 {
  font-family: var(--pixel-font);
  font-size: 22px;
  color: var(--neon-green);
  text-shadow: 0 0 15px rgba(57, 255, 20, 0.3);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.game-detail .genre-tag {
  display: inline-block;
  font-size: 13px;
  background: rgba(0, 255, 245, 0.1);
  color: var(--neon-cyan);
  border: 1px solid rgba(0, 255, 245, 0.3);
  padding: 0.3rem 0.8rem;
  margin-bottom: 2rem;
}

.game-content {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2.5rem;
  align-items: start;
}

.game-description p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.game-description h2 {
  font-family: var(--pixel-font);
  font-size: 13px;
  color: var(--neon-cyan);
  margin-bottom: 1rem;
  margin-top: 2rem;
}

/* Stats Sidebar */
.game-stats {
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  padding: 1.5rem;
}

.game-stats h3 {
  font-family: var(--pixel-font);
  font-size: 11px;
  color: var(--neon-green);
  margin-bottom: 1.25rem;
  text-align: center;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 13px;
}

.stat-row:last-child {
  border-bottom: none;
}

.stat-label {
  color: var(--text-muted);
}

.stat-value {
  color: var(--neon-cyan);
  text-align: right;
}

/* Play Now Button */
.play-btn {
  display: block;
  text-align: center;
  font-family: var(--pixel-font);
  font-size: 11px;
  background: var(--neon-green);
  color: var(--bg-dark);
  border: none;
  padding: 1rem 2rem;
  margin-top: 2rem;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  text-decoration: none;
}

.play-btn:hover {
  background: #4dff33;
  box-shadow: 0 0 20px rgba(57, 255, 20, 0.4);
  color: var(--bg-dark);
}

/* Links Section */
.game-links {
  margin-top: 2.5rem;
}

.game-links h2 {
  font-family: var(--pixel-font);
  font-size: 13px;
  color: var(--neon-cyan);
  margin-bottom: 1rem;
}

.game-links ul {
  list-style: none;
  padding: 0;
}

.game-links li {
  padding: 0.4rem 0;
  font-size: 14px;
}

.game-links li::before {
  content: '> ';
  color: var(--neon-green);
}

/* Prev/Next Navigation */
.game-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid var(--border-color);
  font-size: 13px;
}

.game-nav a {
  color: var(--text-muted);
  transition: color 0.2s;
}

.game-nav a:hover {
  color: var(--neon-cyan);
}

.game-nav .prev::before {
  content: '< ';
}

.game-nav .next::after {
  content: ' >';
}

/* === Intro Section === */
.intro-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 2rem 0;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.8;
  text-align: center;
}

/* === FAQ Section === */
.faq-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.faq-section h2 {
  font-family: var(--pixel-font);
  font-size: 14px;
  color: var(--neon-cyan);
  text-align: center;
  margin-bottom: 2rem;
  text-shadow: 0 0 10px rgba(0, 255, 245, 0.3);
}

.faq-item {
  border: 1px solid var(--border-color);
  margin-bottom: 0.75rem;
  background: var(--bg-card);
}

.faq-item summary {
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-white);
  transition: color 0.2s;
  list-style: none;
}

.faq-item summary::before {
  content: '+ ';
  color: var(--neon-green);
  font-family: var(--pixel-font);
  font-size: 10px;
  margin-right: 0.5rem;
}

.faq-item[open] summary::before {
  content: '- ';
}

.faq-item summary:hover {
  color: var(--neon-cyan);
}

.faq-item p {
  padding: 0 1.25rem 1.25rem;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.8;
}

/* === Related Games === */
.related-games {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.related-games h2 {
  font-family: var(--pixel-font);
  font-size: 12px;
  color: var(--neon-cyan);
  margin-bottom: 1rem;
}

.related-list {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.related-list a {
  font-size: 13px;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  padding: 0.5rem 1rem;
  transition: border-color 0.2s, color 0.2s;
}

.related-list a:hover {
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
}

/* === Footer === */
.site-footer {
  margin-top: auto;
  border-top: 3px solid var(--border-color);
  padding: 2rem;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  background: #0f0f23;
}

.site-footer p {
  margin-bottom: 0.5rem;
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
  margin-bottom: 1.5rem;
}

.footer-links a {
  font-size: 12px;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--neon-cyan);
}

/* === Responsive === */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 18px;
  }

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

  .game-content {
    grid-template-columns: 1fr;
  }

  .game-detail h1 {
    font-size: 16px;
  }

  .site-logo {
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 2.5rem 1rem;
  }

  .hero h1 {
    font-size: 14px;
  }

  .games-section {
    padding: 2rem 1rem;
  }

  .game-detail {
    padding: 2rem 1rem;
  }
}
