/* ==========================================
   GLITCH v4 — design tokens
   ========================================== */
:root {
  --sky: #2962FF;
  --deep: #0A1947;
  --mid: #1F3FA8;
  --line: #5173E3;
  --white: #FFFFFF;
  --pale: #C8DBFF;
  --sun: #FFD60A;
  --cyan: #00E5FF;
  --coral: #FF7063;
  --max-width: 1440px;
  --gutter: 60px;
}

@media (max-width: 768px) {
  :root { --gutter: 16px; }
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--sky);
  color: var(--white);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  min-height: 100vh;
  /* Subtle dot pattern background */
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.06) 1px, transparent 0);
  background-size: 40px 40px;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* Container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Typography helpers */
.font-pixel { font-family: 'Press Start 2P', monospace; }
.font-pixel-soft { font-family: 'Pixelify Sans', monospace; font-weight: 700; }
.font-body { font-family: 'Inter', sans-serif; }

/* ==========================================
   STATUS BAR (top)
   ========================================== */
.status-bar {
  background: var(--deep);
  padding: 10px 0;
  font-family: 'Pixelify Sans', monospace;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 1px;
}
.status-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.status-left { color: var(--sun); }
.status-right { color: var(--pale); }
.status-bar.error .status-left { color: var(--coral); }
.status-bar.error .status-right { color: var(--coral); }
.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--sun);
  border-radius: 50%;
  margin-right: 8px;
  animation: blink-soft 2s ease-in-out infinite;
}
.status-bar.error .status-dot { background: var(--coral); }

@keyframes blink-soft {
  0%, 50%, 100% { opacity: 1; }
  60%, 70% { opacity: 0.3; }
}

@media (max-width: 768px) {
  .status-bar { font-size: 9px; padding: 8px 0; }
  .status-right { display: none; }
}

/* ==========================================
   NAV
   ========================================== */
.nav {
  border-bottom: 2px solid var(--deep);
  padding: 22px 0;
  background: var(--sky);
}
.nav .container {
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  gap: 48px;
  margin-left: auto;
}
.nav-link {
  font-family: 'Press Start 2P', monospace;
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--white);
  opacity: 0.7;
  position: relative;
  padding-bottom: 8px;
  transition: opacity 0.2s;
}
.nav-link:hover { opacity: 1; }
.nav-link.active {
  opacity: 1;
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -22px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--sun);
}
.nav-cta {
  font-family: 'Press Start 2P', monospace;
  font-size: 13px;
  letter-spacing: 2px;
  background: var(--sun);
  color: var(--deep);
  padding: 14px 32px;
  border: 2px solid var(--deep);
  transition: transform 0.15s, box-shadow 0.15s;
  display: inline-block;
}
.nav-cta:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--deep);
}

@media (max-width: 1024px) {
  .nav-links { display: none; }
}
@media (max-width: 768px) {
  .nav { padding: 14px 0; }
  .nav-cta { padding: 10px 20px; font-size: 11px; }
}

/* ==========================================
   GLITCH WORDMARK (logo with RGB split)
   ========================================== */
.glitch-wordmark {
  font-family: 'Press Start 2P', monospace;
  font-size: 26px;
  letter-spacing: 2px;
  position: relative;
  color: var(--white);
  display: inline-block;
  white-space: nowrap;
}
.glitch-wordmark::before,
.glitch-wordmark::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}
.glitch-wordmark::before {
  color: var(--cyan);
  z-index: -1;
  transform: translate(-2px, 0);
  opacity: 0.9;
  animation: glitch-cyan 4s ease-in-out infinite;
}
.glitch-wordmark::after {
  color: var(--sun);
  z-index: -1;
  transform: translate(2px, 2px);
  opacity: 0.9;
  animation: glitch-yellow 4s ease-in-out infinite;
}
@keyframes glitch-cyan {
  0%, 90%, 100% { transform: translate(-2px, 0); }
  92% { transform: translate(-5px, 1px); }
  94% { transform: translate(-1px, -2px); }
  96% { transform: translate(-4px, 2px); }
}
@keyframes glitch-yellow {
  0%, 90%, 100% { transform: translate(2px, 2px); }
  92% { transform: translate(4px, -1px); }
  94% { transform: translate(1px, 4px); }
  96% { transform: translate(5px, 1px); }
}
.glitch-wordmark.size-lg { font-size: 64px; letter-spacing: 4px; }
.glitch-wordmark.size-xl { font-size: 84px; letter-spacing: 6px; }
.glitch-wordmark.size-sm { font-size: 18px; letter-spacing: 1px; }

@media (max-width: 768px) {
  .glitch-wordmark { font-size: 18px; letter-spacing: 1px; }
  .glitch-wordmark.size-lg { font-size: 40px; letter-spacing: 2px; }
}

/* v4 badge */
.v4-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Press Start 2P', monospace;
  font-size: 13px;
  color: var(--sun);
  border: 2px solid var(--sun);
  padding: 5px 8px;
  letter-spacing: 1px;
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
  display: inline-block;
  font-family: 'Press Start 2P', monospace;
  font-size: 13px;
  letter-spacing: 2px;
  padding: 18px 32px;
  border: 2px solid;
  transition: transform 0.15s, box-shadow 0.15s;
  text-align: center;
  white-space: nowrap;
}
.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--deep);
}
.btn-primary {
  background: var(--sun);
  color: var(--deep);
  border-color: var(--deep);
}
.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline-cyan {
  background: transparent;
  color: var(--cyan);
  border-color: var(--cyan);
}
.btn-outline-coral {
  background: transparent;
  color: var(--coral);
  border-color: var(--coral);
}
.btn-outline-sun {
  background: transparent;
  color: var(--sun);
  border-color: var(--sun);
}
.btn-lg {
  padding: 22px 40px;
  font-size: 14px;
}

/* ==========================================
   COMING SOON BADGE
   ========================================== */
.coming-soon {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--sun);
  color: var(--deep);
  border: 2px solid var(--deep);
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  padding: 8px 10px;
  letter-spacing: 1px;
  transform: rotate(-8deg);
  box-shadow: 3px 3px 0 var(--deep);
  z-index: 10;
  animation: wobble 4s ease-in-out infinite;
}
@keyframes wobble {
  0%, 100% { transform: rotate(-8deg); }
  50% { transform: rotate(-5deg); }
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.hero-decorations {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.deco-tri {
  width: 0; height: 0;
  border-style: solid;
  position: absolute;
}
.deco-square {
  position: absolute;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 80px;
  align-items: start;
}
.hero-label {
  font-family: 'Press Start 2P', monospace;
  font-size: 13px;
  color: var(--sun);
  letter-spacing: 2px;
  margin-bottom: 28px;
}
.hero-title {
  font-family: 'Pixelify Sans', monospace;
  font-weight: 700;
  font-size: 96px;
  line-height: 0.95;
  letter-spacing: -2px;
  color: var(--white);
  margin-bottom: 8px;
}
.hero-title .accent {
  color: var(--sun);
  display: block;
  margin-top: 12px;
}
.hero-sub {
  font-family: 'Pixelify Sans', monospace;
  font-weight: 700;
  font-size: 19px;
  line-height: 1.6;
  color: var(--white);
  opacity: 0.9;
  max-width: 700px;
  margin: 36px 0 32px;
}
.hero-genres {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}
.genre-chip {
  font-family: 'Press Start 2P', monospace;
  font-size: 11px;
  color: var(--sun);
  border: 2px solid var(--sun);
  padding: 9px 14px;
  letter-spacing: 1px;
  background: transparent;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 768px) {
  .hero { padding: 40px 0; }
  .hero-title { font-size: 56px; }
  .hero-sub { font-size: 16px; }
  .genre-chip { font-size: 9px; padding: 7px 10px; }
}

/* ==========================================
   FEATURED GAME CARD (DASH-style)
   ========================================== */
.featured-card {
  background: var(--deep);
  border: 3px solid var(--cyan);
  position: relative;
  overflow: hidden;
}
.featured-banner {
  background: var(--sun);
  padding: 12px 20px;
  font-family: 'Press Start 2P', monospace;
  font-size: 11px;
  color: var(--deep);
  letter-spacing: 1px;
}
.dash-scene {
  height: 360px;
  background: radial-gradient(ellipse at center, rgba(0, 229, 255, 0.15) 0%, var(--deep) 60%);
  position: relative;
  overflow: hidden;
}
.dash-stars {
  position: absolute;
  inset: 0;
}
.dash-stars span {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--white);
  border-radius: 50%;
  opacity: 0.7;
}
.dash-ground {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--mid);
  border-top: 4px solid var(--cyan);
}
.dash-ground::before,
.dash-ground::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(0, 229, 255, 0.3);
}
.dash-ground::before { top: 12px; }
.dash-ground::after { top: 24px; }
.dash-cube {
  position: absolute;
  bottom: 80px;
  left: 80px;
  width: 40px;
  height: 40px;
  background: var(--sun);
  animation: dash-bounce 1s ease-in-out infinite;
}
.dash-cube::before, .dash-cube::after {
  content: '';
  position: absolute;
  width: 6px;
  height: 8px;
  background: var(--deep);
  top: 12px;
}
.dash-cube::before { left: 10px; }
.dash-cube::after { right: 10px; }
.dash-cube .smile {
  position: absolute;
  bottom: 8px;
  left: 13px;
  width: 14px;
  height: 3px;
  background: var(--deep);
}
@keyframes dash-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.dash-tri {
  position: absolute;
  bottom: 80px;
  width: 0; height: 0;
  border-left: 25px solid transparent;
  border-right: 25px solid transparent;
  border-bottom: 50px solid var(--coral);
  animation: dash-scroll 4s linear infinite;
}
.dash-tri:nth-child(2) {
  border-left-width: 20px;
  border-right-width: 20px;
  border-bottom: 40px solid var(--sun);
  animation-delay: 1.5s;
  animation-duration: 5s;
}
.dash-tri:nth-child(3) {
  border-left-width: 15px;
  border-right-width: 15px;
  border-bottom: 30px solid var(--cyan);
  animation-delay: 3s;
  animation-duration: 6s;
}
@keyframes dash-scroll {
  from { right: -50px; }
  to { right: 110%; }
}
.dash-hud {
  position: absolute;
  top: 18px;
  left: 18px;
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  color: var(--cyan);
  letter-spacing: 1px;
}
.dash-score {
  position: absolute;
  top: 18px;
  right: 18px;
  font-family: 'Press Start 2P', monospace;
  font-size: 14px;
  color: var(--sun);
}
.featured-info {
  padding: 28px;
}
.featured-genre {
  font-family: 'Press Start 2P', monospace;
  font-size: 11px;
  color: var(--cyan);
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.featured-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 36px;
  letter-spacing: 4px;
  color: var(--white);
  margin-bottom: 16px;
}
.featured-desc {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: var(--pale);
  line-height: 1.5;
  margin-bottom: 20px;
}
.featured-stats {
  font-family: 'Press Start 2P', monospace;
  font-size: 11px;
  color: var(--pale);
  letter-spacing: 1px;
  opacity: 0.8;
}

@media (max-width: 768px) {
  .featured-title { font-size: 28px; letter-spacing: 2px; }
  .dash-scene { height: 240px; }
}

/* ==========================================
   SECTION SHELLS
   ========================================== */
.section {
  padding: 80px 0;
}
.section-deep {
  background: var(--deep);
}
.section-sky {
  background: var(--sky);
}
.section-yellow {
  background: var(--sun);
  color: var(--deep);
}
.section-label {
  font-family: 'Press Start 2P', monospace;
  font-size: 13px;
  color: var(--sun);
  letter-spacing: 2px;
  margin-bottom: 24px;
}
.section-deep .section-label { color: var(--sun); }
.section-yellow .section-label { color: var(--deep); }
.section-title {
  font-family: 'Pixelify Sans', monospace;
  font-weight: 700;
  font-size: 80px;
  line-height: 0.95;
  letter-spacing: -2px;
  color: var(--white);
  margin-bottom: 24px;
}
.section-yellow .section-title { color: var(--deep); }
.section-sub {
  font-family: 'Press Start 2P', monospace;
  font-size: 12px;
  color: var(--pale);
  letter-spacing: 1px;
  margin-bottom: 48px;
}
.section-yellow .section-sub { color: var(--deep); opacity: 0.8; }

@media (max-width: 768px) {
  .section { padding: 48px 0; }
  .section-title { font-size: 44px; }
}

/* ==========================================
   GAMES GRID
   ========================================== */
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 48px;
}
.filter-chip {
  font-family: 'Press Start 2P', monospace;
  font-size: 11px;
  letter-spacing: 1px;
  padding: 10px 14px;
  border: 2px solid var(--line);
  color: var(--white);
  opacity: 0.7;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-chip:hover { opacity: 1; }
.filter-chip.active {
  background: var(--sun);
  color: var(--deep);
  border-color: var(--sun);
  opacity: 1;
}
.games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}
.game-card {
  background: var(--mid);
  border: 2px solid var(--line);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s;
}
.game-card:hover {
  transform: translateY(-4px);
}
.game-card-accent {
  height: 6px;
  background: var(--sun);
}
.game-scene {
  height: 170px;
  background: var(--deep);
  position: relative;
  overflow: hidden;
}
.game-card-body {
  padding: 22px 24px 22px;
}
.game-tag {
  font-family: 'Press Start 2P', monospace;
  font-size: 11px;
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.game-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 22px;
  letter-spacing: 1px;
  color: var(--white);
  margin-bottom: 32px;
}
.game-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: 'Pixelify Sans', monospace;
  font-weight: 700;
  font-size: 11px;
  color: var(--pale);
  letter-spacing: 1px;
}
.game-meta .arrow {
  margin-left: auto;
  font-size: 22px;
  font-family: 'Press Start 2P', monospace;
}
.browse-all {
  font-family: 'Press Start 2P', monospace;
  font-size: 13px;
  color: var(--sun);
  letter-spacing: 2px;
  display: inline-block;
}
.browse-all:hover { text-decoration: underline; }

@media (max-width: 1024px) {
  .games-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .games-grid { grid-template-columns: 1fr; gap: 16px; }
  .game-title { font-size: 18px; }
}

/* Genre tag colors */
.tag-rhythm { color: var(--sun); }
.tag-adventure { color: var(--cyan); }
.tag-platformer { color: var(--coral); }
.tag-arcade { color: var(--sun); }
.tag-puzzle { color: var(--cyan); }
.tag-weird { color: var(--coral); }

/* ==========================================
   GAME SCENES (mini illustrations)
   ========================================== */
.scene-dash, .scene-sky, .scene-stars, .scene-jelly, .scene-burger, .scene-maze {
  position: relative;
  height: 100%;
}

/* DASH scene */
.scene-dash .stars { position: absolute; inset: 0; }
.scene-dash .stars span { position: absolute; width: 2px; height: 2px; background: var(--white); }
.scene-dash .ground { position: absolute; bottom: 0; left: 0; right: 0; height: 50px; background: var(--mid); border-top: 2px solid var(--cyan); }
.scene-dash .cube { position: absolute; bottom: 50px; left: 60px; width: 28px; height: 28px; background: var(--sun); animation: dash-bounce 1s ease-in-out infinite; }
.scene-dash .cube::before, .scene-dash .cube::after { content: ''; position: absolute; width: 4px; height: 6px; background: var(--deep); top: 8px; }
.scene-dash .cube::before { left: 7px; }
.scene-dash .cube::after { right: 7px; }
.scene-dash .obs { position: absolute; bottom: 50px; width: 0; height: 0; border-left: 15px solid transparent; border-right: 15px solid transparent; border-bottom: 30px solid var(--coral); }
.scene-dash .obs:nth-of-type(1) { right: 120px; }
.scene-dash .obs:nth-of-type(2) { right: 80px; border-left-width: 11px; border-right-width: 11px; border-bottom: 22px solid var(--sun); }

/* SKY scene */
.scene-sky .sun { position: absolute; top: 20px; right: 40px; width: 60px; height: 60px; background: var(--sun); border-radius: 50%; box-shadow: 0 0 40px rgba(255, 214, 10, 0.4); }
.scene-sky .cloud { position: absolute; background: var(--white); border-radius: 12px; }
.scene-sky .cloud:nth-of-type(2) { width: 70px; height: 22px; top: 50px; left: 60px; }
.scene-sky .cloud:nth-of-type(3) { width: 90px; height: 26px; top: 90px; left: 180px; }
.scene-sky .island { position: absolute; bottom: 20px; left: 50px; width: 80px; height: 14px; background: var(--coral); }
.scene-sky .adv-body { position: absolute; bottom: 34px; left: 85px; width: 10px; height: 14px; background: var(--sun); }
.scene-sky .adv-head { position: absolute; bottom: 48px; left: 86px; width: 8px; height: 8px; background: var(--coral); }

/* STAR PATH scene */
.scene-stars .star { position: absolute; width: 8px; height: 8px; background: var(--sun); transform: rotate(45deg); }
.scene-stars .path { position: absolute; bottom: 30px; left: 20px; right: 20px; height: 4px; background: var(--cyan); opacity: 0.6; }
.scene-stars .tree-trunk { position: absolute; bottom: 20px; width: 14px; background: var(--deep); }
.scene-stars .tree-top { position: absolute; width: 0; height: 0; border-left: 14px solid transparent; border-right: 14px solid transparent; }

/* JELLY scene */
.scene-jelly .platform { position: absolute; height: 8px; background: var(--coral); }
.scene-jelly .platform:nth-of-type(1) { bottom: 40px; left: 60px; width: 80px; }
.scene-jelly .platform:nth-of-type(2) { bottom: 60px; left: 180px; width: 90px; }
.scene-jelly .platform:nth-of-type(3) { bottom: 80px; left: 310px; width: 80px; }
.scene-jelly .body { position: absolute; bottom: 60px; left: 90px; width: 34px; height: 28px; background: var(--coral); border-radius: 50%; animation: jelly-bounce 1.4s ease-in-out infinite; }
.scene-jelly .body::before, .scene-jelly .body::after { content: ''; position: absolute; width: 5px; height: 6px; background: var(--white); top: 8px; }
.scene-jelly .body::before { left: 8px; }
.scene-jelly .body::after { right: 8px; }
@keyframes jelly-bounce {
  0%, 100% { transform: translateY(0) scale(1, 1); }
  50% { transform: translateY(-8px) scale(1.1, 0.9); }
}
.scene-jelly .arrow { position: absolute; bottom: 100px; left: 100px; color: var(--sun); font-family: 'Press Start 2P', monospace; font-size: 16px; opacity: 0.7; }

/* BURGER scene */
.scene-burger .layer { position: absolute; left: 50%; transform: translateX(-50%); border-radius: 6px; }
.scene-burger .l1 { top: 32px; width: 130px; height: 14px; background: var(--sun); }
.scene-burger .l2 { top: 48px; width: 138px; height: 10px; background: var(--coral); }
.scene-burger .l3 { top: 60px; width: 128px; height: 8px; background: var(--cyan); }
.scene-burger .l4 { top: 70px; width: 134px; height: 12px; background: var(--sun); }
.scene-burger .l5 { top: 84px; width: 130px; height: 8px; background: var(--coral); }
.scene-burger .l6 { top: 94px; width: 140px; height: 18px; background: var(--sun); }
.scene-burger .sparkle { position: absolute; width: 0; height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-bottom: 12px solid var(--cyan); }
.scene-burger .sparkle:nth-of-type(7) { top: 60px; left: 60px; }
.scene-burger .sparkle:nth-of-type(8) { top: 60px; right: 60px; }

/* MAZE scene */
.scene-maze {
  background-image:
    linear-gradient(0deg, rgba(0, 229, 255, 0.4) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.4) 1px, transparent 1px);
  background-size: 20px 20px;
}
.scene-maze .num404 {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Press Start 2P', monospace;
  font-size: 48px;
  color: var(--sun);
  letter-spacing: 4px;
}

/* ==========================================
   NOW BUILDING
   ========================================== */
.building-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.building-card {
  background: var(--deep);
  border: 2px solid var(--line);
  padding: 28px;
}
.building-card.status-building { border-color: var(--sun); }
.building-card.status-planning { border-color: var(--cyan); }
.building-status-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.building-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.status-building .building-status-dot { background: var(--sun); }
.status-planning .building-status-dot { background: var(--cyan); }
.building-status-label {
  font-family: 'Press Start 2P', monospace;
  font-size: 12px;
  letter-spacing: 1px;
}
.status-building .building-status-label { color: var(--sun); }
.status-planning .building-status-label { color: var(--cyan); }
.building-genre {
  font-family: 'Press Start 2P', monospace;
  font-size: 11px;
  color: var(--pale);
  opacity: 0.7;
  letter-spacing: 1px;
}
.building-eta {
  font-family: 'Press Start 2P', monospace;
  font-size: 11px;
  color: var(--pale);
  opacity: 0.6;
  letter-spacing: 1px;
  margin-left: auto;
}
.building-name {
  font-family: 'Press Start 2P', monospace;
  font-size: 32px;
  letter-spacing: 2px;
  color: var(--white);
  margin-bottom: 24px;
}
.building-desc {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: var(--pale);
  line-height: 1.5;
  margin-bottom: 28px;
}
.progress-bar {
  height: 6px;
  background: var(--mid);
  position: relative;
  margin-bottom: 12px;
}
.progress-fill {
  height: 100%;
  background: var(--sun);
  transition: width 1s ease-out;
}
.status-planning .progress-fill { background: var(--cyan); }
.progress-label {
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  color: var(--pale);
  opacity: 0.7;
  letter-spacing: 1px;
}

@media (max-width: 768px) {
  .building-grid { grid-template-columns: 1fr; }
  .building-name { font-size: 24px; }
}

/* ==========================================
   SHOP
   ========================================== */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.product-card {
  background: var(--mid);
  border: 2px solid var(--line);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s;
}
.product-card:hover { transform: translateY(-4px); }
.product-visual {
  height: 170px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: 38px 38px;
  background-image:
    radial-gradient(circle at 6px 6px, rgba(10, 25, 71, 0.15) 3px, transparent 0);
}
.product-visual.bg-sun { background-color: var(--sun); }
.product-visual.bg-cyan { background-color: var(--cyan); }
.product-visual.bg-coral { background-color: var(--coral); }
.product-icon {
  font-family: 'Press Start 2P', monospace;
  font-size: 56px;
  color: var(--deep);
}
.product-body {
  padding: 18px 20px 22px;
}
.product-name {
  font-family: 'Press Start 2P', monospace;
  font-size: 13px;
  letter-spacing: 1px;
  color: var(--white);
  margin-bottom: 8px;
}
.product-sub {
  font-family: 'Pixelify Sans', monospace;
  font-weight: 700;
  font-size: 13px;
  color: var(--pale);
  opacity: 0.7;
  margin-bottom: 14px;
}
.product-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.product-price {
  font-family: 'Press Start 2P', monospace;
  font-size: 22px;
  letter-spacing: 1px;
}
.price-sun { color: var(--sun); }
.price-cyan { color: var(--cyan); }
.price-coral { color: var(--coral); }
.product-buy {
  font-family: 'Press Start 2P', monospace;
  font-size: 11px;
  color: var(--white);
  opacity: 0.8;
  letter-spacing: 1px;
}

@media (max-width: 1024px) {
  .shop-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .shop-grid { grid-template-columns: 1fr; }
}

/* ==========================================
   DEV LOG
   ========================================== */
.devlog-grid {
  display: grid;
  grid-template-columns: 360px 1fr 1fr 1fr;
  gap: 24px;
}
.devlog-intro {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.devlog-intro .section-label { color: var(--sun); }
.devlog-intro .section-title { font-size: 64px; }
.devlog-intro .section-sub { line-height: 1.8; margin-bottom: 32px; }
.devlog-card {
  background: var(--deep);
  border: 2px solid var(--line);
  padding: 24px;
  display: flex;
  flex-direction: column;
}
.devlog-build {
  font-family: 'Press Start 2P', monospace;
  font-size: 12px;
  color: var(--sun);
  letter-spacing: 1px;
}
.devlog-tag {
  font-family: 'Press Start 2P', monospace;
  font-size: 11px;
  color: var(--cyan);
  letter-spacing: 1px;
}
.devlog-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}
.devlog-date {
  font-family: 'Pixelify Sans', monospace;
  font-weight: 700;
  font-size: 12px;
  color: var(--pale);
  opacity: 0.6;
  margin-bottom: 32px;
}
.devlog-title {
  font-family: 'Pixelify Sans', monospace;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.3;
  color: var(--white);
  margin-bottom: auto;
  letter-spacing: -0.5px;
}
.devlog-read {
  font-family: 'Press Start 2P', monospace;
  font-size: 11px;
  color: var(--cyan);
  letter-spacing: 1px;
  margin-top: 24px;
}

@media (max-width: 1024px) {
  .devlog-grid { grid-template-columns: 1fr 1fr; }
  .devlog-intro { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .devlog-grid { grid-template-columns: 1fr; }
}

/* ==========================================
   PHILOSOPHY BANNER
   ========================================== */
.philosophy-banner {
  background: var(--sun);
  padding: 40px 0;
  text-align: center;
  font-family: 'Press Start 2P', monospace;
  font-size: 14px;
  color: var(--deep);
  letter-spacing: 3px;
  position: relative;
  overflow: hidden;
}
.philosophy-banner span {
  display: inline-block;
  animation: scroll-text 24s linear infinite;
  white-space: nowrap;
}
.philosophy-banner span::after {
  content: '   ◆   GAMES ARE FUN. EVERYONE SHOULD GET TO PLAY.   ◆   GAMES ARE FUN. EVERYONE SHOULD GET TO PLAY.';
}
@keyframes scroll-text {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
  background: var(--deep);
  padding: 40px 0;
}
.footer .container {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 40px;
  align-items: center;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-meta {
  font-family: 'Pixelify Sans', monospace;
  font-weight: 700;
  font-size: 13px;
  color: var(--pale);
  opacity: 0.7;
  letter-spacing: 1px;
}
.footer-socials {
  display: flex;
  gap: 24px;
}
.footer-social {
  font-family: 'Press Start 2P', monospace;
  font-size: 11px;
  color: var(--sun);
  letter-spacing: 1px;
  transition: opacity 0.2s;
}
.footer-social:hover { opacity: 0.7; }

@media (max-width: 768px) {
  .footer .container { grid-template-columns: 1fr; gap: 20px; text-align: center; }
  .footer-logo, .footer-socials { justify-content: center; }
  .footer-socials { flex-wrap: wrap; gap: 16px; }
}

/* ==========================================
   ABOUT PAGE
   ========================================== */
.about-hero {
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 60px;
  align-items: start;
}
.about-intro {
  font-family: 'Pixelify Sans', monospace;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.7;
  color: var(--white);
  opacity: 0.9;
  margin: 32px 0 40px;
}
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 48px;
}
.stat-card {
  background: var(--deep);
  border: 2px solid var(--sun);
  padding: 20px;
}
.stat-value {
  font-family: 'Press Start 2P', monospace;
  font-size: 32px;
  color: var(--sun);
  letter-spacing: 2px;
  margin-bottom: 12px;
}
.stat-label {
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  color: var(--white);
  opacity: 0.7;
  letter-spacing: 1px;
}
.avatar-frame {
  background: var(--deep);
  border: 3px solid var(--cyan);
  height: 540px;
  position: relative;
  overflow: hidden;
  padding: 32px;
}
.avatar-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.avatar-stars span {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--white);
  opacity: 0.5;
}
.avatar-img {
  display: block;
  margin: 80px auto 0;
  width: 280px;
  height: 320px;
  position: relative;
  image-rendering: pixelated;
}
.avatar-caption {
  position: absolute;
  bottom: 32px;
  left: 32px;
}
.avatar-caption .label {
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  color: var(--cyan);
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.avatar-caption .name {
  font-family: 'Pixelify Sans', monospace;
  font-weight: 700;
  font-size: 18px;
  color: var(--white);
}

@media (max-width: 1024px) {
  .about-hero { grid-template-columns: 1fr; }
  .avatar-frame { max-width: 440px; margin: 0 auto; }
}
@media (max-width: 768px) {
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .stat-value { font-size: 24px; }
}

/* Origin story columns */
.origin-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.origin-card {
  background: var(--mid);
  border: 2px solid var(--line);
  padding: 28px;
}
.origin-num {
  font-family: 'Press Start 2P', monospace;
  font-size: 48px;
  color: var(--sun);
  letter-spacing: 2px;
  margin-bottom: 28px;
}
.origin-when {
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  color: var(--cyan);
  letter-spacing: 2px;
  margin-bottom: 8px;
}
.origin-title {
  font-family: 'Pixelify Sans', monospace;
  font-weight: 700;
  font-size: 36px;
  color: var(--white);
  letter-spacing: -1px;
  margin-bottom: 16px;
}
.origin-body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: var(--pale);
  line-height: 1.5;
}

@media (max-width: 768px) {
  .origin-grid { grid-template-columns: 1fr; }
  .origin-title { font-size: 28px; }
}

/* Manifesto */
.manifesto {
  background: var(--sun);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.manifesto-quote {
  font-family: 'Pixelify Sans', monospace;
  font-weight: 700;
  font-size: 56px;
  line-height: 1.25;
  letter-spacing: -1px;
  color: var(--deep);
  max-width: 1100px;
}
.manifesto-sig {
  font-family: 'Press Start 2P', monospace;
  font-size: 14px;
  color: var(--deep);
  letter-spacing: 2px;
  margin-top: 32px;
}

@media (max-width: 768px) {
  .manifesto-quote { font-size: 32px; }
}

/* Inspirations */
.insp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.insp-card {
  background: var(--deep);
  border: 2px solid;
  overflow: hidden;
}
.insp-card.color-sun { border-color: var(--sun); }
.insp-card.color-cyan { border-color: var(--cyan); }
.insp-card.color-coral { border-color: var(--coral); }
.insp-visual {
  height: 110px;
  background: var(--mid);
  position: relative;
  overflow: hidden;
}
.insp-body { padding: 18px; }
.insp-name {
  font-family: 'Press Start 2P', monospace;
  font-size: 13px;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.insp-name.color-sun { color: var(--sun); }
.insp-name.color-cyan { color: var(--cyan); }
.insp-name.color-coral { color: var(--coral); }
.insp-by {
  font-family: 'Pixelify Sans', monospace;
  font-weight: 700;
  font-size: 13px;
  color: var(--pale);
  opacity: 0.7;
  margin-bottom: 14px;
}
.insp-note {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--white);
  opacity: 0.85;
  line-height: 1.5;
}

@media (max-width: 1024px) {
  .insp-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .insp-grid { grid-template-columns: 1fr; }
}

/* Stack */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.stack-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--mid);
  border: 2px solid var(--line);
  padding: 12px;
}
.stack-icon {
  width: 40px;
  height: 40px;
  background: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Press Start 2P', monospace;
  font-size: 18px;
  color: var(--deep);
  flex-shrink: 0;
}
.stack-text { flex: 1; }
.stack-name {
  font-family: 'Press Start 2P', monospace;
  font-size: 13px;
  color: var(--white);
  letter-spacing: 1px;
  margin-bottom: 4px;
}
.stack-note {
  font-family: 'Pixelify Sans', monospace;
  font-weight: 700;
  font-size: 13px;
  color: var(--cyan);
}

@media (max-width: 768px) {
  .stack-grid { grid-template-columns: 1fr; }
}

/* Connect socials */
.connect-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 600px;
  margin-left: auto;
}
.connect-btn {
  font-family: 'Press Start 2P', monospace;
  font-size: 11px;
  letter-spacing: 1px;
  padding: 18px 24px;
  border: 2px solid;
  background: transparent;
  display: inline-block;
  text-align: center;
  transition: transform 0.15s, box-shadow 0.15s;
}
.connect-btn:hover {
  transform: translate(-2px, -2px);
}
.connect-btn.color-sun { color: var(--sun); border-color: var(--sun); box-shadow: 0 0 0 transparent; }
.connect-btn.color-cyan { color: var(--cyan); border-color: var(--cyan); }
.connect-btn.color-coral { color: var(--coral); border-color: var(--coral); }
.connect-btn.color-sun:hover { box-shadow: 4px 4px 0 var(--sun); }
.connect-btn.color-cyan:hover { box-shadow: 4px 4px 0 var(--cyan); }
.connect-btn.color-coral:hover { box-shadow: 4px 4px 0 var(--coral); }

.connect-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: end;
}
@media (max-width: 1024px) {
  .connect-row { grid-template-columns: 1fr; }
  .connect-grid { margin-left: 0; max-width: 100%; }
}

/* ==========================================
   404 PAGE — animated glitch
   ========================================== */
.page-404 {
  background: var(--deep);
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}
.page-404::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    0deg,
    transparent 0,
    transparent 3px,
    rgba(255, 255, 255, 0.025) 3px,
    rgba(255, 255, 255, 0.025) 4px
  );
  pointer-events: none;
  z-index: 1;
  animation: scanlines 8s linear infinite;
}
@keyframes scanlines {
  from { background-position-y: 0; }
  to { background-position-y: 100px; }
}
.page-404 .nav-link {
  color: var(--coral);
  opacity: 0.5;
}
.page-404 .nav { background: var(--deep); border-bottom-color: rgba(255, 112, 99, 0.3); }

/* Static noise overlay */
.static-noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0.4;
}
.static-noise span {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--white);
  animation: static-flicker 0.3s infinite;
}
@keyframes static-flicker {
  0%, 100% { opacity: 0; }
  50% { opacity: 0.6; }
}

/* The huge 404 */
.glitch-404 {
  position: relative;
  text-align: center;
  padding: 80px 0 40px;
  z-index: 5;
}
.glitch-404 .num {
  font-family: 'Press Start 2P', monospace;
  font-size: 240px;
  letter-spacing: 12px;
  color: var(--white);
  position: relative;
  display: inline-block;
  line-height: 1;
}
.glitch-404 .num::before,
.glitch-404 .num::after {
  content: '404';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}
.glitch-404 .num::before {
  color: var(--cyan);
  animation: glitch-404-cyan 2.5s infinite;
}
.glitch-404 .num::after {
  color: var(--coral);
  animation: glitch-404-coral 2.5s infinite;
}
@keyframes glitch-404-cyan {
  0%, 100% { transform: translate(-8px, 0); opacity: 0.85; }
  20% { transform: translate(-15px, 4px); opacity: 0.95; }
  40% { transform: translate(-3px, -6px); opacity: 0.75; }
  60% { transform: translate(-12px, 8px); }
  80% { transform: translate(-6px, -2px); }
}
@keyframes glitch-404-coral {
  0%, 100% { transform: translate(8px, 4px); opacity: 0.85; }
  20% { transform: translate(15px, -4px); opacity: 0.95; }
  40% { transform: translate(3px, 8px); opacity: 0.75; }
  60% { transform: translate(12px, -8px); }
  80% { transform: translate(6px, 2px); }
}

/* Yellow ghost layer */
.glitch-404 .yellow-ghost {
  position: absolute;
  top: 80px;
  left: 0;
  right: 0;
  font-family: 'Press Start 2P', monospace;
  font-size: 240px;
  letter-spacing: 12px;
  color: var(--sun);
  opacity: 0.6;
  pointer-events: none;
  animation: yellow-shift 3s ease-in-out infinite;
  z-index: -1;
}
@keyframes yellow-shift {
  0%, 100% { transform: translate(4px, -2px); }
  50% { transform: translate(-6px, 3px); }
}

/* Glitch bands */
.glitch-band {
  position: absolute;
  left: 0;
  right: 0;
  height: 6px;
  z-index: 6;
  pointer-events: none;
  animation: band-shift 1.5s linear infinite;
}
.glitch-band:nth-of-type(1) { top: 30%; background: var(--cyan); height: 4px; animation-delay: 0s; }
.glitch-band:nth-of-type(2) { top: 45%; background: var(--coral); height: 8px; animation-delay: 0.4s; }
.glitch-band:nth-of-type(3) { top: 55%; background: var(--sun); height: 5px; animation-delay: 0.8s; }
.glitch-band:nth-of-type(4) { top: 65%; background: var(--cyan); height: 3px; animation-delay: 1.2s; }
@keyframes band-shift {
  0% { transform: translateX(-100%); opacity: 0.6; }
  10% { opacity: 0.6; }
  50% { transform: translateX(0); opacity: 0.6; }
  90% { opacity: 0.6; }
  100% { transform: translateX(100%); opacity: 0.6; }
}

.game-over {
  font-family: 'Press Start 2P', monospace;
  font-size: 24px;
  color: var(--sun);
  letter-spacing: 4px;
  text-align: center;
  margin: 24px 0 16px;
  z-index: 5;
  position: relative;
}
.glitch-desc {
  font-family: 'Pixelify Sans', monospace;
  font-weight: 700;
  font-size: 22px;
  color: var(--white);
  text-align: center;
  line-height: 1.4;
  margin-bottom: 40px;
  z-index: 5;
  position: relative;
  opacity: 0.9;
}
.continue-row {
  text-align: center;
  margin-bottom: 32px;
  z-index: 5;
  position: relative;
}
.continue-text {
  font-family: 'Press Start 2P', monospace;
  font-size: 18px;
  color: var(--sun);
  letter-spacing: 3px;
}
.cursor {
  display: inline-block;
  width: 16px;
  height: 24px;
  background: var(--sun);
  margin-left: 12px;
  vertical-align: middle;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}
.back-cta {
  text-align: center;
  position: relative;
  z-index: 5;
  margin-bottom: 60px;
}
.back-btn {
  position: relative;
  display: inline-block;
  padding: 22px 40px;
  background: var(--sun);
  color: var(--deep);
  font-family: 'Press Start 2P', monospace;
  font-size: 14px;
  letter-spacing: 2px;
  border: 2px solid var(--deep);
  transition: transform 0.15s;
}
.back-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--cyan);
  z-index: -1;
  transform: translate(-6px, 6px);
  opacity: 0.85;
}
.back-btn:hover {
  transform: translate(-3px, -3px);
}

/* Falling debris */
.debris-field {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  overflow: hidden;
}
.debris {
  position: absolute;
  animation: fall var(--dur, 8s) linear infinite;
  animation-delay: var(--delay, 0s);
}
@keyframes fall {
  0% { transform: translateY(-50px) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(110vh) rotate(720deg); opacity: 0; }
}

/* Broken cube (left side art) */
.broken-cube {
  position: absolute;
  left: 60px;
  top: 280px;
  width: 240px;
  height: 240px;
  z-index: 4;
}
.broken-piece {
  position: absolute;
  background: var(--sun);
  animation: piece-jiggle 1.2s ease-in-out infinite;
}
.broken-piece::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 10px;
  background: var(--deep);
  top: 30%;
  left: 30%;
}
@keyframes piece-jiggle {
  0%, 100% { transform: rotate(var(--rot, 0deg)) translate(0, 0); }
  50% { transform: rotate(calc(var(--rot, 0deg) + 4deg)) translate(2px, -2px); }
}

/* Error log terminal */
.error-log {
  position: absolute;
  right: 60px;
  top: 280px;
  width: 280px;
  background: rgba(13, 18, 38, 0.95);
  border: 2px solid var(--coral);
  padding: 20px;
  z-index: 4;
}
.error-log-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  color: var(--coral);
  letter-spacing: 1px;
  margin-bottom: 16px;
}
.error-log-line {
  font-family: 'Pixelify Sans', monospace;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 4px;
  opacity: 0;
  animation: type-in 0.3s forwards;
}
.error-log-line:nth-child(2) { animation-delay: 0.3s; color: var(--cyan); }
.error-log-line:nth-child(3) { animation-delay: 0.6s; color: var(--pale); }
.error-log-line:nth-child(4) { animation-delay: 0.9s; color: var(--cyan); }
.error-log-line:nth-child(5) { animation-delay: 1.2s; color: var(--pale); }
.error-log-line:nth-child(6) { animation-delay: 1.5s; color: var(--cyan); }
.error-log-line:nth-child(7) { animation-delay: 1.8s; color: var(--pale); }
.error-log-line:nth-child(8) { animation-delay: 2.1s; color: var(--cyan); }
.error-log-line:nth-child(9) { animation-delay: 2.4s; color: var(--pale); }
@keyframes type-in {
  to { opacity: 1; }
}
.error-log-cursor {
  display: inline-block;
  width: 8px;
  height: 14px;
  background: var(--sun);
  vertical-align: middle;
  animation: blink 1s steps(1) infinite;
  margin-top: 8px;
  opacity: 0;
  animation: type-in 0.3s forwards 2.7s, blink 1s steps(1) infinite 2.7s;
}

@media (max-width: 1024px) {
  .glitch-404 .num,
  .glitch-404 .yellow-ghost { font-size: 160px; letter-spacing: 6px; }
  .broken-cube, .error-log { display: none; }
}
@media (max-width: 768px) {
  .glitch-404 .num,
  .glitch-404 .yellow-ghost { font-size: 100px; letter-spacing: 4px; }
  .glitch-404 .yellow-ghost { top: 60px; }
  .game-over { font-size: 16px; }
  .glitch-desc { font-size: 16px; }
}

/* ==========================================
   PIXEL AVATAR (about page)
   ========================================== */
.pixel-avatar {
  display: grid;
  grid-template-columns: repeat(14, 18px);
  grid-template-rows: repeat(18, 18px);
  width: max-content;
  margin: 60px auto 0;
}
.px {
  width: 18px;
  height: 18px;
}
.px-skin { background: #FFD9B3; }
.px-hair { background: #995722; }
.px-out { background: var(--deep); }
.px-shirt { background: var(--cyan); }
.px-detail { background: var(--sun); }
.px-eye { background: var(--white); }
.px-pupil { background: var(--deep); }
.px-mouth { background: var(--coral); }
.px-headphones { background: var(--sun); }

@media (max-width: 768px) {
  .pixel-avatar {
    grid-template-columns: repeat(14, 14px);
    grid-template-rows: repeat(18, 14px);
  }
  .px { width: 14px; height: 14px; }
}
