/* The moving device belongs to our page, and crosses its photograph's frame. */
.portal-stage{perspective:1300px;padding-bottom:12px}
.portal-photo{overflow:hidden;z-index:0}
.portal-photo img{transition:transform .85s cubic-bezier(.2,.7,.2,1),filter .85s ease}
.portal-photo-caption{bottom:38px}
.portal-device{position:relative;z-index:3;width:94%;margin:-13px -13px 0 auto;border-radius:24px;background:linear-gradient(125deg,#72928e 0%,#172c32 12%,#050c11 55%,#648482 100%);padding:13px 18px 13px 13px;border:1px solid #9ab7af;box-shadow:12px 30px 45px #0008,0 2px 2px #fff4 inset;transform:rotateX(12deg) rotateY(-10deg) rotateZ(3deg);transform-origin:50% 20%;transition:transform .9s cubic-bezier(.18,.8,.15,1),box-shadow .9s ease}
.portal-device .portal-receipt{width:100%;margin:0;padding:22px;border-radius:13px;transform:none;animation:none;border:1px solid #dae9df;box-shadow:none;min-height:170px;background:linear-gradient(140deg,#fffef8,#edf6ee)}
.device-camera{position:absolute;right:5px;top:49%;width:5px;height:5px;border:1px solid #91a8ab;background:#071119;border-radius:50%}
.connection-control{position:relative;z-index:4;display:flex;align-items:center;flex-wrap:wrap;gap:8px 13px;margin:20px 0 0 35px}
.connection-control button{font:650 13px/1.2 system-ui,sans-serif;background:#102b34;color:#c2f1df;border:1px solid #5a928a;border-radius:30px;padding:12px 17px;min-height:44px;cursor:pointer;box-shadow:0 3px 14px #0003}
.connection-control button:hover{background:#21454b;border-color:#bcf2da}
.connection-control button:focus-visible{outline:3px solid #ffb568;outline-offset:4px}
.connection-hint{font-size:11px;color:#c5d8d6}
.portal-stage .portal-guide-cast{margin-left:35px;margin-top:18px}
.connection-ribbon{position:absolute;inset:0 0 30px 0;pointer-events:none;z-index:2;overflow:visible}
.connection-ribbon svg{width:100%;height:100%;overflow:visible;filter:drop-shadow(0 0 5px #79ecc8)}
.connection-ribbon path{fill:none;stroke:#a3efd6;stroke-width:2;stroke-linecap:round;stroke-dasharray:800;stroke-dashoffset:800}
.connection-ribbon circle{fill:#10292c;stroke:#c4fce5;stroke-width:2;opacity:0}
.portal-stage.is-connected .portal-device{transform:translate(-8px,-18px) rotateX(0) rotateY(-3deg) rotateZ(-1deg);box-shadow:16px 42px 55px #0009,0 2px 2px #fff5 inset}
.portal-stage.is-connected .portal-photo img{transform:scale(1.035);filter:saturate(.9)}
.portal-stage.is-connected .connection-ribbon path{animation:screen-connect 1s ease-out both}
.portal-stage.is-connected .connection-ribbon circle{animation:terminal-light 1.1s ease-out both}
.portal-stage.is-connected #stock-answer{animation:stock-focus 1.2s ease-out both}
@keyframes screen-connect{from{stroke-dashoffset:800;opacity:.2}70%{opacity:1}to{stroke-dashoffset:0;opacity:.6}}
@keyframes terminal-light{0%,15%{opacity:0}45%,100%{opacity:1}}
@keyframes stock-focus{0%,35%{background:transparent;box-shadow:none}60%{background:#ffe3a4;box-shadow:0 0 0 8px #ffe3a4}100%{background:transparent;box-shadow:none}}
@media(max-width:600px){.portal-device{width:98%;margin-top:-10px;margin-right:-7px;padding:9px 14px 9px 9px;border-radius:18px;transform:rotateX(8deg) rotateY(-7deg) rotateZ(2deg)}.portal-device .portal-receipt{padding:17px;min-height:160px}.connection-control{margin:17px 0 0 0;gap:6px}.connection-hint{font-size:10px}.portal-stage .portal-guide-cast{margin-left:0}.portal-stage.is-connected .portal-device{transform:translate(-2px,-12px) rotateX(0) rotateY(0) rotateZ(-1deg)}}
@media(prefers-reduced-motion:reduce){.portal-device,.portal-photo img{transition:none;transform:none!important}.connection-ribbon{display:none}.portal-stage.is-connected #stock-answer{animation:none;text-decoration:underline;text-decoration-thickness:2px}.portal-stage.is-connected .portal-device{box-shadow:0 0 0 2px #a3efd6,0 15px 25px #0006}}
