:root {
  color-scheme: dark;
  background: #000;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-width: 100%;
  height: 100%;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  background: #000;
}

body {
  text-transform: uppercase;
  overscroll-behavior: none;
  -webkit-tap-highlight-color: transparent;
}

.viewport {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #000;
}

/*
  Native artboard: 1280 × 800.
  Keep the stage at native size whenever the viewport is large enough.
  Never upscale above 1280 × 800; only shrink proportionally on smaller screens.
  The surrounding fullscreen/app viewport remains solid black.
*/
.stage {
  position: relative;
  width: min(1280px, 100vw, 160vh);
  height: min(800px, 100vh, 62.5vw);
  aspect-ratio: 8 / 5;
  flex: none;
  overflow: hidden;
  background: #000;
  user-select: none;
  -webkit-user-select: none;
}

.full-page-art {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

/*
  Exact native coordinates within the supplied 1280 × 800 landing artwork:
    BERTHAS: x 288, y 224, w 320, h 416
    BANGERS: x 672, y 224, w 320, h 416
*/
.rollover {
  position: absolute;
  top: 28%;           /* 224 / 800 */
  width: 25%;         /* 320 / 1280 */
  height: 52%;        /* 416 / 800 */
  display: block;
  overflow: hidden;
  border: 0;
  outline: none;
  background: transparent;
  text-decoration: none;
  cursor: default;
  touch-action: manipulation;
}

.rollover--berthas {
  left: 22.5%;        /* 288 / 1280 */
}

.rollover--bangers {
  left: 52.5%;        /* 672 / 1280 */
  cursor: pointer;
}

.rollover__image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.rollover:hover .rollover__image,
.rollover:focus-visible .rollover__image,
.rollover.is-active .rollover__image {
  opacity: 1;
}

.rollover--bangers:focus-visible {
  outline: 3px solid #fff;
  outline-offset: -3px;
}

@media (prefers-reduced-motion: reduce) {
  .rollover__image {
    animation: none;
  }
}

/* The entire WE ARE CLOSED artwork returns to the landing page. */
.closed-link {
  display: block;
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

.closed-link:focus-visible {
  outline: 3px solid #fff;
  outline-offset: -3px;
}


/*
  BANGERS click transition.
  The static frame enlarges around the exact centre of the two black nose
  pixels: native x 160, y 205 within the 320 × 416 rollover artwork.
*/
.zoom-transition {
  position: fixed;
  inset: 0;
  z-index: 9999;
  overflow: hidden;
  visibility: hidden;
  pointer-events: none;
  background: transparent;
}

.zoom-transition.is-active {
  visibility: visible;
}

.zoom-transition.is-black {
  background: #000;
}

.zoom-transition__image {
  position: absolute;
  display: block;
  max-width: none;
  transform: scale(1);
  transform-origin: 50% 49.278846%; /* 160/320, 205/416 */
  will-change: transform;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

body.is-transitioning,
body.is-transitioning * {
  cursor: default !important;
}
