/* Monophone web simulator: an iPhone 17 (436 x 908 pt body, 402 x 874 pt screen, 17 pt bezel) running
   the real app's frames. Percentages are relative to the 1206 x 2622 px screen or the 436 x 908 pt body. */
@font-face { font-family: "Jersey10Sim"; src: url("Jersey10-Regular.ttf") format("truetype"); font-display: block; }

.sim { width: 100%; max-width: 340px; margin: 0 auto; }
.sim-device {
  position: relative; width: 100%; aspect-ratio: 436 / 908; container-type: inline-size;
  border-radius: 18.35% / 8.81%;
  /* Aluminum band */
  background: linear-gradient(150deg, #e3e5e8 0%, #a7abb1 18%, #6f747b 42%, #b9bdc2 63%, #7c8187 82%, #d4d7db 100%);
  box-shadow: 0 2.2cqw 7cqw rgba(0, 0, 0, .55), 0 .6cqw 1.6cqw rgba(0, 0, 0, .35), inset 0 0 0 .25cqw rgba(255, 255, 255, .25);
}
/* Black glass border inside the band */
.sim-device::before {
  content: ""; position: absolute; inset: 0.66% 1.43%;
  border-radius: 17.2% / 8.2%; background: #0b0c0e;
  box-shadow: inset 0 0 0 .2cqw #000, inset 0 0 1.2cqw rgba(255, 255, 255, .06);
}
.sim-btn { position: absolute; width: 1.1%; border-radius: .6cqw; background: linear-gradient(90deg, #6f747b, #c9ccd1 55%, #8a8f95); }
.sim-btn.l { left: -0.75%; } .sim-btn.r { right: -0.75%; }
.sim-action { top: 17.62%; height: 3.74%; }
.sim-volup { top: 24.34%; height: 7.05%; }
.sim-voldown { top: 33.04%; height: 7.05%; }
.sim-power { top: 28.85%; height: 11.12%; }

.sim-screen {
  position: absolute; left: 3.899%; top: 1.872%; width: 92.202%; height: 96.256%; overflow: hidden; background: #000;
  -webkit-mask: url("screen-mask.png") center / 100% 100% no-repeat; mask: url("screen-mask.png") center / 100% 100% no-repeat;
  touch-action: manipulation; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent;
}
.sim-housing { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.sim-lcd {
  position: absolute; left: 5.7214%; top: 13.6918%; width: 88.5572%; height: 32.0366%;
  /* Hidden until the first frame is drawn, then shown at once (a fade would let the housing photo's
     own LCD show through). */
  visibility: hidden; pointer-events: none;
  /* Panel edge from the real bezel (fitted by scripts/sim-masks.py): clip, then an inner shadow. */
  -webkit-mask: url("lcd-clip.png") center / 100% 100% no-repeat; mask: url("lcd-clip.png") center / 100% 100% no-repeat;
}
.sim-lcd-shadow {
  position: absolute; left: 5.7214%; top: 13.6918%; width: 88.5572%; height: 32.0366%; background: #000; pointer-events: none;
  -webkit-mask: url("lcd-shadow.png") center / 100% 100% no-repeat; mask: url("lcd-shadow.png") center / 100% 100% no-repeat;
}
.sim-ready .sim-lcd { visibility: visible; }
.sim-engrave { position: absolute; left: 0; top: 8.8482%; width: 100%; height: 2.746%; pointer-events: none; }
.sim-engrave[hidden] { display: none; }
.sim-island { position: absolute; left: 34.453%; top: 1.259%; width: 31.095%; height: 4.233%; border-radius: 999px; background: #000; pointer-events: none; }

.sim-keys { position: absolute; inset: 0; }
.sim-key {
  position: absolute; padding: 0; margin: 0; border: 0; background: transparent; border-radius: 50%; cursor: pointer;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.sim-key.down { background: rgba(0, 0, 0, .07); box-shadow: inset 0 .9cqw 2cqw rgba(0, 0, 0, .42), inset 0 -.3cqw .8cqw rgba(255, 255, 255, .12); }
.sim-key:focus-visible { outline: .6cqw solid #9CC8F2; outline-offset: .4cqw; }
.sim-static .sim-keys { display: none; }

/* "Get the app" sheet, inside the phone */
.sim-sheet {
  position: absolute; left: 4%; right: 4%; bottom: 3.2%; padding: 4.5cqw 4.5cqw 4cqw; border-radius: 6cqw;
  background: rgba(20, 30, 40, .92); color: #E8EBE5; font: 3.9cqw/1.35 system-ui, -apple-system, sans-serif;
  box-shadow: 0 2cqw 6cqw rgba(0, 0, 0, .5); transform: translateY(12%); opacity: 0; transition: transform .2s, opacity .2s;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.sim-sheet.open { transform: none; opacity: 1; }
.sim-sheet[hidden] { display: none; }
.sim-sheet-msg { margin: 0 8cqw 3.2cqw 0; }
.sim-sheet-row { display: flex; gap: 2.4cqw; }
.sim-sheet a, .sim-sheet button.sim-sheet-share {
  flex: 1; text-align: center; text-decoration: none; border: 0; border-radius: 3.4cqw; padding: 3cqw 2cqw;
  font: 700 3.8cqw system-ui, -apple-system, sans-serif; cursor: pointer;
}
.sim-sheet a { background: #7FC398; color: #10281A; }
.sim-sheet button.sim-sheet-share { background: #E2E5DF; color: #1B2936; }
.sim-sheet-close {
  position: absolute; top: 2.6cqw; right: 3cqw; width: 7cqw; height: 7cqw; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .12); color: #E8EBE5; font: 4.6cqw/1 system-ui, sans-serif; cursor: pointer;
}
.sim-hint { text-align: center; color: #BCC6CE; font-size: 14px; margin: 14px 0 0; }
.sim-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
