/* Phone: one column, thumb-sized buttons, the same risograph paper look as the TV. */
html { -webkit-text-size-adjust: 100%; }
body {
  min-height: 100dvh; background: var(--paper);
  touch-action: manipulation; overscroll-behavior: none; -webkit-tap-highlight-color: transparent;
  padding-bottom: env(safe-area-inset-bottom);
}
body::after { content: ''; position: fixed; inset: 0; z-index: 60; pointer-events: none; background: url(/img/grain.png) 0 0 / 384px 384px; opacity: .75; }
.top {
  position: relative; display: flex; align-items: center; gap: 10px;
  padding: calc(10px + env(safe-area-inset-top)) calc(16px + env(safe-area-inset-right)) 26px calc(16px + env(safe-area-inset-left));
  background: var(--sky);
}
.top .hill { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 22px; display: block; }
.brand { position: relative; font-family: var(--display); font-weight: 700; font-size: 22px; color: var(--cream); text-shadow: 2px 2px 0 var(--pink); }
.pill { position: relative; background: var(--pink); color: var(--cream); font-size: 13px; font-weight: 700; padding: 2px 10px 3px; border-radius: 99px; }
.langbtn { position: relative; margin-inline-start: auto; font-size: 15px; font-weight: 700; padding: 3px 14px 5px; border-radius: 99px; background: var(--cream); border: 3px solid var(--ink); }
main { padding: 4px 16px 28px; max-width: 520px; margin: 0 auto; }
h1 { font-size: 32px; text-align: center; margin: 6px 0 16px; line-height: 1.15; }
.center { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding-top: 4px; }
.center h1 { margin: 0; }
.sub { font-size: 18px; color: var(--muted); margin: 0; font-weight: 700; }
.msg { font-size: 22px; font-weight: 700; max-width: 330px; margin: 0; }
.bigicon { margin-top: 40px; }
.tvline { display: flex; align-items: center; gap: 8px; font-size: 19px; font-weight: 700; margin: 4px 0 0; }
.link { color: var(--muted); font-size: 16px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; padding: 8px; }
.row { display: flex; gap: 4px 14px; flex-wrap: wrap; justify-content: center; }
.btn { min-width: 230px; font-size: 24px; padding: 11px 28px 15px; }
.btn.small { min-width: 0; font-size: 19px; padding: 7px 20px 10px; gap: 8px; }
.btn .ic { width: 30px; height: 30px; }

/* a character standing on a little hill */
.hero { position: relative; isolation: isolate; display: grid; place-items: center; padding-bottom: 12px; animation: pop-in .5s cubic-bezier(.3, 1.6, .5, 1) both; }
.hero::after { content: ''; position: absolute; z-index: -1; bottom: 0; width: 76%; height: 26px; background: var(--mint); border-radius: 50%; box-shadow: 5px 5px 0 var(--pink); }
.hero .char { width: 170px; height: 170px; }
.hero.small .char { width: 110px; height: 110px; }
.hero:has(.hat) { padding-top: 46px; }
.hero.small:has(.hat) { padding-top: 30px; }
.hero.bob .char { animation: bob 2.4s ease-in-out infinite; }
.myname {
  margin: 0; font-family: var(--display); font-size: 32px; line-height: 1.15;
  background: var(--cream); border: 4px solid var(--ink); border-radius: 12px; padding: 2px 22px 6px; box-shadow: 6px 6px 0 var(--pink); transform: rotate(-1.5deg);
}

/* waiting dots */
.loader { display: flex; gap: 12px; margin-top: 80px; }
.loader i { width: 20px; height: 20px; border-radius: 50%; border: 3px solid var(--ink); animation: dot 1s ease-in-out infinite; background: var(--sun); }
.loader i:nth-child(2) { background: var(--coral); animation-delay: .15s; }
.loader i:nth-child(3) { background: var(--blue); animation-delay: .3s; }

/* pick an animal */
.animals { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.animal {
  width: calc((100% - 24px) / 3); display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px 8px;
  background: var(--cream); border: 4px solid var(--ink); border-radius: 14px; box-shadow: 0 5px 0 var(--ink);
}
.animal .char { width: 84px; height: 84px; }
.animal span { font-size: 16px; font-weight: 700; }
.animal:active, .age:active, .opt:active:not(:disabled), .keypad button:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink); }
.animal.taken { opacity: .3; filter: grayscale(1); box-shadow: none; transform: translateY(4px); }
.animal.chosen { background: var(--sun); }

/* how old */
.me-line { display: flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--display); font-size: 22px; margin-top: 4px; }
.me-line .char { width: 54px; height: 54px; }
.ages { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.age { width: calc((100% - 36px) / 4); font-family: var(--display); font-size: 40px; padding: 12px 0 16px; border: 4px solid var(--ink); border-radius: 16px; box-shadow: 0 5px 0 var(--ink); background: var(--sun); }
.age:nth-child(4n+2) { background: #9DB4FF; }
.age:nth-child(4n+3) { background: var(--mint); }
.age:nth-child(4n+4) { background: #FF8AC2; }
.age.adult { width: 100%; font-size: 26px; background: var(--cream); }

/* a question */
.qtop { display: flex; align-items: center; gap: 10px; margin: 2px 0 8px; }
.qtop .char { width: 42px; height: 42px; }
.qtop .round { font-family: var(--display); font-size: 20px; color: var(--muted); }
.timebar { flex: 1; height: 18px; background: var(--cream); border: 3px solid var(--ink); border-radius: 99px; overflow: hidden; }
.timebar i { display: block; height: 100%; width: 100%; background: repeating-linear-gradient(-45deg, var(--pink) 0 10px, var(--pink-2) 10px 20px); }
.prompt { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 22px; font-weight: 700; text-align: center; margin: 4px 0; }
.prompt.only { font-family: var(--display); font-size: 34px; line-height: 1.2; margin: 26px 0; }
.say { flex: none; width: 46px; height: 46px; display: grid; place-items: center; background: var(--cream); border: 3px solid var(--ink); border-radius: 50%; box-shadow: 0 3px 0 var(--ink); }
.say .ic { width: 28px; height: 28px; }
.visual { direction: ltr; display: flex; justify-content: center; align-items: center; margin: 8px 0; }
.objrow { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; max-width: 340px; }
.objrow .gap { flex-basis: 100%; height: 0; }
.obj { animation: pop-in .35s ease-out both; }
.obj.gone { opacity: .3; position: relative; }
.obj.gone::after { content: ''; position: absolute; left: 6%; right: 6%; top: 46%; height: 5px; background: var(--coral); border: 2px solid var(--ink); transform: rotate(-30deg); border-radius: 4px; }
.math-pics { gap: 8px; }
.math-pics .grp { background: #fff; border: 4px solid var(--ink); border-radius: 18px; padding: 8px; }
.math-pics .op { font-family: var(--display); font-size: 36px; }
.math { text-align: center; font-family: var(--display); font-size: 54px; line-height: 1.15; margin: 4px 0 14px; }
.blank { display: inline-block; min-width: 1.2em; padding: 0 10px; border: 4px dashed var(--ink); border-radius: 14px; color: var(--muted); background: #fff; }
.blank.filled { border-style: solid; background: var(--leaf); color: var(--ink); }
.answers { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.opt { font-family: var(--display); font-size: 50px; padding: 14px 0 18px; border: 4px solid var(--ink); border-radius: 26px; box-shadow: 0 6px 0 var(--ink); background: var(--sun); }
.opt.c1 { background: #9DB4FF; }
.opt.c2 { background: var(--leaf); }
.opt.c3 { background: #FF8AC2; }
.opt:disabled { opacity: .35; }
.opt.picked { opacity: 1; transform: translateY(5px); box-shadow: 0 1px 0 var(--ink), 0 0 0 5px var(--paper), 0 0 0 9px var(--ink); }
.entry { font-family: var(--display); font-size: 48px; text-align: center; min-height: 74px; padding: 2px; margin-bottom: 12px; background: #fff; border: 4px solid var(--ink); border-radius: 20px; }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; }
.keypad button {
  display: grid; place-items: center; min-height: 62px; font-family: var(--display); font-size: 34px; padding: 4px 0 8px;
  background: var(--cream); border: 4px solid var(--ink); border-radius: 18px; box-shadow: 0 5px 0 var(--ink);
}
.keypad .ok { background: var(--leaf); }
.keypad .ic { width: 38px; height: 38px; }
.keypad button:disabled { visibility: hidden; }
.idk { display: flex; align-items: center; gap: 8px; margin: 18px auto 0; font-size: 17px; font-weight: 700; color: var(--muted); padding: 5px 18px 5px 8px; border: 3px solid rgba(31, 42, 143, .25); border-radius: 99px; }
.idk .ic { width: 30px; height: 30px; }

/* after answering */
.result { font-family: var(--display); font-size: 50px; line-height: 1.1; margin: 0; }
.cheer { position: relative; display: grid; place-items: center; width: 240px; height: 210px; margin-top: 8px; }
.cheer .burst { position: absolute; animation: spin 16s linear infinite; }
.cheer .char { position: relative; width: 150px; height: 150px; animation: bounce .5s ease-in-out .1s 2; }
.ponder .char { width: 120px; height: 120px; animation: wobble .7s ease-in-out .1s; }
.moved { display: flex; align-items: center; gap: 6px; font-size: 22px; font-weight: 700; margin: 0; }
.moved .ic { width: 30px; height: 30px; }
.answer { font-family: var(--display); font-size: 66px; line-height: 1; background: var(--cream); border: 4px solid var(--ink); border-radius: 22px; padding: 4px 26px 10px; box-shadow: 0 5px 0 var(--ink); }

/* the end */
.medal { display: block; margin-top: -6px; animation: pop-in .6s cubic-bezier(.3, 1.6, .5, 1) .2s both; }
.stars { display: flex; align-items: center; gap: 8px; font-family: var(--display); font-size: 26px; margin: 0; }
.stars .ic { width: 34px; height: 34px; }
.awards { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.awards span { display: flex; align-items: center; gap: 6px; background: var(--cream); border: 3px solid var(--ink); border-radius: 99px; padding: 3px 14px 4px 6px; font-size: 17px; font-weight: 700; }
.awards .ic { width: 26px; height: 26px; }
.toast { position: fixed; bottom: calc(24px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); background: var(--pink); color: var(--cream); padding: 12px 20px; border-radius: 16px; font-size: 17px; font-weight: 700; max-width: 90vw; text-align: center; }

/* typing the code */
.codebox { display: flex; justify-content: center; gap: 8px; direction: ltr; }
.codebox span { width: 54px; height: 66px; display: grid; place-items: center; font-family: var(--display); font-size: 42px; background: #fff; border: 4px solid var(--ink); border-radius: 14px; }
.codebox span.cur { border-style: dashed; background: var(--cream); }
#keys { max-width: 340px; direction: ltr; }

/* 3, 2, 1, Go! */
.bignum { font-family: var(--display); font-size: 120px; line-height: 1; min-width: 170px; padding: 6px 20px 18px; border: 6px solid var(--ink); border-radius: 40px; background: var(--sun); box-shadow: 0 8px 0 var(--ink); }
.bignum.go { font-size: 76px; background: var(--leaf); padding: 18px 30px 26px; }
.bignum.pop { animation: pop-in .45s cubic-bezier(.3, 1.6, .5, 1) both; }

/* last question */
.lastq { font-family: var(--display); font-size: 17px; white-space: nowrap; color: var(--cream); background: var(--pink); border: 3px solid var(--ink); border-radius: 99px; padding: 1px 10px 3px; animation: pop-in .4s cubic-bezier(.3, 1.6, .5, 1) both; }

/* cheering while the others answer */
.cheers { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 10px; padding: 12px 16px 16px; border-radius: 16px; background: var(--cream); border: 3px dashed rgba(31, 42, 143, .3); }
.cheers .row { gap: 14px; }
.cheerbtn { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: var(--cream); border: 4px solid var(--ink); box-shadow: 0 5px 0 var(--ink); }
.cheerbtn .ic { width: 46px; height: 46px; }
.cheerbtn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink); }
.cheerbtn:disabled { opacity: .55; }
.cheerbtn.sent .ic { animation: cheer-pop .5s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes cheer-pop { 40% { transform: translateY(-18px) scale(1.25); } }

/* hats */
.shelf { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 4px; }
.hats { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 286px; }
.hatbtn { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: var(--cream); border: 4px solid var(--ink); box-shadow: 0 4px 0 var(--ink); }
.hatbtn.on { background: var(--sun); }
.hatbtn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.hatbtn .ic { width: 28px; height: 28px; }
.goal { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 16px; font-weight: 700; color: var(--muted); }
.hatpic.dim { filter: grayscale(1); opacity: .45; }
.prize { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 22px 16px; background: var(--cream); border: 4px solid var(--ink); border-radius: 14px; box-shadow: 8px 8px 0 var(--pink); animation: pop-in .6s cubic-bezier(.3, 1.6, .5, 1) 1.2s both; }
.prize b { font-family: var(--display); font-size: 26px; }
.prize > span { font-size: 18px; font-weight: 700; color: var(--muted); }
.prize .hero::after { width: 70%; height: 18px; }

/* together: the team's stars, and the line that says it is a team game */
.teamstars { display: flex; gap: 10px; margin-top: 6px; }
.teamstars span { display: grid; }
.teamstars .not .ic { filter: grayscale(1); opacity: .3; }
.teamstars .won { animation: pop-in .5s cubic-bezier(.3, 1.6, .5, 1) both; animation-delay: calc(.3s + var(--i) * .25s); }
.modeline { display: flex; align-items: center; gap: 8px; margin: 0; padding: 6px 16px 8px 10px; font-weight: 800; background: var(--sun); border: 4px solid var(--ink); border-radius: 999px; }

/* ---------- mini-games ---------- */
.mintro { gap: 14px; }
.mintro .mtag {
  margin: 8px 0 0; font-family: var(--display); font-size: 20px; color: var(--cream); background: var(--pink);
  padding: 3px 16px 6px; border-radius: 8px; transform: rotate(-2deg); box-shadow: 3px 3px 0 var(--ink);
}
.mintro .mtitle {
  font-size: 40px; line-height: 1.1; background: var(--cream); border: 4px solid var(--ink); border-radius: 12px;
  padding: 2px 20px 8px; box-shadow: var(--print); transform: rotate(1deg);
}
.mintro .mhow { margin: 0; max-width: 20em; font-size: 21px; font-weight: 700; line-height: 1.35; }
.mintro .bignum:empty { visibility: hidden; }

/* the little "how to play" pictures (phone and TV) */
.demo { position: relative; width: 270px; height: 180px; flex: none; }
.demo .finger { position: absolute; width: 58px; height: 68px; animation: tapf .55s ease-in-out infinite; }
@keyframes tapf { 50% { transform: translate(-4px, 10px) scale(.94); } }
.d-balloon .dpump { position: absolute; inset-inline-start: 26px; bottom: 6px; width: 70px; }
.d-balloon .dpump .handle { animation: pumpdemo .55s ease-in-out infinite; }
@keyframes pumpdemo { 50% { transform: translateY(14px); } }
.d-balloon .dbal { position: absolute; inset-inline-end: 40px; bottom: 0; transform-origin: 50% 100%; animation: inflate 2.2s ease-in infinite; }
@keyframes inflate { 0% { transform: scale(.55); } 85% { transform: scale(1.05); opacity: 1; } 92%, 100% { transform: scale(1.25); opacity: 0; } }
.d-balloon .finger { inset-inline-start: 46px; top: -14px; }
.d-star .dbar {
  position: absolute; inset-inline: 8px; top: 60px; height: 48px; border-radius: 24px; background: var(--cream);
  border: 4px solid var(--ink); box-shadow: var(--print-sm);
}
.d-star .zone, .sbar .zone { position: absolute; top: 0; bottom: 0; left: calc(50% - var(--z, .14) * 100%); width: calc(var(--z, .14) * 200%); background: var(--sun); }
.d-star .dstar { position: absolute; top: -12px; left: 0; animation: slide 1.8s ease-in-out infinite alternate; }
@keyframes slide { to { left: calc(100% - 64px); } }
.d-star .finger { right: 30px; top: 104px; }
.d-firefly { background: var(--ink); border-radius: 18px; box-shadow: var(--print); }
.d-firefly span { position: absolute; animation: blink 1.6s ease-in-out infinite; }
.d-firefly .f1 { left: 20px; top: 30px; }
.d-firefly .f2 { left: 100px; top: 70px; animation-delay: .5s; }
.d-firefly .f3 { right: 22px; top: 18px; animation-delay: 1s; }
.d-firefly .finger { left: 140px; top: 104px; }
@keyframes blink { 0%, 100% { opacity: .25; transform: scale(.85); } 50% { opacity: 1; transform: scale(1); } }

/* the game itself fills the phone */
.s-mini { padding-top: 0; }
.mg { display: flex; flex-direction: column; height: calc(100dvh - 92px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); min-height: 520px; }
.mg-top { display: flex; align-items: center; gap: 10px; padding: 6px 0 10px; }
.mg-top .char { width: 54px; height: 54px; }
.mg-clock { flex: 1; height: 22px; background: var(--cream); border: 4px solid var(--ink); border-radius: 99px; overflow: hidden; }
.mg-clock i { display: block; height: 100%; background: repeating-linear-gradient(-45deg, var(--pink) 0 12px, var(--pink-2) 12px 24px); }
.mg-score {
  min-width: 76px; text-align: center; font-family: var(--display); font-size: 30px; line-height: 1; padding: 6px 10px 9px;
  background: var(--sun); border: 4px solid var(--ink); border-radius: 14px; box-shadow: var(--print-sm);
}
.mg-play { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 12px; min-height: 0; user-select: none; -webkit-user-select: none; touch-action: none; }
.mg-hint { margin: 0; font-family: var(--display); font-size: 22px; text-align: center; }
.bigtap {
  flex: none; width: min(72vw, 270px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 34% 28%, #FF8AC2 0 18%, var(--pink) 19% 100%); color: var(--cream);
  border: 6px solid var(--ink); box-shadow: 0 12px 0 var(--ink), 10px 18px 0 var(--sun);
  font-family: var(--display); font-size: 64px; text-shadow: 3px 3px 0 var(--ink); touch-action: none;
}
.bigtap:active:not(:disabled), .bigtap.kick { transform: translateY(6px); box-shadow: 0 6px 0 var(--ink), 10px 12px 0 var(--sun); }
.bigtap.kick { animation: none; }
.bigtap:disabled { opacity: .5; }
.bigtap.stop { background: radial-gradient(circle at 34% 28%, #FFE680 0 18%, var(--sun) 19% 100%); color: var(--ink); text-shadow: 3px 3px 0 var(--cream); }

/* balloon */
.bstage { position: relative; width: 100%; max-width: 380px; flex: 1; min-height: 190px; }
.bstage .bpump { position: absolute; bottom: 0; inset-inline-start: 4%; width: 74px; }
.bstage .bpump.kick .handle { animation: pumpkick .12s ease-out; }
@keyframes pumpkick { 50% { transform: translateY(16px); } }
.bstage .hose { position: absolute; bottom: 2px; inset-inline-start: 18%; width: 50%; height: 40px; }
[dir=rtl] .bstage .hose { transform: scaleX(-1); }
.bstage .bal { position: absolute; bottom: 0; inset-inline-end: 6%; width: 150px; transform-origin: 50% 100%; transform: scale(calc(var(--s) * 1.35)); transition: transform .12s ease-out; }
.bstage .bal.kick svg { animation: wob .2s ease-out; }
@keyframes wob { 30% { transform: scale(1.06, .95); } 70% { transform: scale(.97, 1.03); } }
.bstage .boom { position: absolute; inset-inline-end: 2%; bottom: 20px; width: 220px; height: 220px; display: grid; place-items: center; }
.bstage .boom svg { position: absolute; inset: 0; animation: pop-in .4s cubic-bezier(.3, 1.6, .5, 1) both, spin 6s linear infinite; }
.bstage .boom b { position: relative; font-family: var(--display); font-size: 56px; color: var(--pink); text-shadow: 3px 3px 0 var(--ink); animation: pop-in .4s cubic-bezier(.3, 1.6, .5, 1) both; }
.bstage .boom i { position: absolute; left: 50%; top: 50%; width: 16px; height: 22px; background: var(--c); border: 3px solid var(--ink); border-radius: 4px; animation: shard .9s ease-out forwards; }
@keyframes shard { from { transform: rotate(var(--a)) translateY(0); opacity: 1; } to { transform: rotate(var(--a)) translateY(-170px) rotate(200deg); opacity: 0; } }
.meter { width: 100%; max-width: 380px; height: 30px; background: var(--cream); border: 4px solid var(--ink); border-radius: 99px; overflow: hidden; box-shadow: var(--print-sm); flex: none; }
.meter i { display: block; width: 0; height: 100%; background: repeating-linear-gradient(-45deg, var(--pink) 0 14px, #FF8AC2 14px 28px); transition: width .1s; }

/* star stop */
.tries { display: flex; gap: 10px; margin-top: 6px; }
.try { width: 46px; height: 46px; display: grid; place-items: center; opacity: .28; filter: grayscale(1); transition: transform .3s; }
.try[data-p] { opacity: 1; filter: none; animation: pop-in .35s cubic-bezier(.3, 1.6, .5, 1); }
.try.p0 { opacity: .5; filter: grayscale(1); }
.try.p1 { transform: scale(.8); }
.try.p3 { transform: scale(1.2) rotate(-8deg); }
.sbar {
  position: relative; width: 100%; max-width: 400px; height: 92px; margin: 26px 0 8px; flex: none;
  background: var(--cream); border: 5px solid var(--ink); border-radius: 46px; box-shadow: var(--print);
  overflow: visible;
}
.sbar .zone { border-inline: 4px dashed var(--ink); }
.sbar .bull { position: absolute; top: -12px; bottom: -12px; left: calc(50% - 3px); width: 6px; background: var(--pink); border-radius: 3px; }
.sbar .runner { position: absolute; top: -8px; left: calc(var(--x, .5) * 100% - 46px); width: 92px; height: 92px; }
.sbar .runner svg { width: 100%; height: 100%; }
.sbar .runner.stopped svg { animation: wob .3s ease-out; }
.verdict { min-height: 46px; margin: 0; font-family: var(--display); font-size: 40px; line-height: 1.1; }
.verdict.v3 { color: var(--pink); text-shadow: 3px 3px 0 var(--sun); animation: pop-in .4s cubic-bezier(.3, 1.6, .5, 1); }
.verdict.v2 { color: #14A472; animation: pop-in .4s cubic-bezier(.3, 1.6, .5, 1); }
.verdict.v1 { color: var(--ink); }
.verdict.v0 { color: var(--muted); }

/* fireflies */
.night {
  position: relative; width: 100%; flex: 1; border-radius: 22px; overflow: hidden; border: 5px solid var(--ink); box-shadow: var(--print);
  background: radial-gradient(circle at 80% 12%, #3D5DF0 0 6%, transparent 30%), linear-gradient(#1A237A, #2E4BDB 75%, #45D3A0 75.5%, #45D3A0);
}
.night .moon { position: absolute; top: 14px; inset-inline-end: 18px; width: 54px; height: 54px; border-radius: 50%; background: var(--cream); box-shadow: 8px 0 0 0 #1A237A inset; }
.fly {
  position: absolute; width: var(--sz); height: var(--sz); margin: calc(var(--sz) / -2) 0 0 calc(var(--sz) / -2); padding: 0; touch-action: none;
  animation: flyin var(--life) ease-in-out forwards; transform-origin: 50% 50%;
}
.fly svg { width: 100%; height: 100%; pointer-events: none; filter: drop-shadow(0 0 10px rgba(214, 255, 107, .75)); }
.fly.gold svg { filter: drop-shadow(0 0 14px rgba(255, 210, 63, .9)); }
.fly .halo { animation: glow .5s ease-in-out infinite alternate; transform-origin: 50% 64%; }
@keyframes glow { to { opacity: .8; transform: scale(1.15); } }
@keyframes flyin {
  0% { opacity: 0; transform: scale(.3) translate(0, 0); }
  12% { opacity: 1; transform: scale(1) translate(calc(var(--dx) * .15), calc(var(--dy) * .15)); }
  80% { opacity: 1; transform: scale(1) translate(var(--dx), var(--dy)); }
  100% { opacity: 0; transform: scale(.6) translate(calc(var(--dx) * 1.2), calc(var(--dy) * 1.2)); }
}
.fly.got { animation: caught .45s ease-out forwards; }
@keyframes caught { to { transform: scale(1.7); opacity: 0; } }
.plus { position: absolute; transform: translate(-50%, -50%); font-family: var(--display); font-size: 40px; color: var(--cream); text-shadow: 3px 3px 0 var(--pink); pointer-events: none; animation: rise .65s ease-out forwards; }
.plus.gold { color: var(--sun); font-size: 54px; }
@keyframes rise { to { transform: translate(-50%, -140%); opacity: 0; } }

/* odd one out and memory: a board that fills the space it has */
.fitwrap { flex: 1; width: 100%; min-height: 0; display: grid; place-items: center; }
.oddgrid, .cards { display: grid; justify-content: center; align-content: center; transition: opacity .2s, filter .2s; }
.oddgrid .cell {
  display: grid; place-items: center; padding: 9%; background: var(--cream); border: 4px solid var(--ink); border-radius: 16px;
  box-shadow: 4px 4px 0 var(--pink); touch-action: none; animation: pop-in .3s cubic-bezier(.3, 1.6, .5, 1) both;
}
.oddgrid .cell span { display: block; width: 100%; height: 100%; pointer-events: none; }
.oddgrid .cell svg { width: 100%; height: 100%; display: block; }
.oddgrid .cell.right { background: var(--mint-2); transform: scale(1.12); box-shadow: 0 0 0 6px var(--sun), 4px 4px 0 var(--pink); }
.oddgrid .cell.wrong { background: #FFD1E6; animation: shake .4s; }
.oddgrid.frozen { opacity: .55; filter: grayscale(.6); }
@keyframes shake { 20%, 60% { transform: translateX(-7px); } 40%, 80% { transform: translateX(7px); } }
.verdict:empty::before { content: '\00a0'; }
.cards .card { position: relative; padding: 0; background: none; border: 0; perspective: 700px; touch-action: none; }
.cards .card .in { position: absolute; inset: 0; transition: transform .3s; transform-style: preserve-3d; pointer-events: none; }
.cards .card.up .in { transform: rotateY(180deg); }
.cards .card i { position: absolute; inset: 0; display: grid; place-items: center; border: 4px solid var(--ink); border-radius: 14px; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.cards .card .bk {
  background: radial-gradient(circle at 50% 50%, var(--sun) 0 16%, transparent 17%), repeating-linear-gradient(45deg, var(--pink) 0 10px, var(--pink-2) 10px 20px);
  box-shadow: 4px 4px 0 var(--ink);
}
.cards .card .fc { transform: rotateY(180deg); background: var(--cream); padding: 10%; box-shadow: 4px 4px 0 var(--pink); }
.cards .card .fc svg { width: 100%; height: 100%; }
.cards .card.done .fc { background: var(--mint-2); box-shadow: 0 0 0 5px var(--sun); }
.cards .card.done .in { animation: matched .45s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes matched { 50% { transform: rotateY(180deg) scale(1.15); } }
.cards .card.no .fc { background: #FFD1E6; }
.cards.peek .card .fc { box-shadow: 0 0 0 4px var(--sun), 4px 4px 0 var(--pink); }

/* basket catch */
.orchard {
  position: relative; width: 100%; flex: 1; border-radius: 22px; overflow: hidden; border: 5px solid var(--ink); box-shadow: var(--print);
  background: linear-gradient(#9DD8FF, #DFF4FF 78%, #45D3A0 78.5%, #45D3A0); direction: ltr; touch-action: none;
}
.orchard .cloud { position: absolute; width: 90px; height: 30px; background: #fff; border-radius: 30px; opacity: .9; pointer-events: none; }
.orchard .cloud::before { content: ''; position: absolute; left: 18px; top: -18px; width: 44px; height: 40px; border-radius: 50%; background: #fff; }
.orchard .c1 { top: 12%; left: 8%; } .orchard .c2 { top: 26%; right: 6%; transform: scale(.75); }
.orchard .basket { position: absolute; bottom: 6px; left: 50%; width: calc(var(--bw) * 100%); transform: translateX(-50%); pointer-events: none; }
.orchard .basket svg { display: block; width: 100%; height: auto; }
.orchard .basket.yum svg { animation: wob .25s ease-out; }
.orchard .basket.dizzy svg { animation: shake .45s 2; filter: grayscale(.7); }
.orchard .drop { position: absolute; top: 0; width: 62px; height: 62px; pointer-events: none; will-change: transform; }
.orchard .drop svg { width: 100%; height: 100%; animation: sway 1s ease-in-out infinite alternate; }
.orchard .drop.star svg { filter: drop-shadow(0 0 8px rgba(255, 210, 63, .95)); }
@keyframes sway { from { transform: rotate(-12deg); } to { transform: rotate(12deg); } }
.orchard .plus { color: var(--cream); text-shadow: 3px 3px 0 var(--pink); }
.orchard .plus.gold { color: var(--sun); text-shadow: 3px 3px 0 var(--ink); }
.orchard .plus.bad { font-size: 28px; color: var(--ink); text-shadow: 2px 2px 0 var(--cream); white-space: nowrap; }

/* when this phone is finished */
.mg-play.over .bigtap { opacity: .4; }
.mg-over { position: absolute; inset: auto 0 10px; display: grid; place-items: center; pointer-events: none; }
.mg-over span {
  font-family: var(--display); font-size: 26px; text-align: center; background: var(--cream); border: 4px solid var(--ink);
  border-radius: 14px; padding: 8px 18px 12px; box-shadow: var(--print); animation: pop-in .4s cubic-bezier(.3, 1.6, .5, 1);
}
.mdone .medal { margin-top: -10px; }
.mscore { display: flex; align-items: center; gap: 8px; margin: 0; font-family: var(--display); font-size: 28px; }
.mscore .ic { width: 34px; height: 34px; }
.pumpart { display: block; width: 100%; height: auto; overflow: visible; }

/* ---------- the bonus awards ---------- */
.awardsph { gap: 12px; }
.awardsph .mtag {
  margin: 8px 0 0; font-family: var(--display); font-size: 24px; color: var(--cream); background: var(--pink);
  padding: 3px 18px 7px; border-radius: 8px; transform: rotate(-2deg); box-shadow: 3px 3px 0 var(--ink);
}
.awardsph .coming { margin: 0; font-family: var(--display); font-size: 24px; text-align: center; }
.mycards { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 380px; }
.acard2 {
  display: flex; align-items: center; gap: 14px; padding: 10px 16px 12px 12px; background: var(--cream);
  border: 4px solid var(--ink); border-radius: 16px; box-shadow: var(--print);
}
.acard2 .ai { flex: none; display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background: var(--sun); border: 4px solid var(--ink); }
.acard2:not(.open) .ai { animation: wobble .9s ease-in-out infinite; }
.acard2 .tx { display: flex; flex-direction: column; min-width: 0; }
.acard2 b { font-family: var(--display); font-size: 26px; line-height: 1.1; }
.acard2 small { font-size: 16px; font-weight: 700; }
.acard2 .stp {
  align-self: flex-start; margin-top: 6px; font-style: normal; font-family: var(--display); font-size: 18px; direction: ltr;
  background: var(--mint); border: 3px solid var(--ink); border-radius: 999px; padding: 0 12px 3px;
}
.acard2 .stp[hidden] { display: none; }
.acard2.open { background: var(--sun); animation: pop-in .5s cubic-bezier(.3, 1.6, .5, 1) both; }
.acard2.open .ai { background: var(--cream); }
