:root {
  --ink: #15343d;
  --muted: #728087;
  --green: #164b53;
  --line: #dde4e3;
  --paper: #fff;
  --rail: rgba(30, 48, 56, 0.93);
  --rail-line: rgba(232, 245, 247, 0.19);
  --teal: #4dd4d3;
  --shadow: 0 18px 56px #172f3a24;
  --serif: Arial, Helvetica, sans-serif;
  --sans: Inter, 'Segoe UI', Arial, Helvetica, sans-serif;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #e9edef;
  color: var(--ink);
  font-family: var(--sans);
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  font: inherit;
}
button {
  cursor: pointer;
  color: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #46bdc0;
  outline-offset: 4px;
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
button svg {
  width: 19px;
  height: 19px;
  flex: none;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
button {
  transition:
    background 0.18s,
    color 0.18s,
    border-color 0.18s,
    transform 0.18s;
}
.hidden,
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
#scene {
  position: fixed;
  inset: 0;
  touch-action: none;
  outline: 0;
}
#scene canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.topbar {
  position: fixed;
  z-index: 15;
  left: 28px;
  right: 28px;
  top: max(20px, env(safe-area-inset-top));
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  pointer-events: none;
}
.wordmark {
  font-size: 25px;
  line-height: 1;
  letter-spacing: 0.2px;
  color: #0e3440;
  white-space: nowrap;
  font-weight: 350;
  text-shadow: 0 1px 12px #ffffffa0;
}
.wordmark strong {
  font-weight: 750;
  letter-spacing: 0.25px;
}
.tools {
  display: flex;
  gap: 8px;
  pointer-events: auto;
}
.utility {
  height: 40px;
  min-width: 44px;
  border: 1px solid #ffffff82;
  border-radius: 7px;
  background: #f5fafac9;
  backdrop-filter: blur(14px);
  padding: 0 13px;
  font-size: 12px;
  font-weight: 500;
  box-shadow: 0 2px 8px #132b3505;
}
.utility:hover {
  background: #fff;
}
.utility svg {
  width: 17px;
  height: 17px;
}
.lang-button {
  font-size: 12px;
  min-width: 68px;
  letter-spacing: 0.2px;
}
.location-chip {
  position: fixed;
  z-index: 8;
  top: 67px;
  left: 29px;
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: 0.3px;
  color: #526a72;
  pointer-events: none;
  text-shadow: 0 1px 6px #fff;
}
.location-chip #floorIndicator {
  font-weight: 650;
}
.location-chip .location-separator {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #6d8287;
  opacity: 0.55;
}
/* A compact reading surface keeps the brand/location legible over changing 3D scenery. */
.wordmark {
  position: relative;
  isolation: isolate;
  text-shadow: none;
}
.wordmark:before {
  content: '';
  position: absolute;
  z-index: -1;
  left: -11px;
  right: -11px;
  top: -10px;
  bottom: -35px;
  min-width: 213px;
  background: rgba(246, 250, 250, 0.94);
  border: 1px solid #ffffffb8;
  border-radius: 8px;
  box-shadow: 0 3px 14px #15323d0b;
  backdrop-filter: blur(14px);
  pointer-events: none;
}
.location-chip {
  z-index: 16;
  color: #466773;
  text-shadow: none;
}
.floor-rail {
  position: fixed;
  z-index: 16;
  left: 28px;
  top: 103px;
  width: 116px;
  background: var(--rail);
  border: 1px solid #ffffff22;
  border-radius: 9px;
  box-shadow: 0 8px 28px #15303d13;
  overflow: hidden;
  backdrop-filter: blur(16px);
}
.floor-rail nav {
  display: flex;
  flex-direction: column;
}
.floor-button {
  position: relative;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  border: 0;
  border-bottom: 1px solid var(--rail-line);
  background: transparent;
  color: #f4f8fa;
  padding: 15px 15px;
  min-height: 76px;
  text-align: left;
}
.floor-button:last-child {
  border-bottom: 0;
}
.floor-button strong {
  font-size: 21px;
  line-height: 1.15;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.3px;
}
.floor-button span {
  font-size: 11px;
  line-height: 1.25;
  font-weight: 400;
  color: #e3edef;
}
.floor-button:after {
  content: '';
  position: absolute;
  right: 15px;
  top: 24px;
  width: 7px;
  height: 7px;
  border: 1px solid #edf8fa;
  border-radius: 50%;
  opacity: 0.8;
}
.floor-button:hover {
  background: #ffffff11;
}
.floor-button.active,
.floor-button[aria-current='true'],
.floor-button[aria-pressed='true'] {
  background: #ffffff12;
}
.floor-button.active:after,
.floor-button[aria-current='true']:after,
.floor-button[aria-pressed='true']:after {
  background: #bce7eb;
  border-color: #bce7eb;
  box-shadow: 0 0 0 3px #bce7eb12;
}
.floor-button.is-target:after {
  border-color: var(--teal);
  background: var(--teal);
}
.floor-tools {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--rail-line);
  padding: 5px 2px;
  gap: 0;
}
.rail-tool {
  position: relative;
  background: transparent;
  border: 0;
  border-radius: 5px;
  min-width: 0;
  min-height: 39px;
  padding: 0;
  color: #e3edef;
}
.rail-tool svg {
  width: 17px;
  height: 17px;
}
.rail-tool:hover,
.rail-tool.active {
  background: #ffffff18;
  color: white;
}
.welcome {
  position: fixed;
  z-index: 10;
  bottom: max(26px, calc(var(--safe-bottom) + 18px));
  left: 28px;
  width: 324px;
  max-width: calc(100vw - 56px);
  padding: 20px 21px;
  background: var(--rail);
  color: #f4f8f9;
  border: 1px solid #ffffff20;
  border-radius: 9px;
  box-shadow: 0 8px 28px #15303d13;
  backdrop-filter: blur(16px);
  transition:
    opacity 0.25s,
    transform 0.25s;
  pointer-events: none;
}
.welcome h1 {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.35;
  margin: 0;
  color: #fff;
  letter-spacing: -0.25px;
}
.welcome p {
  font-size: 12px;
  line-height: 1.65;
  color: #dde7e9;
  margin: 6px 0 0;
}
.welcome #welcomeEyebrow {
  display: none;
}
.welcome.behind-panel,
.welcome.compact {
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
}
.welcome.behind-panel .bottom-action,
.welcome.compact .bottom-action {
  pointer-events: none;
}
.bottom-action {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
  pointer-events: auto;
}
.pill {
  border: 1px solid #dce6e6;
  border-radius: 7px;
  background: #fffffff5;
  padding: 12px 16px;
  min-height: 43px;
  font-size: 12px;
  line-height: 1.2;
  box-shadow: 0 3px 12px #18363d08;
  white-space: nowrap;
  font-weight: 500;
}
.pill:hover {
  background: white;
  transform: translateY(-1px);
}
.pill.primary,
#skipButton {
  background: #073f49;
  color: white;
  border-color: #54c4cb;
}
.pill.primary:hover,
#skipButton:hover {
  background: #12555f;
}
.pill svg {
  width: 16px;
  height: 16px;
}
#skipButton {
  min-width: 177px;
  justify-content: space-between;
}
.hint {
  position: fixed;
  z-index: 6;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  text-align: center;
  color: #64777e;
  font-size: 10px;
  line-height: 1.8;
  pointer-events: none;
  text-shadow: 0 1px 6px #ffffffb0;
}
.hint strong {
  font-weight: 500;
  color: #405c66;
}
.hint kbd {
  font: 9px var(--sans);
  border: 1px solid #bdcdd0;
  border-radius: 3px;
  min-width: 16px;
  display: inline-block;
  text-align: center;
  margin-right: 2px;
  padding: 0 3px;
  background: #ffffff8c;
}
.hint .desktop-hint > span {
  margin-left: 5px;
}
.view-controls {
  position: fixed;
  z-index: 14;
  right: 28px;
  bottom: max(26px, calc(var(--safe-bottom) + 18px));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}
.icon-button {
  height: 44px;
  width: 44px;
  min-width: 44px;
  padding: 0;
  border: 1px solid #ffffffa0;
  background: #fffffff0;
  color: #193841;
  border-radius: 50%;
  box-shadow: 0 3px 14px #132d3812;
  backdrop-filter: blur(12px);
}
.icon-button:hover {
  background: #fff;
  transform: translateY(-1px);
}
.icon-button.active {
  background: var(--green);
  color: white;
}
.view-controls .icon-button svg {
  width: 19px;
  height: 19px;
}
.view-controls .rotate-left {
  display: none;
}
.view-controls #restart {
  position: absolute;
  right: 55px;
  bottom: 0;
  width: 36px;
  height: 36px;
  min-width: 36px;
  background: #ffffffbd;
}
.view-controls #restart svg {
  width: 15px;
  height: 15px;
}
.name-bubble {
  position: fixed;
  z-index: 4;
  left: 0;
  top: 0;
  padding: 6px 11px;
  border: 1px solid #ffffffee;
  background: #164b53;
  color: white;
  font-size: 9px;
  letter-spacing: 0.8px;
  font-weight: 650;
  border-radius: 20px;
  box-shadow: 0 2px 8px #173c4824;
  pointer-events: none;
  will-change: transform;
  white-space: nowrap;
}
.name-bubble:after {
  content: '';
  position: absolute;
  left: calc(50% - 3px);
  bottom: -4px;
  width: 6px;
  height: 6px;
  background: inherit;
  transform: rotate(45deg);
  border-right: 1px solid #ffffffee;
  border-bottom: 1px solid #ffffffee;
}
.name-bubble.staff {
  color: #3c5a63;
  background: #fff;
  border-color: #dce7e7;
  font-size: 8px;
  font-weight: 500;
}
.name-bubble.staff:after {
  border-color: #dce7e7;
}
.name-bubble.knock {
  letter-spacing: 0.4px;
  z-index: 7;
  color: #294b55;
  background: #fff;
}
.panel,
.map-panel,
.lift-panel {
  position: fixed;
  z-index: 30;
  right: 28px;
  top: 89px;
  width: 350px;
  max-height: calc(100dvh - 116px);
  overflow: auto;
  overscroll-behavior: contain;
  background: #fffffff7;
  border: 1px solid #ffffffc4;
  box-shadow: var(--shadow);
  border-radius: 11px;
  padding: 28px 25px 24px;
  animation: panel-in 0.24s both;
  backdrop-filter: blur(22px);
  scrollbar-width: thin;
  scrollbar-color: #b7c7c8 transparent;
}
.panel h2,
.map-panel h2,
.lift-panel h2 {
  font-size: 23px;
  font-weight: 600;
  line-height: 1.25;
  margin: 0 28px 9px 0;
  color: #15343d;
  letter-spacing: -0.45px;
}
.panel p,
.map-panel p,
.lift-panel p {
  font-size: 12px;
  line-height: 1.7;
  color: #73858c;
  margin: 0 0 21px;
}
.eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.6px;
  color: #7b9298;
  margin: 0 0 9px;
  text-transform: uppercase;
}
.close {
  position: absolute;
  right: 9px;
  top: 9px;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: #799096;
  padding: 9px;
  border-radius: 6px;
}
.close:hover {
  background: #edf3f3;
  color: #193d46;
}
.close svg {
  width: 18px;
  height: 18px;
}
.room-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}
.room-button {
  border: 1px solid #dce6e7;
  background: #fff;
  border-radius: 6px;
  min-height: 47px;
  padding: 11px;
  font-size: 12px;
  justify-content: space-between;
  text-align: left;
  line-height: 1.35;
}
.room-button:hover {
  background: #f0f7f7;
  border-color: #9fc0c5;
}
.room-button svg {
  width: 13px;
  height: 13px;
  opacity: 0.55;
}
.room-button.wide {
  grid-column: 1/-1;
}
.boss-button {
  width: 100%;
  border-radius: 6px;
  border: 1px solid #b9d4d7;
  background: #edf6f6;
  padding: 14px 12px;
  min-height: 49px;
  font-size: 12px;
  line-height: 1.4;
  justify-content: space-between;
  text-align: left;
}
.boss-button:hover {
  background: #e0efef;
}
.boss-button svg {
  width: 15px;
  height: 15px;
}
.text-button {
  border: 0;
  background: none;
  font-size: 12px;
  color: #627f87;
  min-height: 42px;
  padding: 13px 0 0;
  justify-content: start;
}
.text-button:hover {
  color: #164b53;
}
.text-button svg {
  width: 14px;
  height: 14px;
}
.panel .room-caption,
.map-panel .room-caption {
  margin: 18px 0 0;
  font-size: 11px;
  line-height: 1.65;
}
.directory-floor {
  padding: 15px 0 2px;
  border-top: 1px solid #e3ebeb;
}
.directory-floor:first-of-type {
  padding-top: 3px;
  border-top: 0;
}
.directory-floor h3 {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1px;
  margin: 0 0 9px;
  color: #617b84;
}
.directory-floor h3 strong {
  font-weight: 650;
  font-size: 12px;
  color: #173c47;
  min-width: 19px;
  font-variant-numeric: tabular-nums;
}
.map-rooms {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-bottom: 9px;
}
.map-rooms button {
  border: 1px solid #dfe8e9;
  background: white;
  padding: 12px 10px;
  min-height: 43px;
  border-radius: 5px;
  font-size: 12px;
  text-align: left;
  justify-content: flex-start;
}
.map-rooms button:hover {
  background: #edf6f6;
  border-color: #accbd0;
}
.map-rooms .wide {
  grid-column: 1/-1;
}
.lift-panel {
  width: 320px;
}
.lift-panel .lift-icon {
  width: 30px;
  height: 30px;
  stroke-width: 1.5;
  color: #305d66;
  margin-bottom: 13px;
}
.lift-panel h2 {
  margin-bottom: 7px;
}
.lift-panel #liftStatus {
  min-height: 20px;
  margin-bottom: 18px;
  color: #587e86;
}
.lift-floors {
  display: flex;
  flex-direction: column;
  border: 1px solid #dce7e7;
  border-radius: 7px;
  overflow: hidden;
}
.lift-floor {
  display: flex;
  justify-content: flex-start;
  gap: 16px;
  padding: 14px 16px;
  min-height: 57px;
  width: 100%;
  border: 0;
  border-bottom: 1px solid #dce7e7;
  background: white;
  color: #234b56;
  text-align: left;
}
.lift-floor:last-child {
  border-bottom: 0;
}
.lift-floor strong {
  font-size: 20px;
  line-height: 1.1;
  font-weight: 550;
  min-width: 27px;
}
.lift-floor span {
  font-size: 12px;
  line-height: 1.35;
}
.lift-floor svg {
  width: 15px;
  height: 15px;
  margin-left: auto;
  opacity: 0.5;
}
.lift-floor:hover {
  background: #edf6f6;
}
.lift-floor.active,
.lift-floor[aria-current='true'] {
  background: #e6f2f1;
  color: #124d55;
}
.lift-floor:disabled {
  opacity: 0.5;
}
.lift-panel .room-caption {
  font-size: 11px;
  line-height: 1.65;
  margin: 16px 0 0;
  color: #819399;
}
.dialog-shade {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: #14313e3d;
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
}
.dialog {
  position: relative;
  width: 450px;
  max-width: 100%;
  max-height: calc(100dvh - 44px);
  overflow: auto;
  background: white;
  padding: 32px;
  border-radius: 12px;
  box-shadow: 0 24px 100px #12303b30;
}
.dialog h2 {
  font-size: 27px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.5px;
  margin: 0 20px 12px 0;
}
.dialog p {
  font-size: 13px;
  line-height: 1.85;
  color: #74868d;
  margin: 0 0 24px;
}
.help-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid #e4eded;
  padding: 13px 0;
  font-size: 12px;
  line-height: 1.6;
  color: #7a9097;
}
.help-row span {
  min-width: 65px;
}
.help-row strong {
  font-weight: 450;
  color: #244b56;
  text-align: right;
  max-width: 235px;
}
.dialog .pill {
  width: 100%;
  margin-top: 20px;
}
.toast {
  position: fixed;
  z-index: 45;
  left: 50%;
  bottom: max(40px, calc(var(--safe-bottom) + 25px));
  transform: translate(-50%, 10px);
  background: #fff;
  color: #315a64;
  border: 1px solid #d4e4e5;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.5;
  padding: 13px 20px;
  box-shadow: 0 4px 20px #163a4a17;
  opacity: 0;
  transition: 0.23s;
  max-width: min(450px, 85vw);
  text-align: center;
  pointer-events: none;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.joystick {
  position: fixed;
  z-index: 13;
  left: 24px;
  bottom: max(187px, calc(var(--safe-bottom) + 179px));
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 1px solid #ffffffd9;
  background: #f5fcfc38;
  box-shadow: 0 4px 25px #254e5f07;
  display: none;
  touch-action: none;
  backdrop-filter: blur(3px);
}
.joystick .stick {
  position: absolute;
  top: 28px;
  left: 28px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #ffffffed;
  background: #ffffffba;
  box-shadow: 0 3px 12px #21465420;
  pointer-events: none;
}
.joystick:before,
.joystick:after {
  content: '';
  position: absolute;
  background: #4e7c8c2b;
  left: 22px;
  right: 22px;
  top: 47px;
  height: 1px;
}
.joystick:after {
  top: 22px;
  bottom: 22px;
  left: 47px;
  width: 1px;
  height: auto;
}
#interact {
  position: fixed;
  z-index: 17;
  right: 86px;
  bottom: max(27px, calc(var(--safe-bottom) + 19px));
  max-width: 230px;
  white-space: normal;
  text-align: center;
  background: #164b53;
  color: white;
  border-color: #92c1c7;
  box-shadow: 0 4px 16px #173c4625;
}
#loading {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #e9edef;
  transition: opacity 0.5s;
}
.loading-logo {
  width: 51px;
  height: 51px;
  margin-bottom: 25px;
  stroke: #315d69;
  stroke-width: 1.15;
}
.loading-title {
  font-size: 25px;
  font-weight: 550;
  color: #173e4b;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}
.loading-sub {
  color: #7c929a;
  font-size: 12px;
  letter-spacing: 0.1px;
}
.loading-line {
  height: 2px;
  width: 145px;
  margin-top: 25px;
  overflow: hidden;
  background: #d3e0e3;
  border-radius: 2px;
}
.loading-line:before {
  content: '';
  display: block;
  width: 65px;
  height: 2px;
  background: #5498a1;
  animation: load 1.2s ease-in-out infinite alternate;
}
#error {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #eef3f4;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px;
}
#error h2 {
  font-size: 27px;
  font-weight: 550;
  margin: 0 0 15px;
}
#error p {
  font-size: 13px;
  line-height: 1.8;
  color: #728b95;
  max-width: 420px;
}
#error button {
  margin: 15px auto 0;
}
body.fa {
  font-family: Tahoma, Arial, sans-serif;
}
body.fa .welcome,
body.fa .panel,
body.fa .map-panel,
body.fa .lift-panel,
body.fa .dialog {
  direction: rtl;
}
body.fa .welcome h1 {
  font-family: Tahoma, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.7;
  letter-spacing: 0;
}
body.fa .panel h2,
body.fa .map-panel h2,
body.fa .lift-panel h2,
body.fa .dialog h2 {
  font-family: Tahoma, Arial, sans-serif;
  font-size: 22px;
  line-height: 1.65;
  letter-spacing: 0;
  margin-left: 30px;
  margin-right: 0;
}
body.fa .eyebrow {
  letter-spacing: 0;
}
body.fa .room-button,
body.fa .boss-button,
body.fa .map-rooms button,
body.fa .lift-floor {
  direction: rtl;
  text-align: right;
}
body.fa .floor-button span {
  font-size: 11px;
  letter-spacing: 0;
}
body.fa .wordmark,
body.fa .tools,
body.fa .name-bubble {
  direction: ltr;
}
body.fa .panel p,
body.fa .dialog p {
  font-size: 12px;
}
body.fa .help-row {
  font-size: 12px;
}
body.fa .help-row strong {
  text-align: left;
}
body.fa .hint {
  direction: rtl;
}
body.fa .close {
  right: auto;
  left: 9px;
}
body.fa .lift-floor svg {
  margin-left: 0;
  margin-right: auto;
}
body.fa .directory-floor h3 {
  direction: rtl;
}
body.fa .bottom-action {
  direction: rtl;
}
body.fa .location-chip {
  direction: rtl;
}
body.fa #location {
  font-size: 10px;
}
body.fa .welcome p {
  font-size: 11px;
  line-height: 1.8;
}
body.fa .room-button svg,
body.fa .boss-button svg,
body.fa .text-button svg,
body.fa .lift-floor svg,
body.fa #skipButton svg {
  transform: scaleX(-1);
}
@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(9px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes load {
  to {
    transform: translateX(80px);
  }
}
@media (pointer: coarse) {
  .floor-rail {
    width: 140px;
  }
  .rail-tool {
    min-width: 44px;
  }
  .joystick {
    display: block;
  }
  .hint {
    display: none;
  }
  .utility,
  .rail-tool,
  .pill,
  .room-button,
  .map-rooms button,
  .close {
    min-height: 44px;
  }
  .close {
    width: 44px;
  }
  .floor-tools {
    padding: 3px 2px;
  }
  .rail-tool {
    min-height: 44px;
  }
}
@media (max-width: 1000px) {
  .hint {
    display: none;
  }
  .tools .utility {
    padding: 0 10px;
  }
  .floor-rail {
    width: 106px;
  }
  .floor-button {
    padding-left: 13px;
  }
  .floor-button:after {
    right: 13px;
  }
  .welcome {
    width: 305px;
  }
}
@media (max-width: 700px) {
  .topbar {
    left: 16px;
    right: 16px;
    top: max(15px, env(safe-area-inset-top));
    gap: 10px;
  }
  .wordmark {
    font-size: 19px;
    letter-spacing: 0;
  }
  .tools {
    gap: 5px;
  }
  .utility {
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    border-radius: 7px;
    padding: 0 !important;
  }
  .utility svg {
    width: 17px;
    height: 17px;
  }
  .utility .tool-text {
    display: none;
  }
  .lang-button {
    width: 48px;
    min-width: 48px;
    font-size: 11px;
  }
  .hide-mobile {
    display: none !important;
  }
  .location-chip {
    top: 60px;
    left: 17px;
    font-size: 9px;
    gap: 6px;
  }
  .location-chip #location {
    max-width: 185px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .floor-rail {
    left: 16px;
    right: 16px;
    top: 88px;
    width: auto;
    display: flex;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    backdrop-filter: none;
    overflow: visible;
  }
  .floor-rail nav {
    flex: 1;
    min-width: 0;
    flex-direction: row;
    background: var(--rail);
    border: 1px solid #ffffff22;
    border-radius: 8px;
    overflow: hidden;
    backdrop-filter: blur(16px);
  }
  .floor-button {
    flex: 1;
    min-width: 0;
    align-items: center;
    gap: 3px;
    padding: 9px 3px 8px;
    min-height: 56px;
    border-bottom: 0;
    border-right: 1px solid var(--rail-line);
    text-align: center;
  }
  .floor-button:last-child {
    border-right: 0;
  }
  .floor-button strong {
    font-size: 17px;
  }
  .floor-button span {
    font-size: 9px;
    line-height: 1.2;
    max-width: 72px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .floor-button:after {
    width: 4px;
    height: 4px;
    right: 9px;
    top: 12px;
    border-width: 0.7px;
  }
  .floor-tools {
    position: absolute;
    right: 0;
    top: 72px;
    display: flex;
    flex-direction: column;
    background: var(--rail);
    border: 1px solid #ffffff22;
    border-radius: 8px;
    padding: 1px;
    gap: 0;
    align-items: center;
    backdrop-filter: blur(16px);
  }
  .rail-tool {
    width: 44px;
    min-width: 44px;
    min-height: 44px;
  }
  .rail-tool svg {
    width: 16px;
    height: 16px;
  }
  .welcome {
    left: 16px;
    right: 16px;
    bottom: max(17px, calc(var(--safe-bottom) + 12px));
    width: auto;
    max-width: none;
    padding: 15px 17px;
    border-radius: 8px;
  }
  .welcome h1 {
    font-size: 17px;
    line-height: 1.3;
  }
  .welcome p {
    font-size: 11px;
    line-height: 1.55;
    margin-top: 4px;
  }
  .bottom-action {
    margin-top: 12px;
    gap: 7px;
    flex-wrap: nowrap;
  }
  .pill {
    min-height: 44px;
    padding: 11px 13px;
    font-size: 11px;
  }
  #skipButton {
    min-width: 150px;
  }
  .bottom-action .pill svg {
    width: 14px;
    height: 14px;
  }
  #receptionButton {
    min-width: 0;
    flex: 1;
  }
  .view-controls {
    right: 17px;
    bottom: max(177px, calc(var(--safe-bottom) + 169px));
    gap: 6px;
  }
  .view-controls .icon-button {
    width: 44px;
    height: 44px;
    min-width: 44px;
  }
  .view-controls .icon-button svg {
    width: 18px;
    height: 18px;
  }
  .view-controls #rotateLeft {
    display: none;
  }
  .view-controls #restart {
    display: none;
  }
  .joystick {
    left: 20px;
    bottom: max(178px, calc(var(--safe-bottom) + 170px));
    width: 96px;
    height: 96px;
  }
  #interact {
    right: 68px;
    bottom: max(184px, calc(var(--safe-bottom) + 176px));
    max-width: calc(100vw - 197px);
    font-size: 11px;
    padding: 10px 12px;
    min-height: 44px;
  }
  .panel,
  .map-panel,
  .lift-panel {
    top: auto;
    bottom: max(17px, calc(var(--safe-bottom) + 12px));
    left: 16px;
    right: 16px;
    width: auto;
    max-height: calc(100dvh - 171px);
    padding: 25px 21px 20px;
    border-radius: 11px;
  }
  .panel h2,
  .map-panel h2,
  .lift-panel h2 {
    font-size: 22px;
  }
  .panel p,
  .map-panel p,
  .lift-panel p {
    font-size: 12px;
    line-height: 1.7;
    margin-bottom: 17px;
  }
  .room-button {
    min-height: 45px;
    font-size: 12px;
  }
  .map-rooms button {
    font-size: 12px;
    min-height: 44px;
  }
  .boss-button {
    min-height: 47px;
    font-size: 12px;
  }
  .directory-floor {
    padding-top: 13px;
  }
  .directory-floor h3 {
    font-size: 11px;
  }
  .lift-panel {
    left: auto;
    width: calc(100vw - 32px);
    max-width: 340px;
  }
  .lift-panel .lift-icon {
    width: 25px;
    height: 25px;
    margin-bottom: 10px;
  }
  .lift-floor {
    min-height: 54px;
  }
  .lift-panel .room-caption {
    margin-top: 13px;
  }
  .name-bubble {
    font-size: 8px;
    padding: 5px 10px;
  }
  .name-bubble.staff {
    font-size: 7px;
  }
  .toast {
    bottom: max(175px, calc(var(--safe-bottom) + 167px));
    font-size: 11px;
    max-width: calc(100vw - 36px);
    width: max-content;
  }
  .dialog-shade {
    padding: 18px;
  }
  .dialog {
    padding: 28px 24px;
    max-height: calc(100dvh - 36px);
  }
  .dialog h2 {
    font-size: 24px;
  }
  .help-row {
    font-size: 11px;
    gap: 13px;
  }
  .help-row strong {
    max-width: 200px;
  }
  .loading-title {
    font-size: 22px;
  }
  body.fa .floor-button span {
    font-size: 9px;
  }
  body.fa .welcome h1 {
    font-size: 16px;
    line-height: 1.6;
  }
  body.fa .welcome p {
    font-size: 10px;
    line-height: 1.65;
  }
  body.fa .panel h2,
  body.fa .map-panel h2,
  body.fa .lift-panel h2 {
    font-size: 20px;
  }
  body.fa .help-row {
    font-size: 11px;
  }
}
@media (max-width: 390px) {
  .wordmark {
    font-size: 17px;
  }
  .topbar {
    left: 14px;
    right: 14px;
  }
  .floor-rail {
    left: 14px;
    right: 14px;
  }
  .floor-tools {
    padding-left: 1px;
    padding-right: 1px;
  }
  .rail-tool {
    width: 44px;
    min-width: 44px;
  }
  .floor-button span {
    font-size: 8px;
  }
  .floor-button:after {
    right: 6px;
  }
  .location-chip {
    left: 15px;
  }
  .welcome {
    left: 14px;
    right: 14px;
  }
  .panel,
  .map-panel,
  .lift-panel {
    left: 14px;
    right: 14px;
  }
  .lift-panel {
    width: auto;
  }
}
@media (max-height: 540px) and (min-width: 701px) {
  .floor-rail {
    top: 87px;
    width: 100px;
  }
  .floor-button {
    min-height: 56px;
    padding: 8px 13px;
    gap: 2px;
  }
  .floor-button strong {
    font-size: 18px;
  }
  .floor-button span {
    font-size: 10px;
  }
  .floor-button:after {
    top: 17px;
  }
  .rail-tool {
    min-height: 33px;
  }
  .welcome {
    left: 147px;
    width: 280px;
    bottom: 18px;
    padding: 15px 17px;
  }
  .welcome h1 {
    font-size: 17px;
  }
  .welcome p {
    font-size: 11px;
  }
  .bottom-action {
    margin-top: 11px;
  }
  .view-controls {
    bottom: 18px;
  }
  .panel,
  .map-panel,
  .lift-panel {
    top: 78px;
    max-height: calc(100dvh - 96px);
    padding: 22px;
  }
  .joystick {
    left: 145px;
    bottom: 167px;
  }
}
@media (max-height: 540px) and (max-width: 700px) {
  .topbar {
    top: 10px;
  }
  .location-chip {
    display: none;
  }
  .floor-rail {
    top: 60px;
  }
  .welcome {
    left: 145px;
    right: 73px;
    bottom: 13px;
    padding: 12px 15px;
  }
  .welcome h1 {
    font-size: 15px;
  }
  .welcome p {
    display: none;
  }
  .bottom-action {
    margin-top: 8px;
  }
  .welcome .pill {
    min-height: 44px;
    padding: 8px 11px;
  }
  .view-controls {
    bottom: 15px;
  }
  .joystick {
    left: 21px;
    bottom: 19px;
  }
  .panel,
  .map-panel,
  .lift-panel {
    top: 125px;
    bottom: 13px;
    max-height: calc(100dvh - 138px);
  }
  #interact {
    bottom: 125px;
    right: 74px;
  }
  .toast {
    bottom: 125px;
  }
}
@media (max-width: 700px) {
  .wordmark:before {
    left: -8px;
    right: auto;
    top: -11px;
    bottom: -32px;
    width: min(210px, calc(100vw - 137px));
    min-width: 0;
    border-radius: 7px;
  }
}
@media (max-height: 540px) and (min-width: 701px) {
  .wordmark:before {
    bottom: -31px;
  }
}
@media (max-height: 540px) and (max-width: 700px) {
  .wordmark:before {
    bottom: -11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Architectural edition: quiet controls over the full scene. */
.wordmark:before {
  background: rgba(245, 249, 251, 0.75);
}
.utility {
  backdrop-filter: blur(18px);
}
