/* Coque iPhone : châssis, écran, status bar, dynamic island, scroller, indicateur. */
*{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%;background:transparent}
body{font-family:GT,'Helvetica Neue',Arial,sans-serif;color:#101010;-webkit-font-smoothing:antialiased;display:flex;align-items:center;justify-content:center;overflow:hidden}
b{font-weight:600}
button{font-family:inherit;cursor:pointer}
#screen{width:393px;margin:0 auto;background:#fff;position:relative}
#fit{position:relative;width:calc(var(--sw) + var(--bezel)*2);height:calc(var(--sh) + var(--bezel)*2);transform-origin:center center;flex:none}
.phone{position:absolute;inset:0;background:#0d0d0f;border-radius:62px;box-shadow:0 0 0 2px #2a2a2e inset,0 0 0 1px #3a3a40}
.btn{position:absolute;width:4px;background:#1b1b1f;border-radius:2px}
.btn.l1{left:-3px;top:120px;height:30px}
.btn.l2{left:-3px;top:178px;height:56px}
.btn.l3{left:-3px;top:246px;height:56px}
.btn.r1{right:-3px;top:200px;height:90px}
.screen{position:absolute;left:var(--bezel);top:var(--bezel);width:var(--sw);height:var(--sh);border-radius:50px;overflow:hidden;background:#fff;isolation:isolate}
#scroller{position:absolute;inset:0;overflow-y:auto;overflow-x:hidden;scrollbar-width:none;cursor:grab;touch-action:pan-y}
#scroller::-webkit-scrollbar{display:none}
#scroller.drag{cursor:grabbing}
#scroller .pad{height:77px}
.bar{position:absolute;left:0;width:100%;pointer-events:none;z-index:3}
.bar img{display:block;width:100%;height:auto}
.bar.status{top:0}
.bar.tabbar2{bottom:0}
.island{position:absolute;z-index:4;top:11px;left:50%;transform:translateX(-50%);width:124px;height:36px;border-radius:20px;background:#000;pointer-events:none}
/* Indicateur d'accueil : barre absolue sur l'écran, ou bloc réservant sa hauteur. */
.hi{position:absolute;bottom:8px;left:127px;width:139px;height:5px;border-radius:100px;background:#000}
.hind{height:21px;flex:none;position:relative;background:#fff}
.hind::after{content:"";position:absolute;left:127px;bottom:8px;width:139px;height:5px;border-radius:100px;background:#000}
.hind.inset{margin:8px -16px 0;background:none;flex:0 1 auto}
/* Scrim et feuille : la couche basse commune aux protos. */
#scrim{position:absolute;inset:0;background:rgba(16,16,16,.45);opacity:0;pointer-events:none;transition:opacity .3s;z-index:5}
#sheet{position:absolute;left:0;right:0;bottom:0;height:748px;background:#fff;border-radius:8px 8px 0 0;z-index:6;transform:translateY(100%);transition:transform .38s cubic-bezier(.2,.8,.2,1);display:flex;flex-direction:column;overflow:hidden}
.open #scrim{opacity:1;pointer-events:auto}
.open #sheet{transform:none}
/* Toast : le z-index est posé par chaque proto, qui a ses propres couches. */
#toast{position:absolute;left:24px;right:24px;top:64px;background:#101010;color:#fff;border-radius:8px;padding:14px 16px;font-size:14px;line-height:20px;text-align:center;opacity:0;transform:translateY(-12px);transition:all .3s;pointer-events:none}
#toast.on{opacity:1;transform:none}
