/* Sweetie 16, same palette as the game */
:root {
  --ink: #1a1c2c;
  --plum: #5d275d;
  --red: #b13e53;
  --orange: #ef7d57;
  --yellow: #ffcd75;
  --lime: #a7f070;
  --green: #38b764;
  --navy: #29366f;
  --sky: #41a6f6;
  --cyan: #73eff7;
  --white: #f4f4f4;
  --steel: #94b0c2;
  --slate: #566c86;
  --panel: #333c57;
  --px: 'Press Start 2P', monospace;
}

@font-face {
  font-family: 'Press Start 2P';
  src: url('/fonts/press-start-2p.woff2') format('woff2');
  font-display: swap;
}

* { box-sizing: border-box; }

html { background: var(--ink); }

body {
  margin: 0;
  color: var(--white);
  background: var(--ink);
  font: 16px/1.6 ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  -webkit-font-smoothing: none;
}

img { image-rendering: pixelated; max-width: 100%; height: auto; display: block; }

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

h1, h2, h3, .px { font-family: var(--px); font-weight: 400; line-height: 1.5; }

h2 {
  font-size: 18px;
  color: var(--yellow);
  text-shadow: 3px 3px 0 var(--red);
  text-align: center;
  margin: 0 0 32px;
}

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }

section { padding: 64px 0; }

/* chunky pixel frame: square corners, hard drop shadow */
.frame {
  background: var(--panel);
  border: 4px solid var(--steel);
  box-shadow: 6px 6px 0 #000;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 48px 0 0;
  background:
    linear-gradient(to bottom, rgba(26, 28, 44, 0.55), var(--ink) 92%),
    url('/img/feature.png') center / cover no-repeat;
  image-rendering: pixelated;
}

.hero .wrap { text-align: center; }

.logo { width: 512px; margin: 0 auto; filter: drop-shadow(4px 4px 0 #000); }

.tagline {
  font-family: var(--px);
  font-size: 13px;
  color: var(--white);
  text-shadow: 2px 2px 0 #000;
  margin: 28px auto 12px;
  max-width: 560px;
}

.sub { color: var(--steel); margin: 0 auto 32px; max-width: 520px; text-shadow: 1px 1px 0 #000; }

.stores { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; align-items: center; }

.stores .play img { width: 200px; }

.soon {
  font-family: var(--px);
  font-size: 10px;
  color: var(--steel);
  border: 4px dashed var(--slate);
  padding: 8px 14px;
  line-height: 1.8;
}

.soon b { color: var(--white); font-weight: 400; display: block; }

/* the walking parade along the hero floor */
.floor {
  position: relative;
  height: 112px;
  margin-top: 48px;
  border-bottom: 8px solid var(--panel);
  box-shadow: inset 0 -8px 0 var(--slate);
}

.walker {
  position: absolute;
  bottom: 8px;
  width: 96px;
  height: 96px;
  background-size: auto 96px;
  background-repeat: no-repeat;
  image-rendering: pixelated;
  animation: parade 14s linear infinite;
}

.walker.hero-sprite {
  background-image: url('/img/sprites/hero_walk.png');
  animation: frames4 0.5s steps(4) infinite, parade 14s linear infinite;
  animation-delay: 0s, -7.6s;
}

.walker.foe { animation: frames2 0.5s steps(2) infinite, parade 14s linear infinite; }

.walker.f1 { background-image: url('/img/sprites/intern.png'); animation-delay: 0s, -1.4s; }
.walker.f2 { background-image: url('/img/sprites/hr.png'); animation-delay: 0s, -2.6s; }
.walker.f3 { background-image: url('/img/sprites/printer.png'); animation-delay: 0s, -3.9s; }
.walker.f4 { background-image: url('/img/sprites/zombie_email.png'); animation-delay: 0s, -5.1s; }
.walker.f5 { background-image: url('/img/sprites/manager.png'); animation-delay: 0s, -6.2s; }

@keyframes frames4 { to { background-position: -384px 0; } }
@keyframes frames2 { to { background-position: -192px 0; } }
/* the hero runs, the office chases */
@keyframes parade {
  from { left: 100%; }
  to { left: -110%; }
}

/* ---------- features ---------- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px; }

.feature { padding: 20px; }

.feature img { width: 64px; height: 64px; margin-bottom: 16px; }

.feature h3 { font-size: 11px; color: var(--orange); margin: 0 0 10px; }

.feature p { margin: 0; color: var(--steel); font-size: 15px; }

/* ---------- screenshots ---------- */
.shots {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0 4px 16px;
  justify-content: safe center;
}

.shots img {
  width: 216px;
  flex: none;
  scroll-snap-align: center;
  border: 4px solid var(--steel);
  box-shadow: 6px 6px 0 #000;
}

/* ---------- bosses ---------- */
.bosses { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }

.boss { display: flex; gap: 16px; align-items: center; padding: 12px; }

.boss img { width: 96px; height: 96px; flex: none; background: var(--ink); border: 4px solid var(--ink); }

.boss .floor-tag { font-family: var(--px); font-size: 8px; color: var(--slate); }

.boss h3 { font-size: 10px; color: var(--yellow); margin: 6px 0 8px; }

.boss q { color: var(--steel); font-size: 14px; display: block; }

.boss.ceo { border-color: var(--yellow); }

/* ---------- download cta ---------- */
.cta { text-align: center; padding: 40px 20px; }

.cta p { font-family: var(--px); font-size: 12px; margin: 0 0 24px; }

/* ---------- footer ---------- */
footer {
  border-top: 4px solid var(--panel);
  padding: 32px 0 48px;
  color: var(--slate);
  font-size: 14px;
  text-align: center;
}

footer nav { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; margin-bottom: 12px; }

/* ---------- plain text pages (privacy, 404) ---------- */
.doc { max-width: 720px; margin: 0 auto; padding: 40px 16px 64px; }

.doc .logo { width: 192px; margin: 0 0 32px; }

.doc h1 { font-size: 18px; color: var(--yellow); text-shadow: 3px 3px 0 var(--red); }

.doc h2 { font-size: 12px; text-align: left; margin: 36px 0 12px; text-shadow: 2px 2px 0 var(--red); }

.doc p { color: #dfe6ec; }

@media (max-width: 480px) {
  .logo { width: 288px; }
  .tagline { font-size: 11px; }
  h2 { font-size: 14px; }
  .walker { width: 64px; height: 64px; background-size: auto 64px; }
  @keyframes frames4 { to { background-position: -256px 0; } }
  @keyframes frames2 { to { background-position: -128px 0; } }
  .floor { height: 80px; }
  .boss img { width: 64px; height: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  .walker { animation: none !important; }
  .walker.hero-sprite { left: 20%; }
  .walker.f1 { left: 45%; }
  .walker.f2 { left: 60%; }
  .walker.f3 { left: 75%; }
  .walker.f4, .walker.f5 { display: none; }
}
