/*!***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/.pnpm/next@16.3.4_@babel+core@7.29.7_@types+node@26.4.0_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[15].oneOf[10].use[2]!./node_modules/.pnpm/next@16.3.4_@babel+core@7.29.7_@types+node@26.4.0_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[15].oneOf[10].use[3]!./src/app/globals.css ***!
  \***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
:root {
  --ink: #eef8ff;
  --muted: #92aabd;
  --cyan: #6ce4ff;
  --cyan-bright: #a8f1ff;
  --orange: #ff8a4c;
  --panel: rgba(7, 25, 36, 0.88);
  --line: rgba(139, 218, 237, 0.18);
}

* { box-sizing: border-box; }

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  background: #041019;
}

body {
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow: hidden;
}

button,
input { font: inherit; }

button { color: inherit; }
button:disabled { cursor: not-allowed; opacity: 0.38; }

.experience-shell {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: 100%;
  height: 100svh;
  overflow: hidden;
  background:
    radial-gradient(circle at 48% 38%, rgba(24, 89, 111, 0.24), transparent 36%),
    linear-gradient(145deg, rgba(7, 32, 44, 0.98), rgba(2, 12, 20, 1) 65%),
    repeating-linear-gradient(90deg, transparent 0 79px, rgba(91, 192, 218, 0.035) 80px),
    repeating-linear-gradient(0deg, transparent 0 79px, rgba(91, 192, 218, 0.035) 80px);
}

.ambient {
  position: absolute;
  border-radius: 999px;
  filter: blur(80px);
  pointer-events: none;
}

.ambient-one {
  width: 42vw;
  height: 42vw;
  left: -16vw;
  top: 14vh;
  background: rgba(33, 192, 221, 0.13);
}

.ambient-two {
  width: 36vw;
  height: 36vw;
  right: -12vw;
  bottom: -9vw;
  background: rgba(255, 113, 61, 0.09);
}

.topbar {
  position: relative;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 clamp(18px, 3.2vw, 54px);
  border-bottom: 1px solid var(--line);
  background: rgba(3, 15, 23, 0.5);
  -webkit-backdrop-filter: blur(16px);
          backdrop-filter: blur(16px);
}

.brand-lockup {
  display: flex;
  gap: 12px;
  align-items: center;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: var(--cyan);
  font-size: 17px;
  font-weight: 800;
  border: 1px solid rgba(108, 228, 255, 0.65);
  transform: rotate(45deg);
}

.brand-lockup div {
  display: grid;
  gap: 2px;
  letter-spacing: 0.12em;
}

.brand-lockup strong { font-size: 12px; }
.brand-lockup div span { color: var(--muted); font-size: 8px; }

.prototype-label {
  color: #b8cbd6;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  background: #6df5ae;
  border-radius: 50%;
  box-shadow: 0 0 16px #6df5ae;
}

.stage-grid {
  position: relative;
  z-index: 2;
  min-height: 0;
  overflow: hidden;
  perspective: 1400px;
  isolation: isolate;
}

.avatar-stage {
  position: absolute;
  z-index: 4;
  inset: 0;
  overflow: hidden;
  transform-origin: top left;
  transition:
    transform 1400ms cubic-bezier(0.18, 0.78, 0.16, 1),
    border-radius 900ms ease,
    box-shadow 900ms ease;
  will-change: transform;
}

.avatar-stage::after {
  position: absolute;
  right: 8%;
  bottom: 2%;
  left: 8%;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(108, 228, 255, 0.48), transparent);
}

.avatar-halo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(64vh, 56vw);
  aspect-ratio: 1;
  border: 1px solid rgba(108, 228, 255, 0.12);
  border-radius: 50%;
  box-shadow: 0 0 90px rgba(43, 183, 215, 0.11), inset 0 0 90px rgba(43, 183, 215, 0.05);
  transform: translate(-50%, -48%);
  transition: transform 500ms ease;
}

.avatar-halo::before,
.avatar-halo::after {
  position: absolute;
  inset: 9%;
  content: "";
  border: 1px dashed rgba(108, 228, 255, 0.1);
  border-radius: inherit;
}

.avatar-halo::after { inset: 24%; border-style: solid; }

.avatar-canvas {
  position: absolute;
  z-index: 1;
  inset: 0;
  transition: transform 500ms ease, filter 500ms ease;
}

.avatar-canvas canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.focus-split .avatar-canvas,
.focus-content .avatar-canvas {
  transform: translateX(-15%);
}

.focus-split .avatar-halo,
.focus-content .avatar-halo {
  transform: translate(-68%, -48%) scale(0.92);
}

.stage-takeover .avatar-stage {
  z-index: 7;
  overflow: visible;
  background: #06121a;
  border-radius: 18px;
  box-shadow:
    0 0 0 8px #07131a,
    0 0 0 10px rgba(108, 228, 255, 0.44),
    0 38px 70px rgba(0, 0, 0, 0.7),
    0 0 70px rgba(62, 208, 237, 0.2);
  transform: translate3d(clamp(28px, 7vw, 118px), clamp(260px, 43vh, 480px), 170px)
    scale(0.19) rotateY(7deg);
}

.stage-takeover .avatar-stage::before {
  position: absolute;
  z-index: 0;
  top: 98%;
  left: 34%;
  width: 32%;
  height: 18%;
  content: "";
  background: linear-gradient(90deg, #07131a, #183540 48%, #07131a);
  clip-path: polygon(39% 0, 61% 0, 66% 66%, 100% 82%, 100% 100%, 0 100%, 0 82%, 34% 66%);
  box-shadow: 0 28px 44px rgba(0, 0, 0, 0.62);
}

.stage-takeover .avatar-stage::after,
.stage-takeover .avatar-halo,
.stage-takeover .avatar-caption,
.stage-takeover .voice-prompt {
  opacity: 0;
}

.stage-takeover .avatar-canvas {
  filter: saturate(0.88) contrast(1.08);
  overflow: hidden;
  border-radius: inherit;
  transform: scale(2) translateY(12%);
  transform-origin: center bottom;
}

.avatar-caption {
  position: absolute;
  z-index: 5;
  top: clamp(18px, 3vh, 34px);
  left: clamp(18px, 3.2vw, 54px);
  display: flex;
  gap: 11px;
  align-items: center;
  padding: 10px 14px;
  background: rgba(4, 17, 25, 0.72);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(12px);
          backdrop-filter: blur(12px);
}

.avatar-caption div { display: grid; }
.avatar-caption strong { font-size: 15px; }
.avatar-caption span:not(.status-orb) { margin-top: 2px; color: var(--muted); font-size: 10px; }

.status-orb {
  width: 10px;
  height: 10px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 14px var(--cyan);
}

.status-listening {
  background: var(--orange);
  box-shadow: 0 0 18px var(--orange);
  animation: pulse 0.8s infinite alternate;
}

.status-thinking,
.status-transcribing { animation: pulse 1s infinite alternate; }
.status-error { background: #ff677b; box-shadow: 0 0 14px #ff677b; }

.voice-prompt {
  position: absolute;
  z-index: 5;
  bottom: clamp(24px, 5vh, 52px);
  left: 50%;
  display: flex;
  gap: 10px;
  min-width: 0;
  align-items: center;
  padding: 12px 18px;
  text-align: center;
  background: rgba(4, 17, 25, 0.68);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px);
          backdrop-filter: blur(14px);
  transform: translateX(-50%);
}

.voice-prompt-icon {
  color: var(--orange);
  font-size: 14px;
  text-shadow: 0 0 14px var(--orange);
  animation: pulse 0.9s infinite alternate;
}

.voice-prompt strong { font-size: 14px; }
.context-overlay {
  position: absolute;
  z-index: 6;
  top: 50%;
  right: clamp(20px, 4vw, 70px);
  width: min(44vw, 600px);
  max-height: calc(100% - 44px);
  padding: clamp(22px, 3vw, 42px);
  overflow: hidden;
  background: linear-gradient(145deg, rgba(8, 31, 43, 0.94), rgba(4, 17, 26, 0.9));
  border: 1px solid rgba(139, 218, 237, 0.24);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.42);
  -webkit-backdrop-filter: blur(24px);
          backdrop-filter: blur(24px);
  animation: context-in 420ms cubic-bezier(0.2, 0.75, 0.2, 1) both;
}

.answer-eyebrow {
  display: block;
  margin-bottom: 12px;
  color: var(--cyan);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.transcript-bubble {
  padding-left: 13px;
  margin: 0 38px 17px 0;
  border-left: 2px solid rgba(108, 228, 255, 0.52);
}

.transcript-bubble span {
  color: var(--muted);
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.transcript-bubble p {
  margin: 3px 0 0;
  color: #b9ced8;
  font-size: 12px;
}

.answer-copy h1 {
  max-width: 720px;
  margin: 0 0 13px;
  font-size: clamp(28px, 3.4vw, 52px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.answer-copy > p {
  max-width: 680px;
  margin: 0;
  color: #c4d5dd;
  font-size: clamp(14px, 1.2vw, 18px);
  line-height: 1.5;
}

.directory-card {
  margin-top: 22px;
  overflow: hidden;
  background: rgba(7, 27, 38, 0.72);
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.16);
}

.directory-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
}

.directory-head div { display: grid; gap: 2px; }
.directory-head div span { color: var(--muted); font-size: 7px; letter-spacing: 0.16em; }
.directory-head strong { font-size: 13px; }

.demo-badge {
  padding: 5px 7px;
  color: #8aa7b6;
  font-size: 7px;
  letter-spacing: 0.12em;
  border: 1px solid rgba(145, 184, 200, 0.18);
}

.place-list {
  display: flex;
  min-height: 150px;
  flex-direction: column;
  justify-content: center;
  padding: 10px 14px;
}

.place-list-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid rgba(108, 228, 255, 0.09);
}

.place-list-item:last-child { border-bottom: 0; }

.place-list-item > span {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--cyan-bright);
  font-size: 9px;
  background: #0e3e4c;
  border: 1px solid var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 16px rgba(108, 228, 255, 0.24);
}

.place-list-item div {
  display: grid;
  gap: 3px;
}

.place-list-item strong { font-size: 12px; }
.place-list-item small { color: var(--muted); font-size: 9px; }

.transport-grid {
  display: grid;
  min-height: 150px;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
}

.transport-grid div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 22px;
  background: rgba(5, 22, 31, 0.96);
}

.transport-grid span { color: var(--cyan); font-size: 8px; letter-spacing: 0.16em; }
.transport-grid strong { margin: 5px 0; font-size: 25px; }
.transport-grid small { color: var(--muted); font-size: 10px; line-height: 1.4; }

.fact-card {
  display: grid;
  gap: 7px;
  min-height: 120px;
  align-content: center;
  padding: 24px;
}

.fact-card strong { color: var(--cyan); font-size: 10px; letter-spacing: 0.12em; }
.fact-card span { color: #c4d5dd; font-size: 15px; line-height: 1.45; }

.source-row {
  margin-top: 9px;
  color: #627e8d;
  font-size: 7px;
  letter-spacing: 0.1em;
}

.navigation-scene {
  position: absolute;
  z-index: 3;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(circle at 65% 34%, rgba(45, 170, 198, 0.16), transparent 34%),
    linear-gradient(155deg, rgba(5, 25, 36, 0.98), rgba(2, 10, 16, 1));
  transform: scale(1.55);
  transform-origin: 36% 60%;
  transition:
    opacity 500ms ease,
    transform 1450ms cubic-bezier(0.18, 0.78, 0.16, 1);
}

.navigation-scene.is-active {
  opacity: 1;
  transform: scale(1);
}

.navigation-grid {
  position: absolute;
  inset: -35%;
  opacity: 0.24;
  background-image:
    linear-gradient(rgba(108, 228, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108, 228, 255, 0.1) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(circle at 58% 50%, #000 0, transparent 66%);
          mask-image: radial-gradient(circle at 58% 50%, #000 0, transparent 66%);
  transform: perspective(800px) rotateX(68deg) translateY(18%);
}

.navigation-hud {
  position: absolute;
  z-index: 8;
  top: clamp(20px, 4vh, 42px);
  right: clamp(20px, 4vw, 64px);
  display: grid;
  width: min(48vw, 560px);
  padding: 18px 22px;
  background: linear-gradient(110deg, rgba(4, 18, 27, 0.88), rgba(8, 39, 51, 0.74));
  border: 1px solid rgba(108, 228, 255, 0.24);
  -webkit-backdrop-filter: blur(18px);
          backdrop-filter: blur(18px);
  opacity: 0;
  transform: translateY(-16px);
  transition: opacity 450ms ease 700ms, transform 650ms ease 700ms;
}

.is-active .navigation-hud {
  opacity: 1;
  transform: translateY(0);
}

.navigation-hud span,
.navigation-destination span {
  color: var(--cyan);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.navigation-hud strong {
  margin-top: 6px;
  font-size: clamp(24px, 4vw, 52px);
  line-height: 1;
  letter-spacing: -0.045em;
}

.navigation-hud p {
  margin: 9px 0 0;
  color: #b9ced8;
  font-size: clamp(11px, 1.1vw, 15px);
  line-height: 1.45;
}

.navigation-map-camera {
  position: absolute;
  top: 54%;
  left: 56%;
  width: min(94vw, 1120px);
  aspect-ratio: 1.62;
  opacity: 0;
  transform: translate(-50%, -45%) rotateX(64deg) rotateZ(-16deg) scale(2.2);
  transform-origin: center;
  transition:
    opacity 500ms ease 200ms,
    transform 1600ms cubic-bezier(0.18, 0.78, 0.16, 1) 100ms;
  transform-style: preserve-3d;
}

.is-active .navigation-map-camera {
  opacity: 1;
  transform: translate(-50%, -48%) rotateX(51deg) rotateZ(-8deg) scale(1);
}

.navigation-map {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.mall-extrusion path,
.mall-floor path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mall-extrusion path {
  stroke: #07151d;
  stroke-width: 130px;
}

.mall-floor path {
  stroke: #bfced3;
  stroke-width: 126px;
}

.mall-floor path + path,
.mall-extrusion path + path { stroke-width: 100px; }

.map-unit {
  fill: #173946;
  stroke: rgba(162, 225, 236, 0.68);
  stroke-width: 2px;
  filter: drop-shadow(0 12px 0 #081a23) drop-shadow(0 18px 12px rgba(0, 0, 0, 0.4));
}

.map-unit.anchor { fill: #214856; }
.map-unit.destination-unit {
  fill: #0e6f79;
  stroke: #9cf1ff;
  stroke-width: 4px;
  animation: destination-pulse 1.2s ease-in-out infinite alternate;
}

.map-units text {
  fill: #d6e8ed;
  font-size: 18px;
  font-weight: 900;
  text-anchor: middle;
  letter-spacing: -0.04em;
  paint-order: stroke;
  stroke: rgba(2, 12, 18, 0.68);
  stroke-width: 5px;
}

.map-units .destination-label {
  fill: #fff;
  font-size: 20px;
  letter-spacing: 0.06em;
}

.route-shadow,
.navigation-route {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.route-shadow {
  stroke: rgba(1, 9, 14, 0.66);
  stroke-width: 12px;
}

.navigation-route {
  stroke: #ff8751;
  stroke-width: 6px;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.is-active .navigation-route { animation: route-draw 1800ms ease 1050ms forwards; }

.kiosk-point circle:first-child {
  fill: rgba(3, 20, 29, 0.95);
  stroke: var(--cyan);
  stroke-width: 4px;
}

.kiosk-point circle:nth-child(2) { fill: var(--cyan); }
.kiosk-point text {
  fill: var(--cyan-bright);
  font-size: 14px;
  font-weight: 900;
  text-anchor: middle;
  letter-spacing: 0.08em;
}

.destination-point circle:first-child {
  fill: rgba(255, 135, 81, 0.15);
  stroke: #ff8751;
  stroke-width: 3px;
  animation: destination-ring 1.25s ease-out infinite;
}

.destination-point circle:last-child { fill: #ff8751; }

.navigation-legend,
.navigation-destination,
.navigation-disclaimer {
  position: absolute;
  z-index: 8;
  opacity: 0;
  transition: opacity 450ms ease 1500ms;
}

.is-active .navigation-legend,
.is-active .navigation-destination,
.is-active .navigation-disclaimer { opacity: 1; }

.navigation-legend {
  right: clamp(20px, 4vw, 64px);
  bottom: clamp(22px, 4vh, 44px);
  display: flex;
  gap: 18px;
  color: #829baa;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.navigation-legend span { display: flex; gap: 7px; align-items: center; }
.navigation-legend i { display: inline-block; width: 16px; height: 4px; }
.legend-kiosk { background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.legend-route { background: var(--orange); box-shadow: 0 0 10px var(--orange); }

.navigation-destination {
  right: clamp(20px, 4vw, 64px);
  bottom: clamp(58px, 9vh, 98px);
  display: grid;
  min-width: min(38vw, 360px);
  padding: 14px 18px;
  background: rgba(4, 18, 27, 0.84);
  border-left: 3px solid var(--orange);
  -webkit-backdrop-filter: blur(14px);
          backdrop-filter: blur(14px);
}

.navigation-destination strong { margin-top: 3px; font-size: 18px; }
.navigation-destination small { margin-top: 3px; color: var(--muted); font-size: 9px; }

.navigation-disclaimer {
  bottom: 18px;
  left: 18px;
  color: #5f7987;
  font-size: 6px;
  letter-spacing: 0.1em;
}

.system-notice {
  position: absolute;
  z-index: 8;
  right: 16px;
  bottom: 16px;
  left: 16px;
  padding: 10px 14px;
  color: #ffad89;
  font-size: 9px;
  text-align: center;
  background: rgba(40, 13, 15, 0.82);
  border: 1px solid rgba(255, 103, 123, 0.28);
  -webkit-backdrop-filter: blur(12px);
          backdrop-filter: blur(12px);
}

.start-layer {
  position: fixed;
  z-index: 20;
  display: grid;
  padding: 20px;
  place-items: center;
  inset: 0;
  background: rgba(2, 12, 19, 0.68);
  -webkit-backdrop-filter: blur(15px);
          backdrop-filter: blur(15px);
}

/* When a module has already mounted its attract state on the stage (docs/15 §3.1: what stops a
   passer-by is a kitchen, not an empty screen), the start card must not hide it. The card carries
   its own opaque background, border and shadow, so it stays legible over a moving scene; a
   full-viewport backdrop blur over a live WebGL canvas is also the most expensive way to hide one.
   The reception treatment is untouched: with no attract payload there is no `stage-takeover` class
   before the session starts, so this never matches there. */
main.experience-shell[data-takeover="corner"] .stage-grid.stage-takeover ~ .start-layer {
  background: rgba(2, 12, 19, 0.28);
  -webkit-backdrop-filter: none;
          backdrop-filter: none;
}

.start-card {
  width: min(540px, 100%);
  padding: clamp(36px, 6vw, 54px);
  text-align: center;
  background: rgba(7, 27, 38, 0.94);
  border: 1px solid rgba(108, 228, 255, 0.22);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.45);
}

.start-kicker { color: var(--cyan); font-size: 9px; font-weight: 800; letter-spacing: 0.18em; }

.start-card h2 {
  margin: 18px 0;
  font-size: clamp(35px, 7vw, 60px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.start-card p {
  max-width: 420px;
  margin: 0 auto 28px;
  color: var(--muted);
  line-height: 1.55;
}

.start-card button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 60px;
  padding: 0 20px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  cursor: pointer;
  background: linear-gradient(100deg, #ff8046, #f0583c);
  border: 0;
}

.start-card button b { font-size: 22px; }
.start-card small { display: block; margin-top: 14px; color: #647e8b; font-size: 9px; }

@keyframes pulse {
  from { opacity: 0.55; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1.2); }
}

@keyframes context-in {
  from { opacity: 0; transform: translate(22px, -48%); }
  to { opacity: 1; transform: translate(0, -50%); }
}

@keyframes route-draw {
  to { stroke-dashoffset: 0; }
}

@keyframes destination-ring {
  from { opacity: 1; transform: scale(0.45); }
  to { opacity: 0; transform: scale(1.4); }
}

@keyframes destination-pulse {
  from { fill: #0e6671; }
  to { fill: #118996; }
}

@media (orientation: portrait), (max-width: 900px) {
  .topbar { height: 64px; }

  .stage-grid { min-height: 0; }

  .avatar-halo {
    width: min(76vw, 62vh);
    transform: translate(-50%, -50%);
  }

  .focus-split .avatar-canvas,
  .focus-content .avatar-canvas { transform: translateY(-12%); }

  .focus-split .avatar-halo,
  .focus-content .avatar-halo { transform: translate(-50%, -64%) scale(0.82); }

  .stage-takeover .avatar-stage {
    transform: translate3d(70vw, 40vh, 170px) scale(0.17) rotateY(7deg);
  }

  .navigation-map-camera {
    top: 42%;
    left: 56%;
    width: 132vw;
  }

  .is-active .navigation-map-camera {
    transform: translate(-50%, -50%) rotateX(54deg) rotateZ(-8deg) scale(1);
  }

  .navigation-hud {
    top: 16px;
    right: 16px;
    left: 16px;
    width: auto;
    padding: 14px 16px;
  }

  .navigation-hud strong { font-size: clamp(24px, 7vw, 38px); }
  .navigation-destination { right: 16px; bottom: 48px; min-width: 50vw; }
  .navigation-legend { right: 16px; bottom: 16px; }
  .navigation-disclaimer { font-size: 7px; }

  .context-overlay {
    top: auto;
    right: 16px;
    bottom: 16px;
    left: 16px;
    width: auto;
    max-height: min(51%, 520px);
    padding: 22px;
    animation-name: context-in-portrait;
  }

  .answer-copy h1 { font-size: clamp(25px, 7vw, 42px); }
  .answer-copy > p { font-size: clamp(13px, 2.4vw, 17px); }
  @keyframes context-in-portrait {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

@media (orientation: portrait) and (min-width: 561px) {
  .focus-avatar .avatar-canvas { transform: translateY(-11%); }
  .focus-avatar .avatar-halo { transform: translate(-50%, -72%); }
}

@media (max-width: 560px) {
  .topbar { height: 58px; padding: 0 15px; }
  .brand-mark { width: 31px; height: 31px; font-size: 15px; }
  .brand-lockup { gap: 9px; }
  .brand-lockup strong { font-size: 10px; }
  .brand-lockup div span { display: none; }
  .prototype-label { font-size: 7px; letter-spacing: 0.08em; }

  .avatar-caption { top: 12px; left: 12px; padding: 8px 10px; }
  .avatar-caption strong { font-size: 12px; }
  .avatar-caption span:not(.status-orb) { font-size: 8px; }
  .voice-prompt {
    bottom: 14px;
    padding: 10px 14px;
  }

  .voice-prompt strong { font-size: 12px; }

  .context-overlay {
    right: 10px;
    bottom: 10px;
    left: 10px;
    max-height: 58%;
    padding: 18px;
  }

  .transcript-bubble { margin-bottom: 12px; }
  .answer-eyebrow { margin-bottom: 8px; font-size: 7px; }
  .answer-copy h1 { margin-bottom: 9px; font-size: clamp(23px, 8vw, 34px); }
  .answer-copy > p { font-size: 12px; line-height: 1.4; }
  .directory-card { margin-top: 14px; }
  .directory-head { min-height: 48px; padding: 8px 10px; }
  .transport-grid { min-height: 105px; }
  .transport-grid div { padding: 12px; }
  .transport-grid strong { font-size: 19px; }
  .source-row { font-size: 6px; }

  .stage-takeover .avatar-stage {
    border-radius: 12px;
    box-shadow:
      0 0 0 5px #07131a,
      0 0 0 6px rgba(108, 228, 255, 0.44),
      0 28px 50px rgba(0, 0, 0, 0.68);
    transform: translate3d(69vw, 43vh, 140px) scale(0.18) rotateY(7deg);
  }

  .navigation-map-camera { top: 46%; left: 59%; width: 154vw; }
  .navigation-hud p { font-size: 10px; }
  .navigation-destination { bottom: 50px; min-width: 56vw; padding: 10px 12px; }
  .navigation-destination strong { font-size: 14px; }
  .navigation-destination small { font-size: 7px; }
  .navigation-legend { gap: 10px; font-size: 6px; }
  .navigation-disclaimer { display: none; }

  .start-card { padding: 34px 22px; }
  .start-card button { min-height: 58px; font-size: 9px; }
}

@media (max-height: 700px) {
  .context-overlay { max-height: calc(100% - 20px); }
  .directory-card { margin-top: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ---------------------------------------------------------------------------------------------
   Core stage slot (AR13): a module's full-stage view sits behind the shrunk avatar; the answer
   text stays visible in every focus state (ND5). Added with the core/module split.
   -------------------------------------------------------------------------------------------- */
.stage-layer {
  position: absolute;
  z-index: 3;
  inset: 0;
}

/* The answer text is shown in every focus state (ND5); beside the avatar, or over a stage view. */
.answer-card {
  position: absolute;
  z-index: 7;
  right: clamp(18px, 3vw, 48px);
  bottom: clamp(18px, 3vh, 40px);
  max-width: min(46vw, 640px);
  padding: 14px 18px;
  background: rgba(4, 17, 26, 0.86);
  border: 1px solid rgba(139, 218, 237, 0.22);
  -webkit-backdrop-filter: blur(18px);
          backdrop-filter: blur(18px);
  /* `rise-in`, not `context-in`: this card is anchored to the bottom, not centred on `top: 50%`. */
  animation: rise-in 420ms cubic-bezier(0.2, 0.75, 0.2, 1) both;
}

.answer-card p {
  margin: 0;
  color: #c4d5dd;
  font-size: clamp(13px, 1.1vw, 16px);
  line-height: 1.45;
}

.answer-card .answer-eyebrow { margin-bottom: 6px; }

/* The core's clarifying question (askUser): question plus numbered options. */
.ask-card {
  padding: 16px 18px;
  background: rgba(8, 31, 43, 0.6);
  border: 1px solid rgba(139, 218, 237, 0.18);
}

.ask-card strong { display: block; font-size: 15px; line-height: 1.4; }

.ask-card ul {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 12px 0 0;
  list-style: none;
}

.ask-card li {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  color: #c4d5dd;
}

.ask-card li span {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  font-size: 11px;
  font-weight: 800;
  color: var(--cyan);
  border: 1px solid rgba(108, 228, 255, 0.4);
  border-radius: 50%;
}

.fact-card small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.4;
}

/* -----------------------------------------------------------------------------------------------
   Kitchen stage (docs/15 §9 "Composition, portrait 4K"): the 3D scene has the whole stage, the
   avatar stands in a small panel in the bottom-left corner over it (the corner takeover below), and
   the module's one card group docks to her right along the bottom. The scene's camera composes the
   run above that strip (`--kitchen-scene-reserve`, read by the scene runtime), so nothing annotated
   ever sits under her or the cards. KS10 caps the screen at five things — the run, the ribbon, one
   change cue, the avatar and the card group counted as one — so there is no unit list, no swatch
   grid, no progress indicator and no scrolling transcript here.
   -------------------------------------------------------------------------------------------- */

.experience-shell {
  /* The two room tones mirror SCENE_COLOURS.wall and .floor in the catalogue, so the avatar's panel
     and the scene read as one room rather than as two pictures. */
  --kitchen-wall: #e7e2da;
  --kitchen-floor: #c9ae8b;
  /* Her panel: a 4:5 box a little over a quarter of the width, never taller than the strip. */
  --kitchen-avatar-w: min(28%, 17vh);
  /* The dock beside it: the candidate cards, then the summary. */
  --kitchen-dock-h: clamp(110px, 16%, 380px);
  --kitchen-gutter: clamp(14px, 2.2vw, 34px);
  /* The share of the canvas the strip takes; the scene composes the run above it. */
  --kitchen-scene-reserve: 0.22;
}

.kitchen-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  animation: kitchen-stage-in 520ms cubic-bezier(0.2, 0.75, 0.2, 1) both;
}

/* A quiet scrim over the floor along the bottom strip, so the dock and the answer card read against
   it while the scene's floor still shows through around her panel. */
.kitchen-stage::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: calc(var(--kitchen-dock-h) + 3 * var(--kitchen-gutter));
  content: "";
  background: linear-gradient(180deg, rgba(2, 9, 14, 0), rgba(2, 9, 14, 0.55));
  pointer-events: none;
}

.kitchen-scene-host {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: linear-gradient(180deg, var(--kitchen-wall), #dcd5c9 58%, var(--kitchen-floor));
}

/* The scene owns its own canvas and its DOM label layer (KS9); it only needs the box. */
.kitchen-scene,
.kitchen-scene-host > * {
  position: absolute;
  inset: 0;
}

/* Quiet, top left, opposite the shell's listening status. */
.kitchen-caption {
  position: absolute;
  z-index: 8;
  top: clamp(14px, 2vh, 24px);
  left: clamp(18px, 3vw, 48px);
  display: flex;
  gap: 12px;
  align-items: baseline;
  margin: 0;
  padding: 8px 14px;
  background: rgba(4, 17, 26, 0.72);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px);
          backdrop-filter: blur(14px);
}

.kitchen-caption span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.kitchen-caption strong {
  color: var(--cyan);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: clamp(12px, 1.2vw, 15px);
  letter-spacing: 0.06em;
}

/* The attract state says one thing and shows nothing else (§3.1, U4): in the dock, beside her. */
.kitchen-attract {
  position: absolute;
  z-index: 8;
  right: var(--kitchen-gutter);
  bottom: var(--kitchen-gutter);
  left: calc(var(--kitchen-avatar-w) + 2 * var(--kitchen-gutter));
  width: fit-content;
  max-width: calc(100% - var(--kitchen-avatar-w) - 3 * var(--kitchen-gutter));
  padding: 12px 22px;
  margin: 0 auto;
  color: var(--ink);
  font-size: clamp(15px, 2.2vw, 26px);
  text-align: center;
  background: rgba(4, 17, 26, 0.78);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px);
          backdrop-filter: blur(14px);
}

/* The dock, along the bottom to the right of her panel: the candidates, then the summary. */
.kitchen-dock {
  position: absolute;
  z-index: 8;
  right: var(--kitchen-gutter);
  bottom: var(--kitchen-gutter);
  left: calc(var(--kitchen-avatar-w) + 2 * var(--kitchen-gutter));
  height: var(--kitchen-dock-h);
  animation: rise-in 420ms cubic-bezier(0.2, 0.75, 0.2, 1) both;
}

.kitchen-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: minmax(0, 1fr);
  gap: clamp(8px, 1.2vw, 16px);
}

.kitchen-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
  min-height: 0;
  padding: clamp(10px, 1.4vh, 16px);
  background: rgba(6, 22, 32, 0.82);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px);
          backdrop-filter: blur(14px);
  transition: border-color 320ms ease, box-shadow 320ms ease;
}

.kitchen-card[data-chosen] {
  border-color: rgba(108, 228, 255, 0.5);
  box-shadow: 0 0 0 1px rgba(108, 228, 255, 0.26), 0 0 34px rgba(43, 183, 215, 0.2);
}

.kitchen-card-head {
  display: flex;
  gap: 10px;
  align-items: baseline;
  justify-content: space-between;
}

.kitchen-card-head strong {
  font-size: clamp(11px, 1.1vw, 15px);
  line-height: 1.25;
}

.kitchen-card-tag {
  flex: none;
  color: var(--cyan);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

/* The schematic: widths to scale, tall housings drawn taller, standing on one floor line. */
.kitchen-card-bar {
  display: flex;
  gap: 2px;
  align-items: flex-end;
  height: 100%;
  min-height: 40px;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(139, 218, 237, 0.28);
}

.kitchen-card-unit {
  border-radius: 2px 2px 0 0;
  box-shadow: inset 0 -12px 18px rgba(0, 0, 0, 0.22);
}

.kitchen-card-unit[data-height="base"] { height: 52%; }
.kitchen-card-unit[data-height="mid"] { height: 76%; }
.kitchen-card-unit[data-height="tall"] { height: 100%; }

/* The exit panel (§3.5): four lines, generated from state, in the customer's terms. */
.kitchen-summary {
  display: grid;
  align-content: center;
  gap: clamp(6px, 1.2vh, 14px);
  padding: clamp(12px, 2vh, 22px) clamp(14px, 2vw, 26px);
  background: rgba(6, 22, 32, 0.86);
  border: 1px solid rgba(108, 228, 255, 0.28);
  -webkit-backdrop-filter: blur(14px);
          backdrop-filter: blur(14px);
}

.kitchen-summary > div {
  display: grid;
  grid-template-columns: minmax(0, 34%) minmax(0, 1fr);
  gap: 14px;
  align-items: baseline;
}

.kitchen-summary dt {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.kitchen-summary dd {
  margin: 0;
  color: var(--ink);
  font-size: clamp(12px, 1.15vw, 16px);
  line-height: 1.35;
}

/* -----------------------------------------------------------------------------------------------
   The corner takeover (05 AR15, docs/15 §9): the avatar stands waist-up in a small rounded panel in
   the bottom-left corner, over the module's full-stage scene, with the module's dock to her right,
   instead of the reception map's kiosk frame. Selected by the descriptor's `takeover: 'corner'`,
   which the shell writes onto the shell element; the kiosk treatment further up is untouched.
   -------------------------------------------------------------------------------------------- */

main.experience-shell[data-takeover="corner"] .stage-takeover .avatar-stage {
  top: auto;
  right: auto;
  bottom: var(--kitchen-gutter);
  left: var(--kitchen-gutter);
  z-index: 7;
  width: var(--kitchen-avatar-w);
  height: auto;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  /* The same wall and floor tones as the scene, so she stands in the room, not in a video call. */
  background: linear-gradient(180deg, var(--kitchen-wall) 0 56%, var(--kitchen-floor) 56%, #b9996f);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(108, 228, 255, 0.28);
  /* No rotation, no perspective, no scale: scaling this container would rescale the avatar's own
     canvas, and the runtime sizes its renderer to this box. The entry is a slide, not a resize, so
     the box never changes size mid-animation — that would re-fire the runtime's resize observer. */
  transform: none;
  transition: none;
  animation: kitchen-corner-in 620ms cubic-bezier(0.18, 0.78, 0.16, 1) both;
}

/* The kiosk's pedestal belongs to a frame, not to a room. */
main.experience-shell[data-takeover="corner"] .stage-takeover .avatar-stage::before { display: none; }

main.experience-shell[data-takeover="corner"] .stage-takeover .avatar-canvas {
  overflow: hidden;
  border-radius: inherit;
  filter: none;
  transform: none;
}

/* The answer card sits just above the dock, to the right of her panel: her sentence beside her, and
   never over the candidate cards or the summary panel (§9: one card group at a time). */
main.experience-shell[data-takeover="corner"] .stage-takeover .answer-card.on-stage {
  right: var(--kitchen-gutter);
  bottom: calc(var(--kitchen-dock-h) + 2 * var(--kitchen-gutter));
  left: auto;
  max-width: min(64%, 760px);
}

/* The clarifying question (askUser) is the core's own overlay, and in portrait its default is a
   full-width bottom sheet written for the reception kiosk. Here that would bury her panel and the
   candidate cards it is asking about. Put it where the answer card goes instead — above the dock,
   right-aligned, clear of her panel. The two never coexist (the shell hides the answer card while
   an overlay is up), so they can share the spot. */
main.experience-shell[data-takeover="corner"] .stage-takeover .context-overlay {
  top: auto;
  right: var(--kitchen-gutter);
  bottom: calc(var(--kitchen-dock-h) + 2 * var(--kitchen-gutter));
  left: auto;
  z-index: 8;
  width: min(64%, 900px);
  max-height: 50%;
  /* `rise-in`, not `context-in`: see the note by the keyframes — `context-in` ends on a -50%
     translate that would park this bottom-anchored card half its height above its box. */
  animation-name: rise-in;
}

/* docs/15 §9: the answer card is the only text on this panel and it shows the avatar's sentence,
   never the raw recognition string — a transcript on a two-metre panel is a permanent record of
   every mishearing, placed where the buyer reads it instead of watching the kitchen. */
main.experience-shell[data-takeover="corner"] .transcript-bubble {
  display: none;
}

/* Errors and notices are the operator's only channel. Along the bottom they would collide with the
   dock and her panel at 9 px; they belong up in the scene, at a size readable from two metres,
   centred where nothing else is (the caption is top left, the status pill top right). */
main.experience-shell[data-takeover="corner"] .system-notice {
  /* Under the caption and the status pill, well above the answer card and the ask overlay, which
     both anchor to the dock. */
  top: clamp(62px, 7vh, 110px);
  right: auto;
  bottom: auto;
  left: 50%;
  width: max-content;
  max-width: min(70%, 1000px);
  padding: 14px 22px;
  font-size: clamp(13px, 1.3vw, 20px);
  transform: translateX(-50%);
}

@keyframes kitchen-corner-in {
  from { opacity: 0; transform: translateY(18%); }
  to { opacity: 1; transform: translateY(0); }
}

/* These two cannot borrow `context-in`: that keyframe belongs to the overlay card, which is centred
   with `top: 50%`, so it ends on `translate(0, -50%)` — and `both` holds that transform for good.
   The kitchen stage, its dock and the answer card are inset-positioned, so borrowing it parked
   them half their own height above their box (the scene ran off the top of the screen). */
@keyframes kitchen-stage-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Landscape fallback: the panel is portrait 9:16, but the demo is also shown on a laptop. Her panel
   is sized from the height, the dock is capped so the cards do not stretch across the screen, and
   the strip takes a larger share of a short canvas. */
@media (min-aspect-ratio: 1/1) {
  .experience-shell {
    --kitchen-avatar-w: min(12vw, 22vh);
    --kitchen-dock-h: clamp(110px, 24%, 300px);
    --kitchen-scene-reserve: 0.26;
  }

  .kitchen-dock {
    left: auto;
    width: min(60%, 1100px);
  }

  .kitchen-cards {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
  }

  .kitchen-summary > div { grid-template-columns: minmax(0, 22%) minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .kitchen-stage,
  .kitchen-dock,
  main.experience-shell[data-takeover="corner"] .stage-takeover .avatar-stage {
    animation: none;
  }

  .kitchen-card { transition: none; }
}

/* Operator debug view (R46): toggled with ?debug or Ctrl+Shift+D, never visible by default. */
.debug-panel {
  position: fixed;
  z-index: 40;
  right: 12px;
  bottom: 12px;
  left: 12px;
  display: grid;
  gap: 6px;
  padding: 10px 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  color: #d9e6ec;
  background: rgba(2, 10, 16, 0.92);
  border: 1px solid rgba(139, 218, 237, 0.3);
}

.debug-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.debug-turn { flex-direction: column; align-items: flex-start; gap: 3px; }

.debug-panel button {
  padding: 4px 10px;
  font: inherit;
  color: var(--cyan);
  background: transparent;
  border: 1px solid rgba(139, 218, 237, 0.4);
  cursor: pointer;
}

/* Status pill on the stage layer while the stage has the screen (R4). */
.stage-status {
  position: absolute;
  z-index: 8;
  top: clamp(14px, 2vh, 24px);
  right: clamp(18px, 3vw, 48px);
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 8px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #d9e6ec;
  background: rgba(4, 17, 26, 0.8);
  border: 1px solid rgba(139, 218, 237, 0.22);
  -webkit-backdrop-filter: blur(14px);
          backdrop-filter: blur(14px);
}

/* Above the answer card and the module's own stage layer while the stage has the screen. (The old
   `transform: none` here was inert: it sat on a descendant of the transformed avatar box, which is
   why the notice now hangs off `.stage-grid` instead — see ExperienceShell.) */
.stage-takeover .system-notice { z-index: 9; }

