/* ===== FIT (19 Nov): every page sits evenly on any phone =====
   Loaded last. Only spacing and height — no colours, pictures or text change. */

/* iPhone: no rubber-band drag that pulls the picture away; use the real visible screen height */
html,body{overscroll-behavior-y:none}
.app{min-height:100vh;min-height:100dvh}
@media(min-width:520px){.app{min-height:calc(100vh - 90px);min-height:calc(100dvh - 90px)}}

/* Points: the owner's picture (1024×1325) is shorter than a phone screen. bg-points-ext.webp (1024×1100, background only,
   seamless with the picture's bottom edge) continues it down to the screen bottom; its height follows each phone.
   129.4cqw = picture height (1325/1024 of the width); 30px = space above the picture + a small margin so the page never scrolls. */
.pt8-canvas::after{content:"";position:absolute;left:0;right:0;top:calc(100% - 1px);pointer-events:none;
  height:max(0px,calc(100vh - 129.4cqw - 30px));height:max(0px,calc(100dvh - 129.4cqw - 30px));
  background:url('assets/points/bg-points-ext.webp?v=1') center top / 100% auto no-repeat}
.pt8-check{z-index:1}

/* Empty cart / favourites / orders: the message sits in the middle of the free space, not stuck at the top */
[data-screen="cart"] .empty,[data-screen="favs"] .empty-s{padding-top:max(30px,calc((100dvh - 440px) / 2))}
[data-screen="orders"] .empty-s{padding-top:max(30px,calc((100dvh - 500px) / 2))}
