/* ================================================
   PCBGames.com — Retro Web Revival Stylesheet
   Est. 2025 — Best viewed in 800x600
   ================================================ */

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

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

:root {
  --neon-cyan: #00ffff;
  --neon-magenta: #ff00ff;
  --neon-lime: #00ff66;
  --neon-gold: #ffd700;
  --neon-orange: #ff7700;
  --neon-red: #ff2222;
  --bg-dark: #02020f;
  --bg-card: #0a0a1f;
  --border-glow: #2456a3;
  --text-dim: #9aa8b8;
}

html, body {
  background-color: var(--bg-dark);
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.12) 1px, transparent 0),
    linear-gradient(45deg, rgba(0, 255, 255, 0.05) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255, 0, 255, 0.05) 25%, transparent 25%);
  background-size: 14px 14px, 30px 30px, 30px 30px;
  color: var(--neon-cyan);
  font-family: 'Press Start 2P', 'Courier New', monospace;
  font-size: 12px;
  line-height: 1.8;
  min-height: 100vh;
  overflow-x: hidden;
}

#starfield {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

#page-wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 8px 14px 40px;
  border-left: 3px ridge #5a7ebf;
  border-right: 3px ridge #5a7ebf;
  background: rgba(0, 0, 10, 0.6);
  position: relative;
  z-index: 1;
}

.rainbow-hr {
  border: none;
  height: 5px;
  margin: 18px 0;
  background: linear-gradient(
    to right,
    #ff0000,
    #ff7700,
    #ffff00,
    #00ff00,
    #00ffff,
    #0000ff,
    #ff00ff,
    #ff0000
  );
  background-size: 200% 100%;
  animation: rainbow-slide 4s linear infinite;
}

@keyframes rainbow-slide {
  0% { background-position: 0 0; }
  100% { background-position: 200% 0; }
}

#site-header {
  text-align: center;
  padding: 22px 10px 10px;
  border: 3px outset #2f56a0;
  background: linear-gradient(180deg, #0f1a44 0%, #04091b 100%);
}

#logo-title {
  display: block;
  font-size: clamp(18px, 4vw, 34px);
  color: var(--neon-gold);
  letter-spacing: 4px;
  text-shadow: 0 0 8px var(--neon-gold), 0 0 22px var(--neon-orange);
  margin-bottom: 8px;
  animation: logo-flicker 2.8s steps(2, end) infinite;
}

@keyframes logo-flicker {
  0%, 18%, 22%, 100% { opacity: 1; }
  19%, 21% { opacity: 0.72; }
}

#tagline {
  display: block;
  font-size: 8px;
  color: var(--neon-magenta);
  letter-spacing: 2px;
  text-shadow: 0 0 7px var(--neon-magenta);
  margin-bottom: 10px;
}

#est-badge {
  display: inline-block;
  font-size: 8px;
  color: #001500;
  background: var(--neon-lime);
  border: 2px outset #9fffcb;
  padding: 2px 8px;
  margin-bottom: 12px;
}

.under-construction {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 8px;
  color: var(--neon-orange);
  border: 2px dashed var(--neon-orange);
  background: rgba(255, 119, 0, 0.08);
  padding: 4px 10px;
  text-shadow: 0 0 6px var(--neon-orange);
}

.uc-icon {
  width: 12px;
  height: 12px;
  border: 2px solid currentColor;
  position: relative;
  display: inline-block;
  animation: uc-spin 1.4s linear infinite;
}

.uc-icon::before {
  content: '';
  position: absolute;
  inset: -4px;
  border: 2px dotted currentColor;
}

@keyframes uc-spin {
  to { transform: rotate(360deg); }
}

.marquee-bar {
  background: #000;
  border-top: 2px groove var(--neon-cyan);
  border-bottom: 2px groove var(--neon-cyan);
  padding: 4px 0;
  font-size: 8px;
  color: var(--neon-cyan);
  text-shadow: 0 0 6px var(--neon-cyan);
  white-space: nowrap;
}

.marquee-bar marquee {
  color: var(--neon-cyan);
}

.section-heading {
  text-align: center;
  font-size: clamp(10px, 2vw, 14px);
  color: var(--neon-gold);
  text-shadow: 0 0 10px var(--neon-gold);
  letter-spacing: 2px;
  margin: 24px 0 6px;
}

.section-sub {
  text-align: center;
  color: var(--text-dim);
  font-size: 8px;
  margin-bottom: 20px;
}

#game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

.game-card {
  background: var(--bg-card);
  border: 3px outset #3859a8;
  padding: 14px;
  position: relative;
}

.game-card:hover {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 14px rgba(0, 255, 255, 0.45);
}

.game-card.adult-card {
  border-color: #6b2020;
}

.game-card.adult-card:hover {
  border-color: var(--neon-red);
  box-shadow: 0 0 14px rgba(255, 34, 34, 0.45);
}

.card-icon {
  display: block;
  width: 58px;
  height: 58px;
  margin: 0 auto 10px;
  border: 2px solid #4f75c5;
  background: #02061a;
  position: relative;
}

.card-icon::before,
.card-icon::after {
  content: '';
  position: absolute;
  pointer-events: none;
}

.icon-neoq {
  position: relative;
  display: block;
}

.icon-neostack::before {
  width: 10px;
  height: 10px;
  background: #4dd9ff;
  top: 24px;
  left: 8px;
  box-shadow:
    10px 0 #4dd9ff,
    20px 0 #4dd9ff,
    20px -10px #4dd9ff,
    30px -10px #4dd9ff;
}

.icon-neocollection::before {
  width: 34px;
  height: 44px;
  border: 2px solid #ff77ff;
  top: 6px;
  left: 12px;
  border-radius: 2px;
  background:
    linear-gradient(#ff77ff, #ff77ff) 5px 6px / 6px 2px no-repeat,
    linear-gradient(#ff77ff, #ff77ff) 5px 10px / 2px 6px no-repeat;
}

.icon-neocollection::after {
  width: 16px;
  height: 16px;
  top: 22px;
  left: 20px;
  background:
    radial-gradient(circle at 33% 34%, #ff77ff 0 24%, transparent 25%),
    radial-gradient(circle at 67% 34%, #ff77ff 0 24%, transparent 25%),
    linear-gradient(135deg, transparent 48%, #ff77ff 49%) 0 8px / 8px 8px no-repeat,
    linear-gradient(225deg, transparent 48%, #ff77ff 49%) 8px 8px / 8px 8px no-repeat,
    linear-gradient(#ff77ff, #ff77ff) 7px 12px / 2px 4px no-repeat;
  background-repeat: no-repeat;
}

.icon-neodungeons::before {
  width: 4px;
  height: 30px;
  background: #d2d6de;
  left: 25px;
  top: 10px;
  transform: rotate(30deg);
}

.icon-neodungeons::after {
  width: 16px;
  height: 16px;
  border: 3px solid #ff6666;
  border-radius: 50%;
  left: 33px;
  top: 24px;
}

.icon-neotable::before {
  width: 40px;
  height: 24px;
  border: 2px solid #9be8ff;
  left: 8px;
  top: 14px;
}

.icon-neotable::after {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #9be8ff;
  left: 23px;
  top: 21px;
}

.icon-neoq::before {
  content: '18+';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ff4444;
  font-size: 14px;
  text-shadow: 0 0 8px #ff4444;
}

.icon-neoq::after {
  width: 42px;
  height: 42px;
  border: 2px solid #ff4444;
  left: 6px;
  top: 6px;
}

.icon-neospaaace::before {
  width: 10px;
  height: 18px;
  left: 6px;
  top: 6px;
  background: linear-gradient(to bottom, #f2f3f5 0 80%, #ff9900 80% 92%, #ff5500 92% 100%);
  clip-path: polygon(50% 0, 100% 28%, 100% 78%, 72% 78%, 72% 100%, 28% 100%, 28% 78%, 0 78%, 0 28%);
}

.icon-neospaaace::after {
  width: 42px;
  height: 42px;
  left: 14px;
  top: 12px;
  background:
    radial-gradient(circle at 86% 18%, #d5d8e8 0 7%, transparent 8%),
    radial-gradient(circle at 72% 66%, #58d6ff 0 27%, transparent 28%),
    radial-gradient(ellipse at 72% 66%, transparent 0 34%, #9ce8ff 35% 39%, transparent 40%);
  background-repeat: no-repeat;
}

.icon-neospaaace {
  overflow: hidden;
}

.card-title {
  display: block;
  text-align: center;
  color: var(--neon-gold);
  text-shadow: 0 0 8px var(--neon-gold);
  font-size: clamp(10px, 2vw, 13px);
  margin-bottom: 8px;
}

.adult-card .card-title {
  color: var(--neon-red);
  text-shadow: 0 0 8px var(--neon-red);
}

.card-genre {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
  margin-bottom: 10px;
}

.genre-tag,
.age-tag {
  font-size: 7px;
  padding: 2px 6px;
}

.genre-tag {
  border: 1px solid var(--neon-magenta);
  color: var(--neon-magenta);
}

.age-tag {
  border: 1px solid var(--neon-red);
  color: var(--neon-red);
  background: rgba(255, 0, 0, 0.1);
}

.card-desc {
  font-size: 8px;
  color: #aab7c8;
  line-height: 1.9;
  text-align: center;
  margin-bottom: 12px;
}

.play-btn {
  display: block;
  text-align: center;
  text-decoration: none;
  font-size: 9px;
  color: #001500;
  background: linear-gradient(180deg, #95ffbd 0%, #39d96a 100%);
  border: 2px outset #d8ffe7;
  padding: 8px 12px;
  letter-spacing: 1px;
  font-family: 'Press Start 2P', monospace;
  animation: btn-pulse 2.8s steps(2, end) infinite;
}

.play-btn:hover {
  animation: none;
  box-shadow: 0 0 14px rgba(0, 255, 102, 0.65);
}

.adult-card .play-btn {
  background: linear-gradient(180deg, #ff6e6e 0%, #cf1616 100%);
  border-color: #ffb8b8;
  color: #fff;
}

.adult-card .play-btn:hover {
  box-shadow: 0 0 14px rgba(255, 34, 34, 0.65);
}

@keyframes btn-pulse {
  0%, 88%, 100% { opacity: 1; }
  92% { opacity: 0.72; }
}

.game-card::before {
  content: 'NEW';
  position: absolute;
  top: -9px;
  right: 8px;
  background: #ffef64;
  color: #4a2a00;
  border: 2px outset #fff6ad;
  font-size: 6px;
  padding: 2px 4px;
}

#about-section {
  margin-top: 26px;
  padding: 16px;
  border: 3px inset #3859a8;
  background: rgba(8, 10, 30, 0.95);
  text-align: center;
}

#about-section p {
  font-size: 8px;
  color: var(--text-dim);
  line-height: 2;
  margin-bottom: 8px;
}

#about-section p:last-child {
  margin-bottom: 0;
}

#site-footer {
  text-align: center;
  padding: 22px 8px 8px;
  font-size: 8px;
  color: var(--text-dim);
  line-height: 2.5;
}

#footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 12px 0;
}

.footer-badge {
  font-size: 7px;
  padding: 3px 8px;
  border: 2px outset #4461a5;
  background: #101934;
  color: var(--text-dim);
}

.footer-badge.highlight {
  border-color: #9df7ff;
  color: var(--neon-cyan);
  text-shadow: 0 0 4px var(--neon-cyan);
}

#visitor-counter {
  color: var(--neon-lime);
  text-shadow: 0 0 6px var(--neon-lime);
}

.blink {
  animation: blink-anim 1s step-end infinite;
}

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

.age-gate-wrapper {
  max-width: 480px;
  margin: 60px auto;
  text-align: center;
  padding: 0 12px;
}

.age-gate-box {
  background: #100608;
  border: 3px outset #6b2020;
  padding: 26px 22px;
  box-shadow: 0 0 24px rgba(255, 0, 0, 0.2);
}

.age-gate-icon {
  display: block;
  width: 58px;
  height: 58px;
  position: relative;
  border: 2px solid #6b2020;
  background: #120507;
  margin: 0 auto 14px;
}

.age-gate-title {
  font-size: clamp(12px, 3vw, 16px);
  color: var(--neon-red);
  text-shadow: 0 0 10px var(--neon-red);
  display: block;
  margin-bottom: 18px;
  letter-spacing: 2px;
}

.age-gate-text {
  font-size: 8px;
  color: #b3bfa7;
  line-height: 2;
  margin-bottom: 20px;
}

.age-gate-form label {
  display: block;
  font-size: 8px;
  color: var(--neon-gold);
  margin-bottom: 6px;
  text-align: left;
}

.age-gate-form input[type="number"] {
  width: 100%;
  background: #000;
  border: 2px inset #602020;
  color: var(--neon-cyan);
  font-family: 'Press Start 2P', monospace;
  font-size: 11px;
  padding: 8px;
  margin-bottom: 14px;
  outline: none;
}

.age-gate-form input[type="number"]:focus {
  border-color: #ff4444;
  box-shadow: 0 0 8px rgba(255, 68, 68, 0.7);
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 18px;
  text-align: left;
}

.checkbox-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: var(--neon-red);
  margin-top: 2px;
  cursor: pointer;
}

.checkbox-row label {
  font-size: 8px;
  color: #aab7c8;
  line-height: 1.8;
  cursor: pointer;
  margin-bottom: 0;
}

.age-gate-btn {
  width: 100%;
  background: linear-gradient(180deg, #ff7474 0%, #b51010 100%);
  color: #fff;
  border: 2px outset #ffc4c4;
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  padding: 10px;
  letter-spacing: 1px;
  cursor: pointer;
}

.age-gate-btn:hover {
  box-shadow: 0 0 14px rgba(255, 68, 68, 0.65);
}

.age-gate-btn:disabled {
  background: #3b0b0b;
  color: #6f5050;
  border-color: #4f1e1e;
  cursor: not-allowed;
}

.age-gate-error {
  font-size: 8px;
  color: #ff5555;
  text-shadow: 0 0 6px #ff5555;
  margin-top: 12px;
  min-height: 16px;
  display: block;
}

.back-link {
  display: inline-block;
  margin-top: 18px;
  font-size: 8px;
  color: var(--text-dim);
  text-decoration: none;
}

.back-link:hover {
  color: var(--neon-cyan);
  text-shadow: 0 0 6px var(--neon-cyan);
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #000;
}

::-webkit-scrollbar-thumb {
  background: var(--border-glow);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--neon-cyan);
}

::selection {
  background: var(--neon-cyan);
  color: #001018;
}

@media (max-width: 480px) {
  #game-grid {
    grid-template-columns: 1fr;
  }

  #logo-title {
    font-size: 16px;
  }
}
