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

:root {
  --bg:         #0d0b1e;
  --bg-card:    #16122e;
  --border:     #3a2f6e;
  --pink:       #ff3c8e;
  --cyan:       #00e5ff;
  --yellow:     #ffe135;
  --white:      #f0eaff;
  --muted:      #9b8ec4;
  --font:       'Press Start 2P', monospace;
  --radius:     0px;
  --card-w:     320px;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--white);
  font-family: var(--font);
  font-size: 10px;
  line-height: 1.8;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.scanlines {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: repeating-linear-gradient(
    to bottom,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.08) 2px,
    rgba(0, 0, 0, 0.08) 4px
  );
}

.card,
.play-btn,
.itch-link {
  image-rendering: pixelated;
  box-shadow:
    4px 0   0 0 var(--border),
   -4px 0   0 0 var(--border),
    0   4px 0 0 var(--border),
    0  -4px 0 0 var(--border);
}

header {
  padding: 3rem 2rem 2rem;
  display: flex;
  justify-content: center;
  border-bottom: 4px solid var(--border);
  position: relative;
}

header::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0; right: 0;
  height: 4px;
  background: var(--pink);
  box-shadow: 0 0 18px var(--pink);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  max-width: 860px;
  width: 100%;
}

.avatar {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border: 4px solid var(--pink);
  box-shadow:
    0 0 0 4px var(--bg),
    0 0 0 8px var(--pink),
    0 0 24px var(--pink);
  image-rendering: pixelated;
  flex-shrink: 0;
}

.header-text h1 {
  font-size: clamp(14px, 3vw, 22px);
  color: var(--pink);
  text-shadow:
    3px 3px 0 #8b0040,
    0 0 24px var(--pink);
  letter-spacing: 1px;
  margin-bottom: 0.75rem;
}

.tagline {
  color: var(--muted);
  font-size: 8px;
  line-height: 2;
  margin-bottom: 1rem;
}

.header-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.itch-link {
  display: inline-block;
  background: var(--pink);
  color: #000;
  text-decoration: none;
  padding: 8px 14px;
  font-size: 8px;
  letter-spacing: 1px;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}

.itch-link:hover {
  background: var(--yellow);
  box-shadow:
    4px 0   0 0 #b8a000,
   -4px 0   0 0 #b8a000,
    0   4px 0 0 #b8a000,
    0  -4px 0 0 #b8a000,
    0 0 20px var(--yellow);
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.section-title {
  font-size: 12px;
  color: var(--cyan);
  text-shadow: 0 0 14px var(--cyan);
  margin-bottom: 2.5rem;
  letter-spacing: 2px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(var(--card-w), 1fr));
  gap: 2rem;
}

.card {
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s, box-shadow 0.15s;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    transparent 40%,
    rgba(255, 60, 142, 0.04) 100%
  );
  pointer-events: none;
}

.card:hover {
  transform: translate(-2px, -2px);
  box-shadow:
    4px 0   0 0 var(--pink),
   -4px 0   0 0 var(--pink),
    0   4px 0 0 var(--pink),
    0  -4px 0 0 var(--pink),
    0 0 16px rgba(255, 60, 142, 0.2);
}

.card-img-link {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--border);
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s, filter 0.3s;
  image-rendering: auto;
}

.card:hover .card-img {
  transform: scale(1.04);
  filter: brightness(1.1) saturate(1.2);
}

.card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.card-title {
  font-size: 9px;
  color: var(--yellow);
  text-shadow: 2px 2px 0 #7a6000;
  line-height: 1.6;
  letter-spacing: 0.5px;
}

.card-desc {
  color: var(--muted);
  font-size: 7px;
  line-height: 2;
  flex: 1;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  font-size: 6px;
  background: transparent;
  color: var(--cyan);
  border: 2px solid var(--cyan);
  padding: 3px 6px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.play-btn {
  display: block;
  text-align: center;
  background: transparent;
  color: var(--pink);
  text-decoration: none;
  border: 4px solid var(--pink);
  padding: 10px 16px;
  font-size: 8px;
  letter-spacing: 2px;
  margin-top: 0.25rem;
  font-family: var(--font);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
  box-shadow:
    4px 0   0 0 var(--pink),
   -4px 0   0 0 var(--pink),
    0   4px 0 0 var(--pink),
    0  -4px 0 0 var(--pink);
}

.play-btn:hover {
  background: var(--pink);
  color: #000;
  box-shadow:
    4px 0   0 0 #8b0040,
   -4px 0   0 0 #8b0040,
    0   4px 0 0 #8b0040,
    0  -4px 0 0 #8b0040,
    0 0 20px var(--pink);
}

footer {
  text-align: center;
  padding: 2rem 1rem;
  border-top: 4px solid var(--border);
  font-size: 8px;
  color: var(--muted);
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 0; right: 0;
  height: 4px;
  background: var(--pink);
  box-shadow: 0 0 14px var(--pink);
}

footer a {
  color: var(--cyan);
  text-decoration: none;
}

footer a:hover {
  color: var(--yellow);
  text-shadow: 0 0 10px var(--yellow);
}

@media (max-width: 520px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-text h1 {
    font-size: 13px;
  }

  :root {
    --card-w: 280px;
  }
}
