:root {
  --bg: #05030d;
  --bg-2: #100a26;
  --surface: #120f2c;
  --surface-2: #181437;
  --text: #faf8ff;
  --muted: #cbc4e7;
  --primary: #48f6ff;
  --accent: #ff47c7;
  --secondary: #9b7bff;
  --border: #43307d;
  --shadow: 0 16px 36px rgba(0, 0, 0, 0.52);
  --nav-active-bg: linear-gradient(120deg, rgba(155,123,255,.28), rgba(255,71,199,.28));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--text);
  font-family: "Archivo", "Inter", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.62;
  background:
    radial-gradient(circle at 10% 0, rgba(255, 71, 199, .22) 0, transparent 36%),
    radial-gradient(circle at 90% 0, rgba(72, 246, 255, .16) 0, transparent 42%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
}

main {
  flex: 1 0 auto;
}

a { color: var(--primary); font-weight: 700; }
a:hover { color: #a7f8ff; }
.container { width: min(1080px, 92vw); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(10, 8, 20, .9);
  border-bottom: 2px solid var(--border);
  backdrop-filter: blur(8px);
  transition: transform 180ms ease, opacity 180ms ease;
}

.site-header.header-hidden {
  transform: translateY(-110%);
  opacity: .96;
}
.nav-wrap { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:.9rem 0; }
.brand { display:inline-flex; align-items:center; gap:.5rem; color:var(--text); text-decoration:none; font-weight:900; text-transform: uppercase; letter-spacing: .03em; }
.brand-logo {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 3px;
  object-fit: cover;
  border: 2px solid var(--border);
  background: var(--nav-active-bg);
}

nav { display:flex; gap:.55rem; flex-wrap:wrap; }
nav a { color:var(--muted); text-decoration:none; font-weight:850; padding:.32rem .6rem; border:1px solid transparent; border-radius:8px; text-transform: uppercase; font-size: .84rem; }
nav a.active, nav a:hover { color:var(--text); border-color: var(--border); background: var(--nav-active-bg); }

.section { padding: 3.3rem 0; }
#games { scroll-margin-top: 90px; }

.card {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.015));
  border-radius: 12px;
  padding: 1rem;
  box-shadow: var(--shadow);
}

.arcade-hero {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 1.2rem;
}
.arcade-hero h1 {
  margin: .4rem 0 .8rem;
  font-size: clamp(2rem, 5.4vw, 3.9rem);
  line-height: .95;
  text-transform: uppercase;
  letter-spacing: -.02em;
}
.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .72rem;
  color: var(--primary);
  font-weight: 900;
}
.section-head p, .intro, p { color: var(--muted); }
.hero-logo {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--nav-active-bg);
}

.hero-actions { margin-top: 1rem; display:flex; gap:.62rem; flex-wrap:wrap; }
.btn { display:inline-flex; align-items:center; justify-content:center; text-decoration:none; border-radius: 8px; font-weight:900; border:1px solid var(--border); padding:.52rem .82rem; text-transform: uppercase; letter-spacing: .03em; }
.btn-primary { background: linear-gradient(120deg, var(--secondary), var(--accent)); color:#fff; }
.btn-primary:hover { filter: brightness(1.08); color:#fff; }
.btn-secondary { background: rgba(255,255,255,.04); color: var(--text); }

.game-art { width:100%; aspect-ratio:16/9; object-fit:cover; border-radius:8px; border:1px solid var(--border); margin-bottom:.72rem; background:#fff; }
.featured { margin-bottom:.9rem; }
.glow { box-shadow: var(--shadow); }
.game-tiles { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.82rem; }
.tile-a,.tile-b,.tile-c,.tile-d{ border-color:var(--border); }

.link-list { list-style:none; padding:0; margin:.72rem 0 0; display:flex; gap:.58rem; flex-wrap:wrap; }
.link-list a { display:inline-block; border:1px solid var(--border); border-radius:999px; padding:.2rem .62rem; text-decoration:none; color:var(--text); background: rgba(155,123,255,.18); }
.link-list a:hover { background: rgba(155,123,255,.3); }

.social-cards { display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:.7rem; }
.social-card { display:flex; align-items:center; gap:.5rem; text-decoration:none; color:var(--text); border:1px solid var(--border); border-radius:10px; padding:.5rem .58rem; background: rgba(255,255,255,.04); }
.social-card img { width:20px; height:20px; border-radius:999px; padding:3px; background:#222; }
.social-card:hover { background: rgba(155,123,255,.22); }

/* Make every social icon visibly colored */
.social-cards .social-card:nth-child(1) img { background: #111; box-shadow: none; } /* X */
.social-cards .social-card:nth-child(2) img { background: #111; box-shadow: inset -1px -1px 0 #25f4ee, inset 1px 1px 0 #fe2c55; } /* TikTok */
.social-cards .social-card:nth-child(3) img { background: #ff0000; } /* YouTube */
.social-cards .social-card:nth-child(4) img { background: #ff4500; } /* Reddit */
.social-cards .social-card:nth-child(5) img { background: #29abe0; } /* Ko-fi */

.muted { color:var(--muted); }
.grid { display:grid; gap:.9rem; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); }
.two-col { grid-template-columns:repeat(auto-fit,minmax(250px,1fr)); }

.site-footer { border-top:1px solid var(--border); margin-top:2rem; padding:1.1rem 0 1.8rem; color:var(--muted); }
.footer-row { display:flex; align-items:center; justify-content:space-between; gap:1rem; flex-wrap:wrap; }
.social-icons { list-style:none; display:flex; gap:.4rem; padding:0; margin:0; }
.social-icons img { width:18px; height:18px; border-radius:999px; padding:2px; background:#222; }
.social-icons li:nth-child(1) img { background:#111; box-shadow: none; } /* X */
.social-icons li:nth-child(2) img { background:#111; box-shadow: inset -1px -1px 0 #25f4ee, inset 1px 1px 0 #fe2c55; } /* TikTok */
.social-icons li:nth-child(3) img { background:#ff0000; } /* YouTube */
.social-icons li:nth-child(4) img { background:#ff4500; } /* Reddit */
.social-icons li:nth-child(5) img { background:#29abe0; } /* Ko-fi */

.prose h2 { margin-top:1.3rem; margin-bottom:.45rem; text-transform: uppercase; }
.prose ul { padding-left:1.15rem; }

.minimal-hero {
  padding: 1.2rem 0 2.3rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 1.1rem;
  align-items: start;
}

.minimal-hero-copy {
  min-width: 0;
}

/* Keep hero copy at consistent width */
.minimal-hero-copy > * {
  max-width: 56ch;
}

.minimal-hero h1,
.intro-copy {
  max-width: 56ch;
}

.intro-copy {
  font-size: 1.02rem;
}

.minimal-hero-logo-wrap {
  margin-top: 0;
  justify-self: end;
}

.minimal-hero-logo {
  width: min(420px, 42vw);
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--nav-active-bg);
  padding: .35rem;
  box-shadow: var(--shadow);
}

.stack-layout {
  display: grid;
  gap: 1.2rem;
}

.stack-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: center;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.015));
  box-shadow: var(--shadow);
  border-radius: 12px;
  padding: .9rem;
}

.stack-item.reverse { grid-template-columns: 1fr 1fr; }

.stack-kicker {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .72rem;
  color: var(--primary);
  margin: 0;
  font-weight: 900;
}

.stack-meta h2 {
  margin: .4rem 0 .45rem;
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  line-height: 1.02;
  text-transform: uppercase;
}

.stack-image {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--border);
  background:#fff;
}

.mini-grid {
  display: grid;
  gap: .6rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.minimal-social {
  margin-top: 2.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border);
}

@media (max-width: 980px) {
  .minimal-hero,
  .stack-item,
  .stack-item.reverse,
  .arcade-hero {
    grid-template-columns: 1fr;
  }

  .minimal-hero-logo-wrap {
    justify-self: start;
  }

  .minimal-hero-logo {
    width: min(360px, 80vw);
  }

  .mini-grid,
  .game-tiles {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .nav-wrap { flex-direction:column; align-items:flex-start; }
  nav { width:100%; }
}
