/* Application-style tab bar on compact screens and in the installed app; the full footer remains for larger browser windows. */
.site-tabbar,.site-mobile-legal{display:none}
@media(max-width:991.98px),(display-mode:standalone){
 :root{--site-tabbar-space:calc(3.6rem + env(safe-area-inset-bottom,0px))}
 body{padding-bottom:var(--site-tabbar-space)}
 .site-footer.mt-footer{display:none}
 .site-tabbar{position:fixed;inset:auto 0 0;z-index:1030;display:flex;justify-content:space-around;align-items:stretch;
  height:var(--site-tabbar-space);padding:0 max(.25rem,env(safe-area-inset-left,0px)) env(safe-area-inset-bottom,0px) max(.25rem,env(safe-area-inset-right,0px));
  background:var(--mt-glass,var(--mt-bg-secondary));-webkit-backdrop-filter:blur(18px) saturate(150%);backdrop-filter:blur(18px) saturate(150%);border-top:1px solid transparent}
 /* Halo: the brand line glows along the top edge, like the header. */
 .site-tabbar::after{content:"";position:absolute;left:0;right:0;top:-1px;height:1px;background:var(--mt-gradient);box-shadow:0 0 18px rgb(129 140 248 / .35);pointer-events:none}
 .site-tab{position:relative;flex:1 1 0;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.2rem;
  padding:.35rem 0;border:0;background:none;color:var(--mt-text-secondary);font:inherit;font-size:.625rem;font-weight:600;letter-spacing:-.01em;line-height:1.1;text-decoration:none;
  -webkit-tap-highlight-color:transparent}
 .site-tab>span:not(.site-tab-badge){max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .site-tab .game-icon,.site-tab .bi{width:1.4rem;height:1.4rem;font-size:1.3rem;line-height:1}
 .site-tab:hover{color:var(--mt-text)}
 .site-tab:focus-visible{outline:2px solid var(--mt-primary);outline-offset:-3px;border-radius:.5rem}
 .site-tab.is-active,.site-tab[aria-expanded=true]{color:var(--mt-primary)}
 .site-tab.is-active::before{content:"";position:absolute;top:0;left:28%;right:28%;height:2px;border-radius:0 0 2px 2px;background:var(--mt-gradient);box-shadow:0 0 10px 1px rgb(34 211 238 / .8)}
 .site-tab.is-active .game-icon,.site-tab.is-active .bi{filter:drop-shadow(0 0 6px rgb(34 211 238 / .7))}
 .site-tab-badge{position:absolute;top:.3rem;left:calc(50% + .45rem);min-width:1.05rem;height:1.05rem;padding:0 .25rem;border-radius:999px;
  background:var(--mt-violet);color:var(--mt-bg);font-size:.6rem;line-height:1.05rem;text-align:center}
 .site-tab-badge[hidden]{display:none}
 /* One discreet legal line at the end of the page replaces the footer's notices and links. */
 .site-mobile-legal{display:block;padding:1rem 1rem 1.1rem;border-top:1px solid var(--mt-border);color:var(--mt-text-secondary);font-size:.68rem;line-height:1.45;text-align:center}
 .site-mobile-legal p{margin:0 0 .45rem}
 .site-mobile-legal nav{display:flex;flex-wrap:wrap;justify-content:center;gap:.25rem .9rem}
 .site-mobile-legal a{color:var(--mt-text);text-decoration:none}
 .site-mobile-legal a:hover{color:var(--mt-primary);text-decoration:underline}
 .site-mobile-legal .mt-footer-install{font-size:.68rem}
 .site-mobile-legal .mt-footer-install[hidden]{display:none}
 /* Panels opened from the tab bar must not hide behind it. */
 .site-nav-panel{max-height:calc(100dvh - var(--site-nav-height,6rem) - var(--site-tabbar-space) - .5rem)}
 /* Floating notices stay above the tab bar. */
 .scan-toast,.web-app-toast,.web-app-banner{bottom:calc(1rem + var(--site-tabbar-space))}
 .site-tour-prompt{bottom:calc(12px + var(--site-tabbar-space))}
 .site-tour-bubble.is-sheet{bottom:calc(12px + var(--site-tabbar-space));max-height:calc(55vh - var(--site-tabbar-space))}
}
/* Wide installed windows keep compact, centred tabs. */
@media(display-mode:standalone) and (min-width:992px){.site-tabbar{justify-content:center;gap:.5rem}.site-tab{flex:0 1 6.5rem;font-size:.7rem}}
@media(prefers-reduced-motion:no-preference){.site-tab{transition:color .15s}}
