/* See 4 Me — the background.
 * -----------------------------------------------------------------------
 * The artwork IS the landing page. One image per aspect-ratio bucket, chosen
 * by the shape of the screen, and it always FILLS the screen completely.
 *
 * THE MISTAKE THAT WAS HERE
 * These were "bleed" canvases: the artwork padded out to the bucket's extreme
 * ratio with black, on the theory that `cover` would crop only into that black
 * margin and never into the picture.
 *
 * That is backwards, and it is why the screen was not fully covered. The
 * padding makes the CANVAS fill the screen — but the artwork sits INSIDE that
 * canvas at its own, smaller ratio, so the padding is exactly what ends up on
 * show. The padding was added to hide black, and it created black.
 *
 * Measured on an iPhone 16 Pro (402x874) with the old 9:16 bleed canvas:
 *
 *     bleed-9x16.webp   1000x2381   the artwork 1000x1792 padded with
 *                                   294px of black at the top and 295px below
 *     on screen         154px of black — 95px top, 59px bottom,
 *                       17% of the screen showing padding instead of artwork
 *
 * The source artwork has NO black rows at all. Every black pixel on that screen
 * was added by the padding and then faithfully displayed.
 *
 * THE FIX: the artwork itself, with cover.
 * `cover` always fills the screen — that is what it means — and crops the
 * smallest amount needed to do it. On the 16 Pro that costs about 43px off each
 * side, which is nothing next to 17% of the screen being black bars.
 *
 * THE BUCKETS, keyed to each artwork's own ratio:
 *
 *   portrait   0.42 .. 0.5625   bg-9x16    tall phones          (art 0.558)
 *   3:4        0.5625 .. 1.00   bg-3x4     tablets, foldables   (art 0.746)
 *   square     1.00 .. 1.30     bg-1x1     square windows       (art 1.000)
 *   wide       1.30 .. 2.40     bg-16x9    landscape, desktop   (art 1.792)
 *
 * Each bucket covers screens on BOTH sides of its artwork's ratio, so every one
 * of them crops rather than pads, and none of them can reveal a bar.
 *
 * ADDING A RATIO: drop the image in and add one more block. The
 * background-position line tells the browser which part to keep if a screen is
 * off-centre — `50% 28%` keeps more of the face than the default, because the
 * eyes are in the upper half of every one of these images.
 */

#bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  /* Never swallow the tap that starts Anna. Purely decorative. */
  pointer-events: none;
  background-color: #000;
  background-repeat: no-repeat;
  background-position: 50% 28%;
  /* COVER — safe precisely because these files ARE the artwork, with no
     padding for it to reveal. */
  background-size: cover;
  transition: background-image 240ms ease-in-out;
}

/* Portrait phones — the common case. */
@media (max-aspect-ratio: 5625/10000) {
  #bg { background-image: url('/backgroundImages/bg-9x16.webp'); }
}

/* 3:4 — portrait tablets and foldables. Exactly the iPad ratio, so those screens
   get their own artwork instead of a stretched square. */
@media (min-aspect-ratio: 5625/10000) and (max-aspect-ratio: 1/1) {
  #bg { background-image: url('/backgroundImages/bg-3x4.webp'); }
}

/* Square-ish: small landscape windows. */
@media (min-aspect-ratio: 1/1) and (max-aspect-ratio: 13/10) {
  #bg { background-image: url('/backgroundImages/bg-1x1.webp'); }
}

/* Wide: landscape phones turned sideways, desktop, ultrawide. */
@media (min-aspect-ratio: 13/10) {
  #bg { background-image: url('/backgroundImages/bg-16x9.webp'); }
}

/*
  NO SCRIM. There was one here — a dark radial wash to keep the landing text
  legible over the artwork — and it should never have survived: the landing
  text is now visually hidden because the user is blind and cannot read it.
  A dimming layer over the only image in the app made it look like a washed-out
  overlay rather than the artwork it is. Nothing is drawn over it now, and there
  is no opacity anywhere in this file.
*/
