/* A phone frame, deliberately generic. Apple's marketing guidelines don't allow drawing an iPhone,
   and a generic device can't carry details unique to Apple's: no sensor housing, side buttons,
   status bar or home indicator here. The same look as /scorington/'s .phone.
   Used by / and /scorington/. Each page sets the frame's width and the toggle's colors:
   --demo-shadow, --demo-font, --demo-ink, --demo-hover. */
.device { width: clamp(236px, 26vw, 300px); padding: 8px; border-radius: 16% / 7.4%; background: #05090b;
  box-shadow: inset 0 0 0 1.5px #24323a,
              var(--demo-shadow, 0 30px 50px -18px rgb(20 33 61 / .35), 0 12px 20px -10px rgb(20 33 61 / .25)); }
.device .screen { border-radius: 13.8% / 6.4%; overflow: hidden; background: #041119; }
/* Rounded itself too, because Safari hasn't always clipped a playing video to its parent's corners. */
.device video { display: block; width: 100%; height: auto; border-radius: inherit; }

.vid-toggle { display: inline-flex; align-items: center; gap: 8px; font: 600 .875rem var(--demo-font, system-ui, sans-serif); color: var(--demo-ink, currentColor);
  background: none; border: 0; padding: 8px 10px; cursor: pointer; }
.vid-toggle:hover { color: var(--demo-hover, currentColor); }
.vid-toggle svg { width: 12px; height: 12px; }
.vid-toggle[hidden] { display: none; }
