/* ------------------------------------------------
   Mobile alternate composition
   ------------------------------------------------ */

body[data-mobile] [data-mobile-hide] {
  display: none !important;
}

body[data-mobile] .scene {
  --scene-width: 1900px;
  --window-width: 54%;
  --window-height: 30%;
  --window-top: 11%;
  --desk-baseline: 31%;
  --left-cluster-left: 24%;
  --right-cluster-right: 24%;
  transition: none;
}

body[data-mobile] .asset--desk-desktop {
  display: none;
}

body[data-mobile] .asset--desk-mobile {
  display: block;
  width: 75%;
  left: 50%;
  bottom: -10%;
  transform: translateX(-50%);
}

body[data-mobile] .window-hotspot {
  width: 40%;
  top: 20%;

  /* Debugging */
  /* outline: 3px solid blue; */
}

body[data-mobile] .asset--eigen-wordmark {
  top: 9%;
  left: 50%;
  width: 24%;
  transform: translateX(-50%);
}

body[data-mobile] .window-aperture {
  left: 0;
  width: 100%;
  height: 110%;
}

body[data-mobile] .monitor-hotspot {
  left: 19%;
  bottom: 40.5%;
  width: 26%;
  height: 18%;
}

body[data-mobile] .crt-screen {
  display: none !important;
}

body[data-mobile] .asset--crt-mobile-poster {
  display: block;
  position: absolute;
  left: 33%;
  bottom: 35.5%;
  width: 59%;
  border-radius: 8px;
  pointer-events: none;
  mix-blend-mode: plus-lighter;
}

body[data-mobile] .typewriter-hotspot {
  right: 17%;
  bottom: 39.5%;
  width: 25%;
  height: 17%;
}

body[data-mobile] .typewriter {
  --typewriter-carriage-group-top: 40%;
  --typewriter-carriage-group-left: 15%;
  --typewriter-carriage-group-width: 102%;
  --typewriter-carriage-group-height: 100%;
  --typewriter-carriage-top: 1.5%;
  --typewriter-carriage-left: -10%;
  --typewriter-carriage-width: 75%;
  --typewriter-base-right: 0;
  --typewriter-base-bottom: 10%;
  --typewriter-base-width: 100%;
  --typewriter-keyboard-left: 14.3%;
  --typewriter-keyboard-width: 65%;
  --typewriter-keyboard-bottom: 19%;
  --typewriter-key-gap: 1.5%;
  --typewriter-row-overlap: -7%;
  --typewriter-spacebar-left: 22%;
  --typewriter-spacebar-bottom: 17%;
  --typewriter-spacebar-width: 54%;
  --typewriter-front-bottom: 12%;
  --typewriter-letter-right: 45%;
  --typewriter-letter-width: 44%;
  --typewriter-letter-bottom: 50%;
}

body[data-mobile] .scene {
  --dinosaur-left: 15%;
  --dinosaur-bottom: 26.5%;
  --dinosaur-width: 30%;
  --dinosaur-shadow-offset-x: 1.3%;
  --dinosaur-shadow-offset-y: -0.7%;
  --dinosaur-shadow-scale: 0.7;
}

body[data-mobile] .asset--dino-gif {
  display: block;
}

body[data-mobile] .asset--dinosaur,
body[data-mobile] .asset--dino-gif,
body[data-mobile] .asset--bearbrick,
body[data-mobile] .asset--bearbrick-gif {
  pointer-events: none;
}

body[data-mobile] .scene {
  --bearbrick-left: 30%;
  --bearbrick-bottom: 28%;
  --bearbrick-width: 23%;
  --bearbrick-shadow-offset-x: 9%;
  --bearbrick-shadow-offset-y: -0.8%;
  --bearbrick-shadow-scale: 0.4;
}

body[data-mobile] .dinosaur-hotspot {
  bottom: 27%;
  width: 10%;
  left: 25%;
  height: 10%;
}

body[data-mobile] .bearbrick-hotspot {
  bottom: 27%;
  width: 10%;
  left: 37%;
  height: 12%;
}

body[data-mobile] .asset--books {
  display: none !important;
}

body[data-mobile] .asset--mobile-books-left,
body[data-mobile] .asset--mobile-books-right,
body[data-mobile] .asset--mobile-books-bottom,
body[data-mobile] .asset--mobile-books-momo {
  display: block;
}

body[data-mobile] .asset--mobile-books-momo {
  right: 22%;
  bottom: 28%;
  width: 15%;
  left: auto;
  transform: none;
  z-index: 1;
}

body[data-mobile] .asset--mobile-books-left {
  left: 16%;
  bottom: 14%;
  width: 20%;
  right: auto;
  transform: none;
}

body[data-mobile] .asset--mobile-books-right {
  right: 16%;
  bottom: 14%;
  width: 20%;
  left: auto;
  transform: none;
}

body[data-mobile] .asset--mobile-books-bottom {
  left: 50%;
  bottom: -3%;
  width: 75%;
  transform: translateX(-50%);
}


body[data-mobile] .asset--wooden-toy {
  left: auto;
  right: 25%;
  bottom: 31.2%;
  top: auto;
  width: 8%;
  transform: none;
  z-index: 2;
}

body[data-mobile] .asset--bowling-pin-white-shadow {
  top: auto;
  right: auto;
  bottom: 27.8%;
  left: 49.5%;
  width: 4%;
}

body[data-mobile] .asset--bowling-pin-white {
  top: auto;
  right: auto;
  bottom: 28%;
  left: 51%;
  width: 4.3%;
}

body[data-mobile] .asset--bowling-pin-red-shadow {
  top: auto;
  right: auto;
  bottom: 27.5%;
  left: 53%;
  width: 5%;
}

body[data-mobile] .asset--bowling-pin-red {
  top: auto;
  right: auto;
  bottom: 28%;
  left: 55%;
  width: 4%;
}

body[data-mobile] .asset--desk-shadow {
  bottom: 34.5%;
  width: 108%;
  left: -4%;
}

body[data-mobile] .asset--skyline {
  display: none !important;
}

body[data-mobile] .cloud-track {
  display: none;
}

body[data-mobile] .asset--window-frame-front {
  display: none !important;
}

body[data-mobile] .asset--window-frame {
  top: 0%;
  transition: none;
  opacity: 1;
}

body[data-mobile] .careers-button--window {
  display: none;
}

body[data-mobile] .careers-button--mobile {
  display: block;
  top: auto;
  right: auto;
  bottom: 16%;
  left: 50%;
  width: 22%;
  transform: translateX(-50%);
  z-index: 3;
}

body[data-mobile] .asset--mobile-top-shadow {
  display: block;
  top: 5%;
  left: 0;
  width: 100%;
}

body[data-mobile] .mobile-top-block {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5%;
  background: #000;
}

body[data-mobile] .overlay__close {
  top: 1rem;
  right: 1rem;
  font-size: 2rem;
}

body[data-mobile] .overlay__close--letter {
  display: block;
  top: 0.75rem;
  right: 0.75rem;
  width: auto;
  height: auto;
  background: transparent;
  color: #111;
  opacity: 1;
  z-index: 2;
  line-height: 1;
}

body[data-mobile] .overlay:has(.overlay__content--letter).is-active {
  background: #f5f0e8;
}

body[data-mobile] .overlay__content--letter {
  width: 100%;
  max-width: none;
  max-height: none;
  height: 100%;
  margin: 0;
}

body[data-mobile] .letter-paper {
  padding: 3.5rem 1.25rem 2rem;
  font-size: 18px;
  max-height: none;
  min-height: 100dvh;
  height: auto;
  border-radius: 0;
  box-shadow: none;
}

body[data-mobile] .letter-paper__stamp {
  width: 72px;
  margin-top: 0;
  margin-bottom: 1.25rem;
}

body[data-mobile] .cloud {
  will-change: auto;
}

body[data-mobile] .asset--dinosaur-shadow,
body[data-mobile] .asset--dinosaur,
body[data-mobile] .asset--dino-gif,
body[data-mobile] .asset--bearbrick-shadow,
body[data-mobile] .asset--bearbrick,
body[data-mobile] .asset--bearbrick-gif {
  will-change: auto;
  transform: none;
}

body[data-mobile] .asset--bowling-pin-red,
body[data-mobile] .asset--bowling-pin-white {
  will-change: auto;
}

body[data-mobile] .typewriter__row,
body[data-mobile] .typewriter__front,
body[data-mobile] .typewriter__spacebar {
  display: none;
}

body[data-mobile] .typewriter__carriage-group {
  will-change: auto;
}

body[data-mobile] .typewriter__letter {
  will-change: auto;
}

@media (max-width: 440px) {
  .loading-screen__background {
    display: none;
  }
}
