#tbwrap{position:absolute;left:0;right:0;bottom:0;z-index:3}
#tbar{padding:6px 6px max(8px,env(safe-area-inset-bottom));display:flex;gap:6px;overflow-x:auto;background:rgba(20,18,31,.95);border-top:3px solid #B6F03C;scrollbar-width:none;direction:rtl;scroll-behavior:smooth}
#tbar::-webkit-scrollbar{display:none}
#tbar button{position:relative;flex:0 0 auto;min-width:62px;height:64px;border-radius:14px;border:2px solid rgba(245,240,230,.35);background:#2A2738;color:#F5F0E6;font:800 12px Heebo,sans-serif;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding:2px 6px;touch-action:manipulation}
#tbar button .ic{font-size:22px;line-height:1}
#tbar button .ct{position:absolute;top:-6px;left:-4px;min-width:22px;padding:0 5px;height:20px;border-radius:10px;background:#FF5B2E;color:#F5F0E6;font-size:11px;line-height:20px}
#tbar button .ct:empty{display:none}
#tbar button.on{background:#B6F03C;color:#14121F;border-color:#F5F0E6;transform:translateY(-3px)}
#tbwrap::after{content:'';position:absolute;left:0;top:3px;bottom:0;width:46px;pointer-events:none;background:linear-gradient(to right,rgba(20,18,31,1),rgba(20,18,31,0));opacity:0;transition:opacity .2s}
#tbwrap.over::after{opacity:1}
#tbhint{position:absolute;left:8px;top:-34px;background:#FF7CC8;color:#14121F;font:800 13px Heebo,sans-serif;padding:5px 12px;border-radius:14px;border:2px solid #14121F;pointer-events:none;opacity:0;transform:translateX(0);transition:opacity .2s}
#tbhint.on{opacity:1;animation:tbn 1.2s ease-in-out infinite}
@keyframes tbn{50%{transform:translateX(-6px)}}
.choice{position:absolute;inset:0;z-index:6;display:flex;align-items:center;justify-content:center;background:rgba(20,18,31,.55);padding:16px}
.choice[hidden]{display:none}
.choice .cc{background:#F5F0E6;border:3px solid #14121F;border-radius:22px;padding:18px;max-width:420px;width:100%;text-align:center;box-shadow:0 8px 0 #14121F;animation:pop .3s}
.choice h3{font:28px 'Secular One',Heebo,sans-serif;margin:0 0 4px;color:#14121F}
.choice p{margin:0 0 12px;font-weight:700;color:#14121F}
.choice .opts{display:flex;gap:10px}
.choice .opt{flex:1;display:flex;flex-direction:column;align-items:center;gap:4px;min-height:130px;padding:10px 6px}
.choice .opt .big{font-size:34px}
.choice .opt small{font-weight:600;opacity:.8;font-size:12px}
@keyframes pop{from{transform:scale(.7);opacity:0}}
#hud .pill.nm{max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#hud .pill.tr{background:#B6F03C;color:#14121F}
#howBody .small{font-size:13px;opacity:.8}

.hint{top:calc(env(safe-area-inset-top,0px) + 92px)!important;transform:translateX(-50%)!important;font-size:15px!important;padding:8px 12px!important;max-width:min(86vw,420px)}

@media (orientation:landscape) and (max-height:520px){
#tbwrap{right:auto;top:calc(env(safe-area-inset-top,0px) + 54px);bottom:0;width:calc(126px + env(safe-area-inset-left,0px))}
#tbar{display:grid;grid-template-columns:1fr 1fr;grid-auto-rows:58px;gap:6px;align-content:start;height:100%;box-sizing:border-box;overflow-x:hidden;overflow-y:auto;border-top:none;border-right:3px solid #B6F03C;border-radius:0 18px 0 0;padding:8px 6px max(6px,env(safe-area-inset-bottom)) max(6px,env(safe-area-inset-left))}
#tbar button{min-width:0;width:100%;height:58px;gap:1px;padding:2px;font-size:10.5px;white-space:nowrap;letter-spacing:-.2px}
#tbar button .ic{font-size:19px}
#tbar button .ct{top:-4px;left:-2px}
#tbar button.on{transform:translateX(3px)}
#tbhint,#tbwrap::after{display:none!important}
}

#tbar .ns{display:none}
@media (orientation:portrait) and (max-width:620px){
#tbar{gap:4px;padding:6px 4px max(8px,env(safe-area-inset-bottom));overflow-x:hidden}
#tbar button{flex:1 1 0;min-width:0;height:60px;padding:2px 0;gap:1px;font-size:10.5px;white-space:nowrap;letter-spacing:-.3px;border-radius:12px}
#tbar button .ic{font-size:20px}
#tbar button .ct{top:-5px;left:-2px;min-width:18px;padding:0 4px;height:18px;line-height:18px;font-size:10px}
#tbhint,#tbwrap::after{display:none!important}
#tbar .nl{display:none}
#tbar .ns{display:inline}
}
