/* The warehouse is the page. UI sits above it; native dialogs hold the details.
   Layers: world 0, vignette 3, HUD 5; dialogs use the browser top layer. */
body.immersive {
  overflow: hidden;
  background: #2c3637;
  min-height: 100dvh;
}
.immersive .hero {
  position: relative;
  width: 100%;
  height: 100dvh;
  min-height: 0;
  padding: 0;
  margin: 0;
}
.immersive .warehouse-shell {
  position: absolute;
  inset: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
  background: #2c3637;
}
.immersive .warehouse {
  position: absolute;
  top: 0;
  left: 0;
  width: max(100vw, 177.69dvh);
  height: 100dvh;
  min-height: 0;
  aspect-ratio: auto;
  overflow: visible;
  will-change: transform;
  cursor: pointer;
}
.immersive .warehouse-art {
  position: static;
  max-width: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 65%;
}
.immersive .cat-position {
  width: clamp(115px, 10%, 185px);
  top: auto;
  bottom: 20.5%;
}
.immersive .cat-bubble {
  font-size: 12px;
  padding: 11px 14px;
}
.immersive .scanner-readout {
  font-size: 11px;
  padding: 10px 13px;
  border-width: 2px;
  pointer-events: none;
}
.immersive .world-shade {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    #0e202cc9 0%,
    #0e202c45 13%,
    transparent 29%,
    transparent 65%,
    #13242c45 80%,
    #0d202ae8 100%
  );
}
.immersive .site-header {
  position: fixed;
  z-index: 5;
  inset: 0 0 auto;
  width: auto;
  height: 112px;
  padding: 28px 42px;
  gap: 28px;
  border: 0;
  margin: 0;
  color: #fbf5e7;
  pointer-events: none;
}
.immersive .site-header a,
.immersive .site-header button {
  pointer-events: auto;
}
.immersive .brand {
  font-size: 52px;
  letter-spacing: -3.7px;
  text-shadow: 0 2px 14px #101e2740;
}
.immersive .brand-mascot {
  width: 1.55em;
  height: 1.1em;
  flex-shrink: 0;
  margin-right: 9px;
}
.immersive .site-header nav {
  margin-left: auto;
  gap: 32px;
  font-size: 13px;
}
.immersive .site-header nav a {
  padding: 14px 0;
  border-bottom: 1px solid transparent;
}
.immersive .site-header nav a:hover {
  color: #fff7e7;
  border-bottom-color: #b9d8f0;
}
.immersive .shift-switch {
  height: 42px;
  padding: 0 15px;
  border: 1px solid #e1e7e43d;
  border-radius: 5px;
  background: #20374280;
  gap: 9px;
  color: #f9f3e5;
  font-size: 11px;
}
.immersive .hero-heading {
  position: fixed;
  z-index: 5;
  left: 44px;
  bottom: 79px;
  text-align: left;
  pointer-events: none;
  margin: 0;
  color: #fff5df;
}
.immersive .hero-kicker {
  justify-content: flex-start;
  font-size: 9px;
  letter-spacing: 2px;
  color: #e6dfc9;
}
.immersive .short-line {
  background: #b9d8f0;
  width: 22px;
}
.immersive h1 {
  font-size: clamp(26px, 2.4vw, 37px);
  font-weight: 500;
  letter-spacing: -1.2px;
  line-height: 1.15;
  margin: 13px 0 0;
}
.immersive h1 span {
  color: #f5dfb0;
}
.immersive .scene-controls {
  position: fixed;
  z-index: 5;
  right: 42px;
  bottom: 74px;
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 14px;
  background: none;
  padding: 0;
  min-height: 0;
  color: #f9f2df;
}
.immersive .assignment {
  font-size: 11px;
  gap: 8px;
  text-shadow: 0 1px 4px #101e27;
}
.immersive .scene-actions {
  gap: 7px;
}
.immersive .scene-actions button {
  font-size: 12px;
  min-height: 45px;
  padding: 12px 17px;
  border: 1px solid #d4e3e640;
  border-radius: 5px;
  background: #223b47e6;
  box-shadow: 0 2px 8px #152b3520;
  color: #f9f5e9;
}
.immersive .scene-actions button:hover {
  background: #365263;
}
.immersive .scene-actions #scan {
  background: #eee8d9;
  color: #203741;
  border-color: #eee8d9;
}
.immersive .scene-actions #scan:hover {
  background: #fff8e9;
}
.immersive .scene-actions .pause-button {
  width: 45px;
  padding: 12px 0;
  font-size: 15px;
}
.immersive .scene-actions .explore-arrow {
  width: 43px;
  padding: 12px 0;
  font-size: 16px;
  display: none;
}
.immersive.has-camera .scene-actions .explore-arrow {
  display: block;
}
.world-footer {
  position: fixed;
  z-index: 5;
  left: 44px;
  right: 42px;
  bottom: max(22px, env(safe-area-inset-bottom));
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  letter-spacing: 0.1px;
  color: #ebe5d6;
  gap: 20px;
}
.world-footer a {
  padding: 8px 0;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: #ebe5d665;
}
.world-footer a:hover {
  color: #fff;
}
.world-dialog {
  max-width: min(900px, calc(100vw - 48px));
  width: 900px;
  max-height: calc(100dvh - 64px);
  padding: 56px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  overflow: auto;
  box-shadow: 0 32px 100px #08172370;
}
.world-dialog::backdrop {
  background: #102b3899;
  backdrop-filter: blur(5px);
}
.dialog-close {
  position: absolute;
  top: 13px;
  right: 15px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--card);
  font-size: 28px;
  line-height: 1;
  color: var(--ink);
}
.world-dialog .about {
  width: auto;
  padding: 18px 0 0;
  gap: 60px;
  grid-template-columns: 0.85fr 1fr;
}
.world-dialog .about h2 {
  font-size: 38px;
}
.world-dialog .employee-card {
  padding: 20px;
}
.world-dialog .employee-top {
  flex-wrap: wrap;
  gap: 8px;
}
.world-dialog .dispatch {
  width: auto;
  padding: 8px 0 0;
  border: 0;
  gap: 40px;
  grid-template-columns: 0.85fr 1fr;
}
.world-dialog .dispatch h2 {
  font-size: 34px;
}
.world-dialog .shipping-label {
  padding: 20px;
}
.world-dialog .site-footer {
  padding-bottom: 0;
}
.world-dialog .site-footer .footer-top {
  display: none;
}
.world-dialog .site-footer p {
  font-size: 14px;
  line-height: 1.8;
  margin-top: 0;
}
.world-dialog .site-footer .footer-bottom {
  font-size: 11px;
}
.world-dialog .brand {
  font-size: 32px;
  text-shadow: none;
}
.world-dialog .platform-link {
  font-size: 12px;
}
.dust {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.dust i {
  position: absolute;
  left: 35%;
  top: 24%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #fff0c1;
  opacity: 0.28;
  animation: dust-drift 13s ease-in-out infinite alternate;
}
.dust i:nth-child(2) {
  left: 48%;
  top: 40%;
  animation-delay: -7s;
  width: 2px;
  height: 2px;
}
.dust i:nth-child(3) {
  left: 62%;
  top: 17%;
  animation-delay: -4s;
}
.dust i:nth-child(4) {
  left: 55%;
  top: 54%;
  animation-delay: -10s;
  width: 2px;
  height: 2px;
}
.dust i:nth-child(5) {
  left: 29%;
  top: 32%;
  animation-delay: -3s;
  width: 2px;
  height: 2px;
}
.dust i:nth-child(6) {
  left: 72%;
  top: 37%;
  animation-delay: -11s;
}
@keyframes dust-drift {
  to {
    transform: translate(30px, 55px);
    opacity: 0.07;
  }
}
.paused .dust i {
  animation-play-state: paused;
}
.immersive .skip-link:focus {
  z-index: 10;
}
.immersive
  :is(.site-header, .scene-controls, .world-footer)
  :is(button, a):focus-visible {
  outline-color: #a7d5f6;
}
.immersive .noscript {
  position: fixed;
  z-index: 6;
  bottom: 100px;
  left: 15px;
  right: 15px;
  background: var(--paper);
  border-radius: 5px;
  font-size: 12px;
}
@media (max-width: 1000px) {
  .immersive .site-header {
    padding-inline: 28px;
  }
  .immersive .hero-heading {
    left: 30px;
    bottom: 160px;
  }
  .immersive .scene-controls {
    right: 28px;
    bottom: 70px;
  }
  .world-footer {
    left: 30px;
    right: 28px;
  }
  .immersive h1 {
    font-size: 28px;
  }
}
@media (max-width: 640px) {
  .immersive .site-header {
    height: 91px;
    padding: 20px;
    gap: 13px;
    align-items: center;
  }
  .immersive .brand {
    font-size: 38px;
    letter-spacing: -2.8px;
  }
  .immersive .brand-mascot {
    margin-right: 6px;
  }
  .immersive .site-header nav {
    gap: 17px;
    font-size: 11px;
  }
  .immersive .site-header nav a:first-child {
    display: block;
  }
  .immersive .shift-switch {
    min-width: 34px;
    height: 34px;
    padding: 4px;
    justify-content: center;
    border: 0;
    background: transparent;
  }
  .immersive .hero-heading {
    left: 23px;
    top: 110px;
    bottom: auto;
  }
  .immersive .hero-kicker {
    font-size: 8px;
    letter-spacing: 1.5px;
  }
  .immersive h1 {
    font-size: 23px;
    letter-spacing: -0.8px;
    margin-top: 10px;
    line-height: 1.2;
  }
  .immersive .cat-position {
    width: 145px;
  }
  .immersive .cat-bubble {
    font-size: 11px;
  }
  .immersive .scanner-readout {
    font-size: 10px;
  }
  .immersive .scene-controls {
    left: 18px;
    right: 18px;
    bottom: calc(63px + env(safe-area-inset-bottom));
    align-items: center;
    gap: 12px;
  }
  .immersive .assignment {
    width: auto;
    font-size: 10px;
    justify-content: center;
  }
  .immersive .scene-actions {
    width: 100%;
    gap: 5px;
    justify-content: center;
  }
  .immersive .scene-actions button {
    font-size: 10px;
    padding: 10px;
    min-height: 44px;
    flex: 1;
    white-space: nowrap;
  }
  .immersive .scene-actions button span {
    margin-left: 4px;
  }
  .immersive .scene-actions :is(.pause-button, .explore-arrow) {
    flex: 0 0 33px;
    width: 33px;
    padding: 10px 0;
    font-size: 15px;
  }
  .world-footer {
    left: 20px;
    right: 20px;
    bottom: max(17px, env(safe-area-inset-bottom));
    gap: 7px;
    flex-direction: column;
    font-size: 9px;
  }
  .world-footer a {
    padding: 4px 0;
  }
  .immersive .world-shade {
    background: linear-gradient(
      180deg,
      #102632de 0%,
      #1026326b 17%,
      transparent 34%,
      transparent 72%,
      #10263245 80%,
      #102632f2 100%
    );
  }
  .world-dialog {
    width: calc(100vw - 24px);
    max-width: none;
    max-height: calc(100dvh - 24px);
    padding: 54px 24px 30px;
  }
  .world-dialog .about {
    grid-template-columns: 1fr;
    gap: 35px;
    padding: 12px 0 0;
  }
  .world-dialog .employee-card {
    width: 75%;
    max-width: 250px;
    padding: 18px;
  }
  .world-dialog .employee-portrait {
    aspect-ratio: 1.3;
  }
  .world-dialog .about-copy {
    padding: 0;
  }
  .world-dialog .about h2 {
    font-size: 33px;
  }
  .world-dialog .dispatch {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .world-dialog .site-footer .footer-bottom {
    font-size: 9px;
    gap: 14px;
  }
}
@media (max-width: 360px) {
  .immersive .site-header {
    padding-inline: 15px;
    gap: 8px;
  }
  .immersive .site-header nav {
    gap: 12px;
    font-size: 10px;
  }
  .immersive .brand {
    font-size: 33px;
  }
  .immersive .scene-controls {
    left: 10px;
    right: 10px;
  }
  .immersive .scene-actions button {
    padding-inline: 7px;
  }
  .immersive .scene-actions :is(.pause-button, .explore-arrow) {
    flex-basis: 29px;
  }
}
@media (max-height: 550px) and (min-width: 641px) {
  .immersive .site-header {
    height: 80px;
    padding-block: 16px;
  }
  .immersive .brand {
    font-size: 38px;
  }
  .immersive .hero-heading {
    bottom: 65px;
  }
  .immersive h1 {
    font-size: 23px;
  }
  .immersive .scene-controls {
    bottom: 65px;
  }
  .world-footer {
    bottom: 12px;
  }
  .immersive .cat-position {
    width: 100px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .dust {
    display: none;
  }
  .world-dialog::backdrop {
    backdrop-filter: none;
  }
}
.has-panel .dust i {
  animation-play-state: paused;
}
