/* Same look as the game: pixel art for the world, a soft modern layer on top.
   Sprites are scaled by whole numbers only (--s), so they stay crisp. */
:root {
  --ink: #2b1d2f; --ink-2: #5d4f66; --muted: #8b7f93;
  --cream: #fff8e7; --panel: #fffdf8; --tint: #f5f0e7; --tint-2: #ebe3d6; --line: #e6dccd;
  --sun: #ffd75e; --sun-edge: #e5a63a; --sun-soft: #fff3c7;
  --grass: #74ac52; --peach: #ffcf9e; --heart: #f0679a;
  --shadow: 0 1px 2px rgba(43, 29, 47, .12), 0 3px 10px rgba(43, 29, 47, .14);
  --font: "Nunito", ui-rounded, system-ui, sans-serif;
  --s: 4;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--panel); color: var(--ink); font: 600 17px/1.5 var(--font);
  -webkit-tap-highlight-color: transparent; }
.px { image-rendering: pixelated; image-rendering: crisp-edges; }
canvas.px { display: block; width: calc(var(--w) * var(--s) * 1px); height: calc(var(--h) * var(--s) * 1px); }

/* buttons */
.btn { font: inherit; font-weight: 900; color: var(--ink); text-decoration: none; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 16px;
  transition: transform .08s, box-shadow .08s; }
.btn svg { width: 1.3em; height: 1.3em; }
.btn.sun { background: var(--sun); box-shadow: 0 4px 0 var(--sun-edge); }
.btn.sun:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--sun-edge); }
.btn.plain { background: #fff; box-shadow: 0 4px 0 var(--line); }
.btn.plain:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--line); }

/* hero: the park lawn, the logo and an egg to hatch */
.hero { position: relative; text-align: center; padding: 56px 16px 64px; overflow: hidden;
  background: var(--grass) url(a/park/grass.png) repeat; background-size: 512px; image-rendering: pixelated; }
.hero > * { image-rendering: auto; }
.logo { --ls: 10; width: calc(49px * var(--ls)); height: auto; display: block; margin: 0 auto; image-rendering: pixelated; }
.logo.small { --ls: 5; }
.nb { white-space: nowrap; }
h1 { margin: 18px 0 8px; font-size: 26px; font-weight: 900; color: #fff;
  text-shadow: 0 2px 0 rgba(43, 29, 47, .55), 0 0 12px rgba(43, 29, 47, .25); }

.stage { --s: 6; position: relative; width: 240px; height: 240px; margin: 4px auto 0; }
.spot { position: absolute; inset: 14% 4% 0; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 248, 231, .55), rgba(255, 248, 231, 0)); }
.hatchery { position: relative; padding: 0; border: 0; background: none; cursor: pointer; display: block; width: max-content; margin: 0 auto; }
.hatchery:focus-visible { outline: 3px solid var(--sun); outline-offset: 4px; border-radius: 16px; }
.bubble { position: absolute; top: 6px; left: 62%; padding: 6px 12px; border-radius: 12px 12px 12px 2px;
  background: #fff; font-weight: 900; font-size: 15px; white-space: nowrap; box-shadow: var(--shadow);
  animation: bob 1.6s ease-in-out infinite; transition: opacity .2s; }
@keyframes bob { 50% { transform: translateY(-5px); } }


/* the launch's big Play button (hero and footer) */
.btn.play { display: inline-flex; margin: 6px auto 8px; padding: 16px 30px; border-radius: 18px; font-size: 21px; }
/* Google's own badge, as is (its image carries the clear space around it) */
.get-app { display: block; width: 200px; margin: 0 auto; }
.get-app img { display: block; width: 100%; height: auto; }
.get-app[hidden] { display: none; }
.cta { display: flex; gap: 14px; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 10px; }

/* launch sign-up */
.signup { max-width: 460px; margin: 6px auto 18px; padding: 16px 18px 12px; border-radius: 20px; background: rgba(255, 253, 248, .94);
  box-shadow: var(--shadow); text-align: left; text-shadow: none; }
.signup label { display: block; font-weight: 900; font-size: 18px; margin-bottom: 8px; }
.signup .row { display: flex; gap: 8px; }
.signup input[type=email] { flex: 1; min-width: 0; font: inherit; font-weight: 700; color: var(--ink); padding: 11px 14px;
  border: 2px solid var(--line); border-radius: 14px; background: #fff; }
.signup input[type=email]:focus { outline: none; border-color: var(--sun-edge); }
.signup .btn { flex: 0 0 auto; padding: 11px 16px; }
.signup .btn[disabled] { opacity: .6; cursor: default; }
.signup .note { margin: 8px 2px 0; font-size: 13px; color: var(--muted); }
.signup .note a, footer a { color: var(--ink-2); }
.signup .msg { margin: 6px 2px 0; font-size: 15px; font-weight: 800; min-height: 0; }
.signup .msg:empty { display: none; }
.signup .msg.err { color: #c0392b; }
.signup.done .row, .signup.done .note { display: none; }
.signup.done label { margin-bottom: 0; }
.signup.done .msg { font-size: 17px; color: var(--ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
footer .signup { background: #fff; margin-top: 4px; }

/* sections */
section { max-width: 1040px; margin: 0 auto; padding: 64px 16px; text-align: center; }
section + section { border-top: 2px dashed var(--line); }
h2 { margin: 0 0 10px; font-size: 32px; font-weight: 900; line-height: 1.2; }
h3 { margin: 40px 0 6px; font-size: 22px; font-weight: 900; }
.lead { max-width: 620px; margin: 0 auto 28px; color: var(--ink-2); }
.lead.small { font-size: 15px; margin-bottom: 20px; }

/* evolution line */
.line { --s: 3; display: flex; justify-content: center; align-items: flex-end; flex-wrap: wrap; gap: 4px 0; }
.step { display: flex; flex-direction: column; align-items: center; cursor: pointer; }
.step small { font-size: 13px; font-weight: 900; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.step b { font-size: 17px; font-weight: 900; margin-top: -6px; }
.arrow { align-self: center; color: var(--sun-edge); margin: 0 6px 44px; }
.arrow svg { display: block; width: 14px; height: 24px; }

/* how it plays */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; text-align: left; }
.card { background: var(--cream); border-radius: 20px; overflow: hidden; box-shadow: 0 4px 0 var(--tint-2); }
.card h3 { margin: 16px 20px 4px; font-size: 20px; }
.card p { margin: 0 20px 20px; color: var(--ink-2); font-size: 16px; }
.scene { --s: 3; height: 220px; display: flex; align-items: flex-end; justify-content: center; gap: 6px; padding-bottom: 14px;
  background: var(--grass) url(a/park/grass.png) repeat; background-size: 384px; image-rendering: pixelated; }
.scene canvas { flex: 0 0 auto; }
/* the scenes on a backdrop (main.js at()): sprites placed by art pixel, the backdrop at 3x */
.scene.bg-garden, .scene.bg-pond, .scene.bg-arena { position: relative; padding-bottom: 6px; }
.scene.bg-garden { background: #bfe6f5 url(a/banners/garden.png) 50% 100% / 720px 126px no-repeat; }
.scene.bg-pond { background: #6a9f8c url(a/fishing/pond.png) 50% -370px / 480px 900px no-repeat; }
.scene.bg-arena { background: #86bf5c url(a/arena/meadow.png) 50% -538px / 720px 1260px no-repeat; }
.scene canvas.at { position: absolute; }
.scene canvas.flip { transform: scaleX(-1); }
.scene canvas.bob { animation: float 1.6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(3px); } }

footer { text-align: center; padding: 56px 16px 40px; background: var(--tint); }
footer p { color: var(--ink-2); margin: 14px 0 18px; }
footer .fine { font-size: 13px; color: var(--muted); margin-top: 28px; }
footer .fine + .fine { margin-top: 4px; }

@media (max-width: 760px) {
  .cards { grid-template-columns: 1fr; }
  .line { --s: 2; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero { padding-top: 40px; }
  .logo { --ls: 6; }
  .logo.small { --ls: 4; }
  h1 { font-size: 21px; }
  h2 { font-size: 23px; }
  .arrow { margin: 0 2px 30px; }
  .signup label { font-size: 16px; }
  .signup .btn { padding: 11px 12px; }
  .bubble { left: auto; right: -10px; } /* the longer line stays on screen */
}
@media (prefers-reduced-motion: reduce) {
  .bubble { animation: none; }
}

/* privacy page */
.legal { max-width: 640px; margin: 0 auto; padding: 48px 16px 64px; }
.legal h1 { color: var(--ink); text-shadow: none; font-size: 32px; margin: 28px 0 0; }
.legal h2 { font-size: 22px; margin: 32px 0 6px; }
.legal h3 { font-size: 17px; margin: 20px 0 4px; }
.legal p, .legal li { color: var(--ink-2); }
.legal .fine { font-size: 14px; color: var(--muted); margin-top: 4px; }
.legal .logo { margin: 0; }
.legal a { color: var(--ink); }
