/* molumigame.com: the island's palette, its ink outline and its pixels. No gradients, as in the game. */
@font-face {
  font-family: 'Pixelify Sans';
  src: url('/fonts/pixelify-sans-700.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

:root {
  --ink: #361a3a;
  --ink-soft: #5a3a5e;
  --cream: #fffbe8;
  --paper: #fff6e4;
  --sky: #3cc0ec;
  --sky-deep: #2c8ce0;
  --sea: #22a4e4;
  --sea-mid: #4cc4f0;
  --sand: #ffe2a2;
  --sand-dark: #e0ac64;
  --grass: #84e45c;
  --grass-dark: #3ca83c;
  --sun: #ffd24a;
  --sun-dark: #e89a2c;
  --pink: #ff8fc0;
  --orange: #ff8c5a;
  --violet: #b896f0;
  --leaf: #58cc50;
  /* One art pixel, in CSS pixels. */
  --p: 3px;
  --gutter: 16px;
  --font-px: 'Pixelify Sans', ui-rounded, system-ui, sans-serif;
  /* Pixelify's capital C reads as an O: it stays on big headings only; labels go in the rounded body face, heavy. */
  --font-label: 800 1em/1.25 ui-rounded, 'SF Pro Rounded', 'Nunito', 'Segoe UI', system-ui, sans-serif;
  --font-body: ui-rounded, 'SF Pro Rounded', 'Hiragino Maru Gothic ProN', 'Nunito', 'Segoe UI', system-ui, sans-serif;
  color-scheme: light;
}
@media (min-width: 720px) { :root { --p: 4px; --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--sand); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--sky);
  color: var(--ink);
  font: 400 18px/1.6 var(--font-body);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 4px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 10px var(--sun); border-radius: 2px; }

.px { image-rendering: pixelated; image-rendering: crisp-edges; width: calc(var(--w) * var(--p)); height: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--cream); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }

/* ---- Pixel frames: ink outline with notched corners, as the game's panels. */
.frame {
  --b: 4px;
  position: relative;
  background: var(--cream);
  box-shadow:
    calc(-1 * var(--b)) 0 0 0 var(--ink),
    var(--b) 0 0 0 var(--ink),
    0 calc(-1 * var(--b)) 0 0 var(--ink),
    0 var(--b) 0 0 var(--ink),
    0 calc(var(--b) * 3) 0 0 rgba(54, 26, 58, 0.22);
  margin: var(--b);
}

/* ---- Words in the game's lettering: cream face, ink outline, a step of shadow. */
.outlined {
  font-family: var(--font-px);
  font-weight: 700;
  color: var(--cream);
  letter-spacing: 0.01em;
  text-shadow:
    -3px -3px 0 var(--ink), 0 -3px 0 var(--ink), 3px -3px 0 var(--ink),
    -3px 0 0 var(--ink), 3px 0 0 var(--ink),
    -3px 3px 0 var(--ink), 0 3px 0 var(--ink), 3px 3px 0 var(--ink),
    0 7px 0 var(--ink);
}
h1, h2, h3 { line-height: 1.15; margin: 0; }

/* ---- Top bar */
.top {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px var(--gutter);
  max-width: 1180px;
  margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 121px; }
@media (min-width: 720px) { .brand img { width: 182px; } }
.nav { display: flex; align-items: center; gap: 8px; }
.nav a { font: 700 17px/1 var(--font-px); text-decoration: none; padding: 10px 14px; color: var(--ink); }
.nav a:hover { text-decoration: underline; }
.nav .help, .nav .lang {
  --b: 3px;
  color: var(--ink);
  text-shadow: none;
  background: var(--sun);
  box-shadow: calc(-1 * var(--b)) 0 0 0 var(--ink), var(--b) 0 0 0 var(--ink), 0 calc(-1 * var(--b)) 0 0 var(--ink), 0 var(--b) 0 0 var(--ink), 0 6px 0 0 var(--sun-dark);
  margin: 0 3px 6px;
  min-width: 48px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.08s ease-out, box-shadow 0.08s ease-out;
}
.nav .help { background: var(--cream); box-shadow: -3px 0 0 0 var(--ink), 3px 0 0 0 var(--ink), 0 -3px 0 0 var(--ink), 0 3px 0 0 var(--ink), 0 6px 0 0 #e8d8b0; }
.nav .lang:hover, .nav .help:hover { text-decoration: none; transform: translateY(-2px); }
.nav .lang:active { transform: translateY(4px); box-shadow: calc(-1 * var(--b)) 0 0 0 var(--ink), var(--b) 0 0 0 var(--ink), 0 calc(-1 * var(--b)) 0 0 var(--ink), 0 var(--b) 0 0 var(--ink), 0 2px 0 0 var(--sun-dark); }

/* ---- Sky and clouds */
.sky { position: relative; background: var(--sky); overflow: hidden; }
.clouds { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.cloud { position: absolute; animation: drift linear infinite; }
.cloud.c1 { top: 12%; left: -20%; --w: 34; animation-duration: 140s; }
.cloud.c2 { top: 30%; left: -10%; --w: 20; animation-duration: 110s; animation-delay: -60s; }
.cloud.c3 { top: 6%; left: -15%; --w: 20; animation-duration: 170s; animation-delay: -120s; opacity: 0.9; }
.cloud.c4 { top: 44%; left: -20%; --w: 34; animation-duration: 200s; animation-delay: -30s; }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(140vw); } }

/* ---- Home hero */
.hero { position: relative; z-index: 1; text-align: center; padding: 24px var(--gutter) 0; }
/* Whole art pixels only: 5 device pixels on 3x phones, then 2x and 4x. */
.hero-logo { width: 303px; max-width: none; margin: 8px auto 0; image-rendering: pixelated; }
@media (min-width: 400px) { .hero-logo { width: 364px; } }
@media (min-width: 760px) { .hero-logo { width: 728px; } }
.hero-logo.pop { animation: pop 0.7s cubic-bezier(0.2, 0.9, 0.3, 1.25) both; }
@keyframes pop {
  0% { transform: translateY(-24px) scale(0.92, 1.06); opacity: 0; }
  55% { transform: translateY(4px) scale(1.04, 0.95); opacity: 1; }
  100% { transform: none; }
}
.hero h1 { font-size: clamp(28px, 6.4vw, 52px); margin: 18px auto 0; max-width: 18ch; }
.hero .promise { font: var(--font-label); font-size: clamp(17px, 3.4vw, 21px); line-height: 1.4; color: var(--ink); margin: 18px auto 0; max-width: 34ch; }
.stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 20px; margin: 26px 0 0; padding: 0; list-style: none; }
/* Not buttons yet: labels with a dashed edge until the stores open. */
.store {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 190px;
  padding: 8px 16px;
  color: var(--ink);
  border: 3px dashed var(--ink);
  background: rgba(255, 251, 232, 0.55);
}
.store small { font: var(--font-label); font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.8; }
.store span { font: var(--font-label); font-size: 20px; }
.postcard { max-width: 700px; margin: 30px auto 0; padding: 8px; }
.postcard img { width: 100%; box-shadow: 0 0 0 3px var(--ink); }

/* ---- The beach under the hero: the crew stands on the sand */
.beach { position: relative; z-index: 1; margin-top: 28px; }
.crew {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(4px, 2.4vw, 28px);
  padding: 0 8px;
  margin-bottom: calc(-6 * var(--p));
  z-index: 2;
}
.mate { position: relative; padding: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.mate img { position: relative; z-index: 1; }
/* Contact shadow under the feet, from the game's two-tone plum. */
.mate::after { content: ''; position: absolute; left: 50%; bottom: calc(-1 * var(--p)); width: calc(14 * var(--p)); height: calc(3 * var(--p)); margin-left: calc(-7 * var(--p)); background: url('/img/arte/shadow.png') 0 0 / 100% 100%; image-rendering: pixelated; }
@media (max-width: 480px) { .crew .wide-only { display: none; } }
.sand-band { height: calc(14 * var(--p)); background: var(--sand) url('/img/arte/sand.png') 0 0 / calc(48 * var(--p)) repeat; image-rendering: pixelated; }
.edge { height: calc(40 * var(--p)); background-repeat: repeat-x; background-size: calc(96 * var(--p)) 100%; image-rendering: pixelated; }
.edge.shore { background-image: url('/img/arte/shore_0.png'); animation: tide 3.2s steps(1) infinite; }
@keyframes tide { 50% { background-image: url('/img/arte/shore_1.png'); } }
.edge.shore-up { height: calc(32 * var(--p)); background-image: url('/img/arte/shore_up.png'); }
.edge.bank { height: calc(24 * var(--p)); background-image: url('/img/arte/bank.png'); }
.edge.grass-up { height: calc(20 * var(--p)); background-image: url('/img/arte/grass_up.png'); }

/* A tap on a neighbor: crouch, hop, land, and a heart floats up. */
.mate.hop img { animation: hop 0.62s cubic-bezier(0.3, 0.7, 0.4, 1) both; transform-origin: 50% 100%; }
@keyframes hop {
  0% { transform: none; }
  18% { transform: scale(1.12, 0.84); }
  45% { transform: translateY(calc(-9 * var(--p))) scale(0.92, 1.1); }
  72% { transform: translateY(0) scale(1.1, 0.88); }
  86% { transform: scale(0.97, 1.03); }
  100% { transform: none; }
}
.heart { position: absolute; left: 50%; top: 0; --w: 7; margin-left: calc(-3.5 * var(--p)); pointer-events: none; animation: float 1s ease-out forwards; }
@keyframes float {
  0% { transform: translateY(0) scale(0.4); opacity: 0; }
  20% { transform: translateY(calc(-4 * var(--p))) scale(1.2); opacity: 1; }
  100% { transform: translateY(calc(-16 * var(--p))) scale(1); opacity: 0; }
}

/* ---- Sections */
.section { position: relative; padding: 56px 0 72px; }
.section > .wrap > h2 { font-size: clamp(30px, 6vw, 46px); text-align: center; }
.section .lead { text-align: center; max-width: 36ch; margin: 16px auto 0; font-size: 20px; }
.sea { background: var(--sea) url('/img/arte/sea.png') 0 0 / calc(64 * var(--p)) repeat; image-rendering: pixelated; }
.sea .lead { color: var(--ink); font-weight: 700; }
.more { text-align: center; margin: 40px 0 0; }
.more a, .pill { display: inline-block; font: var(--font-label); font-size: 18px; padding: 12px 18px; background: var(--cream); box-shadow: 0 0 0 3px var(--ink); text-decoration: none; }
.more a:hover { text-decoration: underline; }
.pill { display: table; margin: 56px auto 0; text-align: center; max-width: 36ch; }
.sandy { background: var(--sand) url('/img/arte/sand.png') 0 0 / calc(48 * var(--p)) repeat; image-rendering: pixelated; }
.grassy { background: var(--grass) url('/img/arte/grass.png') 0 0 / calc(64 * var(--p)) repeat; image-rendering: pixelated; }
.sea > *, .sandy > *, .grassy > * { image-rendering: auto; }

/* What happens on the island: a postcard per activity. */
.cards { display: grid; gap: 40px 36px; margin-top: 44px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .cards { grid-template-columns: 1fr 1fr; } }
.card { padding: 12px 12px 22px; }
.card .shot { width: 100%; aspect-ratio: 956 / 440; box-shadow: 0 0 0 3px var(--ink); background: var(--sky); }
.card .tag { position: absolute; top: calc(-6 * var(--p)); right: 14px; }
.card .tag img { filter: drop-shadow(0 var(--p) 0 rgba(54, 26, 58, 0.25)); }
.card h3 { font: var(--font-label); font-size: 24px; margin: 18px 6px 4px; }
.card p { margin: 0 6px; font-size: 18px; }

/* The neighbors */
.neighbors { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px 18px; margin: 40px auto 0; padding: 0; list-style: none; max-width: 920px; }
.neighbors li { display: flex; flex-direction: column; align-items: center; width: calc(30 * var(--p)); }
.neighbors .name { font: 700 18px/1 var(--font-px); margin-top: 12px; background: var(--cream); padding: 5px 8px; box-shadow: 0 0 0 3px var(--ink); }
.make-own { text-align: center; margin: 36px auto 0; max-width: 34ch; font-size: 19px; }

/* Peace of mind: what a parent checks, one card each. */
.promises { list-style: none; margin: 44px 0 0; padding: 0; display: grid; gap: 28px 30px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .promises { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .promises { grid-template-columns: 1fr 1fr 1fr; } }
.promises li { display: grid; grid-template-columns: calc(10 * var(--p)) 1fr; gap: 14px; align-items: start; padding: 20px 20px 20px 18px; font-size: 17px; line-height: 1.5; }
.promises li img { --w: 10; margin-top: 2px; }
.promises li b { font: var(--font-label); font-size: 20px; display: block; margin-bottom: 4px; }

/* Slow on purpose: a notebook page, with the turtle beside it. */
.calm { display: grid; gap: 32px; align-items: end; grid-template-columns: 1fr; }
@media (min-width: 860px) { .calm { grid-template-columns: 1fr 260px; } }
.note { padding: 26px 22px 24px; }
@media (min-width: 720px) { .note { padding: 34px 40px 32px; } }
.note h2 { font: 700 clamp(28px, 5vw, 38px)/1.15 var(--font-px); margin: 0 0 12px; }
.note p { font-size: 19px; margin: 0 0 14px; }
.note .help { margin: 22px 0 0; padding-top: 16px; border-top: 3px dashed rgba(54, 26, 58, 0.25); font-size: 17px; }
.guide { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.guide img { --w: 24; }
.bubble { position: relative; padding: 16px 18px; font: var(--font-label); font-size: 18px; line-height: 1.4; text-align: center; max-width: 260px; }
.bubble::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -18px;
  width: 16px;
  height: 14px;
  margin-left: -8px;
  background: var(--cream);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  filter: drop-shadow(0 4px 0 var(--ink));
}

/* ---- Inner pages (privacy, support, terms) */
.page-head { position: relative; z-index: 1; text-align: center; padding: 8px var(--gutter) 0; }
.page-head h1 { font-size: clamp(34px, 7vw, 56px); }
.page-head .sub { font: var(--font-label); font-size: 18px; line-height: 1.4; margin: 14px auto 0; max-width: 40ch; }
.page-head .peek { margin: 18px auto 0; --w: 24; }
.doc { padding: 40px 0 72px; }
.doc .frame { max-width: 780px; margin: 0 auto; padding: 28px 22px; }
@media (min-width: 720px) { .doc .frame { padding: 44px 52px; } }
.doc h2 { font: var(--font-label); font-size: 24px; margin: 36px 0 10px; }
.doc h2:first-child { margin-top: 0; }
.doc h3 { font: var(--font-label); font-size: 20px; margin: 26px 0 6px; }
.doc p, .doc li { font-size: 18px; }
.doc ul { padding-left: 1.2em; }
.doc li + li { margin-top: 6px; }
.doc .date { opacity: 0.75; margin-top: 0; }
.doc .callout { background: var(--sand); padding: 16px 18px; box-shadow: 0 0 0 3px var(--ink); margin: 18px 0; }
.doc .callout p { margin: 0; }
.mail { font-weight: 800; white-space: nowrap; }
.faq details { border-top: 3px dashed rgba(54, 26, 58, 0.25); padding: 6px 0; }
.faq details:last-child { border-bottom: 3px dashed rgba(54, 26, 58, 0.25); }
.faq summary {
  cursor: pointer;
  list-style: none;
  font: var(--font-label);
  font-size: 19px;
  padding: 12px 40px 12px 0;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: 8px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  background: var(--sun);
  box-shadow: 0 0 0 3px var(--ink);
  font-size: 22px;
}
.faq details[open] summary::after { content: '–'; }
.faq details p { margin: 0 0 14px; }

/* ---- Footer */
.foot { background: var(--sand); padding: 8px 0 40px; text-align: center; }
.foot .wrap { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.foot .logo { width: 182px; image-rendering: pixelated; }
.foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; font: 700 18px/1 var(--font-px); }
.foot nav a { padding: 13px 6px; text-decoration: none; }
.foot nav a:hover { text-decoration: underline; }
.foot p { margin: 0; font-size: 15px; max-width: 46ch; }
.foot .shells { display: flex; gap: 22px; }
.foot .shells img { --w: 12; }

/* Less motion: the island holds still. */
@media (prefers-reduced-motion: reduce) {
  .cloud, .edge.shore, .hero-logo.pop { animation: none !important; }
  .mate.hop img, .heart { animation-duration: 0.01ms !important; }
}

/* On the home page the big logo is the brand; the small one waits until there is room. */
.brand-quiet { visibility: hidden; }
.neighbors .mate { height: calc(28 * var(--p)); display: flex; align-items: flex-end; justify-content: center; }
.neighbors .mate::after { bottom: calc(-1 * var(--p)); }
.page-head .peek { position: relative; z-index: 2; margin-bottom: calc(-5 * var(--p)); }
