/* Continue Arcade kit. Shared by the hub (/) and every sub-project page.
   Sub-projects: link this file as /kit/kit.css and set --accent on :root. */

@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Pixelify+Sans:wght@400;600;700&display=swap');

:root {
  --navy: #0b1446;
  --grid: rgba(255, 255, 255, .05);
  --yellow: #ffd200;
  --cyan: #4de3ff;
  --red: #e0202a;
  --white: #ffffff;
  --black: #000000;
  --accent: var(--yellow);
  --gutter: 24px;
  --px: 'Press Start 2P', 'Courier New', monospace;
  --pf: 'Pixelify Sans', 'Trebuchet MS', sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  color: var(--white);
  font-family: var(--pf);
  font-size: 16px;
  line-height: 1.5;
  background-color: var(--navy);
  background-image:
    repeating-linear-gradient(90deg, transparent 0 30px, var(--grid) 30px 32px),
    repeating-linear-gradient(0deg, transparent 0 30px, var(--grid) 30px 32px);
}

a { color: var(--cyan); }

.px { font-family: var(--px); line-height: 1.6; }
.pf { font-family: var(--pf); }

.pixel img, .pixel video, img.pixel, video.pixel { image-rendering: pixelated; }

/* 4px notched pixel border, drawn with shadows so corners stay square-cut */
.pxborder   { box-shadow: 0 -4px 0 0 var(--black), 0 4px 0 0 var(--black), -4px 0 0 0 var(--black), 4px 0 0 0 var(--black); }
.pxborder-w { box-shadow: 0 -4px 0 0 var(--white), 0 4px 0 0 var(--white), -4px 0 0 0 var(--white), 4px 0 0 0 var(--white); }

.badge {
  display: inline-block;
  padding: 4px 7px;
  font-family: var(--px);
  font-size: 10px;
  line-height: 1;
  color: var(--black);
  background: var(--white);
  vertical-align: middle;
}
.badge.ext  { background: var(--yellow); }
.badge.port { background: var(--cyan); }

.btn {
  display: inline-block;
  padding: 12px 16px;
  margin: 4px;
  font-family: var(--px);
  font-size: 10px;
  line-height: 1;
  color: var(--black);
  background: var(--yellow);
  text-decoration: none;
  box-shadow: 0 -4px 0 0 var(--black), 0 4px 0 0 var(--black), -4px 0 0 0 var(--black), 4px 0 0 0 var(--black);
}
.btn.alt { background: var(--white); }
.btn:hover, .btn:focus-visible { background: var(--cyan); outline: none; }

.scan {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .45) 0 2px, rgba(0, 0, 0, .15) 2px 4px);
  pointer-events: none;
}

.blink { animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* top bar used by sub-project pages */
.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  padding: 14px var(--gutter);
  background: var(--black);
}
.nav .home {
  font-family: var(--px);
  font-size: 10px;
  color: var(--yellow);
  text-decoration: none;
  margin-right: auto;
}
.nav a:not(.home) {
  font-family: var(--pf);
  font-size: 15px;
  color: var(--cyan);
  text-decoration: none;
}
.nav a[aria-current="page"] { color: var(--yellow); }
.nav a:hover { text-decoration: underline; }

/* Cabinet page layout: framed screen left, copy right, status bar, thumbs, foot */
.cabinet {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 28px;
  align-items: center;
  padding: 28px var(--gutter);
  max-width: 1280px;
  margin: 0 auto;
}
.cabinet .screen {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--black);
  overflow: hidden;
  margin: 4px;
}
.cabinet .screen img, .cabinet .screen video {
  display: block; width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated;
}
.cabinet .screen .tag {
  position: absolute; left: 12px; bottom: 10px;
  font-family: var(--px); font-size: 10px; color: var(--yellow); text-shadow: 2px 2px 0 var(--black);
}
.cabinet .copy { min-width: 0; }
.cabinet .badges { margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.cabinet h1 {
  margin: 0;
  font-family: var(--px); font-weight: 400;
  font-size: clamp(18px, 3vw, 30px); line-height: 1.4;
  color: var(--accent); text-shadow: 3px 3px 0 var(--black);
  overflow-wrap: anywhere;
}
.cabinet .platform { margin: 10px 0 0; font-weight: 700; font-size: 15px; color: var(--cyan); }
.cabinet .intro { margin: 14px 0 0; font-size: 17px; line-height: 1.5; }
.cabinet .actions { margin: 20px -4px 0; display: flex; flex-wrap: wrap; gap: 8px 12px; }

.status {
  background: var(--black);
  margin: 0 var(--gutter);
  padding: 16px 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
@supports (width: min(1px, 2px)) {
  .status { width: min(1280px, calc(100% - 2 * var(--gutter))); margin-left: auto; margin-right: auto; }
}
.feat { display: flex; gap: 12px; min-width: 0; }
.feat .ico {
  width: 32px; height: 32px; flex: none; margin: 3px;
  background: var(--accent);
  box-shadow: 0 -3px 0 0 var(--black), 0 3px 0 0 var(--black), -3px 0 0 0 var(--black), 3px 0 0 0 var(--black);
  outline: 3px solid var(--white);
  outline-offset: 3px;
}
.feat b { display: block; font-size: 16px; line-height: 1.3; overflow-wrap: anywhere; }
.feat span { display: block; font-size: 14px; line-height: 1.4; opacity: .85; overflow-wrap: anywhere; }

.gallery-title {
  max-width: 1280px; margin: 24px auto 0; padding: 0 var(--gutter);
  font-family: var(--px); font-size: 10px; color: var(--yellow);
}
.thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding: 12px var(--gutter) 28px;
  max-width: 1280px; margin: 0 auto;
}
.thumbs img {
  display: block; width: calc(100% - 8px); height: auto; margin: 4px; aspect-ratio: 4 / 3; object-fit: cover; image-rendering: pixelated; background: var(--black);
}

.foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  padding: 16px var(--gutter);
  background: var(--black);
  font-family: var(--px); font-size: 10px; line-height: 1.8;
}
.foot a { color: var(--cyan); text-decoration: none; }
.foot a:hover { text-decoration: underline; }

@media (max-width: 820px) {
  .cabinet { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 700px) {
  :root { --gutter: 16px; }
  .status { grid-template-columns: minmax(0, 1fr); }
  .thumbs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .blink { animation: none; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
