/* =====================================================================
   TAP24 — Coming Soon
   ---------------------------------------------------------------------
   Component: .coming-soon   (markup lives in index.html)
   One full-screen background image and nothing else. The artwork already
   contains the logo and the "COMING SOON" line, so it is never cropped by
   distortion, recoloured or covered with content.

   Framing is derived from the real artwork (1672 x 941, ratio 1.7768):
     · logo + "COMING SOON"  ->  x 20.0% .. 79.9%   y 34.6% .. 71.5%
     · corner neon diagonals ->  only the four outer corners
     · every edge pixel      ->  pure black (#000000), so a letterboxed
                                 screen blends in invisibly.
   ===================================================================== */

:root {
  /* Same pure black as the artwork's edges: anything not covered by the
     image blends in seamlessly on portrait screens. */
  --cs-bg: #000000;

  /* Optional readability overlay. Default is fully transparent, i.e. the
     photograph is shown exactly as delivered (no colour change at all).
     If the artwork one day carries text of its own that needs a touch more
     contrast, set this to e.g. rgba(0, 0, 0, 0.10). */
  --cs-overlay: transparent;

  --cs-image: url("public/assets/images/tap24-coming-soon.png");
}

*,
*::before,
*::after { box-sizing: border-box; }

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  background-color: var(--cs-bg);
  /* The page is a single full-screen visual: no scrolling of any kind. */
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-text-size-adjust: 100%;
}

/* =====================================================================
   ComingSoon component
   ===================================================================== */

.coming-soon {
  position: relative;
  display: block;
  width: 100%;
  /* Full screen, exactly 100vh — dvh keeps mobile browser chrome honest. */
  height: 100vh;                    /* fallback for older browsers    */
  height: 100dvh;                   /* dynamic viewport height        */

  background-color: var(--cs-bg);
  background-image: var(--cs-image);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;           /* desktop / landscape: 100% fill */
  background-attachment: scroll;    /* more reliable than fixed       */
}

/* Overlay layer (no-op while --cs-overlay stays transparent). */
.coming-soon::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--cs-overlay);
  pointer-events: none;
}

/* Accessible label for the visual — never rendered on screen. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* =====================================================================
   Responsive
   ===================================================================== */

/* Desktop and every landscape screen.
   The viewport is wider than the artwork, so `cover` fills it edge to edge
   and the centre crop keeps the logo and "COMING SOON" fully inside the
   frame (at 16:10 it only trims ~5% of each side). */
@media (orientation: landscape) {
  .coming-soon {
    background-size: cover;
    background-position: center center;
  }
}

/* Near-square screens (e.g. 800x800, 900x850).
   `cover` would clip the outer glow of the logo here, so the artwork is
   sized by aspect ratio instead: no distortion, full composition. */
@media (orientation: landscape) and (max-aspect-ratio: 11/10) {
  .coming-soon {
    background-size: 150% auto;
  }
}

/* Tablet and phone portrait — the important mobile case.
   `cover` on a 390x844 phone would blow the artwork up to a 1499px-wide
   image and show only the middle 26%: "TAP" and "24" would be cut off.
   Instead the artwork keeps its aspect ratio (`auto` height = never
   distorted, never stretched) and is scaled to 150% of the viewport width.
   That leaves ~5% of clear black on each side — the whole logo plus
   "COMING SOON" stays visible with breathing room — and the screen above
   and below is the artwork's own black, so it reads as one full page. */
@media (orientation: portrait) {
  .coming-soon {
    background-size: 150% auto;
    background-position: center center;
  }
}

/* Rotated phones (e.g. 844x390): `cover` renders a 844x475 image, so the
   logo group still sits fully inside the visible band — nothing to change,
   the landscape rule above already covers it. */

@media (prefers-reduced-motion: reduce) {
  .coming-soon { background-attachment: scroll; }
}
