/* Feynman Junior: bright, big and bouncy, made for phones held by small hands. */
:root {
  --ink: #23224a; --soft: #5b5a86; --bg: #fff8e7; --card: #ffffff; --line: #f0e3c4;
  --sun: #ffb703; --go: #2ec27e; --go2: #1f9d63; --red: #ff595e; --blue: #3a86ff; --violet: #6a4c93;
  --r: 22px; --shadow: 0 6px 0 rgba(35, 34, 74, .12); --font: 'Baloo 2', system-ui, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--bg); color: var(--ink); font: 500 18px/1.35 var(--font); overflow-x: hidden; }
#sky { position: fixed; inset: 0; z-index: -1; background:
  radial-gradient(circle at 12% 8%, #fff 0 40px, transparent 41px), radial-gradient(circle at 22% 10%, #fff 0 30px, transparent 31px),
  radial-gradient(circle at 82% 14%, #fff 0 36px, transparent 37px), radial-gradient(circle at 90% 12%, #fff 0 26px, transparent 27px),
  linear-gradient(#bfe6ff 0, #e8f6ff 38%, var(--bg) 38%); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
h1, h2, h3 { margin: .2em 0; line-height: 1.1; font-weight: 800; }
h1 { font-size: 30px; }
.km { font: 400 13px/1.5 'Kantumruy Pro', sans-serif; color: var(--soft); margin-top: 2px; }

/* top bar */
#top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 8px; padding: 8px 14px; background: rgba(255,255,255,.85); backdrop-filter: blur(8px); box-shadow: 0 2px 0 rgba(35,34,74,.06); }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 19px; margin-right: auto; }
.brand b { color: var(--sun); text-shadow: 0 2px 0 #c98700; }
.brand .cav { width: 38px; height: 38px; }
.pill { background: #fff3cf; border-radius: 999px; padding: 4px 12px; font-weight: 700; font-size: 16px; white-space: pre; }
.pill.snd { padding: 4px 9px; }
#app { max-width: 720px; margin: 0 auto; padding: 14px 16px 60px; }

.cav { display: inline-block; width: 56px; height: 56px; border-radius: 50%; flex: none; }
.cav svg { width: 100%; height: 100%; display: block; }

/* pictures */
.pic { display: inline-grid; place-items: center; width: 84px; height: 84px; flex: none; }
.pic img, .pic .cav { width: 100%; height: 100%; }
.pic.emo { font-size: 64px; line-height: 1; }
.pic.num { font-size: 60px; font-weight: 800; color: var(--blue); text-shadow: 0 4px 0 #cfe0ff; }
.pic.dots { display: flex; flex-wrap: wrap; gap: 5px; align-content: center; justify-content: center; }
.pic.dots i { width: 16px; height: 16px; border-radius: 50%; background: var(--red); }
.pic.small { width: 64px; height: 64px; } .pic.small.num { font-size: 44px; }
.pic.huge { width: 170px; height: 170px; } .pic.huge.num { font-size: 130px; } .pic.huge.emo { font-size: 130px; }
.pic.sticker { width: 100%; height: 100%; filter: drop-shadow(0 3px 0 rgba(0,0,0,.15)); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 12px 22px; border-radius: 999px; font-weight: 800; font-size: 20px; background: #fff; box-shadow: var(--shadow); transition: transform .08s; }
.btn:active { transform: translateY(3px); box-shadow: 0 3px 0 rgba(35,34,74,.12); }
.btn.go { background: var(--go); color: #fff; box-shadow: 0 6px 0 var(--go2); }
.btn.ghost { background: #fff; color: var(--soft); }
.btn.big { font-size: 24px; padding: 14px 34px; }
.btn[disabled] { opacity: .35; }
.back { display: inline-block; font-weight: 700; color: var(--soft); margin-bottom: 6px; }
.link { color: var(--soft); text-decoration: underline; margin-top: 10px; display: inline-block; }
.row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }

/* welcome */
.welcome, .done { text-align: center; padding-top: 10px; }
.bigkou .cav { width: 150px; height: 150px; }
.bob { animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-10px) rotate(-2deg); } }
.lead { font-size: 24px; font-weight: 700; margin: 4px 0; }
.nameinp { display: block; margin: 14px auto; width: min(320px, 100%); font: 700 28px var(--font); text-align: center; padding: 10px 16px; border: 4px solid var(--sun); border-radius: 20px; outline: none; color: var(--ink); }
.friends { display: flex; justify-content: center; gap: 6px; margin-top: 24px; flex-wrap: wrap; }
.friends .cav { width: 48px; height: 48px; animation: bob 2.4s ease-in-out infinite; }
.friends .cav:nth-child(2n) { animation-delay: .4s; } .friends .cav:nth-child(3n) { animation-delay: .8s; }

/* map */
.hello { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: var(--r); padding: 10px 14px; box-shadow: var(--shadow); }
.hello b { display: block; font-size: 22px; } .hello span { color: var(--soft); }
.tabs { display: flex; gap: 8px; margin: 14px 0 6px; justify-content: center; }
.tabs button { padding: 8px 22px; border-radius: 999px; background: #fff; font-weight: 800; font-size: 19px; box-shadow: var(--shadow); color: var(--soft); }
.tabs button.on { background: var(--sun); color: #fff; box-shadow: 0 6px 0 #c98700; }
.path { display: flex; flex-direction: column; gap: 14px; padding: 12px 0; }
.stop { display: flex; align-items: center; gap: 12px; margin-left: calc(var(--x) * 16%); }
.stop .bub { width: 82px; height: 82px; border-radius: 50%; background: var(--c); display: grid; place-items: center; box-shadow: 0 7px 0 rgba(0,0,0,.18), inset 0 -6px 0 rgba(0,0,0,.12); border: 5px solid #fff; flex: none; padding: 8px; }
.stop .ic { font-size: 40px; }
.stop.won .bub { background: #fff; border-color: var(--sun); }
.stop .lab { background: #fff; padding: 6px 14px; border-radius: 16px; box-shadow: var(--shadow); }
.stop .lab small { display: block; color: var(--soft); font-weight: 700; font-size: 14px; }
.stop .lab b { font-size: 19px; } .stop .lab em { display: block; font-style: normal; color: var(--go2); font-size: 14px; font-weight: 700; }
.stop:active .bub { transform: scale(.94); }

/* unit page */
.uhead { display: flex; align-items: center; gap: 12px; background: var(--c); color: #fff; border-radius: var(--r); padding: 14px 16px; box-shadow: 0 7px 0 rgba(0,0,0,.16); }
.uhead small { font-weight: 700; opacity: .9; } .uhead h1 { font-size: 28px; }
.uic { font-size: 44px; } .ustars { margin-left: auto; background: rgba(255,255,255,.25); padding: 4px 12px; border-radius: 999px; font-weight: 800; white-space: nowrap; }
.upart { margin-top: 18px; } .upart h3 { font-size: 22px; }
.steps { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.step { background: #fff; border-radius: 18px; padding: 10px; box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; border: 3px solid transparent; }
.step .sic { font-size: 34px; } .stitle { font-weight: 700; font-size: 16px; line-height: 1.15; }
.step.done { border-color: #c9f2dc; } .step.next { border-color: var(--sun); animation: glow 1.4s ease-in-out infinite; }
@keyframes glow { 50% { box-shadow: 0 6px 0 rgba(35,34,74,.12), 0 0 0 6px rgba(255,183,3,.35); } }
.stars { color: #e7e0cc; font-size: 20px; letter-spacing: 1px; } .stars i { font-style: normal; } .stars i.on { color: var(--sun); text-shadow: 0 2px 0 #c98700; }
.stars.empty { color: var(--sun); font-weight: 800; font-size: 15px; }
.testbtn { display: flex; align-items: center; gap: 12px; margin-top: 22px; background: linear-gradient(135deg, #ffd166, #ffb703); border-radius: var(--r); padding: 14px 16px; box-shadow: 0 7px 0 #c98700; }
.testbtn b { display: block; font-size: 22px; } .testbtn small { display: block; font-weight: 600; }
.testbtn .tic { width: 60px; height: 60px; font-size: 46px; display: grid; place-items: center; } .testbtn .go { margin-left: auto; font-size: 26px; }
.soon { text-align: center; padding: 30px 10px; } .soon .cav { width: 110px; height: 110px; }

/* the game frame */
.game { display: flex; flex-direction: column; gap: 10px; min-height: calc(100vh - 110px); }
.ghead { display: flex; align-items: center; gap: 10px; }
.gx { width: 40px; height: 40px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-weight: 800; box-shadow: var(--shadow); flex: none; }
.gdots { display: flex; gap: 6px; flex: 1; }
.gdots i { flex: 1; height: 12px; border-radius: 6px; background: #ece3cb; transition: background .3s; }
.gdots i.now { background: #ffe39a; } .gdots i.ok { background: var(--go); } .gdots i.no { background: #ffb3b5; }
.gtalk { display: flex; align-items: center; gap: 10px; }
.gkou .cav { width: 64px; height: 64px; } .gkou.jump { animation: jump .5s; }
@keyframes jump { 40% { transform: translateY(-14px) scale(1.06); } }
.gbub { background: #fff; border-radius: 18px; padding: 8px 14px; font-weight: 700; font-size: 19px; box-shadow: var(--shadow); position: relative; }
.gbody { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.qarea { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 14px; animation: pop .35s; }
@keyframes pop { from { transform: scale(.85); opacity: 0; } }
.qtop { display: flex; align-items: center; gap: 12px; justify-content: center; }
.qtext { font-size: 21px; font-weight: 700; text-align: center; margin: 0; }
.hint { color: var(--soft); text-align: center; margin: 0; }
.ear { width: 76px; height: 76px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 36px; box-shadow: 0 6px 0 #1f5fd1; flex: none; }
.ear.on { animation: pulse .8s infinite; }
@keyframes pulse { 50% { transform: scale(1.08); } }

.ggrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; width: 100%; }
.ggrid.n2, .ggrid.n4 { grid-template-columns: repeat(2, 1fr); }
.gcard { background: #fff; border-radius: 22px; padding: 12px 8px; min-height: 120px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; box-shadow: var(--shadow); border: 4px solid transparent; transition: transform .1s; }
.gcard b { font-size: 21px; } .gcard:active { transform: scale(.96); }
.gcard.sel { border-color: var(--blue); transform: scale(1.04); } .gcard.done { opacity: .35; border-color: var(--go); pointer-events: none; }
.gcard.right { border-color: var(--go); animation: jump .5s 2; } .gcard[disabled] { opacity: .4; }
.g-pick .ggrid:has(.gcard b:only-child) { grid-template-columns: 1fr; } .gcard:has(b:only-child) { min-height: 70px; }
.shake { animation: shake .45s; } @keyframes shake { 20%, 60% { transform: translateX(-9px); } 40%, 80% { transform: translateX(9px); } }

/* cards */
.bigcard { background: #fff; border-radius: 30px; padding: 22px 30px; display: flex; flex-direction: column; align-items: center; gap: 4px; box-shadow: 0 8px 0 rgba(35,34,74,.12); width: min(340px, 100%); }
.bigcard b { font-size: 40px; } .bigcard.bounce { animation: jump .45s; }
.cardnav { display: flex; gap: 12px; }

/* match + memory */
.mboard { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; width: 100%; }
.mcol { display: flex; flex-direction: column; gap: 10px; } .mcol .gcard { min-height: 96px; } .mcol .pic { width: 70px; height: 70px; }
.mem { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; width: 100%; }
.mcard { aspect-ratio: 3/4; perspective: 600px; position: relative; }
.mcard span { position: absolute; inset: 0; border-radius: 16px; display: grid; place-items: center; backface-visibility: hidden; transition: transform .4s; box-shadow: var(--shadow); }
.mcard .back { background: linear-gradient(135deg, #a07cff, var(--violet)); color: #fff; font-size: 36px; font-weight: 800; }
.mcard .front { background: #fff; transform: rotateY(180deg); } .mcard .front b { font-size: 19px; } .mcard .front .pic { width: 56px; height: 56px; } .mcard .front .pic.num { font-size: 40px; }
.mcard.up .back { transform: rotateY(180deg); } .mcard.up .front { transform: rotateY(360deg); }
.mcard.done .front { background: #e2f9ec; }

/* balloons */
.balloons { position: relative; width: 100%; height: 56vh; min-height: 340px; overflow: hidden; border-radius: 24px; background: linear-gradient(#bfe6ff, #eaf7ff); }
.balloon { position: absolute; bottom: -150px; width: 92px; height: 112px; border-radius: 50% 50% 46% 46%; background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.7) 0 8px, transparent 9px), var(--c); display: grid; place-items: center; animation: rise linear forwards; box-shadow: inset -8px -10px 0 rgba(0,0,0,.12); }
.balloon::after { content: ''; position: absolute; top: 100%; left: 50%; width: 2px; height: 50px; background: #8a8aa8; }
.balloon b { font-size: 24px; color: #fff; text-shadow: 0 2px 0 rgba(0,0,0,.25); } .balloon .pic { width: 60px; height: 60px; } .balloon .pic.num { color: #fff; font-size: 48px; text-shadow: 0 3px 0 rgba(0,0,0,.2); }
@keyframes rise { to { bottom: 110%; } }
.balloon.popped { animation: boom .3s forwards !important; } @keyframes boom { to { transform: scale(1.6); opacity: 0; } }

/* count */
.things { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; max-width: 440px; }
.thing { animation: pop .4s both; cursor: pointer; } .thing .pic { width: 62px; height: 62px; } .thing.counted { opacity: .45; transform: scale(.9); }
.numpad { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; width: 100%; max-width: 440px; }
.numpad button { background: #fff; border-radius: 16px; font-size: 30px; font-weight: 800; padding: 8px 0; box-shadow: var(--shadow); color: var(--blue); }

/* build + spell */
.slots { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; min-height: 58px; }
.slot { min-width: 64px; height: 54px; border-radius: 14px; border: 3px dashed #d8cba6; display: grid; place-items: center; padding: 0 12px; font-size: 22px; font-weight: 800; }
.slot.full { border: 0; background: var(--blue); color: #fff; box-shadow: 0 5px 0 #1f5fd1; animation: pop .25s; }
.slots.letters .slot { min-width: 50px; padding: 0; text-transform: lowercase; } .slot.gap { border: 0; min-width: 20px; }
.tray { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.piece { background: #fff; border-radius: 14px; padding: 10px 16px; font-size: 22px; font-weight: 800; box-shadow: 0 5px 0 #e1d4b0; border: 3px solid #ffd166; }
.tray.letters .piece { width: 56px; padding: 10px 0; }
.piece.used { visibility: hidden; }

/* say */
.saybox { background: #fff; border-radius: 28px; padding: 16px 22px; display: flex; flex-direction: column; align-items: center; gap: 8px; box-shadow: var(--shadow); }
.sayt { font-size: 28px; text-align: center; }
.mic { width: 110px; height: 110px; border-radius: 50%; background: var(--red); color: #fff; font-size: 50px; box-shadow: 0 7px 0 #c23a3e; }
.mic.on { animation: pulse .7s infinite; background: #ff7b7f; }

/* chat (simulation) */
.scene { position: relative; width: 100%; height: 190px; border-radius: 24px; overflow: hidden; background: linear-gradient(#bfe6ff 0 55%, #8fd47a 55%); }
.scene.s-party { background: linear-gradient(#ffe0f0 0 60%, #ffd166 60%); }
.scene.s-classroom { background: linear-gradient(#fff3d6 0 62%, #d9a066 62%); }
.scene::before { content: '🌳'; position: absolute; left: 6%; bottom: 30%; font-size: 70px; }
.scene.s-party::before { content: '🎈🎂🎁'; font-size: 44px; left: 30%; bottom: 46%; }
.scene.s-classroom::before { content: '📚'; font-size: 54px; }
.friend, .me { position: absolute; bottom: 10px; display: flex; flex-direction: column; align-items: center; font-weight: 800; }
.friend { left: 18%; } .me { right: 14%; }
.friend .cav { width: 110px; height: 110px; } .friend.walkin { animation: walkin 1s ease-out; } .friend.talk .cav { animation: talk .3s infinite alternate; }
@keyframes walkin { from { transform: translateX(-200px); } } @keyframes talk { to { transform: translateY(-5px) scale(1.03); } }
.mecav { width: 80px; height: 80px; font-size: 64px; display: grid; place-items: center; background: #fff3cf; }
.chatlog { width: 100%; max-height: 32vh; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 4px; }
.cb { align-self: flex-start; background: #fff; border-radius: 18px 18px 18px 4px; padding: 8px 14px; font-size: 20px; font-weight: 700; box-shadow: var(--shadow); max-width: 85%; animation: pop .3s; }
.cb b { display: block; font-size: 14px; color: var(--blue); } .cb.mine { align-self: flex-end; background: #dff7e9; border-radius: 18px 18px 4px 18px; }
.choices { display: flex; flex-direction: column; gap: 9px; width: 100%; }
.choice { background: #fff; border: 3px solid #ffd166; border-radius: 18px; padding: 10px 14px; font-size: 20px; font-weight: 700; box-shadow: 0 5px 0 #e1d4b0; text-align: left; }
.choice[disabled] { opacity: .35; }

/* find */
.findscene { position: relative; width: 100%; height: 58vh; border-radius: 24px; background: linear-gradient(#bfe6ff 0 50%, #8fd47a 50%); }
.spot { position: absolute; transform: translate(-50%, -50%); } .spot .pic { width: 70px; height: 70px; } .spot.found { animation: jump .5s; filter: drop-shadow(0 0 10px #ffd166); }

/* video */
.vid { width: 100%; border-radius: 20px; background: #000; aspect-ratio: 16/9; box-shadow: var(--shadow); }
.g-video .btn { align-self: center; }

/* results, test, stickers */
.bigstars .stars { font-size: 64px; } .score { font-size: 30px; font-weight: 800; margin: 4px 0; }
.stickerwin { width: 150px; height: 150px; margin: 10px auto; animation: spin 1s ease-out; } .stickerwin.dim { opacity: .3; filter: grayscale(1); animation: none; }
@keyframes spin { from { transform: rotate(-200deg) scale(0); } }
.slots8 { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; }
.sslot { aspect-ratio: 1; border-radius: 50%; background: #f3ead2; border: 4px dashed #dccb9c; display: grid; place-items: center; position: relative; padding: 14px; font-size: 30px; color: #c9b88a; font-weight: 800; }
.sslot.won { background: #fff; border: 4px solid var(--sun); }
.sslot small { position: absolute; bottom: -4px; right: 6px; font-size: 14px; background: var(--sun); color: #fff; border-radius: 999px; padding: 0 7px; }

/* effects */
#fx { position: fixed; inset: 0; pointer-events: none; z-index: 50; overflow: hidden; }
.conf { position: absolute; top: -20px; width: 10px; height: 16px; border-radius: 3px; animation: fall 2.4s ease-in forwards; }
@keyframes fall { to { transform: translate(var(--dx), 110vh) rotate(var(--r)); } }
.spark { position: absolute; font-style: normal; font-size: 26px; animation: spark .9s ease-out forwards; }
@keyframes spark { to { transform: rotate(var(--a)) translateY(-90px) rotate(calc(-1 * var(--a))); opacity: 0; } }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px; z-index: 60; }
@media (max-width: 420px) { h1 { font-size: 26px; } .ggrid { gap: 8px; } .gcard { min-height: 104px; } .pic { width: 70px; height: 70px; } .pic.num { font-size: 50px; } .mem { gap: 7px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; } }

/* ---------- visual guidance: the helping hand, picture steps, traces, glows ---------- */
.hand { position: fixed; left: 50%; top: 110%; z-index: 70; font-size: 54px; line-height: 1; pointer-events: none; opacity: 0; filter: drop-shadow(0 4px 0 rgba(0,0,0,.18)) drop-shadow(0 0 0 #fff);
  transition: left .6s cubic-bezier(.3,.7,.3,1), top .6s cubic-bezier(.3,.7,.3,1), opacity .25s; }
.hand.on { opacity: 1; }
.hand.tap { animation: handtap .45s; } @keyframes handtap { 40% { transform: scale(.78) translateY(6px); } }
.demo-tap { animation: dtap .6s; } @keyframes dtap { 0% { box-shadow: 0 0 0 0 rgba(58,134,255,.6); } 100% { box-shadow: 0 0 0 26px rgba(58,134,255,0); } }
.game.demoing .gbody, .game.demoing .gtalk { pointer-events: none; }
.hintglow { border-color: var(--go) !important; animation: hglow 1s ease-in-out infinite !important; }
@keyframes hglow { 50% { box-shadow: 0 0 0 8px rgba(46,194,126,.35), 0 6px 0 rgba(35,34,74,.12); transform: scale(1.05); } }
.nudge { animation: pulse .5s 3 !important; }
.gtalkr { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.gbub { text-align: left; display: flex; align-items: center; gap: 8px; }
.gbub .spk, .bigcard .spk, .gcard .spk { font-style: normal; font-size: 18px; opacity: .7; }
.picto { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.picto span { background: #fff; border-radius: 14px; padding: 2px 10px; font-size: 24px; box-shadow: 0 3px 0 rgba(35,34,74,.1); font-weight: 800; color: var(--blue); }
.picto .arrow { font-style: normal; color: var(--sun); font-size: 20px; font-weight: 800; }
.gx.help { background: var(--sun); color: #fff; box-shadow: 0 4px 0 #c98700; font-size: 20px; }
.slot.ghost { color: #cbbf9c; border-color: #e3d6b0; }
.thing { position: relative; background: none; border-radius: 50%; padding: 0; }
.thing.counted { opacity: .55; }
.thing.counted::after { content: attr(data-n); position: absolute; top: -6px; right: -6px; width: 30px; height: 30px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 800; font-size: 18px; display: grid; place-items: center; box-shadow: 0 3px 0 #1f5fd1; }
.crow { display: flex; gap: 8px; align-items: stretch; }
.crow .choice { flex: 1; }
.cspk { width: 52px; flex: none; border-radius: 16px; background: var(--blue); color: #fff; font-size: 22px; box-shadow: 0 5px 0 #1f5fd1; }
.cb .spk { margin-left: 6px; font-size: 16px; opacity: .7; }
.mcol .gcard.word { flex-direction: row; }

/* ---------- places for chats (.scene) and find games (.findscene) ---------- */
.s-room, .s-home { background: linear-gradient(#ffe8cc 0 62%, #c98f5a 62%) !important; }
.s-zoo { background: linear-gradient(#bfe6ff 0 55%, #b5d96b 55%) !important; }
.s-farm { background: linear-gradient(#bfe6ff 0 52%, #9ad36a 52% 80%, #c9a66b 80%) !important; }
.s-beach { background: linear-gradient(#8fd3ff 0 45%, #3aa6e0 45% 60%, #ffe2a0 60%) !important; }
.s-town { background: linear-gradient(#bfe6ff 0 58%, #a7a9b7 58% 66%, #8fd47a 66%) !important; }
.s-shop, .s-market { background: linear-gradient(#fff3d6 0 60%, #e9c46a 60%) !important; }
.s-fair { background: linear-gradient(#ffd9ec 0 58%, #8fd47a 58%) !important; }
.s-room::before { content: '🛏️🪟'; font-size: 52px; left: 30%; bottom: 46%; }
.s-home::before { content: '🛋️🪴'; font-size: 52px; left: 30%; bottom: 44%; }
.s-zoo::before { content: '🦒🌴'; font-size: 54px; left: 38%; bottom: 40%; }
.s-farm::before { content: '🏡🌾'; font-size: 54px; left: 38%; bottom: 44%; }
.s-beach::before { content: '⛱️🐚'; font-size: 52px; left: 40%; bottom: 30%; }
.s-town::before { content: '🏪🏫'; font-size: 54px; left: 36%; bottom: 40%; }
.s-shop::before { content: '🧸🪀'; font-size: 52px; left: 38%; bottom: 44%; }
.s-market::before { content: '🍎🥕🍌'; font-size: 46px; left: 34%; bottom: 44%; }
.s-fair::before { content: '🎡🎠'; font-size: 54px; left: 36%; bottom: 44%; }
.findscene::before { display: none; }

/* plurals, colors, position words */
.pic.multi { display: flex; flex-wrap: wrap; gap: 2px; align-content: center; justify-content: center; }
.pic.multi img { width: 46%; height: 46%; } .pic.multi.m3 img:first-child { margin: 0 25%; }
.pic.col i { width: 82%; height: 82%; display: block; background: var(--col); border: 3px solid rgba(0,0,0,.12);
  border-radius: 46% 54% 52% 48% / 55% 45% 55% 45%; box-shadow: inset -6px -8px 0 rgba(0,0,0,.12), inset 6px 6px 0 rgba(255,255,255,.35); }
.pic.pos { position: relative; } .pic.pos i { position: absolute; display: block; } .pic.pos img { width: 100%; height: 100%; display: block; }
.pic.pos .pl { width: 64%; height: 64%; left: 18%; top: 26%; }
.pic.pos .th { width: 36%; height: 36%; }
.pos-in .th { left: 32%; top: 40%; } .pos-on .th { left: 32%; top: 2%; } .pos-under .th { left: 32%; top: 66%; }
.pos-behind .th { left: 52%; top: 12%; z-index: -1; filter: brightness(.9); } .pos-behind .pl { z-index: 1; }
.pos-front .th { left: 32%; top: 58%; width: 40%; height: 40%; z-index: 2; }
.pos-next .pl { left: 0; width: 58%; height: 58%; top: 30%; } .pos-next .th { left: 62%; top: 46%; }
.pos-between .pl { width: 38%; height: 38%; top: 34%; } .pos-between .pl.a { left: 0; } .pos-between .pl.b { left: 62%; } .pos-between .th { left: 34%; top: 40%; width: 32%; height: 32%; }

/* sing along */
.lyrics { width: 100%; display: flex; flex-direction: column; gap: 8px; max-height: 52vh; overflow-y: auto; padding: 4px; }
.lyric { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 16px; padding: 8px 14px; font-size: 21px; font-weight: 700; color: #b9b6cf; box-shadow: var(--shadow); transition: all .25s; }
.lyric.on { color: var(--ink); background: #fff3cf; transform: scale(1.03); box-shadow: 0 6px 0 #e9c46a; }
.lyric .pic { width: 44px; height: 44px; }

/* class sign-in and parents page */
.classbtn { margin-top: 22px; font-size: 17px; }
.fbox { background: #fff; border-radius: var(--r); padding: 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.flab { display: flex; flex-direction: column; font-weight: 700; gap: 4px; }
.finp { font: 600 20px var(--font); padding: 8px 12px; border: 3px solid #f0e3c4; border-radius: 14px; outline: none; color: var(--ink); }
.finp:focus { border-color: var(--sun); }
.ferr { color: #c23a3e; font-weight: 700; margin: 0; min-height: 1.2em; }
.parents .row { justify-content: flex-start; }

.joinrow { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 18px; } .joinrow .classbtn { margin-top: 0; font-size: 16px; padding: 10px 16px; }
