<!-- SOLID CITY · part 407 -->
e = 1; if (k.KeyF) rise = -1;
    S.rflyT = (S.rflyT || 0) + dt;
    if (S.rflyLand) rise = -1; else if (rise === 0 && S.rflyT < 1.1) rise = 1; // the lift-off
    S.rflyV = (S.rflyV || 0) + (rise * 14 - (S.rflyV || 0)) * Math.min(1, dt * 6);
    P.y += S.rflyV * dt;
    if (P.y > 420) P.y = 420;
  }
  var gy = groundAt(P.x, P.z); if (gy < 0.5) { gy = 0.5; } // wading at the shore, no deeper
  if (window.CityForge) { var fy = CityForge.standY(P.x, P.z, P.y); if (fy > gy) gy = fy; }   // stand on Forge pieces (steps, slabs)
  if (window.CityAncestorRoads && CityAncestorRoads.topY) { var ap = CityAncestorRoads.pos; if (Math.hypot(P.x - ap.x, P.z - ap.z) < 560) { var ay = CityAncestorRoads.topY(); if (ay > gy) gy = ay; } }   // stand on the Ancestral Roads terrace
  if (window.CityVillageMauna && CityVillageMauna.standY) { var vy = CityVillageMauna.standY(P.x, P.z); if (vy > gy) gy = vy; }
  if (window.CityMountainHomes && CityMountainHomes.standY) { var mhy = CityMountainHomes.standY(P.x, P.z, P.y); if (mhy > gy) gy = mhy; }   // stand in the Ancestors' Homes (pads, lanai, floors, stairs)   // stand on Kauhale Mauna terraces
  if (window.CityTunnelBore && CityTunnelBore.standY) { var ty = CityTunnelBore.standY(P.x, P.z); if (ty > gy) gy = ty; }   // stand on the Bore floor
  if (window.CityStarwell && CityStarwell.standY) { var wy = CityStarwell.standY(P.x, P.z); if (wy > gy) gy = wy; }   // stand on the Starwell floor
  if (window.CityHyperTrain && CityHyperTrain.standY) { var hy = CityHyperTrain.standY(P.x, P.z); if (hy > gy) gy = hy; }   // stand on train platforms
  if (window.CityHyperCity && CityHyperCity.standY) { var hcy = CityHyperCity.standY(P.x, P.z); if (hcy > gy) gy = hcy; }   // stand on hyper building floors
  if (window.CityAnnex && CityAnnex.standY) { var any = CityAnnex.standY(P.x, P.z); if (any > gy) gy = any; }   // stand on the Annex floors
  if (window.CityQuadrantCrown && CityQuadrantCrown.standY) { var qcy = CityQuadrantCrown.standY(P.x, P.z); if (qcy > gy) gy = qcy; }   // stand on Quadrant Crown floors
  if (window.CitySpaceport && CitySpaceport.standY) { var spy = CitySpaceport.standY(P.x, P.z); if (spy > gy) gy = spy; }
  if (window.CityLostWings && CityLostWings.standY) { var lwy = CityLostWings.standY(P.x, P.z, P.y); if (lwy > gy) gy = lwy; }
  if (window.CityOctaPool && CityOctaPool.standY) { var opy = CityOctaPool.standY(P.x, P.z, P.y); if (opy > gy) gy = opy; }   // stand at the Octahedron Pool (terrace + wading floor)   // stand in the Lost Wings Grove (clearing + deck)   // stand on the spaceport pads (Spatial Intelligence)
  if (window.CityImperialColosseum && CityImperialColosseum.pos) { var cp = CityImperialColosseum.pos; if (Math.hypot(P.x - cp.x, P.z - cp.z) < 290) { var cy = (function(){ try { return CityImperialColosseum.group().position.y + 2; } catch(e){ return -1000; } })(); if (cy > gy) gy = cy; } }   // stand on the Imperial Colosseum terrace
  if (!RF && gy < 1 && heightAt(P.x, P.z) < -1.5) { P.x -= (P.x - (P.lx || P.x)); P.z -= (P.z - (P.lz || P.z)); gy = groundAt(P.x, P.z); help('The sea is too deep to walk — take a ship from the spaceport.', 3); }
  P.lx = P.x; P.lz = P.z;
  if (RF) {
    if (S.rflyLand) { if (P.y <= gy + 0.02) { P.y = gy; S.rfly = false; S.rflyLand = false; S.rflyV = 0; if (window.CityRoyal && CityRoyal.onLand) CityRoyal.onLand(); } }
    else if (P.y < gy) P.y = gy;
  } else P.y += (gy - P.y) * Math.min(1, dt * 12);
  if (!RF && P.y < Y0 + 0.5 && Math.hypot(P.x, P.z) < 800 && gy < Y0 + 0.05) P.y = Y0 + (Math.hypot(P.x, P.z) < 110 ? 0.12 : 0.02);
  avatar.rotation.y = P.face;
  var sw = Math.sin(P.walk || 0) * (mag > 0.08 ? 0.5 : 0);
  avatar.children.forEach(function (c) { if (c.name === 'leg1' || c.name === 'arm-1') c.rotation.x = sw; if (c.name === 'leg-1' || c.name === 'arm1') c.rotation.x = -sw; });
  // context action
  actTarget = null;
  var dS = Math.hypot(P.x - SABLE_POS.x, P.z - SABLE_POS.z);
  if (dS < 7) actTarget = { kind: 'sable', label: 'TALK TO SABLE' };
  if (!actTarget && Math.hypot(P.x - SOUL.door.x, P.z - SOUL.door.z) < 8) actTarget = { kind: 'soul', label: 'ENTER SOUL PRINT TOWER' };
  if (!actTarget && window.CitySanctuary && window.CityCitizens && CitySanctuary.talkHere(P.x, P.z)) actTarget = { kind: 'citizen', id: 'provolta', label: 'TALK TO PROVOLTA' };   // the sanctuary's talk point
  if (!actTarget && window.CityPodium && CityPodium.actHere(P.x, P.z)) actTarget = { kind: 'podium', label: 'READ' };   // ALL THAT WE CAN DO! podium
  if (!actTarget && window.CityBook && CityBook.actHere(P.x, P.z)) actTarget = { kind: 'book', label: 'READ THE BOOK' };   // the King's Book of Law (Forum Plaza)
  if (!actTarget && window.CityCampus) { var cpt = CityCampus.actHere(P.x, P.z); if (cpt) actTarget = { kind: 'campus', id: cpt, label: 'OPEN COURSE CATALOG' }; }   // a campus hall's forecourt
  if (!actTarget && window.CityCitizens) { var cz = CityCitizens.near(P.x, P.z); if (cz) actTarget = { 