/* A compact public footer with the same alignment on home and games. */
body .unified-footer,body.home-portal .unified-footer{display:block;min-height:0;margin:0;padding:28px 0 24px;background:#111;color:#ffde00;border-top:1px solid #ffde0026;font-family:-apple-system,BlinkMacSystemFont,"Helvetica Neue","PingFang SC","Microsoft YaHei",sans-serif;font-size:12px;--y:#111;--ink:#ffde00;--paper:#181818;--line-rgb:255,222,0}
body .unified-footer *{color:inherit}
body .unified-footer>.shell,body.home-portal .unified-footer>.shell{display:block;max-width:1184px;margin:auto;padding:0 32px}
.unified-footer .footer-main{display:flex;align-items:center;justify-content:space-between;gap:24px;min-height:44px}
.unified-footer .footer-copyright{font-size:12px;line-height:1.6;letter-spacing:.02em;white-space:nowrap}
body .unified-footer .footer-bottom,body.home-portal .unified-footer .footer-bottom{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:12px 28px;flex-wrap:wrap;margin:12px 0 0;padding:12px 0 0;border-top:1px solid #ffde0033;color:inherit}
.unified-footer .footer-links{display:flex;align-items:center;gap:28px}
body .unified-footer :is(a,button),body.home-portal .unified-footer :is(a,button){display:inline-flex;align-items:center;justify-content:center;min-height:44px;color:inherit;font-family:inherit;font-size:12px;line-height:1.5;white-space:nowrap;text-decoration:none}
.unified-footer a:hover{text-decoration:underline;text-underline-offset:4px}
.unified-footer .appearance-toggle{gap:7px;padding:0;border:0;background:transparent;font-weight:400;cursor:pointer}
.unified-footer .appearance-toggle svg{width:19px;height:19px;color:inherit}
body .unified-footer .footer-bottom>.icp-link,body.home-portal .unified-footer .footer-bottom>.icp-link{order:0;flex:0 0 auto;min-height:32px;font-size:11px;line-height:1.6;opacity:.8}
.unified-footer .appearance-menu{right:0;left:auto}.unified-footer .appearance-menu .appearance-choices button{justify-content:flex-start;font-size:13px}
.unified-footer .appearance-menu :is(strong,p){font-size:12px}
.unified-footer :is(a,button):focus-visible{outline:2px solid currentColor;outline-offset:4px}
@media(max-width:800px){
 body .unified-footer,body.home-portal .unified-footer{padding:20px 0 24px}
 body .unified-footer>.shell,body.home-portal .unified-footer>.shell{padding:0 20px}
 .unified-footer .footer-main{gap:12px}.unified-footer .footer-copyright{font-size:11px}
 body .unified-footer .footer-bottom,body.home-portal .unified-footer .footer-bottom{display:grid;grid-template-columns:minmax(0,1fr);gap:6px;margin-top:10px;padding-top:10px}
 .unified-footer .footer-links{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;width:100%}
 body .unified-footer .footer-links :is(a,button),body.home-portal .unified-footer .footer-links :is(a,button){justify-content:flex-start;font-size:12px}
 .unified-footer .footer-links :nth-child(2){justify-self:center}.unified-footer .footer-links :last-child{justify-self:end}
 body .unified-footer .footer-bottom>.icp-link,body.home-portal .unified-footer .footer-bottom>.icp-link{justify-self:start;justify-content:flex-start;min-height:24px;font-size:11px}
}

/* Tools use the same footer grid and keep their account/guest appearance control. */
html[data-tool-page]{background:#111}
.tools-page.has-site-header>.tools-main{width:100%;box-sizing:border-box}
body .tools-unified-footer .tools-secondary-actions{display:flex;align-items:center;justify-content:flex-end;position:relative;flex-wrap:nowrap;gap:6px;max-width:none;width:auto;margin:0;padding:0;border:0;font-size:12px}
body .tools-unified-footer .tools-secondary-actions>:is(a,button){min-width:44px;justify-content:center;padding:0;font-size:12px}
body .tools-unified-footer .tools-secondary-actions .appearance-control{position:static}
body .tools-unified-footer .appearance-menu{right:0;left:auto;bottom:calc(100% + 8px)}
@media(max-width:800px){body .unified-footer .footer-bottom{min-height:74px}.tools-unified-footer .footer-main{gap:8px}.tools-unified-footer .footer-copyright{font-size:11px}}
html[data-theme=contrast] body .unified-footer{--y:#080808;--paper:#080808;background:#080808}html[data-tool-page][data-theme=contrast]{background:#080808}
