/* Stick & Play site: the look comes from the game (web/css/base.css, web/css/home.css). */
:root {
  --ink: #493c50; --muted: #756579; --paper: #fffdf5;
  --mint: #e6f6f0; --warm: #fff1d2; --sky: #96e4e2;
  --play-a: #ffdb8e; --play-b: #ffb66c; --play-edge: #d99a48; --play-ink: #71401f;
  --stick-a: #c8eee4; --stick-b: #84d1cd; --stick-edge: #589f9f; --stick-ink: #24595c;
  --yel-a: #ffe7a3; --yel-b: #f8cb6b; --yel-edge: #bb9549; --yel-ink: #71491d;
  --r: 28px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 600 18px/1.5 "Nunito", "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif;
  -webkit-text-size-adjust: 100%; overflow-x: hidden; }
img { max-width: 100%; display: block; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
h1 { font-size: clamp(40px, 7.2vw, 76px); line-height: 1.02; font-weight: 900; letter-spacing: -.02em; }
h2 { font-size: clamp(30px, 4.6vw, 48px); line-height: 1.1; font-weight: 900; letter-spacing: -.015em; text-wrap: balance; }
h3 { font-size: 21px; line-height: 1.25; font-weight: 800; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.wrap.narrow { width: min(760px, 100% - 32px); }
.ico { display: inline-grid; place-items: center; }
.ico svg { width: 1em; height: 1em; display: block; }

/* buttons: the game's "thick edge" button, pressed down on tap */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 64px; padding: 0 34px; border-radius: 34px;
  border: 3px solid #ffffffb3; font: inherit; font-size: 24px; font-weight: 900; text-decoration: none; cursor: pointer; white-space: nowrap;
  box-shadow: 0 7px 0 var(--edge), 0 14px 24px #384c4822, inset 0 3px 0 #ffffff80; transition: transform .08s, box-shadow .08s; }
.btn:active { transform: translateY(5px); box-shadow: 0 2px 0 var(--edge), 0 6px 12px #384c4822, inset 0 3px 0 #ffffff80; }
.btn .ico { font-size: 34px; }
.btn-play { --edge: var(--play-edge); color: var(--play-ink); background: linear-gradient(150deg, var(--play-a), var(--play-b)); }
.btn-yellow { --edge: var(--yel-edge); color: var(--yel-ink); background: linear-gradient(var(--yel-a), var(--yel-b)); }
.btn.small { min-height: 46px; padding: 0 20px; font-size: 18px; border-width: 2px; box-shadow: 0 4px 0 var(--edge); }
.btn.small:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--edge); }
:focus-visible { outline: 3px solid #2f7fd1; outline-offset: 3px; }

/* header */
.top { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 14px; padding: 18px max(16px, calc(50vw - 580px));
  background: #fffdf5e6; backdrop-filter: blur(10px); border-bottom: 2px solid #493c5012; }
/* the logo is the name itself: two labels stuck a little askew, in the colours of the game's two buttons */
.logo { display: inline-flex; align-items: center; font-weight: 900; font-size: 21px; line-height: 1; text-decoration: none; white-space: nowrap; }
.logo b { display: inline-block; padding: .22em .42em .26em; border: .12em solid #fff; border-radius: .42em; color: #fff; font-weight: 900; box-shadow: 0 .06em 0 #493c5026, 0 0 1px #493c5066; }
.logo b:first-child { background: #58b8b4; transform: rotate(-4deg); }
.logo b:last-child { background: #ffa94d; transform: rotate(3deg); }
.logo i { font-style: normal; font-size: .8em; width: 1.25em; height: 1.25em; margin: 0 -.22em; position: relative; z-index: 1; display: grid; place-items: center; border-radius: 50%;
  background: #f8cb6b; color: var(--play-ink); border: .1em solid #fff; box-shadow: 0 0 1px #493c5066; }
.links { display: none; gap: 22px; margin-left: 18px; }
/* on hover a link gets the stitched line of the game's big buttons (web/css/home.css, .big::after) */
.links a { text-decoration: none; font-weight: 700; font-size: 16px; color: var(--muted); padding: 6px 0; border-bottom: 2px dashed transparent; transition: border-color .15s, color .15s; }
.links a:hover, .links a:focus-visible { color: var(--ink); border-bottom-color: var(--play-b); }
.lang { margin-left: auto; }
.lang select { font: inherit; font-size: 15px; font-weight: 700; color: var(--ink); background: #fff; border: 2px solid #493c5026; border-radius: 14px; padding: 8px 10px; max-width: 108px; }
@media (min-width: 900px) { .links { display: flex; } }
@media (max-width: 420px) { .logo { font-size: 17px; } }

/* hero: the game's sky, the hills picture pinned to the bottom with the sun pushed off the left edge */
.hero { position: relative; background: var(--sky) url("./play/img/bg/homescreen.jpg") right bottom / 170% auto no-repeat; padding: 36px 0 150px; overflow: hidden; }
/* parallax (js/site.js sets --sy, the scroll in px): the hills lag behind the page, the text a little, the photo runs ahead */
.hero { background-position: right 0 bottom calc(var(--sy, 0px) * -.2); }
.hero-text { translate: 0 calc(var(--sy, 0px) * .16); }
.hero-photo { translate: 0 calc(var(--sy, 0px) * -.07); }
.hero-grid { display: grid; gap: 34px; align-items: center; }
.hero-text { text-align: center; }
.lead { font-size: clamp(19px, 2.4vw, 24px); font-weight: 700; margin-top: 16px; max-width: 30em; margin-inline: auto; text-wrap: balance; }
.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 24px; margin-top: 26px; }
.facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 24px; }
.facts li { background: #ffffffbf; border-radius: 20px; padding: 6px 14px; font-size: 16px; font-weight: 800; }
@media (min-width: 980px) {
  .hero { padding: 64px 0 190px; background-size: 150% auto; }
  .hero-grid { grid-template-columns: minmax(370px, .67fr) 1.33fr; gap: 40px; }
  .hero h1 { font-size: clamp(44px, 4.6vw, 62px); }
  .hero-text { text-align: left; }
  .lead { margin-inline: 0; }
  .cta, .facts { justify-content: flex-start; }
}

/* the photo on the first screen: framed like a sticker, white edge and a slight tilt */
.hero-photo { margin: 0; }
.hero-photo img { width: 100%; height: auto; border-radius: clamp(20px, 3.4vw, 36px); border: clamp(6px, 1vw, 10px) solid #fff;
  box-shadow: 0 10px 0 #2f6f7026, 0 28px 44px #2b3d4440; transform: rotate(1.5deg); }
.try { max-width: 760px; margin: 36px auto 0; }
.try .hint { color: var(--muted); }

/* the mini album (js/site.js): a page and a tray of stickers inside a tablet */
.tablet { background: #453d52; border-radius: clamp(18px, 3.4vw, 34px); padding: clamp(8px, 1.6vw, 16px); box-shadow: 0 10px 0 #2e2838, 0 28px 40px #2b3d4440; }
.screen-in { border-radius: clamp(10px, 2vw, 20px); overflow: hidden; background: #fff8e6; }
.page { position: relative; aspect-ratio: 1536 / 744; background: #b9e58a url("./play/img/bg/farm.jpg") center / cover; overflow: hidden; touch-action: none; }
.tray { display: flex; justify-content: center; align-items: center; gap: 2%; height: clamp(58px, 12vw, 104px); padding: 6px 10px; background: #fff8e6; border-top: 3px solid #e9dcb9; }
.stk { border: 0; padding: 0; background: none; cursor: grab; touch-action: none; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; }
.stk img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; filter: drop-shadow(0 3px 2px #3a2b1838); }
.tray .stk { height: 100%; aspect-ratio: 1; }
.page .stk { position: absolute; width: 19%; aspect-ratio: 1; transform: translate(-50%, -50%); }
.stk.drag { position: fixed; z-index: 90; transform: translate(-50%, -50%) scale(1.08); cursor: grabbing; height: auto; }
.stk.pop img { animation: pop .45s ease; }
.stk.sp img { animation: bob 2.6s ease-in-out infinite; }
.stk.sp.pop img { animation: pop .45s ease; }
.tray .stk { position: relative; }
.stk.fly { z-index: 5; }
.try { position: relative; }
.finger.demo { left: 0; top: 0; z-index: 6; width: 58px; height: 58px; margin: -3px 0 0 -13px; }
@keyframes pop { 30% { transform: scale(1.18) rotate(-5deg); } 60% { transform: scale(.96) rotate(3deg); } }
@keyframes bob { 50% { transform: translateY(-6%) rotate(2deg); } }
.hint { margin-top: 14px; text-align: center; font-size: 16px; font-weight: 800; color: #2f4f52; }
.hand { display: inline-block; animation: nudge 1.8s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(-4px); } }

/* the spoken word, shown above the sticker for those with sound off */
.word { position: fixed; z-index: 95; left: 0; top: 0; transform: translate(-50%, -100%); padding: 6px 16px; border-radius: 18px; background: #fff; color: var(--ink);
  font-size: 22px; font-weight: 900; box-shadow: 0 4px 0 #493c5026, 0 8px 18px #0000001f; pointer-events: none; opacity: 0; transition: opacity .15s; white-space: nowrap; }
.word.show { opacity: 1; }

/* sections */
.sec { padding: clamp(56px, 8vw, 96px) 0; }
.tint-mint { background: var(--mint); }
.tint-warm { background: var(--warm); }
.sec h2, .sub { text-align: center; }
.sub { margin: 12px auto 0; color: var(--muted); font-weight: 700; max-width: 34em; text-wrap: balance; }

/* how it works: two panels, one per button of the game. Play shows a lesson path, Stick shows albums */
.duo { display: grid; gap: 26px; margin-top: 40px; }
@media (min-width: 900px) { .duo { grid-template-columns: 1fr 1fr; } }
.panel { container-type: inline-size; border-radius: 40px; border: 4px solid #ffffffb3; padding: clamp(22px, 3.4vw, 36px); display: flex; flex-direction: column;
  box-shadow: 0 9px 0 var(--edge), 0 20px 30px #384c481f, inset 0 3px 0 #ffffff80; }
.p-play { --edge: var(--play-edge); --pi: var(--play-ink); background: linear-gradient(160deg, #fff4dc, #ffdfae); }
.p-stick { --edge: var(--stick-edge); --pi: var(--stick-ink); background: linear-gradient(160deg, #e9f8f3, #bfe8e1); }
.panel header { display: flex; align-items: center; gap: 16px; margin-bottom: 5cqw; }
.panel header .ico { font-size: 52px; width: 80px; height: 80px; border-radius: 50%; background: #fffdf1; box-shadow: 0 4px 0 #0000000f; flex: none; }
.panel h3 { font-size: clamp(32px, 4vw, 42px); font-weight: 900; color: var(--pi); letter-spacing: -.01em; }
.panel > p { margin-top: 14px; color: var(--pi); font-weight: 700; max-width: 30em; }
.panel .count { margin-top: 18px; font-size: clamp(17px, 3.6cqw, 22px); font-weight: 900; text-align: center; max-width: none; }

/* the lesson path: done, done, next (bigger, hops), locked, locked, the star, on a curve from the top left to the
   bottom right of the panel. The stage is 600 x 420 units (the SVG line and the left/top of each lesson are generated
   together); --n is a lesson circle, 84 of those 600 units. Beside each lesson, its game. */
.path { --n: 14cqw; position: relative; aspect-ratio: 600 / 420; margin-top: auto; }
.path .line { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.path .line path { fill: none; stroke-linecap: round; }
.path .todo { stroke: #d9c39a; stroke-width: 9; stroke-dasharray: 0.1 20; }
.path .walked { stroke: #7fd08a; stroke-width: 10; }
.path li { position: absolute; width: var(--n); height: var(--n); margin: calc(var(--n) / -2) 0 0 calc(var(--n) / -2); }
.path b { position: relative; z-index: 1; width: 100%; height: 100%; border-radius: 50%; background: #fffdf4; border: max(3px, .9cqw) solid #fff; display: grid; place-items: center;
  font-size: calc(var(--n) * .52); font-weight: 900; color: #3b5b7a; box-shadow: 0 max(4px, 1.1cqw) 0 #d9b77a; }
.path b img { width: calc(var(--n) * .74); height: calc(var(--n) * .74); object-fit: contain; }
.path b .ico { font-size: calc(var(--n) * .56); }
.path .done b { box-shadow: 0 max(4px, 1.1cqw) 0 #5aa86a; border-color: #b7ecc0; }
.path .done b::after { content: "✓"; position: absolute; right: -14%; top: -14%; width: 40%; height: 40%; border-radius: 50%; background: #62c77a; color: #fff;
  font-size: calc(var(--n) * .26); display: grid; place-items: center; border: max(2px, .5cqw) solid #fff; }
.path .now b { transform: scale(1.14); border-color: var(--play-b); box-shadow: 0 max(4px, 1.1cqw) 0 var(--play-edge), 0 0 0 1.5cqw #ffb66c40; animation: path-hop 2.4s ease-in-out infinite; }
.path .lock b, .path .lock .g { filter: grayscale(1); opacity: .55; }
.path .goal b { background: none; border: 0; box-shadow: none; }
.path .goal .ico { font-size: var(--n); }
@keyframes path-hop { 0%, 70%, 100% { transform: scale(1.14); } 82% { transform: scale(1.14) translateY(-12%); } }
.path .g { position: absolute; width: 16cqw; display: flex; flex-direction: column; align-items: center; gap: .9cqw; font-size: clamp(10.5px, 2.7cqw, 17px); font-weight: 800; color: var(--play-ink); text-align: center; line-height: 1.1; white-space: nowrap; }
.path .g.below { left: 50%; top: calc(100% + 3cqw); transform: translateX(-50%); }
.path .g.right { left: calc(100% + 2.6cqw); top: 50%; transform: translateY(-50%); }
.path .g.left { right: calc(100% + 2.6cqw); top: 50%; transform: translateY(-50%); }
.path .g .ico { width: 11cqw; height: 11cqw; border-radius: 26%; background: #ffffffb3; font-size: 7.6cqw; }
.path .g svg { width: 1em; height: 1em; }
.path .g em { font-style: normal; }

/* four albums laid out two by two, each a little askew: there are many of them. Each is the album as it is in the game
   (web/css/album.css), small: the page with stickers on it, the tabs of the eight albums, the shelf with the set
   (js/site.js builds them). Sizes inside are in cqw of the mini screen itself. */
.fan { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5cqw; margin-top: auto; padding: 2cqw 1cqw 1cqw; text-decoration: none; }
.mini { container-type: inline-size; display: block; border-radius: 16px; border: 4px solid #fff; overflow: hidden;
  box-shadow: 0 6px 0 #2f6f7033, 0 12px 20px #2b3d4433; transition: transform .25s; }
.mini:nth-child(1) { transform: rotate(-4deg); }
.mini:nth-child(2) { transform: rotate(3deg); }
.mini:nth-child(3) { transform: rotate(2.5deg); }
.mini:nth-child(4) { transform: rotate(-3deg); }
.mscene { position: relative; display: block; height: 50cqw; background: #b9e58a center / cover; }
.mtabs { position: absolute; left: 3cqw; top: 3cqw; display: flex; gap: 1.5cqw; }
.mtabs i { width: 9cqw; height: 9cqw; border-radius: 2.8cqw; border: max(2px, .5cqw) solid #fff; display: grid; place-items: center; box-shadow: 0 .6cqw 0 #51676850, 0 1cqw 1.8cqw #2639421a; }
.mtabs i.on { border-color: #fff7d8; outline: max(2px, .5cqw) solid #dc994a; }
.mtabs img { width: 68%; height: 68%; object-fit: contain; }
.mst { position: absolute; width: 17cqw; aspect-ratio: 1; object-fit: contain; transform: translate(-50%, -50%);
  filter: drop-shadow(.25cqw 0 0 #fffdf2) drop-shadow(-.25cqw 0 0 #fffdf2) drop-shadow(0 .4cqw 0 #fffdf2) drop-shadow(0 .6cqw .4cqw #344b5133); }
.mshelf { position: relative; display: flex; align-items: center; gap: 2.4cqw; height: 21cqw; padding: 0 3cqw 1.2cqw; overflow: hidden;
  background: linear-gradient(#fff9e9, #f0e0c3); border-top: max(3px, .7cqw) solid #fff9eb; box-shadow: 0 -.7cqw 0 #c8b390; }
.mshelf b { position: relative; flex: none; width: 14.5cqw; height: 14.5cqw; border-radius: 2.8cqw; border: max(2px, .4cqw) solid #fff; background: #fffdf6;
  display: grid; place-items: center; box-shadow: 0 .6cqw 0 #d3bd96, 0 1cqw 1.6cqw #8c71451a; }
.mshelf b img { width: 76%; height: 76%; object-fit: contain; }
.mshelf .new img { opacity: .5; filter: saturate(.6); }
.mshelf u { position: absolute; top: -1cqw; right: -1cqw; width: 4.6cqw; height: 4.6cqw; border-radius: 50%; border: max(1.5px, .35cqw) solid #fff7e3; background: #3d8068; color: #fff;
  font-size: 2.8cqw; font-weight: 900; line-height: 1; text-decoration: none; display: grid; place-items: center; }
.mshelf em { position: absolute; left: 50%; bottom: -1.6cqw; transform: translateX(-50%); display: flex; align-items: center; gap: .4cqw; padding: .3cqw 1.2cqw; border-radius: 2cqw;
  background: #f5e9cc; color: #815a21; font-style: normal; font-size: 2.7cqw; font-weight: 800; line-height: 1.2; white-space: nowrap; }
@media (hover: hover) { .mini:hover { transform: rotate(0deg) scale(1.04); } }

/* six games */
.games { display: grid; gap: 20px; margin-top: 44px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.game { background: #fff; border-radius: var(--r); padding: 14px 14px 22px; box-shadow: 0 5px 0 #c7e3da, 0 12px 22px #2c5a4a12; }
.game h3 { margin: 16px 8px 4px; }
.game p { margin: 0 8px; color: var(--muted); font-size: 17px; }
.mock { aspect-ratio: 16 / 10; border-radius: 20px; display: grid; place-content: center; justify-items: center; gap: 10px; overflow: hidden; position: relative; }
.mock i { display: grid; place-items: center; width: 74px; height: 74px; border-radius: 20px; background: #fff; box-shadow: 0 4px 0 #0000001a; }
.mock i img { width: 62px; height: 62px; object-fit: contain; }
.m-find { background: #d5edfb; }
.m-find .say { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 22px; padding: 4px 18px; font-size: 24px; font-weight: 900; color: #3b5b7a; }
.m-find .row { display: flex; gap: 12px; }
.m-find .ok { outline: 5px solid #62c77a; position: relative; }
.m-find .ok::after { content: "✓"; position: absolute; right: -10px; top: -12px; width: 30px; height: 30px; border-radius: 50%; background: #62c77a; color: #fff; display: grid; place-items: center; font-style: normal; font-weight: 900; font-size: 18px; }
.m-trace { background: #ffe9d0; }
.m-trace svg { height: 150px; width: 150px; }
.m-trace svg { overflow: visible; }
.m-trace path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.m-trace .s-bg { stroke: #fff; stroke-width: 22; }
.m-trace .s-ink { stroke: #ff8a5c; stroke-width: 22; stroke-dasharray: 100; stroke-dashoffset: 52; }
.m-trace .s-dash { stroke: #c98a66; stroke-width: 2; stroke-dasharray: 5 6; }
.m-trace .fing { offset-path: path("M82 36C74 18 38 18 38 42C38 62 84 56 82 82C80 104 44 104 36 86"); offset-rotate: 0deg; offset-distance: 48%; opacity: 0; }
.m-trace .fing path { fill: #ffd9b3; stroke: #b9774a; stroke-width: 2.500; stroke-linejoin: round; }
.m-puzzle { background: #dff2c9; }
.pz { display: grid; grid-template-columns: 70px 70px; gap: 3px; position: relative; }
.pz b { width: 70px; height: 70px; background: #fff url("./play/img/stickers/farm/horse.png") 0 0 / 140px 140px; border-radius: 8px; box-shadow: 0 3px 0 #0000001a; }
.pz b:nth-child(2) { background-position: -70px 0; }
.pz b:nth-child(3) { background-position: 0 -70px; }
.pz .out { background-position: -70px -70px; transform: translate(46px, 14px) rotate(14deg); box-shadow: 0 8px 14px #00000033; }
.m-pairs { background: #e6e0fa; }
.cards { display: grid; grid-template-columns: repeat(3, 58px); gap: 9px; }
.cards b { height: 66px; border-radius: 12px; background: #7da2e8; box-shadow: 0 4px 0 #4d6fb3; display: grid; place-items: center; }
.cards b::before { content: "✦"; color: #ffffffd9; font-size: 24px; }
.cards .up { background: #fffdf4; box-shadow: 0 4px 0 #d9c79f; }
.cards .up::before { content: none; }
.cards .up img { width: 50px; }
.m-race { background: #cfeeda; display: block; }
.m-race .gate { display: flex; justify-content: center; gap: 46px; padding-top: 12px; }
.m-race .gate { gap: 52px; padding-top: 10px; position: relative; z-index: 1; }
.m-race .gate i { width: 54px; height: 54px; border-radius: 16px; }
.m-race .gate i img { width: 44px; height: 44px; }
.m-race .road { position: absolute; top: 0; bottom: 0; left: 50%; width: 210px; margin-left: -105px; background-color: #6f6a7c;
  background-image: linear-gradient(#fff 55%, transparent 0); background-size: 6px 26px; background-repeat: repeat-y; background-position: center 4px; }
.m-race .coin { position: absolute; left: 144px; top: 36%; font-size: 28px; }
.m-race .car { position: absolute; left: 35px; bottom: 5px; width: 36px; height: auto; filter: drop-shadow(0 3px 2px #0000004d); }
.m-balls { background: #fbe3ec; }
.m-balls .grid { display: grid; grid-template-columns: repeat(5, 40px); gap: 5px; padding: 8px; background: #ffffff8c; border-radius: 14px; }
.m-balls b { width: 40px; height: 40px; border-radius: 50%; background: #ffffffb3; display: grid; place-items: center; color: #fff; font-size: 19px; font-weight: 900; }
.m-balls .r { background: radial-gradient(circle at 35% 30%, #ff9a7c, #e2572b); box-shadow: 0 3px 0 #a83c1b; }
.m-balls .g { background: radial-gradient(circle at 35% 30%, #9be08f, #4fae5e); box-shadow: 0 3px 0 #357f43; }
.m-balls .b { background: radial-gradient(circle at 35% 30%, #7db8f0, #1f6fc0); box-shadow: 0 3px 0 #164f8c; }

.m-balls .won { position: absolute; left: 50%; top: 50%; width: 104px; height: 104px; margin: -52px 0 0 -52px; border-radius: 28px; box-shadow: 0 6px 0 #0000001f, 0 12px 22px #00000026; transform: scale(0); }
.m-balls .won img { width: 88px; height: 88px; }

/* The cards play their game: on hover with a mouse, or (.play, site.js) while the card is in the middle of a touch screen.
   Without either, each card rests on a still frame. */
.game { transition: transform .2s, box-shadow .2s; }
.tip { display: none; }
@media (hover: hover) {
  .tip { display: inline; }
  .game:hover { transform: translateY(-5px); box-shadow: 0 10px 0 #c7e3da, 0 20px 30px #2c5a4a1f; }
}
.finger { position: absolute; width: 40px; height: 40px; margin: -2px 0 0 -9px; opacity: 0; pointer-events: none; transform-origin: 23% 5%; filter: drop-shadow(0 3px 3px #00000033);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='4 0 56 56'%3E%3Cpath transform='rotate(-20 17 3)' d='M12 33V8a5 5 0 0 1 10 0V23a3.5 3.5 0 0 1 7 0a3.5 3.5 0 0 1 7 0a3.5 3.5 0 0 1 7 0V38a14 14 0 0 1-14 14h-5c-5 0-8.5-2.500-11-7L5 34a3.600 3.600 0 0 1 6-4z' fill='%23ffd9b3' stroke='%23b9774a' stroke-width='2.5' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }

/* 1. find the picture: the word sounds, the finger comes and taps the cow */
.m-find .finger { left: 50%; top: calc(50% + 27px); }
.game:is(:hover, .play) .m-find .say { animation: g-say 3.4s infinite; }
.game:is(:hover, .play) .m-find .finger { animation: g-find-finger 3.4s infinite; }
.game:is(:hover, .play) .m-find .ok { animation: g-find-ok 3.4s infinite; }
.game:is(:hover, .play) .m-find .ok::after { animation: g-find-check 3.4s infinite; }
.game:is(:hover, .play) .m-find i:not(.ok) { animation: g-find-dim 3.4s infinite; }
@keyframes g-say { 0%, 16%, 100% { transform: none; } 5% { transform: scale(1.12); } 10% { transform: scale(1); } 13% { transform: scale(1.08); } }
@keyframes g-find-finger { 0% { opacity: 0; transform: translate(70px, 80px); } 14% { opacity: 1; } 40% { transform: none; } 46% { transform: scale(.84); } 52%, 80% { transform: none; opacity: 1; } 100% { opacity: 0; transform: translate(70px, 80px); } }
@keyframes g-find-ok { 0%, 45% { outline-color: transparent; transform: none; } 48% { transform: scale(.92); } 54%, 100% { outline-color: #62c77a; transform: none; } }
@keyframes g-find-check { 0%, 47% { transform: scale(0); } 55% { transform: scale(1.3); } 61%, 100% { transform: scale(1); } }
@keyframes g-find-dim { 0%, 47% { opacity: 1; } 56%, 92% { opacity: .5; } 100% { opacity: 1; } }

/* 2. trace the letter: the finger runs along the S and paints it */
.game:is(:hover, .play) .m-trace .s-ink { animation: g-trace-ink 3.6s linear infinite; }
.game:is(:hover, .play) .m-trace .fing { animation: g-trace-finger 3.6s linear infinite; }
.game:is(:hover, .play) .m-trace svg { animation: g-trace-pop 3.6s infinite; }
@keyframes g-trace-ink { 0%, 6% { stroke-dashoffset: 100; stroke: #ff8a5c; } 66% { stroke-dashoffset: 0; stroke: #ff8a5c; } 74%, 100% { stroke-dashoffset: 0; stroke: #f2614a; } }
@keyframes g-trace-finger { 0% { offset-distance: 0%; opacity: 0; } 6% { offset-distance: 0%; opacity: 1; } 66% { offset-distance: 100%; opacity: 1; } 74%, 100% { offset-distance: 100%; opacity: 0; } }
@keyframes g-trace-pop { 0%, 68%, 86%, 100% { transform: none; } 74% { transform: scale(1.14) rotate(-4deg); } 80% { transform: scale(.97) rotate(2deg); } }

/* 3. puzzle: four pieces fly in one by one, the picture bounces */
.game:is(:hover, .play) .pz { animation: g-pz-pop 4s infinite; }
.game:is(:hover, .play) .pz b:nth-child(1) { animation: g-pz1 4s infinite; }
.game:is(:hover, .play) .pz b:nth-child(2) { animation: g-pz2 4s infinite; }
.game:is(:hover, .play) .pz b:nth-child(3) { animation: g-pz3 4s infinite; }
.game:is(:hover, .play) .pz b:nth-child(4) { animation: g-pz4 4s infinite; }
@keyframes g-pz1 { 0% { opacity: 0; } 5%, 10% { opacity: 1; transform: translate(-78px, -18px) rotate(-18deg); } 22%, 94% { transform: none; opacity: 1; } 100% { opacity: 0; } }
@keyframes g-pz2 { 0% { opacity: 0; } 5%, 24% { opacity: 1; transform: translate(74px, -26px) rotate(20deg); } 36%, 94% { transform: none; opacity: 1; } 100% { opacity: 0; } }
@keyframes g-pz3 { 0% { opacity: 0; } 5%, 38% { opacity: 1; transform: translate(-82px, 30px) rotate(12deg); } 50%, 94% { transform: none; opacity: 1; } 100% { opacity: 0; } }
@keyframes g-pz4 { 0% { opacity: 0; } 5%, 52% { opacity: 1; transform: translate(46px, 14px) rotate(14deg); box-shadow: 0 8px 14px #00000033; } 64%, 94% { transform: none; opacity: 1; box-shadow: 0 3px 0 #0000001a; } 100% { opacity: 0; } }
@keyframes g-pz-pop { 0%, 66%, 84%, 100% { transform: none; gap: 3px; } 72% { transform: scale(1.12); gap: 0; } 78% { transform: scale(.98); gap: 0; } }

/* 4. pairs: two cards turn over, they match and jump */
.cards .up { position: relative; }
.cards .up::after { content: "✦"; position: absolute; inset: 0; border-radius: 12px; background: #7da2e8; box-shadow: 0 4px 0 #4d6fb3; display: grid; place-items: center; color: #ffffffd9; font-size: 24px; opacity: 0; }
.game:is(:hover, .play) .cards .up:nth-child(2) { animation: g-flip-a 3.8s infinite; }
.game:is(:hover, .play) .cards .up:nth-child(2)::after { animation: g-cover-a 3.8s infinite; }
.game:is(:hover, .play) .cards .up:nth-child(6) { animation: g-flip-b 3.8s infinite; }
.game:is(:hover, .play) .cards .up:nth-child(6)::after { animation: g-cover-b 3.8s infinite; }
@keyframes g-flip-a { 0%, 10% { transform: none; } 16% { transform: scaleX(0); } 22%, 56% { transform: none; } 62% { transform: scale(1.16) rotate(-5deg); } 68%, 90% { transform: none; } 95% { transform: scaleX(0); } 100% { transform: none; } }
@keyframes g-cover-a { 0%, 16% { opacity: 1; } 16.100%, 95% { opacity: 0; } 95.100%, 100% { opacity: 1; } }
@keyframes g-flip-b { 0%, 32% { transform: none; } 38% { transform: scaleX(0); } 44%, 56% { transform: none; } 62% { transform: scale(1.16) rotate(5deg); } 68%, 90% { transform: none; } 95% { transform: scaleX(0); } 100% { transform: none; } }
@keyframes g-cover-b { 0%, 38% { opacity: 1; } 38.100%, 95% { opacity: 0; } 95.100%, 100% { opacity: 1; } }

/* 5. race: the road runs, the word picks the lane, the car moves over and takes the coin */
.game:is(:hover, .play) .m-race .road { animation: g-road .45s linear infinite; }
.game:is(:hover, .play) .m-race .car { animation: g-car 3.6s ease-in-out infinite; }
.game:is(:hover, .play) .m-race .coin { animation: g-coin 3.6s linear infinite; }
.game:is(:hover, .play) .m-race .hit { animation: g-hit 3.6s infinite; }
@keyframes g-road { from { background-position: center 4px; } to { background-position: center 30px; } }
@keyframes g-car { 0%, 18% { transform: none; } 26% { transform: translateX(53px) rotate(16deg); } 34%, 74% { transform: translateX(106px); } 82% { transform: translateX(53px) rotate(-16deg); } 90%, 100% { transform: none; } }
@keyframes g-coin { 0%, 30% { top: 10%; opacity: 0; transform: none; } 32% { top: 10%; opacity: 1; } 58% { top: 62%; opacity: 1; transform: none; } 66%, 100% { top: 62%; opacity: 0; transform: scale(2.2); } }
@keyframes g-hit { 0%, 6%, 100% { outline: 5px solid transparent; transform: none; } 10% { outline: 5px solid #ffc94a; transform: scale(1.14); } 16%, 62% { outline: 5px solid #ffc94a; transform: none; } 70% { outline: 5px solid transparent; } }

/* 6. letter balls: the last ball joins the row, the row pops and the word's picture comes out */
.game:is(:hover, .play) .m-balls .r { animation: g-ball-pop 3.8s infinite; }
.game:is(:hover, .play) .m-balls .r.join { animation: g-ball-in 3.8s infinite; }
.game:is(:hover, .play) .m-balls .won { animation: g-won 3.8s infinite; }
@keyframes g-ball-pop { 0%, 40%, 54%, 100% { transform: none; } 47% { transform: scale(1.22); } }
@keyframes g-ball-in { 0%, 14% { transform: translate(45px, -45px); } 24% { transform: translate(22px, -58px); } 34%, 40% { transform: none; } 47% { transform: scale(1.22); } 54%, 100% { transform: none; } }
@keyframes g-won { 0%, 54% { transform: scale(0) rotate(-12deg); } 64% { transform: scale(1.12) rotate(3deg); } 70%, 90% { transform: scale(1); } 100% { transform: scale(0); } }

/* albums: a row to swipe */
.albums { display: flex; gap: 18px; margin-top: 40px; padding: 8px max(16px, calc(50vw - 580px)) 26px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; }
.album { flex: 0 0 min(78vw, 330px); scroll-snap-align: center; border-radius: var(--r); overflow: hidden; background: #fff; box-shadow: 0 6px 0 #e4d9bf, 0 14px 24px #5a462a1a; }
.album { cursor: pointer; outline: 5px solid transparent; outline-offset: -5px; transition: transform .2s, outline-color .2s; }
.album.sel { outline-color: var(--play-b); }
@media (hover: hover) { .album:hover { transform: translateY(-4px); } }
.album .pic { position: relative; aspect-ratio: 4 / 3; background-size: cover; background-position: center bottom; }
.album .stk { position: absolute; width: 36%; aspect-ratio: 1; bottom: 6%; cursor: pointer; touch-action: manipulation; }
.album .stk:nth-child(1) { left: 2%; transform: rotate(-6deg); }
.album .stk:nth-child(2) { left: 32%; bottom: 14%; }
.album .stk:nth-child(3) { right: 2%; transform: rotate(6deg); }
.album figcaption { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px 14px; font-size: 21px; font-weight: 900; }
.album figcaption span { font-size: 15px; font-weight: 800; color: var(--muted); }
.album figure { margin: 0; }
.rarity { display: grid; gap: 10px; margin: 18px auto 0; max-width: 760px; }
.rarity li { background: var(--warm); border-radius: 18px; padding: 12px 18px; font-size: 17px; }
.rarity b { font-weight: 900; }
@media (min-width: 800px) { .rarity { grid-template-columns: repeat(3, 1fr); max-width: none; } }

/* what kids learn */
.learn { display: grid; gap: 18px; margin-top: 44px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.learn article { background: #fff; border-radius: var(--r); padding: 26px 22px; box-shadow: 0 5px 0 #ecd9a8; }
.learn .num { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; font-size: 36px; font-weight: 900; color: var(--play-ink);
  background: linear-gradient(150deg, var(--play-a), var(--play-b)); box-shadow: 0 5px 0 var(--play-edge); margin-bottom: 18px; }
.learn article:nth-child(2) .num { color: var(--stick-ink); background: linear-gradient(150deg, var(--stick-a), var(--stick-b)); box-shadow: 0 5px 0 var(--stick-edge); }
.learn article:nth-child(3) .num { color: #5b3f8c; background: linear-gradient(150deg, #e7dcff, #c4abf2); box-shadow: 0 5px 0 #9479cb; }
.learn article:nth-child(4) .num { color: #8a3554; background: linear-gradient(150deg, #ffdbe6, #ffa8c0); box-shadow: 0 5px 0 #d5708f; }
.learn p { color: var(--muted); font-size: 17px; margin-top: 6px; }

/* for parents */
.trust { display: grid; gap: 30px 26px; margin-top: 46px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.trust li { display: grid; grid-template-columns: 60px 1fr; column-gap: 16px; align-items: start; }
.trust .badge { grid-row: span 2; width: 60px; height: 60px; border-radius: 20px; display: grid; place-items: center; box-shadow: 0 4px 0 #0000001a; }
.trust svg { width: 34px; height: 34px; fill: #fff; }
.trust .ln { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.trust .ln.dark { stroke: #fff; }
.trust p { color: var(--muted); font-size: 17px; margin-top: 4px; }
.c1 { background: #62c77a; color: #2f8a48; } .c2 { background: #5aa9e6; } .c3 { background: #ff7f9c; }
.c4 { background: #f2a23c; } .c5 { background: #9a7ee0; color: #6a4fb3; } .c6 { background: #3bb8b0; }

/* FAQ */
.faq { margin-top: 36px; display: grid; gap: 12px; }
.faq details { background: #fff; border-radius: 22px; box-shadow: 0 4px 0 #c7e3da; }
.faq summary { cursor: pointer; padding: 18px 56px 18px 22px; font-size: 20px; font-weight: 800; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; translate: 0 -50%; width: 30px; height: 30px; border-radius: 50%; background: var(--mint); display: grid; place-items: center; font-weight: 900; }
.faq details[open] summary::after { content: "–"; }
.faq p { padding: 0 22px 20px; color: var(--muted); }

/* last screen */
.last { background: var(--sky) url("./play/img/bg/homescreen.jpg") center bottom / max(140%, 1100px) auto no-repeat; padding: clamp(60px, 9vw, 110px) 0 200px; text-align: center; }
.last .btn { margin-top: 28px; }
.notify { margin: 44px auto 0; max-width: 520px; background: #fffdf5eb; border-radius: var(--r); padding: 22px; box-shadow: 0 6px 0 #2f6f7026; }
.notify label { display: block; font-weight: 800; font-size: 19px; }
.field { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.field input { flex: 1 1 220px; min-height: 56px; border: 3px solid #493c5033; border-radius: 28px; padding: 0 20px; font: inherit; font-size: 18px; color: var(--ink); background: #fff; }
.field .btn { margin: 0; min-height: 56px; font-size: 20px; padding: 0 26px; flex: 1 0 auto; }
.fine { margin-top: 12px; font-size: 15px; color: var(--muted); }

/* footer */
.foot { background: #493c50; color: #f3ecf5; padding: 30px 0; font-size: 16px; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.foot nav { display: flex; gap: 20px; margin-right: auto; }
.foot a { color: inherit; }
.foot .logo { font-size: 19px; }
.foot .made { flex-basis: 100%; margin: 0; font-size: 14px; opacity: .75; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* a round separator between the two words of a heading */
h2 .sep { display: inline-block; width: .32em; height: .32em; margin: 0 .42em; border-radius: 50%; background: #ffb66c; vertical-align: .22em; }

/* 6.8 Pricing: the free plan and the three ways to pay; the year is the one to look at first */
.prices { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: stretch; }
.prices li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; background: #fff; border-radius: var(--r); padding: 30px 18px 24px;
  box-shadow: 0 6px 0 #e4d9bf, 0 14px 24px #6b55301a; }
.prices h3 { font-size: 22px; font-weight: 800; color: var(--muted); }
.prices b { margin-top: 6px; font-size: clamp(34px, 4vw, 44px); font-weight: 900; line-height: 1.1; white-space: nowrap; }
.prices span { color: var(--muted); font-size: 16px; font-weight: 700; }
.prices p { margin-top: 14px; font-size: 17px; color: var(--ink); }
.prices .best { background: linear-gradient(160deg, #e9f8f3, #bfe8e1); box-shadow: 0 6px 0 var(--stick-edge), 0 14px 24px #24595c22; }
.prices .best h3, .prices .best span { color: var(--stick-ink); }
.prices em { position: absolute; top: -14px; padding: 4px 14px; border-radius: 14px; background: var(--stick-ink); color: #fff; font-style: normal; font-size: 14px; font-weight: 800; white-space: nowrap; }
.prices-note { margin: 26px auto 0; max-width: 46em; text-align: center; color: var(--muted); font-weight: 700; }
.prices-note + .prices-note { margin-top: 12px; }
.prices-note a { color: var(--play-ink); }
@media (max-width: 900px) { .prices { grid-template-columns: repeat(2, 1fr); gap: 26px 16px; } }
@media (max-width: 480px) { .prices { grid-template-columns: 1fr; } }
