/* GPT Chat: the universe interface. Sits over the 3D view. Same tokens as the
   site. Neon = the building's wayfinding, amber = people and the one action. */

html, body.uw { height: 100%; margin: 0; overflow: hidden; background: #05070a; overscroll-behavior: none; }
.u-root { position: fixed; inset: 0; }
.u-root canvas.u-gl { position: absolute; inset: 0; z-index: 2; touch-action: none; display: block; }
.u-root canvas.u-gl.is-through { pointer-events: none; }
.u-css3d { position: absolute !important; inset: 0; z-index: 1; }
.u-live { background: #fff; border-radius: 6px; overflow: hidden; }
.u-live iframe { width: 100%; height: 100%; border: 0; display: block; background: #fff; }
.u-labels { position: fixed; inset: 0; z-index: 5; pointer-events: none; overflow: hidden; }
.u-hud { position: fixed; inset: 0; z-index: 10; pointer-events: none; font-family: var(--sc-font-text); color: var(--sc-ink); }
.u-hud > * { pointer-events: auto; }
.u-hud .i { width: 1.05rem; height: 1.05rem; flex: none; }
.u-noscript { padding: 2rem; }

/* ----------------------------------------------------------------- labels -- */
.wlabel { position: absolute; left: 0; top: 0; will-change: transform, opacity; transform-origin: 50% 50%; white-space: nowrap; }
.wneon { display: grid; justify-items: center; gap: 0.3rem; --neon: var(--gc-neon); }
.wneon__t {
  font-family: var(--sc-font-display); font-stretch: 125%; font-weight: 760; font-size: 3.2rem; line-height: 1; letter-spacing: -0.01em;
  color: color-mix(in oklab, var(--neon) 18%, #fff);
  text-shadow: 0 0 3px #fff, 0 0 10px var(--neon), 0 0 26px var(--neon), 0 0 60px color-mix(in oklab, var(--neon) 60%, transparent);
}
.wneon__s { font-family: var(--sc-font-mono); font-size: 0.9rem; letter-spacing: 0.42em; text-transform: uppercase; color: #fff3d6; text-shadow: 0 0 6px var(--sc-accent), 0 0 18px color-mix(in oklab, var(--sc-accent) 70%, transparent); }
.wneon--hang .wneon__t { font-size: 4rem; }
.wneon--bar .wneon__t { font-size: 4.6rem; --neon: var(--gc-neon); }
.wneon--bar .wneon__s { color: #d9f8ff; text-shadow: 0 0 6px #3de3ff, 0 0 18px rgb(61 227 255 / 0.7); letter-spacing: 0.24em; }
.wneon--sm .wneon__t { font-size: 1.5rem; }
.wsign {
  font-family: var(--sc-font-display); font-stretch: 125%; font-weight: 780; font-size: 1.4rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: #ffe1f0; text-shadow: 0 0 6px var(--gc-neon), 0 0 18px color-mix(in oklab, var(--gc-neon) 70%, transparent);
}
.wsign--sm { font-size: 1.05rem; }
.wsign--xs { font-size: 0.8rem; }
.wcap {
  font-size: 0.9rem; font-weight: 560; color: var(--sc-ink); padding: 0.25rem 0.55rem;
  background: rgb(9 11 14 / 0.82); border: 1px solid var(--gc-line-2); border-radius: 4px; max-width: 22rem; overflow: hidden; text-overflow: ellipsis;
}
.wcap--sign { border-color: color-mix(in oklab, var(--gc-neon) 60%, transparent); }
.wcap--dim { color: var(--sc-ink-soft); background: rgb(9 11 14 / 0.6); }
.wcap--xs { font-size: 0.72rem; padding: 0.15rem 0.4rem; }
.wnote { font-size: 0.85rem; color: #e6e9ee; background: rgb(14 18 24 / 0.9); border: 1px solid var(--gc-line-2); border-radius: 6px; padding: 0.5rem 0.7rem; max-width: 18rem; white-space: normal; }
.wfloor { display: inline-flex; align-items: center; gap: 0.7rem; }
.wfloor b {
  display: inline-grid; place-items: center; min-width: 3.2rem; height: 3rem; padding: 0 0.5rem; border: 2px solid var(--gc-neon); border-radius: 6px; box-shadow: var(--gc-neon-glow);
  font-family: var(--sc-font-display); font-stretch: 125%; font-weight: 800; font-size: 1.6rem; color: #ffe1f0; text-shadow: 0 0 8px var(--gc-neon);
}
.wfloor span { font-family: var(--sc-font-display); font-stretch: 125%; font-weight: 760; font-size: 1.5rem; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; }
.wtag { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.2rem 0.5rem; background: rgb(9 11 14 / 0.85); border: 1px solid var(--gc-line-2); border-radius: 999px; font-size: 0.82rem; }
.wtag b { font-weight: 600; }
.wtag__ai { font-family: var(--sc-font-mono); font-size: 0.62rem; letter-spacing: 0.08em; padding: 0.05rem 0.3rem; border-radius: 3px; background: #3de3ff; color: #031418; font-weight: 700; }
.wtag__role { font-family: var(--sc-font-mono); font-size: 0.62rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gc-neon-soft); }
.wtag--ai { border-color: rgb(61 227 255 / 0.6); }

/* -------------------------------------------------------------------- top -- */
.utop {
  position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: center; gap: 0.8rem;
  padding: calc(0.7rem + env(safe-area-inset-top)) 1rem 0.7rem;
  background: linear-gradient(to bottom, rgb(5 7 10 / 0.85), rgb(5 7 10 / 0));
  pointer-events: none;
}
.utop > * { pointer-events: auto; }
.ubrand { flex: none; display: inline-flex; align-items: center; gap: 0.5rem; color: var(--sc-ink); text-decoration: none; font-family: var(--sc-font-display); font-stretch: 125%; font-weight: 740; font-size: 1rem; }
.ubrand img { border-radius: 6px; }
/* the place pill is the one part of the bar that gives way: it shrinks and its title ellipsises, so the logo and the right-hand group never get squeezed or pushed off */
.uplace { min-width: 0; display: inline-flex; align-items: center; gap: 0.55rem; padding: 0.3rem 0.75rem 0.3rem 0.35rem; border: 1px solid var(--gc-line-2); border-radius: 999px; background: rgb(9 11 14 / 0.75); color: var(--sc-ink); font: inherit; cursor: pointer; text-align: left; }
.uplace:hover, .uplace:focus-visible { border-color: color-mix(in oklab, var(--lvl, var(--gc-neon)) 60%, transparent); outline: none; }
/* the code badge takes the floor's colour (--lvl, set per floor by main.js); brand pink anywhere else */
.uplace b { display: inline-grid; place-items: center; min-width: 1.7rem; height: 1.7rem; padding: 0 0.35rem; border: 1.5px solid var(--lvl, var(--gc-neon)); border-radius: 999px; box-shadow: 0 0 10px -2px var(--lvl, var(--gc-neon)), inset 0 0 6px -3px var(--lvl, var(--gc-neon)); font-family: var(--sc-font-display); font-stretch: 118%; font-weight: 800; font-size: 0.72rem; color: color-mix(in oklab, var(--lvl, var(--gc-neon)) 30%, #fff); transition: border-color 300ms var(--sc-ease-out), box-shadow 300ms var(--sc-ease-out); }
.uplace span { min-width: 0; font-weight: 560; font-size: 0.92rem; max-width: 40vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.utop__end { flex: none; margin-left: auto; display: flex; align-items: center; gap: 0.6rem; }
.ucount { white-space: nowrap; display: inline-flex; align-items: center; gap: 0.4rem; font-family: var(--sc-font-mono); font-size: 0.74rem; color: #c3cad3; }
.udot { width: 0.5rem; height: 0.5rem; border-radius: 1px; background: var(--sc-accent); box-shadow: 0 0 0 3px color-mix(in oklab, var(--sc-accent) 20%, transparent); }
.ume { display: inline-flex; align-items: center; gap: 0.45rem; color: var(--sc-ink); text-decoration: none; font-size: 0.86rem; padding: 0.2rem 0.6rem 0.2rem 0.2rem; border: 1px solid var(--gc-line-2); border-radius: 999px; background: rgb(9 11 14 / 0.75); }
.ume:hover { border-color: color-mix(in oklab, var(--sc-accent) 60%, transparent); }

/* ---------------------------------------------------------------- buttons -- */
.ubtn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem; min-height: 40px; padding: 0.55rem 0.9rem;
  border-radius: var(--sc-r-sm); border: 1px solid var(--gc-line-2); background: rgb(14 18 24 / 0.92); color: var(--sc-ink);
  font: 600 0.86rem/1.1 var(--sc-font-text); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color 140ms var(--sc-ease-out), border-color 140ms var(--sc-ease-out), transform 100ms var(--sc-ease-out);
}
.ubtn:active { transform: translateY(1px); }
.ubtn[disabled] { opacity: 0.5; cursor: not-allowed; }
.ubtn--sm { min-height: 32px; padding: 0.4rem 0.7rem; font-size: 0.8rem; }
.ubtn--wide { width: 100%; }
.ubtn--amber { background: var(--sc-accent); border-color: var(--sc-accent); color: var(--sc-accent-ink); }
.ubtn--neon { border-color: color-mix(in oklab, var(--gc-neon) 75%, transparent); box-shadow: 0 0 12px -3px color-mix(in oklab, var(--gc-neon) 60%, transparent), inset 0 0 8px -4px var(--gc-neon); }
.ubtn--ghost { background: rgb(14 18 24 / 0.7); }
@media (hover: hover) and (pointer: fine) {
  .ubtn:hover { border-color: color-mix(in oklab, var(--sc-ink) 34%, transparent); }
  .ubtn--amber:hover { background: #ffc266; }
  .ubtn--neon:hover { background: var(--gc-neon-wash); border-color: var(--gc-neon); }
}

/* ----------------------------------------------------------------- bottom -- */
.ubottom { position: absolute; left: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom)); display: flex; gap: 0.5rem; flex-wrap: wrap; }
.uhint { position: absolute; left: 50%; bottom: calc(4.6rem + env(safe-area-inset-bottom)); translate: -50% 0; margin: 0; padding: 0.45rem 0.8rem; border-radius: 999px; background: rgb(9 11 14 / 0.78); border: 1px solid var(--gc-line); font-size: 0.8rem; color: #c3cad3; pointer-events: none; transition: opacity 600ms var(--sc-ease-out); white-space: nowrap; }
.uhint.is-gone { opacity: 0; }
.uside:not([hidden]) ~ .uhint, .ugo:not([hidden]) ~ .uhint, .uchat:not([hidden]) ~ .uhint { opacity: 0; }
.utip { position: fixed; left: 0; top: 0; z-index: 30; pointer-events: none; padding: 0.35rem 0.6rem; border-radius: 6px; background: var(--sc-surface); border: 1px solid var(--gc-line-2); font-size: 0.82rem; max-width: 22rem; box-shadow: var(--sc-e2); }

/* ------------------------------------------------------------------- lift -- */
.ulift {
  position: absolute; right: 1rem; top: 4.4rem; width: 15rem; padding: 0.8rem; display: grid; gap: 0.6rem;
  background: rgb(14 18 24 / 0.95); border: 1px solid var(--gc-line-2); border-radius: var(--sc-r-lg); box-shadow: var(--sc-e3), var(--sc-edge);
}
.ulift__h { margin: 0; font-family: var(--sc-font-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sc-ink-soft); }
.ulift__keys { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.25rem; }
.ulift__keys a { display: flex; align-items: center; gap: 0.6rem; min-height: 2.4rem; padding: 0.2rem 0.4rem; border-radius: var(--sc-r-sm); color: var(--sc-ink-soft); text-decoration: none; font-size: 0.9rem; }
.ulift__keys a:hover { background: rgb(255 255 255 / 0.05); color: var(--sc-ink); }
.ulift__keys b { display: inline-grid; place-items: center; min-width: 2rem; height: 1.75rem; border: 1px solid var(--gc-line-2); border-radius: var(--sc-r-sm); background: linear-gradient(#171c25, #0f1319); font-family: var(--sc-font-display); font-stretch: 112%; font-weight: 780; font-size: 0.74rem; color: var(--sc-ink); }
.ulift__keys a[aria-current="true"] { color: var(--sc-ink); }
.ulift__keys a[aria-current="true"] b { border-color: var(--gc-neon); color: var(--gc-neon-soft); box-shadow: var(--gc-neon-glow); }
.ulift__out { font-size: 0.82rem; color: var(--sc-ink-soft); text-align: center; }

/* ------------------------------------------------------------- side card -- */
.uside {
  position: absolute; right: 1rem; top: 4.4rem; max-height: calc(100vh - 8.8rem - env(safe-area-inset-bottom)); width: min(25rem, calc(100vw - 2rem));
  overflow-y: auto; padding: 1.1rem 1.1rem 1.3rem; background: rgb(12 15 20 / 0.96); border: 1px solid var(--gc-line-2); border-radius: var(--sc-r-lg); box-shadow: var(--sc-e3), var(--sc-edge);
  scrollbar-width: thin;
}
.uside__x { position: absolute; right: 0.6rem; top: 0.6rem; width: 2.2rem; height: 2.2rem; display: grid; place-items: center; border: 0; border-radius: var(--sc-r-md); background: transparent; color: var(--sc-ink); cursor: pointer; }
.uside__x:hover { background: rgb(255 255 255 / 0.07); }
.uside__h { margin: 0.2rem 2.2rem 0.6rem 0; font-family: var(--sc-font-display); font-stretch: 112%; font-weight: 660; font-size: 1.35rem; line-height: 1.15; letter-spacing: -0.015em; }
.ulabel { margin: 0 0 0.3rem; font-family: var(--sc-font-mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gc-neon-soft); }
.umuted { color: var(--sc-ink-soft); font-size: 0.9rem; line-height: 1.5; }
.uerr { color: var(--gc-danger); font-size: 0.9rem; }
.ulink { display: inline-block; margin-top: 1rem; font-size: 0.86rem; color: var(--sc-ink); }
.ucard { display: grid; gap: 0.65rem; }
/* a build is shown whole: contained on a dark mat, never cropped (§8.6) */
.ucard__media { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: contain; border-radius: var(--sc-r-md); border: 1px solid var(--gc-line-2); background: #07090c; }
.ucard__mbtn { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--sc-r-md); }
.ucard__mbtn:focus-visible { outline: 2px solid var(--gc-neon); outline-offset: 2px; }
.ucard__strip { display: flex; gap: 0.35rem; overflow-x: auto; scrollbar-width: thin; }
.ucard__thumb { flex: none; width: 3.4rem; height: 2.4rem; padding: 0; border: 1px solid var(--gc-line-2); border-radius: 6px; background: #07090c; cursor: pointer; overflow: hidden; }
.ucard__thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.ucard__thumb:hover, .ucard__thumb:focus-visible { border-color: var(--gc-neon); outline: none; }
.ucard__where { margin: 0; display: flex; gap: 0.45rem; align-items: center; font-size: 0.82rem; color: var(--sc-ink-soft); }
.ucard__where b { display: inline-grid; place-items: center; min-width: 1.4rem; height: 1.4rem; border: 1px solid var(--gc-neon); border-radius: 3px; color: var(--gc-neon-soft); font-family: var(--sc-font-display); font-stretch: 112%; font-weight: 780; font-size: 0.66rem; }
.ucard__h { margin: 0; font-family: var(--sc-font-display); font-stretch: 112%; font-weight: 660; font-size: 1.4rem; line-height: 1.15; letter-spacing: -0.015em; padding-right: 2rem; }
.ucard__by { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; font-size: 0.9rem; }
.ucard__by a { color: var(--sc-ink); font-weight: 560; }
.ucard__facts { margin: 0; display: flex; flex-wrap: wrap; gap: 0.35rem; }
.ucard__facts span { padding: 0.15rem 0.5rem; border: 1px solid var(--gc-line); border-radius: 4px; font-size: 0.76rem; color: #c3cad3; }
.ucard__ex { margin: 0; color: #c3cad3; font-size: 0.92rem; line-height: 1.55; }
.ucard__acts { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.3rem; }
.uav { display: inline-grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 6px; background: #1b2330; font-family: var(--sc-font-display); font-stretch: 112%; font-weight: 720; font-size: 0.66rem; color: #eef1f5; flex: none; }
.uav--lg { width: 3rem; height: 3rem; font-size: 1rem; border-radius: 10px; }
.uav--ai { background: #0d2a30; color: #9ff0ff; box-shadow: inset 0 0 0 1px rgb(61 227 255 / 0.5); }
.ubadge { font-family: var(--sc-font-mono); font-size: 0.62rem; letter-spacing: 0.05em; text-transform: uppercase; padding: 0.08rem 0.35rem; border-radius: 3px; border: 1px solid var(--gc-line-2); color: var(--sc-ink); }
.ubadge--ai { background: #3de3ff; border-color: #3de3ff; color: #031418; font-weight: 700; }
.ubadge--partner { border-color: var(--gc-neon); color: var(--gc-neon-soft); }
.ubadge--found { border-color: color-mix(in oklab, var(--sc-accent) 60%, transparent); color: var(--sc-accent); }
.uroom__owner { display: flex; gap: 0.8rem; align-items: center; }
.uroom__welcome { margin: 0.7rem 0; padding: 0.7rem 0.85rem; border-left: 2px solid var(--gc-neon); background: rgb(255 255 255 / 0.03); font-size: 0.92rem; }
.uroom__stats { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; font-size: 0.84rem; color: var(--sc-ink-soft); }
.uroom__stats b { color: var(--sc-ink); font-family: var(--sc-font-display); font-stretch: 112%; }
.uhere__list { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: 0.3rem; }
.uhere__b { display: flex; width: 100%; align-items: center; gap: 0.6rem; padding: 0.55rem 0.6rem; border: 1px solid var(--gc-line); border-radius: var(--sc-r-md); background: transparent; color: var(--sc-ink); text-align: left; font: inherit; font-size: 0.9rem; text-decoration: none; cursor: pointer; }
.uhere__b:hover { border-color: var(--gc-line-2); background: rgb(255 255 255 / 0.03); }
.uhere__b b { font-family: var(--sc-font-mono); font-size: 0.64rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gc-neon-soft); min-width: 4.5rem; }
.uhere__p { display: flex; gap: 0.5rem; align-items: center; font-size: 0.9rem; }
.uhere__p a { color: var(--sc-ink); }
.uconc__list { padding-left: 1.1rem; display: grid; gap: 0.5rem; font-size: 0.9rem; color: #d3d9e1; }
.ubar__form { display: flex; gap: 0.45rem; margin: 0.8rem 0; }
.ubar__form input, .uside input[type="search"] { flex: 1; min-width: 0; min-height: 40px; padding: 0.5rem 0.7rem; background: #07090c; border: 1px solid var(--gc-line-2); border-radius: var(--sc-r-md); color: var(--sc-ink); font: inherit; font-size: 0.92rem; width: 100%; }
.ubar__form input:focus-visible, .uside input:focus-visible { outline: none; border-color: color-mix(in oklab, var(--sc-ink) 45%, transparent); }
.ubar__out { display: grid; gap: 0.7rem; }
.ubar__q { margin: 0; justify-self: end; max-width: 85%; padding: 0.5rem 0.7rem; border-radius: 10px 10px 2px 10px; background: #1b2330; font-size: 0.9rem; }
.ubar__a { padding: 0.7rem 0.8rem; border-radius: 10px 10px 10px 2px; background: #0d2a30; border: 1px solid rgb(61 227 255 / 0.35); font-size: 0.92rem; }
.ubar__a p { margin: 0 0 0.4rem; }
.ubar__src { margin: 0.2rem 0 0.4rem; padding-left: 1rem; font-size: 0.86rem; }
.ubar__src a { color: var(--sc-ink); }

/* ------------------------------------------------------------------- chat -- */
.uchat {
  position: absolute; left: 1rem; bottom: calc(4.2rem + env(safe-area-inset-bottom)); width: min(24rem, calc(100vw - 2rem)); height: min(22rem, 46vh);
  display: grid; grid-template-rows: auto 1fr auto; background: rgb(12 15 20 / 0.92); border: 1px solid var(--gc-line-2); border-radius: var(--sc-r-lg); box-shadow: var(--sc-e3); overflow: hidden;
}
.uchat__head { display: flex; align-items: center; justify-content: space-between; padding: 0.5rem 0.4rem 0.5rem 0.9rem; border-bottom: 1px solid var(--gc-line); font-size: 0.86rem; }
.uchat__head .uside__x { position: static; width: 1.9rem; height: 1.9rem; }
.uchat__list { list-style: none; margin: 0; padding: 0.6rem 0.8rem; overflow-y: auto; display: grid; gap: 0.55rem; align-content: start; scrollbar-width: thin; }
.umsg { display: grid; gap: 0.1rem; font-size: 0.88rem; }
.umsg__by { display: flex; align-items: center; gap: 0.35rem; font-size: 0.76rem; color: var(--sc-ink-soft); }
.umsg__by a { color: var(--sc-ink); font-weight: 600; }
.umsg__by time { margin-left: auto; font-family: var(--sc-font-mono); font-size: 0.68rem; }
.umsg__t { color: #e2e6eb; overflow-wrap: anywhere; }
.umsg--ai .umsg__t { color: #c9f6ff; }
.uchat__form { display: flex; gap: 0.4rem; padding: 0.5rem; border-top: 1px solid var(--gc-line); }
.uchat__form input { flex: 1; min-width: 0; min-height: 36px; padding: 0.4rem 0.6rem; background: #07090c; border: 1px solid var(--gc-line-2); border-radius: var(--sc-r-md); color: var(--sc-ink); font: inherit; font-size: 0.9rem; }
.uchat__gate { margin: 0; padding: 0.6rem 0.8rem; font-size: 0.84rem; color: var(--sc-ink-soft); border-top: 1px solid var(--gc-line); }
.uchat__gate a { color: var(--sc-ink); }

/* -------------------------------------------------------- tour, focus, load -- */
.utour, .ufocus { position: absolute; left: 50%; top: 4.6rem; translate: -50% 0; display: flex; align-items: center; gap: 0.7rem; padding: 0.45rem 0.5rem 0.45rem 0.9rem; border-radius: 999px; background: rgb(12 15 20 / 0.95); border: 1px solid color-mix(in oklab, var(--gc-neon) 60%, transparent); box-shadow: var(--sc-e2), 0 0 18px -6px var(--gc-neon); font-size: 0.88rem; white-space: nowrap; }
.uload { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; background: #05070a; opacity: 0; pointer-events: none; transition: opacity 360ms var(--sc-ease-out); }
.uload.is-on { opacity: 1; pointer-events: auto; }
.uload__sign { display: grid; justify-items: center; gap: 0.7rem; }
.uload__t { font-family: var(--sc-font-display); font-stretch: 125%; font-weight: 760; font-size: clamp(2.4rem, 6vw, 4rem); color: #ffeaf5; text-shadow: 0 0 3px #fff, 0 0 12px var(--gc-neon), 0 0 32px var(--gc-neon); animation: flicker 2.4s steps(1, end) infinite; }
.uload__s { font-family: var(--sc-font-mono); font-size: 0.78rem; letter-spacing: 0.3em; text-transform: uppercase; color: #fff3d6; }
@keyframes flicker { 0%, 100% { opacity: 1; } 42% { opacity: 1; } 43% { opacity: 0.55; } 45% { opacity: 1; } 71% { opacity: 0.8; } 72% { opacity: 1; } }

/* ---------------------------------------------------------------- toasts -- */
.utoasts { position: absolute; left: 50%; bottom: calc(4.6rem + env(safe-area-inset-bottom)); translate: -50% 0; display: grid; gap: 0.5rem; justify-items: center; width: min(92vw, 30rem); pointer-events: none; }
.utoast { pointer-events: auto; display: flex; align-items: center; gap: 0.8rem; padding: 0.6rem 0.6rem 0.6rem 0.9rem; border-radius: var(--sc-r-md); background: var(--sc-ink); color: #0b0e12; font-weight: 560; font-size: 0.9rem; box-shadow: var(--sc-e3); opacity: 0; translate: 0 8px; transition: opacity 220ms var(--sc-ease-out), translate 260ms var(--sc-ease-out); }
.utoast.in { opacity: 1; translate: 0 0; }
.utoast--err { background: #2a1512; color: #ffd9d2; border: 1px solid rgb(255 122 102 / 0.5); }
.utoast--info { background: var(--sc-surface); color: var(--sc-ink); border: 1px solid var(--gc-line-2); }
.utoast .ubtn { background: #0b0e12; color: var(--sc-ink); border-color: #0b0e12; }
.utoast__a { display: flex; gap: 0.35rem; }

/* ----------------------------------------------------------------- phones -- */
@media (max-width: 760px) {
  .u-hide-sm { display: none; }
  .utop { padding-inline: 0.7rem; gap: 0.4rem; }
  .uplace { gap: 0.4rem; padding-right: 0.6rem; } .utop__end { gap: 0.45rem; } /* room for a floor's whole short name ('Builds & Games') at 390 px */
  .ubrand span { display: none; }
  .uplace span { max-width: none; }
  .uside { left: 0.5rem; right: 0.5rem; top: auto; width: auto; bottom: calc(4.4rem + env(safe-area-inset-bottom)); max-height: 62vh; }
  .ulift { left: 0.5rem; right: 0.5rem; width: auto; top: auto; bottom: calc(4.4rem + env(safe-area-inset-bottom)); }
  .uchat { left: 0.5rem; right: 0.5rem; width: auto; bottom: calc(4.4rem + env(safe-area-inset-bottom)); height: 48vh; }
  .ubottom { left: 0.5rem; right: 0.5rem; justify-content: center; }
  .uhint { bottom: calc(4.6rem + env(safe-area-inset-bottom)); white-space: normal; text-align: center; width: max-content; max-width: 88vw; }
  .wneon__t { font-size: 2.4rem; }
}
@media (max-width: 480px) { .u-hide-xs { display: none; } }
@media (prefers-reduced-motion: reduce) { .uload__t { animation: none; } .utoast { translate: none; } }

/* scan-to-phone block on mobile builds (desktop only) */
.ucard__scan { display: flex; gap: 0.75rem; align-items: center; padding: 0.55rem; border: 1px solid var(--gc-line); border-radius: var(--sc-r-md); background: rgb(255 255 255 / 0.02); }
.ucard__qr { width: 84px; height: 84px; border-radius: 4px; image-rendering: pixelated; flex: none; }
.ucard__scan p { margin: 0; font-size: 0.82rem; color: #c3cad3; line-height: 1.45; }
.ucard__scan b { color: var(--sc-ink); }
.wcap--qr { font-size: 0.7rem; }

/* ------------------------------------------------------- v3: the building -- */
.uplace__sub { font-style: normal; font-family: var(--sc-font-mono); font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--sc-ink-soft); white-space: nowrap; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.uplace__sub:empty { display: none; }
.wtag--station { flex-wrap: wrap; justify-content: center; max-width: 16rem; }
.wtag--station i { flex-basis: 100%; text-align: center; font-style: normal; font-size: 0.72rem; color: #a9f3ff; }
.ubadge--in { border-color: #6dff8a; color: #6dff8a; }

/* go to */
.ugo {
  position: absolute; left: 1rem; bottom: calc(4.4rem + env(safe-area-inset-bottom)); width: min(23rem, calc(100vw - 2rem)); max-height: calc(100vh - 9rem); overflow-y: auto;
  padding: 0.9rem; display: grid; gap: 0.7rem; background: rgb(12 15 20 / 0.96); border: 1px solid var(--gc-line-2); border-radius: var(--sc-r-lg); box-shadow: var(--sc-e3), var(--sc-edge);
}
.ugo__h { margin: 0; font-family: var(--sc-font-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gc-neon-soft); }
.ugo__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.3rem; }
.ugo__b { display: flex; align-items: center; gap: 0.75rem; width: 100%; padding: 0.5rem 0.6rem; border: 1px solid var(--gc-line); border-radius: var(--sc-r-md); background: transparent; color: var(--sc-ink); font: inherit; text-align: left; cursor: pointer; }
.ugo__b:hover, .ugo__b:focus-visible { border-color: var(--c); background: color-mix(in oklab, var(--c) 8%, transparent); outline: none; }
.ugo__b b { display: inline-grid; place-items: center; min-width: 2.1rem; height: 2.1rem; border: 1.5px solid var(--c); border-radius: 6px; color: var(--c); font-family: var(--sc-font-display); font-stretch: 118%; font-weight: 800; font-size: 0.85rem; box-shadow: 0 0 10px -3px var(--c); }
.ugo__b span { display: grid; gap: 0.1rem; }
.ugo__b strong { font-weight: 600; font-size: 0.92rem; }
.ugo__b small { font-size: 0.76rem; color: var(--sc-ink-soft); }
.ugo__row { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.ugo__tip { margin: 0; font-size: 0.78rem; color: var(--sc-ink-soft); }
.ugo__out { font-size: 0.82rem; color: var(--sc-ink-soft); }

/* lift buttons: top right, so they clear the map, and over it if they ever meet */
.uliftp { position: absolute; right: 1rem; top: 4.4rem; z-index: 1; display: grid; gap: 0.35rem; padding: 0.6rem; background: rgb(10 12 16 / 0.95); border: 1px solid color-mix(in oklab, var(--gc-neon) 55%, transparent); border-radius: 14px; box-shadow: var(--sc-e3), 0 0 22px -8px var(--gc-neon); }
.uliftp__h { margin: 0 0 0.2rem; text-align: center; font-family: var(--sc-font-mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gc-neon-soft); }
.uliftp__b { display: grid; justify-items: center; gap: 0.1rem; width: 4.2rem; padding: 0.45rem 0.3rem; border: 1px solid var(--gc-line-2); border-radius: 10px; background: linear-gradient(#161b24, #0d1016); color: var(--sc-ink); cursor: pointer; font: inherit; }
.uliftp__b b { font-family: var(--sc-font-display); font-stretch: 118%; font-weight: 800; font-size: 1.05rem; }
.uliftp__b small { font-size: 0.62rem; color: var(--sc-ink-soft); }
.uliftp__b:hover, .uliftp__b.is-here { border-color: var(--gc-neon); box-shadow: 0 0 12px -4px var(--gc-neon), inset 0 0 8px -4px var(--gc-neon); }
.uliftp__b.is-here b { color: var(--gc-neon-soft); }
.uside:not([hidden]) ~ .uliftp { right: calc(1.5rem + min(25rem, 100vw - 2rem)); }
.uside:not([hidden]) ~ .umap { display: none; } /* an open card has the right-hand side to itself: it ends above the bottom bar, the map steps aside */
/* too short for both: the map steps aside while you're in the lift; shorter still, the buttons go in a row */
@media (max-height: 700px) { .uliftp:not([hidden]) ~ .umap { display: none; } }
@media (max-width: 760px), (max-height: 520px) { .uliftp { grid-template-columns: repeat(5, auto); } .uliftp__h { display: none; } .uliftp__b { width: 3.2rem; } }

/* the map */
.umap { position: absolute; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom)); width: 260px; padding: 0.4rem; display: grid; gap: 0.35rem; background: rgb(8 10 14 / 0.9); border: 1px solid var(--gc-line-2); border-radius: 12px; box-shadow: var(--sc-e3); }
.umap__tabs { display: flex; gap: 0.25rem; }
.umap__t { flex: 1; min-height: 26px; border: 1px solid var(--gc-line); border-radius: 6px; background: transparent; color: var(--sc-ink-soft); font: 700 0.72rem var(--sc-font-display); cursor: pointer; }
.umap__t.is-on, .umap__t:hover { border-color: var(--c, var(--gc-neon)); color: var(--c, var(--gc-neon)); }
.umap__c { width: 100%; height: 178px; display: block; border-radius: 8px; cursor: crosshair; }

/* emotes */
.uemo { position: absolute; left: 1rem; bottom: calc(4.4rem + env(safe-area-inset-bottom)); display: flex; gap: 0.3rem; padding: 0.35rem; background: rgb(12 15 20 / 0.95); border: 1px solid var(--gc-line-2); border-radius: 999px; }
.uemo__b { width: 2.6rem; height: 2.6rem; border: 0; border-radius: 999px; background: transparent; font-size: 1.3rem; cursor: pointer; }
.uemo__b:hover { background: rgb(255 255 255 / 0.08); }

/* the video player */
.uplayer { position: fixed; inset: 0; z-index: 35; display: grid; place-items: center; padding: 1rem; }
.uplayer__bg { position: absolute; inset: 0; border: 0; background: rgb(3 4 6 / 0.78); backdrop-filter: blur(4px); cursor: pointer; }
.uplayer__box { position: relative; z-index: 1; width: min(1100px, 100%); display: grid; gap: 0.8rem; padding: 0.8rem; background: #0b0d12; border: 1px solid var(--gc-line-2); border-radius: var(--sc-r-lg); box-shadow: var(--sc-e3), 0 0 60px -20px #ff4f5e; }
.uplayer__v { aspect-ratio: 16 / 9; background: #000; border-radius: var(--sc-r-md); overflow: hidden; }
.uplayer__v iframe { width: 100%; height: 100%; border: 0; display: block; }
.uplayer__bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.8rem; align-items: end; }
.uplayer__h { margin: 0.1rem 0 0.2rem; font-family: var(--sc-font-display); font-stretch: 112%; font-weight: 660; font-size: 1.15rem; line-height: 1.2; }

/* the joystick (phones) */
.ujoy { position: fixed; left: 1.1rem; bottom: calc(5.2rem + env(safe-area-inset-bottom)); z-index: 9; width: 112px; height: 112px; border-radius: 50%; background: radial-gradient(circle, rgb(255 255 255 / 0.05), rgb(255 255 255 / 0.02)); border: 1px solid rgb(255 255 255 / 0.18); box-shadow: inset 0 0 18px rgb(255 79 163 / 0.18); touch-action: none; display: grid; place-items: center; }
.ujoy i { width: 46px; height: 46px; border-radius: 50%; background: rgb(255 255 255 / 0.16); border: 1.5px solid rgb(255 79 163 / 0.7); box-shadow: 0 0 14px -2px rgb(255 79 163 / 0.7); transition: transform 60ms linear; }
/* nothing sits on the joystick (it's under the HUD): panels go beside it, or above it on an upright phone */
.uw--joy { --joy-r: calc(1.1rem + 112px + 0.6rem); --joy-t: calc(5.2rem + 112px + 0.6rem + env(safe-area-inset-bottom)); }
.uw--joy :is(.ugo, .uemo, .uchat) { left: var(--joy-r); }

@media (max-width: 760px) {
  .ugo, .uemo { left: 0.5rem; right: 0.5rem; width: auto; }
  .uemo { justify-content: center; }
  .umap { right: 0.5rem; left: auto; bottom: calc(4.4rem + env(safe-area-inset-bottom)); width: 200px; }
  .umap__c { height: 140px; }
  .uliftp { right: 0.5rem; top: auto; bottom: calc(5.2rem + env(safe-area-inset-bottom)); }
  /* one thing at a time down here: an open panel hides the lift buttons and the map; the lift buttons hide the map */
  .u-hud:has(> :is(.ugo, .uside, .uchat, .uemo):not([hidden])) > :is(.uliftp, .umap), .uliftp:not([hidden]) ~ .umap { display: none; }
  .uplace__sub { display: none; }
  .uhint { top: calc(4rem + env(safe-area-inset-top)); bottom: auto; }
  .uw--joy .uside { left: var(--joy-r); }
  .uw--joy .umap { width: min(200px, calc(100vw - var(--joy-r) - 0.5rem)); }
  .uw--joy .utoasts { left: var(--joy-r); right: 0.5rem; width: auto; translate: none; }
  .uw--joy .ubottom { flex-wrap: nowrap; } /* a second row would climb into the joystick */
}
@media (max-width: 380px) { .uplace span { font-size: 0.86rem; } .ucount { font-size: 0.7rem; } }
@media (max-width: 400px) { .uw--joy .ubottom { gap: 0.35rem; } .uw--joy .ubottom .ubtn { padding-inline: 0.6rem; } }
@media (max-width: 760px) and (orientation: portrait) {
  .uw--joy :is(.ugo, .uside, .uchat, .uemo) { left: 0.5rem; bottom: var(--joy-t); }
  .uw--joy .ugo { max-height: calc(100% - var(--joy-t) - 4.6rem - env(safe-area-inset-top)); }
  .uw--joy .uside { max-height: min(62vh, calc(100% - var(--joy-t) - 4.6rem - env(safe-area-inset-top))); }
  .uw--joy .uchat { height: min(48vh, calc(100% - var(--joy-t) - 4.6rem - env(safe-area-inset-top))); }
  .uw--joy .uliftp { bottom: var(--joy-t); }
  .uw--joy .utoasts { left: 0.5rem; bottom: var(--joy-t); } /* a full-width line above the joystick, not a column beside it */
}

/* ------------------------------------------------------- v4: wayfinding -- */
/* the brand's one action colour for doing things (amber is the Join button and the roof) */
.ubtn--go { background: #ff4fa3; border-color: #ff4fa3; color: #12050c; }
@media (hover: hover) and (pointer: fine) { .ubtn--go:hover { background: #ff78ba; border-color: #ff78ba; } }
.u-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; pointer-events: none; }
.upicto { width: 1.05rem; height: 1.05rem; flex: none; }
.ulinkbtn { padding: 0; border: 0; background: none; color: var(--sc-ink); font: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
kbd { display: inline-grid; place-items: center; min-width: 1.35rem; height: 1.35rem; padding: 0 0.3rem; border: 1px solid currentColor; border-radius: 4px; font: 700 0.7rem/1 var(--sc-font-mono); opacity: 0.85; }

/* the You menu */
.uyou { position: relative; }
.ume { font: inherit; font-size: 0.86rem; cursor: pointer; }
.umenu { position: absolute; right: 0; top: calc(100% + 0.4rem); min-width: 12rem; display: grid; gap: 0.15rem; padding: 0.35rem; background: rgb(12 15 20 / 0.98); border: 1px solid var(--gc-line-2); border-radius: var(--sc-r-md); box-shadow: var(--sc-e3); z-index: 2; }
.umenu__i { display: flex; align-items: center; gap: 0.6rem; min-height: 40px; padding: 0.35rem 0.6rem; border-radius: var(--sc-r-sm); color: var(--sc-ink); text-decoration: none; font-size: 0.88rem; }
.umenu__i:hover, .umenu__i:focus-visible { background: rgb(255 255 255 / 0.06); outline: none; }

/* the floor strip: seven chips down the right edge, always there; yours is open with its club name */
.ustrip { position: absolute; right: 0.75rem; top: 4.6rem; display: grid; gap: 0.3rem; justify-items: end; }
.ustrip__c { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.1rem; padding: 0.15rem; border: 1px solid var(--gc-line); border-radius: 999px; background: rgb(9 11 14 / 0.78); color: var(--sc-ink); font: inherit; cursor: pointer; }
.ustrip__c b { display: inline-grid; place-items: center; width: 1.75rem; height: 1.75rem; border: 1.5px solid var(--c); border-radius: 999px; color: color-mix(in oklab, var(--c) 35%, #fff); font-family: var(--sc-font-display); font-stretch: 118%; font-weight: 800; font-size: 0.74rem; box-shadow: 0 0 8px -3px var(--c); }
.ustrip__c span { display: none; padding-right: 0.55rem; font-size: 0.78rem; font-weight: 600; white-space: nowrap; }
.ustrip__c[aria-current] { border-color: color-mix(in oklab, var(--c) 70%, transparent); background: color-mix(in oklab, var(--c) 14%, rgb(9 11 14 / 0.9)); }
.ustrip__c[aria-current] b { background: var(--c); color: #0b0d11; }
.ustrip__c[aria-current] span { display: inline; }
.ustrip__c:hover, .ustrip__c:focus-visible { border-color: var(--c); outline: none; }
.uside:not([hidden]) ~ .ustrip { right: calc(1.5rem + min(25rem, 100vw - 2rem)); }
@media (hover: hover) and (pointer: fine) { .ustrip__c:hover span { display: inline; } }

/* the lift's buttons: every floor's full name */
.uliftp__b { grid-template-columns: auto 1fr; justify-items: start; align-items: center; column-gap: 0.55rem; width: 13.5rem; padding: 0.35rem 0.5rem; text-align: left; }
.uliftp__b b { display: inline-grid; place-items: center; width: 1.9rem; height: 1.9rem; border: 1.5px solid var(--c, var(--gc-neon)); border-radius: 8px; color: color-mix(in oklab, var(--c, var(--gc-neon)) 35%, #fff); font-size: 0.9rem; }
.uliftp__n { display: grid; gap: 0.05rem; min-width: 0; }
.uliftp__n strong { font-size: 0.82rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.uliftp__n small { font-size: 0.66rem; color: var(--sc-ink-soft); }
.uliftp__b:hover, .uliftp__b.is-here { border-color: var(--c, var(--gc-neon)); box-shadow: 0 0 12px -4px var(--c, var(--gc-neon)), inset 0 0 8px -4px var(--c, var(--gc-neon)); }
.uliftp__b.is-here b { background: var(--c, var(--gc-neon)); color: #0b0d11; }

/* the arrival card: the door board's lines, at the top in the floor's colour, folding into the pill */
.uarrive { position: absolute; left: 50%; top: 4.4rem; translate: -50% -0.6rem; width: min(36rem, calc(100vw - 2rem)); display: grid; gap: 0.3rem; padding: 0.75rem 0.9rem 0.7rem; border-radius: var(--sc-r-lg); background: rgb(10 12 16 / 0.95); border: 1px solid color-mix(in oklab, var(--lvl) 70%, transparent); box-shadow: var(--sc-e3), 0 0 32px -12px var(--lvl); opacity: 0; transition: opacity 320ms var(--sc-ease-out), translate 420ms var(--sc-ease-out), scale 420ms var(--sc-ease-out); }
.uarrive.is-in { opacity: 1; translate: -50% 0; }
.uarrive.is-folding { opacity: 0; translate: calc(-50% + var(--fold-x, 0px)) var(--fold-y, 0px); scale: 0.18; transition-duration: 480ms; }
.uarrive { grid-template-columns: minmax(0, 1fr); } /* nothing inside widens the card past the screen */
.uarrive__h { display: flex; align-items: center; gap: 0.6rem; padding-right: 2.1rem; }
.uarrive__h b { display: inline-grid; place-items: center; min-width: 2.2rem; height: 2.2rem; border-radius: 8px; background: var(--lvl); color: #0b0d11; font-family: var(--sc-font-display); font-stretch: 118%; font-weight: 800; font-size: 1.1rem; }
.uarrive__h span { min-width: 0; overflow-wrap: anywhere; font-family: var(--sc-font-display); font-stretch: 118%; font-weight: 760; font-size: 0.98rem; letter-spacing: 0.06em; color: color-mix(in oklab, var(--lvl) 40%, #fff); }
.uarrive__l { margin: 0; font-size: 0.86rem; line-height: 1.45; color: #d7dce3; }
.uarrive__l b { color: color-mix(in oklab, var(--lvl) 45%, #fff); font-weight: 650; }
.uarrive__a { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.25rem; }
.uarrive__a .ubtn { max-width: 100%; white-space: normal; text-align: left; }
.uarrive__x { position: absolute; right: 0.45rem; top: 0.45rem; }

/* the focus prompt: what's in focus and the one thing it does */
.uprompt { position: absolute; left: 50%; bottom: calc(4.4rem + env(safe-area-inset-bottom)); translate: -50% 0; display: flex; align-items: center; gap: 0.75rem; max-width: min(40rem, calc(100vw - 2rem)); padding: 0.35rem 0.4rem 0.35rem 0.85rem; border-radius: 999px; background: rgb(10 12 16 / 0.95); border: 1px solid color-mix(in oklab, var(--lvl, #fff) 55%, transparent); box-shadow: var(--sc-e3), 0 0 22px -10px var(--lvl, #fff); }
.uprompt__t { margin: 0; min-width: 0; display: flex; align-items: center; gap: 0.45rem; font-size: 0.86rem; white-space: nowrap; overflow: hidden; }
.uprompt__t .upicto { color: var(--lvl, #fff); }
.uprompt__type { font-family: var(--sc-font-mono); font-size: 0.68rem; letter-spacing: 0.08em; color: color-mix(in oklab, var(--lvl, #fff) 45%, #fff); }
.uprompt__t b { font-weight: 650; overflow: hidden; text-overflow: ellipsis; }
.uprompt__sub { color: var(--sc-ink-soft); overflow: hidden; text-overflow: ellipsis; }
.uprompt__sub::before, .uprompt__t b::before { content: '· '; color: var(--sc-ink-soft); font-weight: 400; }
.uprompt__b { flex: none; min-height: 44px; border-radius: 999px; background: #ffffff; border-color: #ffffff; color: #0b0d11; }
.uprompt:not([hidden]) ~ .uhint { opacity: 0; }
.u-hud:has(> .uprompt:not([hidden])) .utoasts { bottom: calc(8rem + env(safe-area-inset-bottom)); }
@media (max-width: 760px) and (orientation: portrait) { .uw--joy .u-hud:has(> .uprompt:not([hidden])) .utoasts { bottom: var(--joy-t); } }
/* on a phone an open card has the lower screen: a toast goes up under the top bar */
@media (max-width: 760px) { .u-hud:has(> :is(.ugo, .uside, .uchat):not([hidden])) .utoasts { top: calc(3.9rem + env(safe-area-inset-top)); bottom: auto !important; } }

/* the floor guide */
.ugo__f { display: grid; gap: 0.25rem; }
.ugo__b[aria-current] { border-color: var(--c); background: color-mix(in oklab, var(--c) 9%, transparent); }
.ugo__depts { display: flex; flex-wrap: wrap; gap: 0.25rem; padding-left: 2.85rem; }
.ugo__b--dept { width: auto; min-height: 32px; padding: 0.25rem 0.6rem; font-size: 0.8rem; border-color: color-mix(in oklab, var(--c) 35%, var(--gc-line)); }

/* the floor card */
.ufloor__h { display: flex; align-items: center; gap: 0.6rem; }
.ufloor__h b { display: inline-grid; place-items: center; min-width: 2rem; height: 2rem; border-radius: 7px; background: var(--lvl); color: #0b0d11; font-family: var(--sc-font-display); font-stretch: 118%; font-weight: 800; font-size: 0.95rem; }
.ufloor__g { margin: 0.6rem 0 0.9rem; }
.ufloor__gh { margin: 0 0 0.35rem; display: flex; align-items: center; gap: 0.45rem; font-family: var(--sc-font-mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: color-mix(in oklab, var(--lvl) 45%, #fff); }
.ufloor__gh .upicto { color: var(--lvl); }
.ufloor__list, .ufloor__not { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.3rem; }
.ufloor__i { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.4rem 0.6rem; padding: 0.5rem 0.6rem; border: 1px solid var(--gc-line); border-radius: var(--sc-r-md); }
.ufloor__t { display: grid; gap: 0.1rem; min-width: 0; }
.ufloor__t strong { font-weight: 600; font-size: 0.9rem; }
.ufloor__t small { font-size: 0.76rem; color: var(--sc-ink-soft); }
.ufloor__t .ubadge { justify-self: start; } /* the AI tag is a tag, not a bar */
.ufloor__a { display: flex; gap: 0.3rem; }
.ufloor__not { grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); }
.ufloor__go { width: 100%; min-height: 36px; padding: 0.35rem 0.55rem; border: 1px solid var(--gc-line); border-radius: var(--sc-r-sm); background: transparent; color: #c3cad3; font: inherit; font-size: 0.8rem; text-align: left; cursor: pointer; }
.ufloor__go:hover, .ufloor__go:focus-visible { border-color: var(--gc-line-2); color: var(--sc-ink); outline: none; }

/* reports */
.ureport { display: grid; gap: 0.55rem; }
.ureport__sel, .ureport input { min-height: 40px; padding: 0.45rem 0.6rem; background: #07090c; border: 1px solid var(--gc-line-2); border-radius: var(--sc-r-md); color: var(--sc-ink); font: inherit; font-size: 0.9rem; }

/* Full view (until the display kit's own dialog): every picture whole */
.uplayer__v--whole { aspect-ratio: auto; height: min(70vh, 56rem); display: grid; place-items: center; background: #050608; }
.uplayer__v--whole img, .uplayer__v--whole video { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }

/* the recorder (?capture) sees the building, not the interface; the dressing room has the screen to itself */
body.u-capture .u-hud, body.u-capture .u-labels, body.u-capture .ujoy { display: none !important; }
/* Look closer: the build has the screen; the bottom row, map, strip and prompt step aside for its bar */
body.u-looking :is(.ubottom, .umap, .ustrip, .uliftp, .uprompt, .uhint, .uemo, .uarrive) { display: none !important; }
.udress { position: fixed; inset: 0; z-index: 45; }
body.u-dressing .u-labels, body.u-dressing .ujoy, body.u-dressing .u-hud > :not(.utoasts):not(.u-sr) { display: none !important; }

@media (max-width: 760px) {
  .ustrip { right: 0.5rem; top: 4.2rem; gap: 0.25rem; }
  .ustrip__c { min-height: 44px; min-width: 44px; justify-content: center; }
  .ustrip__c b { width: 2rem; height: 2rem; }
  .ustrip__c span, .ustrip__c[aria-current] span { display: none; } /* codes only on phones */
  .uarrive { top: calc(3.9rem + env(safe-area-inset-top)); width: calc(100vw - 4.5rem); left: 0.5rem; translate: 0 -0.6rem; }
  .uarrive.is-in { translate: 0 0; }
  .uarrive.is-folding { translate: var(--fold-x, 0px) var(--fold-y, 0px); }
  .uarrive__l:nth-of-type(2) { display: none; } /* "Not here" lives in the floor card on phones */
  .uprompt { max-width: calc(100vw - 1rem); }
  .uprompt__type, .uprompt__sub { display: none; } /* the pictogram and the name; the rest is in the floor card */
  .uprompt__t b::before { content: none; }
  .u-hud:has(> :is(.ugo, .uside, .uchat, .uemo):not([hidden])) > :is(.ustrip, .uprompt) { display: none; } /* an open card has the screen; the prompt comes back when it closes */
}
/* on touch, the prompt is a 48 px pill above the bottom edge, right of the joystick */
.uw--joy .uprompt { left: var(--joy-r); right: 0.5rem; translate: none; bottom: calc(5.2rem + env(safe-area-inset-bottom)); max-width: none; }
.uw--joy .uprompt__b { min-height: 48px; }
@media (max-width: 760px) and (orientation: portrait) { .uw--joy .uprompt { bottom: calc(5.2rem + 112px - 48px + env(safe-area-inset-bottom)); } }
/* the lift on a short screen: one row of codes; on a phone: a column down the right, code and short name */
@media (max-height: 520px) { .uliftp { grid-auto-flow: column; grid-template-columns: none; } .uliftp__b { width: auto; grid-template-columns: auto; justify-items: center; padding: 0.35rem 0.3rem; } .uliftp__n { display: none; } }
@media (max-width: 760px) and (min-height: 521px) {
  .uliftp, .uw--joy .uliftp { top: calc(4.2rem + env(safe-area-inset-top)); bottom: auto; right: 0.5rem; grid-auto-flow: row; grid-template-columns: none; padding: 0.4rem; }
  .uliftp__b { width: auto; min-height: 44px; padding: 0.3rem 0.45rem; }
  .uliftp__n small { display: none; }
  .uliftp__n strong { max-width: 8.6rem; white-space: normal; text-overflow: clip; line-height: 1.15; text-wrap: balance; } /* the full name, on two lines if it needs them */
}
@media (prefers-reduced-motion: reduce) {
  .uarrive, .uarrive.is-in, .uarrive.is-folding { translate: -50% 0; scale: none; transition: opacity 200ms linear; }
  .uplace b { transition: none; }
}
@media (prefers-reduced-motion: reduce) and (max-width: 760px) { .uarrive, .uarrive.is-in, .uarrive.is-folding { translate: none; } }
