@font-face {
  font-family: "YouAnimalDMG";
  src: url("/fonts/YouAnimalDMG.ttf") format("truetype");
  font-display: swap;
}
/* The four DMG shades - same palette as the game */
:root {
  --c1: #0f380f; /* outline, text */
  --c2: #306230; /* shadow */
  --c3: #8bac0f; /* fill */
  --c4: #9bbc0f; /* screen background */
  --bezel: #2b2f2b;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bezel); scroll-behavior: smooth; }
body {
  min-height: 100vh;
  padding: 12px;
  background: var(--bezel);
  color: var(--c1);
  font-family: "YouAnimalDMG", ui-monospace, Menlo, monospace;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: none;
}
img { image-rendering: pixelated; display: block; max-width: 100%; }
a { color: var(--c1); }
a:hover, a:focus-visible { background: var(--c1); color: var(--c4); text-decoration: none; outline: none; }

.screen {
  min-height: calc(100vh - 24px);
  background: var(--c4);
  border: 3px solid var(--c1);
  display: flex; flex-direction: column; align-items: center;
  padding: 20px 24px;
}

/* Top bar */
.topbar { width: 100%; max-width: 960px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.topbar .brand { font-size: 20px; letter-spacing: .12em; text-decoration: none; }
.topbar nav { display: flex; gap: 20px; font-size: 15px; text-transform: uppercase; }
.topbar nav a { text-decoration: none; padding: 0 2px; }

section { width: 100%; max-width: 960px; padding: 56px 0; border-bottom: 3px solid var(--c1); }
section:last-of-type { border-bottom: 0; }
h2 { font-size: clamp(24px, 4vw, 32px); font-weight: normal; letter-spacing: .06em; text-align: center; margin-bottom: 24px; }
h3 { font-size: 18px; font-weight: normal; text-transform: uppercase; margin-bottom: 8px; }
.lead { max-width: 640px; margin: 0 auto 32px; text-align: center; font-size: 17px; }
p + p { margin-top: 12px; }

/* Hero */
.hero { border-bottom: 0; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; padding-top: 32px; }
.hero h1 { width: 100%; }
.logo { width: min(100%, 576px); height: auto; margin: 0 auto; }
.studio-line { font-size: 15px; text-transform: uppercase; letter-spacing: .08em; color: var(--c2); }
.soon { font-size: clamp(24px, 5vw, 32px); letter-spacing: .08em; animation: blink 1.2s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.story { font-size: clamp(16px, 3.4vw, 20px); text-transform: uppercase; max-width: 30ch; }
.story .pub { width: 58px; height: 64px; margin: 0 auto 16px; }

/* Game-style menu buttons */
.stores { display: flex; flex-direction: column; gap: 16px; width: min(100%, 320px); }
.btn {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 64px; padding: 8px 16px;
  border: 3px solid var(--c1); background: var(--c4); color: var(--c1);
  text-decoration: none; font-size: 18px; text-transform: uppercase; letter-spacing: .04em;
}
.btn.primary { background: var(--c3); }
.btn:hover, .btn:focus-visible { background: var(--c2); color: var(--c4); outline: none; }
.btn:active { transform: translate(2px, 2px); }
.btn svg { width: 22px; height: 22px; flex: none; fill: currentColor; }
/* Same icon and text column in every store button */
.stores .btn { justify-content: flex-start; gap: 16px; padding-left: 64px; }
.btn .sub { display: block; font-size: 12px; opacity: .75; line-height: 1.2; }
.btn .txt { text-align: left; line-height: 1.25; }
.btn[aria-disabled="true"] { cursor: default; }

/* Animal parade */
.parade { width: 100%; display: flex; justify-content: center; align-items: flex-end; gap: clamp(4px, 2vw, 20px); border-bottom: 3px solid var(--c1); padding-bottom: 4px; margin-top: 16px; }
.parade img { width: clamp(44px, 12vw, 96px); height: auto; animation: hop .6s steps(1) infinite; }
.parade img:nth-child(2n) { animation-delay: .3s; }
@keyframes hop { 50% { transform: translateY(-4px); } }

/* Screenshots */
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 760px; margin: 0 auto 40px; }
.shots figure { border: 3px solid var(--c1); background: var(--bezel); padding: 6px; }
.shots img { width: 100%; height: auto; aspect-ratio: 1 / 1.97; object-fit: cover; image-rendering: auto; }
.shots figcaption { color: var(--c4); font-size: 12px; text-align: center; text-transform: uppercase; padding-top: 6px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.box { border: 3px solid var(--c1); padding: 20px; }
.box.fill { background: var(--c3); }

.studio { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.contact { text-align: center; }
.contact .mail { display: inline-block; font-size: clamp(20px, 4vw, 28px); margin: 8px 0 24px; padding: 4px 8px; border: 3px solid var(--c1); text-decoration: none; }
dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; max-width: 520px; margin: 0 auto; text-align: left; }
dl.facts dt { text-transform: uppercase; color: var(--c2); }

/* Text pages */
.doc { max-width: 720px; padding: 40px 0; }
.doc h1 { font-size: clamp(26px, 5vw, 36px); font-weight: normal; margin-bottom: 8px; }
.doc .meta { color: var(--c2); margin-bottom: 32px; }
.doc h2 { text-align: left; font-size: 20px; margin: 32px 0 8px; }
.doc ul { padding-left: 24px; margin-top: 8px; }
.doc li + li { margin-top: 6px; }

footer { width: 100%; max-width: 960px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 20px; font-size: 13px; color: var(--c2); padding-top: 20px; border-top: 3px solid var(--c1); margin-top: auto; }
footer a { color: var(--c2); }
footer .links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; }

@media (max-width: 720px) {
  .shots { grid-template-columns: 1fr 1fr; }
  .shots figure:nth-child(3) { display: none; }
  .features, .studio { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  body { padding: 6px; font-size: 15px; }
  .screen { min-height: calc(100vh - 12px); padding: 16px 14px; border-width: 2px; }
  .topbar { justify-content: center; }
  .topbar nav { gap: 14px; font-size: 14px; }
  .parade img:nth-child(n+5) { display: none; }
  section { padding: 40px 0; }
  footer { justify-content: center; text-align: center; }
  dl.facts { grid-template-columns: 1fr; gap: 0; }
  dl.facts dd { margin-bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .soon, .parade img { animation: none; }
}
