/* HKG432D floating top + bottom navigation, 2026-11-20. */
:root{--hk-app-top-height:86px;--hk-app-bottom-height:80px;--hk-app-side-gap:0px;--hk-app-radius:18px}
html{scroll-padding-top:calc(var(--hk-app-top-height) + 14px)!important}
html [id]{scroll-margin-top:calc(var(--hk-app-top-height) + 14px)}
body{padding-top:var(--hk-app-top-height)!important;padding-bottom:calc(var(--hk-app-bottom-height) + env(safe-area-inset-bottom,0px) + 22px)!important}
header.top{position:fixed!important;top:0!important;left:0!important;right:0!important;width:100%!important;max-width:none!important;margin:0!important;z-index:2130!important;box-sizing:border-box!important;border-radius:0 0 var(--hk-app-radius) var(--hk-app-radius)!important;box-shadow:0 6px 22px rgba(0,0,0,.25)!important;transform:none!important}
/* Keep dropdowns usable; round the header background itself. */
header.top::before{border-radius:inherit}
nav#nav{position:fixed!important;top:auto!important;bottom:calc(8px + env(safe-area-inset-bottom,0px))!important;left:50%!important;right:auto!important;transform:translateX(-50%)!important;width:min(96vw,1050px)!important;max-width:1050px!important;margin:0!important;padding:7px!important;z-index:2140!important;display:flex!important;flex-flow:row nowrap!important;align-items:stretch!important;justify-content:space-around!important;gap:3px!important;overflow-x:auto!important;overflow-y:hidden!important;scrollbar-width:none!important;-webkit-overflow-scrolling:touch!important;overscroll-behavior-x:contain!important;box-sizing:border-box!important;border-radius:18px!important;background:#2a1020!important;box-shadow:0 8px 28px rgba(0,0,0,.35)!important}
nav#nav::-webkit-scrollbar{display:none}
nav#nav>a{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:3px!important;flex:1 0 0!important;min-width:74px!important;max-width:none!important;padding:8px 5px!important;border-radius:11px!important;text-align:center!important;white-space:nowrap!important;color:#fff0f3!important;font-size:17px!important;line-height:1.2!important;text-decoration:none!important}
nav#nav>a span{display:block!important;font-size:11px!important;line-height:1.25!important}
nav#nav>a.active,nav#nav>a[aria-current=page]{background:#c62839!important;color:#fff!important}
nav#nav>a:focus-visible{outline:2px solid #fff!important;outline-offset:-2px!important}
@media(max-width:760px){:root{--hk-app-side-gap:0px;--hk-app-radius:14px}header.top{max-width:none!important;width:100%!important;left:0!important;right:0!important}nav#nav{width:calc(100vw - 12px)!important;bottom:calc(5px + env(safe-area-inset-bottom,0px))!important;border-radius:14px!important;justify-content:flex-start!important;padding:5px!important}nav#nav>a{flex:0 0 68px!important;min-width:68px!important;padding:7px 3px!important}nav#nav>a span{font-size:10px!important}body{overflow-x:clip}}
@media(max-width:380px){:root{--hk-app-side-gap:0px;--hk-app-radius:12px}}
@media(prefers-reduced-motion:reduce){nav#nav{scroll-behavior:auto!important}}
