/* Landing in the game's "Paper Pop" look (game/ui.css). Fonts and animal art are served from /play (the web game). */
@font-face { font-family: "Unbounded"; font-weight: 500 900; font-display: swap; src: url("play/fonts/unbounded-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Unbounded"; font-weight: 500 900; font-display: swap; src: url("play/fonts/unbounded-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20C4, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Unbounded"; font-weight: 500 900; font-display: swap; src: url("play/fonts/unbounded-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }

:root {
  --cobalt: #2f4bff; --tomato: #ff5b3a; --grass: #19a463; --grape: #7b4dff; --lagoon: #0fa3c4;
  --sunflower: #ffbe1a; --bubblegum: #ff6fae; --ink: #1c1f4a; --paper: #fff; --sun: #ffd23a; --mint: #7be0a1;
  --drop: rgba(28, 31, 74, .28); --slap: cubic-bezier(.2, 1.5, .45, 1);
  --font: "Unbounded", system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--cobalt); color: #fff; font: 600 16px/1.5 var(--font); overflow-x: hidden; }
main { max-width: 1040px; margin: 0 auto; padding: 20px 16px 48px; }
a { color: inherit; }

/* language pills */
.langs { display: flex; justify-content: flex-end; gap: 8px; }
.langs button {
  font: 800 13px var(--font); color: #fff; background: rgba(255,255,255,.14); border: 0; border-radius: 999px;
  padding: 8px 14px; cursor: pointer;
}
.langs button[aria-pressed="true"] { background: var(--paper); color: var(--cobalt); box-shadow: 0 4px 0 var(--drop); }

/* hero */
.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center; padding: 24px 0 40px; }
.brand { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.brand img { width: 64px; height: 64px; border-radius: 18px; border: 4px solid var(--paper); box-shadow: 0 6px 0 var(--drop); rotate: -4deg; }
.brand span { font-weight: 900; font-size: 20px; }
h1 { font-weight: 900; font-size: clamp(34px, 6vw, 60px); line-height: 1.05; margin: 0 0 18px; letter-spacing: -.01em; }
h1 em { font-style: normal; color: var(--sun); }
.lead { font-weight: 500; font-size: 17px; opacity: .92; max-width: 30em; margin: 0 0 26px; }

.ctas { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 900; font-size: 18px;
  padding: 18px 26px; border-radius: 26px; background: var(--paper); color: var(--ink); box-shadow: 0 8px 0 var(--drop);
  transition: translate .1s ease-out, box-shadow .1s ease-out, rotate .3s var(--slap);
}
.btn:hover { rotate: -2deg; }
.btn:active { translate: 0 6px; box-shadow: 0 2px 0 var(--drop); }
.btn.play { background: var(--sun); font-size: 22px; padding: 22px 30px; }
.btn svg { width: 26px; height: 26px; flex: none; }
.note { font-weight: 500; font-size: 13px; opacity: .75; margin: 18px 0 0; }

/* sticker pile */
.pile { position: relative; aspect-ratio: 1 / 1; max-width: 460px; width: 100%; justify-self: center; }
.stk {
  position: absolute; width: 46%; aspect-ratio: 3 / 4; border: 8px solid var(--paper); border-radius: 28px; overflow: hidden;
  background: var(--c); box-shadow: 0 10px 0 var(--drop); rotate: var(--tilt);
  animation: slap .5s var(--slap) both; animation-delay: var(--d, 0s);
  transition: rotate .3s var(--slap), scale .3s var(--slap);
}
.stk:hover { rotate: 0deg; scale: 1.06; z-index: 5; }
.stk img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; display: block; }
@keyframes slap { from { scale: 1.3; opacity: 0; rotate: calc(var(--tilt) * -2); } }
.tape {
  position: absolute; z-index: 6; white-space: nowrap; background: var(--paper); color: var(--ink);
  font-weight: 900; font-size: clamp(18px, 2.6vw, 26px); padding: .3em .8em .36em; rotate: var(--rot, -4deg);
  clip-path: polygon(0 6%, 3% 0, 6% 8%, 9% 0, 91% 0, 94% 8%, 97% 0, 100% 6%, 100% 94%, 97% 100%, 94% 92%, 91% 100%, 9% 100%, 6% 92%, 3% 100%, 0 94%);
  filter: drop-shadow(0 5px 0 var(--drop));
}

/* section titles */
h2 { font-weight: 900; font-size: clamp(24px, 3.6vw, 34px); margin: 48px 0 20px; }

/* screenshots */
.shots { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 12px 6px 28px; margin: 0 -16px; padding-left: 16px; }
.shots img {
  flex: 0 0 auto; width: 210px; aspect-ratio: 1320 / 2868; border-radius: 24px; border: 6px solid var(--paper);
  box-shadow: 0 9px 0 var(--drop); scroll-snap-align: center; background: rgba(255,255,255,.15);
}
.shots img:nth-child(odd) { rotate: -2deg; }
.shots img:nth-child(even) { rotate: 2deg; }

/* feature cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  position: relative; background: var(--c); border: 8px solid var(--paper); border-radius: 30px; padding: 26px 22px 22px;
  box-shadow: 0 10px 0 var(--drop); rotate: var(--tilt); color: #fff;
}
.card.ink { color: var(--ink); }
.card h3 { font-weight: 900; font-size: 21px; margin: 0 0 8px; line-height: 1.15; }
.card p { font-weight: 500; font-size: 15px; margin: 0; }
.card .chip {
  position: absolute; top: -22px; right: 18px; width: 52px; height: 52px; border-radius: 50%; border: 4px solid var(--paper);
  background: var(--sun); color: var(--ink); display: grid; place-items: center; box-shadow: 0 5px 0 var(--drop); font-size: 22px;
}
.card .chip svg { width: 24px; height: 24px; }

/* bottom call to action */
.again { text-align: center; margin-top: 56px; }
.again h2 { margin-top: 0; }

footer { margin-top: 48px; text-align: center; font-weight: 600; font-size: 14px; opacity: .85; }
footer a { margin: 0 8px; }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 8px; }
  .brand, .ctas { justify-content: center; }
  .lead { margin-left: auto; margin-right: auto; }
  .pile { max-width: 270px; order: -1; }
  .cards { grid-template-columns: 1fr; gap: 34px; }
  .shots img { width: 170px; }
}
@media (prefers-reduced-motion: reduce) { .stk { animation: none; } }
