<!-- SOLID CITY · part 3259 -->

    [-1.68, 1.68].forEach(function (ac) {
      var c = pointAt(s, ac);
      var orb = new T.Mesh(new T.OctahedronGeometry(0.13), M.lamp);
      orb.position.set(c[0], topAt(s) + 1.22, c[1]); orb.name = 'GATE_LAMP'; group.add(orb);
    });
  });

  /* the crown: two tall posts and a gold lintel over the corner end */
  [-1.9, 1.9].forEach(function (ac) {
    var c = pointAt(18.87, ac);
    var post = new T.Mesh(new T.BoxGeometry(0.2, 3.4, 0.2), M.dark);
    post.position.set(c[0], 10.38 + 1.7, c[1]); post.name = 'GATE_CROWN_POST'; group.add(post);
  });
  (function () {
    var c = pointAt(18.87, 0);
    var lintel = new T.Mesh(new T.BoxGeometry(4.3, 0.16, 0.24), M.gold);
    var e = new T.Euler(0, yaw, 0, 'YXZ'), m = new T.Matrix4().makeRotationFromEuler(e);
    m.setPosition(c[0], 10.38 + 3.3, c[1]); lintel.geometry.applyMatrix4(m); lintel.name = 'GATE_LINTEL'; group.add(lintel);
    var fin = new T.Mesh(new T.OctahedronGeometry(0.24), M.gold);
    fin.position.set(c[0], 10.38 + 3.72, c[1]); fin.name = 'GATE_FINIAL'; group.add(fin);
  })();

  return { group: group, deckTris: deckTris, topAt: topAt, pointAt: pointAt, length: LEN, u: [ux, uz] };
}


===== FILE: public/city/space/BUILD.txt =====
Solid City SPACE MISSION (build ba68f06755)
Source: src/game.js, src/index.html, src/city-link.js. Build: esbuild bundle of src/game.js + three@0.186.1 -> space.min.js (see /workspace/space-build/build.js on the build box).


===== FILE: public/city/space/LICENSE-three.txt =====
The MIT License

Copyright © 2010-2026 three.js authors

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.


===== FILE: public/city/space/city-link.js =====
/* Solid City -> SPACE MISSION entry points (additive only; uses window.SC.api, never edits city internals).
   - SPACE MISSION button in the bottom dock (#sc-dock)
   - Hangar launch pad at (-307, 410) with a portal card -> /city/space/
   - "Play the space mission" chip in the talk panel of King Playa, Solid and Provolta
   - WORMHOLE portal at (-280, 560): swirling 3D portal, collision pylons, radar blip, Hyper Controller stop,
     "Enter the wormhole? PLAY / NOT NOW" prompt on foot or in flight
   - ?at=hangar | ?at=wormhole arrival when coming back from the level */
(function () {
'use strict';
var URL_SPACE = '/city/space/';
var PADP = { x: -307, z: 410 }, WH = { x: -280, z: 560 }, WH_R = 11, WH_H = 13.5;
var CHIP_FOR = { 'KING PLAYA': 1, 'SOLID': 1, 'PROVOLTA': 1 };
function $(id) { return document.getElementById(id); }

/* ---------- styles ---------- */
var css = document.createElement('style'); css.id = 'space-link-css';
css.textContent = [
'#space-btn{min-height:44px;min-width:44px;padding:0 14px;border-radius:22px;border:1px solid #ff9a3c;background:linear-gradient(180deg,rgba(227,18,44,.92),rgba(90,4,16,.92));color:#fff;font:900 12px system-ui,sans-serif;letter-spacing:.1em;display:inline-flex;align-items:center;justify-content:center;gap:6px;text-decoration:none;box-sizing:border-box;box-shadow:0 0 12px rgba(255,120,40,.45);white-space:nowrap}',
'#space-btn .sb-i{font-size:17px;line-height:1}',
'#space-btn:hover{box-shadow:0 0 18px rgba(255,150,60,.75)}',
'#space-btn.sb-float{position:absolute;z-index:13;right:calc(10px + env(safe-area-inset-right));bottom:calc(16px + env(safe-area-inset-bottom))}',
'@media (max-width:600px){#space-btn{padding:0 12px}#space-btn .sb-t2{display:none}}',
'@media (min-width:601px) and (max-height:500px){#space-btn .sb-t2{display:none}}',
'.cz-chips button.cz-space{height:44px;border-color:#ff9a3c;background:linear-gradient(180deg,#e3122c,#7d0614);color:#fff;font-weight:800}',
'#wh-prompt{position:fixed;z-index:60;left:50%;top:50%;transform:translate(-50%,-50%);width:min(360px,calc(100% - 28px));box-sizing:border-box;padding:18px 16px 16px;border-radius:16px;text-align:center;',
' background:radial-gradient(circle at 50% 0%,rgba(120,40,200,.55),rgba(8,4,16,.96) 70%);border:1px solid #b46bff;color:#efe6ff;font:14px/1.4 system-ui,sans-serif;box-shadow:0 0 4