/* Realistic Android phone frame for app screenshots.
   Markup: <div class="phone"><div class="screen"><div class="sb"><span>10:33</span></div><img ...></div></div>
   Size it by setting font-size on .phone (16px = 300px wide). */
.phone{
  position:relative;width:18.75em;aspect-ratio:9/19.3;flex:none;
  padding:.6em;border-radius:2.9em;
  background:linear-gradient(150deg,#4a505c 0%,#1b1e25 18%,#0f1116 50%,#23272f 82%,#4a505c 100%);
  box-shadow:
    inset 0 0 0 .09em #6b7280,
    inset 0 0 0 .22em #0b0c10,
    0 2.2em 3.6em rgba(0,0,0,.55),
    0 .6em 1.2em rgba(0,0,0,.35);
}
/* power key and volume rocker */
.phone::before,.phone::after{content:"";position:absolute;right:-.2em;width:.22em;border-radius:0 .2em .2em 0;
  background:linear-gradient(90deg,#1c1f26,#5d636e 60%,#2a2e36)}
.phone::before{top:22%;height:8%}
.phone::after{top:33%;height:15%}
.phone .screen{position:relative;height:100%;border-radius:2.35em;overflow:hidden;background:#0b1020;
  box-shadow:0 0 0 .14em #000}
/* punch-hole camera */
.phone .screen::before{content:"";position:absolute;z-index:3;top:.62em;left:50%;width:.82em;height:.82em;margin-left:-.41em;border-radius:50%;
  background:radial-gradient(circle at 35% 35%,#2b3550 0 18%,#05060a 30%);box-shadow:0 0 0 .12em #111522}
/* glass reflection */
.phone .screen::after{content:"";position:absolute;inset:0;z-index:4;pointer-events:none;border-radius:inherit;
  background:linear-gradient(118deg,rgba(255,255,255,.10) 0%,rgba(255,255,255,.03) 28%,rgba(255,255,255,0) 42%)}
/* status bar */
.phone .sb{position:relative;z-index:2;height:2.05em;display:flex;align-items:center;justify-content:space-between;
  padding:0 1.5em 0 1.6em;color:#f4f6fb;font:600 .78em/1 Inter,"Space Grotesk",system-ui,sans-serif;letter-spacing:.02em}
.phone .sb::after{content:"";width:4.6em;height:1em;background:no-repeat right center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 14' fill='%23f4f6fb'%3E%3Cpath d='M2 11h2v2H2zM6 8h2v5H6zM10 5h2v8h-2zM14 2h2v11h-2z'/%3E%3Cpath d='M29 13l-7.5-8.2a11 11 0 0 1 15 0z'/%3E%3Crect x='42' y='3' width='14' height='9' rx='2' fill='none' stroke='%23f4f6fb' stroke-width='1.4'/%3E%3Crect x='44' y='5' width='9' height='5' rx='1'/%3E%3Crect x='57' y='6' width='1.6' height='3' rx='.6'/%3E%3C/svg%3E")}
.phone .screen img{display:block;width:100%;height:auto}
