* {
  box-sizing: border-box;
}

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

a.link {
  color: #92cc41 !important;
}

body {
  background: linear-gradient(
    to bottom,
    #0d2b0a 0%,
    #061a04 5%,
    #000 15%,
    #000 85%,
    #061a04 95%,
    #0d2b0a 100%
  ) !important;
  background-attachment: fixed !important;
  background-size: 100% 100vh !important;
  color: #ffffff;
  font-family: "Press Start 2P", monospace;
  font-size: 12px;
  line-height: 2;
}

/* Scanlines overlay */
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent 0px,
    transparent 2px,
    rgba(0, 0, 0, 0.15) 2px,
    rgba(0, 0, 0, 0.15) 4px
  );
  pointer-events: none;
  z-index: 100;
}

.container {
  max-width: 700px;
  margin: 0 auto;
  padding: 20px;
  padding-bottom: 60px;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-content: center;
}

/* Header */
.header {
  text-align: center;
  padding: 40px 0;
}

.header img {
  width: 200px;
  height: 200px;
  image-rendering: pixelated;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 50px;
  flex-direction: column;
}

.title {
  font-size: 35px;
  color: white;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.tagline {
  color: #888;
  font-size: 10px;
  margin-bottom: 0;
}

.header .nes-btn {
  font-family: "Press Start 2P", monospace;
  font-size: 10px;
}

/* Sections */
.nes-container {
  margin-bottom: 24px;
  background: rgba(20, 20, 30, 1);
}

.nes-container.with-title > .title {
  background-color: #0a0a0f;
}

.nes-container p {
  margin: 12px 0;
  font-size: 10px;
}

.nes-list {
  padding-left: 24px;
}

.nes-list li {
  font-size: 10px;
  margin-bottom: 8px;
}

/* Blinking text */
.blink {
  color: #e94560;
  animation: blink 1s step-start infinite;
  text-align: center;
  margin-top: 20px !important;
}

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

/* Screenshot Section */
.screenshot-section {
  text-align: center;
}

.screenshot-placeholder {
  padding: 40px;
  border: 4px dashed #333;
  margin-top: 16px;
}

.screenshot-placeholder p {
  color: #666;
  margin-top: 20px;
}

/* Download Buttons */
.download-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 16px 0;
}

.download-buttons .nes-btn {
  font-family: "Press Start 2P", monospace;
  font-size: 10px;
}

/* Visitor Counter */
.visitor-counter {
  text-align: center;
  padding: 20px;
  font-size: 10px;
  color: #33ff33;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

/* Footer */
.footer {
  text-align: center;
}

.footer p {
  margin: 8px 0 0;
  font-size: 8px;
}

.footer .copyright {
  font-size: 8px;
  color: #444;
  transition: color 0.2s ease;
}

.footer .copyright:hover {
  color: #888;
}

.footer-links {
  margin: 16px 0;
}

.footer-links a {
  color: #92cc41 !important;
  text-decoration: none;
  font-size: 8px;
}

.footer-links a:hover {
  text-decoration: underline;
}

.best-viewed {
  color: #444;
  font-size: 6px !important;
  margin-top: 24px !important;
}

/* Construction Banner */
.construction-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #e94560;
  color: #fff;
  padding: 8px 0;
  font-size: 10px;
}

.construction-banner marquee {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* NES Icon Overrides */
.nes-icon.heart {
  transform: scale(0.7);
}

/* Responsive */
@media (max-width: 500px) {
  .title {
    font-size: 16px;
  }

  .nes-container p,
  .nes-list li {
    font-size: 8px;
  }

  .download-buttons .nes-btn {
    font-size: 8px;
    padding: 8px 16px;
  }
}
