:root {
  --paper: #fff6ee;
  --ink: #2a1033;
  --muted: #6e5876;
  --sun: #ffe14a;
  --pink: #ff4d88;
  --grape: #6d35e0;
  --grape-deep: #3a1466;
  --orange: #ff9a1f;
  --line: #f0d0e2;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 108px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  overflow-x: clip;
}
a { color: inherit; text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 3px; }
a:focus-visible { outline: 3px solid var(--grape); outline-offset: 3px; }
.skip {
  position: absolute;
  top: -80px;
  left: 16px;
  z-index: 6;
  padding: 12px;
  background: white;
}
.skip:focus { top: 12px; }
header, main, footer { max-width: 1440px; margin: auto; }
header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 12px;
  padding: 8px 4% 10px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.wordmark {
  min-height: 44px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.04em;
}
.wordmark-caption { display: none; }
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  background: #111;
  box-shadow: 0 0 0 3px var(--grape);
  animation: bob 2.4s ease-in-out infinite;
}
nav { display: flex; width: 100%; gap: 6px; }
nav a {
  flex: 1;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: white;
}
nav a:nth-child(1) { background: #ffe9a8; }
nav a:nth-child(2) { background: #ffd6e7; }
nav a:nth-child(3) { background: #eadfff; }
main > section { margin: 0 4%; padding: 36px 0; }
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 12px 3% 0;
  padding: 22px 5% 16px;
  background: var(--sun);
  border: 3px solid var(--ink);
  border-radius: 28px;
  box-shadow: 6px 6px 0 var(--pink);
  animation: pop-in 0.8s cubic-bezier(.2, 1.35, .3, 1) both, sticker 2.8s ease-in-out 0.8s infinite;
}
.hero::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: -55%;
  top: -90%;
  width: 210%;
  aspect-ratio: 1;
  background: repeating-radial-gradient(circle at center, transparent 0 8px, rgba(255, 255, 255, 0.9) 8px 13px, transparent 13px 22px);
  animation: burst 14s linear infinite;
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  left: 8%;
  top: 16%;
  width: 12px;
  height: 12px;
  background: var(--pink);
  box-shadow: 34px 64px 0 var(--grape), 78px 12px 0 var(--orange), 150px 78px 0 white, 210px 22px 0 var(--pink);
  animation: bits 4.8s ease-in-out infinite;
  pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }
.eyebrow {
  font: 11px/1.5 monospace;
  letter-spacing: 0.12em;
  margin: 0 0 18px;
}
.hero .eyebrow { display: flex; gap: 10px; align-items: center; }
.eyebrow > span {
  width: 8px;
  height: 8px;
  background: var(--pink);
  animation: pulse 1.8s ease-in-out infinite;
}
h1 {
  position: relative;
  font-size: clamp(48px, 14.2vw, 128px);
  line-height: 0.86;
  letter-spacing: -0.065em;
  font-weight: 900;
  margin: 22px 0 18px;
}
h1 > span { font-weight: 500; }
h1 > b {
  display: inline-block;
  margin-left: 0.06em;
  font-size: 0.42em;
  line-height: 1;
  color: var(--pink);
  animation: twinkle 3.6s ease-in-out infinite;
}
.hero-bottom { display: block; margin-bottom: 8px; }
.hero-bottom p { font-size: 17px; line-height: 1.45; margin: 0; }
.hero-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 8px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  border-bottom: 2px solid var(--ink);
}
.hero-link span { margin-left: 10px; }
.status-line { max-width: 38rem; font-size: 16px; line-height: 1.5; margin: 16px 0; }
.hero-footer {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-top: 1px solid rgba(42, 16, 51, 0.28);
  padding-top: 12px;
  font: 10px/1.4 monospace;
  letter-spacing: 0.08em;
}
.section-heading { display: block; margin-bottom: 22px; }
h2 {
  font-size: clamp(32px, 8.5vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.05em;
  margin: 0;
  font-weight: 800;
  padding-bottom: 7px;
  background-image: linear-gradient(var(--pink), var(--pink));
  background-repeat: no-repeat;
  background-position: left bottom;
  background-size: 0 5px;
  animation: draw 0.7s ease 0.15s forwards;
}
.section-heading > p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 36rem;
  margin: 12px 0 0;
}
#game-wall { display: grid; grid-template-columns: 1fr; gap: 28px; }
.game { animation: rise 0.7s cubic-bezier(.2, .8, .2, 1) backwards; transition: transform 0.22s ease; }
.game:hover, .game:focus-within { transform: translateY(-6px); }
.game:active { transform: translateY(-1px) scale(0.99); }
.game:nth-child(2) { animation-delay: 0.06s; }
.game:nth-child(3) { animation-delay: 0.12s; }
.game:nth-child(4) { animation-delay: 0.18s; }
.game:nth-child(5) { animation-delay: 0.24s; }
.game-art {
  height: 210px;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #fffaf6;
  border: 2px solid var(--ink);
  border-radius: 18px;
}
.game-art:after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(#ffffff22 1px, transparent 1px), linear-gradient(90deg, #ffffff22 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
}
.number, .platform {
  position: absolute;
  z-index: 2;
  max-width: calc(100% - 20px);
  background: rgba(255, 246, 238, 0.94);
  border-radius: 999px;
  padding: 4px 8px;
}
.number { left: 10px; top: 10px; font: 12px monospace; color: var(--pink); }
.platform {
  left: 10px;
  bottom: 10px;
  font: 10px monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.pixel-mark { position: relative; width: 100px; height: 100px; }
.pixel-mark i { position: absolute; width: 33px; height: 33px; background: currentColor; }
.pixel-mark i:nth-child(1) { left: 33px; top: 0; }
.pixel-mark i:nth-child(2) { left: 0; top: 33px; }
.pixel-mark i:nth-child(3) { left: 33px; top: 33px; }
.pixel-mark i:nth-child(4) { left: 66px; top: 33px; }
.pixel-mark i:nth-child(5) { left: 33px; top: 66px; }
.johnny-ace .game-art { background: #f4e8ff; color: var(--grape); }
.johnny-ace .pixel-mark { transform: rotate(-12deg); filter: drop-shadow(12px 14px 0 #d7c2f5); }
.johnny-ace .pixel-mark i { animation: hop 1.5s ease-in-out infinite; }
.johnny-ace .pixel-mark i:nth-child(2) { animation-delay: 0.12s; }
.johnny-ace .pixel-mark i:nth-child(3) { animation-delay: 0.24s; }
.johnny-ace .pixel-mark i:nth-child(4) { animation-delay: 0.36s; }
.johnny-ace .pixel-mark i:nth-child(5) { animation-delay: 0.48s; }
.johnny-ace .pixel-mark i:nth-child(1) { top: -16px; left: 8px; }
.game-copy { padding-top: 14px; }
.game-copy h3 { font-size: 26px; letter-spacing: -0.04em; margin: 0 0 8px; }
.game-copy p { font-size: 15px; color: var(--muted); line-height: 1.55; margin: 0; }
.game-copy .memory { color: var(--ink); font-size: 16px; line-height: 1.45; margin: 0 0 8px; }
.links { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 12px; font-size: 14px; }
.links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  background: #ffe3ef;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.18s ease, background-color 0.18s ease;
}
.links a:hover, .links a:focus-visible { transform: translateY(-3px); background: #ffd0e4; }
.links a:active { transform: translateY(1px) scale(0.98); }
.archive-note, .caption { font: 12px/1.5 monospace; color: var(--muted); }
.caption { margin: 18px 0 0; }
#trailers { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
#trailers h2 { font-size: clamp(28px, 8vw, 40px); }
#trailers .eyebrow { margin-bottom: 8px; }
.trailer-links { display: grid; gap: 10px; margin-top: 16px; }
.trailer-links a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 14px;
  border-radius: 16px;
  background: white;
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--orange);
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.trailer-links a:hover, .trailer-links a:focus-visible { transform: translate(-3px, -3px); box-shadow: 7px 7px 0 var(--pink); }
.trailer-links a:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--orange); }
#credit-wall { list-style: none; padding: 0; margin: 8px 0 0; }
#credit-wall li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 44px;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 8px;
  border-top: 1px solid var(--line);
  padding: 12px 0;
}
#credit-wall li:last-child { border-bottom: 1px solid var(--line); }
.credit-index { font: 12px monospace; color: var(--pink); }
#credit-wall h3 { margin: 0; font-size: 22px; letter-spacing: -0.04em; }
#credit-wall p { grid-column: 2; margin: 0; color: var(--muted); font-size: 14px; }
.credit-portrait, .credit-pixel {
  grid-column: 3;
  grid-row: 1 / span 2;
  justify-self: end;
}
.credit-portrait {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid var(--pink);
  background: white;
  animation: pop-face 0.65s cubic-bezier(.2, 1.5, .3, 1) backwards, ring 3.6s ease-in-out infinite;
}
#credit-wall li { animation: rise 0.55s ease backwards; }
#credit-wall li:nth-child(2) { animation-delay: 0.05s; }
#credit-wall li:nth-child(3) { animation-delay: 0.1s; }
#credit-wall li:nth-child(4) { animation-delay: 0.15s; }
#credit-wall li:nth-child(5) { animation-delay: 0.2s; }
#credit-wall li:nth-child(6) { animation-delay: 0.25s; }
#credit-wall li:nth-child(7) { animation-delay: 0.3s; }
#credit-wall li:nth-child(2) .credit-portrait { animation-delay: 0.05s, 0s; }
#credit-wall li:nth-child(3) .credit-portrait { animation-delay: 0.1s, 0s; }
#credit-wall li:nth-child(4) .credit-portrait { animation-delay: 0.15s, 0s; }
#credit-wall li:nth-child(5) .credit-portrait { animation-delay: 0.2s, 0s; }
#credit-wall li:nth-child(6) .credit-portrait { animation-delay: 0.25s, 0s; }
#credit-wall li:nth-child(7) .credit-portrait { animation-delay: 0.3s, 0s; }
.credit-pixel { color: var(--grape); }
#archive {
  background: var(--grape-deep);
  color: #fff6ee;
  margin: 0 3%;
  padding: 28px 5% 32px;
  border: 3px solid var(--ink);
  border-radius: 28px;
  box-shadow: 6px 6px 0 var(--sun);
  animation: pop-in 0.8s cubic-bezier(.2, 1.35, .3, 1) both, sticker-sun 3.4s ease-in-out 0.9s infinite;
}
#archive h2 { color: var(--sun); }
blockquote { font-size: clamp(18px, 4.6vw, 30px); line-height: 1.45; margin: 22px 0; }
cite { display: block; font: 11px monospace; margin-top: 14px; color: #f0c4e4; }
.quote {
  font: 12px/1.6 monospace;
  color: var(--sun);
  letter-spacing: 0.06em;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 225, 74, 0.45);
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .quote {
    color: transparent;
    background-image: linear-gradient(90deg, var(--sun), white 42%, var(--pink) 58%, var(--sun));
    background-size: 220% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    animation: sheen 3.8s linear infinite;
  }
}
.archive-bottom p { font-size: 14px; line-height: 1.7; color: #f6d7ee; margin: 0; }
.archive-bottom a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 700;
}
footer {
  padding: 28px 5% 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  font-size: 13px;
}
footer > span { font-weight: 800; }
footer p { color: var(--muted); margin: 0; width: 100%; }
footer a { min-height: 44px; display: inline-flex; align-items: center; }
.game-art.has-art { background: white; }
.game-art.has-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  position: relative;
  z-index: 1;
  animation: drift 8s ease-in-out infinite alternate;
}
.johnny-ace .game-art { min-height: 0; }
.johnny-ace .game-art.has-art img {
  width: auto;
  height: 78%;
  max-width: 88%;
  justify-self: center;
}
.game-art.has-art:after { opacity: 0.12; }
@media (min-width: 800px) {
  html { scroll-padding-top: 84px; }
  header { flex-wrap: nowrap; padding: 18px 5%; }
  .wordmark { font-size: 25px; }
  .wordmark-caption {
    display: block;
    font: 10px/1.3 monospace;
    max-width: 70px;
    margin-left: 8px;
  }
  nav { width: auto; gap: 8px; }
  nav a {
    flex: none;
    background: transparent;
    border-color: transparent;
    padding: 0 10px;
  }
  main > section { margin: 0 5%; padding: 72px 0; }
  .hero { margin: 0 2%; padding: 36px 4% 20px; }
  h1 { margin: 48px 0 28px; }
  h1 > b {
    position: absolute;
    right: 1%;
    top: -0.08em;
    margin: 0;
    font-size: 0.62em;
  }
  .hero-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 28px;
  }
  .hero-bottom p { font-size: 20px; }
  .hero-link { margin-top: 0; }
  .hero-link span { margin-left: 28px; }
  .hero-footer { flex-direction: row; justify-content: space-between; }
  .section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 30px;
  }
  .section-heading > p { margin: 0; max-width: 350px; }
  #game-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 28px; }
  .game-art { height: 280px; }
  .johnny-ace { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
  .johnny-ace .game-copy { padding-top: 0; }
  #trailers { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
  #trailers h2 { font-size: 32px; }
  .trailer-links { display: flex; gap: 16px; margin-top: 0; }
  #credit-wall { margin-top: 28px; }
  #credit-wall li {
    grid-template-columns: 60px minmax(0, 1fr) minmax(0, 1fr) 52px;
    grid-template-rows: auto;
    padding: 18px 0;
  }
  #credit-wall h3 { font-size: clamp(26px, 3vw, 40px); }
  #credit-wall p { grid-column: auto; font-size: 16px; }
  .credit-portrait, .credit-pixel { grid-column: auto; grid-row: auto; width: 48px; height: 48px; }
  #archive { margin: 0 2%; padding: 56px 4%; }
  .archive-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }
  .archive-bottom p { max-width: 580px; }
  .archive-bottom a { margin-top: 0; white-space: nowrap; }
  footer p { width: auto; flex: 1; }
}
.hero-link span, .archive-bottom a span { display: inline-block; animation: nudge 1.2s ease-in-out infinite; }
nav a { transition: transform 0.18s ease; }
nav a:hover, nav a:focus-visible { transform: translateY(-2px); }
nav a:active { transform: translateY(1px) scale(0.98); }
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-6deg); box-shadow: 0 0 0 3px var(--grape); }
  45% { transform: translateY(-8px) rotate(7deg); box-shadow: 0 0 0 6px var(--pink); }
  75% { transform: translateY(-2px) rotate(-2deg); box-shadow: 0 0 0 4px var(--orange); }
}
@keyframes burst { to { transform: rotate(360deg); } }
@keyframes bits {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(16deg); }
}
@keyframes twinkle {
  0%, 100% { transform: rotate(0deg) scale(1); color: var(--pink); }
  35% { transform: rotate(-22deg) scale(1.28); color: var(--orange); }
  70% { transform: rotate(24deg) scale(0.86); color: var(--grape); }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); background: var(--pink); }
  50% { transform: scale(1.45); background: var(--orange); }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes pop-in {
  from { opacity: 0; transform: translateY(18px) scale(0.94); }
  to { opacity: 1; transform: none; }
}
@keyframes sticker {
  0%, 100% { box-shadow: 6px 6px 0 var(--pink); }
  50% { box-shadow: 12px 12px 0 var(--grape); }
}
@keyframes sticker-sun {
  0%, 100% { box-shadow: 6px 6px 0 var(--sun); }
  50% { box-shadow: 12px 12px 0 var(--pink); }
}
@keyframes hop {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes drift {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}
@keyframes pop-face {
  from { opacity: 0; transform: scale(0.3) rotate(-18deg); }
  to { opacity: 1; transform: none; }
}
@keyframes ring {
  0%, 100% { border-color: var(--pink); }
  50% { border-color: var(--orange); }
}
@keyframes sheen { to { background-position: -120% 0; } }
@keyframes draw { to { background-size: 2.4em 5px; } }
@keyframes nudge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .quote { color: var(--sun); background: none; }
  h2 { background-size: 2.4em 5px; }
}
