:root{--fs:clamp(11px,calc(min(2.3vh,1.6vw) + 5px),22px);--ink:#20344a;--teal:#0fa3b8;--teal2:#087a8c;--sand:#fff7e6;--sand2:#ffe7b8;--coral:#ff6f59;--coral2:#d94a35;--sun:#ffc928;--leaf:#2fc46b;--sky:#e9fbff;
  --en:"Trebuchet MS","Segoe UI","Verdana","DejaVu Sans",sans-serif}
*{box-sizing:border-box}
html,body{margin:0;height:100%;overflow:hidden;background:#38c6dc;font-family:"Sarabun","Noto Sans Thai","Leelawadee UI","Thonburi","Loma",Tahoma,sans-serif;color:var(--ink);font-size:var(--fs);touch-action:none;user-select:none;-webkit-user-select:none;-webkit-tap-highlight-color:transparent}
button{font:inherit;color:inherit;cursor:pointer;border:0;background:none;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
button:focus{outline:none}button:focus-visible{outline:3px solid #fff;outline-offset:2px}
kbd{display:inline-block;min-width:1.5em;padding:0 .3em;border-radius:.35em;background:#fff;border:1px solid #b9cfd6;border-bottom-width:3px;font:700 .8em var(--en);color:var(--teal2);text-align:center;line-height:1.5}
#bg{position:fixed;inset:0;background:url(img/bg.webp) center/cover no-repeat}
#bg::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(255,255,255,.05),rgba(10,120,140,.18))}
#app{position:fixed;inset:0;display:flex;flex-direction:column}
#top{flex:0 0 auto;display:flex;align-items:center;gap:.45em;padding:.35em .6em;background:rgba(8,122,140,.86);color:#fff;box-shadow:0 2px 0 rgba(0,0,0,.12);z-index:3}
.brand{font-weight:800;font-size:1.05em;letter-spacing:.01em;white-space:nowrap}
.hbtn{width:2.3em;height:2.3em;border-radius:50%;background:rgba(255,255,255,.18);display:grid;place-items:center;flex:0 0 auto}
.hbtn svg{width:1.35em;height:1.35em}
.hbtn:active{transform:scale(.92)}
.hstat{display:flex;align-items:center;gap:.25em;background:rgba(0,0,0,.18);border-radius:1em;padding:.15em .6em .15em .35em;font-weight:800}
.hstat svg{width:1.3em;height:1.3em}
.sp{flex:1}
.screen{display:none;flex:1;min-height:0;position:relative}
.screen.on{display:flex}
.card{background:var(--sand);border:3px solid #fff;border-radius:1.2em;box-shadow:0 .5em 1.4em rgba(0,60,80,.28)}
.big{display:flex;align-items:center;justify-content:center;gap:.4em;font-weight:800;font-size:1.3em;padding:.5em 1.2em;border-radius:1em;color:#fff;background:linear-gradient(180deg,#ff8a6e,var(--coral));box-shadow:0 .25em 0 var(--coral2);text-shadow:0 1px 0 rgba(0,0,0,.2)}
.big svg{width:1.1em;height:1.1em}
.big:active{transform:translateY(.15em);box-shadow:0 .1em 0 var(--coral2)}
.mid{font-weight:700;padding:.45em .8em;border-radius:.9em;background:#fff;border:2px solid #bfe9ef;color:var(--teal2);box-shadow:0 .18em 0 #9fd6df}
.mid:active{transform:translateY(.1em);box-shadow:none}
.mid.ghost{background:transparent;box-shadow:none}

/* start */
#start{align-items:center;justify-content:center;padding:.8em}
.startcard{display:flex;gap:1.2em;padding:1em 1.3em;max-width:62em;width:100%;align-items:center;max-height:100%}
.sLeft{flex:1 1 50%;display:flex;flex-direction:column;align-items:center;text-align:center;min-width:0}
.heroPik{width:min(13em,30vh);height:auto;animation:bob 2.6s ease-in-out infinite;filter:drop-shadow(0 .3em .3em rgba(0,0,0,.18))}
h1{margin:.1em 0 .1em;font-size:2.2em;line-height:1.15;color:var(--teal2)}
h1 span{display:block;font-size:.46em;color:var(--coral2);font-weight:700;margin-top:.15em}
.intro{margin:.3em 0 0;font-size:.92em;line-height:1.5;color:#3d5568}
.sRight{flex:1 1 50%;display:flex;flex-direction:column;gap:.55em;min-width:0}
.lvlTitle{font-weight:800;color:var(--teal2)}
.levels{display:grid;grid-template-columns:repeat(4,1fr);gap:.4em}
.lvl{background:#fff;border:2px solid #cde9ee;border-radius:.8em;padding:.35em .2em;display:flex;flex-direction:column;align-items:center;line-height:1.2}
.lvl b{font-size:1.05em}.lvl small{font-size:.72em;color:#6a8090}
.lvl.sel{background:var(--teal);border-color:var(--teal2);color:#fff;box-shadow:0 .18em 0 var(--teal2)}
.lvl.sel small{color:#dff8fb}
#bPlay{padding:.55em 1em;font-size:1.45em}
.sBtns{display:grid;grid-template-columns:1fr 1fr;gap:.45em}
.keys{display:flex;flex-wrap:wrap;gap:.3em .8em;font-size:.78em;color:#4f6577;justify-content:center}
.keys .touch{display:none}
@media (hover:none){.keys span{display:none}.keys .touch{display:inline}}

/* map */
#map{flex-direction:column;padding:.6em;gap:.5em;overflow:hidden}
.mapHead{display:flex;align-items:baseline;gap:.7em;color:#fff;text-shadow:0 2px 0 rgba(0,0,0,.25);font-size:1.2em;padding:0 .2em}
.mapHead span{font-size:.75em;background:rgba(0,0,0,.2);border-radius:1em;padding:.05em .6em}
.topics{flex:1;min-height:0;display:grid;grid-template-columns:repeat(6,1fr);grid-auto-rows:1fr;gap:.55em;overflow:auto}
.topic{background:var(--sand);border:3px solid #fff;border-radius:1em;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:.3em;box-shadow:0 .25em 0 rgba(0,0,0,.15);position:relative;min-height:0;line-height:1.2;text-align:center;border-top:.45em solid var(--tc)}
.topic .tIc{font-size:2.2em;line-height:1.1}
.topic b{font-size:.92em}.topic small{font-family:var(--en);font-size:.7em;color:#6a8090}
.topic em{font-style:normal;font-weight:800;font-size:.78em;color:#c98a00;margin-top:.15em}
.topic:active{transform:scale(.96)}

/* mode modal */
.modal{position:fixed;inset:0;background:rgba(5,50,60,.45);display:flex;align-items:center;justify-content:center;z-index:6;padding:.6em}
.modal[hidden]{display:none}
.modecard{padding:.8em 1em;width:min(40em,100%);max-height:94vh;overflow:auto;display:flex;flex-direction:column;gap:.5em}
.mTitle{font-weight:800;font-size:1.25em;color:var(--teal2);text-align:center}
.mTitle small{font-family:var(--en);font-size:.7em;color:#6a8090}
.modeList{display:grid;grid-template-columns:1fr 1fr;gap:.5em}
.modeB{background:#fff;border:2px solid #cde9ee;border-radius:.9em;padding:.45em .6em;display:grid;grid-template-columns:auto 1fr auto;grid-template-rows:auto auto;column-gap:.5em;text-align:left;align-items:center;box-shadow:0 .18em 0 #b9dfe6}
.modeB .mIc{grid-row:1/3;font-size:1.8em}
.modeB b{font-size:1em}.modeB small{grid-column:2;font-size:.75em;color:#6a8090}
.modeB em{grid-row:1/3;grid-column:3;font-style:normal;color:#ffb300;font-size:1.05em;letter-spacing:-.05em}
.modeB em i{font-style:normal;color:#dbe3e6}
.modeB.cl{background:#fff4ec;border-color:#ffd2bf}

/* play */
#play{flex-direction:column;padding:.4em .6em .5em;gap:.3em}
.phud{display:flex;align-items:center;gap:.6em;background:rgba(255,255,255,.88);border-radius:.9em;padding:.25em .7em;flex:0 0 auto}
.pinfo{display:flex;flex-direction:column;line-height:1.15;min-width:0}
.pinfo b{font-size:.95em;white-space:nowrap}.pinfo span{font-size:.72em;color:#6a8090;white-space:nowrap}
.prog{flex:1;height:.6em;background:#d9eef2;border-radius:1em;overflow:hidden}
.prog i{display:block;height:100%;width:0;background:linear-gradient(90deg,var(--leaf),#8be06a);border-radius:1em;transition:width .4s}
.pscore{display:flex;align-items:center;gap:.5em;font-weight:800;white-space:nowrap}
.pscore span{font-size:.8em;color:#6a8090}
.pscore b{font-size:1.15em;color:var(--coral2);min-width:2em;text-align:right}
.pscore em{font-style:normal;font-size:.85em;color:#ff7a00}
.tip{flex:0 0 auto;align-self:center;text-align:center;font-size:.85em;color:#fff;font-weight:700;background:rgba(8,122,140,.78);border-radius:1em;padding:.1em .9em;max-width:100%}
.stage{flex:1;min-height:0;display:flex;gap:.8em;align-items:center;justify-content:center;position:relative}
.stage.pop .ask{animation:popin .35s ease}
.ask{flex:0 0 auto;display:flex;flex-direction:column;align-items:center;gap:.5em}
.answer{flex:1 1 auto;min-width:0;max-width:34em;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.5em;height:100%}
.picCard{width:min(40vh,34vw,17em);aspect-ratio:1;background:#fff;border:.3em solid #fff;border-radius:1.2em;box-shadow:0 .4em 0 rgba(0,0,0,.12),inset 0 0 0 .25em #e5f6f9;display:grid;place-items:center}
.picCard.sm{width:min(28vh,26vw,12em)}
.pic{display:block;width:72%;height:72%}
.pic.emo{font-size:calc(min(40vh,34vw,17em)*.55);line-height:1;width:auto;height:auto;font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif}
.picCard.sm .pic.emo{font-size:calc(min(28vh,26vw,12em)*.55)}
.opts{display:grid;grid-template-columns:1fr 1fr;gap:.55em;width:100%}
.opt{position:relative;background:#fff;border:3px solid #fff;border-radius:1em;box-shadow:0 .3em 0 rgba(0,0,0,.14);display:flex;align-items:center;justify-content:center;transition:transform .1s}
.opt kbd{position:absolute;left:.4em;top:.4em;font-size:.7em;opacity:.8}
.opt:active{transform:scale(.96)}
.opts.words .opt{min-height:3.1em;padding:.3em .5em .3em 1.6em;font:700 1.45em var(--en);color:var(--ink)}
.opts.words .opt span{overflow-wrap:anywhere}
.opts.pics .opt{aspect-ratio:1.25;max-height:min(30vh,9.5em);width:100%;justify-self:center}
.opts.pics .opt .pic{width:62%;height:78%}
.opts.pics .opt .pic.emo{font-size:min(15vh,11vw,5.2em);width:auto;height:auto}
.opt.good{background:#dcfbe5;border-color:var(--leaf);animation:pulse .5s}
.opt.bad{background:#ffe1dc;border-color:var(--coral);animation:shake .4s}
.opt:disabled{cursor:default}
.opt:disabled:not(.good):not(.bad){opacity:.55}
.sayBig{width:min(36vh,30vw,14em);aspect-ratio:1;border-radius:50%;background:radial-gradient(circle at 35% 30%,#fff,#d6f6fb);border:.3em solid #fff;box-shadow:0 .4em 0 rgba(0,0,0,.14),0 0 0 .5em rgba(255,255,255,.35);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.2em}
.sayBig span{font-size:min(14vh,11vw,5em);line-height:1}
.sayBig small{font-size:.78em;color:var(--teal2);font-weight:700}
.sayBig.ring{animation:ring .6s ease}
.peekB{font-size:.8em;font-weight:700;color:var(--teal2);background:rgba(255,255,255,.85);border-radius:1em;padding:.2em .8em}
.peekW{font:900 1.6em var(--en);color:var(--ink);background:#fff;border-radius:.5em;padding:.05em .7em;box-shadow:0 .15em 0 rgba(0,0,0,.12)}
.peekW[hidden],.peekB[hidden]{display:none}
.spMeta{display:flex;align-items:center;gap:.5em;background:rgba(255,255,255,.9);border-radius:1em;padding:.2em .7em .2em .25em;max-width:min(28vh,26vw,12em) }
.spMeta{max-width:none}
.saySm{width:2.2em;height:2.2em;border-radius:50%;background:var(--teal);color:#fff;font-size:1.1em;box-shadow:0 .15em 0 var(--teal2)}
.thHint{font-weight:800;color:var(--teal2);font-size:1.1em}
.slots{display:flex;gap:.25em;justify-content:center;flex-wrap:nowrap}
.slots i{width:var(--ss,2.4em);height:calc(var(--ss,2.4em)*1.15);border-radius:.4em;background:rgba(255,255,255,.55);border:2px dashed #fff;display:grid;place-items:center;font:800 calc(var(--ss,2.4em)*.62) var(--en);font-style:normal;color:var(--ink);text-transform:lowercase}
.slots i.fill{background:#fff;border:2px solid var(--leaf);animation:popin .25s}
.tiles{display:flex;flex-wrap:wrap;gap:.35em;justify-content:center;max-width:100%}
.tileB{width:var(--ts,3em);height:var(--ts,3em);border-radius:.45em;background:linear-gradient(180deg,#fffaf0,var(--sand2));border:2px solid #e8b45a;box-shadow:0 .2em 0 #c98a2c;font:800 calc(var(--ts,3em)*.55) var(--en);color:#6b3e00}
.tileB:active{transform:translateY(.1em);box-shadow:0 .05em 0 #c98a2c}
.tileB.used{visibility:hidden}
.hintB{font-size:.8em;font-weight:700;background:rgba(255,255,255,.85);border-radius:1em;padding:.25em .8em;color:#8a6200}
.hintB.glow{animation:glow 1s infinite;background:#fff3c4}
.shake{animation:shake .35s}
.stage .pop{position:absolute;left:50%;top:40%;transform:translate(-50%,-50%);font:800 2.2em var(--en);color:#fff;text-shadow:0 2px 0 var(--leaf),0 0 .4em rgba(0,0,0,.25);pointer-events:none;animation:rise .9s ease forwards;z-index:4}
.feed{position:absolute;left:50%;bottom:.6em;transform:translateX(-50%);display:flex;align-items:center;gap:.6em;background:#fff;border-radius:1.2em;padding:.35em .5em .35em .4em;box-shadow:0 .4em 1em rgba(0,0,0,.25);border:3px solid var(--leaf);z-index:5;animation:slideup .25s ease;max-width:calc(100% - 1em)}
.feed.no{border-color:var(--coral)}
.feed[hidden]{display:none}
.fPik{width:3.2em;height:3.2em;object-fit:contain}
.fTxt{display:flex;flex-direction:column;line-height:1.15;min-width:0}
.fTxt b{font:800 1.5em var(--en);color:var(--teal2)}
.feed.no .fTxt b{color:var(--coral2)}
.fTxt span{font-size:1em;font-weight:700;color:#4f6577}
.fSay{width:2.3em;height:2.3em;border-radius:50%;background:#e4f7fa;font-size:1.1em}
.fNext{font-weight:800;background:var(--leaf);color:#fff;border-radius:.9em;padding:.45em .8em;box-shadow:0 .18em 0 #1e8f4b;white-space:nowrap}
.feed.no .fNext{background:var(--coral);box-shadow:0 .18em 0 var(--coral2)}

/* end */
#end{align-items:center;justify-content:center;padding:.6em}
.endcard{width:min(46em,100%);max-height:100%;display:flex;flex-direction:column;gap:.5em;padding:.8em 1em}
.eTop{display:flex;align-items:center;gap:.8em;justify-content:center}
.ePik{width:min(8em,20vh);height:auto;animation:bob 1.6s ease-in-out infinite}
.eTitle{font-size:1.6em;font-weight:800;color:var(--teal2)}
.eStars{display:flex;gap:.15em}
.eStars .st{font-size:2.2em;color:#dbe3e6;line-height:1;transform:scale(.4);animation:starIn .45s ease forwards}
.eStars .st.on{color:#ffc928;text-shadow:0 .08em 0 #c98a00}
.eLine{font-size:.9em;color:#4f6577}
.eLine b{color:var(--ink)}.eLine .nw{color:var(--coral2)}
.eWords{flex:1 1 auto;min-height:0;overflow:auto;display:grid;grid-template-columns:repeat(auto-fill,minmax(7.2em,1fr));gap:.35em;padding:.1em}
.ew{background:#fff;border:2px solid #d9eef2;border-radius:.7em;display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;column-gap:.35em;align-items:center;text-align:left;padding:.2em .4em;line-height:1.15}
.ew.miss{border-color:#ffc2b6;background:#fff6f3}
.ewp{grid-row:1/3;width:1.9em;height:1.9em;display:grid;place-items:center}
.ewp .pic{width:100%;height:100%}.ewp .pic.emo{font-size:1.5em;width:auto;height:auto}
.ew b{font:700 .9em var(--en)}.ew small{font-size:.72em;color:#6a8090;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.eBtns{display:flex;gap:.5em;justify-content:center;align-items:center;flex-wrap:wrap;flex:0 0 auto}
.eBtns .big{font-size:1.2em}

/* classroom */
#class{align-items:center;justify-content:center;padding:.6em;flex-direction:column}
.classcard{width:min(40em,100%);padding:.8em 1.1em;display:flex;flex-direction:column;gap:.45em;max-height:100%;overflow:auto}
.cHead{display:flex;flex-direction:column;text-align:center;line-height:1.3}
.cHead b{font-size:1.3em;color:var(--teal2)}.cHead span{font-size:.8em;color:#4f6577}
.cRow{display:flex;align-items:center;justify-content:space-between;gap:.6em}
.cRow>span{font-weight:700;white-space:nowrap}
.seg{display:flex;gap:.3em;flex-wrap:wrap;justify-content:flex-end}
.seg button{background:#fff;border:2px solid #cde9ee;border-radius:.7em;padding:.2em .7em;font-weight:700}
.seg button.sel{background:var(--teal);border-color:var(--teal2);color:#fff}
select{font:inherit;padding:.25em .5em;border-radius:.7em;border:2px solid #cde9ee;background:#fff;color:var(--ink);max-width:60%}
#cGo{margin-top:.2em}
.cTurn{flex:1;width:100%;min-height:0;display:flex;flex-direction:column;gap:.5em;align-items:center}
.cTurn[hidden],.cReady[hidden],.classcard[hidden]{display:none}
.cBar{display:flex;align-items:center;gap:.8em;background:rgba(255,255,255,.92);border-radius:1em;padding:.25em .9em;width:100%;font-weight:800;flex-wrap:wrap;justify-content:space-between}
.cBar b{font-size:1.2em}
#cTimer{font:800 1.6em var(--en);color:var(--teal2);min-width:2.2em;text-align:center}
#cTimer.low{color:var(--coral2);animation:pulse 1s infinite}
#cLast{font:800 1em var(--en);min-width:5em}#cLast.ok{color:#1e8f4b;animation:popin .3s}#cLast.sk{color:#7a8e9c;animation:popin .3s}
#cScores,.cBoard{display:flex;gap:.4em;flex-wrap:wrap;justify-content:center}
#cScores span,.cBoard span{border-radius:1em;padding:.1em .6em;background:#fff;border:2px solid var(--tc);font-size:.85em}
#cScores span.me,.cBoard span.me{background:var(--tc);color:#fff}
.cCard{flex:1;min-height:0;width:min(100%,46em);background:#fff;border:.3em solid #fff;border-radius:1.4em;box-shadow:0 .5em 0 rgba(0,0,0,.14);display:flex;flex-direction:column;align-items:center;justify-content:center;padding:.4em;gap:.1em}
.cCard.pop{animation:popin .3s ease}
.ccPic{height:min(36vh,10em);display:grid;place-items:center}
.ccPic .pic{width:auto;height:100%;aspect-ratio:1}
.ccPic .pic.emo{font-size:min(30vh,8.5em);height:auto}
.ccEn{font:800 min(13vh,3.6em) var(--en);color:var(--teal2);line-height:1.1;text-align:center}
.ccTh{font-size:1.3em;font-weight:700;color:#4f6577}
.ccHid{font-size:1.3em;font-weight:800;color:var(--coral2)}
.cBtns{display:grid;grid-template-columns:1fr 1.4fr;gap:.6em;width:min(100%,46em);flex:0 0 auto}
.cBtn{font-weight:800;font-size:1.4em;padding:.45em;border-radius:1em;color:#fff;display:flex;flex-direction:column;align-items:center;line-height:1.15}
.cBtn small{font:600 .5em var(--en);opacity:.85}
.cBtn.ok{background:var(--leaf);box-shadow:0 .2em 0 #1e8f4b}
.cBtn.skip{background:#8aa1b1;box-shadow:0 .2em 0 #627887}
.cBtn:active{transform:translateY(.12em)}
.cReady{width:min(36em,100%);padding:1em;display:flex;flex-direction:column;align-items:center;gap:.6em;text-align:center}
.cReadyT{font-size:1.7em;font-weight:800;color:var(--teal2)}
.cReadyS{font-size:.92em;color:#4f6577;line-height:1.45}

#toast{position:fixed;left:50%;top:46%;transform:translate(-50%,-50%);z-index:8;background:#fff;border:3px solid var(--sun);border-radius:1em;padding:.3em 1em;font:800 1.2em var(--en);color:var(--teal2);box-shadow:0 6px 18px rgba(0,0,0,.25);pointer-events:none;animation:toastin 1.1s ease forwards}
#toast[hidden]{display:none}

@keyframes bob{0%,100%{transform:translateY(0)}50%{transform:translateY(-.4em)}}
@keyframes popin{0%{transform:scale(.6);opacity:0}70%{transform:scale(1.06);opacity:1}100%{transform:scale(1)}}
@keyframes pulse{0%,100%{transform:scale(1)}50%{transform:scale(1.07)}}
@keyframes shake{0%,100%{transform:translateX(0)}20%{transform:translateX(-.35em)}40%{transform:translateX(.35em)}60%{transform:translateX(-.25em)}80%{transform:translateX(.2em)}}
@keyframes rise{0%{opacity:0;transform:translate(-50%,-20%) scale(.7)}25%{opacity:1;transform:translate(-50%,-60%) scale(1.1)}100%{opacity:0;transform:translate(-50%,-160%) scale(1)}}
@keyframes ring{0%{box-shadow:0 .4em 0 rgba(0,0,0,.14),0 0 0 .5em rgba(255,255,255,.35)}50%{box-shadow:0 .4em 0 rgba(0,0,0,.14),0 0 0 1.2em rgba(255,255,255,.15)}100%{box-shadow:0 .4em 0 rgba(0,0,0,.14),0 0 0 .5em rgba(255,255,255,.35)}}
@keyframes glow{0%,100%{box-shadow:0 0 0 0 rgba(255,201,40,.8)}50%{box-shadow:0 0 0 .4em rgba(255,201,40,0)}}
@keyframes slideup{0%{transform:translate(-50%,1em);opacity:0}100%{transform:translate(-50%,0);opacity:1}}
@keyframes starIn{0%{transform:scale(.3) rotate(-40deg)}70%{transform:scale(1.25) rotate(8deg)}100%{transform:scale(1) rotate(0)}}
@keyframes toastin{0%{opacity:0;transform:translate(-50%,-30%)}15%{opacity:1;transform:translate(-50%,-50%)}80%{opacity:1}100%{opacity:0;transform:translate(-50%,-70%)}}

/* portrait (phones) */
@media (orientation:portrait){
  :root{--fs:clamp(12px,calc(min(2vh,3.2vw) + 5px),21px)}
  .startcard{flex-direction:column;gap:.5em;padding:.8em .9em;overflow:auto}
  .heroPik{width:min(9em,20vh)}
  h1{font-size:1.9em}
  .topics{grid-template-columns:repeat(3,1fr);grid-auto-rows:minmax(6.2em,1fr)}
  .stage{flex-direction:column;gap:.6em;justify-content:flex-start;padding-top:.3em}
  .picCard{width:min(30vh,62vw)}
  .pic.emo{font-size:calc(min(30vh,62vw)*.55)}
  .picCard.sm{width:min(20vh,40vw)}
  .picCard.sm .pic.emo{font-size:calc(min(20vh,40vw)*.55)}
  .sayBig{width:min(26vh,52vw)}
  .answer{width:100%;height:auto;flex:1 1 auto;justify-content:flex-start}
  .opts.pics .opt{max-height:none;aspect-ratio:1.1}
  .opts.pics .opt .pic.emo{font-size:min(10vh,17vw)}
  .modeList{grid-template-columns:1fr}
  .eTop{flex-direction:row}
  .eWords{grid-template-columns:repeat(2,1fr)}
  .phud{flex-wrap:wrap;row-gap:.2em}
  .prog{order:3;flex-basis:100%}
}
/* short frames (store page 794x447, 640x360) */
@media (max-height:560px){
  :root{--fs:clamp(10px,calc(min(2.6vh,1.6vw) + 4px),17px)}
  #top{padding:.2em .5em}
  .hbtn{width:2em;height:2em}
  .heroPik{width:min(7.5em,24vh)}
  h1{font-size:1.8em}
  .intro{font-size:.85em;line-height:1.4}
  .startcard{padding:.6em .9em;gap:.9em}
  .sRight{gap:.4em}
  .tip{font-size:.78em}
  .opts.words .opt{min-height:2.6em;font-size:1.3em}
  .feed{bottom:.3em;padding:.2em .4em}
  .fPik{width:2.4em;height:2.4em}
  .fTxt b{font-size:1.25em}
  .ePik{width:min(5.5em,18vh)}
  .eStars .st{font-size:1.8em}
  .topic .tIc{font-size:1.7em}
  .topics{grid-template-columns:repeat(6,1fr);gap:.4em}
}
@media (max-height:420px){
  .keys{display:none}
  .intro{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
  #bPlay{font-size:1.25em;padding:.4em .9em}
  .topic small{display:none}
  .eTitle{font-size:1.3em}
  .cHead span{display:none}
  .classcard{gap:.3em;padding:.5em .9em}
}
/* very big screens */
@media (min-width:1200px) and (min-height:760px){
  :root{--fs:clamp(14px,calc(min(2.2vh,1.4vw) + 4px),24px)}
}
