.demo-phone{width:100%;max-width:304px;margin-inline:auto;border:5px solid #fff;border-radius:24px;overflow:hidden;box-shadow:0 18px 45px -25px #335c9366,0 0 0 1px #d7e1ef;background:#f3f5f8}
.demo-stage{position:relative;aspect-ratio:9/20}
.demo-screen{display:block;width:100%;height:100%;object-fit:contain}
.demo-screen[hidden],.demo-hotspots[hidden],.demo-controls[hidden]{display:none}
.demo-hotspots{position:absolute;left:0;right:0;top:89.5%;height:7.875%;display:grid;grid-template-columns:repeat(4,1fr)}
.demo-hotspots button{position:relative;cursor:pointer;border:0;border-radius:8px;background:transparent;padding:0;min-width:0}
.demo-hotspots button:hover{background:#315fa815}
.demo-hotspots button:focus-visible{outline:2px solid #315fa8;outline-offset:-2px;background:#315fa818}
.demo-hotspots button::after{content:"";position:absolute;left:50%;top:32%;width:26px;height:26px;border-radius:50%;background:#315fa855;border:2px solid #315fa8;opacity:0;transform:translate(-50%,-50%);pointer-events:none}
.demo-hotspots .is-tapping::after{animation:demo-tap 650ms ease-out both}
@keyframes demo-tap{0%{opacity:0;transform:translate(-50%,-50%) scale(1.5)}25%{opacity:1;transform:translate(-50%,-50%) scale(.7)}65%{opacity:.9;transform:translate(-50%,-50%) scale(1)}100%{opacity:0;transform:translate(-50%,-50%) scale(1.45)}}
.demo-controls{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:4px 12px;margin-top:16px;font-size:11px;color:#596574;min-height:44px}
.demo-controls button{font:inherit;font-weight:600;color:#315fa8;border:1px solid #b7c9e1;border-radius:8px;padding:8px 12px;min-height:44px;background:white;cursor:pointer}
.demo-controls button:focus-visible{outline:3px solid #315fa8;outline-offset:3px}
#app-demo figcaption{font-size:10px;max-width:340px;margin-inline:auto}
#demo-enlarge{display:inline-flex;align-items:center;min-height:44px;text-decoration:underline;color:#315fa8}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
@media(prefers-reduced-motion:reduce){.demo-hotspots .is-tapping::after{animation:none}}
