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

:root {
  --navy: #07100A;
  --amber: #C9A84C;
  --teal: #4ECDC4;
  --green: #2A6B3A;
  --green-bright: #4CAF6A;
  --cream: #E8E0D0;
  --dim: #7A8B7E;
  --card-bg: #0A160C;
  --border: #1A2E1E;
}

html { scroll-behavior: smooth; }

body {
  background: var(--navy);
  color: var(--cream);
  font-family: 'VT323', monospace;
  font-size: 20px;
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  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;
}

nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: rgba(10,10,26,0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(4px);
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo-img {
  height: 36px;
  width: auto;
  filter: drop-shadow(0 0 8px rgba(78,175,90,0.4));
  transition: filter 0.2s;
}

.nav-logo:hover .nav-logo-img {
  filter: drop-shadow(0 0 14px rgba(201,168,76,0.6));
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.5rem;
  color: var(--cream);
  text-decoration: none;
  letter-spacing: 0.1em;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--amber); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--amber);
  transition: all 0.3s;
}

section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem 2rem 4rem;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

.pixel-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.pixel-divider::before, .pixel-divider::after {
  content: '';
  flex: 1;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--amber) 0px, var(--amber) 8px, transparent 8px, transparent 12px);
}

.pixel-divider span {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.5rem;
  color: var(--amber);
  white-space: nowrap;
  letter-spacing: 0.15em;
}

#home {
  position: relative;
  align-items: center;
  text-align: center;
}

.hero-logo-wrap {
  margin-bottom: 2.5rem;
}

.hero-logo-img {
  width: min(600px, 90vw);
  height: auto;
  filter: drop-shadow(0 0 40px rgba(78,175,90,0.3)) drop-shadow(0 0 80px rgba(201,168,76,0.15));
  animation: heroPulse 4s ease-in-out infinite;
}

@keyframes heroPulse {
  0%, 100% { filter: drop-shadow(0 0 40px rgba(78,175,90,0.3)) drop-shadow(0 0 80px rgba(201,168,76,0.15)); }
  50% { filter: drop-shadow(0 0 55px rgba(78,175,90,0.5)) drop-shadow(0 0 100px rgba(201,168,76,0.25)); }
}

.hero-eyebrow {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.5rem;
  color: var(--teal);
  letter-spacing: 0.2em;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(1.5rem, 5vw, 3rem);
  color: var(--amber);
  line-height: 1.4;
  text-shadow: 0 0 30px rgba(201,168,76,0.35);
  margin-bottom: 1rem;
}

.hero-title span {
  display: block;
  font-size: clamp(0.8rem, 2.5vw, 1.2rem);
  color: var(--cream);
  margin-top: 0.75rem;
  text-shadow: none;
}

.blink {
  animation: blink 1s step-end infinite;
  color: var(--amber);
}

@keyframes blink {
  50% { opacity: 0; }
}

.cta-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.55rem;
  padding: 0.9rem 1.6rem;
  border: 2px solid var(--amber);
  color: var(--navy);
  background: var(--amber);
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 0.1em;
  transition: all 0.15s;
  display: inline-block;
  image-rendering: pixelated;
}

.btn:hover {
  background: transparent;
  color: var(--amber);
  box-shadow: 0 0 16px rgba(201,168,76,0.4);
}

.btn-outline {
  background: transparent;
  color: var(--green-bright);
  border-color: var(--green-bright);
}

.btn-outline:hover {
  background: var(--green-bright);
  color: var(--navy);
  box-shadow: 0 0 16px rgba(76,175,106,0.4);
}

.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Press Start 2P', monospace;
  font-size: 0.4rem;
  color: var(--dim);
  letter-spacing: 0.2em;
  animation: floatUp 2s ease-in-out infinite;
}

@keyframes floatUp {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-6px); }
}

#games { background: var(--navy); }

.section-label {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.55rem;
  color: var(--green-bright);
  letter-spacing: 0.2em;
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(1rem, 3vw, 1.6rem);
  color: var(--amber);
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.game-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  padding: 0;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
  cursor: default;
}

.game-card:hover {
  border-color: var(--green-bright);
  transform: translateY(-4px);
}

.game-screen {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  padding: 0.75rem;
}

.game-screen::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0,0,0,0.15) 3px,
    rgba(0,0,0,0.15) 4px
  );
}

.gs-1 { background: #0D1B2A; }
.gs-2 { background: #1A0D2A; }
.gs-3 { background: #0D2A1A; }

.gs-cosmic {
  background: radial-gradient(ellipse at center, #0D1B3A 0%, #060D1A 100%);
}

.gs-dev {
  background: radial-gradient(ellipse at center, #0D2A10 0%, #060D07 100%);
}

.game-logo-img {
  width: 90%;
  height: 90%;
  object-fit: contain;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 12px rgba(255,160,50,0.4));
  transition: filter 0.3s;
}

.game-card:hover .game-logo-img {
  filter: drop-shadow(0 0 20px rgba(255,160,50,0.7));
}

.game-card-body { padding: 1.25rem; }

.game-status {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.4rem;
  padding: 0.3rem 0.6rem;
  margin-bottom: 0.75rem;
  display: inline-block;
  letter-spacing: 0.1em;
}

.status-wip { background: #1A1200; color: var(--amber); border: 1px solid var(--amber); }
.status-done { background: #071A0A; color: var(--green-bright); border: 1px solid var(--green-bright); }
.status-soon { background: #1A001A; color: #C084FC; border: 1px solid #C084FC; }

.game-name {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.6rem;
  color: var(--cream);
  margin-bottom: 0.5rem;
  line-height: 1.8;
}

.game-desc {
  font-size: 1.5rem;
  color: var(--dim);
  line-height: 1.5;
}

#about { background: #050D07; }

.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text p {
  color: var(--cream);
  margin-bottom: 1rem;
  font-size: 1.5rem;
  line-height: 1.7;
}

.about-text p strong {
  color: var(--amber);
  font-style: normal;
}

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.stat-box {
  background: var(--card-bg);
  border: 1px solid var(--border);
  padding: 1.25rem 1rem;
  text-align: center;
}

.stat-num {
  font-family: 'Press Start 2P', monospace;
  font-size: 1.2rem;
  color: var(--amber);
  display: block;
  text-shadow: 0 0 16px rgba(255,184,0,0.4);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1.5rem;
  color: var(--dim);
  letter-spacing: 0.05em;
}

#contact { background: var(--navy); }

.contact-layout {
  max-width: 520px;
}

.contact-intro p {
  color: var(--dim);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

footer {
  background: #050D07;
  border-top: 1px solid var(--border);
  padding: 2rem;
  text-align: center;
}

.footer-logo-img {
  height: 50px;
  width: auto;
  opacity: 0.75;
  margin-bottom: 0.75rem;
  display: block;
  margin-left: auto;
  margin-right: auto;
  filter: drop-shadow(0 0 8px rgba(201,168,76,0.3));
}

footer p {
  font-size: 1.5rem;
  color: var(--dim);
}

footer p span { color: var(--teal); }

@media (max-width: 700px) {
  nav { padding: 1rem 1.25rem; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(10,10,26,0.98);
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open { display: flex; }

  .nav-links a {
    display: block;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.45rem;
  }

  .hamburger { display: flex; }

  section { padding: 5rem 1.25rem 3rem; }

  .hero-title { font-size: 1.2rem; }

  .about-layout,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

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

  .cta-group { flex-direction: column; align-items: center; }

  .btn { width: 100%; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .blink { animation: none; }
  .scroll-hint { animation: none; }
  * { transition: none !important; }
}
