html.office-booting,
html.office-booting body {
  background: #12100e;
}

.office-loader {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 42%, #2c241c 0%, #1c1712 42%, #12100e 78%);
  color: #f3efe7;
  pointer-events: auto;
}

.office-loader[hidden] {
  display: none;
}

.office-loader-inner {
  display: grid;
  justify-items: center;
  gap: 14px;
  text-align: center;
}

.office-loader-label {
  margin: 2px 0 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #c9a96e;
}

.office-loader-count {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: #a59d8f;
}

.office-loader-track {
  position: relative;
  width: min(220px, 62vw);
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #1c1814;
  box-shadow: inset 0 0 0 1px #c9a96e22;
}

.office-loader-bar {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8a7048, #c9a96e);
  transition: width 0.24s ease;
}

.office-loader-track.is-waiting::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 28%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8a7048, #c9a96e);
  animation: office-loader-wait 1.1s ease-in-out infinite;
}

.west-run {
  position: relative;
  display: grid;
  place-items: center;
  width: min(318px, 84vw);
  aspect-ratio: 636 / 562;
}

.west-run-loop,
.west-run-still {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
}

.west-run-loop img,
.west-run-still,
.west-run-still img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 16px 10px rgba(18, 16, 14, 0.5));
}

.west-run-still {
  visibility: hidden;
}

.office-loader.is-revealing .office-loader-inner {
  animation: office-west-exit 0.32s ease-in forwards;
}

.office-loader.is-revealing {
  animation: office-iris 0.82s 0.22s cubic-bezier(0.7, 0, 0.3, 1) forwards;
}

.office-loader.is-reduced.is-revealing,
.office-loader.is-revealing.is-reduced {
  animation: office-fade-out 0.4s ease forwards;
}

.office-loader.is-reduced .office-loader-inner,
.office-loader.is-reduced.is-revealing .office-loader-inner {
  animation: none;
}

html.office-booting .top,
html.office-booting .chrome-dock,
html.office-booting #nav,
html.office-booting #panel,
html.office-booting .gallery-hud,
html.office-booting .plans-hud,
html.office-booting #hint,
html.office-booting #labels,
html.office-booting #tip,
html.office-booting .card,
html.office-booting .west-dialogue,
html.office-booting .addons-estimate,
html.office-booting #mobile-addons-pill,
html.office-booting #mobile-addons-list,
html.office-booting #orbs,
html.office-booting .resources-overlay,
html.office-booting .start,
html.office-booting .contact,
html.office-booting .fps {
  visibility: hidden !important;
  pointer-events: none !important;
}

html.office-revealed .top {
  animation: office-ui-in 0.5s ease both;
}

html.office-revealed .chrome-dock {
  animation: office-ui-fade 0.48s ease 0.16s both;
}

@keyframes office-loader-wait {
  0%,
  100% {
    transform: translateX(-20%);
  }
  50% {
    transform: translateX(160%);
  }
}

@keyframes office-west-exit {
  to {
    transform: translateX(38vw);
    opacity: 0;
  }
}

@keyframes office-iris {
  from {
    clip-path: circle(150% at 52% 48%);
  }
  to {
    clip-path: circle(0% at 52% 48%);
  }
}

@keyframes office-fade-out {
  to {
    opacity: 0;
  }
}

@keyframes office-ui-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes office-ui-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.office-loader.is-reduced .west-run-loop,
.office-loader.is-reduced .west-run-loop img {
  visibility: hidden;
}

.office-loader.is-reduced .west-run-still {
  visibility: visible;
}

.room-load {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 350;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 16px 0;
  pointer-events: none;
  color: #a59d8f;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.room-load[hidden] {
  display: none;
}

.room-load-bar {
  width: min(220px, 62vw);
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #8a7048, #c9a96e);
  box-shadow: 0 0 12px rgba(201, 169, 110, 0.35);
}

@media (prefers-reduced-motion: reduce) {
  .west-run-loop,
  .west-run-loop img {
    visibility: hidden;
  }

  .west-run-still {
    visibility: visible;
  }

  .office-loader-track.is-waiting::after {
    animation: none;
  }

  .office-loader.is-revealing,
  .office-loader.is-reduced.is-revealing {
    animation: office-fade-out 0.4s ease forwards !important;
    animation-duration: 0.4s !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.4s !important;
  }

  .office-loader.is-revealing .office-loader-inner {
    animation: none !important;
  }

  html.office-revealed .top,
  html.office-revealed .chrome-dock {
    animation: office-ui-fade 0.4s ease both !important;
    animation-duration: 0.4s !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.4s !important;
  }
}
