/* Monkey Launch website. Plain colours, the game's fonts and its chunky orange buttons. */
@font-face { font-family: "Luckiest Guy"; src: url("fonts/LuckiestGuy.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Fredoka"; src: url("fonts/Fredoka.ttf") format("truetype"); font-weight: 300 700; font-display: swap; }

:root {
  --bg: #f5f9ff;
  --surface: #ffffff;
  --ink: #1d2433;
  --muted: #5b6577;
  --line: #e2e8f2;
  --orange: #ff9f1c;
  --orange-2: #ffc531;
  --outline: #2a1a08;
  --blue: #1f8fff;
  --green: #4cc93a;
  --panel: #232838;
  --panel-ink: #f2f4f8;
  --gold: #ffd23f;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(29, 36, 51, 0.10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 18px/1.55 "Fredoka", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* Headings: the game's title font with a dark outline. */
h1, h2, h3, .display {
  font-family: "Luckiest Guy", "Fredoka", sans-serif;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.1;
  margin: 0 0 0.4em;
}
h2 { font-size: clamp(2rem, 4.5vw, 3rem); color: var(--orange); -webkit-text-stroke: 1.5px var(--outline); paint-order: stroke fill; text-shadow: 0 3px 0 var(--outline); }
h3 { font-size: 1.35rem; color: var(--ink); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 46ch; }
.center { text-align: center; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.center .lead { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  padding: 0.7em 1.5em;
  border: 3px solid var(--outline);
  border-radius: 999px;
  background: linear-gradient(var(--orange-2), var(--orange));
  color: var(--outline);
  font: 600 1.1rem/1.1 "Fredoka", sans-serif;
  text-decoration: none;
  box-shadow: 0 4px 0 var(--outline);
  transition: transform 0.08s, box-shadow 0.08s;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 5px 0 var(--outline); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--outline); }
.btn.big { font-size: 1.35rem; padding: 0.8em 1.9em; }
.btn.ghost { background: var(--surface); }
.btn[aria-disabled="true"] { background: #e7eaf0; color: #8a93a3; border-color: #b8bfcc; box-shadow: 0 4px 0 #b8bfcc; cursor: default; transform: none; }
.btn small { font-weight: 400; font-size: 0.75em; opacity: 0.8; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(245, 249, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 44px; height: 44px; border-radius: 12px; border: 2px solid var(--outline); }
.brand span { font-family: "Luckiest Guy", sans-serif; font-size: 1.35rem; letter-spacing: 0.03em; padding-top: 4px; }
.site-header nav { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.site-header nav a { color: var(--ink); text-decoration: none; font-weight: 500; }
.site-header nav a:hover { color: var(--blue); }
.site-header nav .btn { padding: 0.45em 1.1em; font-size: 1rem; box-shadow: 0 3px 0 var(--outline); }
@media (max-width: 720px) { .site-header nav a:not(.btn) { display: none; } .brand span { display: none; } }

/* ---------- Hero ---------- */
.hero { padding: 48px 0 32px; text-align: center; }
.hero .logo { width: min(860px, 100%); height: auto; margin: 0 auto 12px; }
.tagline { font-family: "Luckiest Guy", sans-serif; font-size: clamp(1.3rem, 3vw, 1.9rem); color: var(--ink); margin: 0 0 8px; }
.hero .lead { margin: 0 auto 28px; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 26px; padding: 0; list-style: none; }
.chips li { background: var(--surface); border: 2px solid var(--line); border-radius: 999px; padding: 6px 14px; font-weight: 500; font-size: 0.95rem; }
.version-note { color: var(--muted); font-size: 0.95rem; margin-top: 12px; min-height: 1.5em; }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
section.alt { background: var(--surface); border-block: 1px solid var(--line); }

.shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 32px; }
.shots figure { margin: 0; background: var(--panel); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.shots img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.shots figcaption { color: var(--panel-ink); padding: 10px 16px 12px; font-size: 0.95rem; }
.shots figcaption b { color: var(--gold); font-weight: 600; }
@media (max-width: 720px) {
  .shots { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; padding-bottom: 8px; }
  .shots figure { flex: 0 0 86%; scroll-snap-align: center; }
}

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 32px; counter-reset: step; }
.step { background: var(--bg); border: 2px solid var(--line); border-radius: var(--radius); padding: 22px; }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 12px;
  border-radius: 50%; border: 3px solid var(--outline); background: var(--gold);
  font: 1.4rem/1 "Luckiest Guy", sans-serif; padding-top: 4px;
}
.step p { margin: 0; color: var(--muted); }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; margin-top: 32px; }
.card { background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); padding: 22px; }
section.alt .card { background: var(--bg); }
.card .icon { font-size: 1.9rem; line-height: 1; margin-bottom: 10px; }
.card p { margin: 0; color: var(--muted); }

.modes { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin-top: 32px; }
.mode { background: var(--panel); color: var(--panel-ink); border-radius: 14px; padding: 16px 18px; }
.mode h3 { color: var(--gold); font-size: 1.15rem; margin-bottom: 6px; }
.mode p { margin: 0; font-size: 0.95rem; opacity: 0.85; }

.platforms { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin-top: 32px; }
.platform { background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 6px; }
section.alt .platform { background: var(--bg); }
.platform.mine { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255, 159, 28, 0.25); }
.platform h3 { margin: 0; }
.platform p { margin: 0 0 12px; color: var(--muted); font-size: 0.95rem; flex: 1; }
.platform .btn { align-self: flex-start; font-size: 1rem; }

.faq { max-width: 780px; margin: 32px auto 0; }
.faq details { background: var(--surface); border: 2px solid var(--line); border-radius: 14px; padding: 4px 20px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 1.6rem/1 "Luckiest Guy", sans-serif; color: var(--orange); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 16px; color: var(--muted); }

/* ---------- Text pages (privacy, support) ---------- */
.page { padding: 48px 0 72px; }
.page .wrap { max-width: 780px; }
.page h1 { font-size: clamp(2.2rem, 6vw, 3.2rem); color: var(--orange); -webkit-text-stroke: 1.5px var(--outline); paint-order: stroke fill; text-shadow: 0 3px 0 var(--outline); }
.page h2 { font-size: 1.6rem; margin-top: 1.6em; }
.page ul { padding-left: 1.2em; }
.page li { margin-bottom: 0.4em; }
.page .updated { color: var(--muted); }
.box { background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin: 18px 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--panel); color: var(--panel-ink); padding: 40px 0; font-size: 0.95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer a { color: var(--panel-ink); }
.site-footer .credits { width: 100%; opacity: 0.7; font-size: 0.85rem; margin: 0; }

@media (max-width: 720px) {
  body { font-size: 17px; }
  section { padding: 52px 0; }
  .steps { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
.faq { text-align: left; }
.lost-logo { margin: 0 auto 24px; border-radius: 24px; border: 3px solid var(--outline); }
.lost-text { margin: 0 auto 28px; }
@media (min-width: 900px) { .cards, .platforms { grid-template-columns: repeat(3, 1fr); } }
.card, .step, .platform { text-align: left; }
section[id], h2[id] { scroll-margin-top: 76px; }
