/* Reference structure: header art A + paper body + page-bottom ribbon.
   No full-screen mountain image. Header background has no baked UI text. */
html{min-height:100%}
body{--reference-footer-height:max(55px,4.9479167vw);--bottom-nav-space:0px}
body,body:has(#page-stats:not([hidden])){min-height:100vh;min-height:100svh;background:url('./assets/painted-ui/reference-page-footer.webp') center bottom var(--bottom-nav-space)/auto var(--reference-footer-height) no-repeat,#fff6e9 url('./assets/painted-ui/approved-honor-paper.webp') center top/512px 512px repeat!important;background-attachment:scroll,scroll!important;padding-bottom:calc(var(--reference-footer-height) + var(--bottom-nav-space) + 14px)}
body .app-header{background:#fff6e9 url('./assets/painted-ui/reference-A-background.webp') center bottom/cover no-repeat!important;backdrop-filter:none;box-shadow:none}
@media(min-width:1100px){
body .app-header{height:10.0260417vw;min-height:110px;padding-top:12px}
/* At1536px: A ends154; title starts119; board starts197. */
body[data-view=stats] #main-content{margin-top:-35px!important;padding-top:0!important;position:relative;z-index:31}
body #page-stats>.page-heading{height:105px;margin:0!important;padding:0!important;position:relative;z-index:2;pointer-events:none}
body #page-stats>.page-heading>div{height:105px;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:10px}
body #page-stats>.page-heading h1{flex:none;box-sizing:border-box;height:72px;min-height:72px;font-size:40px!important;line-height:42px;margin:0!important;padding-block:15px!important}
body #page-stats>.page-heading p{position:relative;z-index:3;width:fit-content;max-width:100%;height:24px;line-height:24px;font-size:22px;margin:0;padding-inline:25px;background:#fff6e9 url('./assets/painted-ui/approved-honor-paper.webp') center/512px 512px}
body #page-stats>.honor-wall{margin-top:-27px;position:relative;z-index:1;padding-top:24px}
body #page-stats .honor-tabs{margin-top:12px;margin-bottom:11px}
body #page-stats .honor-tabs button{height:54px;min-height:54px;font-size:26px!important;line-height:1;padding:0 10px!important}
}
@media(max-width:1099px){body{--bottom-nav-space:calc(83px + env(safe-area-inset-bottom))}body .app-header{background-position:32% bottom!important}body #page-stats>.page-heading p{padding-inline:6px}}
