:root{
  --ink:#1d2b53; --ink2:#3b4a78; --paper:#fffdf6; --sand:#fff1cf; --sun:#ffd23f; --sun2:#ffb703;
  --coral:#ff6b6b; --sea:#1fb5c9; --sea2:#0e8fa3; --leaf:#5cc96b; --grape:#9b5de5;
  --ok:#2bb673; --bad:#ef476f; --r:18px; --sh:4px 5px 0 var(--ink);
  --f:"Trebuchet MS","Segoe UI","Helvetica Neue",Arial,system-ui,sans-serif;
}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0;height:100%;overflow:hidden;background:#8fdcf0;color:var(--ink);font-family:var(--f);touch-action:manipulation;user-select:none;-webkit-user-select:none}
button{font-family:inherit;color:inherit;cursor:pointer}
#bg{position:fixed;inset:0;background:url(img/bg.webp) center 70%/cover no-repeat}
#bg::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(255,255,255,.18),rgba(255,255,255,.05) 40%,rgba(29,43,83,.12))}
#app{position:fixed;inset:0;display:flex;flex-direction:column}
.hidden{display:none!important}
kbd{display:inline-block;min-width:1.5em;padding:1px 5px;border:2px solid var(--ink);border-bottom-width:3px;border-radius:6px;background:#fff;font:800 .78em var(--f);color:var(--ink);text-align:center}

/* header */
#top{display:flex;align-items:center;gap:8px;padding:8px 10px;padding-top:max(8px,env(safe-area-inset-top));z-index:5}
.ib{width:42px;height:42px;border-radius:50%;border:3px solid var(--ink);background:#fff;box-shadow:2px 3px 0 var(--ink);display:grid;place-items:center;padding:0;flex:none}
.ib svg{width:22px;height:22px}
.ib:active{transform:translate(2px,3px);box-shadow:none}
#where{flex:1;min-width:0;display:flex;flex-direction:column;background:rgba(255,253,246,.92);border:3px solid var(--ink);border-radius:14px;padding:3px 12px;box-shadow:2px 3px 0 var(--ink)}
#where b{font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#where span{font-size:12px;color:var(--ink2);font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#scoreBox{background:var(--sun);border:3px solid var(--ink);border-radius:14px;padding:2px 12px;text-align:center;box-shadow:2px 3px 0 var(--ink);min-width:78px}
#scoreBox small{display:block;font-size:10px;font-weight:800;letter-spacing:1px}
#scoreBox b{font-size:20px;line-height:1}
#scoreBox.bump{animation:bump .35s}
@keyframes bump{40%{transform:scale(1.18) rotate(-3deg)}}

#main{flex:1;overflow-y:auto;overflow-x:hidden;padding:4px 12px 16px;-webkit-overflow-scrolling:touch}
.view{max-width:880px;margin:0 auto}

/* buttons */
.btn{border:3px solid var(--ink);border-radius:16px;background:#fff;padding:10px 18px;font-weight:800;font-size:16px;box-shadow:var(--sh);transition:transform .08s}
.btn:active{transform:translate(3px,4px);box-shadow:1px 1px 0 var(--ink)}
.btn.big{font-size:22px;padding:14px 34px;min-width:220px}
.btn.sun{background:linear-gradient(180deg,#ffe066,var(--sun2));}
.btn.ghost{background:rgba(255,255,255,.9);box-shadow:2px 3px 0 var(--ink)}
.btn kbd{font-size:.6em;vertical-align:middle;margin-left:6px}
.row{display:flex;gap:10px;justify-content:center;margin-top:12px;flex-wrap:wrap}

/* overlays + panels */
.overlay{position:fixed;inset:0;display:grid;place-items:center;padding:14px;background:rgba(29,43,83,.38);z-index:20;overflow-y:auto}
.panel{position:relative;width:min(560px,100%);background:var(--paper);border:4px solid var(--ink);border-radius:26px;box-shadow:6px 8px 0 var(--ink);padding:20px 20px 18px;text-align:center;margin:auto;animation:popIn .35s cubic-bezier(.2,1.6,.4,1)}
.panel.wide{width:min(620px,100%)}
.panel h2{margin:6px 0 8px;font-size:26px}
@keyframes popIn{from{transform:scale(.85);opacity:0}}
.panel::before{content:"";position:absolute;left:18px;right:18px;top:-4px;height:10px;border-radius:0 0 10px 10px;background:repeating-linear-gradient(90deg,var(--coral) 0 22px,var(--sun) 22px 44px,var(--sea) 44px 66px,var(--leaf) 66px 88px)}
.small{font-size:14px;color:var(--ink2);margin:6px 0}
.startPanel{padding-top:16px}
.startTop{display:flex;align-items:center;gap:12px;text-align:left}
.hostBig{width:112px;height:auto;flex:none;filter:drop-shadow(3px 4px 0 rgba(29,43,83,.25));animation:bob 2.6s ease-in-out infinite}
@keyframes bob{50%{transform:translateY(-6px) rotate(-2deg)}}
h1{margin:0;font-size:46px;line-height:1;letter-spacing:-1px;color:var(--ink);text-shadow:3px 3px 0 var(--sun)}
h1 span{display:block;font-size:21px;letter-spacing:0;margin-top:4px;color:var(--sea2);text-shadow:none}
.intro{margin:8px 0 0;font-size:14.5px;line-height:1.38;color:var(--ink2)}
#play{margin-top:10px;font-size:26px;padding:14px 60px}
.modes{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}
.btn.mode{display:flex;align-items:center;gap:8px;font-size:15px;padding:8px 10px;text-align:left;box-shadow:3px 4px 0 var(--ink);min-height:56px}
.btn.mode img{width:34px;height:34px;flex:none}
.btn.mode small{display:block;font-size:11.5px;color:var(--ink2);font-weight:700}
.mi{width:34px;height:34px;flex:none;display:grid;place-items:center;border-radius:50%;border:2.5px solid var(--ink);font-size:12px;font-weight:900}
.mi.cal{background:var(--coral);color:#fff;border-radius:9px}
.mi.ppl{background:var(--grape);color:#fff}
.ctl{display:flex;gap:14px;justify-content:center;flex-wrap:wrap;margin-top:12px;font-size:13px;color:var(--ink2);font-weight:700}
.ctl kbd{margin-right:2px}
body.touch .keyOnly{display:none}
body:not(.touch) .touchOnly{display:none}

/* segmented */
.seg{display:inline-flex;border:3px solid var(--ink);border-radius:14px;overflow:hidden;background:#fff;box-shadow:2px 3px 0 var(--ink)}
.seg button{border:0;background:transparent;padding:9px 16px;font-weight:800;font-size:15px;border-left:2px solid var(--ink)}
.seg button:first-child{border-left:0}
.seg button.on{background:var(--sea);color:#fff}
.seg.mini{margin-top:12px}
.seg.wrap{flex-wrap:wrap;justify-content:center;border-radius:14px}
.seg.wrap button{border-left:0;border-right:2px solid var(--ink);border-bottom:2px solid var(--ink);font-size:13.5px;padding:7px 10px}
.lbl{font-weight:900;margin:14px 0 6px;font-size:15px}
#pNames{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:10px}
#pNames label{display:flex;align-items:center;gap:6px;border:3px solid var(--ink);border-radius:12px;padding:4px 8px;background:#fff}
#pNames input{border:0;outline:0;font:700 15px var(--f);width:100%;color:var(--ink);background:transparent;user-select:text;-webkit-user-select:text}
.pdot{width:16px;height:16px;border-radius:50%;border:2.5px solid var(--ink);flex:none}
#passDot{width:46px;height:46px;margin:0 auto}

/* themes view */
.rankBar{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;background:var(--paper);border:3px solid var(--ink);border-radius:16px;padding:8px 14px;box-shadow:var(--sh);font-weight:700;margin-top:6px}
.medals{display:flex;align-items:center;gap:5px}
.md{display:inline-block;width:16px;height:16px;border-radius:50%;border:2px solid var(--ink)}
.md.g{background:#ffcf33}.md.s{background:#cfd8e3}.md.b{background:#d98c4a}.md.n{background:#fff;opacity:.5}
#themesView .lbl{background:var(--paper);display:inline-block;padding:3px 12px;border:3px solid var(--ink);border-radius:12px}
#themes{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px}
.th{display:flex;flex-direction:column;align-items:center;gap:4px;border:3px solid var(--ink);border-radius:18px;background:#fff;padding:10px 6px 8px;box-shadow:3px 4px 0 var(--ink);font-weight:800;font-size:15px}
.th img{width:58px;height:58px}
.th .mix{width:58px;height:58px;border-radius:50%;border:3px solid var(--ink);background:conic-gradient(var(--sun) 0 25%,var(--coral) 0 50%,var(--sea) 0 75%,var(--leaf) 0);display:grid;place-items:center;font-size:24px;font-weight:900;color:#fff;text-shadow:1px 2px 0 var(--ink)}
.th.on{background:var(--sand);outline:4px solid var(--sea);outline-offset:-1px;transform:translateY(-2px)}
.th .mds{display:flex;gap:4px}
.th .mds .md{width:13px;height:13px}
#themesView .seg{margin:0}
#themesView .row{justify-content:flex-start}
.note{font-size:13px;color:var(--ink2);text-align:center;margin:10px 4px;font-weight:700}
#hint{display:table;margin:10px auto;background:rgba(255,253,246,.9);border:2px solid var(--ink);border-radius:999px;padding:3px 12px}
#themesView .note{background:rgba(255,253,246,.85);border-radius:12px;padding:6px 10px}

/* play */
#players{display:flex;gap:6px;justify-content:center;flex-wrap:wrap;margin:2px 0 6px}
.pl{display:flex;align-items:center;gap:6px;background:#fff;border:3px solid var(--ink);border-radius:12px;padding:3px 10px;font-weight:800;font-size:14px;opacity:.7}
.pl.cur{opacity:1;background:var(--sand);transform:scale(1.06);box-shadow:2px 3px 0 var(--ink)}
.pl .pdot{width:13px;height:13px}
#trail{position:relative;display:flex;justify-content:space-between;align-items:flex-end;gap:4px;padding:34px 8px 9px;margin:0 auto 4px;max-width:640px}
#trail::before{content:"";position:absolute;left:18px;right:18px;bottom:17px;height:6px;border-radius:3px;background:repeating-linear-gradient(90deg,var(--ink) 0 10px,transparent 10px 18px);opacity:.35}
.tp{position:relative;width:26px;height:26px;border-radius:50%;border:3px solid var(--ink);background:#fff;z-index:1;display:grid;place-items:center;font-size:12px;font-weight:900;color:#fff;transition:transform .2s}
.tp.ok{background:var(--ok)}.tp.bad{background:var(--bad)}
.tp.cur{background:var(--sun);transform:scale(1.25)}
#me{position:absolute;bottom:2px;width:40px;height:40px;margin-left:-20px;transition:left .45s cubic-bezier(.3,1.4,.5,1);z-index:2;pointer-events:none}
#me img{width:40px;height:40px;object-fit:contain;object-position:top;border-radius:50%;background:var(--sand);border:3px solid var(--ink)}
#me b{position:absolute;left:50%;top:-16px;transform:translateX(-50%);background:var(--coral);color:#fff;font-size:10.5px;font-weight:900;padding:1px 6px;border-radius:8px;border:2px solid var(--ink);white-space:nowrap;letter-spacing:.5px}
#hud{display:flex;gap:6px;justify-content:center;flex-wrap:wrap;margin-bottom:8px}
.chip{background:#fff;border:3px solid var(--ink);border-radius:999px;padding:3px 12px;font-weight:800;font-size:13.5px;box-shadow:2px 2px 0 var(--ink);white-space:nowrap}
.chip.ghost{background:var(--sand)}
.chip.streak{background:#fff}
.chip.streak em{font-style:normal;background:var(--coral);color:#fff;border-radius:8px;padding:0 6px;margin-left:4px}
.chip.streak.hot{background:var(--sun);animation:bump .4s}
#stage{display:grid;grid-template-columns:1fr;gap:10px;position:relative}
#qCard{position:relative;background:var(--paper);border:4px solid var(--ink);border-radius:24px;box-shadow:6px 7px 0 var(--ink);padding:26px 20px 18px;text-align:center;min-height:120px;display:flex;flex-direction:column;justify-content:center}
#qCard.in{animation:cardIn .35s cubic-bezier(.2,1.4,.4,1)}
@keyframes cardIn{from{transform:translateX(30px) rotate(2deg);opacity:0}}
#qCard.shake{animation:shake .4s}
@keyframes shake{20%,60%{transform:translateX(-8px)}40%,80%{transform:translateX(8px)}}
#qText{margin:0;font-size:24px;font-weight:800;line-height:1.28}
#flag{margin:4px auto 12px;width:min(260px,70%);aspect-ratio:3/2;border:3px solid var(--ink);border-radius:8px;overflow:hidden;box-shadow:3px 4px 0 rgba(29,43,83,.3);background:#fff}
#flag svg{display:block;width:100%;height:100%}
#timer{position:absolute;left:16px;right:16px;top:-15px;height:24px;border:3px solid var(--ink);border-radius:12px;background:#fff;overflow:hidden}
#timerBar{position:absolute;left:0;top:0;bottom:0;width:100%;background:linear-gradient(90deg,var(--leaf),var(--sea));transform-origin:left;border-radius:9px}
#timer.low #timerBar{background:linear-gradient(90deg,var(--coral),var(--sun2))}
#timerN{position:absolute;right:8px;top:50%;transform:translateY(-50%);font-weight:900;font-size:13px}
#answers{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.ans{position:relative;display:flex;align-items:center;gap:10px;min-height:64px;padding:10px 14px 10px 10px;border:3px solid var(--ink);border-radius:18px;font-weight:800;font-size:18px;text-align:left;box-shadow:4px 5px 0 var(--ink);transition:transform .1s,filter .2s}
.ans:nth-child(1){background:#ffe58a}.ans:nth-child(2){background:#ffb3b3}.ans:nth-child(3){background:#a6ecf2}.ans:nth-child(4){background:#c4efb0}
.ans kbd{font-size:15px;min-width:30px;height:30px;line-height:22px;border-radius:50%;flex:none}
.ans:hover:not(:disabled){transform:translateY(-2px)}
.ans:active:not(:disabled){transform:translate(3px,4px);box-shadow:1px 1px 0 var(--ink)}
.ans:disabled{cursor:default}
.ans.dim{filter:grayscale(.8) opacity(.55)}
.ans.good{background:var(--ok)!important;color:#fff;animation:pulse .5s;filter:none}
.ans.good kbd{background:#fff;color:var(--ok)}
.ans.wrong{background:var(--bad)!important;color:#fff;filter:none}
.ans.picked{outline:4px dashed var(--ink);outline-offset:2px}
.ans.flash{animation:pulse .3s}
@keyframes pulse{40%{transform:scale(1.05)}}
#host{display:flex;align-items:flex-end;gap:6px;justify-content:center}
#hostImg{width:78px;height:auto;filter:drop-shadow(2px 3px 0 rgba(29,43,83,.25))}
#hostImg.hop{animation:hop .5s}
@keyframes hop{40%{transform:translateY(-14px) rotate(-4deg)}}
#bubble{position:relative;background:#fff;border:3px solid var(--ink);border-radius:16px;padding:7px 12px;font-weight:800;font-size:15px;margin-bottom:34px;box-shadow:2px 3px 0 var(--ink);max-width:260px}
#bubble::after{content:"";position:absolute;left:-11px;bottom:10px;border:8px solid transparent;border-right-color:var(--ink)}
#bubble.say{animation:bump .3s}

/* sheet */
#sheet{position:fixed;left:0;right:0;bottom:0;z-index:15;padding:0 10px max(10px,env(safe-area-inset-bottom));animation:up .3s cubic-bezier(.2,1.3,.4,1)}
@keyframes up{from{transform:translateY(100%)}}
.sheetIn{max-width:680px;margin:0 auto;background:var(--paper);border:4px solid var(--ink);border-radius:22px;box-shadow:0 -2px 0 var(--ink),5px 6px 0 var(--ink);padding:12px 16px 14px;text-align:center}
.sheetHead{display:flex;justify-content:center;align-items:center;gap:10px}
#verdict{font-size:24px;font-weight:900}
#verdict.ok{color:var(--ok)}#verdict.bad{color:var(--bad)}
#gain{font-weight:900;background:var(--sun);border:2.5px solid var(--ink);border-radius:10px;padding:1px 8px}
#gain:empty{display:none}
#goodAns{margin:6px 0 2px;font-weight:800}
#expl{margin:4px 0 10px;font-size:15px;line-height:1.4;color:var(--ink2)}
#expl::before{content:"Você sabia? ";font-weight:900;color:var(--sea2)}

/* result */
#resScore{font-size:52px;font-weight:900;line-height:1;margin:2px 0 6px;color:var(--ink);text-shadow:3px 3px 0 var(--sun)}
#resStats{display:flex;justify-content:center;gap:8px;flex-wrap:wrap}
#resStats div{background:#fff;border:3px solid var(--ink);border-radius:12px;padding:4px 10px;font-weight:800;font-size:14px}
#resStats div b{display:block;font-size:20px}
#resMedal{display:flex;align-items:center;justify-content:center;gap:8px;margin-top:10px;font-weight:900}
#resMedal .md{width:30px;height:30px;border-width:3px;animation:bump .6s}
#podium{display:flex;justify-content:center;align-items:flex-end;gap:8px;margin:8px 0}
#podium div{width:86px;border:3px solid var(--ink);border-radius:12px 12px 0 0;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;padding:6px 4px;font-weight:900;font-size:13px;background:#fff}
#podium div b{font-size:18px}
details{margin-top:12px;text-align:left}
summary{cursor:pointer;font-weight:800;text-align:center}
#reviewList{max-height:240px;overflow:auto;padding-left:22px;font-size:14px;margin:8px 0 0}
#reviewList li{margin-bottom:6px}
#reviewList .r-ok{color:var(--ok);font-weight:800}
#reviewList .r-bad{color:var(--bad);font-weight:800}

#pop{position:fixed;inset:0;pointer-events:none;z-index:30}
.popTxt{position:absolute;font-weight:900;font-size:26px;color:#fff;-webkit-text-stroke:2px var(--ink);paint-order:stroke;animation:rise 1s ease-out forwards;white-space:nowrap}
@keyframes rise{to{transform:translateY(-70px);opacity:0}}
#fx{position:fixed;inset:0;width:100%;height:100%;pointer-events:none;z-index:25}

@media (min-width:860px){
  #stage{grid-template-columns:1fr 150px;grid-template-areas:"card host" "ans host"}
  #qCard{grid-area:card}#answers{grid-area:ans}
  #host{grid-area:host;flex-direction:column-reverse;align-items:center;justify-content:flex-end}
  #hostImg{width:132px}
  #bubble{margin:0 0 10px}
  #bubble::after{left:50%;bottom:-11px;margin-left:-8px;border-color:transparent;border-top-color:var(--ink)}
}
@media (max-width:640px){
  #where{display:none}
  #top{justify-content:flex-end}
  #top #back{margin-right:auto}
  h1{font-size:38px}
  h1 span{font-size:17px}
  .startTop{gap:8px}
  .hostBig{width:84px}
  .intro{font-size:13px}
  .btn.big{min-width:0}
  #play{padding:12px 48px}
  .btn.mode{font-size:13.5px;min-height:52px}
  #qText{font-size:19px}
  #qCard{padding:24px 14px 14px;min-height:96px}
  #answers{grid-template-columns:1fr;gap:8px}
  .ans{min-height:52px;font-size:16px;padding:7px 12px 7px 8px}
  #flag{width:min(200px,62%);margin-bottom:8px}
  .tp{width:20px;height:20px;border-width:2.5px}
  #trail{padding-top:28px}
  #me{width:34px;height:34px;margin-left:-17px;bottom:2px}
  #me img{width:34px;height:34px}
  #hostImg{width:58px}
  #bubble{font-size:13.5px;margin-bottom:24px}
  #resScore{font-size:42px}
  .panel{padding:16px 14px 14px}
  .modes{gap:8px}
}
@media (max-height:700px) and (max-width:640px){#host{display:none}}
@media (prefers-reduced-motion:reduce){*{animation-duration:.01s!important;transition-duration:.01s!important}}

/* short frame (embedded store window, small laptops) */
.pFoot{align-items:center}
@media (max-height:560px){
 #top{padding:5px 10px;padding-top:max(5px,env(safe-area-inset-top));gap:6px}
 .ib{width:36px;height:36px;box-shadow:2px 2px 0 var(--ink)}
 .ib svg{width:19px;height:19px}
 #where{padding:2px 10px}
 #where b{font-size:14px}#where span{font-size:11px}
 #scoreBox{padding:1px 10px;min-width:66px}
 #scoreBox small{font-size:9px}#scoreBox b{font-size:17px}
 #main{padding:2px 12px 8px}
 #trail{padding:24px 8px 6px;margin-bottom:2px}
 #trail::before{bottom:13px}
 .tp{width:20px;height:20px;border-width:2.5px}
 #me{width:32px;height:32px;margin-left:-16px;bottom:0}
 #me img{width:32px;height:32px}
 #me b{top:-14px;font-size:9.5px}
 #hud{margin-bottom:6px;gap:5px}
 .chip{padding:1px 10px;font-size:12.5px}
 #stage{gap:8px}
 #qCard{padding:20px 16px 12px;min-height:0;border-radius:20px;box-shadow:4px 5px 0 var(--ink)}
 #qText{font-size:20px}
 #flag{width:auto;height:min(26vh,120px);margin:0 auto 6px}
 #answers{gap:8px}
 .ans{min-height:48px;font-size:16px;padding:6px 12px 6px 8px;box-shadow:3px 4px 0 var(--ink);border-radius:16px}
 .ans kbd{font-size:13px;min-width:26px;height:26px;line-height:18px}
 #playView #hint{display:none}
 #bubble{font-size:13.5px;padding:5px 10px}
 #hostImg{width:96px}
 .overlay{padding:8px}
 .panel{padding:14px 16px 12px;border-radius:22px;box-shadow:4px 6px 0 var(--ink)}
 .panel h2{font-size:22px;margin:4px 0 6px}
 .hostBig{width:80px}
 h1{font-size:38px}h1 span{font-size:18px}
 .intro{font-size:13px;margin-top:4px}
 #play{margin-top:8px;font-size:22px;padding:10px 48px}
 .seg.mini{margin-top:8px}
 .seg button{padding:7px 14px;font-size:14px}
 .small{margin:4px 0;font-size:13px}
 .modes{gap:8px;margin-top:8px}
 .btn.mode{min-height:44px;padding:5px 10px;font-size:14px}
 .btn.mode img,.mi{width:30px;height:30px}
 .ctl{margin-top:8px}
 .btn.big{font-size:19px;padding:10px 26px}
 .btn{padding:8px 16px}
 .row{margin-top:8px}
 .lbl{margin:8px 0 4px;font-size:14px}
 #resHost{width:64px}
 #resScore{font-size:40px;margin:0 0 4px}
 #resStats div{padding:2px 8px;font-size:13px}
 #resStats div b{font-size:17px}
 #resMedal{margin-top:6px}
 #resMedal .md{width:24px;height:24px}
 details{margin-top:8px}
 #reviewList{max-height:30vh}
 #podium{margin:4px 0}
 .sheetIn{padding:8px 14px 10px;border-radius:18px}
 #verdict{font-size:20px}
 #goodAns{margin:3px 0 0}
 #expl{font-size:14px;margin:3px 0 6px;line-height:1.32}
 #next{padding:8px 26px;font-size:18px}
 /* long panels scroll inside, main buttons stay visible */
 #party .panel,#result .panel{max-height:calc(100vh - 16px);max-height:calc(100dvh - 16px);overflow-y:auto}
 .pFoot{position:sticky;bottom:-12px;margin:8px -16px -12px;padding:8px 12px 10px;background:var(--paper);border-top:2px dashed rgba(29,43,83,.25);z-index:2}
 #pNames{margin-top:6px;gap:6px}
 #pNames input{font-size:14px}
 #themesView .lbl{margin:6px 0 4px}
 #themes{grid-template-columns:repeat(auto-fill,minmax(118px,1fr));gap:8px}
 .th{padding:6px 4px 5px;font-size:13.5px;border-radius:14px}
 .th img,.th .mix{width:32px;height:32px;flex:none}
 .th .mix{font-size:15px;border-width:2.5px}
 .tFoot{position:sticky;bottom:-8px;z-index:3;display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap;margin:8px 0 0;padding:7px 10px 9px;background:rgba(255,253,246,.94);border:3px solid var(--ink);border-radius:16px;box-shadow:2px 3px 0 var(--ink)}
 #themesView .tFoot .lbl{display:none}
 #themesView .tFoot .row{margin:0}
 .th{display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;align-items:center;justify-items:start;text-align:left;column-gap:7px;row-gap:2px;padding:5px 8px;line-height:1.1}
 .th > img,.th > .mix{grid-row:1 / 3}
 .th > span:not(.mix){min-width:0}
 .th .small{margin:0;font-size:11px}
 #themesView .note{margin:6px 4px}
 #tGo{font-size:19px;padding:9px 26px}
}
@media (max-height:560px) and (min-width:860px){
 #stage{grid-template-columns:1fr 120px}
 #hostImg{width:100px}
}
@media (max-height:440px){
 #where{display:none}
 #top{justify-content:flex-end}
 #top #back{margin-right:auto}
 #trail{padding:20px 6px 4px;max-width:560px}
 #trail::before{bottom:10px}
 .tp{width:17px;height:17px;border-width:2px}
 #me{width:26px;height:26px;margin-left:-13px}
 #me img{width:26px;height:26px;border-width:2px}
 #me b{display:none}
 #hud{margin-bottom:5px}
 .chip{font-size:12px;padding:0 9px;border-width:2.5px}
 #qCard{padding:17px 12px 9px}
 #qText{font-size:17px;line-height:1.22}
 #timer{height:20px;top:-12px}
 #timerN{font-size:12px}
 #flag{height:min(24vh,84px)}
 #answers{grid-template-columns:1fr 1fr;gap:7px}
 .ans{min-height:42px;font-size:15px;padding:4px 10px 4px 6px}
 #host{display:none}
 #stage{grid-template-columns:1fr!important}
 .hostBig{display:none}
 #start .intro{display:none}
 .startTop{justify-content:center;text-align:center}
 h1{font-size:34px}h1 span{font-size:17px}
 .startPanel{padding-top:12px}
 #play{padding:8px 44px;font-size:21px}
 .btn.mode{min-height:40px;font-size:13.5px}
 .ctl{display:none}
 #resHost{display:none}
 #resScore{font-size:34px}
 #reviewList{max-height:26vh}
 #expl{font-size:13px}
 .sheetIn{padding:6px 12px 8px}
 #verdict{font-size:18px}
 #next{padding:6px 22px;font-size:17px}
 .lbl{margin:6px 0 3px}
 .seg.wrap button{padding:5px 8px;font-size:12.5px}
}
@media (max-width:640px) and (min-height:561px){
 .tFoot{position:sticky;bottom:-16px;z-index:3;margin:8px -4px 0;padding:4px 10px 12px;background:rgba(255,253,246,.94);border:3px solid var(--ink);border-radius:16px;box-shadow:2px 3px 0 var(--ink);text-align:center}
 #themesView .tFoot .row{justify-content:center;margin-top:8px}
 #themesView .tFoot .lbl{margin-top:6px}
}
