/* ===== Office stage: one static background + independent animated layers =====
   The .world is exactly 1672x941 (background pixels) and is scaled with a CSS
   transform, so every coordinate in data/*.json is a plain image pixel. */

.stage {
  position: relative;
  width: min(100%, calc((100dvh - var(--topbar-h) - 70px) * 1.7768));
  aspect-ratio: 1672 / 941;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid #6a42c4;
  box-shadow: 0 0 50px #5a2bd044, 0 20px 60px #0009;
  background: #0b0b20;
  outline: none;
  touch-action: manipulation;
}
.world { position: absolute; left: 0; top: 0; width: 1672px; height: 941px; transform-origin: 0 0; transform: scale(var(--s, .5)); }
.layer { position: absolute; inset: 0; width: 1672px; height: 941px; }
.bg { display: block; user-select: none; -webkit-user-drag: none; }
.fx, .staff, .robot-layer, .occluders, .glow, .hitmap-debug { pointer-events: none; }
.fx-under { z-index: 10; } .staff-seated { z-index: 20; } .robot-layer { z-index: 30; }
.occluders { z-index: 40; } .staff-front { z-index: 50; } .fx-over { z-index: 60; }
.glow { z-index: 70; mix-blend-mode: screen; } .hitmap-debug { z-index: 75; display: none; }
.hotspots { z-index: 80; }
.stage-ui { position: absolute; inset: 0; z-index: 90; pointer-events: none; }
.stage-ui > * { pointer-events: auto; }

/* layer toggles (body classes set by settings) */
.no-robot .robot-layer, .no-robot .robot-hit { display: none; }
.no-staff .staff { display: none; }
.no-fx .fx { display: none; }
.show-hitmap .hitmap-debug { display: block; }

/* ---------- room glow + hit areas ---------- */
.glow polygon { fill: #b06cff; fill-opacity: 0; stroke: #d9b8ff; stroke-width: 2.4; stroke-opacity: 0; stroke-linejoin: round; transition: fill-opacity .2s, stroke-opacity .2s; }
.glow polygon.is-active { fill-opacity: .2; stroke-opacity: 1; filter: drop-shadow(0 0 6px #b98aff) drop-shadow(0 0 14px #8d4df4); }
.glow polygon.is-flash { animation: flash .5s ease-out 1; }
@keyframes flash { 0% { fill-opacity: .45; stroke-opacity: 1; } 100% { fill-opacity: .2; stroke-opacity: 1; } }
.hitmap-debug polygon { fill: #00ffd0; fill-opacity: .14; stroke: #00ffd0; stroke-width: 2; stroke-dasharray: 8 5; }
.hitmap-debug text { fill: #00ffd0; font: 700 18px var(--font); paint-order: stroke; stroke: #000; stroke-width: 4px; }
.hotspot { position: absolute; padding: 0; margin: 0; border: 0; background: transparent; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.hotspot:focus-visible { box-shadow: none; }
.robot-hit { position: absolute; z-index: 85; background: transparent; border: 0; border-radius: 40% 40% 12px 12px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.robot-hit:focus-visible { box-shadow: 0 0 0 3px #e2ceff, 0 0 18px 4px #9a63ff; }

/* hover tooltip near the room sign */
.room-tip {
  position: absolute; transform: translate(-50%, calc(-100% - 10px));
  background: #120f33f0; border: 1px solid #a072ff; border-radius: 12px; padding: 8px 12px 9px; min-width: 170px;
  box-shadow: 0 8px 30px #0009, 0 0 24px #8d4df455; pointer-events: none; text-align: left;
}
.room-tip strong { display: block; font: 600 14px var(--display); }
.room-tip span { display: block; font-size: 12px; color: var(--muted); }
.room-tip em { display: block; font-style: normal; font-size: 11.5px; color: var(--violet-3); margin-top: 3px; }
.room-tip.below { transform: translate(-50%, 14px); }

/* ---------- robot: rendered video mode (Chrome/Edge/Firefox), puppet fallback ---------- */
.robot-video { position: absolute; }
.robot-video video { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.robot-video .rv-greet { opacity: 0; transition: opacity .26s ease; }
.robot-video.greeting .rv-greet { opacity: 1; }
.robot-video.greeting.settled .rv-idle { visibility: hidden; }
.robot.video-mode { animation: none; }
.robot.video-mode > img, .robot.video-mode .robot-headfx, .robot.video-mode .logo-glow { display: none; }

/* ---------- robot (puppet of photographic cut-outs) ---------- */
.robot { position: absolute; left: 0; top: 0; width: 1px; height: 1px; animation: robotBreath 4.8s ease-in-out infinite; }
.robot img { position: absolute; display: block; user-select: none; }
.robot-head, .robot-headfx { transition: transform .9s cubic-bezier(.3,.7,.3,1); animation: robotHeadIdle 13s ease-in-out infinite; }
.robot-hand { transition: transform .6s ease; }
.robot.greet .robot-hand { animation: robotWave .42s ease-in-out 6 alternate; }
.robot.greet .robot-head, .robot.greet .robot-headfx { animation: robotNod 1.2s ease-in-out 2; }
.robot .eye { position: absolute; width: 9px; height: 4px; border-radius: 50%; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, #ffffff, #b9a8ff 45%, #7b5cff00 100%); mix-blend-mode: screen; opacity: .75;
  animation: eyePulse 3.6s ease-in-out infinite; }
.robot .eye-glow { position: absolute; width: 46px; height: 22px; border-radius: 50%; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, #9a7bff66, #7b5cff00); mix-blend-mode: screen; opacity: .55; animation: eyePulse 3.6s ease-in-out infinite; }
.robot .lid { position: absolute; width: 30px; height: 7px; border-radius: 4px; background: #07080e; transform: translate(-50%, -50%); opacity: 0; }
.robot.blink .lid { opacity: 1; }
.robot.attentive .eye, .robot.attentive .eye-glow { opacity: 1; }
.robot .logo-glow { position: absolute; width: 52px; height: 40px; transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(closest-side, #a46bff55, #a46bff00); mix-blend-mode: screen; animation: logoPulse 5s ease-in-out infinite; }
.robot .halo { position: absolute; width: 190px; height: 70px; transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(closest-side, #8d4df433, #8d4df400); mix-blend-mode: screen; }
.robot.greet .eye, .robot.greet .eye-glow { animation: eyeFlash .5s ease-in-out 3; }
@keyframes robotBreath { 0%, 100% { translate: 0 0; } 50% { translate: 0 -1.1px; } }
@keyframes robotHeadIdle { 0%, 100% { rotate: 0deg; } 18% { rotate: -2.2deg; } 30% { rotate: -2.2deg; } 46% { rotate: .6deg; } 62% { rotate: 2.4deg; } 74% { rotate: 2.4deg; } 88% { rotate: 0deg; } }
@keyframes robotNod { 0%, 100% { translate: 0 0; rotate: 0deg; } 40% { translate: 0 2px; rotate: 1.5deg; } }
@keyframes robotWave { from { rotate: -9deg; } to { rotate: 12deg; } }
@keyframes eyePulse { 0%, 100% { opacity: .62; } 50% { opacity: .95; } }
@keyframes eyeFlash { 0%, 100% { opacity: .7; filter: brightness(1); } 50% { opacity: 1; filter: brightness(1.8); } }
@keyframes logoPulse { 0%, 100% { opacity: .35; } 50% { opacity: .85; } }

.robot-bubble {
  position: absolute; width: min(300px, 46%); transform: translate(0, -50%);
  background: #121036f2; border: 1px solid #a072ff; border-radius: 16px 16px 16px 4px; padding: 12px 14px;
  box-shadow: 0 10px 40px #000a, 0 0 30px #8d4df455; font-size: 13.5px;
}
.robot-bubble p { margin: 0 0 10px; }
.robot-bubble p small { display: block; color: var(--muted); margin-top: 4px; font-size: 11.5px; }
.bubble-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- staff ---------- */
.person { position: absolute; overflow: visible; }
.person * { transform-box: view-box; }
.person g, .person path, .person circle, .person rect, .person ellipse { transition: opacity .45s ease, transform .55s cubic-bezier(.3,.7,.3,1); }
.person { filter: blur(.28px) saturate(.92); }
.staff-front .person { filter: blur(.28px) saturate(.92) drop-shadow(0 0 1px #0007); }
.person .p-arms-up, .person .p-cup, .person .p-phone, .person .p-arm-raise, .person .p-tablet { opacity: 0; }

/* seated pivots */
.seated .p-head { transform-origin: 20px 23px; }
.seated .p-arms-up { transform-origin: 20px 26px; transform: scale(.25); }
.seated .p-cup { transform: translate(1px, 5px); }

.seated[data-pose="typing"] .p-hand-l { animation: tapL .31s ease-in-out infinite alternate; animation-delay: var(--d, 0s); }
.seated[data-pose="typing"] .p-hand-r { animation: tapR .27s ease-in-out infinite alternate; animation-delay: calc(var(--d, 0s) + .1s); }
.seated[data-pose="typing"] .p-torso { animation: shoulder 1.9s ease-in-out infinite; }
.seated[data-pose="mouse"] .p-hand-r, .seated[data-pose="mouse"] .p-fore-r { transform: translate(1.8px, .5px); }
.seated[data-pose="mouse"] .p-hand-r { animation: mouseMove 2.2s ease-in-out infinite; }
.seated[data-pose="lookL"] .p-head, .seated[data-pose="talkL"] .p-head { transform: translateX(-.6px) rotate(-7deg); }
.seated[data-pose="lookL"] .p-hair, .seated[data-pose="talkL"] .p-hair { transform: translateX(1.1px); }
.seated[data-pose="lookR"] .p-head, .seated[data-pose="talkR"] .p-head { transform: translateX(.6px) rotate(7deg); }
.seated[data-pose="lookR"] .p-hair, .seated[data-pose="talkR"] .p-hair { transform: translateX(-1.1px); }
.seated[data-pose="talkL"] .p-head, .seated[data-pose="talkR"] .p-head, .seated[data-pose="nod"] .p-head { animation: nod 1.1s ease-in-out infinite; }
.seated[data-pose="leanBack"] .p-all { transform: translateY(1.5px); }
.seated[data-pose="leanBack"] .p-arms-desk { opacity: 0; }
.seated[data-pose="leanBack"] .p-head { transform: rotate(-2deg); }
.seated[data-pose="stretch"] .p-arms-up { opacity: 1; transform: scale(1); }
.seated[data-pose="stretch"] .p-arms-desk { opacity: 0; }
.seated[data-pose="stretch"] .p-head { transform: translateY(.8px); }
.seated[data-pose="sip"] .p-cup { opacity: 1; transform: none; }
.seated[data-pose="sip"] .p-hand-r, .seated[data-pose="sip"] .p-fore-r { opacity: 0; }
.seated[data-pose="sip"] .p-head { transform: rotate(5deg); }
.seated[data-pose="phone"] .p-phone { opacity: 1; }
.seated[data-pose="phone"] .p-arms-desk { opacity: 0; }
.seated[data-pose="phone"] .p-head { transform: translateY(1.1px); }

@keyframes tapL { from { translate: 0 0; } to { translate: .25px -.55px; } }
@keyframes tapR { from { translate: 0 -.4px; } to { translate: -.25px .2px; } }
@keyframes shoulder { 0%, 100% { translate: 0 0; } 50% { translate: 0 .25px; } }
@keyframes mouseMove { 0%, 100% { translate: 0 0; } 30% { translate: .8px -.4px; } 60% { translate: -.3px .3px; } }
@keyframes nod { 0%, 100% { translate: 0 0; } 25% { translate: 0 .7px; } 50% { translate: 0 0; } 75% { translate: 0 .5px; } }

/* sofa (front view) */
.sofa .p-all { animation: breathe 4.6s ease-in-out infinite; animation-delay: var(--d, 0s); }
.sofa .p-arm-raise { transform: rotate(30deg); }
.sofa[data-pose="talk"] .p-arm-r { opacity: 0; }
.sofa[data-pose="talk"] .p-arm-raise { opacity: 1; transform: none; animation: gesture 2.1s ease-in-out infinite; }
.sofa[data-pose="talk"] .p-head, .sofa[data-pose="nod"] .p-head { animation: nodS 1.5s ease-in-out infinite; }
.sofa[data-pose="lookR"] .p-head { transform: rotate(8deg) translateX(.6px); }

/* standing / walking */
.standing .p-all { animation: breathe 4.2s ease-in-out infinite; animation-delay: var(--d, 0s); }
.standing .p-arm-raise { transform: rotate(18deg); }
.standing[data-pose="present"] .p-arm-r, .standing[data-pose="point"] .p-arm-r, .standing[data-pose="browse"] .p-arm-r,
.standing[data-pose="talk"] .p-arm-r { opacity: 0; }
.standing[data-pose="present"] .p-arm-raise, .standing[data-pose="point"] .p-arm-raise, .standing[data-pose="browse"] .p-arm-raise,
.standing[data-pose="talk"] .p-arm-raise { opacity: 1; transform: none; }
.standing[data-pose="present"] .p-arm-raise { animation: gesture 1.6s ease-in-out infinite; }
.standing[data-pose="present"] .p-arm-l { transform: rotate(10deg); animation: gestureL 2.3s ease-in-out infinite; }
.standing[data-pose="present"] .p-head, .standing[data-pose="talk"] .p-head { animation: nodS 1.8s ease-in-out infinite; }
.standing[data-pose="point"] .p-arm-raise { transform: rotate(-26deg); }
.standing[data-pose="browse"] .p-arm-raise { animation: swipe 1.9s ease-in-out infinite; }
.standing[data-pose="talk"] .p-arm-raise { animation: gesture 2.4s ease-in-out infinite; }
.standing[data-pose="tablet"] .p-arm-l, .standing[data-pose="tablet"] .p-arm-r { opacity: 0; }
.standing[data-pose="tablet"] .p-tablet { opacity: 1; }
.standing[data-pose="tablet"] .p-head { transform: translateY(.9px) rotate(-3deg); }
.standing[data-pose="nod"] .p-head { animation: nodS 1.2s ease-in-out infinite; }
.standing.walking .p-all { animation: bob .45s ease-in-out infinite; }
.standing.walking .p-leg-l { animation: legSwing .9s ease-in-out infinite; }
.standing.walking .p-leg-r { animation: legSwing .9s ease-in-out infinite reverse; }
.standing.walking .p-arm-l { animation: armSwing .9s ease-in-out infinite reverse; }
.standing.walking .p-arm-r { animation: armSwing .9s ease-in-out infinite; }
.walker { transition: opacity .6s ease; }
@keyframes breathe { 0%, 100% { translate: 0 0; } 50% { translate: 0 -.35px; } }
@keyframes gesture { 0%, 100% { rotate: 0deg; } 35% { rotate: -16deg; } 70% { rotate: 6deg; } }
@keyframes gestureL { 0%, 100% { rotate: 0deg; } 50% { rotate: 8deg; } }
@keyframes swipe { 0%, 100% { rotate: -22deg; } 50% { rotate: -2deg; } }
@keyframes nodS { 0%, 100% { translate: 0 0; } 30% { translate: 0 .8px; } 60% { translate: 0 0; } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -.9px; } }
@keyframes legSwing { 0%, 100% { rotate: 11deg; } 50% { rotate: -11deg; } }
@keyframes armSwing { 0%, 100% { rotate: 12deg; } 50% { rotate: -12deg; } }

/* ---------- screen & ambient effects (additive; original art stays visible) ---------- */
.fx-el { position: absolute; pointer-events: none; }
.scr { overflow: hidden; border-radius: 2px; mix-blend-mode: screen; }
.sweep::after { content: ""; position: absolute; inset: -20% -60%; background: linear-gradient(105deg, transparent 40%, #ffffff30 50%, transparent 60%);
  animation: sweep var(--t, 7s) ease-in-out infinite; animation-delay: var(--d, 0s); }
@keyframes sweep { 0%, 55% { transform: translateX(-60%); } 100% { transform: translateX(60%); } }
.flicker { animation: flicker var(--t, 5s) steps(1) infinite; animation-delay: var(--d, 0s); }
@keyframes flicker { 0%, 100% { opacity: .5; } 7% { opacity: .2; } 8% { opacity: .55; } 61% { opacity: .42; } 62% { opacity: .58; } }
.scroll-lines { position: absolute; inset: 0; background: repeating-linear-gradient(180deg, #b6a6ff22 0 2px, transparent 2px 7px); animation: scrollUp 6s linear infinite; opacity: .55; }
@keyframes scrollUp { from { background-position: 0 0; } to { background-position: 0 -70px; } }
.caret { position: absolute; width: 1.6px; height: 6px; background: #fff; animation: blink 1s steps(1) infinite; box-shadow: 0 0 4px #fff; }
@keyframes blink { 50% { opacity: 0; } }

.tally { width: 4px; height: 4px; border-radius: 50%; background: #ff2b4a; box-shadow: 0 0 6px 2px #ff2b4aaa; transform: translate(-50%, -50%); animation: rec 1.2s steps(1) infinite; }
@keyframes rec { 50% { opacity: .15; box-shadow: none; } }
.softbox { width: 64px; height: 50px; border-radius: 50%; transform: translate(-50%, -50%); background: radial-gradient(closest-side, #fff8e855, #fff8e800); mix-blend-mode: screen; animation: softbox 3.4s ease-in-out infinite; animation-delay: var(--d, 0s); }
@keyframes softbox { 0%, 100% { opacity: .65; } 50% { opacity: 1; } 51% { opacity: .78; } 53% { opacity: 1; } }
.render-bar { position: absolute; left: 8%; right: 8%; bottom: 10%; height: 3px; background: #ffffff22; border-radius: 2px; overflow: hidden; }
.render-bar::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #8d4df4, #ff5fb7); transform-origin: 0 50%; animation: render 8s linear infinite; }
@keyframes render { 0% { transform: scaleX(0); } 85% { transform: scaleX(1); } 100% { transform: scaleX(1); opacity: 0; } }

.envelope { width: 12px; height: 8px; transform: translate(-50%, -50%); opacity: 0; filter: drop-shadow(0 0 3px #d7c2ff); animation: envFly var(--t, 6s) ease-in-out infinite; animation-delay: var(--d, 0s); }
@keyframes envFly { 0% { opacity: 0; translate: 0 6px; scale: .6; } 15% { opacity: 1; } 70% { opacity: .9; translate: var(--dx, 80px) -14px; scale: 1; } 85%, 100% { opacity: 0; translate: var(--dx, 80px) -16px; scale: .7; } }
.progress { position: absolute; left: 10%; right: 10%; bottom: 12%; height: 3px; border-radius: 3px; background: #ffffff25; overflow: hidden; }
.progress i { position: absolute; inset: 0; background: linear-gradient(90deg, #b98aff, #4fd1ff); transform-origin: 0 50%; animation: progress 9s ease-in-out infinite; }
@keyframes progress { 0% { transform: scaleX(.05); } 70% { transform: scaleX(.72); } 100% { transform: scaleX(.72); } }

.lead-card { position: absolute; width: 46px; height: 13px; border-radius: 3px; background: linear-gradient(90deg, #ffffff, #e9e3ff); box-shadow: 0 0 10px #c7a6ff, 0 0 2px #fff;
  opacity: 0; transform: translateY(-10px) scale(.9); transition: opacity .5s ease, transform .6s cubic-bezier(.2,.8,.2,1); }
.lead-card::before { content: ""; position: absolute; left: 3px; top: 3px; width: 7px; height: 7px; border-radius: 50%; background: linear-gradient(135deg, #ffb27a, #b45a3c); }
.lead-card::after { content: ""; position: absolute; left: 13px; right: 4px; top: 4px; height: 2px; background: #6b5bd0; box-shadow: 0 3px 0 #b6aee8; border-radius: 2px; }
.lead-card.in { opacity: .95; transform: none; }
.lead-card.out { opacity: 0; transform: translateY(6px) scale(.96); }

.bar-scan::after { content: ""; position: absolute; top: 0; bottom: 0; width: 26px; left: -30px; background: linear-gradient(90deg, transparent, #ffd6fa55, transparent); animation: barScan 5.5s ease-in-out infinite; }
@keyframes barScan { 0% { left: -30px; } 70%, 100% { left: 100%; } }
.bars { display: flex; align-items: flex-end; gap: 3px; mix-blend-mode: screen; }
.bars i { flex: 1; background: linear-gradient(#ff8fd6, #c04df4); border-radius: 1px 1px 0 0; opacity: .55; transform-origin: 50% 100%; animation: grow 7s ease-in-out infinite; }
@keyframes grow { 0% { transform: scaleY(.15); } 30% { transform: scaleY(1); } 80% { transform: scaleY(1); } 100% { transform: scaleY(.15); } }
.donut { border-radius: 50%; transform: translate(-50%, -50%); background: conic-gradient(#ffffff00 0 70%, #c7f0ff99 78%, #ffffff00 86%); mix-blend-mode: screen;
  -webkit-mask: radial-gradient(closest-side, transparent 58%, #000 60%); mask: radial-gradient(closest-side, transparent 58%, #000 60%); animation: spin 6s linear infinite; }
@keyframes spin { to { rotate: 360deg; } }
.chart-line { position: absolute; inset: 0; mix-blend-mode: screen; }
.chart-line path { fill: none; stroke: #ffe1ff; stroke-width: 1.6; stroke-linecap: round; filter: drop-shadow(0 0 3px #ff5fb7); stroke-dasharray: 260; stroke-dashoffset: 260; animation: draw 6s ease-in-out infinite; }
@keyframes draw { 0% { stroke-dashoffset: 260; opacity: 0; } 10% { opacity: 1; } 60% { stroke-dashoffset: 0; opacity: 1; } 90%, 100% { stroke-dashoffset: 0; opacity: 0; } }
.social-pulse { width: 34px; height: 34px; border-radius: 9px; transform: translate(-50%, -50%); box-shadow: 0 0 0 0 #fff0; animation: socialPulse 6s ease-out infinite; animation-delay: var(--d, 0s); }
@keyframes socialPulse { 0% { box-shadow: 0 0 0 0 #ffffffaa; } 12% { box-shadow: 0 0 0 7px #ffffff00; } 100% { box-shadow: 0 0 0 7px #ffffff00; } }

.tile-hl { position: absolute; border-radius: 2px; box-shadow: 0 0 0 1.5px #f4e9ff, 0 0 10px 2px #b98aff; background: #ffffff1c; mix-blend-mode: screen; transition: left .7s cubic-bezier(.5,0,.2,1), top .7s cubic-bezier(.5,0,.2,1), width .7s, height .7s; }

.holo { position: absolute; width: 46px; transform: translate(-50%, -100%); }
.holo-panel { border: 1px solid #c9a6ffcc; border-radius: 4px; background: linear-gradient(180deg, #8d4df433, #4fd1ff14); padding: 3px 4px; box-shadow: 0 0 10px #8d4df4aa, inset 0 0 6px #b98aff55; animation: holoFloat 4s ease-in-out infinite; }
.holo-row { display: flex; align-items: center; gap: 3px; height: 6px; margin: 1.5px 0; }
.holo-row b { width: 4px; height: 4px; border: 1px solid #e2ceff; border-radius: 1px; flex: none; position: relative; }
.holo-row i { height: 1.6px; flex: 1; background: #e2ceffaa; border-radius: 1px; }
.holo-row.done b { background: #3ddc97; border-color: #3ddc97; box-shadow: 0 0 4px #3ddc97; }
.holo-row.done i { background: #e2ceff44; }
.holo-beam { width: 22px; height: 14px; margin: 0 auto; background: linear-gradient(180deg, #b98aff44, #b98aff00); clip-path: polygon(15% 0, 85% 0, 60% 100%, 40% 100%); }
@keyframes holoFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -1.5px; } }

.globe-fx { position: absolute; transform: translate(-50%, -50%); border-radius: 50%; mix-blend-mode: screen; }
.globe-fx svg { width: 100%; height: 100%; overflow: visible; }
.globe-fx ellipse { fill: none; stroke: #d6c4ff; stroke-width: .9; opacity: .55; }
.globe-fx .m1 { animation: meridian 9s linear infinite; }
.globe-fx .m2 { animation: meridian 9s linear infinite -3s; }
.globe-fx .m3 { animation: meridian 9s linear infinite -6s; }
.globe-fx ellipse { transform-box: fill-box; transform-origin: center; }
@keyframes meridian { 0% { transform: scaleX(.02); opacity: 0; } 15% { opacity: .55; } 50% { transform: scaleX(1); opacity: .5; } 85% { opacity: .55; } 100% { transform: scaleX(.02); opacity: 0; } }
.globe-glow { position: absolute; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(closest-side, #a77bff40, #a77bff00); mix-blend-mode: screen; animation: logoPulse 4s ease-in-out infinite; }
.particle { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #e7dcff; box-shadow: 0 0 5px #b98aff; opacity: 0; animation: rise var(--t, 3s) linear infinite; animation-delay: var(--d, 0s); }
@keyframes rise { 0% { opacity: 0; translate: 0 0; } 20% { opacity: .9; } 100% { opacity: 0; translate: var(--dx, 0px) -60px; } }
.ring-pulse { position: absolute; transform: translate(-50%, -50%); border-radius: 50%; border: 2px solid #c08cff; opacity: 0; mix-blend-mode: screen; animation: ringPulse 5s ease-out infinite; }
@keyframes ringPulse { 0% { opacity: .55; scale: .96; } 100% { opacity: 0; scale: 1.12; } }

/* reduced motion / animations off: freeze everything into a calm static scene */
.motion-off .world *, .motion-off .world *::before, .motion-off .world *::after { animation: none !important; transition: none !important; }
.motion-off .lead-card, .motion-off .envelope, .motion-off .particle, .motion-off .ring-pulse { display: none; }
.motion-off .walker { display: none; }
.motion-off .bars i { transform: scaleY(1); }
.motion-off .progress i { transform: scaleX(.72); }

/* ---------- guided tour ---------- */
.tour-card {
  position: absolute; left: 50%; bottom: 3%; transform: translateX(-50%); width: min(440px, 92%);
  background: #120f33f5; border: 1px solid #a072ff; border-radius: 16px; padding: 14px 16px 12px; box-shadow: 0 16px 50px #000b, 0 0 30px #8d4df455;
}
.tour-card h3 { margin: 0 0 4px; font: 600 17px var(--display); }
.tour-card p { margin: 0 0 10px; font-size: 13.5px; color: #ddd7ff; }
.tour-card .tour-step { font-size: 11px; letter-spacing: 1.4px; color: var(--violet-2); font-weight: 700; text-transform: uppercase; }
.tour-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.tour-actions .spacer { flex: 1; }

/* ---------- room list (mobile / tablet; also a non-visual index) ---------- */
.room-list ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
.room-list button {
  width: 100%; display: flex; align-items: center; gap: 10px; text-align: left; min-height: 56px;
  background: #11153a; border: 1px solid #2f2f72; border-radius: 12px; padding: 9px 11px; color: var(--text);
}
.room-list button:hover { border-color: #7a55e0; background: #171b48; }
.room-list .ri { width: 30px; height: 30px; flex: none; border-radius: 9px; display: grid; place-items: center; background: #2a1d63; color: var(--violet-3); }
.room-list .ri svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.room-list b { display: block; font-size: 13.5px; }
.room-list small { display: block; color: var(--muted); font-size: 11.5px; }
@media (min-width: 1001px) { .room-list { display: none; } }
@media (max-width: 760px) {
  .stage { width: 100%; border-radius: 10px; }
  .room-tip { display: none !important; }
  .robot-bubble { width: 70%; font-size: 12px; padding: 9px 10px; }
  .tour-card { position: fixed; bottom: 80px; z-index: 50; }
  .room-list ul { grid-template-columns: 1fr 1fr; }
}
.noscript { position: absolute; inset: auto 10px 10px; background: #000c; padding: 10px; border-radius: 8px; }
