*{box-sizing:border-box}
html,body,main{margin:0;width:100%;height:100%;overflow:hidden;background:#000}
#stage{display:block;width:100%;height:100%;touch-action:none}
#pip{position:fixed;right:max(env(safe-area-inset-right),clamp(12px,2.2vw,34px));top:max(env(safe-area-inset-top),clamp(12px,2.2vw,34px));width:clamp(132px,20vw,292px);aspect-ratio:4/3;overflow:hidden;border-radius:12px;background:#090909;box-shadow:0 0 0 1px #fff2}
#camera,#overlay{display:block;position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
#camera{object-fit:cover;transform:scaleX(-1)}
#retry{position:absolute;inset:0;display:grid;place-items:center;width:100%;height:100%;padding:0;border:0;background:#000b;color:#fff;cursor:pointer}
#retry[hidden]{display:none}
#retry:focus-visible{outline:2px solid #fff;outline-offset:-5px}
#retry svg{width:32px;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.4}
@media(max-width:580px){#pip{width:clamp(118px,34vw,178px);border-radius:9px}}
@media(max-height:430px){#pip{width:min(19vw,142px)}}

