*{box-sizing:border-box}
html,body{margin:0;height:100%;background:#1d2430;color:#eef2f7;font-family:"Kantumruy Pro","Noto Sans Khmer","Khmer OS Battambang","Khmer Sangam MN",system-ui,sans-serif}
body{display:flex;flex-direction:column;height:100dvh;overflow:hidden}
header{display:flex;align-items:center;gap:10px;padding:8px 12px;padding-top:max(8px,env(safe-area-inset-top));background:#075655;flex:none}
header img{width:32px;height:32px;border-radius:50%;display:block}
h1{font-size:15px;line-height:1.6;font-weight:600;margin:0;flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
button,a.b{appearance:none;border:0;background:rgba(255,255,255,.14);color:#fff;min-width:44px;height:44px;border-radius:10px;font:inherit;font-size:18px;display:inline-flex;align-items:center;justify-content:center;text-decoration:none;cursor:pointer;padding:0 10px}
button:focus-visible,a:focus-visible{outline:3px solid #ffd54a;outline-offset:2px}
svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
main{flex:1;min-height:0;overflow:auto;-webkit-overflow-scrolling:touch;padding:8px 0 80px}
.pg{position:relative;margin:0 auto 8px;background:#fff;overflow:hidden}
.pg canvas{display:block;width:100%;height:100%}
#bar{position:fixed;left:50%;bottom:max(14px,env(safe-area-inset-bottom));transform:translateX(-50%);display:flex;gap:6px;align-items:center;background:rgba(7,86,85,.95);padding:5px;border-radius:14px;box-shadow:0 4px 18px rgba(0,0,0,.4)}
#num{min-width:74px;text-align:center;font-size:15px;font-variant-numeric:tabular-nums}
#msg{position:fixed;inset:60px 0 0;display:flex;flex-direction:column;gap:16px;align-items:center;justify-content:center;text-align:center;padding:24px;line-height:1.8;pointer-events:none}
#msg a{pointer-events:auto}
[hidden]{display:none!important}
#msg[hidden]{display:none}
#track{width:min(260px,70vw);height:6px;border-radius:3px;background:rgba(255,255,255,.18);overflow:hidden}
#fill{height:100%;width:4%;background:#ffd54a;transition:width .2s}
@media(max-width:560px){#zo,#zi{display:none}}
