/* CREEPY DOLL — marketing site. Palette borrowed straight from the game. */
:root {
  --sky: #1a1430;
  --sky2: #241a3e;
  --sky3: #302145;
  --blood: #c9304a;
  --gold: #e8c66a;
  --porcelain: #efe2cf;
  --lavender: #cfc3e8;
  --dim: #9a8fb0;
  --dimmer: #6a5f80;
  --panel: #241c30;
  --ink: #0c0a12;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--sky);
  color: var(--lavender);
  font-family: 'VT323', 'Courier New', monospace;
  font-size: 22px;
  line-height: 1.5;
  image-rendering: pixelated;
}

h1, h2, h3, .cta, kbd, figcaption {
  font-family: 'Press Start 2P', 'Courier New', monospace;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  text-align: center;
  padding: 90px 20px 70px;
  background: linear-gradient(var(--sky) 0%, var(--sky2) 55%, var(--sky3) 100%);
  border-bottom: 4px solid var(--panel);
  overflow: hidden;
}
.stars {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 12% 18%, #8d7fae 50%, transparent 51%),
    radial-gradient(1px 1px at 30% 42%, #5a4d78 50%, transparent 51%),
    radial-gradient(2px 2px at 47% 12%, #8d7fae 50%, transparent 51%),
    radial-gradient(1px 1px at 63% 33%, #5a4d78 50%, transparent 51%),
    radial-gradient(1px 1px at 78% 16%, #8d7fae 50%, transparent 51%),
    radial-gradient(2px 2px at 88% 44%, #5a4d78 50%, transparent 51%),
    radial-gradient(1px 1px at 20% 66%, #5a4d78 50%, transparent 51%),
    radial-gradient(1px 1px at 70% 60%, #8d7fae 50%, transparent 51%);
  animation: twinkle 4s steps(2) infinite;
}
@keyframes twinkle { 50% { opacity: .6; } }

#dollCanvas {
  width: 112px; height: 160px;
  image-rendering: pixelated;
  margin-bottom: 18px;
  filter: drop-shadow(0 0 24px rgba(201, 48, 74, .35));
}

.hero h1 {
  font-size: clamp(30px, 7vw, 58px);
  color: var(--blood);
  text-shadow: 4px 4px 0 var(--ink);
  letter-spacing: 2px;
  margin-bottom: 18px;
}
.tagline { color: var(--porcelain); font-size: 26px; margin-bottom: 10px; }
.sub { color: var(--dim); max-width: 560px; margin: 0 auto 34px; }

.cta {
  display: inline-block;
  background: var(--blood);
  color: var(--porcelain);
  text-decoration: none;
  font-size: 15px;
  padding: 18px 28px;
  border: 4px solid var(--ink);
  box-shadow: 0 6px 0 var(--ink);
  transition: transform .08s steps(1), box-shadow .08s steps(1);
}
.cta:hover { background: #e0405a; }
.cta:active { transform: translateY(6px); box-shadow: 0 0 0 var(--ink); }
.hint { color: var(--dimmer); margin-top: 16px; font-size: 18px; }

/* ---------- story strip ---------- */
.strip {
  text-align: center;
  padding: 44px 20px;
  background: var(--ink);
  color: var(--dim);
  border-bottom: 4px solid var(--panel);
}
.strip em { color: var(--gold); font-style: normal; }

/* ---------- sections ---------- */
section { padding: 60px 20px; max-width: 1060px; margin: 0 auto; }
h2 {
  color: var(--gold);
  font-size: clamp(16px, 3.4vw, 24px);
  text-align: center;
  margin-bottom: 40px;
  text-shadow: 3px 3px 0 var(--ink);
}

/* features */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.card {
  background: var(--panel);
  border: 3px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  padding: 22px;
}
.card .pix { font-size: 30px; display: block; margin-bottom: 12px; }
.card h3 { color: var(--porcelain); font-size: 13px; margin-bottom: 12px; }
.card p { color: var(--dim); font-size: 20px; }

/* galleries */
.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.shots figure {
  background: var(--panel);
  border: 3px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  padding: 8px 8px 12px;
}
.shots img {
  width: 100%;
  display: block;
  image-rendering: pixelated;
  border: 2px solid var(--ink);
}
.shots figcaption {
  color: var(--dim);
  font-size: 10px;
  padding-top: 10px;
  text-align: center;
  line-height: 1.8;
}

/* controls */
.controls { text-align: center; }
.keys {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 14px 30px; margin-bottom: 22px;
}
kbd {
  display: inline-block;
  background: var(--panel);
  color: var(--porcelain);
  font-size: 11px;
  padding: 7px 9px;
  border: 2px solid var(--dimmer);
  border-bottom-width: 4px;
  margin-right: 4px;
}
.dim { color: var(--dimmer); }

/* bottom cta + footer */
.cta-bottom { text-align: center; }
footer {
  text-align: center;
  padding: 40px 20px 60px;
  background: var(--ink);
  color: var(--dimmer);
  border-top: 4px solid var(--panel);
  font-size: 19px;
}
footer p { margin-bottom: 10px; }
footer a { color: var(--dim); }
footer a:hover { color: var(--gold); }

@media (prefers-reduced-motion: reduce) {
  .stars { animation: none; }
  html { scroll-behavior: auto; }
}
