/* Picnic-paper palette from scripts/Palette.gd (MENU_BG, CARD, INK, VICTORY). */
:root {
  --paper: #f7eedb;
  --card: #fffdf5;
  --ink: #26262f;
  --muted: #5b5b66;
  --green: #5d9e78;
  --green-soft: #e1f0de;
  --line: #d9ceb6;
  --shadow: 0 10px 30px rgba(38, 38, 47, 0.10);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
h1, h2, h3 { line-height: 1.2; }
a { color: var(--green); }
img { max-width: 100%; height: auto; }

/* ---- document pages (privacy, support) ---- */
body:not(.marketing) main {
  max-width: 720px;
  margin: 32px auto;
  padding: 32px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
}
body:not(.marketing) h1 { margin-top: 0; }
.note { color: var(--muted); font-size: 0.92rem; }
.back { margin-top: 0; }

/* ---- marketing page ---- */
.marketing main { display: block; }
.marketing section { max-width: 1080px; margin: 0 auto; padding: 56px 24px; }
.top {
  display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between;
  max-width: 1080px; margin: 0 auto; padding: 20px 24px 0;
}
.brand img { display: block; width: 220px; height: auto; }
.top nav { display: flex; gap: 22px; font-weight: 600; }
.top nav a { text-decoration: none; color: var(--ink); }
.top nav a:hover { color: var(--green); }

.hero > * { min-width: 0; }
.hero { display: grid; grid-template-columns: minmax(320px, 5fr) minmax(320px, 7fr); gap: 44px; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.4rem); margin: 0 0 14px; }
.lead { font-size: 1.18rem; margin: 0 0 20px; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 26px; list-style: none; margin: 0 0 24px; padding: 0; color: var(--muted); }
.facts strong { color: var(--ink); font-size: 1.3rem; margin-right: 6px; }

.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: flex; flex-direction: column; padding: 10px 20px; min-width: 168px;
  background: var(--card); border: 2px solid var(--line); border-radius: 14px;
  text-decoration: none; color: var(--ink); box-shadow: var(--shadow);
}
.store span { font-weight: 700; }
.store em { font-style: normal; font-size: 0.82rem; color: var(--muted); }
.store[aria-disabled="true"] { opacity: 0.75; cursor: default; }
.store:not([aria-disabled="true"]):hover { border-color: var(--green); background: var(--green-soft); }

/* The gameplay strip: frames rendered from the real game, side by side in one
   image, stepped through with CSS. No video file, no autoplay restrictions. */
.clip { margin: 0; }
.clip-window {
  position: relative; min-width: 0; width: 100%; aspect-ratio: 16 / 9; overflow: hidden;
  border: 3px solid var(--ink); border-radius: 18px; background: var(--card); box-shadow: var(--shadow);
}
.clip-window img {
  position: absolute; top: 0; left: 0; height: 100%; width: auto; max-width: none; display: block;
  animation: penfort-play 2s steps(24) infinite;
}
@keyframes penfort-play { from { transform: translateX(0); } to { transform: translateX(-100%); } }
.clip figcaption { color: var(--muted); font-size: 0.9rem; text-align: center; padding-top: 10px; }
@media (prefers-reduced-motion: reduce) { .clip-window img { animation: none; } }

.cards h2, .visitors h2, .family h2, .cta h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 26px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 28px; }
.grid figure { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.grid figure img { display: block; width: 100%; }
.grid figcaption { padding: 16px 20px 20px; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); }
.grid.two p { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; }

.visitors ul { display: flex; flex-wrap: wrap; gap: 22px; list-style: none; margin: 0; padding: 0; }
.visitors li { width: 104px; text-align: center; color: var(--muted); font-size: 0.9rem; }
.visitors li img { width: 84px; height: 84px; }

.family { background: var(--green-soft); border-radius: 28px; }
.cta { text-align: center; }
.cta img { border: 3px solid var(--ink); border-radius: 18px; box-shadow: var(--shadow); margin-bottom: 28px; }
.cta .stores { justify-content: center; }

footer { max-width: 1080px; margin: 0 auto; padding: 30px 24px 56px; border-top: 1px solid var(--line); }
footer p { margin: 6px 0; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 30px; }
  .marketing section { padding: 40px 20px; }
  body:not(.marketing) main { margin: 0; border-radius: 0; border: 0; padding: 20px; }
}
