/* One visible viewport for scrolling, fixed panels and card-motion bounds. */
:root{
 --app-viewport-height:100vh;
 --app-viewport-top:0px;
 --app-safe-top:env(safe-area-inset-top,0px);
 --app-safe-bottom:env(safe-area-inset-bottom,0px);
 --app-safe-left:env(safe-area-inset-left,0px);
 --app-safe-right:env(safe-area-inset-right,0px);
}
@supports(height:100dvh){:root{--app-viewport-height:100dvh}}
html:root body{
 top:var(--app-viewport-top)!important;
 height:var(--app-viewport-height)!important;
 min-height:0!important;
 max-height:var(--app-viewport-height)!important;
 width:100%!important;
}
html:root body #mainScroll{min-height:0!important}
html:root body #mainScroll #pagination{padding-bottom:calc(28px + var(--app-safe-bottom))!important}
html:root body #gateKeeper,
html:root body #cardDetailPage,
html:root body .fullpage-panel,
html:root body #filterPanel,
html:root body .user-modal-overlay,
html:root body #memeCaptchaModal,
html:root body #turnstileModal{
 top:var(--app-viewport-top)!important;
 bottom:auto!important;
 height:var(--app-viewport-height)!important;
 max-height:var(--app-viewport-height)!important;
 box-sizing:border-box;
}
html:root body .gate-bottom{bottom:0!important;padding-bottom:calc(24px + var(--app-safe-bottom))!important}
html:root body .fullpage-body{padding-bottom:calc(16px + var(--app-safe-bottom))!important}
html:root body #cardDetailBody{padding-bottom:calc(32px + var(--app-safe-bottom))!important}
html:root body .filter-box,
html:root body #userModal .user-modal-box,
html:root body #memeCaptchaModal .meme-captcha-box,
html:root body #turnstileBox,
html:root body .modal-box{
 max-height:calc(var(--app-viewport-height) - 32px - var(--app-safe-top) - var(--app-safe-bottom))!important;
 overflow-y:auto!important;
 box-sizing:border-box;
}
@media(max-width:1023px){
 html:root body.illustration-ui > header{padding-top:calc(12px + var(--app-safe-top))!important}
 html:root body #mainScroll{padding-left:var(--app-safe-left)!important;padding-right:var(--app-safe-right)!important}
 html:root body .fullpage-header{padding-top:calc(12px + var(--app-safe-top))!important}
}
