:root {
  --desktop-stage-w: 1000;
  --desktop-stage-h: 1100;
  --mobile-stage-w: 600;
  --mobile-stage-h: 950;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #171717;
}

body {
  min-width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
}

img {
  display: block;
  max-width: none;
  user-select: none;
  -webkit-user-drag: none;
}

a {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.site,
.desktop-layout,
.mobile-layout {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.desktop-layout,
.mobile-layout {
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

/* =====================================================
   DESKTOP
   ===================================================== */

.desktop-layout {
  display: block;
  background-image: url("assets/bg-desktop.jpg");
}

.desktop-stage {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1000px;
  height: 1100px;
  transform: translate(-50%, -50%) scale(var(--fit-scale, 1));
  transform-origin: center center;
}

.desktop-nav {
  position: absolute;
  left: 240px;
  top: 15px;
  width: 520px;
  height: 105px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 42px;
}

.desktop-nav a {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 140ms ease, opacity 140ms ease;
}

.desktop-nav a:hover,
.desktop-preorder:hover {
  transform: scale(1.035);
}

.desktop-nav a:active,
.desktop-preorder:active {
  transform: scale(0.985);
}

.desktop-nav img {
  width: auto;
  height: 88px;
  object-fit: contain;
  filter: brightness(1.1);
}

.desktop-main {
  position: absolute;
  left: 100px;
  top: 140px;
  width: 800px;
  height: 820px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.desktop-main img {
  width: 800px;
  height: 820px;
  object-fit: contain;
}

.desktop-preorder {
  position: absolute;
  left: 325px;
  top: 970px;
  width: 350px;
  height: 106px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 140ms ease, opacity 140ms ease;
}

.desktop-preorder img {
  width: 350px;
  height: auto;
}

/* =====================================================
   MOBILE
   ===================================================== */

.mobile-layout {
  display: none;
  background-image: url("assets/bg-mobile.jpg");
}

.mobile-stage {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 600px;
  height: 950px;
  transform: translate(-50%, -50%) scale(var(--fit-scale, 1));
  transform-origin: center center;
}

.mobile-nav {
  position: absolute;
  left: 38px;
  top: 0;
  width: 524px;
  height: 105px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.mobile-nav a {
  flex: 1 1 0;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-nav img {
  width: auto;
  height: 92px;
  object-fit: contain;
  filter: brightness(1.1);
}

.mobile-main {
  position: absolute;
  left: 0;
  top: 145px;
  width: 600px;
  height: 770px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-main img {
  width: 600px;
  height: 770px;
  object-fit: contain;
}

/* Mobile layout is used for phone-sized viewports and narrow portrait windows. */
@media (max-width: 767px) {
  .desktop-layout {
    display: none;
  }

  .mobile-layout {
    display: block;
  }
}

/* Extra-short desktop/laptop windows keep the same composition, scaled down as one unit. */
@media (min-width: 768px) and (max-height: 620px) {
  .desktop-nav a,
  .desktop-preorder {
    transition: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .desktop-nav a,
  .desktop-preorder {
    transition: none;
  }
}
