/* ==========================================
   IT-Impulse Reception Engine V1
   SVG silhouette hotspots + cinematic travel
   (loads with campus.css for panels / terminal)
   ========================================== */

/* Legacy white-dot / floor-map classes removed from CSS; guard if markup reappears */
.reception-hotspots,
.reception-hotspot,
.campus-map {
  display: none !important;
}

/* SR / keyboard failsafe — not a visual white-dot map */
.reception-skip-nav {
  position: absolute;
  z-index: 20;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  padding: 0;
  margin: 0;
  border: 0;
}

.reception-skip-nav:focus-within {
  left: var(--nx-gutter, 16px);
  top: var(--nx-header-offset-sm, calc(72px + env(safe-area-inset-top, 0px)));
  width: auto;
  height: auto;
  max-width: min(22rem, calc(100% - 32px));
  padding: 12px 14px;
  overflow: visible;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--campus-header-bg, var(--campus-glass-strong, rgba(248, 250, 252, 0.92)));
  border: 1px solid var(--nx-border-glass, rgba(255, 255, 255, 0.45));
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(10, 16, 24, 0.14);
  backdrop-filter: var(--campus-header-blur, blur(12px) saturate(1.08));
  -webkit-backdrop-filter: var(--campus-header-blur, blur(12px) saturate(1.08));
}

.reception-skip-nav__title {
  margin: 0 0 4px;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.55;
}

.reception-skip-nav button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.reception-skip-nav button:hover,
.reception-skip-nav button:focus-visible {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(20, 24, 30, 0.18);
  outline: none;
}

body.is-in-room .reception-skip-nav,
body.is-traveling .reception-skip-nav {
  display: none;
}

/* ---- Stage: plate + SVG share one parallax group ---- */
.reception-stage {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: #b8c2ca;
  transform-origin: var(--travel-x, 50%) var(--travel-y, 50%);
  transition: transform 1.05s cubic-bezier(0.22, 1, 0.36, 1);
  backface-visibility: hidden;
}

.reception-stage.is-zooming {
  transform: scale(1.08);
}

.reception-stage.is-approach-zoom {
  transform: scale(1.14);
}

.reception-stage.is-screen-dive-zoom {
  transform: scale(1.28);
}

.reception-parallax {
  position: absolute;
  inset: 0;
  transform-origin: 50% 50%;
}

/* Phone camera: the parallax group is the full 21:9 plate, panned so a
   hotspot sits in the living area. Engine sets --rx-cam-w/h and transform. */
body.is-rx-camera .reception-parallax {
  inset: auto;
  top: 0;
  left: 0;
  width: var(--rx-cam-w, 100%);
  height: var(--rx-cam-h, 100%);
  will-change: transform;
  transition: transform 0.72s cubic-bezier(0.22, 1, 0.36, 1);
}

body.is-rx-camera .reception-plate {
  object-fit: fill;
  object-position: 0 0;
  filter: contrast(1.05) saturate(1.04);
}

body.is-rx-camera-instant .reception-parallax {
  transition: none;
}

/* Ken Burns after the camera settles — individual transform properties
   compose with the inline pan, so the crop keeps drifting. */
body.is-rx-drift .reception-parallax {
  animation: rx-cam-drift 18s ease-in-out infinite alternate;
}

@keyframes rx-cam-drift {
  from {
    scale: 1;
    translate: 0 0;
  }
  to {
    scale: 1.036;
    translate: 9px -7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.is-rx-camera .reception-parallax {
    transition: none;
  }

  body.is-rx-drift .reception-parallax {
    animation: none;
  }
}

.reception-plate {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  /* Wide lobby (~21:9): cover crops side padding on 16:9, full scene on ultrawide */
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  user-select: none;
  -webkit-user-drag: none;
  image-rendering: auto;
}

.reception-plate.is-active {
  opacity: 1;
}

.reception-stage__vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 75% 65% at 50% 42%, transparent 30%, rgba(10, 16, 24, 0.18) 100%),
    linear-gradient(180deg, rgba(10, 16, 24, 0.1) 0%, transparent 32%, transparent 58%, rgba(10, 16, 24, 0.24) 100%);
  pointer-events: none;
  transition: background 0.8s ease;
  z-index: 1;
}

/* Lobby: no top wash — the canopy already frames the scene; a second band read as a seam */
body.reception-mode.is-in-lobby .reception-stage__vignette {
  background:
    radial-gradient(ellipse 78% 68% at 50% 44%, transparent 32%, rgba(10, 16, 24, 0.14) 100%),
    linear-gradient(180deg, transparent 0%, transparent 62%, rgba(10, 16, 24, 0.22) 100%);
}

body.is-approaching .reception-stage__vignette,
body.is-screen-diving .reception-stage__vignette {
  background:
    radial-gradient(
      ellipse 55% 50% at var(--travel-x, 50%) var(--travel-y, 50%),
      transparent 0%,
      rgba(10, 16, 24, 0.1) 40%,
      rgba(10, 16, 24, 0.5) 100%
    );
}

/* ---- SVG hotspot overlay ---- */
.reception-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  overflow: visible;
}

/* Idle: impulse trace only (no dark charcoal bed — reads clean on bright lobby) */
.reception-svg .hotspot-path {
  fill: transparent;
  stroke: transparent;
  stroke-width: 2.6;
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 9999;
  stroke-dashoffset: 0;
  pointer-events: none;
  outline: none;
  opacity: 1;
  transition:
    fill 520ms cubic-bezier(0.22, 1, 0.36, 1),
    stroke 520ms cubic-bezier(0.22, 1, 0.36, 1),
    stroke-width 520ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 520ms cubic-bezier(0.22, 1, 0.36, 1);
  filter: none;
  animation: none;
}

/* Rail off by default — was reading as a thick dark outline */
.reception-svg .hotspot-rail {
  fill: none;
  stroke: rgba(8, 10, 14, 0.35);
  stroke-width: 2.4;
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
  opacity: 0;
  transition: opacity 280ms ease;
}

.reception-svg .hotspot-trace {
  fill: none;
  stroke: url(#rx-idle-flow);
  stroke-width: 2.6;
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: var(--rx-segment, 120) var(--rx-gap, 840);
  stroke-dashoffset: 0;
  pointer-events: none;
  opacity: 1;
  filter: none;
  animation: none;
  transition:
    opacity 480ms cubic-bezier(0.22, 1, 0.36, 1),
    stroke 480ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: stroke-dashoffset, opacity;
}

/* Invisible fat-finger hit layer (≥ ~44px effective on coarse pointers) */
.reception-svg .hotspot-hit {
  fill: rgba(0, 0, 0, 0.001);
  stroke: rgba(0, 0, 0, 0.001);
  stroke-width: 18;
  vector-effect: non-scaling-stroke;
  cursor: pointer;
  pointer-events: visiblePainted;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.reception-svg .hotspot-path.is-hot,
.reception-svg .hotspot-path.is-focus,
.reception-svg .hotspot-path.is-tour {
  fill: rgba(212, 196, 168, 0.06);
  stroke: url(#rx-hover-gradient);
  stroke-width: 2.4;
  stroke-dasharray: 9999;
  filter: none;
  animation: rx-breathe 3.8s ease-in-out infinite;
  animation-delay: 0.35s;
  opacity: 1;
}

.reception-svg .hotspot-path.is-focus {
  stroke: #d4c4a8;
  fill: rgba(212, 196, 168, 0.06);
}

.reception-svg .hotspot-path.is-hot + .hotspot-rail,
.reception-svg .hotspot-path.is-focus + .hotspot-rail {
  opacity: 0;
}

/* The solid outline takes over while an object is lit, so the travelling
   impulse steps aside rather than crawling across it. */
.reception-svg .hotspot-trace.is-hot,
.reception-svg .hotspot-trace.is-tour {
  opacity: 0.12;
}

.reception-svg .hotspot-path.is-tour + .hotspot-rail {
  opacity: 0;
}

.reception-svg .hotspot-hit:focus-visible {
  outline: 1.5px solid rgba(255, 255, 255, 0.7);
  outline-offset: 3px;
  stroke: rgba(255, 255, 255, 0.35);
  stroke-width: 3;
}

@keyframes rx-breathe {
  0%, 100% { opacity: 0.88; }
  50% { opacity: 1; }
}

@keyframes rx-outline-breathe {
  0%, 100% {
    opacity: 0.78;
    stroke-width: 2.3;
  }
  50% {
    opacity: 0.95;
    stroke-width: 2.7;
  }
}

body.is-traveling .reception-svg {
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none !important;
}

body.is-in-lobby:not(.is-traveling) .reception-svg {
  opacity: 1;
  transition: opacity 0.55s 0.08s ease;
}

body.is-in-room .reception-svg {
  visibility: hidden;
  pointer-events: none;
}

/* ---- Lobby chrome: glass deck on desktop, rotary fan on phones ---- */

.rx-lobby-ui {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

/* ---- Leader line: card → the object it names ---- */

.rx-thread {
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
  opacity: 0;
  transition: opacity 200ms ease;
}

.rx-thread.is-live {
  opacity: 1;
}

/* A 1px champagne hair vanishes over the window and the white counter, which is
   most of what it has to cross. The silhouettes solve this with a dark rail
   under the impulse; a line this thin gets the same treatment as a shadow. */
.rx-thread__line {
  fill: none;
  stroke: url(#rx-thread-flow);
  stroke-width: 1.2;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 2px rgba(6, 10, 14, 0.75));
  transition: stroke-dashoffset 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.rx-thread__tip {
  fill: #f4ead2;
  opacity: 0;
  transition: opacity 220ms 240ms ease;
}

.rx-thread.is-live .rx-thread__tip {
  opacity: 0.9;
  animation: rx-thread-tip 1.8s 420ms ease-out infinite;
}

@keyframes rx-thread-tip {
  0% { filter: drop-shadow(0 0 0 rgba(244, 234, 210, 0.7)); }
  60%, 100% { filter: drop-shadow(0 0 7px rgba(244, 234, 210, 0)); }
}

/* ---- Desktop deck: a stack of hall cards on the lobby floor ---- */

.rx-compass {
  position: absolute;
  z-index: 6;
  pointer-events: none;
  transition:
    opacity 360ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

.rx-compass--deck {
  left: 50%;
  bottom: clamp(16px, 5vh, 46px);
  width: clamp(214px, 18vw, 248px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transform: translateX(calc(-50% - clamp(16px, 3vw, 46px)));
}

.rx-fan {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.rx-fan__sweep,
.rx-fan__gear,
.rx-fan__detents,
.rx-fan__hint,
.rx-fan__coach,
[data-rx-fan-live] {
  display: none;
}

.rx-fan__arc {
  --rx-card-h: 54px;
  --rx-step: 9px;
  --rx-depth: 30px;
  --rx-rot: 1.5deg;
  --rx-dim: 0.16;
  --rx-pop-amt: 10px;
  position: relative;
  height: calc(var(--rx-card-h) + 4 * var(--rx-step));
  perspective: 820px;
  perspective-origin: 50% 96%;
  pointer-events: auto;
  transition: height 440ms cubic-bezier(0.22, 1, 0.36, 1);
}

.rx-compass.is-open .rx-fan__arc {
  --rx-step: 60px;
  --rx-depth: 5px;
  --rx-rot: 0.4deg;
  --rx-dim: 0;
  --rx-pop-amt: 24px;
}

.rx-card {
  --rx-pop: 0px;
  --rx-scale: 1;
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: calc(20 - var(--rx-i));
  display: flex;
  align-items: center;
  gap: 10px;
  height: var(--rx-card-h);
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  background: linear-gradient(158deg, rgba(26, 32, 38, 0.62), rgba(9, 13, 17, 0.74));
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.08) inset;
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  color: rgba(238, 242, 247, 0.94);
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transform-origin: 50% 100%;
  transform:
    translate3d(
      0,
      calc(var(--rx-i) * var(--rx-step) * -1),
      calc(var(--rx-i) * var(--rx-depth) * -1 + var(--rx-pop))
    )
    rotateX(calc(var(--rx-i) * var(--rx-rot)))
    scale(var(--rx-scale));
  transition:
    transform 460ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 300ms ease,
    box-shadow 300ms ease;
}

.rx-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  background: rgba(5, 8, 11, 0.88);
  opacity: calc(var(--rx-i) * var(--rx-dim));
  pointer-events: none;
  transition: opacity 440ms ease;
}

.rx-card:hover,
.rx-card:focus-visible,
.rx-card.is-hot,
.rx-card.is-tour {
  --rx-pop: var(--rx-pop-amt);
  --rx-scale: 1.02;
  border-color: rgba(232, 217, 184, 0.55);
  box-shadow:
    0 16px 44px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(232, 217, 184, 0.18),
    0 1px 0 rgba(255, 255, 255, 0.14) inset;
}

.rx-card:focus-visible {
  outline: 2px solid rgba(232, 217, 184, 0.75);
  outline-offset: 3px;
}

.rx-card__gloss {
  position: absolute;
  inset: 0 0 auto;
  z-index: 1;
  height: 52%;
  border-radius: 20px 20px 0 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.rx-card__gloss::before {
  content: '';
  position: absolute;
  top: 0;
  right: 16%;
  left: 16%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
}

.rx-card__glyph,
.rx-card__text,
.rx-card__num {
  position: relative;
  z-index: 4;
}

.rx-card__go {
  display: none;
}

.rx-card__glyph {
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(232, 217, 184, 0.2);
  border-radius: 9px;
  background: rgba(232, 217, 184, 0.07);
  color: rgba(232, 217, 184, 0.68);
  transition:
    color 260ms ease,
    border-color 260ms ease,
    background 260ms ease,
    box-shadow 260ms ease;
}

.rx-card__glyph svg {
  width: 16px;
  height: 16px;
}

.rx-card:hover .rx-card__glyph,
.rx-card:focus-visible .rx-card__glyph,
.rx-card.is-hot .rx-card__glyph,
.rx-card.is-tour .rx-card__glyph {
  border-color: rgba(232, 217, 184, 0.62);
  background: rgba(232, 217, 184, 0.18);
  box-shadow: 0 0 14px rgba(232, 217, 184, 0.28);
  color: #f4ead2;
}

.rx-card__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.rx-card__name {
  overflow: hidden;
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  line-height: 1.2;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rx-card__sub {
  overflow: hidden;
  color: rgba(214, 222, 232, 0.6);
  font-size: 0.64rem;
  letter-spacing: 0.02em;
  line-height: 1.25;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rx-card__num {
  flex: none;
  margin-left: auto;
  color: rgba(232, 217, 184, 0.76);
  font-family: var(--nx-font-mono, ui-monospace, monospace);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.rx-fan__base {
  display: flex;
  gap: 8px;
  pointer-events: auto;
}

.rx-sat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  background: rgba(11, 15, 19, 0.62);
  box-shadow:
    0 6px 20px rgba(0, 0, 0, 0.16),
    0 1px 0 rgba(255, 255, 255, 0.07) inset;
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  color: rgba(232, 238, 245, 0.86);
  font: inherit;
  font-size: 0.7rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 260ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 260ms ease,
    background 260ms ease,
    color 260ms ease;
}

.rx-sat .ph {
  flex: none;
  color: #e8d9b8;
  font-size: 0.95rem;
}

.rx-sat:hover,
.rx-sat:focus-visible,
.rx-sat.is-hot,
.rx-sat.is-tour {
  transform: translateY(-2px);
  border-color: rgba(232, 217, 184, 0.5);
  background: rgba(20, 26, 32, 0.78);
  color: #fff;
}

.rx-sat:focus-visible {
  outline: 2px solid rgba(232, 217, 184, 0.75);
  outline-offset: 3px;
}

.rx-compass__guide {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  max-height: 64px;
  margin: 0;
  padding: 7px 7px 7px 12px;
  border: 1px solid rgba(232, 217, 184, 0.24);
  border-radius: 999px;
  background: rgba(9, 13, 17, 0.72);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.2),
    0 1px 0 rgba(255, 255, 255, 0.08) inset;
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  color: rgba(236, 240, 246, 0.92);
  font-size: 0.7rem;
  line-height: 1.35;
  letter-spacing: 0.01em;
  pointer-events: auto;
  transition:
    opacity 260ms ease,
    transform 260ms ease,
    max-height 320ms ease,
    margin 320ms ease,
    padding 320ms ease,
    border-color 320ms ease;
}

.rx-compass__beacon {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e8d9b8;
  box-shadow: 0 0 0 0 rgba(232, 217, 184, 0.55);
  animation: rx-compass-beacon 2.4s ease-out infinite;
}

@keyframes rx-compass-beacon {
  0% { box-shadow: 0 0 0 0 rgba(232, 217, 184, 0.55); }
  70%, 100% { box-shadow: 0 0 0 9px rgba(232, 217, 184, 0); }
}

.rx-compass__dismiss {
  flex: none;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(236, 240, 246, 0.7);
  font-size: 0.72rem;
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
}

.rx-compass__dismiss:hover {
  border-color: rgba(232, 217, 184, 0.45);
  background: rgba(232, 217, 184, 0.16);
  color: #fff;
}

/* Dismissed: the sticker collapses out of the column and takes the gap it left
   with it, so the deck settles back onto the floor without a hole underneath.
   Visibility follows once it has finished shrinking — otherwise the dismiss
   button stays in the tab order inside a sticker nobody can see. */
.rx-compass.is-quiet .rx-compass__guide {
  visibility: hidden;
  max-height: 0;
  margin-top: -10px;
  padding-top: 0;
  padding-bottom: 0;
  border-color: transparent;
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
  transition:
    opacity 260ms ease,
    transform 260ms ease,
    max-height 320ms ease,
    margin 320ms ease,
    padding 320ms ease,
    border-color 320ms ease,
    visibility 0s 320ms;
}

body.is-traveling .rx-lobby-ui,
body.is-in-room .rx-lobby-ui {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0s 0.3s;
}

/* ---- Phone: camera walk + fan dock (bp-md = 720) ----
   The 21:9 lobby cannot be a hotspot map on a phone. Walk mode pans the
   photograph onto one hall at a time. The fan stays the control: turn the
   seal to a hall, tap the raised card to enter. */
.rx-walk {
  display: none;
}

@media (max-width: 720px) {
  .rx-compass--deck {
    --rx-radius: 118px;
    --rx-spread: 34deg;
    --rx-hub: 64px;
    --rx-card-h: 52px;
    --rx-gear: 0deg;
    right: 0;
    bottom: max(10px, env(safe-area-inset-bottom, 0px));
    left: 0;
    width: auto;
    max-width: 100%;
    gap: 0;
    transform: none;
    padding:
      0
      max(12px, env(safe-area-inset-right, 0px))
      0
      max(12px, env(safe-area-inset-left, 0px));
  }

  .rx-fan {
    position: relative;
    display: block;
    gap: 0;
    padding-top: calc(var(--rx-radius) + 34px);
    touch-action: none;
  }

  .rx-fan__sweep {
    display: block;
    position: absolute;
    left: 50%;
    bottom: calc(var(--rx-hub) / 2);
    width: min(92%, calc(var(--rx-radius) * 2.35));
    height: calc(var(--rx-radius) + 24px);
    transform: translateX(-50%);
    pointer-events: none;
    overflow: visible;
  }

  .rx-fan__sweep path {
    fill: none;
    stroke: rgba(232, 217, 184, 0.38);
    stroke-width: 1.35;
    stroke-linecap: round;
    stroke-dasharray: 1.5 5.5;
  }

  .rx-fan__detents {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(var(--rx-hub) / 2);
    height: calc(var(--rx-radius) + 40px);
    pointer-events: none;
  }

  .rx-fan__detent {
    --rx-angle: calc(var(--rx-slot) * var(--rx-spread));
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 2px;
    height: 9px;
    border-radius: 1px;
    background: rgba(232, 217, 184, 0.34);
    transform-origin: 50% 50%;
    transform:
      translate(-50%, 50%)
      rotate(var(--rx-angle))
      translateY(calc(var(--rx-radius) * -1 - 14px));
  }

  .rx-fan__detent.is-home {
    width: 3px;
    height: 14px;
    background: rgba(232, 217, 184, 0.92);
    box-shadow: 0 0 10px rgba(232, 217, 184, 0.45);
  }

  .rx-fan.is-dragging .rx-fan__detent.is-home {
    background: #f4ead2;
  }

  .rx-fan__arc {
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(var(--rx-hub) / 2);
    height: calc(var(--rx-radius) + 40px);
    perspective: none;
    pointer-events: auto;
    touch-action: none;
    cursor: grab;
  }

  .rx-fan.is-dragging .rx-fan__arc {
    cursor: grabbing;
  }

  .rx-compass.is-open .rx-fan__arc {
    --rx-step: 9px;
    --rx-depth: 30px;
  }

  .rx-card {
    --rx-slot: 0;
    --rx-angle: calc(var(--rx-slot) * var(--rx-spread));
    --rx-lift: 0px;
    left: 50%;
    right: auto;
    z-index: 4;
    gap: 8px;
    width: 48px;
    min-width: 48px;
    min-height: 48px;
    padding: 0;
    justify-content: center;
    overflow: hidden;
    border-radius: 50%;
    opacity: 0.72;
    transform-origin: 50% 50%;
    transform:
      translate(-50%, 50%)
      rotate(var(--rx-angle))
      translateY(calc(var(--rx-radius) * -1 - var(--rx-lift)))
      rotate(calc(var(--rx-angle) * -1));
    transition:
      transform 640ms cubic-bezier(0.22, 1, 0.36, 1),
      width 640ms cubic-bezier(0.22, 1, 0.36, 1),
      opacity 420ms ease,
      border-color 300ms ease,
      box-shadow 300ms ease,
      border-radius 420ms ease,
      padding 420ms ease;
    user-select: none;
    -webkit-user-select: none;
  }

  .rx-card::after {
    display: none;
  }

  .rx-fan.is-dragging .rx-card,
  .rx-fan.is-instant .rx-card,
  .rx-fan.is-instant .rx-fan__seal {
    transition: none;
  }

  .rx-card.is-current {
    --rx-lift: 22px;
    z-index: 6;
    width: min(82vw, 300px);
    padding: 0 14px;
    justify-content: flex-start;
    overflow: visible;
    border-radius: 20px;
    opacity: 1;
    border-color: rgba(232, 217, 184, 0.55);
    box-shadow:
      0 16px 44px rgba(0, 0, 0, 0.3),
      0 0 0 1px rgba(232, 217, 184, 0.18),
      0 1px 0 rgba(255, 255, 255, 0.14) inset;
  }

  .rx-card.is-current .rx-card__text {
    flex: 1 1 auto;
    min-width: 0;
  }

  .rx-card.is-current .rx-card__name {
    overflow: visible;
    white-space: nowrap;
    text-overflow: clip;
    font-size: 0.8rem;
  }

  .rx-card.is-far {
    z-index: 3;
    width: 48px;
    justify-content: center;
    padding: 0;
    border-radius: 50%;
    opacity: 0.5;
  }

  .rx-card.is-far .rx-card__glyph {
    width: 28px;
    height: 28px;
    border-radius: 50%;
  }

  .rx-card:not(.is-current) .rx-card__text,
  .rx-card:not(.is-current) .rx-card__num,
  .rx-card:not(.is-current) .rx-card__go,
  .rx-card.is-far .rx-card__text,
  .rx-card.is-far .rx-card__num,
  .rx-card.is-far .rx-card__go {
    display: none;
  }

  .rx-card.is-current .rx-card__go {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 4;
    flex: none;
    margin-left: auto;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #1a1612;
    background: #e8d9b8;
    text-decoration: none;
    white-space: nowrap;
  }

  .rx-fan__hint {
    display: none;
    position: absolute;
    left: 50%;
    bottom: calc(var(--rx-hub) + 10px);
    z-index: 12;
    margin: 0;
    padding: 6px 12px;
    transform: translateX(-50%);
    border-radius: 999px;
    border: 1px solid rgba(232, 217, 184, 0.42);
    background: rgba(18, 16, 14, 0.78);
    color: #f4ead2;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    white-space: nowrap;
    pointer-events: none;
  }

  .rx-fan.is-hinting .rx-fan__hint {
    display: block;
  }

  .rx-fan.is-coaching .rx-fan__hint {
    display: none;
  }

  .rx-fan__coach {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 10;
    pointer-events: none;
  }

  .rx-fan__coach-hand {
    position: absolute;
    left: 50%;
    bottom: calc(var(--rx-hub) / 2);
    width: 22px;
    height: 22px;
    border: 1.5px solid rgba(244, 234, 210, 0.92);
    border-radius: 50%;
    background: rgba(232, 217, 184, 0.16);
    animation: rx-coach-orbit 2.6s cubic-bezier(0.45, 0, 0.55, 1) infinite;
  }

  .rx-fan__coach-copy {
    position: absolute;
    left: 50%;
    top: -8px;
    bottom: auto;
    z-index: 13;
    margin: 0;
    padding: 6px 12px;
    transform: translate(-50%, -100%);
    max-width: min(78vw, 280px);
    border-radius: 999px;
    border: 1px solid rgba(232, 217, 184, 0.42);
    background: rgba(18, 16, 14, 0.78);
    color: #f4ead2;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    line-height: 1.35;
    text-align: center;
    pointer-events: auto;
    cursor: pointer;
  }

  .rx-fan.is-coaching .rx-fan__gear {
    outline: 1px dashed rgba(232, 217, 184, 0.55);
    outline-offset: 6px;
    border-radius: 50%;
  }

  @keyframes rx-coach-orbit {
    0%,
    100% {
      transform:
        translate(-50%, 50%)
        rotate(-40deg)
        translateY(calc(var(--rx-radius) * -1 + 36px));
    }
    50% {
      transform:
        translate(-50%, 50%)
        rotate(40deg)
        translateY(calc(var(--rx-radius) * -1 + 36px));
    }
  }

  .rx-card.is-current .rx-card__num {
    display: none;
  }

  .rx-card.is-current .rx-card__glyph {
    border-color: rgba(232, 217, 184, 0.62);
    background: rgba(232, 217, 184, 0.18);
    box-shadow: 0 0 14px rgba(232, 217, 184, 0.28);
    color: #f4ead2;
  }

  .rx-card__sub {
    display: none;
  }

  .rx-fan__base {
    position: relative;
    z-index: 8;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 10px;
    width: 100%;
    pointer-events: none;
  }

  .rx-fan__base .rx-sat:first-child {
    justify-self: end;
  }

  .rx-fan__base .rx-sat:last-child {
    justify-self: start;
  }

  .rx-fan__gear {
    display: grid;
    place-items: center;
    position: relative;
    z-index: 9;
    width: var(--rx-hub);
    height: var(--rx-hub);
    padding: 0;
    border: 0;
    background: transparent;
    cursor: grab;
    pointer-events: auto;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
  }

  .rx-fan__gear:active,
  .rx-fan.is-dragging .rx-fan__gear {
    cursor: grabbing;
  }

  .rx-fan__gear:focus-visible {
    outline: 2px solid rgba(232, 217, 184, 0.8);
    outline-offset: 4px;
    border-radius: 50%;
  }

  .rx-fan__glow {
    position: absolute;
    inset: -18%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(232, 217, 184, 0.28) 0%, rgba(232, 217, 184, 0) 68%);
    pointer-events: none;
  }

  .rx-fan__seal {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter:
      drop-shadow(0 10px 18px rgba(0, 0, 0, 0.45))
      drop-shadow(0 0 10px rgba(232, 217, 184, 0.22));
    transform: rotate(var(--rx-gear, 0deg));
    transform-origin: 50% 50%;
    transition: transform 680ms cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
  }

  .rx-fan__gear.is-tick {
    animation: rx-hub-tick 400ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  [data-rx-fan-live] {
    display: block;
  }

  .rx-sat {
    justify-content: center;
    min-height: 48px;
    padding: 10px 12px;
    border-radius: 16px;
    font-size: 0.78rem;
    letter-spacing: 0.02em;
    pointer-events: auto;
  }

  .rx-sat span {
    overflow: hidden;
    min-width: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .rx-walk__index,
  .rx-walk__sheet {
    display: none !important;
  }

  .rx-compass__guide {
    display: none !important;
  }

  .rx-thread {
    display: none !important;
  }

  .rx-sat {
    min-height: 48px;
    padding: 10px 12px;
    border-radius: 16px;
    font-size: 0.78rem;
    letter-spacing: 0.02em;
  }

  .rx-sat .ph {
    font-size: 1.05rem;
  }

  .rx-walk {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 6;
    pointer-events: none;
  }

  .rx-walk__index {
    position: absolute;
    top: var(--nx-header-offset-sm, calc(72px + env(safe-area-inset-top, 0px)));
    right: max(8px, env(safe-area-inset-right, 0px));
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 4px;
    pointer-events: auto;
    border-radius: 16px;
    background: rgba(10, 14, 18, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(14px) saturate(1.1);
    -webkit-backdrop-filter: blur(14px) saturate(1.1);
  }

  .rx-walk__tick {
    display: grid;
    place-items: center;
    min-width: var(--nx-tap-min, 44px);
    min-height: var(--nx-tap-min, 44px);
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: rgba(247, 248, 250, 0.42);
    font-family: var(--nx-font-mono, ui-monospace, monospace);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    font-variant-numeric: tabular-nums;
    cursor: pointer;
    text-shadow: 0 1px 8px rgba(8, 12, 18, 0.55);
    transition: color 240ms ease, background 240ms ease;
  }

  .rx-walk__tick.is-current,
  .rx-walk__tick[aria-current="true"] {
    color: #e8d9b8;
    background: rgba(12, 16, 22, 0.28);
  }

  .rx-walk__tick:focus-visible {
    outline: 2px solid #e8d9b8;
    outline-offset: 2px;
  }

  .rx-walk__sheet {
    position: absolute;
    left: max(14px, env(safe-area-inset-left, 0px));
    right: max(14px, env(safe-area-inset-right, 0px));
    bottom: calc(60px + max(12px, env(safe-area-inset-bottom, 0px)));
    pointer-events: auto;
  }

  .rx-walk__enter {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 14px;
    min-height: 88px;
    padding: 16px 18px;
    border-radius: 22px;
    text-decoration: none;
    color: #f4f6f8;
    background:
      linear-gradient(165deg, rgba(28, 34, 42, 0.52) 0%, rgba(10, 14, 18, 0.62) 100%);
    border: 1px solid rgba(232, 217, 184, 0.38);
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.12) inset,
      0 18px 40px rgba(8, 12, 18, 0.28);
    backdrop-filter: blur(22px) saturate(1.18);
    -webkit-backdrop-filter: blur(22px) saturate(1.18);
    transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1), border-color 280ms ease;
  }

  .rx-walk__enter:active {
    transform: translateY(1px) scale(0.99);
  }

  .rx-walk__enter:focus-visible {
    outline: 2px solid #e8d9b8;
    outline-offset: 3px;
  }

  .rx-walk__num {
    font-family: var(--nx-font-mono, ui-monospace, monospace);
    font-size: 1.65rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #e8d9b8;
    font-variant-numeric: tabular-nums;
    line-height: 1;
  }

  .rx-walk__text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
  }

  .rx-walk__name {
    font-family: var(--nx-font-display, inherit);
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
  }

  .rx-walk__sub {
    font-size: 0.82rem;
    color: rgba(232, 238, 245, 0.7);
    line-height: 1.3;
  }

  .rx-walk__cue {
    font-size: 0.78rem;
    font-weight: 600;
    color: #e8d9b8;
    text-decoration: underline;
    text-underline-offset: 3px;
    white-space: nowrap;
  }

  body.is-narrow-viewport .rx-pins,
  body.is-narrow-viewport .rx-portal {
    display: none !important;
  }

  body.is-narrow-viewport .reception-svg {
    pointer-events: none;
  }

  /* Selected hall keeps the travelling impulse — the still photo needs a pulse. */
  body.is-narrow-viewport.is-in-lobby .reception-svg .hotspot-path.is-hot,
  body.is-narrow-viewport.is-in-lobby .reception-svg .hotspot-path.is-tour {
    stroke-width: 2.4;
    fill: rgba(232, 217, 184, 0.05);
  }

  body.is-narrow-viewport.is-in-lobby .reception-svg .hotspot-trace.is-hot,
  body.is-narrow-viewport.is-in-lobby .reception-svg .hotspot-trace.is-tour {
    opacity: 1;
    stroke-width: 3.2;
    filter: drop-shadow(0 0 3px rgba(232, 217, 184, 0.35));
  }

  body.is-rx-camera.is-in-lobby .reception-stage__vignette {
    background:
      radial-gradient(ellipse 70% 58% at 50% 40%, transparent 28%, rgba(10, 16, 24, 0.22) 100%),
      linear-gradient(180deg, transparent 0%, transparent 58%, rgba(10, 16, 24, 0.28) 100%);
  }
}

/* When the shell menu is open, clear the lobby dock so two nav systems
   do not fight on the same screen. */
body:has(.nx-shell.is-menu-open) .rx-compass,
body:has(.nx-shell.is-menu-open) .rx-walk {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 220ms ease,
    visibility 0s linear 220ms;
}

@keyframes rx-hub-tick {
  0%, 100% { transform: scale(1); }
  40% { transform: scale(0.92); }
}

/* Landscape phone: keep the fan compact */
@media (max-width: 720px) and (max-height: 430px) {
  .rx-compass--deck {
    --rx-radius: 78px;
    --rx-spread: 30deg;
    --rx-hub: 48px;
    --rx-card-h: 44px;
    bottom: max(6px, env(safe-area-inset-bottom, 0px));
  }

  .rx-sat {
    min-height: var(--nx-tap-min, 44px);
    padding: 8px 10px;
    font-size: 0.72rem;
  }

  .rx-sat span {
    display: none;
  }

  .rx-walk__sheet {
    bottom: calc(52px + max(6px, env(safe-area-inset-bottom, 0px)));
  }

  .rx-walk__enter {
    min-height: 64px;
    padding: 10px 14px;
    gap: 10px;
  }

  .rx-walk__num {
    font-size: 1.25rem;
  }

  .rx-walk__name {
    font-size: 1rem;
  }

  .rx-walk__index {
    gap: 0;
    padding: 4px 2px;
  }

  .rx-walk__tick {
    min-width: 36px;
    min-height: 36px;
    font-size: 0.64rem;
  }
}

/* Desktop reduced motion: flatten the stack to a column.
   Phone keeps the fan, without the spin. */
@media (prefers-reduced-motion: reduce) and (min-width: 721px) {
  .rx-fan__arc {
    display: flex;
    flex-direction: column;
    gap: 6px;
    height: auto;
    perspective: none;
    transition: none;
  }

  .rx-card {
    position: static;
    transform: none;
    transition: border-color 200ms ease;
  }

  .rx-card::after,
  .rx-card__gloss {
    display: none;
  }

  .rx-compass__beacon {
    animation: none;
  }

  .rx-thread {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) and (max-width: 720px) {
  .rx-card,
  .rx-fan__seal {
    transition: none;
  }

  .rx-fan__seal {
    transform: none;
  }

  .rx-fan__gear.is-tick {
    animation: none;
  }

  .rx-fan__coach-hand {
    animation: none;
    transform:
      translate(-50%, 50%)
      translateY(calc(var(--rx-radius) * -1 + 36px));
  }

  .rx-compass__beacon {
    animation: none;
  }
}

/* Legacy hero — removed from markup; keep selectors so cached HTML does not flash */
.rx-hero {
  display: none !important;
}

/* ---- Standing markers over the interactive objects ----
   Without these the lobby is a photograph with nothing to say: the silhouettes
   are transparent at rest and the impulse that travels along them is a 2.6px
   line lit for a twentieth of its own track, which nobody catches. A pin says
   "there is something here" and hands the explaining over to the plate on
   hover. Purely decorative — the SVG hit paths beneath own the clicks, the
   focus ring and the accessible names. */
.rx-pins {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}

.rx-pin {
  --rx-pin-x: 50%;
  --rx-pin-y: 50%;
  --rx-pin-depth: 1;
  --rx-pin-size: 30px;
  position: absolute;
  left: var(--rx-pin-x);
  top: var(--rx-pin-y);
  display: grid;
  place-items: center;
  width: var(--rx-pin-size);
  height: var(--rx-pin-size);
  border-radius: 50%;
  color: #f6f2e8;
  font-family: var(--nx-font-mono, ui-monospace, "SF Mono", monospace);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  background: rgba(18, 20, 26, 0.62);
  border: 1px solid rgba(232, 217, 184, 0.5);
  box-shadow:
    0 2px 10px rgba(8, 10, 14, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(7px) saturate(1.15);
  -webkit-backdrop-filter: blur(7px) saturate(1.15);
  opacity: 0;
  transform: translate(-50%, -50%) scale(var(--rx-pin-depth));
  transition:
    opacity 420ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 420ms ease,
    background-color 420ms ease;
}

/* Placed only once the silhouette has been measured, so a pin never flashes at
   the middle of the screen before it knows where it belongs. */
.rx-pin.is-placed {
  opacity: 0.92;
}

.rx-pin__mark {
  position: relative;
  z-index: 1;
  line-height: 1;
}

/* Briefing and the contact terminal are not catalogue services and carry no
   number, so they get a plain bead instead of a label. */
.rx-pin--plain {
  --rx-pin-size: 22px;
}

.rx-pin--plain .rx-pin__mark {
  display: none;
}

.rx-pin--plain .rx-pin__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e8d9b8;
}

/* The halo, not the pin itself, carries the breathing: animating a blurred
   pseudo-element keeps the number crisp and the work off the main thread. */
.rx-pin::before {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 1px solid rgba(232, 217, 184, 0.32);
  opacity: 0;
  transform: scale(0.82);
  transition:
    opacity 420ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.rx-pin.is-placed::before {
  animation: rx-pin-breathe 4.4s ease-in-out infinite;
}

.rx-pin:nth-of-type(2n)::before { animation-delay: 0.9s; }
.rx-pin:nth-of-type(3n)::before { animation-delay: 1.8s; }

.rx-pin.is-hot,
.rx-pin.is-tour {
  opacity: 1;
  background: rgba(232, 217, 184, 0.94);
  border-color: rgba(255, 255, 255, 0.85);
  color: #14161b;
  transform: translate(-50%, -50%) scale(calc(var(--rx-pin-depth) * 1.28));
}

.rx-pin.is-hot .rx-pin__dot,
.rx-pin.is-tour .rx-pin__dot {
  background: #14161b;
}

.rx-pin.is-hot::before,
.rx-pin.is-tour::before {
  animation: none;
  opacity: 1;
  transform: scale(1);
  border-color: rgba(232, 217, 184, 0.75);
}

@keyframes rx-pin-breathe {
  0%, 100% { opacity: 0; transform: scale(0.82); }
  45% { opacity: 0.75; transform: scale(1.06); }
  70% { opacity: 0; transform: scale(1.24); }
}

body.is-traveling .rx-pins,
body.is-in-room .rx-pins {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s 0.3s;
}

/* ---- Thematic hover portals (unique mini-windows per room) ---- */
.rx-portals {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  overflow: hidden;
}

.rx-portal {
  --rx-px: 50%;
  --rx-py: 50%;
  --rx-lift: 16px;
  --rx-ox: 0px;
  --rx-width: 244px;
  --rx-glass-edge: rgba(255, 255, 255, 0.16);
  --rx-accent: #d4c4a8;
  --rx-text: #f5f6f8;
  --rx-muted: rgba(200, 206, 214, 0.72);
  position: absolute;
  left: var(--rx-px);
  top: var(--rx-py);
  width: min(var(--rx-width), 72vw);
  transform:
    translate(calc(-50% + var(--rx-ox)), calc(-100% - 18px - var(--rx-lift)))
    translateY(6px);
  visibility: hidden;
  pointer-events: none;
  transform-origin: 50% 100%;
  /* slide only — opacity fade desyncs text vs backdrop-filter */
  transition:
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 0.42s;
}

.rx-portal.is-visible {
  visibility: visible;
  /* Informational only — click always goes to the hotspot */
  pointer-events: none;
  transform:
    translate(calc(-50% + var(--rx-ox)), calc(-100% - 18px - var(--rx-lift)))
    translateY(0);
  transition:
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s;
}

.rx-portal.is-below {
  transform:
    translate(calc(-50% + var(--rx-ox)), calc(18px + var(--rx-lift) * 0.35))
    translateY(-5px);
  transform-origin: 50% 0%;
}

.rx-portal.is-below.is-visible {
  transform:
    translate(calc(-50% + var(--rx-ox)), calc(18px + var(--rx-lift) * 0.35))
    translateY(0);
}

.rx-portal__shell {
  position: relative;
  padding: 14px 18px 13px;
  color: var(--rx-text);
  overflow: visible;
  border-radius: 16px;
  background: transparent;
  border: none;
  box-shadow: none;
}

.rx-portal__shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background:
    linear-gradient(165deg, rgba(36, 38, 44, 0.62) 0%, rgba(14, 16, 20, 0.68) 100%);
  border: 1px solid var(--rx-glass-edge);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 18px 40px rgba(6, 8, 12, 0.35);
  backdrop-filter: blur(14px) saturate(1.12);
  -webkit-backdrop-filter: blur(14px) saturate(1.12);
  transform: translateZ(0);
  pointer-events: none;
}

.rx-portal__head {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
}

/* The number is set as a door plate rather than loose text: on a sign the
   room number is the first thing you look for. */
.rx-portal__idx {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 19px;
  padding: 0 6px;
  border-radius: 5px;
  border: 1px solid rgba(232, 217, 184, 0.34);
  background: rgba(232, 217, 184, 0.12);
  font-family: var(--nx-font-mono, ui-monospace, monospace);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  font-variant-numeric: tabular-nums;
  color: var(--rx-accent);
}

.rx-portal__glyph {
  display: inline-flex;
  width: 19px;
  height: 19px;
  color: rgba(232, 217, 184, 0.72);
}

.rx-portal__glyph svg {
  width: 100%;
  height: 100%;
}

.rx-portal__title {
  position: relative;
  z-index: 2;
  display: block;
  font-family: var(--nx-font-display, Georgia, serif);
  font-weight: 400;
  font-size: 1.2rem;
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: var(--rx-text);
}

.rx-portal__sub {
  position: relative;
  z-index: 2;
  display: block;
  margin-top: 3px;
  font-size: 0.74rem;
  line-height: 1.4;
  color: rgba(220, 224, 230, 0.7);
}

/* Every hall gets the same 220x20 window of motion, so the panels keep one
   silhouette while each keeps its own character. */
.rx-portal__strip {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: 20px;
  margin: 11px 0 9px;
  opacity: 0.85;
}

.rx-portal__foot {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 9px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

/* One line, always: a second line of tags would push the cue down and the
   panels would stop being the same height, which is the whole point of the
   redesign. */
.rx-portal__tags {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-family: var(--nx-font-mono, ui-monospace, monospace);
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rx-muted);
}

/* A hint, not a button: the plate never takes the pointer, the object under it
   does. It says what a click will do, which is the one thing the old plates
   never told anybody — the copy for it existed in the engine all along and was
   switched off in the stylesheet. */
.rx-portal__cue {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: none;
  font-size: 0.68rem;
  font-weight: 500;
  white-space: nowrap;
  color: var(--rx-accent);
}

.rx-portal__cue svg {
  width: 12px;
  height: 12px;
  transform: translateX(-2px);
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.rx-portal.is-visible .rx-portal__cue svg {
  transform: translateX(0);
}

/* Leader line down to the object the sign names. */
.rx-portal__lead {
  position: absolute;
  left: 50%;
  top: 100%;
  width: 1px;
  height: calc(var(--rx-lift, 16px) + 12px);
  background: linear-gradient(180deg, rgba(232, 217, 184, 0.9), rgba(232, 217, 184, 0));
  transform: translateX(-50%);
  pointer-events: none;
  /* The lobby behind a sign can be a sunlit window; a hairline needs its own
     shadow to survive there. */
  filter: drop-shadow(0 0 2px rgba(8, 10, 14, 0.55));
}

.rx-portal__lead::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  border: 1px solid rgba(232, 217, 184, 0.85);
  background: rgba(232, 217, 184, 0.25);
  transform: translate(-50%, 50%);
}

/* When the sign sits under its object the line points the other way. */
.rx-portal.is-below .rx-portal__lead {
  top: auto;
  bottom: 100%;
  background: linear-gradient(0deg, rgba(232, 217, 184, 0.9), rgba(232, 217, 184, 0));
}

.rx-portal.is-below .rx-portal__lead::after {
  bottom: auto;
  top: 0;
  transform: translate(-50%, -50%);
}

/* Per-hall motion. The strips share one grammar; only the movement differs. */
.rx-p-node {
  transform-box: fill-box;
  transform-origin: center;
  animation: rx-node-pulse 2.4s ease-in-out infinite;
}

.rx-p-node:nth-of-type(2) { animation-delay: 0.35s; }
.rx-p-node:nth-of-type(3) { animation-delay: 0.7s; }
.rx-p-node:nth-of-type(4) { animation-delay: 1.05s; }

.rx-p-packet {
  stroke-dasharray: 8 110;
  animation: rx-packet-run 3.2s linear infinite;
}

.rx-p-queue {
  animation: rx-queue-run 2.6s linear infinite;
}

.rx-p-cursor {
  animation: rx-blink 1.05s steps(1) infinite;
}

.rx-p-sweep-x {
  animation: rx-sweep-x 3.4s ease-in-out infinite;
}

.rx-p-ring {
  transform-origin: 110px 10px;
  animation: rx-spin-slow 8s linear infinite;
}

.rx-p-bars rect {
  transform-box: fill-box;
  transform-origin: bottom;
  animation: rx-bar-pulse 1.8s ease-in-out infinite;
}

.rx-p-bars rect:nth-child(2) { animation-delay: 0.15s; }
.rx-p-bars rect:nth-child(3) { animation-delay: 0.3s; }
.rx-p-bars rect:nth-child(4) { animation-delay: 0.45s; }

.rx-p-scan {
  animation: rx-scanline 2.8s linear infinite;
}

@keyframes rx-queue-run {
  to { stroke-dashoffset: -48; }
}

@keyframes rx-sweep-x {
  0% { transform: translateX(0); }
  100% { transform: translateX(250px); }
}

body.is-traveling .rx-portals,
body.is-in-room .rx-portals {
  opacity: 0;
  visibility: hidden;
}

@keyframes rx-node-pulse {
  0%, 100% { transform: scale(0.85); opacity: 0.5; }
  50% { transform: scale(1.25); opacity: 1; }
}

@keyframes rx-packet-run {
  0% { stroke-dashoffset: 120; opacity: 0.25; }
  25% { opacity: 1; }
  75% { opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0.25; }
}

@keyframes rx-spin-slow {
  to { transform: rotate(360deg); }
}

@keyframes rx-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

@keyframes rx-bar-pulse {
  0%, 100% { transform: scaleY(0.55); opacity: 0.55; }
  50% { transform: scaleY(1); opacity: 1; }
}

@keyframes rx-scanline {
  0% { transform: translateY(-120%); }
  100% { transform: translateY(220%); }
}

@media (max-width: 720px) {
  .rx-portal {
    width: min(190px, 62vw);
  }

  .rx-portal__title {
    font-size: 1.05rem;
  }

  .rx-portal__cue {
    font-size: 0.64rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rx-portal,
  .rx-portal.is-visible,
  .rx-portal.is-below,
  .rx-portal.is-below.is-visible {
    transition: visibility 0s;
    transform: translate(-50%, calc(-100% - 12px - var(--rx-lift, 0px)));
  }

  .rx-portal.is-below,
  .rx-portal.is-below.is-visible {
    transform: translate(-50%, calc(14px + var(--rx-lift, 0px) * 0.25));
  }

  /* Everything that moves inside a strip, by class rather than by hall, so a
     new hall cannot quietly escape the preference. */
  .rx-portal__strip * {
    animation: none !important;
  }

  .rx-portal__cue svg,
  .rx-portal.is-visible .rx-portal__cue svg {
    transition: none;
    transform: none;
  }
}

/* ---- Room panels: dark glass overlay (readable on bright lobby) ---- */
.reception-panel {
  max-width: 32rem;
  padding: 22px 24px 20px;
  background:
    linear-gradient(165deg, rgba(28, 34, 46, 0.72) 0%, rgba(14, 18, 26, 0.78) 100%),
    rgba(16, 22, 32, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 18px 48px rgba(10, 16, 24, 0.35);
  color: #f2f4f7;
  backdrop-filter: blur(20px) saturate(1.15);
  -webkit-backdrop-filter: blur(20px) saturate(1.15);
}

.reception-panel .nx-eyebrow {
  color: rgba(242, 244, 247, 0.55);
}

.reception-panel .campus-panel__title {
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  margin-bottom: 8px;
  color: #f2f4f7;
}

.reception-panel .campus-panel__body {
  margin-bottom: 14px;
  font-size: 0.94rem;
  line-height: 1.5;
  color: rgba(242, 244, 247, 0.72);
}

.reception-panel .campus-panel__body strong {
  color: #f2f4f7;
}

.reception-panel .campus-panel__list {
  margin-bottom: 14px;
  gap: 6px;
}

.reception-panel .campus-panel__list li {
  font-size: 0.88rem;
  color: rgba(242, 244, 247, 0.72);
}

.reception-panel .campus-panel__list li::before {
  background: rgba(242, 244, 247, 0.85);
}

.reception-panel .campus-panel__price {
  margin-bottom: 14px;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  color: #f2f4f7;
}

.reception-panel__kpis {
  justify-content: flex-start;
  gap: 16px 24px;
  margin: 4px 0 16px;
}

.reception-panel__kpis .campus-kpi .num {
  font-size: 1.2rem;
  color: #f2f4f7;
}

.reception-panel__kpis .campus-kpi .lbl {
  color: rgba(242, 244, 247, 0.55);
}

.reception-room:not(.reception-room--terminal) {
  overflow: auto;
  overscroll-behavior: contain;
}

.reception-room:not(.reception-room--terminal) .reception-back {
  position: sticky;
  top: 0;
  z-index: 2;
  flex-shrink: 0;
  color: #f2f4f7;
  background:
    linear-gradient(165deg, rgba(28, 34, 46, 0.72) 0%, rgba(14, 18, 26, 0.78) 100%),
    rgba(16, 22, 32, 0.72);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 10px 28px rgba(10, 16, 24, 0.28);
}

.reception-room:not(.reception-room--terminal) .reception-back:hover {
  background: rgba(28, 34, 46, 0.9);
  border-color: rgba(255, 255, 255, 0.22);
}

/* Removed room veil layer to prevent accidental interaction overlap. */

.reception-room > * {
  position: relative;
  z-index: 2;
}

/* Mobile / coarse: shorter dolly, larger hits, bottom sheet
   bp-md = 720; pointer:coarse covers tablets that stay above md. */
@media (max-width: 720px), (pointer: coarse) {
  .reception-stage {
    transition-duration: 0.65s;
  }

  .reception-stage.is-zooming {
    transform: scale(1.04);
  }

  .reception-stage.is-approach-zoom {
    transform: scale(1.07);
  }

  .reception-stage.is-screen-dive-zoom {
    transform: scale(1.14);
  }

  .reception-svg .hotspot-hit {
    stroke-width: 36;
  }
}

body.is-coarse-pointer .reception-svg .hotspot-hit,
body.is-narrow-viewport .reception-svg .hotspot-hit {
  stroke-width: 36;
}

/* Mobile: bottom sheet; Back stays above content (bp-md = 720) */
@media (max-width: 720px) {
  .reception-svg .hotspot-path {
    stroke-width: 2.2;
    stroke-dasharray: 9999;
  }

  .reception-svg .hotspot-trace {
    stroke-width: 2.8;
    stroke-dasharray: var(--rx-segment, 104) var(--rx-gap, 856);
  }

  .reception-svg .hotspot-path.is-hot,
  .reception-svg .hotspot-path.is-tour {
    stroke-width: 2.5;
  }

  .reception-room:not(.reception-room--terminal) {
    justify-content: flex-end;
    padding:
      var(--nx-header-offset-sm, calc(72px + env(safe-area-inset-top, 0px)))
      max(12px, env(safe-area-inset-right, 0px))
      max(12px, env(safe-area-inset-bottom, 0px))
      max(12px, env(safe-area-inset-left, 0px));
    gap: 0;
  }

  .reception-room:not(.reception-room--terminal) .reception-back {
    position: sticky;
    top: 0;
    align-self: flex-start;
    margin-bottom: 10px;
    min-height: var(--nx-tap-min, 44px);
    box-shadow: 0 8px 24px rgba(10, 16, 24, 0.12);
  }

  .reception-panel {
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 16px 14px 14px;
    border-radius: 18px 18px 12px 12px;
    /* Leave room for compass / safe area on 375–390 */
    max-height: min(58vh, 480px);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  .reception-panel .campus-panel__title {
    font-size: 1.25rem;
  }

  .reception-compare {
    grid-template-columns: 1fr;
  }

  .reception-room--terminal {
    padding:
      var(--nx-header-offset-sm, calc(64px + env(safe-area-inset-top, 0px)))
      max(12px, env(safe-area-inset-right, 0px))
      max(12px, env(safe-area-inset-bottom, 0px))
      max(12px, env(safe-area-inset-left, 0px));
    justify-content: flex-start;
    align-items: stretch;
    overflow: auto;
  }

  .reception-back--terminal {
    position: sticky;
    top: 0;
    z-index: 3;
    margin-bottom: 12px;
    min-height: var(--nx-tap-min, 44px);
  }

  .terminal-shell {
    width: 100%;
    max-width: none;
  }
}

@media (max-width: 720px) and (max-height: 430px) {
  .reception-panel {
    max-height: min(48vh, 280px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reception-svg .hotspot-path {
    animation: none;
    opacity: 1;
  }

  .reception-svg .hotspot-trace {
    animation: none;
    opacity: 0.4;
  }

  /* The pins stay — they are the only thing telling a visitor the objects can
     be opened. Only the breathing halo goes, replaced by a steady ring. */
  .rx-pin,
  .rx-pin.is-hot,
  .rx-pin.is-tour {
    transition: none;
  }

  .rx-compass,
  .rx-compass__beacon {
    transition: none;
  }

  .rx-compass__beacon {
    animation: none;
    box-shadow: 0 0 0 3px rgba(232, 217, 184, 0.22);
  }

  .rx-hero {
    transition: none;
  }

  .rx-hero__hint-dot {
    animation: none;
    box-shadow: 0 0 0 3px rgba(232, 217, 184, 0.22);
  }

  .rx-pin.is-placed::before,
  .rx-pin.is-hot::before,
  .rx-pin.is-tour::before {
    animation: none;
    opacity: 0.6;
    transform: scale(1);
  }

  .reception-stage,
  .reception-plate {
    transition: none !important;
  }
}
