/* =============================================
   GOOD RETRO GAMES — style.css
   Design: dark retro arcade with pixel accent
   Palette: near-black bg, phosphor green accent,
            warm amber highlight, off-white text
   ============================================= */

/* --- TOKENS --- */
:root {
  --bg:         #0d0d0f;
  --bg-mid:     #141418;
  --bg-card:    #1a1a20;
  --border:     #2a2a35;
  --green:      #39ff6e;
  --green-dim:  #1a7a38;
  --amber:      #ffa825;
  --white:      #f0ede8;
  --muted:      #888899;
  --font-pixel: 'Press Start 2P', monospace;
  --font-body:  'DM Sans', sans-serif;
  --radius:     4px;
  --max-w:      1100px;
}

/* --- RESET --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  background: transparent;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* =============================================
   RETRO ARCADE BACKGROUND (cartoon style)
   Fixed, full-page layers behind all content.
   Pure CSS — applies to every page automatically.
   ============================================= */

/* drifting neon glow blobs (ambient color) */
html::before {
  content: "";
  position: fixed;
  inset: -10%;
  z-index: -3;
  background:
    radial-gradient(44vmax 44vmax at 12% 18%, rgba(255, 30, 30, 0.20), transparent 60%),
    radial-gradient(40vmax 40vmax at 88% 12%, rgba(200, 12, 40, 0.18), transparent 60%),
    radial-gradient(46vmax 46vmax at 78% 88%, rgba(255, 60, 40, 0.16), transparent 60%),
    radial-gradient(38vmax 38vmax at 25% 85%, rgba(130, 0, 25, 0.20), transparent 60%);
  animation: glowDrift 18s ease-in-out infinite alternate;
  pointer-events: none;
}

/* neon perspective "arcade floor" grid along the bottom */
html::after {
  content: "";
  position: fixed;
  left: -50%;
  right: -50%;
  bottom: 0;
  height: 42vh;
  z-index: -2;
  background-image:
    repeating-linear-gradient(90deg, transparent 0, transparent 58px, rgba(255, 40, 40, 0.55) 60px),
    repeating-linear-gradient(0deg, transparent 0, transparent 58px, rgba(255, 40, 40, 0.55) 60px);
  -webkit-mask-image: linear-gradient(transparent, #000 75%);
          mask-image: linear-gradient(transparent, #000 75%);
  transform: perspective(340px) rotateX(62deg);
  transform-origin: bottom center;
  opacity: 0.45;
  animation: gridScroll 4s linear infinite;
  pointer-events: none;
}

/* twinkling cartoon star-pixels (two offset layers) */
body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-repeat: no-repeat;
  pointer-events: none;
}
body::before {
  background-image:
    radial-gradient(2px 2px at 20% 30%, #ff4d4d, transparent),
    radial-gradient(2px 2px at 70% 65%, #ff7a3c, transparent),
    radial-gradient(3px 3px at 40% 80%, #ff2b2b, transparent),
    radial-gradient(2px 2px at 85% 22%, #ff6b6b, transparent),
    radial-gradient(2px 2px at 55% 12%, #c81028, transparent);
  animation: twinkle 3.5s ease-in-out infinite;
}
body::after {
  background-image:
    radial-gradient(2px 2px at 10% 68%, #ff7a3c, transparent),
    radial-gradient(3px 3px at 92% 82%, #ff2b2b, transparent),
    radial-gradient(2px 2px at 33% 50%, #ff4d4d, transparent),
    radial-gradient(2px 2px at 63% 38%, #c81028, transparent),
    radial-gradient(2px 2px at 78% 48%, #ff6b6b, transparent);
  animation: twinkle 5s ease-in-out infinite reverse;
}

/* floating cartoon arcade sprites (hero) */
.arcade-sprites {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}
.arcade-sprites .sprite {
  position: absolute;
  font-size: 34px;
  line-height: 1;
  filter: drop-shadow(0 3px 0 rgba(0, 0, 0, 0.35));
  opacity: 0.85;
  animation: spriteBob 5s ease-in-out infinite;
}
.arcade-sprites .s1 { left: 5%;   top: 26%; font-size: 40px; animation-duration: 6s;   animation-delay: -1s; }
.arcade-sprites .s2 { left: 14%;  top: 64%; font-size: 30px; animation-duration: 5.2s; animation-delay: -2s; }
.arcade-sprites .s3 { left: 47%;  top: 13%; font-size: 26px; animation-duration: 4.4s; animation-delay: -0.5s; }
.arcade-sprites .s4 { right: 30%; top: 80%; font-size: 30px; animation-duration: 5.6s; animation-delay: -3s; }
.arcade-sprites .s5 { right: 8%;  top: 70%; font-size: 34px; animation-duration: 6.4s; animation-delay: -1.5s; }
.arcade-sprites .s6 { right: 6%;  top: 16%; font-size: 28px; animation-duration: 4.8s; animation-delay: -2.5s; }
.arcade-sprites .s7 { left: 41%;  top: 88%; font-size: 32px; animation-duration: 5.8s; animation-delay: -0.8s; }

@keyframes twinkle {
  0%, 100% { opacity: 0.30; }
  50%      { opacity: 1; }
}
@keyframes glowDrift {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to   { transform: translate3d(2%, 2%, 0) scale(1.08); }
}
@keyframes gridScroll {
  from { background-position: 0 0, 0 0; }
  to   { background-position: 0 0, 0 60px; }
}
@keyframes spriteBob {
  0%, 100% { transform: translateY(0)     rotate(-8deg); }
  50%      { transform: translateY(-22px) rotate(8deg); }
}

/* --- HEADER --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #000;
  border-bottom: 1px solid var(--border);
}
.header-inner {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-gg {
  font-family: var(--font-pixel);
  font-size: 14px;
  color: var(--green);
  background: var(--bg-card);
  border: 1px solid var(--green-dim);
  padding: 6px 8px;
  letter-spacing: 1px;
}
.logo-img {
  display: block;
  height: 136px;
  width: auto;
  border-radius: 6px;
  box-shadow: 0 0 12px rgba(255, 40, 40, 0.25);
}
.logo-text {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  color: var(--white);
  letter-spacing: 0.02em;
}
.header-nav {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 24px;
}
.header-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s;
}
.header-nav a:hover { color: var(--white); }
.header-nav .nav-cta {
  color: var(--green);
  border: 1px solid var(--green-dim);
  padding: 7px 16px;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
}
.header-nav .nav-cta:hover {
  background: var(--green);
  color: var(--bg);
}

/* --- HERO --- */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

/* scanline overlay — the signature element */
.scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent,
    transparent 3px,
    rgba(0, 0, 0, 0.18) 3px,
    rgba(0, 0, 0, 0.18) 4px
  );
  pointer-events: none;
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 80px 24px;
  max-width: 640px;
  margin-left: max(24px, calc(50vw - 550px));
}
.hero-eyebrow {
  font-family: var(--font-pixel);
  font-size: 9px;
  color: var(--green);
  letter-spacing: 0.12em;
  margin-bottom: 28px;
  opacity: 0.8;
}
.hero-headline {
  font-family: var(--font-pixel);
  font-size: clamp(18px, 3.5vw, 38px);
  line-height: 1.6;
  color: var(--white);
  margin-bottom: 24px;
}
.headline-accent {
  color: var(--amber);
}
.hero-sub {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 500px;
}
.hero-cta-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  padding: 13px 24px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-icon { font-size: 16px; }

.btn-primary {
  background: var(--green);
  color: var(--bg);
  border: 2px solid var(--green);
}
.btn-primary:hover {
  background: #5fffaa;
  border-color: #5fffaa;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(57, 255, 110, 0.25);
}

.btn-secondary {
  background: transparent;
  color: var(--amber);
  border: 2px solid var(--amber);
}
.btn-secondary:hover {
  background: var(--amber);
  color: var(--bg);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--muted);
  transform: translateY(-1px);
}

/* --- SHARED SECTION STYLES --- */
.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 96px 24px;
}
.section-eyebrow {
  font-family: var(--font-pixel);
  font-size: 9px;
  color: var(--green);
  letter-spacing: 0.12em;
  margin-bottom: 16px;
  opacity: 0.8;
}
.section-heading {
  font-family: var(--font-pixel);
  font-size: clamp(14px, 2vw, 22px);
  line-height: 1.7;
  color: var(--white);
  margin-bottom: 48px;
}

/* --- CATEGORIES --- */
.categories {
  background: rgba(20, 20, 24, 0.82);
  border-bottom: 1px solid var(--border);
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}
.category-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color 0.2s, transform 0.2s;
}
.category-card:hover {
  border-color: var(--green-dim);
  transform: translateY(-2px);
}
.cat-icon {
  font-size: 28px;
  margin-bottom: 14px;
}
.category-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--white);
}
.category-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}
.shop-cta-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* --- ABOUT --- */
.about { border-bottom: 1px solid var(--border); }
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-text p {
  color: var(--muted);
  margin-bottom: 20px;
  max-width: 460px;
}
.about-text .btn { margin-top: 8px; }

/* retro gaming room photo */
.about-visual { display: flex; justify-content: center; }
.about-img {
  width: 100%;
  max-width: 480px;
  border-radius: 10px;
  border: 1px solid var(--border);
  box-shadow: 0 0 34px rgba(255, 40, 40, 0.18), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

/* pixel art decoration */
.pixel-grid {
  display: grid;
  grid-template-columns: repeat(4, 48px);
  grid-template-rows: repeat(4, 48px);
  gap: 6px;
  justify-content: center;
}
.px {
  border-radius: 2px;
  transition: opacity 0.4s;
}
.px.c1 { background: var(--green); opacity: 0.9; }
.px.c2 { background: var(--green-dim); opacity: 0.5; }
.px.c3 { background: var(--amber); opacity: 0.7; }
.px.c4 { background: var(--bg-card); border: 1px solid var(--border); opacity: 1; }
.px.c5 { background: var(--bg-mid); border: 1px solid var(--border); opacity: 1; }

/* --- POLICY / LEGAL PAGES --- */
.policy { border-bottom: 1px solid var(--border); min-height: 70vh; }
.policy-inner { max-width: 760px; }
.policy-title {
  font-family: var(--font-pixel);
  font-size: clamp(16px, 2.4vw, 26px);
  line-height: 1.6;
  color: var(--white);
  margin-bottom: 16px;
}
.policy-updated {
  font-size: 13px;
  color: var(--muted);
  opacity: 0.7;
  margin-bottom: 40px;
}
.policy-inner h2 {
  font-family: var(--font-body);
  font-size: 19px;
  font-weight: 600;
  color: var(--green);
  margin: 40px 0 14px;
}
.policy-inner h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  margin: 24px 0 10px;
}
.policy-inner p { color: var(--muted); margin-bottom: 16px; }
.policy-inner ul { color: var(--muted); margin: 0 0 16px; padding-left: 22px; }
.policy-inner li { margin-bottom: 10px; }
.policy-inner a { color: var(--green); }
.policy-inner a:hover { text-decoration: underline; }
/* Keep button text legible inside policy/contact pages (overrides the link color above) */
.policy-inner .btn-primary { color: var(--bg); }
.policy-inner .btn-secondary { color: var(--amber); }
.policy-inner .btn-outline { color: var(--white); }
.policy-inner .btn:hover { text-decoration: none; }
.policy-inner strong { color: var(--white); }
.back-link {
  display: inline-block;
  margin-top: 48px;
  font-size: 14px;
  color: var(--muted);
}
.back-link:hover { color: var(--white); }

/* --- FOOTER --- */
.site-footer {
  background: #000;
  padding: 48px 24px;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}
.footer-logo .logo-gg {
  font-size: 18px;
}
.footer-logo .logo-img {
  height: 144px;
  width: auto;
  border-radius: 8px;
  box-shadow: 0 0 16px rgba(255, 40, 40, 0.22);
}
.footer-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-links a {
  font-size: 14px;
  color: var(--muted);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--white); }
.footer-copy {
  font-size: 13px;
  color: var(--muted);
  opacity: 0.6;
}
.footer-disclaimer {
  font-size: 12px;
  color: var(--muted);
  opacity: 0.45;
  max-width: 480px;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  .header-inner { height: 110px; }
  .logo-img { height: 84px; }
  .hero-inner { margin-left: 0; padding: 64px 24px; }
  .about-inner { grid-template-columns: 1fr; }
  .about-pixels { display: none; }
  .header-nav a:not(.nav-cta) { display: none; }
  /* thin out floating sprites so they don't crowd the stacked mobile hero */
  .arcade-sprites .s2,
  .arcade-sprites .s4,
  .arcade-sprites .s7 { display: none; }
  .arcade-sprites .sprite { font-size: 26px; opacity: 0.7; }
}

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
  .category-card { transition: none; }
  html::before,
  html::after,
  body::before,
  body::after,
  .arcade-sprites .sprite { animation: none; }
}
