/* Template 83 - Pixel Art / Retro 8-bit */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=VT323&family=Silkscreen:wght@400;700&display=swap');

:root {
  --pixel-bg: #1a1c2c;
  --pixel-dark: #0d0e14;
  --pixel-light: #f4f4f4;
  --pixel-green: #38b764;
  --pixel-lime: #a7f070;
  --pixel-blue: #41a6f6;
  --pixel-cyan: #73eff7;
  --pixel-red: #e43b44;
  --pixel-orange: #f77622;
  --pixel-yellow: #fee761;
  --pixel-purple: #5d275d;
  --pixel-pink: #b55088;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'VT323', monospace;
  line-height: 1.6;
  color: var(--pixel-light);
  background: var(--pixel-bg);
  font-weight: 400;
  font-size: 1.2rem;
  position: relative;
}

/* Scanline effect */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.15),
    rgba(0, 0, 0, 0.15) 1px,
    transparent 1px,
    transparent 2px
  );
  pointer-events: none;
  z-index: 9999;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header - Game UI Style */
.site-header {
  background: var(--pixel-dark);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 4px solid var(--pixel-green);
}

.site-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: repeating-linear-gradient(
    90deg,
    var(--pixel-red) 0px,
    var(--pixel-red) 20px,
    var(--pixel-orange) 20px,
    var(--pixel-orange) 40px,
    var(--pixel-yellow) 40px,
    var(--pixel-yellow) 60px,
    var(--pixel-green) 60px,
    var(--pixel-green) 80px,
    var(--pixel-blue) 80px,
    var(--pixel-blue) 100px,
    var(--pixel-purple) 100px,
    var(--pixel-purple) 120px
  );
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.site-logo a {
  font-family: 'Press Start 2P', cursive;
  font-size: 1rem;
  color: var(--pixel-lime);
  text-decoration: none;
  text-shadow: 
    2px 2px 0 var(--pixel-green),
    4px 4px 0 var(--pixel-dark);
  animation: pixelBounce 1s ease-in-out infinite;
}

@keyframes pixelBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.site-nav a {
  font-family: 'Silkscreen', cursive;
  color: var(--pixel-light);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  background: var(--pixel-purple);
  border: 2px solid var(--pixel-pink);
  transition: all 0.1s steps(2);
}

.site-nav a:hover {
  background: var(--pixel-pink);
  color: var(--pixel-light);
  transform: translate(-2px, -2px);
  box-shadow: 2px 2px 0 var(--pixel-purple);
}

/* Hero Section */
.section.head {
  padding: 6rem 0;
  text-align: center;
  position: relative;
}

.section.head::before {
  content: '> START GAME <';
  display: block;
  font-family: 'Press Start 2P', cursive;
  font-size: 0.7rem;
  color: var(--pixel-yellow);
  margin-bottom: 2rem;
  animation: blink 1s steps(1) infinite;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.section.head h1 {
  font-family: 'Press Start 2P', cursive;
  font-size: 2rem;
  color: var(--pixel-cyan);
  margin-bottom: 2rem;
  text-shadow: 
    4px 4px 0 var(--pixel-blue),
    8px 8px 0 var(--pixel-dark);
  line-height: 1.5;
}

.section.head p {
  font-family: 'VT323', monospace;
  font-size: 1.5rem;
  color: var(--pixel-light);
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  background: var(--pixel-dark);
  border: 4px solid var(--pixel-green);
  position: relative;
}

.section.head p::before {
  content: '[PLAYER 1]';
  position: absolute;
  top: -1rem;
  left: 1rem;
  font-family: 'Press Start 2P', cursive;
  font-size: 0.6rem;
  background: var(--pixel-dark);
  padding: 0.25rem 0.5rem;
  color: var(--pixel-lime);
}

/* Section Styling */
.section {
  padding: 5rem 0;
}

.section header {
  text-align: center;
  margin-bottom: 3rem;
}

.section header h2 {
  font-family: 'Press Start 2P', cursive;
  font-size: 1.2rem;
  color: var(--pixel-yellow);
  margin-bottom: 1rem;
  text-shadow: 2px 2px 0 var(--pixel-orange);
}

.section header p {
  font-family: 'VT323', monospace;
  font-size: 1.3rem;
  color: var(--pixel-light);
}

/* Footer */
.footer {
  background: var(--pixel-dark);
  padding: 3rem 0 2rem;
  margin-top: 5rem;
  border-top: 4px solid var(--pixel-blue);
}

.footer::before {
  content: '--- GAME OVER ---';
  display: block;
  text-align: center;
  font-family: 'Press Start 2P', cursive;
  font-size: 0.8rem;
  color: var(--pixel-red);
  margin-bottom: 2rem;
  animation: blink 1s steps(1) infinite;
}

.footer-columns {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.footer-about {
  flex: 1;
  max-width: 400px;
}

.footer-tagline {
  color: var(--pixel-light);
  font-size: 1.2rem;
}

.footer-links ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-links a {
  font-family: 'Silkscreen', cursive;
  color: var(--pixel-cyan);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  border: 2px solid var(--pixel-cyan);
  transition: all 0.1s steps(2);
}

.footer-links a:hover {
  background: var(--pixel-cyan);
  color: var(--pixel-dark);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 2px dashed var(--pixel-purple);
}

.footer-bottom::before {
  content: 'INSERT COIN TO CONTINUE';
  display: block;
  font-family: 'Press Start 2P', cursive;
  font-size: 0.6rem;
  color: var(--pixel-yellow);
  margin-bottom: 1rem;
}

.copyright a {
  font-family: 'VT323', monospace;
  color: var(--pixel-light);
  opacity: 0.7;
  font-size: 1rem;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  opacity: 0;
  animation: fadeIn 0.3s steps(5) forwards;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

body:not(.faq) h3,
:not(section.faq) h3 {
  font-family: 'Press Start 2P', cursive;
  font-size: 0.9rem;
  color: var(--pixel-lime);
  margin-top: 15px;
  margin-bottom: 10px;
  text-align: left;
}
