:root {
  --bg:      #050a0e;
  --bg2:     #0a1520;
  --card:    #0d1f2d;
  --card2:   #112233;
  --accent:  #00d4ff;
  --accent2: #00ff9d;
  --accent3: #7b5ea7;
  --muted:   #6a8fa8;
  --text:    #e8f4f8;
  --border:  rgba(0,212,255,0.15);
  --glow:    rgba(0,212,255,0.08);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

/* ── GRID BACKGROUND ── */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image:
    radial-gradient(ellipse 80% 50% at 20% 0%, rgba(0,212,255,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 85% 90%, rgba(0,255,157,0.05) 0%, transparent 60%),
    linear-gradient(rgba(0,212,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,0.03) 1px, transparent 1px);
  background-size: auto, auto, 60px 60px, 60px 60px;
  pointer-events: none; z-index: 0;
}
body > * { position: relative; z-index: 1; }

/* ── BLOB ── */
.blob {
  position: fixed;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,212,255,0.06) 0%, transparent 70%);
  pointer-events: none;
  transform: translate(-50%,-50%);
  transition: left .15s ease, top .15s ease;
  z-index: 0;
}

/* ── NAV ── */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 40px;
  background: rgba(5,10,14,0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
}
.nav-logo {
  font-family: 'Syne', sans-serif;
  font-size: 18px; font-weight: 800;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: -0.5px;
  transition: opacity .2s;
}
.nav-logo:hover { opacity: .75; }
.nav-back {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: .5px;
  transition: color .2s;
}
.nav-back:hover { color: var(--accent); }
.nav-back svg { transition: transform .2s; }
.nav-back:hover svg { transform: translateX(-3px); }
.nav-tag {
  font-family: 'Space Mono', monospace;
  font-size: 11px; letter-spacing: 2px;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 4px 12px; border-radius: 100px;
}

/* ── MAIN ── */
main {
  flex: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 24px 64px;
  width: 100%;
}

/* ── HEADER ── */
.game-header { text-align: center; margin-bottom: 44px; }
.game-eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: 11px; letter-spacing: 3px;
  color: var(--accent2); text-transform: uppercase;
  margin-bottom: 10px;
}
.game-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800; letter-spacing: -1.5px;
  color: #fff; line-height: 1.05;
}
.game-title span {
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.game-sub {
  font-size: 14px; color: var(--muted);
  margin: 10px auto 0; line-height: 1.6;
  max-width: 480px;
}

/* ── PROJECTS GRID ── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

/* ── PROJECT CARD ── */
.project-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color .3s, transform .3s, box-shadow .3s;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp .6s ease forwards;
}
.project-card:hover {
  border-color: rgba(0,212,255,.4);
  transform: translateY(-5px);
  box-shadow: 0 12px 36px rgba(0,0,0,.4);
}

/* preview area */
.project-preview {
  height: 190px; position: relative; overflow: hidden;
  background: var(--card2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
}
.project-preview::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 55%, rgba(5,10,14,.85) 100%);
  pointer-events: none;
}
.project-preview-inner {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px;
  font-family: 'Space Mono', monospace;
  text-align: center;
  padding: 0 20px;
}
.pp-domain { font-size: 11px; letter-spacing: 3px; color: var(--muted); text-transform: uppercase; }
.pp-name   { font-family: 'Syne', sans-serif; font-size: 24px; font-weight: 800; color: #fff; letter-spacing: 1px; }
.pp-tag    { font-size: 11px; letter-spacing: 2px; }
.pp-badges { display: flex; gap: 8px; margin-top: 4px; flex-wrap: wrap; justify-content: center; }
.pp-badge {
  font-size: 9px; letter-spacing: 1px;
  padding: 3px 9px; border-radius: 100px;
}

/* status badge */
.project-status {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  font-family: 'Space Mono', monospace; font-size: 9px;
  letter-spacing: 2px; text-transform: uppercase;
  padding: 4px 10px; border-radius: 100px;
  background: rgba(0,255,157,.12); color: var(--accent2);
  border: 1px solid rgba(0,255,157,.3);
}

/* body */
.project-body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.project-name { font-family: 'Syne', sans-serif; font-size: 20px; font-weight: 700; color: #fff; letter-spacing: -0.5px; }
.project-desc { font-size: 14px; color: var(--muted); line-height: 1.7; }

.project-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.project-tag {
  font-family: 'Space Mono', monospace; font-size: 10px;
  letter-spacing: 1px; text-transform: uppercase;
  padding: 3px 10px; border-radius: 4px;
  background: rgba(0,212,255,.07); color: var(--accent);
  border: 1px solid rgba(0,212,255,.15);
}

.project-actions { display: flex; gap: 10px; margin-top: auto; padding-top: 4px; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 7px; justify-content: center;
  padding: 10px 18px; border-radius: 8px;
  font-size: 13px; font-weight: 600;
  background: var(--accent); color: #050a0e;
  border: none; cursor: pointer;
  text-decoration: none; flex: 1;
  transition: transform .2s, box-shadow .2s;
  font-family: 'DM Sans', sans-serif;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(0,212,255,.3); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 7px; justify-content: center;
  padding: 9px 16px; border-radius: 8px;
  font-size: 13px; font-weight: 500;
  background: none; color: var(--text);
  border: 1px solid var(--border); cursor: pointer;
  text-decoration: none;
  transition: border-color .2s, background .2s;
  font-family: 'DM Sans', sans-serif;
}
.btn-secondary:hover { border-color: var(--accent); background: var(--glow); }

/* ── FOOTER ── */
footer {
  text-align: center;
  padding: 28px 40px;
  color: var(--muted);
  font-size: 12px;
  border-top: 1px solid var(--border);
}
footer a { color: var(--accent); text-decoration: none; }
footer a:hover { text-decoration: underline; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}

/* ── RESPONSIVE ── */
@media (max-width: 700px) {
  nav { padding: 12px 20px; }
  .nav-tag { display: none; }
  main { padding: 40px 16px 48px; }
  .projects-grid { grid-template-columns: 1fr; }
  .game-title { font-size: 30px; }
  .game-sub { font-size: 12px; }
}
