Développement précocePré-1.0 : la syntaxe peut évoluer.Historique des versionsGitHub
Pixel 3D

Neon Circuit

Affrontez douze robots rebelles dans un jeu d'action et de plateformes néon. Débloquez armes et compétences, fuyez sur des passerelles de verre pivotantes et combattez le Conductor dans un final de cinq salles.

Votre progression est enregistrée dans ce navigateur et partagée avec le jeu autonome.

Tournez votre téléphone pour jouer en paysage.

Ouvrir le jeu dans un nouvel onglet
Neon Circuit

Chargement du jeu…

Licence du jeu

Voir le code source
neon_circuit.rune
#!RUNE
import "assets.rune"
import "sounds.rune"
import "music/title.rune"
import "music/select.rune"
import "music/boss.rune"
import "music/master_boss.rune"
import "music/master_level.rune"
import "music/escape.rune"
import "music/victory.rune"
import "music/stage_01_volt.rune"
import "music/stage_02_cryo.rune"
import "music/stage_03_mag.rune"
import "music/stage_04_pyro.rune"
import "music/stage_05_phase.rune"
import "music/stage_06_saw.rune"
import "music/stage_07_storm.rune"
import "music/stage_08_glacier.rune"
import "music/stage_09_ghost.rune"
import "music/stage_10_hydra.rune"
import "music/stage_11_prism.rune"
import "music/stage_12_omega.rune"
import "levels/01_volt.rune"
import "levels/02_cryo.rune"
import "levels/03_mag.rune"
import "levels/04_pyro.rune"
import "levels/05_phase.rune"
import "levels/06_saw.rune"
import "levels/07_storm.rune"
import "levels/08_glacier.rune"
import "levels/09_ghost.rune"
import "levels/10_hydra.rune"
import "levels/11_prism.rune"
import "levels/12_omega.rune"
import "stages.rune"
import "combat.rune"
import "escape.rune"
import "volt_return.rune"
import "sector_returns.rune"
import "return_challenges.rune"
import "return_challenge_models.rune"
import "master.rune"
import "lighting.rune"
import "logic.rune"
import "controls.rune"
import "shell.rune"

@App
name = Neon Circuit
type = pixel-3d
runtime = hybrid
scene = neon_circuit
resolution = [576,360]
tick_rate = 30
port = 3032
shell = neon_cabinet

@Perspective/neon_cam
fov = 70

@Scene/neon_circuit
logic = neon_circuit
map = sky_title
world = world
lights = lights
camera = camera
weapon = view_weapon
perspective = neon_cam
outline = true
outline_color = "#05020d"
title_scene = neon_title
things = ["scenery","title_scenery","title_monument","lamps","barriers_fx","hazards_fx","boss_shutter_fx","checkpoints","pickups","enemies","boss_entity","boss_satellites","shots","enemy_shots","avatar","weapon_model","respawn_beam","victory_item","effects","select_pedestal","select_boss","power_capsule","escape_floor","master_props","volt_return_props","sector_return_props"]
persistence = {"key":"neon-circuit-save-v1","state":"campaign"}
controls = neon_circuit
click_to_start = false
render_radius = 96
ui = ui
pause_ui = pause_ui
restart_action = return_to_title
click_to_start = true
mouse_look = false
presentation = {
    "defeat": "CIRCUIT FLATLINED",
    "instructions": [
        "A D / ARROWS MOVE - SPACE JUMP - X / CLICK FIRE",
        "Q / E CYCLE WEAPONS - SHIFT / K SURGE DASH",
        "DEFEAT 6 INTRO ROBOTS TO UNLOCK GUNS & SKILLS",
        "USE NEW SKILLS TO BREACH THE 6 MASTER SECTORS"
    ],
    "objective": "DISMANTLE ALL 12 ROGUE ROBOTS",
    "subtitle": "NEON CYBERPUNK ACTION PLATFORMER",
    "title": "NEON CIRCUIT",
    "victory": "CITADEL LIBERATED"
}

@Scene/neon_title
map = sky_title
lights = title_lights
things = ["title_scenery","title_monument","avatar","victory_item"]
camera = title_camera
perspective = neon_cam
heading = NEON CIRCUIT
subtitle = CYBERNETIC ACTION PLATFORMER // 12 ROGUE ROBOTS
prompt = ARROWS / W-S MOVE  |  ENTER / CLICK CONFIRM  |  ESC CANCEL

@Camera/title_camera
duration = 14
loop = true
points = [
    {"x":18,"y":19.8,"height":2.0,"angle":270,"pitch":2},
    {"x":20.5,"y":19.2,"height":2.2,"angle":256,"pitch":3},
    {"x":18,"y":19.8,"height":2.0,"angle":270,"pitch":2},
    {"x":15.5,"y":19.2,"height":2.2,"angle":284,"pitch":3}
]

@Map/sky_title
floor = nc/title_grid
sky = {"seed":901,"zenith":"#060512","horizon":"#1c1238","cloud":"#4a2159","speed":0.04}
legend = {".":{}}
grid:
    "..."
    "..."
    "..."

@Page/neon_circuit
logic = neon_circuit
view:
    canvas data-rune-pixel-3d=true
assets.rune
# Hot Neon Cyberpunk Palette, Textures, Sprites, and High-Detail 3D Models
# Every character, boss, and background structure combines box, sphere, cylinder, and ramp shapes.
@Palette/nc
colors = {
    ".": "transparent",
    "k": "#090814",
    "d": "#141328",
    "s": "#22203f",
    "m": "#373463",
    "g": "#5c578f",
    "h": "#8f8bbd",
    "w": "#edf3ff",
    "c": "#3ce2eb",
    "C": "#1b9db5",
    "b": "#124c6b",
    "p": "#e34a8d",
    "P": "#9e245c",
    "q": "#521436",
    "l": "#4cd986",
    "L": "#1f7d47",
    "y": "#ebc14b",
    "Y": "#a87e22",
    "o": "#e87846",
    "O": "#913b1b",
    "v": "#9f6ae8",
    "V": "#5b2ea6",
    "r": "#e84a64",
    "R": "#8f1d35",
    "i": "#9ae8f0",
    "t": "#35c7a7",
    "a": "#354e6d",
    "A": "#587e9e",
    "e": "#5d5249",
    "n": "#274c45",
    "N": "#3c675d",
    "u": "#423358"
}

# --- VOXEL TEXTURES (16x16 sleek dark cyberpunk plating, subtle neon trim) ---
@Texture/nc/deck
palette = nc
size = [16,16]
pixels:
    "kkkkkkkkkkkkkkkk"
    "kddddddddddddddk"
    "kdssssssssssssdk"
    "kdsddsdssddsdssk"
    "kdssssssssssssdk"
    "kdssddssssddssdk"
    "kdssddssssddssdk"
    "kdkkkkkkkkkkkkdk"
    "kdssssssssssssdk"
    "kdssbbCCCCbbssdk"
    "kdssssssssssssdk"
    "kdssddddddddssdk"
    "kdssddddddddssdk"
    "kdssssssssssssdk"
    "kddddddddddddddk"
    "kkkkkkkkkkkkkkkk"

@Texture/nc/deck_pink
palette = nc
size = [16,16]
pixels:
    "kkkkkkkkkkkkkkkk"
    "kddddddddddddddk"
    "kdssssssssssssdk"
    "kdsddsdssddsdssk"
    "kdssssssssssssdk"
    "kdssddssssddssdk"
    "kdssddssssddssdk"
    "kdkkkkkkkkkkkkdk"
    "kdssssssssssssdk"
    "kdssqqPPPPqqssdk"
    "kdssssssssssssdk"
    "kdssddddddddssdk"
    "kdssddddddddssdk"
    "kdssssssssssssdk"
    "kddddddddddddddk"
    "kkkkkkkkkkkkkkkk"

# The center lane and structural panel art for each sector family.
@Texture/nc/lane_grid
palette = nc
size = [16,16]
pixels:
    "kkkkkkkkkkkkkkkk"
    "bbbbbbbbbbbbbbdd"
    "smmmmmmmmmmmmmms"
    "smmmmmmmmmmmmmms"
    "smmmmmmmmmmmmmms"
    "smmmmmmmmmmmmmms"
    "smmssssssssssmms"
    "smmmCCCCCCCCmmms"
    "smmmCCCCCCCCmmms"
    "smmssssssssssmms"
    "smmmmmmmmmmmmmms"
    "smmmmmmmmmmmmmms"
    "smmmmmmmmmmmmmms"
    "smmmmmmmmmmmmmms"
    "bbbbbbbbbbbbbbdd"
    "kkkkkkkkkkkkkkkk"

@Texture/nc/lane_frost
palette = nc
size = [16,16]
pixels:
    "bbbbbbbbbbbbbbbb"
    "AAAAAAAAAAAAAAAA"
    "aAaaaaaaaAAaaaAa"
    "aaaaaaaaaAaaaaaa"
    "aaaaaAaaAaaaaAaa"
    "aaAaaaaAaaaaaaaa"
    "aaaiiiiaaAiiiiaa"
    "aaaAAAAaaaAAAAaa"
    "aaaaAaaaAaaaaAaa"
    "aaAAaaaaaaAaaaaa"
    "aaAaAaaaaaaaAaAa"
    "aAaaaaAaaaaaaAAa"
    "aaaaaaaaaaaaAaaa"
    "aaaaaAaaaaAaaaaa"
    "AAAAAAAAAAAAAAAA"
    "bbbbbbbbbbbbbbbb"

@Texture/nc/lane_foundry
palette = nc
size = [16,16]
pixels:
    "kkkkkkkkkkkkkkkk"
    "YYYdddYYYdddYYYd"
    "dssssssssssssssd"
    "dssssssssssssssd"
    "dssssssssssssssd"
    "dsmmmmmmmmmmmmsd"
    "dssssseessssssee"
    "esssssseesssssse"
    "eesssssseesssssd"
    "deesssssseessssd"
    "dsmmmmmmmmmmmmsd"
    "dssssssssssssssd"
    "dssssssssssssssd"
    "dssssssssssssssd"
    "YYYdddYYYdddYYYd"
    "kkkkkkkkkkkkkkkk"

@Texture/nc/lane_signal
palette = nc
size = [16,16]
pixels:
    "qqqqqqqqqqqqqqqq"
    "vVVVVvVVVVvVVVVv"
    "suuuuuuuuuuuuuus"
    "suuuuuuuuuuuuuus"
    "suuuuuuuuuuuuuus"
    "suuuuuuuuuuuuuus"
    "suddddddddddddus"
    "suuuuvVVVVvuuuus"
    "suuuuvVVVVvuuuus"
    "suddddddddddddus"
    "suuuuuuuuuuuuuus"
    "suuuuuuuuuuuuuus"
    "suuuuuuuuuuuuuus"
    "suuuuuuuuuuuuuus"
    "vVVVVvVVVVvVVVVv"
    "qqqqqqqqqqqqqqqq"

@Texture/nc/lane_conduit
palette = nc
size = [16,16]
pixels:
    "kkkkkkkkkkkkkkkk"
    "LLLLLLLLLLLLLLLL"
    "nnnnnnnnnnnnnnnn"
    "NNNdNNNdNNNdNNNd"
    "nnndnnndnnndnnnd"
    "nnndnnndnnndnnnd"
    "nnndllllllllnnnd"
    "nnndnnnnnnnnnnnd"
    "nnndnnndnnndnnnd"
    "nnndnnndnnndnnnd"
    "nnndnnndnnndnnnd"
    "nnndnnndnnndnnnd"
    "NNNdNNNdNNNdNNNd"
    "nnnnnnnnnnnnnnnn"
    "LLLLLLLLLLLLLLLL"
    "kkkkkkkkkkkkkkkk"

@Texture/nc/lane_runway
palette = nc
size = [16,16]
pixels:
    "kkkkkkkkkkkkkkkk"
    "eeeeeeeeeeeeeeee"
    "smmmmmmmmmmmmmms"
    "smmmmmmmmmmmmmms"
    "smmmmmmmmmmmmmms"
    "smssssssssssssms"
    "smmmmmmmmmmmmmms"
    "smmYYyyyyyyYYmms"
    "smmYYyyyyyyYYmms"
    "smmmmmmmmmmmmmms"
    "smssssssssssssms"
    "smmmmmmmmmmmmmms"
    "smmmmmmmmmmmmmms"
    "smmmmmmmmmmmmmms"
    "eeeeeeeeeeeeeeee"
    "kkkkkkkkkkkkkkkk"

@Texture/nc/wall_frost
palette = nc
size = [16,16]
pixels:
    "kkkkkkkkkkkkkkkk"
    "kaaaaaaaaaaaaaak"
    "kAAAAAAAAAAAAAAk"
    "kaaaaaaaaaaaaaak"
    "kaAaaaaaaaAaaaak"
    "kaAaaaaaaaAaaaak"
    "kbbbbbbbbbbbbbbk"
    "kaAaaaaaaaAaaaak"
    "kAAAAAAAAAAAAAAk"
    "kaAaaaaaaaAaaaak"
    "kaAaaaaaaaAaaaak"
    "kaaaaaaaaaaaaaak"
    "kbbbbbbbbbbbbbbk"
    "kssssssasssssssk"
    "kssssasssssssssk"
    "kkkkkkkkkkkkkkkk"

@Texture/nc/wall_foundry
palette = nc
size = [16,16]
pixels:
    "kkkkkkkkkkkkkkkk"
    "kdeddddddddddedk"
    "kdeOddddddddOedk"
    "kdedkkkkkkkkdedk"
    "kdedmmmmmmmmdedk"
    "kdeddddddddddedk"
    "kdedkkkkkkkkdedk"
    "kdedmmmmmmmmdedk"
    "kdeddddddddddedk"
    "kdedkkkkkkkkdedk"
    "kdedmmmmmmmmdedk"
    "kdeddddddddddedk"
    "kdedkkkkkkkkdedk"
    "kdeOddddddddOedk"
    "kdeddddddddddedk"
    "kkkkkkkkkkkkkkkk"

@Texture/nc/wall_signal
palette = nc
size = [16,16]
pixels:
    "kkkkkkkkkkkkkkkk"
    "kddddddddddddddk"
    "kddVddddddddVddk"
    "kddVddddddddVddk"
    "kddVduuuuuudVddk"
    "kddVddPddPddVddk"
    "kddVddddddddVddk"
    "kddVduuuuuudVddk"
    "kddVddPddPddVddk"
    "kddVddddddddVddk"
    "kddVduuuuuudVddk"
    "kddVddPddPddVddk"
    "kddVddddddddVddk"
    "kddVssssssssVddk"
    "kddddddddddddddk"
    "kkkkkkkkkkkkkkkk"

@Texture/nc/wall_conduit
palette = nc
size = [16,16]
pixels:
    "kkkkkkkkkkkkkkkk"
    "kdnddddddddddndk"
    "kdnddddddddddndk"
    "kdndNNNNNNNNdndk"
    "kdndddLLLLdddndk"
    "kdndkddddddkdndk"
    "kdnddddddddddndk"
    "kdndNNNNNNNNdndk"
    "kdndddLLLLdddndk"
    "kdndkddddddkdndk"
    "kdnddddddddddndk"
    "kdndNNNNNNNNdndk"
    "kdndddLLLLdddndk"
    "kdnddddddddddndk"
    "kdnddddddddddndk"
    "kkkkkkkkkkkkkkkk"

@Texture/nc/title_grid
palette = nc
size = [16,16]
pixels:
    "CCCCCCCCCCCCCCCC"
    "CkkkkkkkkkkkkkkC"
    "CkddddddddddddkC"
    "CkdssssssssssdkC"
    "CkdsddddddddsdkC"
    "CkdsddddddddsdkC"
    "CkdsddqqqqddsdkC"
    "CkdsddqPPqddsdkC"
    "CkdsddqPPqddsdkC"
    "CkdsddqqqqddsdkC"
    "CkdsddddddddsdkC"
    "CkdsddddddddsdkC"
    "CkdssssssssssdkC"
    "CkddddddddddddkC"
    "CkkkkkkkkkkkkkkC"
    "CCCCCCCCCCCCCCCC"

@Texture/nc/wall
palette = nc
size = [16,16]
pixels:
    "kkkkkkkkkkkkkkkk"
    "kddddddddddddddk"
    "kddddmmmmmmddddk"
    "kdddmddddddmdddk"
    "kdddmddkkddmdddk"
    "kdddmddkkddmdddk"
    "kdddmddddddmdddk"
    "kddddmmmmmmddddk"
    "kddddddddddddddk"
    "kddssssssssssddk"
    "kddsddddddddsddk"
    "kddsddddddddsddk"
    "kddsddbbbbddsddk"
    "kddssssssssssddk"
    "kddddddddddddddk"
    "kkkkkkkkkkkkkkkk"

@Texture/nc/volt_gate
palette = nc
size = [8,8]
pixels:
    "kkkkkkkk"
    "kssssssk"
    "ksbbbbsk"
    "ksbyybsk"
    "ksbyybsk"
    "ksbbbbsk"
    "kssssssk"
    "kkkkkkkk"

@Texture/nc/cryo_ice
palette = nc
size = [16,16]
pixels:
    "bbbbbbbbbbbbbbbb"
    "bCCCCCCCCCCCCCCb"
    "bCCssCCCCCCssCCb"
    "bCCssCCiiCCssCCb"
    "bCCCCCCiiCCCCCCb"
    "bCCCCCCCCCCCCCCb"
    "bCCbbCCCCCCbbCCb"
    "bCCbbCCCCCCbbCCb"
    "bCCCCCCCCCCCCCCb"
    "bCCssCCCCCCssCCb"
    "bCCssCCCCCCssCCb"
    "bCCCCCCiiCCCCCCb"
    "bCCbbCCiiCCbbCCb"
    "bCCbbCCCCCCbbCCb"
    "bCCCCCCCCCCCCCCb"
    "bbbbbbbbbbbbbbbb"

@Texture/nc/blast_wall
palette = nc
size = [8,8]
pixels:
    "kkkkkkkk"
    "kOOOOOOk"
    "kOddddOk"
    "kOdoooOk"
    "kOdoooOk"
    "kOddddOk"
    "kOOOOOOk"
    "kkkkkkkk"

@Texture/nc/phase_gate
palette = nc
size = [8,8]
pixels:
    "kkkkkkkk"
    "kVVVVVVk"
    "kVssssVk"
    "kVsvvsVk"
    "kVsvvsVk"
    "kVssssVk"
    "kVVVVVVk"
    "kkkkkkkk"

@Texture/nc/saw_gate
palette = nc
size = [8,8]
pixels:
    "kkkkkkkk"
    "kLLLLLLk"
    "kLddddLk"
    "kLdlldLk"
    "kLdlldLk"
    "kLddddLk"
    "kLLLLLLk"
    "kkkkkkkk"

@Texture/nc/thermal_vent
palette = nc
size = [8,8]
pixels:
    "rrooyorr"
    "rooyyoor"
    "ooywwyoo"
    "rooyyoor"
    "rrooyorr"
    "RRroorRR"
    "rrooyorr"
    "RRroorRR"

@Texture/nc/mag_block
palette = nc
size = [16,16]
pixels:
    "kkkkkkkkkkkkkkkk"
    "kVddddddddddddVk"
    "kVPssssssssssPVk"
    "kddssssssssssddk"
    "kddsddddddddsddk"
    "kddsddmmmmddsddk"
    "kddsddmPPmddsddk"
    "kddsddmPPmddsddk"
    "kddsddmmmmddsddk"
    "kddsddddddddsddk"
    "kddssssssssssddk"
    "kddssssssssssddk"
    "kVPssssssssssPVk"
    "kVddddddddddddVk"
    "kddddddddddddddk"
    "kkkkkkkkkkkkkkkk"

# --- HUD SPRITES ---
@Sprite/nc/return_buster
palette = nc
size = [44,43]
pixels:
    "............................................"
    "............................................"
    "................k..........................."
    "..........kkkkkkkk.........................."
    "....kkkkkkkkkkkCkkkk........................"
    "....kkkkkkkkCCCCCCkkk......................."
    "....kkkkCCCCCCdCCCCkkkk....................."
    "...kkCCCCCCdddcdCCCCCkkk...................."
    "...kkCCdcciiiicccdCCCkkkkk.................."
    "...kkCCdccccccccdCbCCmskkk.................."
    "...kkbdddccccccddbbCmmmmkk.................."
    "..kkkbbbdcddddddbbbCmmmmkkk................."
    "..kkkbbbbdbbbbbbbbbbmmmmkkk................."
    "..kkkbbbbbbbbbbbbbbbmCCmkkk................."
    "..kkkksbbbbbbbbbbmmCCmmmmkk................."
    "...kkkssbbbbbbmmmCCmmmmmmkkk................"
    "...kkkksssbmmmmmCmmmmmmmmkkk................"
    "....kkksssmmmmmmmmmmmmmmgkkk................"
    "....kkkssssgsmmmmmmmmmggggkkk..............."
    ".....kkssssggggmmmmmgggggggkkkk............."
    ".....kkkkkksggggggggggggggggkkkk............"
    "......kkkkksgggggggggggggggggkkkkk.........."
    "........kkkksgggpgwwgggggpggggskkkk........."
    ".........kkksgggpppgwwgpppgggggkkkkkk......."
    ".........kkkksggggpppppgggggggsskkskk......."
    "..........kkksggggggpgggggggggsskssskk......"
    "..........kkkkssgggggggggggggssssssssk......"
    "...........kkksssggggggggggggsssssssbkk....."
    "...........kkkkssssggggggsssssssssbbbbk....."
    "...........kkkksssssgssssssssssssbbbbbsk...."
    "............kkkksssssssssssssssbbbbbbbbk...."
    "............kkkkksssbbbbbbbbbbbbbbbbbbCbk..."
    ".............kkkksssbbbbbbbbbbbbbbbbCCCbk..."
    "..............kkkksssbbbbbbbbbbbbbbCCCcCkk.."
    "...............kkksssbbbbbbbbbbbbCCCcccCbk.."
    "...............kkkksssbCCCCCCCCCCccccCCCakk."
    "................kkksssbcccccccccccCCCCCaaak."
    ".................kkkssbcccccccccCCCCCCaaaaaa"
    "..................kkkksCCCCCCCCCCCCCCaaaaaaa"
    "...................kkkkCCCCCCCCCCCCCaaaaaaaa"
    "...................kkkkCCCCCCCCCCCCaaaaaaaaa"
    "....................kkkCCCCCCCCCCCaaaaaaaaaa"
    ".....................kkCCCCCCCCCCaaaaaaaaaaa"

@Sprite/nc/hp_full
palette = nc
size = [5,6]
pixels:
    ".ccc."
    "cwwwc"
    "ccccc"
    "ccCcc"
    "cCCCc"
    ".CCC."

@Sprite/nc/hp_empty
palette = nc
size = [5,6]
pixels:
    ".sss."
    "sddds"
    "sddds"
    "sddds"
    "sddds"
    ".sss."

@Sprite/nc/boss_full
palette = nc
size = [5,6]
pixels:
    ".ppp."
    "pwwwp"
    "ppppp"
    "ppPpp"
    "pPPPp"
    ".PPP."

@Sprite/nc/boss_empty
palette = nc
size = [5,6]
pixels:
    ".sss."
    "skkks"
    "skkks"
    "skkks"
    "skkks"
    ".sss."

# --- HERO MODELS: AXEL-09 (Cyber Reploid, fine 0.0625 grid, 4-frame run + dash + jump + duck) ---
@Model/nc/hero_idle
palette = nc
contact_shadow = 0.72
unit = 0.0625
blocks:
    {"from": [-4, -4, 0], "size": [5, 3, 2], "color": "C"}
    {"from": [-4, 1, 0], "size": [5, 3, 2], "color": "C"}
    {"from": [-3, -4, 2], "size": [3, 3, 5], "color": "b"}
    {"from": [-3, 1, 2], "size": [3, 3, 5], "color": "b"}
    {"from": [0, -4, 4], "size": [1, 3, 2], "color": "c"}
    {"from": [0, 1, 4], "size": [1, 3, 2], "color": "c"}
    {"from": [-3, -4, 7], "size": [6, 8, 2], "color": "d"}
    {"from": [-2, -4, 8], "size": [5, 8, 1], "color": "p"}
    {"from": [-4, -4, 9], "size": [8, 8, 6], "color": "s"}
    {"from": [3, -3, 10], "size": [2, 6, 4], "color": "C"}
    {"from": [4, -2, 11], "size": [1, 4, 2], "color": "c"}
    {"from": [-3, -6, 12], "size": [6, 2, 3], "color": "c"}
    {"from": [-3, 4, 12], "size": [6, 2, 3], "color": "c"}
    {"from": [-6, -3, 9], "size": [2, 6, 5], "color": "m"}
    {"from": [-7, -2, 10], "size": [1, 4, 3], "color": "y"}
    {"from": [1, -3, 17], "size": [4, 6, 3], "color": "w"}
    {"from": [3, -3, 18], "size": [3, 6, 2], "color": "c"}
    {"from": [-2, -5, 17], "size": [3, 1, 3], "color": "p"}
    {"from": [-2, 4, 17], "size": [3, 1, 3], "color": "p"}
shapes:
    {"type": "sphere", "center": [0, 0, 19], "radius": 4.2, "color": "C"}
    {"type": "cylinder", "center": [0, 0, 19.2], "radius": 4.4, "height": 1.6, "color": "b"}
    {"type": "ramp", "from": [-2, -1, 21], "size": [6, 2, 3], "color": "p"}
    {"type": "ramp", "from": [-9, -3, 12], "size": [5, 6, 3], "color": "p"}
    {"type": "cylinder", "center": [-2, -5, 11], "radius": 1.4, "height": 4.5, "color": "s"}

@Model/nc/hero_run0
palette = nc
contact_shadow = 0.72
unit = 0.0625
blocks:
    {"from": [1, -4, 1], "size": [5, 3, 2], "color": "c"}
    {"from": [0, -4, 3], "size": [4, 3, 4], "color": "b"}
    {"from": [-6, 1, 0], "size": [5, 3, 2], "color": "C"}
    {"from": [-5, 1, 2], "size": [3, 3, 5], "color": "b"}
    {"from": [-3, -4, 7], "size": [6, 8, 2], "color": "d"}
    {"from": [-2, -4, 8], "size": [5, 8, 1], "color": "p"}
    {"from": [-3, -4, 9], "size": [8, 8, 6], "color": "s"}
    {"from": [4, -2, 11], "size": [2, 4, 2], "color": "c"}
    {"from": [-2, -6, 12], "size": [6, 2, 3], "color": "c"}
    {"from": [-2, 4, 12], "size": [6, 2, 3], "color": "c"}
    {"from": [-5, -3, 9], "size": [2, 6, 5], "color": "m"}
    {"from": [-6, -2, 10], "size": [1, 4, 3], "color": "y"}
    {"from": [2, -3, 17], "size": [4, 6, 3], "color": "w"}
    {"from": [4, -3, 18], "size": [3, 6, 2], "color": "c"}
shapes:
    {"type": "sphere", "center": [1, 0, 19], "radius": 4.2, "color": "C"}
    {"type": "ramp", "from": [-1, -1, 21], "size": [6, 2, 3], "color": "p"}
    {"type": "ramp", "from": [-10, -3, 12], "size": [6, 6, 3], "color": "p"}
    {"type": "cylinder", "center": [-1, -5, 11], "radius": 1.4, "height": 4.5, "color": "s"}

@Model/nc/hero_run1
palette = nc
contact_shadow = 0.72
unit = 0.0625
blocks:
    {"from": [-2, -4, 0], "size": [5, 3, 2], "color": "C"}
    {"from": [-2, -4, 2], "size": [3, 3, 5], "color": "b"}
    {"from": [-1, 1, 2], "size": [5, 3, 2], "color": "c"}
    {"from": [-2, 1, 4], "size": [3, 3, 4], "color": "b"}
    {"from": [-3, -4, 7], "size": [6, 8, 2], "color": "d"}
    {"from": [-2, -4, 8], "size": [5, 8, 1], "color": "p"}
    {"from": [-3, -4, 9], "size": [8, 8, 6], "color": "s"}
    {"from": [4, -2, 11], "size": [2, 4, 2], "color": "c"}
    {"from": [-2, -6, 12], "size": [6, 2, 3], "color": "c"}
    {"from": [-2, 4, 12], "size": [6, 2, 3], "color": "c"}
    {"from": [-5, -3, 9], "size": [2, 6, 5], "color": "m"}
    {"from": [-6, -2, 10], "size": [1, 4, 3], "color": "y"}
    {"from": [2, -3, 18], "size": [4, 6, 3], "color": "w"}
    {"from": [4, -3, 19], "size": [3, 6, 2], "color": "c"}
shapes:
    {"type": "sphere", "center": [1, 0, 20], "radius": 4.2, "color": "C"}
    {"type": "ramp", "from": [-1, -1, 22], "size": [6, 2, 3], "color": "p"}
    {"type": "ramp", "from": [-10, -3, 13], "size": [6, 6, 3], "color": "p"}
    {"type": "cylinder", "center": [-1, -5, 11], "radius": 1.4, "height": 4.5, "color": "s"}

@Model/nc/hero_run2
palette = nc
contact_shadow = 0.72
unit = 0.0625
blocks:
    {"from": [-6, -4, 0], "size": [5, 3, 2], "color": "C"}
    {"from": [-5, -4, 2], "size": [3, 3, 5], "color": "b"}
    {"from": [1, 1, 1], "size": [5, 3, 2], "color": "c"}
    {"from": [0, 1, 3], "size": [4, 3, 4], "color": "b"}
    {"from": [-3, -4, 7], "size": [6, 8, 2], "color": "d"}
    {"from": [-2, -4, 8], "size": [5, 8, 1], "color": "p"}
    {"from": [-3, -4, 9], "size": [8, 8, 6], "color": "s"}
    {"from": [4, -2, 11], "size": [2, 4, 2], "color": "c"}
    {"from": [-2, -6, 12], "size": [6, 2, 3], "color": "c"}
    {"from": [-2, 4, 12], "size": [6, 2, 3], "color": "c"}
    {"from": [-5, -3, 9], "size": [2, 6, 5], "color": "m"}
    {"from": [-6, -2, 10], "size": [1, 4, 3], "color": "y"}
    {"from": [2, -3, 17], "size": [4, 6, 3], "color": "w"}
    {"from": [4, -3, 18], "size": [3, 6, 2], "color": "c"}
shapes:
    {"type": "sphere", "center": [1, 0, 19], "radius": 4.2, "color": "C"}
    {"type": "ramp", "from": [-1, -1, 21], "size": [6, 2, 3], "color": "p"}
    {"type": "ramp", "from": [-10, -3, 12], "size": [6, 6, 3], "color": "p"}
    {"type": "cylinder", "center": [-1, -5, 11], "radius": 1.4, "height": 4.5, "color": "s"}

@Model/nc/hero_run3
palette = nc
contact_shadow = 0.72
unit = 0.0625
blocks:
    {"from": [-1, -4, 2], "size": [5, 3, 2], "color": "c"}
    {"from": [-2, -4, 4], "size": [3, 3, 4], "color": "b"}
    {"from": [-2, 1, 0], "size": [5, 3, 2], "color": "C"}
    {"from": [-2, 1, 2], "size": [3, 3, 5], "color": "b"}
    {"from": [-3, -4, 7], "size": [6, 8, 2], "color": "d"}
    {"from": [-2, -4, 8], "size": [5, 8, 1], "color": "p"}
    {"from": [-3, -4, 9], "size": [8, 8, 6], "color": "s"}
    {"from": [4, -2, 11], "size": [2, 4, 2], "color": "c"}
    {"from": [-2, -6, 12], "size": [6, 2, 3], "color": "c"}
    {"from": [-2, 4, 12], "size": [6, 2, 3], "color": "c"}
    {"from": [-5, -3, 9], "size": [2, 6, 5], "color": "m"}
    {"from": [-6, -2, 10], "size": [1, 4, 3], "color": "y"}
    {"from": [2, -3, 18], "size": [4, 6, 3], "color": "w"}
    {"from": [4, -3, 19], "size": [3, 6, 2], "color": "c"}
shapes:
    {"type": "sphere", "center": [1, 0, 20], "radius": 4.2, "color": "C"}
    {"type": "ramp", "from": [-1, -1, 22], "size": [6, 2, 3], "color": "p"}
    {"type": "ramp", "from": [-10, -3, 13], "size": [6, 6, 3], "color": "p"}
    {"type": "cylinder", "center": [-1, -5, 11], "radius": 1.4, "height": 4.5, "color": "s"}

@Model/nc/hero_jump
palette = nc
contact_shadow = 0.72
unit = 0.0625
blocks:
    {"from": [1, -4, 3], "size": [5, 3, 3], "color": "c"}
    {"from": [-4, 1, 1], "size": [5, 3, 3], "color": "C"}
    {"from": [-3, -4, 7], "size": [6, 8, 2], "color": "d"}
    {"from": [-3, -4, 9], "size": [8, 8, 6], "color": "s"}
    {"from": [4, -2, 11], "size": [2, 4, 2], "color": "c"}
    {"from": [-3, -6, 13], "size": [6, 2, 3], "color": "c"}
    {"from": [-3, 4, 13], "size": [6, 2, 3], "color": "c"}
    {"from": [-6, -3, 9], "size": [2, 6, 5], "color": "m"}
    {"from": [1, -3, 18], "size": [4, 6, 3], "color": "w"}
    {"from": [3, -3, 19], "size": [3, 6, 2], "color": "c"}
shapes:
    {"type": "sphere", "center": [0, 0, 20], "radius": 4.2, "color": "C"}
    {"type": "ramp", "from": [-2, -1, 22], "size": [6, 2, 3], "color": "p"}
    {"type": "ramp", "from": [-9, -3, 13], "size": [5, 6, 4], "color": "p"}
    {"type": "cylinder", "center": [-2, -2, 0], "radius": 1.6, "height": 3, "color": "y"}
    {"type": "cylinder", "center": [-2, 2, 0], "radius": 1.6, "height": 3, "color": "o"}

@Model/nc/hero_dash
palette = nc
contact_shadow = 0.72
unit = 0.0625
blocks:
    {"from": [-8, -3, 2], "size": [7, 6, 3], "color": "C"}
    {"from": [-4, -4, 6], "size": [9, 8, 6], "color": "s"}
    {"from": [4, -2, 8], "size": [3, 4, 2], "color": "y"}
    {"from": [3, -3, 13], "size": [4, 6, 3], "color": "w"}
    {"from": [5, -3, 14], "size": [3, 6, 2], "color": "c"}
shapes:
    {"type": "sphere", "center": [2, 0, 15], "radius": 4.0, "color": "c"}
    {"type": "ramp", "from": [-14, -3, 7], "size": [10, 6, 4], "color": "y"}
    {"type": "cylinder", "center": [-7, 0, 8], "radius": 2.4, "height": 6, "color": "c"}

@Model/nc/hero_duck
palette = nc
contact_shadow = 0.72
unit = 0.0625
blocks:
    {"from": [-5, -4, 0], "size": [10, 8, 4], "color": "b"}
    {"from": [-4, -4, 4], "size": [8, 8, 5], "color": "s"}
    {"from": [3, -2, 6], "size": [2, 4, 2], "color": "c"}
    {"from": [2, -3, 11], "size": [4, 6, 3], "color": "w"}
    {"from": [4, -3, 12], "size": [3, 6, 2], "color": "c"}
shapes:
    {"type": "sphere", "center": [1, 0, 13], "radius": 4.2, "color": "C"}
    {"type": "ramp", "from": [-8, -3, 8], "size": [6, 6, 3], "color": "p"}
    {"type": "ramp", "from": [-1, -1, 15], "size": [6, 2, 3], "color": "p"}

@Model/nc/hero_victory
palette = nc
contact_shadow = 0.72
unit = 0.0625
blocks:
    {"from": [-4, -4, 0], "size": [5, 3, 2], "color": "C"}
    {"from": [-4, 1, 0], "size": [5, 3, 2], "color": "C"}
    {"from": [-3, -4, 2], "size": [3, 3, 5], "color": "b"}
    {"from": [-3, 1, 2], "size": [3, 3, 5], "color": "b"}
    {"from": [-3, -4, 7], "size": [6, 8, 2], "color": "d"}
    {"from": [-2, -4, 8], "size": [5, 8, 1], "color": "p"}
    {"from": [-4, -4, 9], "size": [8, 8, 6], "color": "s"}
    {"from": [4, -2, 11], "size": [1, 4, 2], "color": "c"}
    {"from": [-3, -6, 12], "size": [6, 2, 3], "color": "c"}
    {"from": [-3, 4, 12], "size": [6, 2, 3], "color": "c"}
    {"from": [-1, 4, 15], "size": [3, 3, 8], "color": "c"}
    {"from": [1, -3, 17], "size": [4, 6, 3], "color": "w"}
    {"from": [3, -3, 18], "size": [3, 6, 2], "color": "c"}
shapes:
    {"type": "sphere", "center": [0, 0, 19], "radius": 4.2, "color": "C"}
    {"type": "ramp", "from": [-2, -1, 21], "size": [6, 2, 3], "color": "p"}
    {"type": "cylinder", "center": [0.5, 5.5, 24], "radius": 2.0, "height": 3, "color": "y"}

@Model/nc/hero_climb0
palette = nc
contact_shadow = 0.72
unit = 0.0625
blocks:
    {"from": [-4, -2, 2], "size": [3, 4, 6], "color": "b"}
    {"from": [1, -2, 0], "size": [3, 4, 7], "color": "C"}
    {"from": [-4, -3, 7], "size": [8, 6, 8], "color": "s"}
    {"from": [-3, -2, 9], "size": [6, 4, 4], "color": "p"}
    {"from": [-6, -2, 14], "size": [3, 4, 7], "color": "c"}
    {"from": [3, -2, 10], "size": [3, 4, 5], "color": "C"}
shapes:
    {"type": "sphere", "center": [0, 0, 19], "radius": 4.2, "color": "C"}
    {"type": "ramp", "from": [-2, -1, 21], "size": [4, 2, 3], "color": "p"}

@Model/nc/hero_climb1
palette = nc
contact_shadow = 0.72
unit = 0.0625
blocks:
    {"from": [-4, -2, 0], "size": [3, 4, 7], "color": "C"}
    {"from": [1, -2, 2], "size": [3, 4, 6], "color": "b"}
    {"from": [-4, -3, 7], "size": [8, 6, 8], "color": "s"}
    {"from": [-3, -2, 9], "size": [6, 4, 4], "color": "p"}
    {"from": [-6, -2, 10], "size": [3, 4, 5], "color": "C"}
    {"from": [3, -2, 14], "size": [3, 4, 7], "color": "c"}
shapes:
    {"type": "sphere", "center": [0, 0, 19], "radius": 4.2, "color": "C"}
    {"type": "ramp", "from": [-2, -1, 21], "size": [4, 2, 3], "color": "p"}

@Model/nc/hero_dead
palette = nc
unit = 0.0625
blocks:
    {"from": [-6, -4, 4], "size": [12, 8, 9], "color": "w"}
    {"from": [-8, -2, 7], "size": [16, 4, 4], "color": "c"}
shapes:
    {"type": "sphere", "center": [0, 0, 12], "radius": 5.5, "color": "p"}
    {"type": "sphere", "center": [0, 0, 12], "radius": 3.5, "color": "w"}

# --- 7 DETAILED ARM CANNON MODELS ---
@Model/nc/gun_buster
palette = nc
unit = 0.0625
blocks:
    {"from": [0, -2, -2], "size": [4, 4, 4], "color": "C"}
    {"from": [1, -2, -1], "size": [2, 4, 2], "color": "s"}
shapes:
    {"type": "cylinder", "center": [4.0, 0, 0], "radius": 1.9, "height": 1.6, "color": "c"}
    {"type": "sphere", "center": [4.6, 0, 0], "radius": 1.1, "color": "w"}

@Model/nc/gun_volt
palette = nc
unit = 0.0625
blocks:
    {"from": [0, -2, -2], "size": [4, 4, 4], "color": "b"}
    {"from": [1, -2, 1], "size": [2, 4, 2], "color": "y"}
shapes:
    {"type": "cylinder", "center": [4.2, 0, 0], "radius": 2.0, "height": 1.6, "color": "c"}
    {"type": "sphere", "center": [4.8, 0, 0], "radius": 1.2, "color": "y"}

@Model/nc/gun_cryo
palette = nc
unit = 0.0625
blocks:
    {"from": [0, -2, -2], "size": [4, 4, 4], "color": "i"}
shapes:
    {"type": "ramp", "from": [2.5, -1.8, 0], "size": [2.0, 3.6, 2], "color": "c"}
    {"type": "cylinder", "center": [4.0, 0, 0], "radius": 1.8, "height": 1.6, "color": "w"}

@Model/nc/gun_mag
palette = nc
unit = 0.0625
blocks:
    {"from": [0, -2, -2], "size": [3, 4, 4], "color": "V"}
    {"from": [3, -2, 1], "size": [2, 4, 1], "color": "p"}
    {"from": [3, -2, -2], "size": [2, 4, 1], "color": "p"}
shapes:
    {"type": "sphere", "center": [3.8, 0, 0], "radius": 1.2, "color": "c"}

@Model/nc/gun_nova
palette = nc
unit = 0.0625
blocks:
    {"from": [0, -2, -2], "size": [4, 4, 4], "color": "O"}
    {"from": [1, -2, 1], "size": [2, 4, 1], "color": "y"}
shapes:
    {"type": "cylinder", "center": [4.2, 0, 0], "radius": 2.1, "height": 1.8, "color": "o"}
    {"type": "sphere", "center": [4.8, 0, 0], "radius": 1.2, "color": "y"}

@Model/nc/gun_phase
palette = nc
unit = 0.0625
blocks:
    {"from": [0, -2, -2], "size": [4, 4, 4], "color": "d"}
    {"from": [1, -2, -1], "size": [2, 4, 2], "color": "v"}
shapes:
    {"type": "sphere", "center": [4.6, 0, 0], "radius": 1.3, "color": "p"}
    {"type": "ramp", "from": [2.6, -1.5, 0.8], "size": [1.8, 3, 1.8], "color": "v"}

@Model/nc/gun_saw
palette = nc
unit = 0.0625
blocks:
    {"from": [0, -2, -2], "size": [4, 4, 4], "color": "L"}
    {"from": [1, -2, -1], "size": [2, 4, 2], "color": "s"}
shapes:
    {"type": "cylinder", "center": [4.2, 0, 0], "radius": 2.2, "height": 1.0, "color": "l"}
    {"type": "sphere", "center": [4.2, 0, 0], "radius": 1.0, "color": "w"}

# --- PROJECTILE MODELS ---
@Model/nc/shot_buster
palette = nc
emissive = "cw"
unit = 0.08
shapes:
    {"type": "sphere", "center": [0, 0, 0], "radius": 2.0, "color": "c"}
    {"type": "sphere", "center": [0.8, 0, 0], "radius": 1.3, "color": "w"}

@Model/nc/shot_volt
palette = nc
emissive = "yc"
unit = 0.08
blocks:
    {"from": [-5, -1, -1], "size": [10, 2, 2], "color": "y"}
shapes:
    {"type": "sphere", "center": [0, 0, 0], "radius": 2.3, "color": "c"}
    {"type": "ramp", "from": [-3, -1, 1], "size": [6, 2, 2], "color": "y"}

@Model/nc/shot_cryo
palette = nc
emissive = "iw"
unit = 0.08
shapes:
    {"type": "ramp", "from": [-5, -1.5, -1.5], "size": [10, 3, 3], "color": "i"}
    {"type": "sphere", "center": [3, 0, 0], "radius": 1.6, "color": "w"}

@Model/nc/shot_mag
palette = nc
emissive = "pv"
unit = 0.08
shapes:
    {"type": "cylinder", "center": [0, 0, 0], "radius": 3.0, "height": 2.2, "color": "p"}
    {"type": "sphere", "center": [0, 0, 0], "radius": 1.6, "color": "v"}

@Model/nc/shot_nova
palette = nc
emissive = "oyr"
unit = 0.08
shapes:
    {"type": "sphere", "center": [0, 0, 0], "radius": 3.4, "color": "o"}
    {"type": "sphere", "center": [0, 0, 0], "radius": 2.0, "color": "y"}
    {"type": "cylinder", "center": [0, 0, 0], "radius": 3.8, "height": 1.2, "color": "r"}

@Model/nc/shot_phase
palette = nc
emissive = "vpw"
unit = 0.08
blocks:
    {"from": [-6, -1, -1], "size": [12, 2, 2], "color": "v"}
shapes:
    {"type": "cylinder", "center": [0, 0, 0], "radius": 1.9, "height": 3.8, "color": "p"}
    {"type": "sphere", "center": [3, 0, 0], "radius": 1.4, "color": "w"}

@Model/nc/shot_saw
palette = nc
emissive = "wly"
unit = 0.08
blocks:
    {"from": [-4, -1, -1], "size": [8, 2, 2], "color": "w"}
    {"from": [-1, -4, -1], "size": [2, 8, 2], "color": "w"}
shapes:
    {"type": "cylinder", "center": [0, 0, 0], "radius": 3.6, "height": 1.6, "color": "l"}
    {"type": "sphere", "center": [0, 0, 0], "radius": 1.5, "color": "y"}

@Model/nc/enemy_shot
palette = nc
emissive = "ry"
unit = 0.08
shapes:
    {"type": "sphere", "center": [0, 0, 0], "radius": 2.2, "color": "r"}
    {"type": "sphere", "center": [0, 0, 0], "radius": 1.2, "color": "y"}

# --- DETAILED ENEMY MODELS ---
@Model/nc/enemy_drone
palette = nc
contact_shadow = 0.64
unit = 0.0625
blocks:
    {"from": [-6, -4, 5], "size": [12, 8, 5], "color": "s"}
    {"from": [-4, -5, 6], "size": [8, 10, 3], "color": "p"}
    {"from": [-2, -6, 7], "size": [4, 12, 2], "color": "c"}
shapes:
    {"type": "sphere", "center": [0, 0, 7.5], "radius": 4.2, "color": "d"}
    {"type": "cylinder", "center": [-7, 0, 10], "radius": 2.6, "height": 1.4, "color": "c"}
    {"type": "cylinder", "center": [7, 0, 10], "radius": 2.6, "height": 1.4, "color": "c"}
    {"type": "ramp", "from": [-5, -2, 10], "size": [10, 4, 3], "color": "p"}
    {"type": "sphere", "center": [0, -3.8, 7.5], "radius": 1.5, "color": "y"}

@Model/nc/enemy_drone_charge
palette = nc
contact_shadow = 0.64
unit = 0.0625
blocks:
    {"from": [-6, -4, 5], "size": [12, 8, 5], "color": "s"}
    {"from": [-4, -5, 6], "size": [8, 10, 3], "color": "p"}
    {"from": [-2, -6, 7], "size": [4, 12, 2], "color": "y"}
shapes:
    {"type": "sphere", "center": [0, 0, 7.5], "radius": 4.2, "color": "d"}
    {"type": "cylinder", "center": [-7, 0, 10], "radius": 2.8, "height": 2, "color": "o"}
    {"type": "cylinder", "center": [7, 0, 10], "radius": 2.8, "height": 2, "color": "o"}
    {"type": "ramp", "from": [-5, -2, 10], "size": [10, 4, 3], "color": "r"}
    {"type": "sphere", "center": [0, -3.8, 7.5], "radius": 2.2, "color": "r"}
    {"type": "sphere", "center": [0, -4.5, 7.5], "radius": 1.4, "color": "y"}

@Model/nc/enemy_drone_fire
palette = nc
contact_shadow = 0.64
unit = 0.0625
blocks:
    {"from": [-6, -4, 5], "size": [12, 8, 5], "color": "s"}
    {"from": [-5, -5, 6], "size": [10, 10, 3], "color": "o"}
    {"from": [-2, -7, 7], "size": [4, 14, 2], "color": "w"}
shapes:
    {"type": "sphere", "center": [0, 0, 7.5], "radius": 4.4, "color": "d"}
    {"type": "cylinder", "center": [-7, 0, 10], "radius": 3.0, "height": 2, "color": "y"}
    {"type": "cylinder", "center": [7, 0, 10], "radius": 3.0, "height": 2, "color": "y"}
    {"type": "ramp", "from": [-5, -2, 10], "size": [10, 4, 3], "color": "p"}
    {"type": "sphere", "center": [0, -5.5, 7.5], "radius": 2.8, "color": "y"}
    {"type": "sphere", "center": [0, -6.2, 7.5], "radius": 1.6, "color": "w"}

@Model/nc/enemy_turret
palette = nc
contact_shadow = 0.64
unit = 0.0625
blocks:
    {"from": [-7, -7, 0], "size": [14, 14, 4], "color": "d"}
    {"from": [-5, -5, 4], "size": [10, 10, 5], "color": "m"}
    {"from": [-9, -2, 8], "size": [18, 4, 3], "color": "s"}
shapes:
    {"type": "cylinder", "center": [0, 0, 10], "radius": 4.8, "height": 6, "color": "o"}
    {"type": "sphere", "center": [0, 0, 13.5], "radius": 3.4, "color": "y"}
    {"type": "ramp", "from": [-6, -3, 12], "size": [12, 6, 3], "color": "r"}

@Model/nc/enemy_turret_charge
palette = nc
contact_shadow = 0.64
unit = 0.0625
blocks:
    {"from": [-7, -7, 0], "size": [14, 14, 4], "color": "d"}
    {"from": [-5, -5, 4], "size": [10, 10, 5], "color": "m"}
    {"from": [-10, -2, 8], "size": [20, 4, 3], "color": "o"}
shapes:
    {"type": "cylinder", "center": [0, 0, 10], "radius": 4.8, "height": 6, "color": "r"}
    {"type": "sphere", "center": [0, 0, 13.5], "radius": 3.8, "color": "r"}
    {"type": "sphere", "center": [0, 0, 14.0], "radius": 2.2, "color": "y"}
    {"type": "ramp", "from": [-6, -3, 12], "size": [12, 6, 3], "color": "y"}
    {"type": "cylinder", "center": [-9, 0, 9.5], "radius": 2.0, "height": 3, "color": "y"}
    {"type": "cylinder", "center": [9, 0, 9.5], "radius": 2.0, "height": 3, "color": "y"}

@Model/nc/enemy_turret_fire
palette = nc
contact_shadow = 0.64
unit = 0.0625
blocks:
    {"from": [-7, -7, 0], "size": [14, 14, 4], "color": "d"}
    {"from": [-5, -5, 4], "size": [10, 10, 5], "color": "m"}
    {"from": [-11, -2, 8], "size": [22, 4, 4], "color": "y"}
shapes:
    {"type": "cylinder", "center": [0, 0, 10], "radius": 5.0, "height": 6, "color": "o"}
    {"type": "sphere", "center": [0, 0, 13.5], "radius": 3.6, "color": "y"}
    {"type": "ramp", "from": [-6, -3, 12], "size": [12, 6, 3], "color": "w"}
    {"type": "sphere", "center": [-11, 0, 10], "radius": 2.5, "color": "y"}
    {"type": "sphere", "center": [11, 0, 10], "radius": 2.5, "color": "y"}

@Model/nc/enemy_walker
palette = nc
contact_shadow = 0.64
unit = 0.0625
blocks:
    {"from": [-6, -5, 0], "size": [5, 4, 3], "color": "d"}
    {"from": [1, -5, 0], "size": [5, 4, 3], "color": "d"}
    {"from": [-5, -4, 3], "size": [3, 3, 6], "color": "s"}
    {"from": [2, -4, 3], "size": [3, 3, 6], "color": "s"}
    {"from": [-6, -5, 9], "size": [12, 10, 7], "color": "v"}
    {"from": [-4, -6, 11], "size": [8, 12, 3], "color": "l"}
shapes:
    {"type": "ramp", "from": [-6, -4, 16], "size": [12, 8, 4], "color": "p"}
    {"type": "cylinder", "center": [0, 0, 12], "radius": 3.5, "height": 7, "color": "m"}
    {"type": "sphere", "center": [0, -4.5, 12.5], "radius": 2.0, "color": "y"}

@Model/nc/enemy_walker_charge
palette = nc
contact_shadow = 0.64
unit = 0.0625
blocks:
    {"from": [-7, -5, 0], "size": [6, 5, 3], "color": "d"}
    {"from": [1, -5, 0], "size": [6, 5, 3], "color": "d"}
    {"from": [-6, -4, 3], "size": [4, 4, 5], "color": "s"}
    {"from": [2, -4, 3], "size": [4, 4, 5], "color": "s"}
    {"from": [-6, -5, 8], "size": [12, 10, 7], "color": "v"}
    {"from": [-4, -6, 10], "size": [8, 12, 3], "color": "o"}
shapes:
    {"type": "ramp", "from": [-6, -4, 15], "size": [12, 8, 4], "color": "r"}
    {"type": "cylinder", "center": [0, 0, 11], "radius": 3.5, "height": 7, "color": "m"}
    {"type": "sphere", "center": [0, -4.8, 12.0], "radius": 2.4, "color": "r"}
    {"type": "cylinder", "center": [6, -2, 12], "radius": 2.2, "height": 6, "color": "y"}
    {"type": "sphere", "center": [6, -5.5, 12], "radius": 1.8, "color": "y"}

@Model/nc/enemy_walker_fire
palette = nc
contact_shadow = 0.64
unit = 0.0625
blocks:
    {"from": [-7, -5, 0], "size": [6, 5, 3], "color": "d"}
    {"from": [1, -5, 0], "size": [6, 5, 3], "color": "d"}
    {"from": [-6, -4, 3], "size": [4, 4, 5], "color": "s"}
    {"from": [2, -4, 3], "size": [4, 4, 5], "color": "s"}
    {"from": [-6, -5, 8], "size": [12, 10, 7], "color": "v"}
    {"from": [-4, -6, 10], "size": [8, 12, 3], "color": "y"}
shapes:
    {"type": "ramp", "from": [-6, -4, 15], "size": [12, 8, 4], "color": "y"}
    {"type": "cylinder", "center": [0, 0, 11], "radius": 3.5, "height": 7, "color": "m"}
    {"type": "sphere", "center": [0, -4.8, 12.0], "radius": 2.2, "color": "w"}
    {"type": "cylinder", "center": [6, -2, 12], "radius": 2.5, "height": 7, "color": "o"}
    {"type": "sphere", "center": [6, -6.5, 12], "radius": 2.8, "color": "w"}

# --- 12 SIGNATURE MEGA-STYLE BOSS ROBOTS (High-Detail 0.0625 Grid) ---
@Model/nc/boss_volt
palette = nc
emissive = "y"
unit = 0.0625
blocks:
    {"from": [-9, -5, 0], "size": [6, 5, 3], "color": "b"}
    {"from": [3, -5, 0], "size": [6, 5, 3], "color": "b"}
    {"from": [-8, -4, 3], "size": [4, 4, 8], "color": "C"}
    {"from": [4, -4, 3], "size": [4, 4, 8], "color": "C"}
    {"from": [-9, -5, 11], "size": [18, 10, 11], "color": "s"}
    {"from": [-7, -6, 14], "size": [14, 12, 4], "color": "C"}
    {"from": [-3, -7, 15], "size": [6, 14, 4], "color": "y"}
    {"from": [-5, -5, 24], "size": [10, 10, 4], "color": "k"}
    {"from": [-4, -6, 25], "size": [8, 12, 2], "color": "y"}
shapes:
    {"type": "sphere", "center": [0, 0, 26], "radius": 5.5, "color": "C"}
    {"type": "cylinder", "center": [-11, 0, 19], "radius": 3.2, "height": 9, "color": "y"}
    {"type": "cylinder", "center": [11, 0, 19], "radius": 3.2, "height": 9, "color": "y"}
    {"type": "sphere", "center": [-11, 0, 24], "radius": 2.4, "color": "c"}
    {"type": "sphere", "center": [11, 0, 24], "radius": 2.4, "color": "c"}
    {"type": "ramp", "from": [-8, -3, 29], "size": [7, 6, 6], "color": "y"}
    {"type": "ramp", "from": [1, -3, 29], "size": [7, 6, 6], "color": "c"}
    {"type": "cylinder", "center": [-5, -6, 10], "radius": 2.2, "height": 8, "color": "c"}
    {"type": "cylinder", "center": [5, -6, 10], "radius": 2.2, "height": 8, "color": "c"}

@Model/nc/boss_cryo
palette = nc
emissive = "i"
unit = 0.0625
blocks:
    {"from": [-9, -6, 0], "size": [18, 12, 7], "color": "b"}
    {"from": [-8, -5, 7], "size": [16, 10, 13], "color": "i"}
    {"from": [-6, -6, 11], "size": [12, 12, 5], "color": "c"}
    {"from": [-4, -6, 23], "size": [8, 12, 3], "color": "k"}
    {"from": [-3, -7, 24], "size": [6, 14, 2], "color": "w"}
shapes:
    {"type": "sphere", "center": [0, 0, 25], "radius": 5.2, "color": "w"}
    {"type": "cylinder", "center": [0, 0, 14], "radius": 4.2, "height": 8, "color": "v"}
    {"type": "ramp", "from": [-13, -3, 15], "size": [5, 6, 11], "color": "c"}
    {"type": "ramp", "from": [8, -3, 15], "size": [5, 6, 11], "color": "c"}
    {"type": "ramp", "from": [-6, -2, 28], "size": [12, 4, 6], "color": "i"}
    {"type": "cylinder", "center": [-10, 0, 11], "radius": 2.6, "height": 7, "color": "w"}
    {"type": "cylinder", "center": [10, 0, 11], "radius": 2.6, "height": 7, "color": "w"}

@Model/nc/boss_mag
palette = nc
emissive = "y"
unit = 0.0625
blocks:
    {"from": [-10, -6, 0], "size": [7, 12, 5], "color": "d"}
    {"from": [3, -6, 0], "size": [7, 12, 5], "color": "d"}
    {"from": [-9, -5, 5], "size": [5, 10, 6], "color": "m"}
    {"from": [4, -5, 5], "size": [5, 10, 6], "color": "m"}
    {"from": [-10, -6, 11], "size": [20, 12, 12], "color": "V"}
    {"from": [-7, -7, 14], "size": [14, 14, 6], "color": "p"}
    {"from": [-4, -7, 25], "size": [8, 14, 2], "color": "c"}
shapes:
    {"type": "cylinder", "center": [-13, 0, 18], "radius": 3.8, "height": 11, "color": "p"}
    {"type": "cylinder", "center": [13, 0, 18], "radius": 3.8, "height": 11, "color": "c"}
    {"type": "sphere", "center": [0, 0, 26], "radius": 5.4, "color": "p"}
    {"type": "ramp", "from": [-11, -4, 22], "size": [22, 8, 4], "color": "m"}
    {"type": "sphere", "center": [0, -6, 17], "radius": 2.6, "color": "y"}

@Model/nc/boss_pyro
palette = nc
emissive = "y"
unit = 0.0625
blocks:
    {"from": [-9, -5, 0], "size": [6, 10, 4], "color": "O"}
    {"from": [3, -5, 0], "size": [6, 10, 4], "color": "O"}
    {"from": [-8, -4, 4], "size": [4, 8, 7], "color": "r"}
    {"from": [4, -4, 4], "size": [4, 8, 7], "color": "r"}
    {"from": [-9, -6, 11], "size": [18, 12, 12], "color": "O"}
    {"from": [-6, -7, 13], "size": [12, 14, 7], "color": "y"}
    {"from": [-4, -7, 24], "size": [8, 14, 2], "color": "w"}
shapes:
    {"type": "sphere", "center": [0, 0, 17], "radius": 5.2, "color": "o"}
    {"type": "cylinder", "center": [0, 0, 26], "radius": 5.0, "height": 7.5, "color": "r"}
    {"type": "cylinder", "center": [0, 0, 31], "radius": 3.4, "height": 3.0, "color": "y"}
    {"type": "ramp", "from": [-13, -3, 19], "size": [7, 6, 7], "color": "y"}
    {"type": "ramp", "from": [6, -3, 19], "size": [7, 6, 7], "color": "y"}
    {"type": "cylinder", "center": [-12, 0, 14], "radius": 2.6, "height": 8, "color": "o"}
    {"type": "cylinder", "center": [12, 0, 14], "radius": 2.6, "height": 8, "color": "o"}

@Model/nc/boss_phase
palette = nc
emissive = "p"
unit = 0.0625
blocks:
    {"from": [-7, -5, 5], "size": [14, 10, 14], "color": "V"}
    {"from": [-5, -6, 9], "size": [10, 12, 6], "color": "k"}
    {"from": [-3, -7, 11], "size": [6, 14, 3], "color": "c"}
    {"from": [-4, -6, 23], "size": [8, 12, 2], "color": "p"}
shapes:
    {"type": "sphere", "center": [0, 0, 24], "radius": 5.8, "color": "v"}
    {"type": "cylinder", "center": [0, 0, 4], "radius": 6.5, "height": 3.2, "color": "p"}
    {"type": "cylinder", "center": [0, 0, 15], "radius": 7.2, "height": 1.6, "color": "c"}
    {"type": "ramp", "from": [-14, -3, 13], "size": [7, 6, 10], "color": "p"}
    {"type": "ramp", "from": [7, -3, 13], "size": [7, 6, 10], "color": "c"}
    {"type": "sphere", "center": [-11, 0, 24], "radius": 2.0, "color": "w"}
    {"type": "sphere", "center": [11, 0, 24], "radius": 2.0, "color": "w"}

@Model/nc/boss_saw
palette = nc
emissive = "l"
unit = 0.0625
blocks:
    {"from": [-8, -5, 0], "size": [5, 10, 4], "color": "L"}
    {"from": [3, -5, 0], "size": [5, 10, 4], "color": "L"}
    {"from": [-7, -4, 4], "size": [4, 8, 7], "color": "s"}
    {"from": [3, -4, 4], "size": [4, 8, 7], "color": "s"}
    {"from": [-9, -5, 11], "size": [18, 10, 11], "color": "d"}
    {"from": [-6, -6, 13], "size": [12, 12, 6], "color": "L"}
    {"from": [-4, -6, 24], "size": [8, 12, 2], "color": "y"}
shapes:
    {"type": "cylinder", "center": [-12, 0, 16], "radius": 5.5, "height": 2.4, "color": "l"}
    {"type": "cylinder", "center": [12, 0, 16], "radius": 5.5, "height": 2.4, "color": "l"}
    {"type": "sphere", "center": [-12, 0, 16], "radius": 2.0, "color": "w"}
    {"type": "sphere", "center": [12, 0, 16], "radius": 2.0, "color": "w"}
    {"type": "sphere", "center": [0, 0, 25], "radius": 5.0, "color": "l"}
    {"type": "ramp", "from": [-7, -3, 28], "size": [14, 6, 5], "color": "y"}

@Model/nc/boss_storm
palette = nc
emissive = "y"
unit = 0.0625
blocks:
    {"from": [-8, -5, 5], "size": [16, 10, 14], "color": "C"}
    {"from": [-5, -6, 9], "size": [10, 12, 7], "color": "s"}
    {"from": [-4, -6, 24], "size": [8, 12, 2], "color": "y"}
shapes:
    {"type": "ramp", "from": [-19, -3, 14], "size": [11, 6, 9], "color": "y"}
    {"type": "ramp", "from": [8, -3, 14], "size": [11, 6, 9], "color": "y"}
    {"type": "ramp", "from": [-16, -2, 21], "size": [8, 4, 6], "color": "c"}
    {"type": "ramp", "from": [8, -2, 21], "size": [8, 4, 6], "color": "c"}
    {"type": "sphere", "center": [0, 0, 25], "radius": 5.2, "color": "w"}
    {"type": "cylinder", "center": [0, 0, 3], "radius": 4.5, "height": 4.5, "color": "p"}
    {"type": "cylinder", "center": [0, 0, 1], "radius": 3.0, "height": 2.5, "color": "c"}

@Model/nc/boss_glacier
palette = nc
emissive = "i"
unit = 0.0625
blocks:
    {"from": [-10, -6, 0], "size": [20, 12, 10], "color": "b"}
    {"from": [-9, -6, 10], "size": [18, 12, 12], "color": "o"}
    {"from": [-6, -7, 13], "size": [12, 14, 6], "color": "i"}
    {"from": [-4, -7, 25], "size": [8, 14, 2], "color": "c"}
shapes:
    {"type": "sphere", "center": [0, 0, 17], "radius": 5.5, "color": "i"}
    {"type": "cylinder", "center": [-12, 0, 16], "radius": 3.6, "height": 11, "color": "r"}
    {"type": "cylinder", "center": [12, 0, 16], "radius": 3.6, "height": 11, "color": "i"}
    {"type": "ramp", "from": [-9, -4, 22], "size": [18, 8, 7], "color": "w"}
    {"type": "sphere", "center": [0, 0, 26], "radius": 4.6, "color": "c"}

@Model/nc/boss_ghost
palette = nc
emissive = "p"
unit = 0.0625
blocks:
    {"from": [-8, -5, 6], "size": [16, 10, 14], "color": "k"}
    {"from": [-6, -6, 10], "size": [12, 12, 6], "color": "V"}
    {"from": [-4, -7, 23], "size": [8, 14, 2], "color": "r"}
shapes:
    {"type": "sphere", "center": [0, 0, 24], "radius": 5.6, "color": "p"}
    {"type": "cylinder", "center": [0, 0, 12], "radius": 7.5, "height": 3.0, "color": "c"}
    {"type": "cylinder", "center": [0, 0, 4], "radius": 5.0, "height": 3.0, "color": "v"}
    {"type": "ramp", "from": [-14, -3, 16], "size": [7, 6, 9], "color": "v"}
    {"type": "ramp", "from": [7, -3, 16], "size": [7, 6, 9], "color": "v"}

@Model/nc/boss_hydra
palette = nc
emissive = "y"
unit = 0.0625
blocks:
    {"from": [-11, -6, 0], "size": [22, 12, 10], "color": "m"}
    {"from": [-10, -6, 10], "size": [20, 12, 11], "color": "L"}
    {"from": [-7, -7, 13], "size": [14, 14, 6], "color": "r"}
shapes:
    {"type": "sphere", "center": [-8.5, 0, 25], "radius": 4.2, "color": "o"}
    {"type": "sphere", "center": [0, 0, 27.5], "radius": 4.8, "color": "y"}
    {"type": "sphere", "center": [8.5, 0, 25], "radius": 4.2, "color": "o"}
    {"type": "cylinder", "center": [0, 0, 16], "radius": 5.4, "height": 8, "color": "r"}
    {"type": "ramp", "from": [-11, -4, 20], "size": [22, 8, 4], "color": "l"}
    {"type": "cylinder", "center": [-13, 0, 13], "radius": 3.0, "height": 9, "color": "o"}
    {"type": "cylinder", "center": [13, 0, 13], "radius": 3.0, "height": 9, "color": "o"}

@Model/nc/boss_prism
palette = nc
emissive = "p"
unit = 0.0625
blocks:
    {"from": [-8, -6, 4], "size": [16, 12, 15], "color": "w"}
    {"from": [-6, -7, 9], "size": [12, 14, 6], "color": "c"}
    {"from": [-4, -7, 25], "size": [8, 14, 2], "color": "p"}
shapes:
    {"type": "ramp", "from": [-11, -5, 19], "size": [22, 10, 8], "color": "c"}
    {"type": "sphere", "center": [0, 0, 26], "radius": 5.0, "color": "p"}
    {"type": "cylinder", "center": [-11, 0, 14], "radius": 3.0, "height": 13, "color": "v"}
    {"type": "cylinder", "center": [11, 0, 14], "radius": 3.0, "height": 13, "color": "y"}
    {"type": "sphere", "center": [-11, 0, 22], "radius": 2.4, "color": "w"}
    {"type": "sphere", "center": [11, 0, 22], "radius": 2.4, "color": "w"}

@Model/nc/boss_omega
palette = nc
emissive = "y"
unit = 0.08
blocks:
    {"from": [-9, -5, 0], "size": [7, 10, 8], "color": "k"}
    {"from": [2, -5, 0], "size": [7, 10, 8], "color": "k"}
    {"from": [-10, -6, 8], "size": [20, 12, 12], "color": "p"}
    {"from": [-7, -7, 11], "size": [14, 14, 6], "color": "k"}
    {"from": [-4, -7, 22], "size": [8, 14, 3], "color": "y"}
shapes:
    {"type": "sphere", "center": [0, 0, 14], "radius": 5.2, "color": "c"}
    {"type": "cylinder", "center": [-12, 0, 14], "radius": 3.4, "height": 12, "color": "y"}
    {"type": "cylinder", "center": [12, 0, 14], "radius": 3.4, "height": 12, "color": "y"}
    {"type": "ramp", "from": [-10, -4, 20], "size": [20, 8, 6], "color": "v"}
    {"type": "sphere", "center": [0, 0, 24], "radius": 4.5, "color": "r"}
    {"type": "ramp", "from": [-7, -2, 26], "size": [14, 4, 4], "color": "y"}

# --- INTERACTIVE PROPS & FX ---
@Model/nc/checkpoint_off
palette = nc
unit = 0.08
blocks:
    {"from": [-3, -3, 0], "size": [6, 6, 2], "color": "s"}
shapes:
    {"type": "cylinder", "center": [0, 0, 9], "radius": 1.6, "height": 16, "color": "m"}
    {"type": "sphere", "center": [0, 0, 18], "radius": 3.0, "color": "g"}

@Model/nc/checkpoint_on
palette = nc
unit = 0.08
blocks:
    {"from": [-3, -3, 0], "size": [6, 6, 2], "color": "s"}
shapes:
    {"type": "cylinder", "center": [0, 0, 9], "radius": 1.8, "height": 16, "color": "c"}
    {"type": "sphere", "center": [0, 0, 18], "radius": 3.4, "color": "l"}
    {"type": "cylinder", "center": [0, 0, 18], "radius": 4.4, "height": 1.2, "color": "y"}

@Model/nc/pickup_health
palette = nc
unit = 0.08
shapes:
    {"type": "sphere", "center": [0, 0, 3.5], "radius": 3.4, "color": "l"}
    {"type": "cylinder", "center": [0, 0, 3.5], "radius": 1.5, "height": 7.5, "color": "w"}

@Model/nc/pickup_energy
palette = nc
unit = 0.08
shapes:
    {"type": "cylinder", "center": [0, 0, 4], "radius": 3.0, "height": 7.0, "color": "c"}
    {"type": "sphere", "center": [0, 0, 8], "radius": 2.4, "color": "y"}

@Model/nc/pedestal
palette = nc
unit = 0.1
blocks:
    {"from": [-14, -14, 0], "size": [28, 28, 3], "color": "d"}
shapes:
    {"type": "cylinder", "center": [0, 0, 4.5], "radius": 11, "height": 3.2, "color": "p"}
    {"type": "cylinder", "center": [0, 0, 6.5], "radius": 8, "height": 1.5, "color": "c"}

@Model/nc/fx_burst
palette = nc
unit = 0.08
shapes:
    {"type": "sphere", "center": [0, 0, 0], "radius": 4.5, "color": "y"}
    {"type": "sphere", "center": [0, 0, 0], "radius": 2.8, "color": "p"}

@Model/nc/scrap
palette = nc
unit = 0.08
blocks:
    {"from": [-2, -2, -2], "size": [4, 4, 4], "color": "p"}
    {"from": [-1, -1, 1], "size": [2, 2, 2], "color": "c"}

@Model/nc/spark
palette = nc
unit = 0.08
shapes:
    {"type": "sphere", "center": [0, 0, 0], "radius": 2.0, "color": "y"}
    {"type": "sphere", "center": [0, 0, 0], "radius": 1.1, "color": "w"}

@Model/nc/blast
palette = nc
unit = 0.08
shapes:
    {"type": "cylinder", "center": [0, 0, 0], "radius": 6.0, "height": 2.0, "color": "c"}
    {"type": "sphere", "center": [0, 0, 0], "radius": 3.5, "color": "p"}

@Model/nc/victory_orb
palette = nc
emissive = "y"
unit = 0.08
shapes:
    {"type": "sphere", "center": [0, 0, 0], "radius": 4.0, "color": "c"}
    {"type": "cylinder", "center": [0, 0, 0], "radius": 5.5, "height": 1.2, "color": "y"}
    {"type": "sphere", "center": [0, 0, 0], "radius": 2.2, "color": "w"}

@Model/nc/death_orb
palette = nc
unit = 0.07
shapes:
    {"type": "sphere", "center": [0, 0, 0], "radius": 4.2, "color": "c"}
    {"type": "sphere", "center": [0, 0, 0], "radius": 2.5, "color": "w"}

@Model/nc/teleport_beam
palette = nc
unit = 0.08
shapes:
    {"type": "cylinder", "center": [0, 0, 12], "radius": 2.6, "height": 24, "color": "c"}
    {"type": "cylinder", "center": [0, 0, 12], "radius": 1.3, "height": 24, "color": "w"}
    {"type": "cylinder", "center": [0, 0, 1], "radius": 4.5, "height": 1.4, "color": "y"}

@Model/nc/ladder
palette = nc
unit = 0.0625
blocks:
    {"from": [-6, -2, 0], "size": [2, 3, 16], "color": "s"}
    {"from": [4, -2, 0], "size": [2, 3, 16], "color": "s"}
    {"from": [-4, -1, 2], "size": [8, 2, 2], "color": "c"}
    {"from": [-4, -1, 7], "size": [8, 2, 2], "color": "y"}
    {"from": [-4, -1, 13], "size": [8, 2, 2], "color": "c"}

@Model/nc/boss_door_frame
palette = nc
unit = 0.0625
blocks:
    {"from": [-4, -18, 0], "size": [8, 3, 16], "color": "s"}
    {"from": [-4, 15, 0], "size": [8, 3, 16], "color": "s"}
    {"from": [-2, -16, 4], "size": [4, 2, 8], "color": "C"}
    {"from": [-2, 14, 4], "size": [4, 2, 8], "color": "C"}

@Model/nc/boss_shutter
palette = nc
unit = 0.125
blocks:
    {"from": [-3, -8, 0], "size": [6, 16, 32], "color": "s"}
    {"from": [-2, -9, 4], "size": [4, 18, 4], "color": "C"}
    {"from": [-2, -9, 14], "size": [4, 18, 4], "color": "y"}
    {"from": [-2, -9, 24], "size": [4, 18, 4], "color": "C"}

# --- ARTICULATED BOSS LIMB PODS & ANIMATED AURA SATELLITES ---
@Model/nc/boss_pod
palette = nc
unit = 0.0625
blocks:
    {"from": [-3, -3, -2], "size": [6, 6, 5], "color": "s"}
    {"from": [-2, -4, -1], "size": [4, 8, 3], "color": "p"}
shapes:
    {"type": "ramp", "from": [-3, -2, 3], "size": [7, 4, 3], "color": "c"}
    {"type": "sphere", "center": [3, 0, 0], "radius": 2.2, "color": "y"}

@Model/nc/boss_ring
palette = nc
unit = 0.07
shapes:
    {"type": "cylinder", "center": [0, 0, 0], "radius": 11.0, "height": 1.0, "color": "c"}
    {"type": "cylinder", "center": [0, 0, 0], "radius": 8.5, "height": 1.4, "color": "p"}
    {"type": "sphere", "center": [10.5, 0, 0], "radius": 2.0, "color": "y"}
    {"type": "sphere", "center": [-10.5, 0, 0], "radius": 2.0, "color": "y"}

@Model/nc/boss_blade
palette = nc
unit = 0.0625
blocks:
    {"from": [-5, -1, -1], "size": [10, 2, 2], "color": "w"}
    {"from": [-1, -5, -1], "size": [2, 10, 2], "color": "w"}
shapes:
    {"type": "cylinder", "center": [0, 0, 0], "radius": 4.2, "height": 1.6, "color": "p"}
    {"type": "sphere", "center": [0, 0, 0], "radius": 2.2, "color": "y"}

# --- BACKGROUND CYBERPUNK ARCHITECTURE MODELS (harmonious muted slate + crisp accents) ---
@Model/nc/bg_tower
palette = nc
emissive = "C"
unit = 0.3
blocks:
    {"from": [-4, -3, 0], "size": [8, 6, 22], "color": "d"}
    {"from": [-5, -4, 0], "size": [10, 8, 3], "color": "s"}
    {"from": [-3, 2, 4], "size": [6, 2, 1], "color": "b"}
    {"from": [-3, 2, 9], "size": [6, 2, 1], "color": "q"}
    {"from": [-3, 2, 14], "size": [6, 2, 1], "color": "b"}
    {"from": [-3, 2, 18], "size": [6, 2, 1], "color": "C"}
shapes:
    {"type": "ramp", "from": [-4, -3, 22], "size": [8, 6, 4], "color": "s"}
    {"type": "cylinder", "center": [0, 0, 27.5], "radius": 0.6, "height": 5, "color": "m"}
    {"type": "sphere", "center": [0, 0, 30.5], "radius": 1.0, "color": "C"}

@Model/nc/bg_dome
palette = nc
emissive = "C"
unit = 0.25
blocks:
    {"from": [-6, -4, 0], "size": [12, 8, 7], "color": "d"}
    {"from": [-4, 3, 2], "size": [8, 2, 2], "color": "b"}
shapes:
    {"type": "sphere", "center": [0, 0, 8], "radius": 6.0, "color": "s"}
    {"type": "cylinder", "center": [0, 0, 8], "radius": 6.5, "height": 1.2, "color": "C"}
    {"type": "cylinder", "center": [0, 0, 14.5], "radius": 0.6, "height": 3.5, "color": "m"}

@Model/nc/bg_pipe
palette = nc
emissive = "C"
unit = 0.25
blocks:
    {"from": [-3, -3, 0], "size": [6, 6, 3], "color": "d"}
shapes:
    {"type": "cylinder", "center": [0, 0, 11], "radius": 2.1, "height": 20, "color": "s"}
    {"type": "cylinder", "center": [0, 0, 6], "radius": 2.6, "height": 1.4, "color": "b"}
    {"type": "cylinder", "center": [0, 0, 12], "radius": 2.6, "height": 1.4, "color": "m"}
    {"type": "cylinder", "center": [0, 0, 18], "radius": 2.6, "height": 1.4, "color": "C"}

@Model/nc/bg_sign_pink
palette = nc
emissive = "PC"
unit = 0.25
blocks:
    {"from": [-6, -1, 0], "size": [12, 2, 7], "color": "q"}
    {"from": [-5, 0, 1], "size": [10, 2, 5], "color": "d"}
    {"from": [-4, 1, 3], "size": [8, 2, 1], "color": "P"}
    {"from": [-4, 1, 1], "size": [5, 2, 1], "color": "C"}
shapes:
    {"type": "cylinder", "center": [-5, 0, -2], "radius": 0.6, "height": 4, "color": "s"}
    {"type": "cylinder", "center": [5, 0, -2], "radius": 0.6, "height": 4, "color": "s"}

@Model/nc/bg_sign_cyan
palette = nc
emissive = "CP"
unit = 0.25
blocks:
    {"from": [-6, -1, 0], "size": [12, 2, 7], "color": "b"}
    {"from": [-5, 0, 1], "size": [10, 2, 5], "color": "d"}
    {"from": [-4, 1, 3], "size": [8, 2, 1], "color": "C"}
    {"from": [-4, 1, 1], "size": [6, 2, 1], "color": "P"}
shapes:
    {"type": "cylinder", "center": [-5, 0, -2], "radius": 0.6, "height": 4, "color": "s"}
    {"type": "cylinder", "center": [5, 0, -2], "radius": 0.6, "height": 4, "color": "s"}

@Model/nc/bg_arch
palette = nc
unit = 0.25
blocks:
    {"from": [-7, -2, 0], "size": [2, 4, 12], "color": "d"}
    {"from": [5, -2, 0], "size": [2, 4, 12], "color": "d"}
shapes:
    {"type": "ramp", "from": [-7, -2, 12], "size": [7, 4, 4], "color": "s"}
    {"type": "ramp", "from": [0, -2, 12], "size": [7, 4, 4], "color": "m"}

@Model/nc/bg_orb
palette = nc
emissive = "C"
unit = 0.25
shapes:
    {"type": "sphere", "center": [0, 0, 4], "radius": 4.2, "color": "s"}
    {"type": "cylinder", "center": [0, 0, 4], "radius": 5.8, "height": 0.9, "color": "m"}
    {"type": "cylinder", "center": [0, 0, 4], "radius": 6.3, "height": 0.4, "color": "C"}

@Model/nc/bg_pylon
palette = nc
unit = 0.25
shapes:
    {"type": "cylinder", "center": [0, 0, 7], "radius": 2.3, "height": 14, "color": "d"}
    {"type": "ramp", "from": [-4, -2, 14], "size": [8, 4, 5], "color": "s"}
    {"type": "sphere", "center": [2.2, 0, 18.8], "radius": 1.6, "color": "Y"}

@Model/nc/title_monument
palette = nc
emissive = "cp"
unit = 0.125
blocks:
    {"from": [-14, -10, 0], "size": [28, 20, 3], "color": "d"}
    {"from": [-11, -8, 3], "size": [22, 16, 3], "color": "s"}
    {"from": [-8, -6, 6], "size": [16, 12, 2], "color": "m"}
    {"from": [-5, -4, 8], "size": [10, 8, 1], "color": "c"}
shapes:
    {"type": "cylinder", "center": [0, 0, 4], "radius": 13, "height": 1.2, "color": "p"}
    {"type": "cylinder", "center": [0, 0, 7], "radius": 10, "height": 1.0, "color": "c"}
    {"type": "ramp", "from": [-14, -5, 3], "size": [5, 10, 4], "color": "s"}
    {"type": "ramp", "from": [9, -5, 3], "size": [5, 10, 4], "color": "s"}

@Model/nc/power_capsule
palette = nc
emissive = "ci"
contact_shadow = 1.35
unit = 0.1
shapes:
    {"type": "cylinder", "center": [0, 0, 1.5], "radius": 10, "height": 3, "color": "d"}
    {"type": "cylinder", "center": [0, 0, 4], "radius": 9, "height": 2, "color": "C"}
    {"type": "cylinder", "center": [0, 0, 6], "radius": 7, "height": 2, "color": "m"}
    {"type": "cylinder", "center": [0, 0, 11], "radius": 7.2, "height": 11, "color": "c"}
    {"type": "cylinder", "center": [0, 0, 11], "radius": 5.4, "height": 11, "color": "i"}
    {"type": "sphere", "center": [0, 0, 11], "radius": 3.8, "color": "y"}
    {"type": "cylinder", "center": [0, 0, 17.5], "radius": 8.0, "height": 2.5, "color": "p"}
    {"type": "cylinder", "center": [0, 0, 19.5], "radius": 5.0, "height": 1.8, "color": "w"}
    {"type": "cylinder", "center": [-7, -7, 11], "radius": 1.2, "height": 12, "color": "d"}
    {"type": "cylinder", "center": [7, -7, 11], "radius": 1.2, "height": 12, "color": "d"}
    {"type": "cylinder", "center": [-7, 7, 11], "radius": 1.2, "height": 12, "color": "d"}
    {"type": "cylinder", "center": [7, 7, 11], "radius": 1.2, "height": 12, "color": "d"}

@Model/nc/power_capsule_open
palette = nc
emissive = "c"
contact_shadow = 1.35
unit = 0.1
shapes:
    {"type": "cylinder", "center": [0, 0, 1.5], "radius": 10, "height": 3, "color": "d"}
    {"type": "cylinder", "center": [0, 0, 4], "radius": 9, "height": 2, "color": "C"}
    {"type": "cylinder", "center": [0, 0, 6], "radius": 6.8, "height": 4, "color": "c"}
    {"type": "cylinder", "center": [0, 0, 20], "radius": 8.0, "height": 2, "color": "p"}
    {"type": "cylinder", "center": [-7, -7, 12], "radius": 1.2, "height": 14, "color": "d"}
    {"type": "cylinder", "center": [7, -7, 12], "radius": 1.2, "height": 14, "color": "d"}

# The long side is local Y so pitch rotates the pane around world X.
@Model/nc/glass_panel
palette = nc
emissive = "c"
glass = [16,32]
unit = 0.25
blocks:
    {"from": [-8, -16, 0], "size": [1, 32, 1], "color": "C"}
    {"from": [-7, 15, 0], "size": [15, 1, 1], "color": "b"}
    {"from": [-8, 14, 0], "size": [2, 2, 1], "color": "c"}
    {"from": [-2, -5, 0], "size": [1, 2, 1], "color": "b"}
    {"from": [-1, -6, 0], "size": [1, 2, 1], "color": "b"}
    {"from": [0, -7, 0], "size": [1, 2, 1], "color": "b"}
    {"from": [1, -8, 0], "size": [1, 2, 1], "color": "b"}
    {"from": [2, -9, 0], "size": [1, 2, 1], "color": "b"}
    {"from": [0, -10, 0], "size": [1, 1, 1], "color": "s"}
    {"from": [1, -11, 0], "size": [1, 1, 1], "color": "s"}
    {"from": [2, -12, 0], "size": [1, 1, 1], "color": "s"}

# Thin ribs across the glass over old pits keep the skyline visible below.
@Model/nc/glass_pit_cover
palette = nc
emissive = "C"
unit = 0.125
blocks:
    {"from": [-8, -4, 0], "size": [1, 8, 1], "color": "C"}
    {"from": [7, -4, 0], "size": [1, 8, 1], "color": "C"}
    {"from": [-7, -4, 0], "size": [14, 1, 1], "color": "b"}
    {"from": [-7, 0, 0], "size": [14, 1, 1], "color": "a"}

@Model/nc/lamp
palette = nc
emissive = "w"
unit = 0.125
blocks:
    {"from": [-4, -3, 0], "size": [8, 6, 2], "color": "d"}
    {"from": [-3, -2, 2], "size": [6, 4, 6], "color": "s"}
    {"from": [-4, -2, 8], "size": [8, 4, 2], "color": "h"}
    {"from": [-3, -2, 10], "size": [6, 4, 1], "color": "w"}

@Model/nc/master_gate
palette = nc
unit = 0.25
blocks:
    {"from": [-13, -3, 0], "size": [5, 6, 20], "color": "m"}
    {"from": [8, -3, 0], "size": [5, 6, 20], "color": "m"}
    {"from": [-13, -3, 20], "size": [26, 6, 4], "color": "a"}
    {"from": [-8, -1, 1], "size": [16, 3, 19], "color": "d"}
    {"from": [-7, 2, 1], "size": [1, 1, 18], "color": "P"}
    {"from": [6, 2, 1], "size": [1, 1, 18], "color": "P"}
    {"from": [-8, 2, 17], "size": [16, 1, 1], "color": "p"}
    {"from": [-11, 3, 3], "size": [1, 1, 13], "color": "C"}
    {"from": [10, 3, 3], "size": [1, 1, 13], "color": "C"}
    {"from": [-7, 3, 21], "size": [14, 1, 1], "color": "i"}

@Model/nc/master_gate_open
palette = nc
emissive = "i"
unit = 0.25
blocks:
    {"from": [-13, -3, 0], "size": [5, 6, 20], "color": "m"}
    {"from": [8, -3, 0], "size": [5, 6, 20], "color": "m"}
    {"from": [-13, -3, 20], "size": [26, 6, 4], "color": "a"}
    {"from": [-9, 2, 0], "size": [1, 1, 20], "color": "c"}
    {"from": [8, 2, 0], "size": [1, 1, 20], "color": "c"}
    {"from": [-8, 2, 19], "size": [16, 1, 1], "color": "i"}
    {"from": [-8, -2, 0], "size": [16, 4, 1], "color": "C"}

@Model/nc/master_key_lit
palette = nc
emissive = "c"
unit = 0.08
blocks:
    {"from": [-4, -3, -1], "size": [8, 6, 8], "color": "s"}
    {"from": [-2, 3, 1], "size": [4, 2, 4], "color": "c"}
    {"from": [-1, 5, 2], "size": [2, 1, 2], "color": "w"}

@Model/nc/master_key_empty
palette = nc
unit = 0.08
blocks:
    {"from": [-4, -3, -1], "size": [8, 6, 8], "color": "s"}
    {"from": [-2, 3, 1], "size": [4, 1, 4], "color": "m"}

@Model/nc/master_relay
palette = nc
emissive = "p"
unit = 0.1
shapes:
    {"type": "cylinder", "center": [0, 0, -4], "radius": 7, "height": 5, "color": "b"}
    {"type": "sphere", "center": [0, 0, 4], "radius": 6, "color": "p"}
blocks:
    {"from": [-7, -7, 1], "size": [14, 2, 3], "color": "C"}
    {"from": [-7, 5, 1], "size": [14, 2, 3], "color": "C"}

@Model/nc/master_dragon_body
palette = nc
emissive = "pi"
unit = 0.25
blocks:
    {"from": [-10,-6,7], "size": [20,12,8], "color": "m"}
    {"from": [-8,-5,14], "size": [15,10,3], "color": "a"}
    {"from": [-11,-4,9], "size": [5,8,6], "color": "C"}
    {"from": [-8,-7,8], "size": [15,2,4], "color": "d"}
    {"from": [-8,5,8], "size": [15,2,4], "color": "P"}
    {"from": [-6,7,9], "size": [10,1,1], "color": "p"}
    {"from": [-6,-5,2], "size": [5,5,8], "color": "a"}
    {"from": [4,2,2], "size": [5,5,8], "color": "m"}
    {"from": [-8,-6,0], "size": [8,6,3], "color": "s"}
    {"from": [1,2,0], "size": [9,6,3], "color": "s"}
    {"from": [-8,-6,0], "size": [3,6,1], "color": "i"}
    {"from": [1,2,0], "size": [3,6,1], "color": "C"}
    {"from": [7,-3,8], "size": [7,6,5], "color": "m"}
    {"from": [13,-2,7], "size": [6,4,4], "color": "a"}
    {"from": [18,-1,7], "size": [5,3,3], "color": "C"}
    {"from": [22,0,8], "size": [4,2,2], "color": "i"}
    {"from": [-4,-7,14], "size": [9,4,9], "color": "V"}
    {"from": [1,-10,18], "size": [11,5,8], "color": "m"}
    {"from": [7,-13,23], "size": [9,4,5], "color": "a"}
    {"from": [11,-14,27], "size": [8,3,2], "color": "c"}
    {"from": [-2,4,13], "size": [8,5,7], "color": "V"}
    {"from": [3,7,17], "size": [10,5,6], "color": "m"}
    {"from": [9,10,21], "size": [8,4,4], "color": "a"}
    {"from": [13,12,24], "size": [7,3,2], "color": "p"}
    {"from": [1,9,16], "size": [10,1,2], "color": "P"}
    {"from": [7,12,20], "size": [8,1,2], "color": "p"}
shapes:
    {"type": "sphere", "center": [-4, 6, 10], "radius": 3.4, "color": "v"}
    {"type": "sphere", "center": [-4, 8, 10], "radius": 2, "color": "c"}

@Model/nc/master_dragon_neck
palette = nc
unit = 0.1
blocks:
    {"from": [-7,-4,-4], "size": [15,8,8], "color": "m"}
    {"from": [-3,-5,-3], "size": [6,10,7], "color": "a"}
    {"from": [-3,3,-1], "size": [6,2,2], "color": "C"}
    {"from": [-1,-2,4], "size": [4,4,4], "color": "v"}
    {"from": [1,-1,7], "size": [3,2,2], "color": "p"}

@Model/nc/master_dragon_head
palette = nc
emissive = "yo"
unit = 0.125
blocks:
    {"from": [-7,-5,-3], "size": [14,10,9], "color": "m"}
    {"from": [-11,-4,-3], "size": [8,8,5], "color": "a"}
    {"from": [-15,-3,-3], "size": [6,6,4], "color": "m"}
    {"from": [-14,-2,-4], "size": [7,4,2], "color": "O"}
    {"from": [-10,3,-3], "size": [2,2,2], "color": "w"}
    {"from": [-3,5,1], "size": [6,1,3], "color": "o"}
    {"from": [-2,6,2], "size": [3,1,1], "color": "y"}
    {"from": [-3,-6,1], "size": [6,1,3], "color": "o"}
    {"from": [0,-4,6], "size": [5,3,3], "color": "a"}
    {"from": [3,-4,9], "size": [5,2,3], "color": "i"}
    {"from": [1,2,6], "size": [5,3,3], "color": "a"}
    {"from": [4,3,9], "size": [5,2,3], "color": "i"}
    {"from": [5,-3,1], "size": [5,6,4], "color": "V"}

@Model/nc/master_dragon_jaw
palette = nc
emissive = "o"
unit = 0.125
blocks:
    {"from": [-10,-3,-2], "size": [15,6,2], "color": "m"}
    {"from": [-11,-2,0], "size": [8,4,1], "color": "o"}
    {"from": [-9,2,0], "size": [2,1,2], "color": "w"}
    {"from": [-5,2,0], "size": [2,1,2], "color": "w"}

@Model/nc/volt_warning_stripe
palette = nc
emissive = "yo"
unit = 0.125
blocks:
    {"from": [-6,-4,0], "size": [12,1,1], "color": "o"}
    {"from": [-6,3,0], "size": [12,1,1], "color": "o"}
    {"from": [0,-2,0], "size": [3,4,1], "color": "y"}

@Model/nc/volt_lane_pulse
palette = nc
emissive = "ywo"
unit = 0.125
blocks:
    {"from": [-5,-4,-1], "size": [9,8,2], "color": "o"}
    {"from": [-4,-3,0], "size": [9,6,2], "color": "y"}
    {"from": [2,-2,1], "size": [3,4,1], "color": "w"}

@Model/nc/volt_dash_pad
palette = nc
emissive = "ly"
unit = 0.125
blocks:
    {"from": [-10,-3,0], "size": [20,6,1], "color": "b"}
    {"from": [-9,-3,1], "size": [18,1,1], "color": "l"}
    {"from": [-9,2,1], "size": [18,1,1], "color": "l"}
    {"from": [-4,-1,1], "size": [8,2,1], "color": "y"}

@Model/nc/volt_dash_chevron
palette = nc
emissive = "l"
unit = 0.125
blocks:
    {"from": [-2,0,0], "size": [2,1,1], "color": "l"}
    {"from": [0,-1,0], "size": [2,1,1], "color": "l"}
    {"from": [0,1,0], "size": [2,1,1], "color": "l"}
    {"from": [2,-2,0], "size": [2,1,1], "color": "L"}
    {"from": [2,2,0], "size": [2,1,1], "color": "L"}

@Model/nc/volt_dash_coil
palette = nc
emissive = "yo"
unit = 0.125
blocks:
    {"from": [-5,-3,0], "size": [10,6,1], "color": "q"}
    {"from": [-4,-2,1], "size": [8,1,2], "color": "o"}
    {"from": [-4,1,1], "size": [8,1,2], "color": "o"}
    {"from": [-2,-1,2], "size": [4,2,1], "color": "y"}

@Model/nc/cryo_vent_idle
palette = nc
unit = 0.10
blocks:
    {"from": [-8,-6,0], "size": [16,12,1], "color": "a"}
    {"from": [-7,-5,1], "size": [14,10,1], "color": "d"}
    {"from": [-5,-5,1], "size": [1,10,1], "color": "g"}
    {"from": [-1,-5,1], "size": [1,10,1], "color": "g"}
    {"from": [3,-5,1], "size": [1,10,1], "color": "g"}

@Model/nc/cryo_vent_warn
palette = nc
emissive = "Ci"
unit = 0.10
blocks:
    {"from": [-8,-6,0], "size": [16,12,1], "color": "a"}
    {"from": [-7,-5,1], "size": [14,10,1], "color": "b"}
    {"from": [-7,-5,2], "size": [14,1,1], "color": "C"}
    {"from": [-7,4,2], "size": [14,1,1], "color": "C"}
    {"from": [-5,-2,2], "size": [1,4,1], "color": "i"}
    {"from": [0,-2,2], "size": [1,4,1], "color": "i"}
    {"from": [5,-2,2], "size": [1,4,1], "color": "i"}

@Model/nc/cryo_vent_live
palette = nc
emissive = "ci"
unit = 0.10
blocks:
    {"from": [-8,-6,0], "size": [16,12,1], "color": "a"}
    {"from": [-7,-5,1], "size": [14,10,1], "color": "b"}
    {"from": [-7,-5,2], "size": [14,1,1], "color": "c"}
    {"from": [-7,4,2], "size": [14,1,1], "color": "c"}
    {"from": [-6,-3,2], "size": [3,4,3], "color": "C"}
    {"from": [-5,-2,5], "size": [1,2,3], "color": "i"}
    {"from": [-1,-1,2], "size": [4,5,3], "color": "C"}
    {"from": [0,0,5], "size": [2,3,4], "color": "c"}
    {"from": [1,1,9], "size": [1,1,2], "color": "i"}
    {"from": [4,-4,2], "size": [3,4,4], "color": "C"}
    {"from": [5,-3,6], "size": [1,2,3], "color": "i"}

@Model/nc/cryo_cache
palette = nc
emissive = "li"
contact_shadow = 0.5
unit = 0.10
blocks:
    {"from": [-5,-4,0], "size": [10,8,2], "color": "s"}
    {"from": [-4,-3,2], "size": [8,6,4], "color": "V"}
    {"from": [-4,-3,6], "size": [8,6,1], "color": "i"}
    {"from": [-3,-1,7], "size": [6,2,1], "color": "l"}
    {"from": [-1,-3,7], "size": [2,6,1], "color": "l"}

@Model/nc/storm_fan
palette = nc
emissive = "C"
unit = 0.10
blocks:
    {"from": [-8,-2,0], "size": [16,4,2], "color": "a"}
    {"from": [-7,-1,2], "size": [14,2,1], "color": "d"}
    {"from": [-6,0,2], "size": [12,1,1], "color": "C"}
    {"from": [-6,-2,2], "size": [2,4,2], "color": "g"}
    {"from": [-1,-2,2], "size": [2,4,2], "color": "g"}
    {"from": [4,-2,2], "size": [2,4,2], "color": "g"}

@Model/nc/storm_gust
palette = nc
emissive = "c"
unit = 0.10
blocks:
    {"from": [-6,-7,2], "size": [1,8,1], "color": "C"}
    {"from": [-6,2,2], "size": [1,3,1], "color": "c"}
    {"from": [-2,-4,4], "size": [1,5,1], "color": "C"}
    {"from": [-2,2,4], "size": [1,3,1], "color": "c"}
    {"from": [2,-8,5], "size": [1,7,1], "color": "C"}
    {"from": [2,0,5], "size": [1,3,1], "color": "c"}
    {"from": [5,-3,3], "size": [1,6,1], "color": "C"}
    {"from": [5,4,3], "size": [1,2,1], "color": "c"}

@Model/nc/storm_beacon
palette = nc
unit = 0.10
blocks:
    {"from": [-3,-3,0], "size": [6,6,2], "color": "a"}
    {"from": [-1,-1,2], "size": [2,2,10], "color": "g"}
    {"from": [-2,-3,12], "size": [4,6,5], "color": "s"}
    {"from": [-2,-2,13], "size": [4,4,3], "color": "b"}

@Model/nc/storm_beacon_warn
palette = nc
emissive = "yo"
unit = 0.10
blocks:
    {"from": [-3,-3,0], "size": [6,6,2], "color": "a"}
    {"from": [-1,-1,2], "size": [2,2,10], "color": "g"}
    {"from": [-2,-3,12], "size": [4,6,5], "color": "o"}
    {"from": [-3,-2,13], "size": [6,4,3], "color": "y"}

@Model/nc/storm_beacon_live
palette = nc
emissive = "ci"
unit = 0.10
blocks:
    {"from": [-3,-3,0], "size": [6,6,2], "color": "a"}
    {"from": [-1,-1,2], "size": [2,2,10], "color": "g"}
    {"from": [-2,-3,12], "size": [4,6,5], "color": "c"}
    {"from": [-3,-2,13], "size": [6,4,3], "color": "i"}

@Model/nc/storm_relay
palette = nc
emissive = "oyw"
unit = 0.10
blocks:
    {"from": [-3,-3,0], "size": [6,6,2], "color": "a"}
    {"from": [-2,-2,2], "size": [4,4,4], "color": "m"}
    {"from": [-3,-4,5], "size": [6,8,6], "color": "O"}
    {"from": [-4,-3,6], "size": [8,6,4], "color": "o"}
    {"from": [-5,-2,7], "size": [10,4,2], "color": "y"}
    {"from": [-5,-1,7], "size": [10,2,2], "color": "w"}

@Model/nc/storm_relay_off
palette = nc
unit = 0.10
blocks:
    {"from": [-3,-3,0], "size": [6,6,2], "color": "a"}
    {"from": [-2,-2,2], "size": [4,4,4], "color": "m"}
    {"from": [-3,-4,5], "size": [6,8,6], "color": "s"}
    {"from": [-4,-3,6], "size": [8,6,4], "color": "d"}
combat.rune
# Combat, 7 Weapons, Pixel Explosions, Enemies, and 12-Boss Death/Victory Ceremony
@Logic/neon_circuit

action burst(bx, bz, count):
    for i in range(0, count):
        bearing = i * 137 + ticks * 19
        speed = 0.08 + (i % 5) * 0.04
        effects.push({
            "x": bx,
            "y": 7.25 + (i % 3) * 0.06,
            "z": bz,
            "dx": cos(bearing) * speed,
            "dz": sin(bearing) * speed + 0.09,
            "ttl": 14 + (i % 5) * 3,
            "life": 14 + (i % 5) * 3,
            "angle": bearing,
            "spin": i % 2 == 0 ? 19 : -15,
            "scale": i % 3 == 0 ? 1.0 : 0.65,
            "dissolve": 0,
            "model": i % 3 == 0 ? "nc/scrap" : "nc/spark",
            "kind": "debris",
            "visible": true
        })
    if count >= 8:
        effects.push({
            "x": bx,
            "y": 7.45,
            "z": bz,
            "dx": 0,
            "dz": 0,
            "ttl": 10,
            "life": 10,
            "angle": 0,
            "spin": 12,
            "scale": 0.45,
            "dissolve": 0,
            "model": "nc/blast",
            "kind": "blast",
            "visible": true
        })
    effects = effects.slice(max(0, effects.length - 96))

action burst_on_deck(x, y):
    for i in range(0, 16):
        local bearing = i * 137 + ticks * 19
        local speed = 0.06 + (i % 5) * 0.05
        local life = 12 + (i % 5) * 3
        effects.push({
            "x": x, "y": y, "z": escape_deck_z + 0.75,
            "dx": cos(bearing) * speed, "dy": sin(bearing) * speed, "dz": 0.11 + (i % 4) * 0.03,
            "ttl": life, "life": life, "angle": bearing, "spin": 18,
            "scale": i % 3 == 0 ? 0.9 : 0.6, "dissolve": 0,
            "model": i % 3 == 0 ? "nc/scrap" : "nc/spark", "kind": "debris", "visible": true
        })
    effects.push({
        "x": x, "y": y, "z": escape_deck_z + 0.75,
        "dx": 0, "dz": 0, "ttl": 8, "life": 8, "angle": 0, "spin": 12,
        "scale": 0.5, "dissolve": 0, "model": "nc/blast", "kind": "blast", "visible": true
    })
    effects = effects.slice(max(0, effects.length - 96))

action victory_sparkles:
    for i in range(0, 10):
        bearing = i * 36 + victory_ticks * 7
        effects.push({
            "x": player.x + cos(bearing) * 0.85,
            "y": player.y + sin(bearing) * 0.85,
            "z": player.z + 1.8,
            "dx": cos(bearing) * 0.04,
            "dz": sin(bearing) * 0.03 + 0.025,
            "ttl": 22,
            "life": 22,
            "angle": bearing,
            "spin": 10,
            "scale": i % 2 == 0 ? 0.85 : 0.55,
            "dissolve": 0,
            "model": "nc/spark",
            "kind": "sparkle",
            "visible": true
        })
    effects = effects.slice(max(0, effects.length - 96))

action update_effects:
    for fx in effects:
        fx.ttl = fx.ttl - 1
        fx.x = fx.x + fx.dx
        if fx.dy:
            fx.y = fx.y + fx.dy
        fx.z = fx.z + fx.dz
        fx.angle = (fx.angle + fx.spin) % 360
        if fx.kind == "debris":
            fx.dz = fx.dz - 0.015
            fx.dx = fx.dx * 0.96
            fx.dissolve = clamp(1 - fx.ttl / 8, 0, 1)
        if fx.kind == "blast":
            fx.scale = fx.scale + 0.22
            fx.dissolve = clamp(1 - fx.ttl / fx.life, 0, 1)
        if fx.kind == "sparkle":
            fx.dissolve = clamp(1 - fx.ttl / 10, 0, 1)
        if fx.kind == "orb":
            fx.scale = 0.7 + sin(fx.ttl * 0.8) * 0.25
            fx.dissolve = clamp(1 - fx.ttl / 8, 0, 1)
        fx.visible = fx.ttl > 0 && fx.z > 0.3
    effects = effects.filter(fx => fx.visible)

action sync_weapon_model:
    gun = "nc/gun_buster"
    match active_weapon:
        "volt":
            gun = "nc/gun_volt"
        "cryo":
            gun = "nc/gun_cryo"
        "mag":
            gun = "nc/gun_mag"
        "nova":
            gun = "nc/gun_nova"
        "phase":
            gun = "nc/gun_phase"
        "saw":
            gun = "nc/gun_saw"
    weapon_model = {
        "x": player.x + facing * 0.20,
        "y": 7.1,
        "z": player.z + (ducking ? 0.55 : 0.85),
        "model": gun,
        "angle": facing > 0 ? 0 : 180,
        "visible": status == "playing" && !escape_active && !master_active && (invulnerable <= 0 || invulnerable % 4 < 2)
    }

action toggle_weapon_wheel:
    if wheel_open || wheel_ticks > 0:
        call cycle_weapon 1
    else:
        wheel_open = true
        wheel_ticks = 60
        wheel_cooldown = 0
        sound.play "nc_select_move"
        call refresh_ui

action cycle_weapon(dir):
    pool = ["buster"]
    if campaign.weapons.volt == true:
        pool.push("volt")
    if campaign.weapons.cryo == true:
        pool.push("cryo")
    if campaign.weapons.mag == true:
        pool.push("mag")
    if campaign.weapons.nova == true:
        pool.push("nova")
    if campaign.weapons.phase == true:
        pool.push("phase")
    if campaign.weapons.saw == true:
        pool.push("saw")
    idx = 0
    for i in range(0, pool.length):
        if pool[i] == active_weapon:
            idx = i
    next_idx = (idx + dir + pool.length) % pool.length
    active_weapon = pool[next_idx]
    wheel_ticks = wheel_open ? 60 : 45
    sound.play "nc_select_move"
    call sync_weapon_model
    call refresh_ui
    notice_text = "EQUIPPED: " + weapon_label
    notice_ticks = 60
    ui.notice = notice_text

action equip_weapon(w_name):
    if w_name == "buster" || campaign.weapons[w_name] == true:
        active_weapon = w_name
        wheel_ticks = wheel_open ? 60 : 45
        sound.play "nc_select_move"
        call sync_weapon_model
        call refresh_ui
        notice_text = "EQUIPPED: " + weapon_label
        notice_ticks = 60
        ui.notice = notice_text

action equip_1:
    call equip_weapon "buster"
action equip_2:
    call equip_weapon "volt"
action equip_3:
    call equip_weapon "cryo"
action equip_4:
    call equip_weapon "mag"
action equip_5:
    call equip_weapon "nova"
action equip_6:
    call equip_weapon "phase"
action equip_7:
    call equip_weapon "saw"

action fire_weapon(aim_up):
    stop when cooldown > 0
    w = active_weapon
    dmg = 1
    spd = 0.72
    life = 34
    model = "nc/shot_buster"
    pierce = false
    sfx = "nc_buster"
    cost = 0
    cd = 6
    match w:
        "volt":
            dmg = 2
            spd = 0.88
            life = 32
            model = "nc/shot_volt"
            sfx = "nc_volt"
            cost = 1
            cd = 8
        "cryo":
            dmg = 2
            spd = 0.68
            life = 40
            model = "nc/shot_cryo"
            sfx = "nc_cryo"
            cost = 1
            cd = 10
        "mag":
            dmg = 3
            spd = 0.56
            life = 34
            model = "nc/shot_mag"
            sfx = "nc_mag"
            cost = 1
            cd = 12
            cam_shake = 3
        "nova":
            dmg = 4
            spd = 0.52
            life = 30
            model = "nc/shot_nova"
            sfx = "nc_nova"
            cost = 2
            cd = 14
            cam_shake = 5
        "phase":
            dmg = 2
            spd = 0.85
            life = 42
            model = "nc/shot_phase"
            pierce = true
            sfx = "nc_phase"
            cost = 1
            cd = 9
        "saw":
            dmg = 3
            spd = 0.64
            life = 44
            model = "nc/shot_saw"
            sfx = "nc_saw"
            cost = 1
            cd = 10

    if cost > 0 && weapon_energy < cost:
        w = "buster"
        dmg = 1
        spd = 0.72
        life = 34
        model = "nc/shot_buster"
        pierce = false
        sfx = "nc_buster"
        cost = 0
        cd = 6
    else:
        weapon_energy = max(0, weapon_energy - cost)

    cooldown = cd
    if escape_active || master_active:
        local heading = master_active ? master_angle : escape_angle
        dx = cos(heading)
        dy = sin(heading)
        shots.push({
            "x": player.x + dx * 0.55,
            "y": player.y + dy * 0.55,
            "z": player.z + (master_active && master_mini ? 0.57 : 0.8),
            "vx": dx * spd,
            "vy": dy * spd,
            "kind": w,
            "dmg": dmg,
            "life": life,
            "pierce": pierce,
            "model": model,
            "angle": heading
        })
        sound.play sfx
        if escape_active && current_stage == 8:
            call alert_ghost_listener
        stop when true
    vx = aim_up ? 0 : facing * spd
    vz = aim_up ? spd : 0
    shots.push({
        "x": player.x + facing * 0.50,
        "y": 7,
        "z": player.z + (ducking ? 0.55 : 0.9),
        "vx": vx,
        "vz": vz,
        "kind": w,
        "dmg": dmg,
        "life": life,
        "pierce": pierce,
        "model": model,
        "angle": facing > 0 ? 0 : 180
    })
    sound.play sfx

action open_barrier_column(bx, bkind):
    opened = 0
    for b in barriers:
        if !b.open && b.kind == bkind && abs(b.x - bx) <= 2:
            b.open = true
            world = voxel_fill(world, [b.x, b.y_start, b.z], [1, b.y_span, 1], 0)
            opened = opened + 1
    if opened > 0:
        sound.play "nc_barrier_open"
        call burst bx + 0.5, player.z + 1.0, 12
        if bkind == "volt":
            notice_text = "VOLT RELAY CHARGED! GATE OPENED"
        if bkind == "blast":
            notice_text = "BLAST WALL SHATTERED!"
        if bkind == "phase":
            notice_text = "HOLO-SHIELD DEACTIVATED!"
        if bkind == "saw":
            notice_text = "CABLE BARRIER SLICED!"
        notice_ticks = 90

action freeze_thermal_around(hx):
    frozen_any = 0
    for h in hazards:
        if !h.frozen && h.kind == "thermal" && abs(h.x - hx) <= 6:
            h.frozen = true
            world = voxel_fill(world, [h.x, 5, h.z], [1, 4, 1], 5)
            frozen_any = frozen_any + 1
    if frozen_any > 0:
        sound.play "nc_freeze"
        call burst hx + 0.5, 1.5, 8
        notice_text = "THERMAL VENTS FROZEN INTO CRYO BRIDGE!"
        notice_ticks = 90

action step_shots:
    next_shots = []
    for s in shots:
        s.x = s.x + s.vx
        s.z = s.z + s.vz
        s.life = s.life - 1
        if s.kind == "saw":
            s.angle = (s.angle + 36) % 360
        alive = s.life > 0 && s.x > 0 && s.x < level_width - 1 && s.z > 0 && s.z < level_height + 2
        if alive:
            gx = floor(s.x)
            gz = floor(s.z)
            if s.kind == "cryo":
                for h in hazards:
                    if alive && !h.frozen && h.kind == "thermal" && abs(h.x - gx) <= 1 && abs(h.z - gz) <= 2:
                        call freeze_thermal_around h.x
                        alive = false
            if alive:
                for b in barriers:
                    if alive && !b.open && abs(b.x - gx) <= 1 && abs(b.z - gz) <= 1:
                        matched = (b.kind == "volt" && s.kind == "volt") || (b.kind == "blast" && s.kind == "nova") || (b.kind == "phase" && s.kind == "phase") || (b.kind == "saw" && s.kind == "saw")
                        if matched:
                            call open_barrier_column b.x, b.kind
                            alive = false
                        else:
                            if !s.pierce:
                                alive = false
                                if notice_ticks <= 0:
                                    if b.kind == "volt":
                                        notice_text = "LOCKED: NEEDS VOLT SURGE TO CHARGE RELAY"
                                    if b.kind == "blast":
                                        notice_text = "LOCKED: NEEDS NOVA BREAKER TO SHATTER WALL"
                                    if b.kind == "phase":
                                        notice_text = "LOCKED: NEEDS PHASE BEAM TO PIERCE SHIELD"
                                    if b.kind == "saw":
                                        notice_text = "LOCKED: NEEDS HYPER SAW TO CUT CABLES"
                                    notice_ticks = 75
            if alive && !s.pierce:
                cell = voxel_get(world, gx, 7, gz)
                if cell != 0:
                    alive = false
                    if s.kind == "nova":
                        cam_shake = 4
                        call burst s.x, s.z, 10
                    else:
                        call burst s.x, s.z, 4
            if alive:
                for e in enemies:
                    if alive && e.alive && abs(e.x - s.x) < 1.1 && abs((e.z + 0.8) - s.z) < 1.1:
                        e.hp = e.hp - s.dmg
                        e.hurt_ticks = 4
                        sound.play "nc_hit"
                        if e.kind != "turret":
                            e.x = e.x + (s.vx > 0 ? 0.22 : -0.22)
                        if e.hp <= 0:
                            e.alive = false
                            e.visible = false
                            sound.play "nc_explode"
                            call burst e.x, e.z + 0.8, 14
                            pk_kind = (health <= 4 && (ticks % 2 == 0)) ? "health" : "energy"
                            pk_mod = pk_kind == "health" ? "nc/pickup_health" : "nc/pickup_energy"
                            pickups.push({"x": e.x, "y": 7, "z": e.z + 0.35, "base": e.z + 0.35, "kind": pk_kind, "model": pk_mod, "visible": true})
                        else:
                            call burst e.x, e.z + 0.8, 5
                        if !s.pierce:
                            alive = false
            if alive && boss_entity.alive && boss_entity.visible:
                if abs(boss_entity.x - s.x) < 1.4 && abs((boss_entity.z + 1.2) - s.z) < 1.6:
                    st = stages[current_stage]
                    dmg = s.dmg
                    if s.kind == st.weakness:
                        dmg = dmg * 2
                    boss_entity.hp = max(0, boss_entity.hp - dmg)
                    boss_hurt_ticks = 7
                    sound.play "nc_hit"
                    call burst boss_entity.x, boss_entity.z + 1.2, 6
                    if !s.pierce:
                        alive = false
                    if boss_entity.hp <= 0:
                        call on_boss_defeated
        if alive:
            next_shots.push(s)
    shots = next_shots

action step_enemies:
    for e in enemies:
        if e.alive:
            dist = abs(e.x - player.x)
            if dist > 26:
                continue
            if e.base_model == null:
                e.base_model = e.model
            if e.fire_ticks == null:
                e.fire_ticks = 0
            if e.hurt_ticks == null:
                e.hurt_ticks = 0

            # Hurt flash dissolve
            if e.hurt_ticks > 0:
                e.hurt_ticks = e.hurt_ticks - 1
                e.dissolve = e.hurt_ticks % 2 == 1 ? 0.35 : 0
            else:
                e.dissolve = 0

            # Fire cooldown countdown: keep primed at telegraph start when out of range
            if dist >= 16 && e.cd <= 20:
                e.cd = 20
            else:
                e.cd = e.cd - 1

            aim = player.x < e.x ? -1 : 1

            # Telegraph charge threshold (20 ticks before firing when player is in range)
            is_charging = dist < 16 && e.cd <= 20 && e.cd > 0
            is_firing = e.fire_ticks > 0

            # Enemy patrol movement (halts or slows down to brace during telegraph)
            if e.kind == "drone":
                drone_spd = is_charging ? 0.02 : 0.08
                e.x = e.x + e.dir * drone_spd
                if abs(e.x - e.home_x) > 4.5:
                    e.dir = -e.dir
                e.z = e.home_z + sin(ticks * 0.1 + e.home_x) * 0.4
            if e.kind == "walker":
                walker_spd = is_charging ? 0 : 0.06
                e.x = e.x + e.dir * walker_spd
                if abs(e.x - e.home_x) > 3.5:
                    e.dir = -e.dir

            # Facing angle: while charging/firing face player, otherwise face patrol direction (turrets always face player)
            if is_charging || is_firing || e.kind == "turret":
                e.angle = aim > 0 ? 0 : 180
            else:
                e.angle = e.dir > 0 ? 0 : 180

            # Warning audio telegraph cue at the start of charging
            if e.cd == 20 && dist < 16:
                sound.play "nc_enemy_charge"

            # Warning visual particle telegraph during charging
            if is_charging && e.cd % 4 == 0:
                effects.push({
                    "x": e.x + aim * 0.45,
                    "y": 7.1,
                    "z": e.z + 0.8,
                    "dx": -aim * 0.02,
                    "dz": 0.01,
                    "ttl": 7,
                    "life": 7,
                    "angle": ticks * 45,
                    "spin": 15,
                    "scale": 0.55,
                    "dissolve": 0,
                    "model": "nc/spark",
                    "kind": "sparkle",
                    "visible": true
                })

            # Fire projectile & trigger firing animation
            if e.cd <= 0 && dist < 16:
                e.cd = e.kind == "turret" ? 55 : 70
                e.fire_ticks = 10
                sound.play "nc_enemy_fire"
                enemy_shots.push({
                    "x": e.x + aim * 0.55,
                    "y": 7,
                    "z": e.z + 0.8,
                    "vx": aim * 0.34,
                    "vz": 0,
                    "life": 65,
                    "model": "nc/enemy_shot"
                })
                effects.push({
                    "x": e.x + aim * 0.55,
                    "y": 7.15,
                    "z": e.z + 0.8,
                    "dx": aim * 0.04,
                    "dz": 0,
                    "ttl": 6,
                    "life": 6,
                    "angle": aim > 0 ? 0 : 180,
                    "spin": 0,
                    "scale": 0.5,
                    "dissolve": 0,
                    "model": "nc/blast",
                    "kind": "blast",
                    "visible": true
                })

            # Animation model selection & recoil scaling
            mode = e.fire_ticks > 0 ? "fire" : (is_charging ? "charge" : "idle")
            match mode:
                "fire":
                    e.fire_ticks = e.fire_ticks - 1
                    e.scale = e.fire_ticks >= 6 ? 1.08 : 1.0
                    match e.kind:
                        "drone":
                            e.model = "nc/enemy_drone_fire"
                        "turret":
                            e.model = "nc/enemy_turret_fire"
                        "walker":
                            e.model = "nc/enemy_walker_fire"
                "charge":
                    e.scale = 1.0 + (e.cd % 4 < 2 ? 0.08 : 0.0)
                    match e.kind:
                        "drone":
                            e.model = "nc/enemy_drone_charge"
                        "turret":
                            e.model = "nc/enemy_turret_charge"
                        "walker":
                            e.model = "nc/enemy_walker_charge"
                "idle":
                    e.scale = 1.0
                    e.model = e.base_model

            if abs(e.x - player.x) < 0.9 && abs(e.z - player.z) < 1.2:
                call hurt_player 1

action prime_enemy_for_test(idx, dist_x, cd_ticks):
    if idx < enemies.length:
        e = enemies[idx]
        player.x = e.x - dist_x
        player.z = e.z
        e.cd = cd_ticks

action animate_boss_satellites(mode, aim, rage):
    stop when boss_satellites.length < 3 || !boss_entity.alive
    bx = boss_entity.x
    bz = boss_entity.z
    pod_l = boss_satellites[0]
    pod_r = boss_satellites[1]
    halo = boss_satellites[2]
    pod_l.visible = true
    pod_r.visible = true
    halo.visible = true
    pod_l.dissolve = boss_entity.dissolve
    pod_r.dissolve = boss_entity.dissolve
    halo.dissolve = boss_entity.dissolve

    if mode == "idle":
        pod_l.x = bx - 1.15
        pod_l.z = bz + 1.1 + sin(ticks * 0.14) * 0.22
        pod_l.angle = 215 + sin(ticks * 0.1) * 14
        pod_l.scale = 0.88
        pod_r.x = bx + 1.15
        pod_r.z = bz + 1.1 + cos(ticks * 0.14) * 0.22
        pod_r.angle = 145 - sin(ticks * 0.1) * 14
        pod_r.scale = 0.88
        halo.x = bx
        halo.z = bz + 1.05 + sin(ticks * 0.12) * 0.14
        halo.angle = (ticks * 5) % 360
        halo.scale = 0.82
        stop when true

    if mode == "telegraph":
        orbit = boss_clock * 24
        pod_l.x = bx + cos(orbit) * 0.95
        pod_l.z = bz + 1.25 + sin(orbit) * 0.55
        pod_l.angle = (orbit * 2) % 360
        pod_l.scale = 1.02
        pod_r.x = bx - cos(orbit) * 0.95
        pod_r.z = bz + 1.25 - sin(orbit) * 0.55
        pod_r.angle = (360 - (orbit * 2) % 360)
        pod_r.scale = 1.02
        halo.x = bx
        halo.z = bz + 1.15
        halo.angle = (boss_clock * 28) % 360
        halo.scale = 0.88 + sin(boss_clock * 0.9) * 0.22
        stop when true

    if mode == "special":
        spin = boss_clock * 22
        pod_l.x = bx + cos(spin) * 1.45
        pod_l.z = bz + 1.2 + sin(spin) * 0.7
        pod_l.angle = spin % 360
        pod_l.scale = 0.98
        pod_r.x = bx - cos(spin) * 1.45
        pod_r.z = bz + 1.2 - sin(spin) * 0.7
        pod_r.angle = (spin + 180) % 360
        pod_r.scale = 0.98
        halo.x = bx
        halo.z = bz + 1.0
        halo.angle = (boss_clock * 32) % 360
        halo.scale = 1.12
        stop when true

    # Active patrol / attack gait
    stride = sin(boss_clock * 0.34)
    pod_l.x = bx + aim * 0.35 - 1.1
    pod_l.z = bz + 1.15 + stride * 0.32
    pod_l.angle = (aim > 0 ? 145 : 215) + stride * 20
    pod_l.scale = 0.92
    pod_r.x = bx + aim * 0.35 + 1.1
    pod_r.z = bz + 1.15 - stride * 0.32
    pod_r.angle = (aim > 0 ? 145 : 215) - stride * 20
    pod_r.scale = 0.92
    halo.x = bx
    halo.z = bz + 1.1 + sin(boss_clock * 0.2) * 0.16
    halo.angle = (boss_clock * 11 * rage) % 360
    halo.scale = rage > 1 ? 1.05 : 0.9

action fire_boss_pattern(aim, rage, st, is_special):
    sound.play "nc_hit"
    enemy_shots.push({
        "x": boss_entity.x + aim * 0.9,
        "y": 7,
        "z": boss_entity.z + 1.1,
        "vx": aim * 0.44 * rage,
        "vz": 0,
        "life": 80,
        "model": "nc/enemy_shot"
    })
    if st.tier == 2 || rage > 1 || is_special:
        enemy_shots.push({
            "x": boss_entity.x + aim * 0.9,
            "y": 7,
            "z": boss_entity.z + 1.4,
            "vx": aim * 0.36 * rage,
            "vz": 0.14,
            "life": 80,
            "model": "nc/enemy_shot"
        })
        enemy_shots.push({
            "x": boss_entity.x + aim * 0.9,
            "y": 7,
            "z": boss_entity.z + 0.8,
            "vx": aim * 0.36 * rage,
            "vz": -0.1,
            "life": 80,
            "model": "nc/enemy_shot"
        })

# Bosses occupy the same side plane as Axel. Their core has a 1.44 by 1.8
# tile footprint, with wings and satellites clear of the collision body.
action move_boss_x(dx):
    stop when dx == 0
    local radius = 0.72
    local left_limit = max(radius, boss_entity.home_x - 13)
    local right_limit = min(level_width - radius, boss_entity.home_x + 4)
    local move = {"target": clamp(boss_entity.x + dx, left_limit, right_limit)}
    local edge_offset = dx > 0 ? radius - 0.001 : 0.001 - radius
    local col = floor(move.target + edge_offset)
    if col != floor(boss_entity.x + edge_offset):
        local bottom = floor(boss_entity.z + 0.001)
        local top = floor(boss_entity.z + 1.799)
        for row in range(bottom, top + 1):
            if voxel_get(world, col, 7, row) != 0:
                move.target = dx > 0 ? col - radius : col + 1 + radius
                stop when true
    if move.target != boss_entity.x + dx:
        boss_entity.dir = dx > 0 ? -1 : 1
    boss_entity.x = move.target

action move_boss_z(dz):
    stop when dz == 0
    local height = 1.8
    local target = clamp(boss_entity.z + dz, 1, world.depth - height)
    local row = dz < 0 ? floor(target - 0.001) : floor(target + height - 0.001)
    local left = floor(boss_entity.x - 0.719)
    local right = floor(boss_entity.x + 0.719)
    boss_grounded = false
    boss_entity.z = target
    for col in range(left, right + 1):
        if voxel_get(world, col, 7, row) != 0:
            boss_entity.z = dz < 0 ? row + 1 : row - height
            boss_entity.vz = 0
            boss_grounded = dz < 0
            stop when true

action step_boss:
    stop when !boss_entity.alive || !boss_entity.visible
    aim = player.x < boss_entity.x ? -1 : 1
    face_angle = aim > 0 ? 145 : 215

    if boss_hurt_ticks > 0:
        boss_hurt_ticks = boss_hurt_ticks - 1
        boss_entity.dissolve = boss_hurt_ticks % 2 == 0 ? 0.42 : 0.14
    else:
        boss_entity.dissolve = 0

    engage_x = boss_gate_x >= 0 ? boss_gate_x + 1.55 : boss_entity.home_x - 16
    if !boss_active && player.x >= engage_x:
        boss_active = true
        boss_state = "patrol"
        boss_state_ticks = 0
        cam_shake = 10
        if boss_gate_x >= 0 && !boss_door_locked:
            call lock_boss_door
        sound.play "nc_boss_warn"
        st = stages[current_stage]
        notice_text = "WARNING: " + st.name + " ENGAGED!"
        notice_ticks = 95
        call play_stage_music (st.tier == 2 ? "nc_master_boss" : "nc_boss")

    if !boss_active:
        boss_entity.angle = 212 + sin(ticks * 0.08) * 18
        boss_entity.scale = 1.0 + sin(ticks * 0.14) * 0.045
        call animate_boss_satellites "idle", -1, 1.0
        stop when true

    boss_clock = boss_clock + 1
    boss_state_ticks = boss_state_ticks + 1
    st = stages[current_stage]
    rage = boss_entity.hp <= boss_entity.max_hp / 2 ? 1.35 : 1.0
    is_hover = st.code == "02" || st.code == "05" || st.code == "07" || st.code == "09" || st.code == "11"
    is_dash = st.code == "01" || st.code == "05" || st.code == "06" || st.code == "09" || st.code == "12"

    # State transitions: patrol -> telegraph -> special -> patrol
    if boss_state == "idle":
        boss_state = "patrol"
        boss_state_ticks = 0

    if boss_state == "patrol" && boss_state_ticks >= (rage > 1 ? 42 : 58):
        boss_state = "telegraph"
        boss_state_ticks = 0
        boss_entity.dir = aim
        sound.play "nc_dash"

    if boss_state == "telegraph" && boss_state_ticks >= 18:
        boss_state = "special"
        boss_state_ticks = 0
        boss_entity.dir = aim
        if !is_dash:
            boss_entity.vz = 0.54
        call fire_boss_pattern aim, rage, st, true
        call burst boss_entity.x, boss_entity.z + 1.0, 6

    if boss_state == "special" && boss_state_ticks >= 28:
        boss_state = "patrol"
        boss_state_ticks = 0

    # Movement, vertical physics, & expressive body animation per state
    local dx = 0
    target_scale = 1.0
    if boss_state == "patrol":
        dx = boss_entity.dir * 0.12 * rage
        boss_entity.angle = face_angle + sin(boss_clock * 0.28) * 16
        target_scale = 1.0 + abs(sin(boss_clock * 0.34)) * 0.055
        boss_entity.cd = boss_entity.cd - 1
        if boss_entity.cd <= 0:
            boss_entity.cd = rage > 1 ? 28 : 40
            target_scale = 1.08
            call fire_boss_pattern aim, rage, st, false

    if boss_state == "telegraph":
        boss_entity.angle = face_angle + sin(boss_clock * 0.9) * 12
        target_scale = 0.88 + (boss_state_ticks / 18) * 0.22
        if boss_state_ticks % 6 == 0:
            call burst boss_entity.x, boss_entity.z + 1.1, 3

    if boss_state == "special":
        if is_dash:
            dx = boss_entity.dir * 0.28 * rage
            boss_entity.angle = (boss_clock * 28) % 360
            target_scale = 1.05
            if boss_state_ticks % 7 == 0:
                call burst boss_entity.x - boss_entity.dir * 0.4, boss_entity.z + 0.9, 2
        else:
            dx = boss_entity.dir * 0.18 * rage
            boss_entity.angle = (face_angle + sin(boss_clock * 0.45) * 26) % 360
            target_scale = 1.06

    call move_boss_x dx
    local was_air = !boss_grounded
    if is_hover:
        local hover_z = boss_entity.home_z + 0.65 + sin(boss_clock * 0.16) * 0.45
        boss_entity.vz = 0
        call move_boss_z (hover_z - boss_entity.z) * 0.2
    else:
        if boss_state == "patrol" && boss_clock % 85 == 0 && boss_grounded:
            boss_entity.vz = 0.42
        boss_entity.vz = max(-0.44, boss_entity.vz - 0.032)
        call move_boss_z boss_entity.vz
    if was_air && boss_grounded:
        boss_land_ticks = 8
        cam_shake = 6
        call burst boss_entity.x, boss_entity.z + 0.2, 8

    if boss_land_ticks > 0:
        boss_land_ticks = boss_land_ticks - 1
        target_scale = 0.86 + (8 - boss_land_ticks) * 0.017
    if boss_hurt_ticks > 0:
        target_scale = 0.91
    boss_entity.scale = target_scale

    call animate_boss_satellites boss_state, aim, rage

    if abs(boss_entity.x - player.x) < 1.2 && abs(boss_entity.z - player.z) < 1.6:
        call hurt_player 2

action step_enemy_shots:
    next_es = []
    for s in enemy_shots:
        local old_x = s.x
        local old_z = s.z
        s.x = s.x + s.vx
        s.z = s.z + s.vz
        s.life = s.life - 1
        alive = s.life > 0 && s.x > 0 && s.x < level_width - 1 && s.z > 0 && s.z < level_height + 2
        if alive:
            call stop_shot_at_cover s, old_x, old_z, s.z, false
            alive = s.life > 0
        if alive:
            if abs(s.x - player.x) < 0.75 && abs(s.z - (player.z + 0.8)) < 0.95:
                call hurt_player 1
                alive = false
        if alive:
            next_es.push(s)
    enemy_shots = next_es

action stop_shot_at_cover(shot, from_x, from_row, to_row, overhead):
    local start_x = floor(from_x)
    local start_row = floor(from_row)
    local end_x = floor(shot.x)
    local end_row = floor(to_row)
    local start_y = overhead ? start_row : 7
    local start_z = overhead ? floor(shot.z) : start_row
    local end_y = overhead ? end_row : 7
    local end_z = overhead ? start_z : end_row
    if voxel_get(world, start_x, start_y, start_z) != 0 || voxel_get(world, end_x, end_y, end_z) != 0:
        shot.life = 0
        stop when true
    # A shot travels less than one tile per axis per tick. When it crosses
    # both grid lines, check the tile between the first and second crossing.
    if start_x != end_x && start_row != end_row:
        local x_line = max(start_x, end_x)
        local row_line = max(start_row, end_row)
        local x_time = (x_line - from_x) / (shot.x - from_x)
        local row_time = (row_line - from_row) / (to_row - from_row)
        local middle_x = x_time < row_time ? end_x : start_x
        local middle_row = x_time < row_time ? start_row : end_row
        local middle_y = overhead ? middle_row : 7
        local middle_z = overhead ? start_z : middle_row
        if x_time != row_time && voxel_get(world, middle_x, middle_y, middle_z) != 0:
            shot.life = 0

action on_boss_defeated:
    boss_entity.alive = false
    boss_defeated_now = true
    boss_defeat_ticks = 0
    victory_ticks = 0
    cam_shake = 12
    shots = []
    enemy_shots = []
    if player.x < boss_entity.x - 12:
        player.x = boss_entity.x - 4.0
        player.z = boss_entity.z
    avatar.visible = true
    avatar.dissolve = 0
    st = stages[current_stage]
    call play_stage_music "nc_boss_victory"
    sound.play "nc_explode"
    call burst boss_entity.x, boss_entity.z + 1.2, 16
    call unlock_boss_door
    boss_shutter_fx.visible = false
    call start_glass_lift
    sound.play "nc_glass_raise"
    call start_overload_light
    status = "boss_dying"
    notice_text = st.name + " CRITICAL OVERLOAD!"
    notice_ticks = 90
    call refresh_ui

action tick_boss_dying:
    boss_defeat_ticks = boss_defeat_ticks + 1
    call update_overload_light
    boss_entity.dissolve = clamp(boss_defeat_ticks / 72, 0, 0.98)
    boss_entity.angle = (boss_entity.angle + 18) % 360
    boss_entity.scale = max(0.75, 1.05 - boss_defeat_ticks * 0.004)
    call raise_glass_screen boss_defeat_ticks / 75
    call capture_escape_terrain floor(level_width * min(1, boss_defeat_ticks / 60))
    for sat in boss_satellites:
        sat.angle = (sat.angle + 28) % 360
        sat.z = sat.z + 0.025
        sat.dissolve = clamp(boss_defeat_ticks / 48, 0, 0.98)
        sat.visible = boss_defeat_ticks < 60
    cam_tx = max(9.5, min(level_width - 10.5, boss_entity.x))
    cam_tz = max(4.2, min(level_height - 2.5, boss_entity.z + 2.4))
    camera = {
        "x": camera.x + (cam_tx - camera.x) * 0.25,
        "y": 19,
        "z": camera.z + (cam_tz - camera.z) * 0.25,
        "angle": 270,
        "pitch": 0
    }
    if boss_defeat_ticks % 12 == 0:
        sound.play "nc_explode"
        ox = ((boss_defeat_ticks * 7) % 5 - 2) * 0.45
        oz = ((boss_defeat_ticks * 3) % 4) * 0.45 + 0.6
        call burst boss_entity.x + ox, boss_entity.z + oz, 12
    call update_effects
    if boss_defeat_ticks >= 75:
        call burst boss_entity.x, boss_entity.z + 1.2, 22
        boss_entity.visible = false
        boss_entity.dissolve = 0
        for sat in boss_satellites:
            sat.visible = false
        sound.play "nc_explode"
        call start_escape_flip
        stop when true
    call refresh_ui

action collect_power_container:
    st = stages[current_stage]
    local new_master = st.tier == 2 && campaign.defeated[st.code] != true
    if escape_first_person:
        escape_first_person = false
        view_weapon = null
        camera.y = 5.7
        camera.z = escape_deck_z + 15
        camera.angle = 270
        camera.pitch = -85
    campaign.defeated[st.code] = true
    if st.unlocks != "":
        campaign.weapons[st.unlocks] = true
        active_weapon = st.unlocks
    call count_progress
    call count_master_keys
    master_just_unlocked = new_master && master_keys == 6 && campaign.super_code != true
    power_capsule.model = "nc/power_capsule_open"
    power_capsule.angle = 0
    sound.play "nc_weapon_get"
    call play_stage_music "nc_victory"
    status = "boss_victory"
    victory_ticks = 0
    victory_input_held = false
    shots = []
    enemy_shots = []
    avatar.x = player.x
    avatar.y = player.y
    avatar.z = player.z
    avatar.model = "nc/hero_victory"
    avatar.angle = 0
    avatar.visible = true
    victory_item.x = player.x
    victory_item.y = player.y
    victory_item.z = player.z + 2.3
    victory_item.visible = true
    call victory_sparkles
    call refresh_ui

action tick_boss_victory(input):
    victory_ticks = victory_ticks + 1
    victory_item.z = player.z + 2.3 + sin(victory_ticks * 6) * 0.12
    victory_item.angle = (victory_ticks * 5) % 360
    if victory_ticks == 20 || victory_ticks == 45:
        call victory_sparkles
    call update_effects
    pressed = (input.jump == true || input.fire == true) && !victory_input_held
    victory_input_held = input.jump == true || input.fire == true
    if victory_ticks >= 145 || (victory_ticks >= 35 && pressed):
        call finish_boss_victory
        stop when true
    call refresh_ui

action finish_boss_victory:
    victory_item.visible = false
    power_capsule.visible = false
    if master_just_unlocked:
        master_just_unlocked = false
        call visit_master_gate
        stop when true
    status = "stage_clear"
    call refresh_ui
controls.rune
@Controls/neon_circuit
keys:
    KeyA -> left
    ArrowLeft -> turn_left
    KeyD -> right
    ArrowRight -> turn_right
    Space -> jump
    KeyZ -> jump
    KeyX -> fire
    KeyJ -> fire
    KeyW -> aim_up
    ArrowUp -> aim_up
    KeyS -> duck
    ArrowDown -> duck
    ShiftLeft -> dash
    ShiftRight -> dash
    KeyK -> dash
    KeyQ -> prev_weapon
    KeyE -> next_weapon
    Tab -> weapon_wheel
commands:
    Enter -> advance
    KeyP -> host.pause
    KeyF -> host.fullscreen
    KeyM -> host.mute
    KeyT -> return_to_select
    KeyG -> visit_master_gate
    Digit1 -> equip_1
    Digit2 -> equip_2
    Digit3 -> equip_3
    Digit4 -> equip_4
    Digit5 -> equip_5
    Digit6 -> equip_6
    Digit7 -> equip_7
mouse:
    Left -> fire
gamepad:
    Axis0 -> {"input":"move_x","deadzone":0.18}
    Axis1 -> {"input":"duck_axis","deadzone":0.35}
    Axis2 -> {"input":"turn_axis","deadzone":0.2}
    Button0 -> jump
    Button2 -> fire
    Button3 -> weapon_wheel
    Button1 -> dash
    Button4 -> prev_weapon
    Button5 -> next_weapon
    Button8 -> {"command":"host.advance"}
    Button9 -> {"command":"host.pause"}
touch = {
    "buttons": [
        {
            "id": "left",
            "input": "left",
            "label": "LEFT",
            "aria_label": "Move left",
            "anchor": "bottom-left",
            "offset": [8,64],
            "size": 44,
            "visible": "touch_ready"
        },
        {
            "id": "right",
            "input": "right",
            "label": "RIGHT",
            "aria_label": "Move right",
            "anchor": "bottom-left",
            "offset": [104,64],
            "size": 44,
            "visible": "touch_ready"
        },
        {
            "id": "up",
            "input": "aim_up",
            "label": "UP",
            "aria_label": "Aim or climb up",
            "anchor": "bottom-left",
            "offset": [56,112],
            "size": 44,
            "visible": "touch_ready"
        },
        {
            "id": "down",
            "input": "duck",
            "label": "DOWN",
            "aria_label": "Duck or climb down",
            "anchor": "bottom-left",
            "offset": [56,16],
            "size": 44,
            "visible": "touch_ready"
        },
        {
            "id": "jump",
            "input": "jump",
            "label": "JUMP",
            "offset": [68,16],
            "size": 52,
            "visible": "touch_ready"
        },
        {
            "id": "fire",
            "input": "fire",
            "label": "FIRE",
            "offset": [8,16],
            "size": 52,
            "visible": "touch_ready"
        },
        {
            "id": "dash",
            "input": "dash",
            "label": "DASH",
            "offset": [8,76],
            "size": 44,
            "visible": "touch_dash_ready"
        },
        {
            "id": "next_weapon",
            "input": "next_weapon",
            "label": "WPN",
            "aria_label": "Next weapon",
            "anchor": "top-right",
            "offset": [64,12],
            "size": 44,
            "visible": "touch_ready"
        },
        {
            "id": "turn_left",
            "input": "turn_left",
            "label": "TURN L",
            "anchor": "top-left",
            "offset": [8,8],
            "size": 44,
            "visible": "touch_turn_ready"
        },
        {
            "id": "turn_right",
            "input": "turn_right",
            "label": "TURN R",
            "anchor": "top-left",
            "offset": [60,8],
            "size": 44,
            "visible": "touch_turn_ready"
        },
        {
            "anchor": "top-right",
            "aria_label": "Pause game",
            "command": "host.pause",
            "id": "pause",
            "label": "II",
            "offset": [12,12],
            "size": 44
        }
    ],
    "visible": "touch_ready"
}
escape.rune
# The return route turns the stage's X/Z playfield into an X/Y deck.
@Logic/neon_circuit

action start_glass_lift:
    escape_floor = []
    for col in range(0, floor((level_width + 7) / 8)):
        for row in range(0, floor((level_height + 3) / 4)):
            local x = 4 + col * 8
            local offset = 2 + row * 4
            escape_floor.push({
                "x": x, "y": 4.2, "z": offset - 19, "offset": offset,
                "model": "nc/glass_panel", "angle": 90, "pitch": -90
            })
    # Reinforce the entrance lane over the original pits as the deck turns.
    for col in range(0, level_width):
        if voxel_get(world, col, 7, 0) == 0 && voxel_get(world, col, 7, 1) == 0:
            escape_floor.push({
                "x": col + 0.5, "y": 4.2, "z": -16, "offset": 3,
                "model": "nc/glass_pit_cover", "angle": 90, "pitch": -90
            })
    escape_terrain = voxel_world(level_width, 5, level_height, world.materials)
    escape_prepared_columns = 0

action raise_glass_screen(progress):
    # Viewed from the side, the panes rise in front of the skyline and behind
    # the boss. They stay vertical until the camera starts its quarter turn.
    local t = clamp(progress, 0, 1)
    local height = -19 * (1 - t * t * (3 - 2 * t))
    for panel in escape_floor:
        panel.z = height + panel.offset

action turn_glass_deck(progress):
    local t = clamp(progress / 0.88, 0, 1)
    local eased = t * t * (3 - 2 * t)
    local tilt = -90 * (1 - eased)
    local pivot_y = 4.2 * (1 - eased)
    local pivot_z = (escape_deck_z - 0.25) * eased
    for panel in escape_floor:
        panel.pitch = tilt
        panel.y = pivot_y + panel.offset * cos(tilt)
        panel.z = pivot_z - panel.offset * sin(tilt)

action capture_escape_terrain(to_x):
    # SideMap solids span world Y 5..8. Wall material also occupies Y 4.
    # Copy the textured terrain while the boss is still on screen.
    for col in range(escape_prepared_columns, to_x):
        for row in range(0, level_height):
            local material = voxel_get(world, col, 7, row)
            local capsule_bay = row >= 3 && row <= 4 && abs(col + 0.5 - power_capsule.x) <= 2
            if row != 2 && !capsule_bay && material > 0:
                local edge = voxel_get(world, col, 8, row)
                local back = edge == 3 ? 0 : 1
                escape_terrain = voxel_fill(escape_terrain, [col, back, row], [1, 5 - back, 1], edge)
                if material != edge:
                    escape_terrain = voxel_fill(escape_terrain, [col, 2, row], [1, 2, 1], material)
    escape_prepared_columns = to_x

action start_escape_flip:
    status = "escape_flip"
    escape_flip_ticks = 0
    shots = []
    enemy_shots = []
    lamps = []
    world = voxel_fill(world, [0, 4, 0], [level_width, 5, level_height], 0)
    camera.terrainPose = {
        "world": escape_terrain, "pivot": [5, 0], "position": [9, 0], "angle": 0
    }
    local backdrop = []
    for sc in scenery:
        if sc.y < 4:
            backdrop.push(sc)
        if sc.y >= 4:
            sc.visible = false
    camera.backdrop = {"x": camera.x, "y": camera.y, "z": camera.z, "things": backdrop}
    for group in [checkpoints, pickups, barriers_fx, hazards_fx]:
        for item in group:
            item.visible = false
    weapon_model.visible = false
    avatar.model = "nc/hero_jump"
    avatar.angle = 180
    avatar.pitch = 0
    escape_prepared_columns = 0
    escape_entry_x = clamp(player.x, 2.5, level_width - 2.5)
    escape_flip_camera = {"x": camera.x, "y": camera.y, "z": camera.z, "pitch": camera.pitch}
    escape_flip_player = {"x": player.x, "y": player.y, "z": player.z}
    escape_flip_enemies = []
    for e in enemies:
        escape_flip_enemies.push({"x": e.x, "y": e.y, "z": e.z, "was_alive": e.alive})
        e.visible = true
        e.dissolve = e.alive ? 0 : 1
        e.model = e.base_model
        e.fire_ticks = 0
        e.scale = 1
    sound.play "nc_dash"
    call refresh_ui

action tick_escape_flip:
    escape_flip_ticks = escape_flip_ticks + 1
    local elapsed = min(1, escape_flip_ticks / 45)
    local eased = elapsed * elapsed * (3 - 2 * elapsed)
    call shift_overload_light eased
    call turn_glass_deck elapsed
    camera.terrainPose.angle = -90 * eased
    camera.terrainPose.position = [9 * (1 - eased), escape_deck_z * eased]
    call bake_escape_collision floor(level_width * elapsed)

    camera.x = escape_flip_camera.x + (escape_entry_x - escape_flip_camera.x) * eased
    camera.y = escape_flip_camera.y + (5.7 - escape_flip_camera.y) * eased
    camera.z = escape_flip_camera.z + (escape_deck_z + 15 - escape_flip_camera.z) * eased
    camera.pitch = escape_flip_camera.pitch + (-85 - escape_flip_camera.pitch) * eased
    player.x = escape_flip_player.x + (escape_entry_x - escape_flip_player.x) * eased - sin(elapsed * 180)
    player.y = escape_flip_player.y + (2.5 - escape_flip_player.y) * eased
    player.z = escape_flip_player.z + (escape_deck_z - escape_flip_player.z) * eased + sin(elapsed * 180) * 4.5
    avatar.pitch = 360 * eased
    # Animate about the torso so Axel tucks rather than spins around his feet.
    avatar.x = player.x + sin(avatar.pitch) * 0.8
    avatar.y = player.y
    avatar.z = player.z + (1 - cos(avatar.pitch)) * 0.8
    for i in range(0, enemies.length):
        local e = enemies[i]
        local pose = escape_flip_enemies[i]
        local deck_y = clamp(e.home_z + 0.5, 2.5, level_height - 2.5)
        e.x = pose.x + (e.home_x - pose.x) * eased
        e.y = pose.y + (deck_y - pose.y) * eased
        e.z = pose.z + (escape_deck_z - pose.z) * eased
        e.dissolve = pose.was_alive ? 0 : 1 - eased

    call update_effects
    if escape_flip_ticks == 22:
        sound.play "nc_barrier_open"
    if escape_flip_ticks == 36:
        sound.play "nc_escape_fall"
    if escape_flip_ticks >= 45:
        sound.play "nc_escape_land"
        call finish_escape_flip
    call refresh_ui

action bake_escape_collision(to_x):
    # The final quarter turn sends local (Y,Z) to world (Z, deck + 5 - Y).
    # Only collision uses these cells. The visible terrain keeps its pose.
    for col in range(escape_prepared_columns, to_x):
        for row in range(0, level_height):
            local edge = voxel_get(escape_terrain, col, 4, row)
            if edge > 0:
                local height = edge == 3 ? 5 : 4
                world = voxel_fill(world, [col, row, escape_deck_z], [1, 1, height], edge)
                local center = voxel_get(escape_terrain, col, 3, row)
                if center != edge:
                    world = voxel_fill(world, [col, row, escape_deck_z + 1], [1, 1, 2], center)
    escape_prepared_columns = to_x

action reset_escape_enemies:
    for e in enemies:
        e.x = e.home_x
        e.y = clamp(e.home_z + 0.5, 2.5, level_height - 2.5)
        e.z = escape_deck_z
        e.hp = e.max_hp
        e.alive = true
        e.visible = true
        e.model = e.base_model
        e.scale = 1
        e.dissolve = 0
        e.fire_ticks = 0
        e.cd = 24 + floor(e.x) % 23
    call setup_volt_return
    call setup_sector_return

action finish_escape_flip:
    call reset_escape_enemies
    escape_flip_enemies = []
    escape_active = true
    status = "playing"
    escape_ticks = 0
    escape_failure = ""
    escape_angle = 180
    power_capsule.y = 3.35
    power_capsule.z = escape_deck_z
    power_capsule.visible = true
    victory_item.visible = false
    call reset_escape_player
    call set_deck_lights
    call update_deck_lights
    call start_escape_audio 0.45
    if stages[current_stage].tier == 2:
        status = "escape_zoom"
        escape_zoom_ticks = 0
        escape_zoom_fade = 0
    notice_text = "RETURN TO THE ENTRANCE AND SECURE THE CORE"
    notice_ticks = 90

action tick_escape_zoom:
    escape_zoom_ticks = escape_zoom_ticks + 1
    local t = min(1, escape_zoom_ticks / 20)
    local eased = t * t * (3 - 2 * t)
    if escape_zoom_ticks < 20:
        camera.x = player.x + 2.2 * eased
        camera.y = 5.7 + (player.y - 5.7) * eased
        camera.z = escape_deck_z + 15 - 14 * eased
        camera.angle = 270 - 90 * eased
        camera.pitch = -85 + 60 * eased
        escape_zoom_fade = clamp((escape_zoom_ticks - 12) / 8, 0, 1)
    if escape_zoom_ticks == 20:
        escape_first_person = true
        avatar.visible = false
        view_weapon = {"sprite": "nc/return_buster", "x": 58, "y": 0, "bob": 0}
        camera.x = player.x
        call set_escape_eye 0
    if escape_zoom_ticks >= 20:
        escape_zoom_fade = max(0, 1 - (escape_zoom_ticks - 20) / 9)
    if escape_zoom_ticks >= 29:
        status = "playing"
    call refresh_ui

action set_escape_eye(bob):
    camera.x = player.x
    camera.y = player.y
    camera.z = player.z + 0.30 + bob
    camera.angle = escape_angle
    camera.pitch = -6

action start_escape_audio(fade):
    escape_music_tempo = 132
    escape_next_alarm = 24
    if fade > 0:
        music_track = "nc_escape"
        music.play("nc_escape", 0, fade)
    else:
        call play_stage_music "nc_escape"

action update_escape_audio:
    local remaining = escape_time_limit - escape_ticks
    local urgent = remaining <= 300
    local tempo = 132 + floor(escape_ticks * 42 / (escape_time_limit - 300))
    if urgent:
        # Start the warning immediately as the final ten seconds begin.
        if escape_music_tempo < 174:
            escape_next_alarm = escape_ticks
        tempo = 174 + floor((300 - remaining) / 15)
    if tempo != escape_music_tempo:
        escape_music_tempo = tempo
        music.tempo = tempo

    if escape_ticks >= escape_next_alarm:
        local pulse = urgent ? "nc_escape_alarm_urgent" : "nc_escape_alarm"
        local interval = urgent ? (remaining <= 90 ? 15 : 25) : 90
        sound.play pulse
        escape_next_alarm = escape_ticks + interval

action reset_escape_player:
    player.x = escape_entry_x
    player.y = 2.5
    player.z = escape_deck_z
    player.vz = 0
    jumps = 0
    jump_held = false
    volt_dash_ticks = 0
    volt_dash_used = false
    volt_dash_ready = false
    if current_stage == 0 && volt_launch_pad:
        volt_launch_pad.dissolve = 0
    wheel_open = false
    wheel_ticks = 0
    health = max_health
    weapon_energy = 28
    invulnerable = 45
    hurt_ticks = 0
    cooldown = 0
    shots = []
    enemy_shots = []
    effects = []
    avatar.x = player.x
    avatar.y = player.y
    avatar.z = player.z
    avatar.angle = 180
    avatar.pitch = 0
    avatar.model = "nc/hero_idle"
    avatar.dissolve = 0
    avatar.visible = !escape_first_person

action return_to_deck_entry:
    call reset_escape_player
    call update_deck_lights
    camera.backdrop.x = camera.backdrop.x + player.x - camera.x
    camera.x = player.x
    camera.y = 5.7
    escape_angle = 180
    if escape_first_person:
        call set_escape_eye 0
        view_weapon.bob = 0
        view_weapon.y = 0

action fail_escape(reason):
    lives = max(0, lives - 1)
    status = lives > 0 ? "escape_retry" : "gameover"
    escape_failure = reason
    failure_selected = 0
    shots = []
    enemy_shots = []
    call stop_stage_music
    local cue = reason == "TIME UP" ? "nc_hurt" : "nc_player_death"
    sound.play cue
    call refresh_ui

action retry_escape:
    stop when status != "escape_retry"
    status = "playing"
    escape_ticks = 0
    escape_failure = ""
    pause_selected = 0
    call reset_escape_enemies
    call return_to_deck_entry
    call start_escape_audio 0
    notice_text = "RETURN TO THE ENTRANCE AND SECURE THE CORE"
    notice_ticks = 90
    sound.play "nc_checkpoint"
    call refresh_ui

action restart_escape:
    if lives <= 1:
        call fail_escape "CIRCUIT FLATLINED"
        stop when true
    lives = lives - 1
    sound.play "nc_player_death"
    call return_to_deck_entry
    notice_text = "REBOOTED AT BOSS ROOM"
    notice_ticks = 60

action tick_escape(input):
    escape_ticks = escape_ticks + 1
    if escape_ticks >= escape_time_limit:
        call fail_escape "TIME UP"
        stop when true
    local dx = 0
    local dy = 0
    local move_left = input.left || (!escape_first_person && input.turn_left)
    local move_right = input.right || (!escape_first_person && input.turn_right)
    dx = (move_right ? 1 : 0) - (move_left ? 1 : 0)
    if input.aim_up || input.up:
        dy = -1
    if input.duck || input.down:
        dy = 1
    if dx == 0 && input.move_x:
        dx = input.move_x
    if dy == 0 && input.duck_axis:
        dy = input.duck_axis
    if input.move_up:
        dy = -input.move_up
    if escape_first_person:
        local turn = (input.turn_right ? 1 : 0) - (input.turn_left ? 1 : 0)
        if input.turn_axis:
            turn = clamp(turn + input.turn_axis, -1, 1)
        escape_angle = (escape_angle + 5 * turn + 360) % 360
        local forward = -dy
        local strafe = dx
        dx = cos(escape_angle) * forward - sin(escape_angle) * strafe
        dy = sin(escape_angle) * forward + cos(escape_angle) * strafe
    call jump_on_deck input.jump
    local stride = 0.25
    if input.dash && campaign.weapons.volt:
        stride = 0.38
    if current_stage == 1:
        call step_cryo_vents
        if cryo_slipping:
            stride = stride * 0.45
    local input_strength = min(1, sqrt(dx * dx + dy * dy))
    local old_x = player.x
    local old_y = player.y
    if current_stage == 0:
        call prime_volt_dash input.dash, dx
    local boost = current_stage == 0 && volt_dash_ticks > 0
    if boost:
        escape_angle = 180
        call move_on_deck player, 180, 0.96, 0.28
        volt_dash_ticks = volt_dash_ticks - 1
    if !boost && input_strength > 0:
        local move_angle = atan2(dy, dx)
        if !escape_first_person:
            escape_angle = move_angle
        call move_on_deck player, move_angle, stride * input_strength, 0.28
    if current_stage == 1:
        call check_cryo_cache
    if current_stage == 6:
        call step_storm_crosswind
    if return_challenge != null:
        call step_return_challenge
    call update_deck_lights

    if current_stage == 0 && !boost:
        call check_volt_coil
    if input.fire:
        call fire_weapon false

    avatar.x = player.x
    avatar.y = player.y
    avatar.z = player.z
    avatar.angle = escape_angle
    avatar.model = "nc/hero_idle"
    if player.x != old_x || player.y != old_y:
        avatar.model = "nc/hero_run" + (floor(escape_ticks / 3) % 4)
    if player.z > escape_deck_z:
        avatar.model = "nc/hero_jump"
    avatar.dissolve = invulnerable > 0 && hurt_ticks > 0 && ticks % 4 < 2 ? 0.35 : 0
    if escape_first_person:
        local walking = player.x != old_x || player.y != old_y
        local step = escape_ticks * 28
        call set_escape_eye (walking && player.z == escape_deck_z ? sin(step) * 0.04 : 0)
        camera.backdrop.x = camera.backdrop.x + player.x - old_x
        view_weapon.bob = walking && player.z == escape_deck_z ? step * 0.0174533 : 0
        view_weapon.y = cooldown > 3 ? 3 : 0
    else:
        local camera_dx = (player.x - camera.x) * 0.3
        camera.x = camera.x + camera_dx
        camera.backdrop.x = camera.backdrop.x + camera_dx
        camera.y = camera.y + (clamp(player.y + 2, 5.7, level_height - 5.7) - camera.y) * 0.18

    call step_escape_shots
    call step_escape_enemies
    call update_effects
    if health <= 0:
        call restart_escape
        call refresh_ui
        stop when true
    power_capsule.angle = (escape_ticks * 2) % 360
    if distance(player, power_capsule) < 1.55 && player.z - escape_deck_z < 0.85:
        call collect_power_container
        stop when true
    call update_escape_audio
    call refresh_ui

action jump_on_deck(pressed):
    local grounded_deck = player.z <= escape_deck_z
    if grounded_deck:
        jumps = 0
    if pressed == true && !jump_held && (grounded_deck || (campaign.weapons.mag == true && jumps == 1)):
        player.vz = grounded_deck ? 0.40 : 0.36
        jumps = jumps + 1
        sound.play (grounded_deck ? "nc_jump" : "nc_double_jump")
    jump_held = pressed == true
    player.vz = player.vz - 0.045
    player.z = max(escape_deck_z, player.z + player.vz)
    if player.z == escape_deck_z:
        player.vz = 0

action move_on_deck(actor, angle, speed, radius):
    local x = clamp(actor.x + cos(angle) * speed, 1.4, level_width - 1.4)
    local y = clamp(actor.y + sin(angle) * speed, 2.35, level_height - 1.4)
    if x != actor.x:
        call try_deck_step actor, x, actor.y, radius
    if y != actor.y:
        call try_deck_step actor, actor.x, y, radius

action try_deck_step(actor, x, y, radius):
    local left = floor(x - radius)
    local right = floor(x + radius)
    local top = floor(y - radius)
    local bottom = floor(y + radius)
    if voxel_get(world, left, top, escape_deck_z) == 0 && voxel_get(world, right, top, escape_deck_z) == 0 && voxel_get(world, left, bottom, escape_deck_z) == 0 && voxel_get(world, right, bottom, escape_deck_z) == 0:
        actor.x = x
        actor.y = y

action step_escape_enemies:
    for e in enemies:
        if e.alive && e.volt_lane == true:
            call step_volt_lane_turret e
        if e.alive && e.volt_flank && e.volt_flank < 4:
            call step_volt_flank e
        if e.alive && e.volt_lane != true && (!e.volt_flank || e.volt_flank == 4) && abs(player.x - e.x) <= 15:
            local dx = player.x - e.x
            local dy = player.y - e.y
            local dist = distance(e, player)
            local aim = atan2(dy, dx)
            if dist < 13:
                e.cd = e.cd - 1
                e.angle = aim
                local charging = e.cd <= 12
                e.fire_ticks = max(0, e.fire_ticks - 1)
                e.model = charging ? e.base_model + "_charge" : e.base_model
                if e.fire_ticks > 0:
                    e.model = e.base_model + "_fire"
                e.scale = charging && ticks % 6 < 3 ? 1.13 : 1
                if e.kind != "turret" && dist > 1 && !charging:
                    local along_x = dx < 0 ? 180 : 0
                    local along_y = dy < 0 ? 270 : 90
                    local x_gap = abs(dx)
                    local y_gap = abs(dy)
                    local direction = x_gap >= y_gap ? along_x : along_y
                    local other = x_gap >= y_gap ? along_y : along_x
                    local speed = e.kind == "drone" ? 0.13 : 0.09
                    local old_x = e.x
                    local old_y = e.y
                    call move_on_deck e, direction, speed, 0.34
                    if e.x == old_x && e.y == old_y && x_gap > 0.2 && y_gap > 0.2:
                        call move_on_deck e, other, speed, 0.34
                if e.cd == 12:
                    sound.play "nc_enemy_charge"
                if e.cd <= 0 && dist > 0.9:
                    e.cd = e.kind == "turret" ? 64 : 83
                    e.fire_ticks = 8
                    enemy_shots.push({
                        "x": e.x, "y": e.y, "z": escape_deck_z + 0.8,
                        "vx": cos(aim) * 0.28, "vy": sin(aim) * 0.28,
                        "life": 55, "model": "nc/enemy_shot", "angle": aim
                    })
                    sound.play "nc_enemy_fire"
            if dist < 0.9 && player.z < e.z + 0.95:
                call hurt_player 1

action step_escape_shots:
    for friendly in [true, false]:
        local incoming = friendly ? shots : enemy_shots
        local remaining = []
        for s in incoming:
            local old_x = s.x
            local old_y = s.y
            s.x = s.x + s.vx
            s.y = s.y + s.vy
            s.life = s.life - 1
            if s.life > 0 && s.x >= 1 && s.x < level_width - 1 && s.y >= 1 && s.y < level_height - 1:
                if !friendly || !s.pierce:
                    call stop_shot_at_cover s, old_x, old_y, s.y, true
                if s.life > 0:
                    if friendly:
                        if current_stage == 6 && !storm_relay_off:
                            call hit_storm_relay s
                        if current_stage == 4:
                            call hit_phase_cache s
                        for e in enemies:
                            if s.life > 0 && e.alive && distance(e, s) < 0.8 && abs(s.z - e.z - 0.8) < 0.85:
                                e.hp = e.hp - s.dmg
                                sound.play "nc_hit"
                                if e.hp <= 0:
                                    e.alive = false
                                    e.visible = false
                                    if e.volt_lane == true:
                                        call set_volt_lane_warning false
                                    sound.play "nc_explode"
                                    call burst_on_deck e.x, e.y
                                if !s.pierce:
                                    s.life = 0
                    if !friendly:
                        if distance(player, s) < 0.65 && player.z <= s.z + 0.08:
                            call hurt_player 1
                            s.life = 0
                    if s.life > 0:
                        remaining.push(s)
        if friendly:
            shots = remaining
        if !friendly:
            enemy_shots = remaining
levels/01_volt.rune
# Level 01: VOLT VIPER — Neon Power Grid (Intro Sector — Unlocks VOLT SURGE)
@Map/sky_01
floor = "#070917"
sky = {"seed":101,"zenith":"#060814","horizon":"#0d2038","cloud":"#16385e","speed":0.04}
legend = {".":{}}
grid:
    "..."
    "..."
    "..."

@SideMap/lvl_01_fg
plane_y = 7
depth_y = 20
materials = ["nc/deck","nc/deck_pink","nc/wall","nc/volt_gate","nc/cryo_ice","nc/blast_wall","nc/phase_gate","nc/saw_gate","nc/thermal_vent","nc/mag_block","nc/lane_grid"]
legend = {
    ".": {},
    "#": {"voxel": 1, "depth": [5, 4], "center_voxel": 11},
    "=": {"voxel": 2, "depth": [5, 4], "center_voxel": 11},
    "W": {"voxel": 3, "depth": [4, 5]},
    "M": {"voxel": 10, "depth": [5, 4]},
    "|": {"ladder": true, "model": "nc/ladder"},
    "D": {"boss_door": true, "voxel": 4, "depth": [5, 4], "model": "nc/boss_door_frame"},
    "V": {"voxel": 4, "depth": [5, 4], "barrier": "volt"},
    "B": {"voxel": 6, "depth": [5, 4], "barrier": "blast"},
    "G": {"voxel": 7, "depth": [5, 4], "barrier": "phase"},
    "S": {"voxel": 8, "depth": [5, 4], "barrier": "saw"},
    "F": {"voxel": 9, "depth": [5, 4], "hazard": "thermal"},
    "P": {"spawn": true},
    "C": {"checkpoint": true, "model": "nc/checkpoint_off"},
    "H": {"pickup": "health", "model": "nc/pickup_health"},
    "+": {"pickup": "energy", "model": "nc/pickup_energy"},
    "d": {"entity": "drone", "model": "nc/enemy_drone", "hp": 3},
    "t": {"entity": "turret", "model": "nc/enemy_turret", "hp": 4},
    "w": {"entity": "walker", "model": "nc/enemy_walker", "hp": 5},
    "X": {"entity": "boss", "role": "boss", "model": "nc/boss_volt", "hp": 22}
}
grid:
    "WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW"
    "W................................................................W..............................WWWWWWWWWWWWWWWWWWWWWWWW"
    "W................................................................W..............................WWWWWWWWWWWWWWWWWWWWWWWW"
    "W................................................................W..............................W......................W"
    "W................................................................W..............................W......................W"
    "W................................................................W..............................W......................W"
    "W................................................................W..............................W......................W"
    "W................................................................W..............................W......................W"
    "W................................................+....................................+.........W......................W"
    "W............................................=|=======..........................|..======.......W......................W"
    "W..........................w..H...............|.....................d...........|...............W......................W"
    "W...................==|==========.............|..............=|============.....|...............W......................W"
    "W.....................|................d......|...............|..............=======............D..====...........====.W"
    "W...........t.........|..............=====....|...............|.................................D......................W"
    "W..........###........|.......................|...............|.................................D......................W"
    "W..P.......###.....d..|.......................|.....w.....t.C.|..........t...........w.....C..H.D................X.....W"
    "W##########################....######......####################...#############...######################################"
    "WWWWWWWWWWWWWWWWWWWWWWWWWWW....WWWWWW......WWWWWWWWWWWWWWWWWWWW...WWWWWWWWWWWWW...WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW"

@SideMap/lvl_01_bg
plane_y = 2.4
legend = {
    ".": {},
    "T": {"model": "nc/bg_tower", "y": 1.6, "scale": 1.05},
    "D": {"model": "nc/bg_dome", "y": 2.0, "scale": 1.05},
    "I": {"model": "nc/bg_pipe", "y": 2.6, "scale": 1.0},
    "P": {"model": "nc/bg_sign_pink", "y": 3.0, "scale": 1.0},
    "C": {"model": "nc/bg_sign_cyan", "y": 3.0, "scale": 1.0},
    "A": {"model": "nc/bg_arch", "y": 2.8, "scale": 1.05},
    "O": {"model": "nc/bg_orb", "y": 2.2, "scale": 1.05},
    "Y": {"model": "nc/bg_pylon", "y": 2.4, "scale": 1.05}
}
grid:
    "............................................................"
    "............................................................"
    "............................................................"
    "............................................................"
    "......O.................O.................O...........O....."
    "............................................................"
    "........P...........C...........P...........C..............."
    "............................................................"
    "............................................................"
    "............................................................"
    "............................................................"
    "............................................................"
    "............................................................"
    "............................................................"
    "..T....A....T....A....T....A....T....A....T....A....T....A.."
    "............................................................"
levels/02_cryo.rune
# Level 02: CRYO SHADE — Cryo Server Vault (Intro Sector — Unlocks CRYO LANCE)
@Map/sky_02
floor = "#060b1c"
sky = {"seed":102,"zenith":"#050817","horizon":"#101c42","cloud":"#1c3366","speed":0.03}
legend = {".":{}}
grid:
    "..."
    "..."
    "..."

@SideMap/lvl_02_fg
plane_y = 7
depth_y = 20
materials = ["nc/deck","nc/deck_pink","nc/wall_frost","nc/volt_gate","nc/cryo_ice","nc/blast_wall","nc/phase_gate","nc/saw_gate","nc/thermal_vent","nc/mag_block","nc/lane_frost"]
legend = {
    ".": {},
    "#": {"voxel": 5, "depth": [5, 4], "center_voxel": 11},
    "=": {"voxel": 1, "depth": [5, 4], "center_voxel": 11},
    "W": {"voxel": 3, "depth": [4, 5]},
    "M": {"voxel": 10, "depth": [5, 4]},
    "|": {"ladder": true, "model": "nc/ladder"},
    "D": {"boss_door": true, "voxel": 4, "depth": [5, 4], "model": "nc/boss_door_frame"},
    "V": {"voxel": 4, "depth": [5, 4], "barrier": "volt"},
    "B": {"voxel": 6, "depth": [5, 4], "barrier": "blast"},
    "G": {"voxel": 7, "depth": [5, 4], "barrier": "phase"},
    "S": {"voxel": 8, "depth": [5, 4], "barrier": "saw"},
    "F": {"voxel": 9, "depth": [5, 4], "hazard": "thermal"},
    "P": {"spawn": true},
    "C": {"checkpoint": true, "model": "nc/checkpoint_off"},
    "H": {"pickup": "health", "model": "nc/pickup_health"},
    "+": {"pickup": "energy", "model": "nc/pickup_energy"},
    "d": {"entity": "drone", "model": "nc/enemy_drone", "hp": 3},
    "t": {"entity": "turret", "model": "nc/enemy_turret", "hp": 4},
    "w": {"entity": "walker", "model": "nc/enemy_walker", "hp": 5},
    "X": {"entity": "boss", "role": "boss", "model": "nc/boss_cryo", "hp": 22}
}
grid:
    "WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW"
    "W......................W........................................................................WWWWWWWWWWWWWWWWWWWWWWWW"
    "W......................W........................................................................WWWWWWWWWWWWWWWWWWWWWWWW"
    "W......................W........................................................................W......................W"
    "W......................W........................................................................W......................W"
    "W......................W........................................................................W......................W"
    "W...............................................................................................W......................W"
    "W...............................................................................................W......................W"
    "W..P......t.....d...............................................................................W......................W"
    "W##################.|.........................................................w...+.............W......................W"
    "W##################.|...............................................====|============...........W......................W"
    "W##################.|...............................d...................|.......................W.......====...........W"
    "W##################.|.............................=====.................|.......................D......................W"
    "W##################.|...................................................|.............=====.....D...===................W"
    "W##################.|......................=====........................|.......................D.................X....W"
    "W##################.|.......w......H......................C......t......|..................C..H.D..............========W"
    "W########################################...............###################..............###############################"
    "W###############WWWWWWWWWWWWWWWWWWWWWWWWW...............WWWWWWWWWWWWWWWWWWW..............WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW"

@SideMap/lvl_02_bg
plane_y = 2.4
legend = {
    ".": {},
    "T": {"model": "nc/bg_tower", "y": 1.6, "scale": 1.05},
    "D": {"model": "nc/bg_dome", "y": 2.0, "scale": 1.05},
    "I": {"model": "nc/bg_pipe", "y": 2.6, "scale": 1.0},
    "P": {"model": "nc/bg_sign_pink", "y": 3.0, "scale": 1.0},
    "C": {"model": "nc/bg_sign_cyan", "y": 3.0, "scale": 1.0},
    "A": {"model": "nc/bg_arch", "y": 2.8, "scale": 1.05},
    "O": {"model": "nc/bg_orb", "y": 2.2, "scale": 1.05},
    "Y": {"model": "nc/bg_pylon", "y": 2.4, "scale": 1.05}
}
grid:
    "............................................................"
    "............................................................"
    "............................................................"
    "............................................................"
    "......O.................O.................O...........O....."
    "............................................................"
    "........C...........D...........C...........D..............."
    "............................................................"
    "............................................................"
    "............................................................"
    "............................................................"
    "............................................................"
    "............................................................"
    "............................................................"
    "..T....I....T....I....T....I....T....I....T....I....T....I.."
    "............................................................"
levels/03_mag.rune
# Level 03: MAG TITAN — Mag-Lev Scrapyard (Intro Sector — Unlocks MAG CLAW)
@Map/sky_03
floor = "#0e0619"
sky = {"seed":103,"zenith":"#0b0514","horizon":"#250e3c","cloud":"#381a54","speed":0.04}
legend = {".":{}}
grid:
    "..."
    "..."
    "..."

@SideMap/lvl_03_fg
plane_y = 7
depth_y = 20
materials = ["nc/deck","nc/deck_pink","nc/wall_foundry","nc/volt_gate","nc/cryo_ice","nc/blast_wall","nc/phase_gate","nc/saw_gate","nc/thermal_vent","nc/mag_block","nc/lane_foundry"]
legend = {
    ".": {},
    "#": {"voxel": 10, "depth": [5, 4], "center_voxel": 11},
    "=": {"voxel": 2, "depth": [5, 4], "center_voxel": 11},
    "W": {"voxel": 3, "depth": [4, 5]},
    "M": {"voxel": 10, "depth": [5, 4]},
    "|": {"ladder": true, "model": "nc/ladder"},
    "D": {"boss_door": true, "voxel": 4, "depth": [5, 4], "model": "nc/boss_door_frame"},
    "V": {"voxel": 4, "depth": [5, 4], "barrier": "volt"},
    "B": {"voxel": 6, "depth": [5, 4], "barrier": "blast"},
    "G": {"voxel": 7, "depth": [5, 4], "barrier": "phase"},
    "S": {"voxel": 8, "depth": [5, 4], "barrier": "saw"},
    "F": {"voxel": 9, "depth": [5, 4], "hazard": "thermal"},
    "P": {"spawn": true},
    "C": {"checkpoint": true, "model": "nc/checkpoint_off"},
    "H": {"pickup": "health", "model": "nc/pickup_health"},
    "+": {"pickup": "energy", "model": "nc/pickup_energy"},
    "d": {"entity": "drone", "model": "nc/enemy_drone", "hp": 3},
    "t": {"entity": "turret", "model": "nc/enemy_turret", "hp": 4},
    "w": {"entity": "walker", "model": "nc/enemy_walker", "hp": 5},
    "X": {"entity": "boss", "role": "boss", "model": "nc/boss_mag", "hp": 24}
}
grid:
    "WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW"
    "W...............................................................................................WWWWWWWWWWWWWWWWWWWWWWWW"
    "W...............................................................................................WWWWWWWWWWWWWWWWWWWWWWWW"
    "W...............................................................................................W......................W"
    "W...............................................................................................W......................W"
    "W...............................................................................................W......................W"
    "W..............................................................................H...d............W......................W"
    "W.......................................................................==|============.........W......................W"
    "W.........................................................................|.....................W......................W"
    "W.........................w....+..........................................|.....................W......................W"
    "W.................==|==============..........d............................|.....................W......................W"
    "W...................|......................MMMMMM..............==|===========...................W......................W"
    "W...................|............................................|..............................D......................W"
    "W.............t.....|...............MMMMM........................|..............................D......======..........W"
    "W...........MMMMM...|............................................|..............................D......................W"
    "W..P........MMMMM...|................................w.....C.....|..............t..........C..H.D................X.....W"
    "W######################...########................###################....###############################################"
    "WWWWWWWWWWWWWWWWWWWWWWW...WWWWWWWW................WWWWWWWWWWWWWWWWWWW....WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW"

@SideMap/lvl_03_bg
plane_y = 2.4
legend = {
    ".": {},
    "T": {"model": "nc/bg_tower", "y": 1.6, "scale": 1.05},
    "D": {"model": "nc/bg_dome", "y": 2.0, "scale": 1.05},
    "I": {"model": "nc/bg_pipe", "y": 2.6, "scale": 1.0},
    "P": {"model": "nc/bg_sign_pink", "y": 3.0, "scale": 1.0},
    "C": {"model": "nc/bg_sign_cyan", "y": 3.0, "scale": 1.0},
    "A": {"model": "nc/bg_arch", "y": 2.8, "scale": 1.05},
    "O": {"model": "nc/bg_orb", "y": 2.2, "scale": 1.05},
    "Y": {"model": "nc/bg_pylon", "y": 2.4, "scale": 1.05}
}
grid:
    "............................................................"
    "............................................................"
    "............................................................"
    "............................................................"
    "......O.................O.................O...........O....."
    "............................................................"
    "........P...........Y...........P...........Y..............."
    "............................................................"
    "............................................................"
    "............................................................"
    "............................................................"
    "............................................................"
    "............................................................"
    "............................................................"
    "..A....I....A....I....A....I....A....I....A....I....A....I.."
    "............................................................"
levels/04_pyro.rune
# Level 04: PYRO NOVA — Plasma Foundry (Intro Sector — Unlocks NOVA BREAKER)
@Map/sky_04
floor = "#14070e"
sky = {"seed":104,"zenith":"#10050b","horizon":"#331118","cloud":"#4a1e22","speed":0.05}
legend = {".":{}}
grid:
    "..."
    "..."
    "..."

@SideMap/lvl_04_fg
plane_y = 7
depth_y = 20
materials = ["nc/deck","nc/deck_pink","nc/wall_foundry","nc/volt_gate","nc/cryo_ice","nc/blast_wall","nc/phase_gate","nc/saw_gate","nc/thermal_vent","nc/mag_block","nc/lane_foundry"]
legend = {
    ".": {},
    "#": {"voxel": 2, "depth": [5, 4], "center_voxel": 11},
    "=": {"voxel": 1, "depth": [5, 4], "center_voxel": 11},
    "W": {"voxel": 3, "depth": [4, 5]},
    "M": {"voxel": 10, "depth": [5, 4]},
    "|": {"ladder": true, "model": "nc/ladder"},
    "D": {"boss_door": true, "voxel": 4, "depth": [5, 4], "model": "nc/boss_door_frame"},
    "V": {"voxel": 4, "depth": [5, 4], "barrier": "volt"},
    "B": {"voxel": 6, "depth": [5, 4], "barrier": "blast"},
    "G": {"voxel": 7, "depth": [5, 4], "barrier": "phase"},
    "S": {"voxel": 8, "depth": [5, 4], "barrier": "saw"},
    "F": {"voxel": 9, "depth": [5, 4], "hazard": "thermal"},
    "P": {"spawn": true},
    "C": {"checkpoint": true, "model": "nc/checkpoint_off"},
    "H": {"pickup": "health", "model": "nc/pickup_health"},
    "+": {"pickup": "energy", "model": "nc/pickup_energy"},
    "d": {"entity": "drone", "model": "nc/enemy_drone", "hp": 3},
    "t": {"entity": "turret", "model": "nc/enemy_turret", "hp": 4},
    "w": {"entity": "walker", "model": "nc/enemy_walker", "hp": 5},
    "X": {"entity": "boss", "role": "boss", "model": "nc/boss_pyro", "hp": 24}
}
grid:
    "WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW"
    "W...............................................................................................WWWWWWWWWWWWWWWWWWWWWWWW"
    "W...............................................................................................WWWWWWWWWWWWWWWWWWWWWWWW"
    "W...............................................................................................W......................W"
    "W...............................................................................................W......................W"
    "W...............................................................................................W......................W"
    "W...............................................................................................W......................W"
    "W...............................................................................................W......................W"
    "W...............................................................................................W......................W"
    "W..................................................................t....H.......................W......................W"
    "W..........................d..................................===============...................W.......====...........W"
    "W.......................=======.................................................................W......................W"
    "W...............=|=====..........................=|==========...................................D......................W"
    "W................|................................|.............................................D..===............====.W"
    "W................|................................|.............................................D......................W"
    "W..P.......t.....|...................w.....+...C..|..............................w.........C..H.D................X.....W"
    "W##################FFFFFFFFFFFFF###################FFFFFFFFFFFFFFFFFFFFFFFF#############################################"
    "WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW"

@SideMap/lvl_04_bg
plane_y = 2.4
legend = {
    ".": {},
    "T": {"model": "nc/bg_tower", "y": 1.6, "scale": 1.05},
    "D": {"model": "nc/bg_dome", "y": 2.0, "scale": 1.05},
    "I": {"model": "nc/bg_pipe", "y": 2.6, "scale": 1.0},
    "P": {"model": "nc/bg_sign_pink", "y": 3.0, "scale": 1.0},
    "C": {"model": "nc/bg_sign_cyan", "y": 3.0, "scale": 1.0},
    "A": {"model": "nc/bg_arch", "y": 2.8, "scale": 1.05},
    "O": {"model": "nc/bg_orb", "y": 2.2, "scale": 1.05},
    "Y": {"model": "nc/bg_pylon", "y": 2.4, "scale": 1.05}
}
grid:
    "............................................................"
    "............................................................"
    "............................................................"
    "............................................................"
    "......O.................O.................O...........O....."
    "............................................................"
    "........P...........I...........P...........I..............."
    "............................................................"
    "............................................................"
    "............................................................"
    "............................................................"
    "............................................................"
    "............................................................"
    "............................................................"
    "..Y....A....Y....A....Y....A....Y....A....Y....A....Y....A.."
    "............................................................"
levels/05_phase.rune
# Level 05: PHASE PHANTOM — Holo-Net Spire (Intro Sector — Unlocks PHASE BEAM)
@Map/sky_05
floor = "#0a061b"
sky = {"seed":105,"zenith":"#080416","horizon":"#1f1042","cloud":"#321b63","speed":0.04}
legend = {".":{}}
grid:
    "..."
    "..."
    "..."

@SideMap/lvl_05_fg
plane_y = 7
depth_y = 20
materials = ["nc/deck","nc/deck_pink","nc/wall_signal","nc/volt_gate","nc/cryo_ice","nc/blast_wall","nc/phase_gate","nc/saw_gate","nc/thermal_vent","nc/mag_block","nc/lane_signal"]
legend = {
    ".": {},
    "#": {"voxel": 1, "depth": [5, 4], "center_voxel": 11},
    "=": {"voxel": 10, "depth": [5, 4], "center_voxel": 11},
    "W": {"voxel": 3, "depth": [4, 5]},
    "M": {"voxel": 10, "depth": [5, 4]},
    "|": {"ladder": true, "model": "nc/ladder"},
    "D": {"boss_door": true, "voxel": 4, "depth": [5, 4], "model": "nc/boss_door_frame"},
    "V": {"voxel": 4, "depth": [5, 4], "barrier": "volt"},
    "B": {"voxel": 6, "depth": [5, 4], "barrier": "blast"},
    "G": {"voxel": 7, "depth": [5, 4], "barrier": "phase"},
    "S": {"voxel": 8, "depth": [5, 4], "barrier": "saw"},
    "F": {"voxel": 9, "depth": [5, 4], "hazard": "thermal"},
    "P": {"spawn": true},
    "C": {"checkpoint": true, "model": "nc/checkpoint_off"},
    "H": {"pickup": "health", "model": "nc/pickup_health"},
    "+": {"pickup": "energy", "model": "nc/pickup_energy"},
    "d": {"entity": "drone", "model": "nc/enemy_drone", "hp": 3},
    "t": {"entity": "turret", "model": "nc/enemy_turret", "hp": 4},
    "w": {"entity": "walker", "model": "nc/enemy_walker", "hp": 5},
    "X": {"entity": "boss", "role": "boss", "model": "nc/boss_phase", "hp": 22}
}
grid:
    "WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW"
    "W...............................................................................................WWWWWWWWWWWWWWWWWWWWWWWW"
    "W...............................................................................................WWWWWWWWWWWWWWWWWWWWWWWW"
    "W.....................................d.........................................................W......................W"
    "W...........................==|==============...................................................W......................W"
    "W.............................|.................................................................W......................W"
    "W.............................|.................................................................W......................W"
    "W......................H......|.................=======.........................................W......................W"
    "W.................===============|==............................................................W......................W"
    "W................................|..........................w...................................W......................W"
    "W................................|.......................=======|...............................W......................W"
    "W...........................t....|..............................|...............................W......................W"
    "W.................==|==============.............................|..............+................D..====...........====.W"
    "W...................|...........................................|...........=======.............D......................W"
    "W...................|...........................................|...............................D......................W"
    "W..P.........d......|...........................................|...C......................C..H.D................X.....W"
    "W########################......................................##############.......####################################"
    "WWWWWWWWWWWWWWWWWWWWWWWWW......................................WWWWWWWWWWWWWW.......WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW"

@SideMap/lvl_05_bg
plane_y = 2.4
legend = {
    ".": {},
    "T": {"model": "nc/bg_tower", "y": 1.6, "scale": 1.05},
    "D": {"model": "nc/bg_dome", "y": 2.0, "scale": 1.05},
    "I": {"model": "nc/bg_pipe", "y": 2.6, "scale": 1.0},
    "P": {"model": "nc/bg_sign_pink", "y": 3.0, "scale": 1.0},
    "C": {"model": "nc/bg_sign_cyan", "y": 3.0, "scale": 1.0},
    "A": {"model": "nc/bg_arch", "y": 2.8, "scale": 1.05},
    "O": {"model": "nc/bg_orb", "y": 2.2, "scale": 1.05},
    "Y": {"model": "nc/bg_pylon", "y": 2.4, "scale": 1.05}
}
grid:
    "............................................................"
    "............................................................"
    "............................................................"
    "............................................................"
    "......O.................O.................O...........O....."
    "............................................................"
    "........C...........P...........C...........P..............."
    "............................................................"
    "............................................................"
    "............................................................"
    "............................................................"
    "............................................................"
    "............................................................"
    "............................................................"
    "..D....T....D....T....D....T....D....T....D....T....D....T.."
    "............................................................"
levels/06_saw.rune
# Level 06: PULSE SAW — Bio-Synth Conduit (Intro Sector — Unlocks HYPER SAW)
@Map/sky_06
floor = "#05120d"
sky = {"seed":106,"zenith":"#040e0a","horizon":"#0b291d","cloud":"#14402d","speed":0.04}
legend = {".":{}}
grid:
    "..."
    "..."
    "..."

@SideMap/lvl_06_fg
plane_y = 7
depth_y = 20
materials = ["nc/deck","nc/deck_pink","nc/wall_conduit","nc/volt_gate","nc/cryo_ice","nc/blast_wall","nc/phase_gate","nc/saw_gate","nc/thermal_vent","nc/mag_block","nc/lane_conduit"]
legend = {
    ".": {},
    "#": {"voxel": 1, "depth": [5, 4], "center_voxel": 11},
    "=": {"voxel": 2, "depth": [5, 4], "center_voxel": 11},
    "W": {"voxel": 3, "depth": [4, 5]},
    "M": {"voxel": 10, "depth": [5, 4]},
    "|": {"ladder": true, "model": "nc/ladder"},
    "D": {"boss_door": true, "voxel": 4, "depth": [5, 4], "model": "nc/boss_door_frame"},
    "V": {"voxel": 4, "depth": [5, 4], "barrier": "volt"},
    "B": {"voxel": 6, "depth": [5, 4], "barrier": "blast"},
    "G": {"voxel": 7, "depth": [5, 4], "barrier": "phase"},
    "S": {"voxel": 8, "depth": [5, 4], "barrier": "saw"},
    "F": {"voxel": 9, "depth": [5, 4], "hazard": "thermal"},
    "P": {"spawn": true},
    "C": {"checkpoint": true, "model": "nc/checkpoint_off"},
    "H": {"pickup": "health", "model": "nc/pickup_health"},
    "+": {"pickup": "energy", "model": "nc/pickup_energy"},
    "d": {"entity": "drone", "model": "nc/enemy_drone", "hp": 3},
    "t": {"entity": "turret", "model": "nc/enemy_turret", "hp": 4},
    "w": {"entity": "walker", "model": "nc/enemy_walker", "hp": 5},
    "X": {"entity": "boss", "role": "boss", "model": "nc/boss_saw", "hp": 24}
}
grid:
    "WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW"
    "W...............................................................................................WWWWWWWWWWWWWWWWWWWWWWWW"
    "W...............................................................................................WWWWWWWWWWWWWWWWWWWWWWWW"
    "W...............................................................................................W......................W"
    "W...............................................................................................W......................W"
    "W...............................................................................................W......................W"
    "W...............................................................................................W......................W"
    "W...............................................................................................W......................W"
    "W...............................................................................................W......................W"
    "W..............................d..........+.....................................................W......................W"
    "W.....................==|==========================|=.............d.............................W......................W"
    "W.......................|..........................|............=====...........................W......................W"
    "W.......................|..........................|............................................D......................W"
    "W.......................|..........................|.....=====..................................D......======..........W"
    "W.......................|..........................|............................................D......................W"
    "W..P.......t.......w....|..............t.........C.|........................w.....H........C..H.D................X.....W"
    "W##############################...#####################................#################################################"
    "WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW...WWWWWWWWWWWWWWWWWWWWW................WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW"

@SideMap/lvl_06_bg
plane_y = 2.4
legend = {
    ".": {},
    "T": {"model": "nc/bg_tower", "y": 1.6, "scale": 1.05},
    "D": {"model": "nc/bg_dome", "y": 2.0, "scale": 1.05},
    "I": {"model": "nc/bg_pipe", "y": 2.6, "scale": 1.0},
    "P": {"model": "nc/bg_sign_pink", "y": 3.0, "scale": 1.0},
    "C": {"model": "nc/bg_sign_cyan", "y": 3.0, "scale": 1.0},
    "A": {"model": "nc/bg_arch", "y": 2.8, "scale": 1.05},
    "O": {"model": "nc/bg_orb", "y": 2.2, "scale": 1.05},
    "Y": {"model": "nc/bg_pylon", "y": 2.4, "scale": 1.05}
}
grid:
    "............................................................"
    "............................................................"
    "............................................................"
    "............................................................"
    "......O.................O.................O...........O....."
    "............................................................"
    "........C...........I...........C...........I..............."
    "............................................................"
    "............................................................"
    "............................................................"
    "............................................................"
    "............................................................"
    "............................................................"
    "............................................................"
    "..T....A....T....A....T....A....T....A....T....A....T....A.."
    "............................................................"
levels/07_storm.rune
# Level 07: STORM VALKYRIE — Skyline Wind Turbine (NEEDS: VOLT SURGE + MAG CLAW)
@Map/sky_07
floor = "#050b1c"
sky = {"seed":107,"zenith":"#040814","horizon":"#0d2647","cloud":"#193c66","speed":0.05}
legend = {".":{}}
grid:
    "..."
    "..."
    "..."

@SideMap/lvl_07_fg
plane_y = 7
depth_y = 20
materials = ["nc/deck","nc/deck_pink","nc/wall_foundry","nc/volt_gate","nc/cryo_ice","nc/blast_wall","nc/phase_gate","nc/saw_gate","nc/thermal_vent","nc/mag_block","nc/lane_runway"]
legend = {
    ".": {},
    "#": {"voxel": 1, "depth": [5, 4], "center_voxel": 11},
    "=": {"voxel": 10, "depth": [5, 4], "center_voxel": 11},
    "W": {"voxel": 3, "depth": [4, 5]},
    "M": {"voxel": 10, "depth": [5, 4]},
    "|": {"ladder": true, "model": "nc/ladder"},
    "D": {"boss_door": true, "voxel": 4, "depth": [5, 4], "model": "nc/boss_door_frame"},
    "V": {"voxel": 4, "depth": [5, 4], "barrier": "volt"},
    "B": {"voxel": 6, "depth": [5, 4], "barrier": "blast"},
    "G": {"voxel": 7, "depth": [5, 4], "barrier": "phase"},
    "S": {"voxel": 8, "depth": [5, 4], "barrier": "saw"},
    "F": {"voxel": 9, "depth": [5, 4], "hazard": "thermal"},
    "P": {"spawn": true},
    "C": {"checkpoint": true, "model": "nc/checkpoint_off"},
    "H": {"pickup": "health", "model": "nc/pickup_health"},
    "+": {"pickup": "energy", "model": "nc/pickup_energy"},
    "d": {"entity": "drone", "model": "nc/enemy_drone", "hp": 4},
    "t": {"entity": "turret", "model": "nc/enemy_turret", "hp": 5},
    "w": {"entity": "walker", "model": "nc/enemy_walker", "hp": 6},
    "X": {"entity": "boss", "role": "boss", "model": "nc/boss_storm", "hp": 28}
}
grid:
    "WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW"
    "W.......................................W.......................................................WWWWWWWWWWWWWWWWWWWWWWWW"
    "W.......................................W.......................................................WWWWWWWWWWWWWWWWWWWWWWWW"
    "W.......................................W.......................................................W......................W"
    "W.......................................W.......................................................W......................W"
    "W.......................................W.......................................................W......................W"
    "W.......................................W...........................................d...........W......................W"
    "W.......................................W.......................................======|==.......W......................W"
    "W.......................................W.............................................|.........W......................W"
    "W.......................................W..............................H..............|.........W......................W"
    "W.......................................W...........................=========.........|.........W.......====...........W"
    "W.......................................V.................................W...........|.........W......................W"
    "W.................==|=========..........V.................................W...........|.........D......................W"
    "W...................|...................V.................................W...........|.........D..===............====.W"
    "W...................|...................V.................................W...........|.........D......................W"
    "W..P........d.......|............t......V.............C......w............W...........|....C..H.D................X.....W"
    "W######################....##################......##################.....W#############################################"
    "WWWWWWWWWWWWWWWWWWWWWWW....WWWWWWWWWWWWWWWWWW......WWWWWWWWWWWWWWWWWW......WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW"

@SideMap/lvl_07_bg
plane_y = 2.4
legend = {
    ".": {},
    "T": {"model": "nc/bg_tower", "y": 1.6, "scale": 1.05},
    "D": {"model": "nc/bg_dome", "y": 2.0, "scale": 1.05},
    "I": {"model": "nc/bg_pipe", "y": 2.6, "scale": 1.0},
    "P": {"model": "nc/bg_sign_pink", "y": 3.0, "scale": 1.0},
    "C": {"model": "nc/bg_sign_cyan", "y": 3.0, "scale": 1.0},
    "A": {"model": "nc/bg_arch", "y": 2.8, "scale": 1.05},
    "O": {"model": "nc/bg_orb", "y": 2.2, "scale": 1.05},
    "Y": {"model": "nc/bg_pylon", "y": 2.4, "scale": 1.05}
}
grid:
    "............................................................"
    "............................................................"
    "............................................................"
    "............................................................"
    "......O.................O.................O...........O....."
    "............................................................"
    "........C...........P...........C...........P..............."
    "............................................................"
    "............................................................"
    "............................................................"
    "............................................................"
    "............................................................"
    "............................................................"
    "............................................................"
    "..Y....T....Y....T....Y....T....Y....T....Y....T....Y....T.."
    "............................................................"
levels/08_glacier.rune
# Level 08: GLACIER REACTOR — Thermal-Cryo Core (NEEDS: CRYO LANCE + NOVA BREAKER)
@Map/sky_08
floor = "#0f0918"
sky = {"seed":108,"zenith":"#080d1f","horizon":"#331526","cloud":"#223759","speed":0.04}
legend = {".":{}}
grid:
    "..."
    "..."
    "..."

@SideMap/lvl_08_fg
plane_y = 7
depth_y = 20
materials = ["nc/deck","nc/deck_pink","nc/wall_frost","nc/volt_gate","nc/cryo_ice","nc/blast_wall","nc/phase_gate","nc/saw_gate","nc/thermal_vent","nc/mag_block","nc/lane_frost"]
legend = {
    ".": {},
    "#": {"voxel": 5, "depth": [5, 4], "center_voxel": 11},
    "=": {"voxel": 2, "depth": [5, 4], "center_voxel": 11},
    "W": {"voxel": 3, "depth": [4, 5]},
    "M": {"voxel": 10, "depth": [5, 4]},
    "|": {"ladder": true, "model": "nc/ladder"},
    "D": {"boss_door": true, "voxel": 4, "depth": [5, 4], "model": "nc/boss_door_frame"},
    "V": {"voxel": 4, "depth": [5, 4], "barrier": "volt"},
    "B": {"voxel": 6, "depth": [5, 4], "barrier": "blast"},
    "G": {"voxel": 7, "depth": [5, 4], "barrier": "phase"},
    "S": {"voxel": 8, "depth": [5, 4], "barrier": "saw"},
    "F": {"voxel": 9, "depth": [5, 4], "hazard": "thermal"},
    "P": {"spawn": true},
    "C": {"checkpoint": true, "model": "nc/checkpoint_off"},
    "H": {"pickup": "health", "model": "nc/pickup_health"},
    "+": {"pickup": "energy", "model": "nc/pickup_energy"},
    "d": {"entity": "drone", "model": "nc/enemy_drone", "hp": 4},
    "t": {"entity": "turret", "model": "nc/enemy_turret", "hp": 5},
    "w": {"entity": "walker", "model": "nc/enemy_walker", "hp": 6},
    "X": {"entity": "boss", "role": "boss", "model": "nc/boss_glacier", "hp": 28}
}
grid:
    "WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW"
    "W.....................................................................W.........................WWWWWWWWWWWWWWWWWWWWWWWW"
    "W.....................................................................W.........................WWWWWWWWWWWWWWWWWWWWWWWW"
    "W.....................................................................W.........................W......................W"
    "W.....................................................................W.........................W......................W"
    "W.....................................................................W.........................W......................W"
    "W.....................................................................W.........................W......................W"
    "W.....................................................................W.........................W......................W"
    "W.....................................................................W.........................W......................W"
    "W.....................................................................W.........................W......................W"
    "W.............................................................H.......W.........................W......................W"
    "W...............................d......................==|==========..B.........................W.......====...........W"
    "W.................==|=====...............................|............B.........................D......................W"
    "W...................|....................................|............B.........................D...===................W"
    "W...................|....................................|............B.........................D.................X....W"
    "W..P.........t......|.......................w.......C....|............B......t.....w.......C..H.D..............========W"
    "W#########################FFFFFFFFFFFFF######################...########################################################"
    "WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW...WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW"

@SideMap/lvl_08_bg
plane_y = 2.4
legend = {
    ".": {},
    "T": {"model": "nc/bg_tower", "y": 1.6, "scale": 1.05},
    "D": {"model": "nc/bg_dome", "y": 2.0, "scale": 1.05},
    "I": {"model": "nc/bg_pipe", "y": 2.6, "scale": 1.0},
    "P": {"model": "nc/bg_sign_pink", "y": 3.0, "scale": 1.0},
    "C": {"model": "nc/bg_sign_cyan", "y": 3.0, "scale": 1.0},
    "A": {"model": "nc/bg_arch", "y": 2.8, "scale": 1.05},
    "O": {"model": "nc/bg_orb", "y": 2.2, "scale": 1.05},
    "Y": {"model": "nc/bg_pylon", "y": 2.4, "scale": 1.05}
}
grid:
    "............................................................"
    "............................................................"
    "............................................................"
    "............................................................"
    "......O.................O.................O...........O....."
    "............................................................"
    "........C...........D...........C...........D..............."
    "............................................................"
    "............................................................"
    "............................................................"
    "............................................................"
    "............................................................"
    "............................................................"
    "............................................................"
    "..T....I....T....I....T....I....T....I....T....I....T....I.."
    "............................................................"
levels/09_ghost.rune
# Level 09: GHOST PROTOCOL — Black-ICE Mainframe (NEEDS: PHASE BEAM + VOLT SURGE)
@Map/sky_09
floor = "#080416"
sky = {"seed":109,"zenith":"#060310","horizon":"#240d3d","cloud":"#3c1a54","speed":0.05}
legend = {".":{}}
grid:
    "..."
    "..."
    "..."

@SideMap/lvl_09_fg
plane_y = 7
depth_y = 20
materials = ["nc/deck","nc/deck_pink","nc/wall_signal","nc/volt_gate","nc/cryo_ice","nc/blast_wall","nc/phase_gate","nc/saw_gate","nc/thermal_vent","nc/mag_block","nc/lane_signal"]
legend = {
    ".": {},
    "#": {"voxel": 1, "depth": [5, 4], "center_voxel": 11},
    "=": {"voxel": 10, "depth": [5, 4], "center_voxel": 11},
    "W": {"voxel": 3, "depth": [4, 5]},
    "M": {"voxel": 10, "depth": [5, 4]},
    "|": {"ladder": true, "model": "nc/ladder"},
    "D": {"boss_door": true, "voxel": 4, "depth": [5, 4], "model": "nc/boss_door_frame"},
    "V": {"voxel": 4, "depth": [5, 4], "barrier": "volt"},
    "B": {"voxel": 6, "depth": [5, 4], "barrier": "blast"},
    "G": {"voxel": 7, "depth": [5, 4], "barrier": "phase"},
    "S": {"voxel": 8, "depth": [5, 4], "barrier": "saw"},
    "F": {"voxel": 9, "depth": [5, 4], "hazard": "thermal"},
    "P": {"spawn": true},
    "C": {"checkpoint": true, "model": "nc/checkpoint_off"},
    "H": {"pickup": "health", "model": "nc/pickup_health"},
    "+": {"pickup": "energy", "model": "nc/pickup_energy"},
    "d": {"entity": "drone", "model": "nc/enemy_drone", "hp": 4},
    "t": {"entity": "turret", "model": "nc/enemy_turret", "hp": 5},
    "w": {"entity": "walker", "model": "nc/enemy_walker", "hp": 6},
    "X": {"entity": "boss", "role": "boss", "model": "nc/boss_ghost", "hp": 28}
}
grid:
    "WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW"
    "W....................................W..........................W...............................WWWWWWWWWWWWWWWWWWWWWWWW"
    "W....................................W..........................W...............................WWWWWWWWWWWWWWWWWWWWWWWW"
    "W....................................W..........................W...............................W......................W"
    "W....................................W..........................W...............................W......................W"
    "W....................................W..........................W...............................W......................W"
    "W....................................W..........................W...............................W......................W"
    "W....................................W..........................W...............................W......................W"
    "W....................................W..........................W...............................W......................W"
    "W....................................W..........................W...............................W......................W"
    "W..........................t.........W..........................W...................H...........W......................W"
    "W.................==|==============..G..........................V..............==|=====.........W......................W"
    "W...................|................G........======............V................|..............D..====...........====.W"
    "W...................|................G..........................V................|..............D......................W"
    "W...................|................G..........................V................|..............D......................W"
    "W..P........d.......|................G...+..............C.......V....w...........|.........C..H.D................X.....W"
    "W############################################.........###################......#########################################"
    "WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW.........WWWWWWWWWWWWWWWWWWW......WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW"

@SideMap/lvl_09_bg
plane_y = 2.4
legend = {
    ".": {},
    "T": {"model": "nc/bg_tower", "y": 1.6, "scale": 1.05},
    "D": {"model": "nc/bg_dome", "y": 2.0, "scale": 1.05},
    "I": {"model": "nc/bg_pipe", "y": 2.6, "scale": 1.0},
    "P": {"model": "nc/bg_sign_pink", "y": 3.0, "scale": 1.0},
    "C": {"model": "nc/bg_sign_cyan", "y": 3.0, "scale": 1.0},
    "A": {"model": "nc/bg_arch", "y": 2.8, "scale": 1.05},
    "O": {"model": "nc/bg_orb", "y": 2.2, "scale": 1.05},
    "Y": {"model": "nc/bg_pylon", "y": 2.4, "scale": 1.05}
}
grid:
    "............................................................"
    "............................................................"
    "............................................................"
    "............................................................"
    "......O.................O.................O...........O....."
    "............................................................"
    "........P...........C...........P...........C..............."
    "............................................................"
    "............................................................"
    "............................................................"
    "............................................................"
    "............................................................"
    "............................................................"
    "............................................................"
    "..D....T....D....T....D....T....D....T....D....T....D....T.."
    "............................................................"
levels/10_hydra.rune
# Level 10: IRON HYDRA — Mecha Assembly Trench (NEEDS: HYPER SAW + NOVA BREAKER)
@Map/sky_10
floor = "#0c1008"
sky = {"seed":110,"zenith":"#090c06","horizon":"#241f0d","cloud":"#1a361a","speed":0.04}
legend = {".":{}}
grid:
    "..."
    "..."
    "..."

@SideMap/lvl_10_fg
plane_y = 7
depth_y = 20
materials = ["nc/deck","nc/deck_pink","nc/wall_conduit","nc/volt_gate","nc/cryo_ice","nc/blast_wall","nc/phase_gate","nc/saw_gate","nc/thermal_vent","nc/mag_block","nc/lane_conduit"]
legend = {
    ".": {},
    "#": {"voxel": 2, "depth": [5, 4], "center_voxel": 11},
    "=": {"voxel": 1, "depth": [5, 4], "center_voxel": 11},
    "W": {"voxel": 3, "depth": [4, 5]},
    "M": {"voxel": 10, "depth": [5, 4]},
    "|": {"ladder": true, "model": "nc/ladder"},
    "D": {"boss_door": true, "voxel": 4, "depth": [5, 4], "model": "nc/boss_door_frame"},
    "V": {"voxel": 4, "depth": [5, 4], "barrier": "volt"},
    "B": {"voxel": 6, "depth": [5, 4], "barrier": "blast"},
    "G": {"voxel": 7, "depth": [5, 4], "barrier": "phase"},
    "S": {"voxel": 8, "depth": [5, 4], "barrier": "saw"},
    "F": {"voxel": 9, "depth": [5, 4], "hazard": "thermal"},
    "P": {"spawn": true},
    "C": {"checkpoint": true, "model": "nc/checkpoint_off"},
    "H": {"pickup": "health", "model": "nc/pickup_health"},
    "+": {"pickup": "energy", "model": "nc/pickup_energy"},
    "d": {"entity": "drone", "model": "nc/enemy_drone", "hp": 4},
    "t": {"entity": "turret", "model": "nc/enemy_turret", "hp": 5},
    "w": {"entity": "walker", "model": "nc/enemy_walker", "hp": 6},
    "X": {"entity": "boss", "role": "boss", "model": "nc/boss_hydra", "hp": 30}
}
grid:
    "WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW"
    "W....................................W................................W.........................WWWWWWWWWWWWWWWWWWWWWWWW"
    "W....................................W................................W.........................WWWWWWWWWWWWWWWWWWWWWWWW"
    "W....................................W................................W.........................W......................W"
    "W....................................W................................W.........................W......................W"
    "W....................................W................................W.........................W......................W"
    "W....................................W................................W.........................W......................W"
    "W....................................W................................W.........................W......................W"
    "W....................................W................................W.........................W......................W"
    "W....................................W................................W.........................W......................W"
    "W....................................W................................W...........H.............W......................W"
    "W...........................d........S................................B...==|==========.........W......................W"
    "W...................==|==========....S.......=========|=..............B.....|...................D......................W"
    "W.....................|..............S................|...............B.....|...................D......======..........W"
    "W.....................|..............S................|...............B.....|...................D......................W"
    "W..P.........w........|..............S................|....C.....t....B.....|..............C..H.D................X.....W"
    "W############################################.......###########################.########################################"
    "WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW.......WWWWWWWWWWWWWWWWWWWWWWWWWWW.WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW"

@SideMap/lvl_10_bg
plane_y = 2.4
legend = {
    ".": {},
    "T": {"model": "nc/bg_tower", "y": 1.6, "scale": 1.05},
    "D": {"model": "nc/bg_dome", "y": 2.0, "scale": 1.05},
    "I": {"model": "nc/bg_pipe", "y": 2.6, "scale": 1.0},
    "P": {"model": "nc/bg_sign_pink", "y": 3.0, "scale": 1.0},
    "C": {"model": "nc/bg_sign_cyan", "y": 3.0, "scale": 1.0},
    "A": {"model": "nc/bg_arch", "y": 2.8, "scale": 1.05},
    "O": {"model": "nc/bg_orb", "y": 2.2, "scale": 1.05},
    "Y": {"model": "nc/bg_pylon", "y": 2.4, "scale": 1.05}
}
grid:
    "............................................................"
    "............................................................"
    "............................................................"
    "............................................................"
    "......O.................O.................O...........O....."
    "............................................................"
    "........Y...........P...........Y...........P..............."
    "............................................................"
    "............................................................"
    "............................................................"
    "............................................................"
    "............................................................"
    "............................................................"
    "............................................................"
    "..A....I....A....I....A....I....A....I....A....I....A....I.."
    "............................................................"
levels/11_prism.rune
# Level 11: PRISM ARCHON — Orbital Laser Array (NEEDS: MAG CLAW + PHASE BEAM + CRYO LANCE)
@Map/sky_11
floor = "#07061a"
sky = {"seed":111,"zenith":"#050412","horizon":"#181340","cloud":"#1e375e","speed":0.05}
legend = {".":{}}
grid:
    "..."
    "..."
    "..."

@SideMap/lvl_11_fg
plane_y = 7
depth_y = 20
materials = ["nc/deck","nc/deck_pink","nc/wall","nc/volt_gate","nc/cryo_ice","nc/blast_wall","nc/phase_gate","nc/saw_gate","nc/thermal_vent","nc/mag_block","nc/lane_grid"]
legend = {
    ".": {},
    "#": {"voxel": 10, "depth": [5, 4], "center_voxel": 11},
    "=": {"voxel": 1, "depth": [5, 4], "center_voxel": 11},
    "W": {"voxel": 3, "depth": [4, 5]},
    "M": {"voxel": 10, "depth": [5, 4]},
    "|": {"ladder": true, "model": "nc/ladder"},
    "D": {"boss_door": true, "voxel": 4, "depth": [5, 4], "model": "nc/boss_door_frame"},
    "V": {"voxel": 4, "depth": [5, 4], "barrier": "volt"},
    "B": {"voxel": 6, "depth": [5, 4], "barrier": "blast"},
    "G": {"voxel": 7, "depth": [5, 4], "barrier": "phase"},
    "S": {"voxel": 8, "depth": [5, 4], "barrier": "saw"},
    "F": {"voxel": 9, "depth": [5, 4], "hazard": "thermal"},
    "P": {"spawn": true},
    "C": {"checkpoint": true, "model": "nc/checkpoint_off"},
    "H": {"pickup": "health", "model": "nc/pickup_health"},
    "+": {"pickup": "energy", "model": "nc/pickup_energy"},
    "d": {"entity": "drone", "model": "nc/enemy_drone", "hp": 4},
    "t": {"entity": "turret", "model": "nc/enemy_turret", "hp": 5},
    "w": {"entity": "walker", "model": "nc/enemy_walker", "hp": 6},
    "X": {"entity": "boss", "role": "boss", "model": "nc/boss_prism", "hp": 30}
}
grid:
    "WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW"
    "W...........................................W...................................................WWWWWWWWWWWWWWWWWWWWWWWW"
    "W...........................................W...................................................WWWWWWWWWWWWWWWWWWWWWWWW"
    "W...........................................W...................................................W......................W"
    "W...........................................W...................................................W......................W"
    "W...........................................W...................................................W......................W"
    "W...........................................W...................................................W......................W"
    "W...........................................W...................................................W......................W"
    "W...........................................W...................................................W......................W"
    "W...........................t...............W...................................................W......................W"
    "W......................==========|==........W................................+..................W.......====...........W"
    "W......................W.........|..........G..............d..........==|==========.............W......................W"
    "W......................W.........|..........G...........................|.......................D......................W"
    "W......................W.........|..........G...........................|.......................D..===............====.W"
    "W......................W.........|..........G...........................|.......................D......................W"
    "W..P.......d...........W.........|..........G....C......................|..........w.......C..H.D................X.....W"
    "W##################################...###############FFFFFFFFFFFFF######################################################"
    "WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW...WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW"

@SideMap/lvl_11_bg
plane_y = 2.4
legend = {
    ".": {},
    "T": {"model": "nc/bg_tower", "y": 1.6, "scale": 1.05},
    "D": {"model": "nc/bg_dome", "y": 2.0, "scale": 1.05},
    "I": {"model": "nc/bg_pipe", "y": 2.6, "scale": 1.0},
    "P": {"model": "nc/bg_sign_pink", "y": 3.0, "scale": 1.0},
    "C": {"model": "nc/bg_sign_cyan", "y": 3.0, "scale": 1.0},
    "A": {"model": "nc/bg_arch", "y": 2.8, "scale": 1.05},
    "O": {"model": "nc/bg_orb", "y": 2.2, "scale": 1.05},
    "Y": {"model": "nc/bg_pylon", "y": 2.4, "scale": 1.05}
}
grid:
    "............................................................"
    "............................................................"
    "............................................................"
    "............................................................"
    "......O.................O.................O...........O....."
    "............................................................"
    "........C...........P...........C...........P..............."
    "............................................................"
    "............................................................"
    "............................................................"
    "............................................................"
    "............................................................"
    "............................................................"
    "............................................................"
    "..T....D....T....D....T....D....T....D....T....D....T....D.."
    "............................................................"
levels/12_omega.rune
# Level 12: OMEGA OVERLORD — Neon Citadel Nexus (NEEDS: ALL 6 INTRO SKILLS)
@Map/sky_12
floor = "#100516"
sky = {"seed":112,"zenith":"#0a030f","horizon":"#380d2d","cloud":"#4d1740","speed":0.05}
legend = {".":{}}
grid:
    "..."
    "..."
    "..."

@SideMap/lvl_12_fg
plane_y = 7
depth_y = 20
materials = ["nc/deck","nc/deck_pink","nc/wall_foundry","nc/volt_gate","nc/cryo_ice","nc/blast_wall","nc/phase_gate","nc/saw_gate","nc/thermal_vent","nc/mag_block","nc/lane_signal"]
legend = {
    ".": {},
    "#": {"voxel": 2, "depth": [5, 4], "center_voxel": 11},
    "=": {"voxel": 10, "depth": [5, 4], "center_voxel": 11},
    "W": {"voxel": 3, "depth": [4, 5]},
    "M": {"voxel": 10, "depth": [5, 4]},
    "|": {"ladder": true, "model": "nc/ladder"},
    "D": {"boss_door": true, "voxel": 4, "depth": [5, 4], "model": "nc/boss_door_frame"},
    "V": {"voxel": 4, "depth": [5, 4], "barrier": "volt"},
    "B": {"voxel": 6, "depth": [5, 4], "barrier": "blast"},
    "G": {"voxel": 7, "depth": [5, 4], "barrier": "phase"},
    "S": {"voxel": 8, "depth": [5, 4], "barrier": "saw"},
    "F": {"voxel": 9, "depth": [5, 4], "hazard": "thermal"},
    "P": {"spawn": true},
    "C": {"checkpoint": true, "model": "nc/checkpoint_off"},
    "H": {"pickup": "health", "model": "nc/pickup_health"},
    "+": {"pickup": "energy", "model": "nc/pickup_energy"},
    "d": {"entity": "drone", "model": "nc/enemy_drone", "hp": 5},
    "t": {"entity": "turret", "model": "nc/enemy_turret", "hp": 6},
    "w": {"entity": "walker", "model": "nc/enemy_walker", "hp": 7},
    "X": {"entity": "boss", "role": "boss", "model": "nc/boss_omega", "hp": 36}
}
grid:
    "WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW"
    "W.......................W.........................W...............W...............W.............WWWWWWWWWWWWWWWWWWWWWWWW"
    "W.......................W.........................W...............W...............W.............WWWWWWWWWWWWWWWWWWWWWWWW"
    "W.......................W.........................W...............W...............W.............W......................W"
    "W.......................W.........................W...............W...............W.............W......................W"
    "W.......................W.........................W...............W...............W.............W......................W"
    "W.......................W.........................W...............G...............W.............W......................W"
    "W.......................W.........................W...............G...............W.............W......................W"
    "W.......................W.........................W...............G...............W.............W......................W"
    "W.......................W.........................W...............G....t..........W.............W......................W"
    "W.......................W.........................W...........===========|=.......W.............W......................W"
    "W.......................V.........................B...........W..........|........S.............W......................W"
    "W............==|======..V.........................B...........W..........|........S.............D..====...........====.W"
    "W..............|........V.........................B...........W..........|........S.............D......................W"
    "W..............|........V.........................B...........W..........|........S.............D......................W"
    "W..P.......d...|........V......................+..B....C......W..........|........S...w....C..H.D................X.....W"
    "W############################......#FFFFFFFFF##############...W#########################################################"
    "WWWWWWWWWWWWWWWWWWWWWWWWWWWWW......WWWWWWWWWWWWWWWWWWWWWWWW....WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW"

@SideMap/lvl_12_bg
plane_y = 2.4
legend = {
    ".": {},
    "T": {"model": "nc/bg_tower", "y": 1.6, "scale": 1.05},
    "D": {"model": "nc/bg_dome", "y": 2.0, "scale": 1.05},
    "I": {"model": "nc/bg_pipe", "y": 2.6, "scale": 1.0},
    "P": {"model": "nc/bg_sign_pink", "y": 3.0, "scale": 1.0},
    "C": {"model": "nc/bg_sign_cyan", "y": 3.0, "scale": 1.0},
    "A": {"model": "nc/bg_arch", "y": 2.8, "scale": 1.05},
    "O": {"model": "nc/bg_orb", "y": 2.2, "scale": 1.05},
    "Y": {"model": "nc/bg_pylon", "y": 2.4, "scale": 1.05}
}
grid:
    "............................................................"
    "............................................................"
    "............................................................"
    "............................................................"
    "......O.................O.................O...........O....."
    "............................................................"
    "........P...........C...........P...........C..............."
    "............................................................"
    "............................................................"
    "............................................................"
    "............................................................"
    "............................................................"
    "............................................................"
    "............................................................"
    "..T....A....T....A....T....A....T....A....T....A....T....A.."
    "............................................................"
lighting.rune
@Logic/neon_circuit

action set_title_lights:
    title_lights = [
        {"x": 15.2, "y": 13.7, "z": 2.8, "color": "#389eff", "radius": 6.5, "intensity": 0.53},
        {"x": 21.1, "y": 10.6, "z": 3.4, "color": "#ff369f", "radius": 5.8, "intensity": 0.57},
        {"x": 9.8, "y": 7.8, "z": 2.4, "color": "#5ced68", "radius": 5.4, "intensity": 0.48},
        {"x": 25.7, "y": 8.4, "z": 3.1, "color": "#ffc83c", "radius": 5.2, "intensity": 0.47}
    ]

action set_select_lights(colors):
    lights = [
        {"x": 12.5, "y": 10, "z": 3.6, "color": "#77ddef", "radius": 4.8, "intensity": 0.42},
        {"x": select_boss.x - 1.1, "y": 9.5, "z": 4.4, "color": "#e1e5ff", "radius": 4.5, "intensity": 0.16},
        {"x": select_boss.x + 2, "y": 7.8, "z": 4.3, "color": colors[0], "radius": 5.8, "intensity": 0.52}
    ]

action set_stage_lights(spawn, colors):
    local key_x = spawn.x + 2.7
    local fill_x = spawn.x + 5.5
    lamps = [
        {"x": key_x, "y": 8.85, "z": spawn.z, "model": "nc/lamp"},
        {"x": fill_x, "y": 8.85, "z": spawn.z, "model": "nc/lamp"}
    ]
    lights = [
        {"x": key_x, "y": 9.65, "z": spawn.z + 1.15, "color": colors[0], "radius": 5.2, "intensity": 0.8},
        {"x": fill_x, "y": 9.7, "z": spawn.z + 1.15, "color": colors[1], "radius": 5, "intensity": 0.76},
        {"x": level_width * 0.26, "y": 9.3, "z": 3.9, "color": colors[1], "radius": 9.5, "intensity": 0.35},
        {"x": level_width * 0.64, "y": 9.3, "z": 3.5, "color": colors[0], "radius": 9.5, "intensity": 0.38}
    ]
    for i in range(0, min(2, checkpoints.length)):
        local cp = checkpoints[i]
        lights.push({"x": cp.x, "y": 8.7, "z": cp.z + 1.1, "color": "#67eafa", "radius": 6.2, "intensity": 0.54})
    if boss_gate_x >= 0:
        lights.push({"x": boss_gate_x, "y": 9.4, "z": 4, "color": "#ff634e", "radius": 6.4, "intensity": 0.53})
    if boss_entity.alive:
        lights.push({"x": boss_entity.x, "y": 9.6, "z": boss_entity.z + 1.6, "color": colors[1], "radius": 8, "intensity": 0.51})

action start_overload_light:
    lights = [
        {"x": boss_entity.x, "y": 9.6, "z": boss_entity.z + 1.15, "color": "#ff9430", "radius": 8.5, "intensity": 0.95}
    ]

action update_overload_light:
    lights[0].intensity = 0.46 + 0.49 * (1 - (boss_defeat_ticks % 12) / 12)

action shift_overload_light(progress):
    lights[0].y = 9.6 - progress * 5.8
    lights[0].z = boss_entity.z + 1.15 + (escape_deck_z + 1.75 - boss_entity.z - 1.15) * progress
    lights[0].intensity = 0.85 * (1 - progress)

action set_deck_lights:
    lights = [
        {"x": power_capsule.x, "y": power_capsule.y, "z": escape_deck_z + 1.55, "color": "#35eeff", "radius": 6.5, "intensity": 0.9},
        {"x": player.x, "y": player.y, "z": escape_deck_z + 1.25, "color": "#85bcff", "radius": 4.2, "intensity": 0.38}
    ]

    for i in range(0, 6):
        local x = power_capsule.x + 8 + (escape_entry_x - power_capsule.x - 8) * i / 5
        lights.push({"x": x, "y": 3.7, "z": escape_deck_z + 1.35, "color": "#ff2845", "radius": 12, "intensity": 0.3})

action update_deck_lights:
    lights[1].x = player.x
    lights[1].y = player.y
    # A gentle pulse under one flash per second keeps the route readable.
    local peak = escape_time_limit - escape_ticks <= 450 ? 0.8 : 0.68
    local pulse = (1 + cos(escape_ticks * 8)) * 0.5
    for i in range(2, lights.length):
        lights[i].intensity = 0.2 + (peak - 0.2) * pulse
logic.rune
# Core game state, physics, abilities, in-engine menus, HUD, and persistence
@Logic/neon_circuit
state:
    status = "title"
    campaign = {
        "master_clear": false,
        "super_code": false,
        "defeated": {
            "01": false, "02": false, "03": false, "04": false, "05": false, "06": false,
            "07": false, "08": false, "09": false, "10": false, "11": false, "12": false
        },
        "weapons": {
            "volt": false,
            "cryo": false,
            "mag": false,
            "nova": false,
            "phase": false,
            "saw": false
        }
    }
    stages = []
    selected_stage = 0
    mobile_stage_selected = [true, false, false, false, false, false, false, false, false, false, false, false]
    current_stage = 0
    selected_title = "01 VOLT VIPER"
    selected_sector = "NEON POWER GRID"
    selected_hint = "INTRO UNIT - UNLOCKS: VOLT SURGE (AIR DASH + RELAY CHARGE)"
    selected_status_label = "TIER 1 INTRO"
    select_spin = 0
    select_cooldown = 0
    title_selected = 0
    title_confirm = false
    has_progress = false
    pause_selected = 0
    defeated_count = 0
    master_keys = 0
    super_code_notice = ""
    master_active = false
    master_first = false
    master_gate_selection = 0
    master_just_unlocked = false
    master_props = []
    world = null
    lights = []
    title_lights = []
    lamps = []
    level_width = 120
    level_height = 18
    level_map = "sky_title"
    player = {"x": 4.5, "y": 7, "z": 3, "angle": 0, "pitch": 0, "vz": 0}
    checkpoint = {"x": 4.5, "z": 3}
    camera = {"x": 18, "y": 18, "z": 5, "angle": 270, "pitch": 0}
    avatar = {"x": 12.5, "y": 7, "z": 2.1, "model": "nc/hero_idle", "angle": 0, "visible": true}
    weapon_model = {"x": 13.0, "y": 7.1, "z": 2.9, "model": "nc/gun_buster", "angle": 0, "visible": false}
    victory_item = {"x": 12.5, "y": 7, "z": 4.0, "model": "nc/victory_orb", "angle": 0, "scale": 1, "visible": false}
    power_capsule = {"x": 4.5, "y": 7, "z": 2.0, "model": "nc/power_capsule", "angle": 0, "scale": 1.15, "visible": false}
    escape_floor = []
    volt_return_props = []
    sector_return_props = []
    return_challenge = null
    volt_dash_ticks = 0
    volt_dash_used = false
    volt_dash_ready = false
    # Clear the tallest existing parallax tower without moving any scenery.
    escape_deck_z = 15
    escape_flip_ticks = 0
    escape_ticks = 0
    escape_time_limit = 2250
    escape_music_tempo = 132
    escape_next_alarm = 24
    escape_failure = ""
    failure_selected = 0
    escape_active = false
    escape_first_person = false
    escape_zoom_ticks = 0
    escape_zoom_fade = 0
    view_weapon = null
    escape_angle = 180
    escape_entry_x = 0
    select_pedestal = {"x": 21.5, "y": 7, "z": 2.0, "model": "nc/pedestal", "scale": 1.15, "visible": true}
    select_boss = {"x": 21.5, "y": 7, "z": 2.9, "model": "nc/boss_volt", "angle": 0, "scale": 1.2, "visible": true}
    title_monument = {"x": 18.0, "y": 13.5, "z": 0.0, "model": "nc/title_monument", "angle": 0, "scale": 1.15, "visible": false}
    title_scenery = []
    scenery = []
    barriers = []
    barriers_fx = []
    hazards = []
    hazards_fx = []
    ladders = []
    ladder_caps = []
    boss_doors = []
    boss_door_locked = false
    boss_door_opened = false
    boss_gate_x = -1
    boss_shutter_fx = {"visible": false}
    checkpoints = []
    pickups = []
    enemies = []
    respawn_beam = {"x": 4.5, "y": 7, "z": 3, "model": "nc/teleport_beam", "angle": 0, "scale": 1, "visible": false}
    on_ladder = false
    climb_phase = 0
    death_ticks = 0
    pan_ticks = 0
    respawn_ticks = 0
    boss_entity = {"visible": false, "alive": false, "hp": 0, "max_hp": 1, "dissolve": 0}
    boss_satellites = []
    boss_active = false
    boss_defeated_now = false
    boss_defeat_ticks = 0
    victory_ticks = 0
    victory_input_held = false
    boss_phase = 0
    boss_clock = 0
    boss_state = "idle"
    boss_state_ticks = 0
    boss_hurt_ticks = 0
    boss_land_ticks = 0
    boss_grounded = true
    shots = []
    enemy_shots = []
    effects = []
    facing = 1
    velocity = 0
    grounded = true
    ducking = false
    jumps = 0
    jump_held = false
    coyote_ticks = 0
    jump_buffer = 0
    cam_shake = 0
    dash_ticks = 0
    dash_ready = true
    dash_held = false
    prev_w_held = false
    next_w_held = false
    wheel_held = false
    wheel_open = false
    wheel_cooldown = 0
    wheel_last_dir = 0
    wheel_ticks = 0
    cooldown = 0
    invulnerable = 0
    hurt_ticks = 0
    health = 8
    max_health = 8
    lives = 3
    active_weapon = "buster"
    weapon_energy = 28
    ticks = 0
    notice_text = ""
    notice_ticks = 0
    music_track = ""
    ui = {
        "style": "floating",
        "heading": "NEON CIRCUIT",
        "meters": [],
        "objective": "DISMANTLE ALL 12 ROGUE ROBOTS",
        "detail": "6 INTRO ROBOTS UNLOCK GUNS & SKILLS",
        "notice": "",
        "prompt": "PRESS ENTER FOR STAGE SELECT",
        "panel": null
    }
    pause_ui = {
        "style": "floating",
        "heading": "SYSTEM PAUSED",
        "meters": [],
        "objective": "CLEARED 0/12 ROBOTS",
        "detail": "ACTIVE GUN: PULSE BUSTER",
        "notice": "",
        "prompt": "P RESUME | T STAGE SELECT",
        "panel": null
    }
    touch_ready = false
    touch_dash_ready = false
    touch_turn_ready = false
    mobile_title_hidden = false
    mobile_continue_hidden = true
    mobile_new_hidden = false
    mobile_confirm_hidden = true
    mobile_select_hidden = true
    progress_label = "CLEARED 0/12"
    weapon_label = "PULSE BUSTER"

action build_weapon_wheel:
    w_items = [
        {"label": "1:BUSTER", "sub": "PLASMA", "color": 62975, "selected": active_weapon == "buster", "locked": false, "action": "equip_weapon", "args": ["buster"]},
        {"label": "2:VOLT", "sub": "SURGE", "color": 16770560, "selected": active_weapon == "volt", "locked": campaign.weapons.volt != true, "action": "equip_weapon", "args": ["volt"]},
        {"label": "3:CRYO", "sub": "SPEAR", "color": 9370367, "selected": active_weapon == "cryo", "locked": campaign.weapons.cryo != true, "action": "equip_weapon", "args": ["cryo"]},
        {"label": "4:MAG", "sub": "CLAW", "color": 11544319, "selected": active_weapon == "mag", "locked": campaign.weapons.mag != true, "action": "equip_weapon", "args": ["mag"]},
        {"label": "5:NOVA", "sub": "BREAKER", "color": 16739072, "selected": active_weapon == "nova", "locked": campaign.weapons.nova != true, "action": "equip_weapon", "args": ["nova"]},
        {"label": "6:PHASE", "sub": "BEAM", "color": 16719515, "selected": active_weapon == "phase", "locked": campaign.weapons.phase != true, "action": "equip_weapon", "args": ["phase"]},
        {"label": "7:SAW", "sub": "CUTTER", "color": 3800852, "selected": active_weapon == "saw", "locked": campaign.weapons.saw != true, "action": "equip_weapon", "args": ["saw"]}
    ]
    w_wheel = {
        "title": "WEAPON WHEEL",
        "items": w_items,
        "active": wheel_open == true || wheel_ticks > 0
    }

action refresh_ui:
    mobile_stage_selected = [selected_stage == 0, selected_stage == 1, selected_stage == 2, selected_stage == 3, selected_stage == 4, selected_stage == 5, selected_stage == 6, selected_stage == 7, selected_stage == 8, selected_stage == 9, selected_stage == 10, selected_stage == 11]
    mobile_title_hidden = status != "title"
    mobile_continue_hidden = status != "title" || !has_progress || title_confirm
    mobile_new_hidden = status != "title" || title_confirm
    mobile_confirm_hidden = status != "title" || !title_confirm
    mobile_select_hidden = status != "select"
    touch_ready = status == "playing"
    touch_dash_ready = status == "playing" && (campaign.weapons.volt == true || (escape_active && current_stage == 0 && volt_dash_ready))
    touch_turn_ready = status == "playing" && (escape_first_person || (master_active && master_first))
    progress_label = "CLEARED " + defeated_count + "/12"
    weapon_label = active_weapon == "volt" ? "VOLT SURGE" : (active_weapon == "cryo" ? "CRYO LANCE" : (active_weapon == "mag" ? "MAG CLAW" : (active_weapon == "nova" ? "NOVA BREAKER" : (active_weapon == "phase" ? "PHASE BEAM" : (active_weapon == "saw" ? "HYPER SAW" : "PULSE BUSTER")))))
    pause_ui = {
        "style": "floating",
        "heading": "",
        "meters": [],
        "objective": "CLEARED " + defeated_count + "/12 ROBOTS",
        "detail": "ACTIVE GUN: " + weapon_label + " // LIVES: " + lives,
        "notice": "",
        "prompt": "UP/DOWN SELECT | ENTER/CLICK CONFIRM | ESC/P RESUME",
        "panel": {
            "title": "SYSTEM PAUSED // " + selected_title,
            "body": "ACTIVE WEAPON: " + weapon_label + " // HP: " + health + "/" + max_health + " // LIVES: " + lives + "|PROGRESS: " + defeated_count + "/12 ROGUE ROBOTS DISMANTLED",
            "choices": [
                "RESUME MISSION (P / ESC)",
                "RESTART SECTOR",
                "STAGE SELECT (T)",
                "TOGGLE SOUND (M)",
                "QUIT TO TITLE SCREEN"
            ],
            "choiceActions": [
                {"action": "resume_game"},
                {"action": "restart_current_stage"},
                {"action": "return_to_select"},
                {"action": "host.mute"},
                {"action": "return_to_title"}
            ],
            "selected": pause_selected,
            "footer": "UP/DOWN + ENTER OR CLICK OPTION"
        }
    }
    if status == "playing":
        call build_weapon_wheel
    if status == "playing" && master_active:
        call refresh_master_ui
        stop when true
    if status == "master_gate":
        call refresh_master_gate_ui
        stop when true
    if status == "playing" && escape_active:
        local dist = floor(distance(player, power_capsule))
        local progress = floor(100 * (1 - dist / max(1, escape_entry_x - power_capsule.x)))
        local remaining = max(0, escape_time_limit - escape_ticks)
        meters = [
            {"label": "AXEL", "value": health, "max": max_health, "color": 62975, "display": "pips", "icon": "nc/hp_full", "emptyIcon": "nc/hp_empty"},
            {"label": "CAPSULE", "value": clamp(progress, 0, 100), "max": 100, "color": 16770560, "display": "bar"}
        ]
        ui = {
            "style": "floating",
            "heading": "",
            "meters": meters,
            "countdown": remaining / 30,
            "reticle": escape_first_person && !wheel_open,
            "wheel": w_wheel,
            "objective": "CAPSULE " + dist + "M  //  LIVES " + lives,
            "detail": "GLASS DECK // " + weapon_label,
            "notice": notice_ticks > 0 ? notice_text : "",
            "prompt": escape_first_person ? "WASD MOVE | LEFT/RIGHT TURN | SPACE JUMP | X FIRE | TAB WHEEL" : "WASD / ARROWS MOVE | SPACE JUMP | X FIRE | TAB WHEEL",
            "panel": null
        }
        stop when true
    if status == "escape_retry":
        ui = {
            "style": "floating",
            "meters": [],
            "objective": "",
            "detail": "",
            "notice": "",
            "prompt": "",
            "panel": {
                "title": "EXTRACTION FAILED // " + escape_failure,
                "body": "LIVES LEFT: " + lives + "|TRY AGAIN FROM THE BOSS ROOM WITH A FRESH TIMER.",
                "choices": ["TRY AGAIN", "STAGE SELECT"],
                "choiceActions": [{"action": "retry_escape"}, {"action": "open_select"}],
                "selected": failure_selected,
                "footer": "UP/DOWN SELECT | ENTER OR CLICK CONFIRM"
            }
        }
        stop when true
    match status:
        "title":
            title_panel = {
                "title": "MAIN SYSTEM // READY",
                "body": "NO SAVE DATA YET // DEPLOY TO START MISSION",
                "choices": ["NEW GAME"],
                "choiceActions": [{"action": "start_new_game"}],
                "selected": 0,
                "footer": "PRESS ENTER OR CLICK NEW GAME"
            }
            if has_progress && !title_confirm:
                title_panel = {
                    "title": "MAIN SYSTEM // SAVE DATA FOUND",
                    "body": "CAMPAIGN PROGRESS: " + defeated_count + "/12 ROGUE ROBOTS",
                    "choices": ["CONTINUE (" + defeated_count + "/12 CLEARED)", "NEW GAME"],
                    "choiceActions": [
                        {"action": "continue_game"},
                        {"action": "request_new_game"}
                    ],
                    "selected": title_selected,
                    "footer": "ARROWS / W-S MOVE | ENTER / CLICK CONFIRM"
                }
            if has_progress && title_confirm:
                title_panel = {
                    "title": "WARNING // ERASE PROGRESS?",
                    "body": "ARE YOU SURE? THIS WILL ERASE LAST PROGRESS.|" + defeated_count + "/12 ROBOTS + UNLOCKED WEAPONS WILL BE LOST.",
                    "choices": ["NO, KEEP PROGRESS", "YES, ERASE AND NEW GAME"],
                    "choiceActions": [
                        {"action": "cancel_new_game"},
                        {"action": "confirm_new_game"}
                    ],
                    "selected": title_selected,
                    "footer": "ESC CANCEL | ARROWS/W-S MOVE | ENTER/CLICK CONFIRM"
                }
            ui = {
                "style": "floating",
                "heading": "NEON CIRCUIT",
                "meters": [],
                "objective": "DISMANTLE ALL 12 ROGUE ROBOTS",
                "detail": "6 INTRO ROBOTS UNLOCK GUNS & SKILLS",
                "notice": "",
                "prompt": "PRESS ENTER OR CLICK TO DEPLOY",
                "panel": title_panel
            }
        "select":
            grid_items = []
            for i in range(0, stages.length):
                st = stages[i]
                cleared = campaign.defeated[st.code] == true
                badge = cleared ? "CLEAR" : (st.tier == 1 ? "T1 INTRO" : "T2 MASTR")
                grid_items.push({
                    "label": st.short,
                    "badge": badge,
                    "color": st.color,
                    "selected": i == selected_stage,
                    "action": "pick_or_launch_stage",
                    "args": [i]
                })
            ui = {
                "style": "floating",
                "heading": "",
                "meters": [],
                "objective": selected_hint,
                "detail": selected_title + " // " + selected_sector + " [" + selected_status_label + "]",
                "notice": "",
                "grid": {
                    "title": "STAGE SELECT (" + defeated_count + "/12 CLEARED) - CLICK OR ARROWS + ENTER",
                    "columns": 6,
                    "items": grid_items,
                    "footer": "CLICK CARD TO PREVIEW | CLICK AGAIN OR PRESS ENTER TO DEPLOY"
                },
                "prompt": "ARROWS / CLICK SELECT | ENTER LAUNCH | G MASTER GATE | ESC TITLE",
                "panel": null
            }
        "boss_dying":
            st = stages[current_stage]
            ui = {
                "style": "floating",
                "heading": "",
                "meters": [],
                "objective": "TARGET CRITICAL // " + st.name,
                "detail": "REACTOR OVERLOAD IN PROGRESS...",
                "notice": "ROBOT CRITICAL // DIMENSIONAL FLIP IMMINENT",
                "prompt": "",
                "panel": null
            }
        "escape_flip":
            st = stages[current_stage]
            ui = {
                "style": "floating",
                "heading": "",
                "meters": [],
                "objective": "DIMENSIONAL FLIP // " + st.name,
                "detail": "THE DECK IS ROTATING",
                "notice": "",
                "prompt": "",
                "panel": null
            }
        "escape_zoom":
            ui = {"style": "floating", "meters": [], "objective": "", "detail": "", "notice": "", "prompt": "", "panel": null,
                "cinema": {"lines": [], "offset": 0, "fade": escape_zoom_fade}}
        "boss_victory":
            st = stages[current_stage]
            v_body = st.unlocks != "" ? ("NEW WEAPON ACQUIRED: " + st.unlock_label + "|" + st.skill_desc + "|ALL PROGRESS SAVED!") : ("MASTER CORE SECURED: " + st.unlock_label + "|PROGRESS: " + defeated_count + "/12 ROGUE ROBOTS DISMANTLED")
            ui = {
                "style": "floating",
                "heading": "",
                "meters": [],
                "objective": st.code + " " + st.name + " DISMANTLED!",
                "detail": "CLEARED " + defeated_count + "/12 ROBOTS",
                "notice": "",
                "prompt": "PRESS ENTER OR FIRE TO CONTINUE",
                "panel": {
                    "title": "VICTORY // " + st.name + " DEFEATED!",
                    "body": v_body,
                    "choices": ["CONTINUE TO STAGE SELECT"],
                    "choiceActions": [{"action": "finish_boss_victory"}],
                    "selected": 0,
                    "footer": "PRESS ENTER / FIRE / CLICK TO CONTINUE"
                }
            }
        "stage_clear":
            st = stages[current_stage]
            ui = {
                "style": "floating",
                "heading": "SECTOR CLEARED",
                "meters": [],
                "objective": st.name + " DISMANTLED!",
                "detail": "PROGRESS: " + defeated_count + "/12 ROBOTS",
                "notice": "",
                "prompt": "PRESS ENTER OR CLICK FOR STAGE SELECT",
                "panel": {
                    "title": "SECTOR CLEARED // " + st.code + " " + st.name,
                    "body": st.unlocks != "" ? ("UNLOCKED: " + st.unlock_label + " (" + st.skill_desc + ")") : (st.unlock_label + " SECURED!"),
                    "choices": ["OPEN STAGE SELECT"],
                    "choiceActions": [{"action": "open_select"}],
                    "selected": 0,
                    "footer": "PRESS ENTER OR CLICK TO CONTINUE"
                }
            }
        "master_credits":
            ui = {"style": "floating", "heading": "NEON CIRCUIT", "meters": [], "objective": "",
                "detail": "", "notice": "", "prompt": "ENTER TO CONTINUE", "panel": null,
                "cinema": {"lines": ["THE CITADEL IS FREE.", "", "Game by Dave Thomas", "", "THANKS FOR PLAYING"],
                    "offset": min(207, 12 + master_credits_ticks * 0.72), "top": 0.20, "bottom": 0.82,
                    "scale": 2, "spacing": 24, "fade": 0.22}}
        "won":
            ui = {
                "style": "floating",
                "heading": "CITADEL LIBERATED!",
                "meters": [],
                "objective": "THE CONDUCTOR IS OFFLINE",
                "detail": "NEON CIRCUIT COMPLETE",
                "notice": "",
                "prompt": "PRESS ENTER OR CLICK FOR STAGE SELECT",
                "panel": {
                    "title": "CAMPAIGN COMPLETE // MASTER LEVEL CLEARED",
                    "body": "AXEL-09 HAS LIBERATED THE NEON CITADEL!|THE MASTER GATE REMAINS OPEN FOR REPLAYS.|Game by Dave Thomas",
                    "choices": ["RETURN TO STAGE SELECT"],
                    "choiceActions": [{"action": "open_select"}],
                    "selected": 0,
                    "footer": "THANK YOU FOR PLAYING NEON CIRCUIT!"
                }
            }
        "gameover":
            local reason = escape_active ? escape_failure : "CIRCUIT FLATLINED"
            ui = {
                "style": "floating",
                "heading": "GAME OVER",
                "meters": [],
                "objective": "",
                "detail": "",
                "notice": "",
                "prompt": "",
                "panel": {
                    "title": "LIVES 0 // " + reason,
                    "body": "RETRY THE SECTOR OR CHOOSE ANOTHER ROBOT.|SAVED CORES AND WEAPONS ARE KEPT.",
                    "choices": ["RETRY SECTOR", "STAGE SELECT"],
                    "choiceActions": [{"action": "restart_current_stage"}, {"action": "open_select"}],
                    "selected": failure_selected,
                    "footer": "UP/DOWN SELECT | ENTER OR CLICK CONFIRM"
                }
            }
        "playing", "player_dying", "player_panning", "player_respawn":
            st = stages[current_stage]
            hp_color = (health <= 2 && (ticks % 8 < 4)) ? 16719515 : 62975
            meters = [
                {"label": "AXEL", "value": health, "max": max_health, "color": hp_color, "display": "pips", "icon": "nc/hp_full", "emptyIcon": "nc/hp_empty"},
                {"label": weapon_label, "value": weapon_energy, "max": 28, "color": 16719515, "display": "bar"}
            ]
            if boss_active && boss_entity.alive:
                meters.push({"label": st.name, "value": boss_entity.hp, "max": boss_entity.max_hp, "color": 16719515, "display": "bar"})
            sys_notice = notice_ticks > 0 ? notice_text : ""
            if status == "player_dying":
                sys_notice = "CRITICAL DAMAGE // SYSTEM OVERLOAD"
            if status == "player_panning":
                sys_notice = "RETURNING TO CHECKPOINT..."
            if status == "player_respawn":
                sys_notice = "BEAMING AXEL-09 TO SPAWN..."
            ui_prompt = wheel_open ? "HOLD TAB: WEAPON WHEEL | A/D/ARROWS: SELECT | 1-7: QUICK GUN | RELEASE: RESUME" : "A/D MOVE | SPACE JUMP | X FIRE | TAB WEAPON WHEEL | 1-7 GUN"
            ui = {
                "style": "floating",
                "heading": "",
                "meters": meters,
                "objective": "",
                "detail": st.code + " " + st.name + " // LIVES " + lives,
                "notice": sys_notice,
                "slots": [],
                "wheel": w_wheel,
                "prompt": ui_prompt,
                "panel": null
            }

action initialize:
    call build_stage_catalog
    call count_progress
    status = "title"
    call build_title_scene
    call refresh_ui

action play_stage_music(track):
    if music_track != track:
        music_track = track
        music.play track

action stop_stage_music:
    if music_track != "":
        music.stop
        music_track = ""

action wait_ticks(count):
    for i in range(0, count):
        call tick {}

action count_progress:
    c = 0
    for st in stages:
        if campaign.defeated[st.code] == true:
            c = c + 1
    defeated_count = c
    has_progress = c > 0 || campaign.weapons.volt == true || campaign.weapons.cryo == true || campaign.weapons.mag == true || campaign.weapons.nova == true || campaign.weapons.phase == true || campaign.weapons.saw == true

action start:
    stop when status != "title"
    call continue_game

action continue_game:
    stop when status != "title"
    title_confirm = false
    title_selected = 0
    call open_select

action request_new_game:
    if has_progress:
        title_confirm = true
        title_selected = 0
        sound.play "nc_select_move"
        call refresh_ui
        stop when true
    call confirm_new_game

action cancel_new_game:
    title_confirm = false
    title_selected = 0
    sound.play "nc_select_move"
    call refresh_ui

action confirm_new_game:
    campaign = {
        "master_clear": false,
        "super_code": false,
        "defeated": {
            "01": false, "02": false, "03": false, "04": false, "05": false, "06": false,
            "07": false, "08": false, "09": false, "10": false, "11": false, "12": false
        },
        "weapons": {
            "volt": false,
            "cryo": false,
            "mag": false,
            "nova": false,
            "phase": false,
            "saw": false
        }
    }
    super_code_notice = ""
    selected_stage = 0
    active_weapon = "buster"
    title_confirm = false
    title_selected = 0
    call count_progress
    sound.play "nc_select_go"
    call open_select

action start_new_game:
    call confirm_new_game

action restart_current_stage:
    lives = 3
    pause_selected = 0
    sound.play "nc_select_go"
    if master_active:
        call retry_master_run
        stop when true
    call load_stage current_stage

action menu_move(delta):
    if status == "master_gate" && master_keys == 6:
        master_gate_selection = (master_gate_selection + delta + 2) % 2
        sound.play "nc_select_move"
        call refresh_ui
        stop when true
    if status == "escape_retry" || status == "gameover":
        failure_selected = (failure_selected + delta + 2) % 2
        sound.play "nc_select_move"
        call refresh_ui
        stop when true
    if status == "title":
        cnt = title_confirm && has_progress ? 2 : (has_progress ? 2 : 1)
        title_selected = (title_selected + delta + cnt) % cnt
        sound.play "nc_select_move"
        call refresh_ui
        stop when true
    if status == "playing":
        pause_selected = (pause_selected + delta + 5) % 5
        sound.play "nc_select_move"
        call refresh_ui

action back:
    if status == "master_credits":
        call close_master_credits
        stop when true
    if status == "master_gate":
        call open_select
        stop when true
    if status == "escape_retry" || status == "gameover":
        call open_select
        stop when true
    match status:
        "title":
            if title_confirm:
                call cancel_new_game
        "select", "stage_clear", "won":
            sound.play "nc_select_move"
            call return_to_title
        "boss_victory":
            call finish_boss_victory

action resume_game:
    pause_selected = 0
    call refresh_ui

action open_select:
    status = "select"
    title_confirm = false
    title_selected = 0
    pause_selected = 0
    lives = 3
    health = max_health
    boss_active = false
    call count_progress
    call build_select_arena
    call play_stage_music "nc_select"
    call refresh_ui

action return_to_title:
    status = "title"
    boss_active = false
    title_confirm = false
    title_selected = 0
    pause_selected = 0
    call count_progress
    call build_title_scene
    call play_stage_music "nc_title"
    call refresh_ui

action return_to_select:
    call open_select

action advance:
    if status == "master_credits":
        call close_master_credits
        stop when true
    if status == "master_gate" && master_keys == 6 && master_gate_selection == 0:
        call start_master_run
        stop when true
    if status == "master_gate":
        call open_select
        stop when true
    if status == "escape_retry":
        if failure_selected == 1:
            call open_select
            stop when true
        call retry_escape
        stop when true
    match status:
        "gameover":
            if failure_selected == 1:
                call open_select
                stop when true
            call restart_current_stage
        "title":
            if !has_progress:
                call start_new_game
                stop when true
            if title_confirm:
                if title_selected == 1:
                    call confirm_new_game
                    stop when true
                call cancel_new_game
                stop when true
            if title_selected == 1:
                call request_new_game
                stop when true
            call continue_game
        "select":
            sound.play "nc_select_go"
            call load_stage selected_stage
        "boss_victory":
            call finish_boss_victory
        "stage_clear", "won":
            call open_select

action pick_stage(idx):
    if idx >= 0 && idx < 12:
        selected_stage = idx
        sound.play "nc_select_move"
        call refresh_select_preview

action pick_or_launch_stage(idx):
    stop when idx < 0 || idx >= 12
    if selected_stage == idx:
        sound.play "nc_select_go"
        call load_stage idx
        stop when true
    call pick_stage idx

action launch_stage(idx):
    if idx >= 0 && idx < 12:
        selected_stage = idx
        sound.play "nc_select_go"
        call load_stage idx

action lock_boss_door:
    stop when boss_door_locked || boss_doors.length == 0
    boss_door_locked = true
    boss_door_opened = false
    cam_shake = 8
    for d in boss_doors:
        world = voxel_fill(world, [d.x, d.y_start, d.z], [1, d.y_span, 1], d.voxel)
    if boss_gate_x >= 0:
        boss_shutter_fx.z = 2.0
        boss_shutter_fx.visible = false
        call burst boss_gate_x + 0.5, player.z + 1.0, 8
    sound.play "nc_barrier_open"

action unlock_boss_door:
    stop when !boss_door_locked
    boss_door_locked = false
    boss_door_opened = false
    for d in boss_doors:
        world = voxel_fill(world, [d.x, d.y_start, d.z], [1, d.y_span, 1], 0)
    if boss_gate_x >= 0:
        boss_shutter_fx.z = 2.0
        boss_shutter_fx.visible = true

action step_boss_shutter:
    stop when boss_gate_x < 0 || boss_door_locked
    boss_shutter_fx.x = boss_gate_x + 0.5
    boss_shutter_fx.visible = true
    if player.x >= boss_gate_x - 2.6 && !boss_door_opened:
        boss_door_opened = true
        sound.play "nc_barrier_open"
    if player.x < boss_gate_x - 3.2 && boss_door_opened:
        boss_door_opened = false
    target_z = boss_door_opened ? 6.0 : 2.0
    boss_shutter_fx.z = boss_shutter_fx.z + (target_z - boss_shutter_fx.z) * 0.25

action spawn_death_ring(cx, cz, count, spd):
    for i in range(0, count):
        ang = i * (360 / count)
        effects.push({
            "x": cx,
            "y": 7.15,
            "z": max(1.0, cz),
            "dx": cos(ang) * spd,
            "dz": sin(ang) * spd,
            "ttl": 26,
            "life": 26,
            "angle": ang,
            "spin": 12,
            "scale": 0.9,
            "dissolve": 0,
            "model": "nc/death_orb",
            "kind": "orb",
            "visible": true
        })

action begin_player_death:
    stop when status != "playing"
    status = "player_dying"
    death_ticks = 0
    on_ladder = false
    velocity = 0
    dash_ticks = 0
    weapon_model.visible = false
    call stop_stage_music
    sound.play "nc_player_death"
    dz = max(1.2, player.z + 0.8)
    call spawn_death_ring player.x, dz, 10, 0.24
    call burst player.x, dz, 10
    call refresh_ui

action tick_player_dying:
    death_ticks = death_ticks + 1
    if death_ticks <= 8:
        avatar.model = "nc/hero_dead"
        avatar.x = player.x + (death_ticks % 2 == 0 ? 0.12 : -0.12)
        avatar.dissolve = death_ticks / 10
        avatar.visible = true
    if death_ticks > 8:
        avatar.visible = false
    if death_ticks == 12:
        call spawn_death_ring player.x, max(1.2, player.z + 0.8), 8, 0.15
    call update_effects
    if death_ticks >= 32:
        lives = lives - 1
        if lives <= 0:
            status = "gameover"
            failure_selected = 0
            call refresh_ui
            stop when true
        if boss_door_locked:
            call unlock_boss_door
        if boss_entity.alive:
            boss_active = false
            boss_entity.hp = boss_entity.max_hp
            boss_entity.x = boss_entity.home_x
            boss_entity.z = boss_entity.home_z
            boss_entity.vz = 0
            boss_grounded = true
            boss_state = "idle"
            boss_state_ticks = 0
        shots = []
        enemy_shots = []
        status = "player_panning"
        pan_ticks = 0
        call refresh_ui

action tick_player_panning:
    pan_ticks = pan_ticks + 1
    tx = max(9.5, min(level_width - 10.5, checkpoint.x + 2.5))
    tz = max(4.5, min(level_height - 2.5, checkpoint.z + 2.6))
    camera = {
        "x": camera.x + (tx - camera.x) * 0.16,
        "y": 19,
        "z": camera.z + (tz - camera.z) * 0.16,
        "angle": 270,
        "pitch": 0
    }
    call update_effects
    arrived = abs(tx - camera.x) < 0.28 && abs(tz - camera.z) < 0.28 && pan_ticks >= 14
    if arrived || pan_ticks >= 54:
        camera = {"x": tx, "y": 19, "z": tz, "angle": 270, "pitch": 0}
        player = {"x": checkpoint.x, "y": 7, "z": checkpoint.z, "angle": 0, "pitch": 0, "vz": 0}
        facing = 1
        velocity = 0
        grounded = true
        on_ladder = false
        health = max_health
        status = "player_respawn"
        respawn_ticks = 0
        respawn_beam = {"x": checkpoint.x, "y": 7, "z": checkpoint.z + 10, "model": "nc/teleport_beam", "angle": 0, "scale": 0.95, "visible": true}
        sound.play "nc_checkpoint"
        call refresh_ui

action tick_player_respawn:
    respawn_ticks = respawn_ticks + 1
    prog = clamp(respawn_ticks / 13, 0, 1)
    respawn_beam.x = checkpoint.x
    respawn_beam.z = checkpoint.z + (1 - prog) * 10
    respawn_beam.angle = (respawn_ticks * 26) % 360
    respawn_beam.scale = respawn_ticks < 14 ? 0.95 : max(0.15, 0.95 - (respawn_ticks - 14) * 0.2)
    respawn_beam.visible = true
    if respawn_ticks == 14:
        call burst checkpoint.x, checkpoint.z + 0.6, 8
        avatar = {"x": checkpoint.x, "y": 7, "z": checkpoint.z, "model": "nc/hero_dash", "angle": 0, "dissolve": 0, "visible": true}
    if respawn_ticks > 14:
        avatar = {"x": checkpoint.x, "y": 7, "z": checkpoint.z, "model": "nc/hero_idle", "angle": 0, "dissolve": 0, "visible": true}
    call update_effects
    if respawn_ticks >= 19:
        respawn_beam.visible = false
        invulnerable = 45
        status = "playing"
        local st = stages[current_stage]
        call play_stage_music st.music
        avatar = {"x": checkpoint.x, "y": 7, "z": checkpoint.z, "model": "nc/hero_idle", "angle": 0, "dissolve": 0, "visible": true}
        call sync_weapon_model
        notice_text = "REBOOTED AT CHECKPOINT"
        notice_ticks = 60
        call refresh_ui

action hurt_player(amt):
    stop when invulnerable > 0 || status != "playing"
    if escape_active && current_stage == 11 && return_challenge.shield:
        return_challenge.shield = false
        invulnerable = 20
        notice_text = "AEGIS SPENT // HIT ABSORBED"
        notice_ticks = 65
        sound.play "nc_barrier_open"
        stop when true
    health = max(0, health - amt)
    invulnerable = 35
    hurt_ticks = 12
    cam_shake = 6
    if health > 0:
        sound.play "nc_hurt"
    stop when escape_active
    call burst player.x, player.z + 0.8, 6
    if health <= 0:
        call begin_player_death
        stop when true
    call refresh_ui

action step_hazards_and_pickups:
    px = floor(player.x)
    pz = floor(player.z - 0.15)
    for h in hazards:
        if !h.frozen && h.kind == "thermal":
            if abs(h.x - px) <= 0 && abs(h.z - pz) <= 1:
                call hurt_player 2
                player.vz = 0.36
                if notice_ticks <= 0:
                    notice_text = "SCORCHING VENT! USE CRYO LANCE TO FREEZE IT"
                    notice_ticks = 75
    for cp in checkpoints:
        if !cp.active && abs(cp.x - player.x) < 1.3 && abs(cp.z - player.z) < 2.2:
            cp.active = true
            cp.model = "nc/checkpoint_on"
            checkpoint = {"x": cp.x, "z": cp.z + 0.1}
            sound.play "nc_checkpoint"
            call spawn_death_ring cp.x, cp.z + 1.0, 10, 0.16
            call burst cp.x, cp.z + 1.0, 8
            notice_text = "CHECKPOINT LINKED // DATA STORED"
            notice_ticks = 60
    for pk in pickups:
        if pk.visible:
            pk.z = pk.base + sin(ticks * 0.12 + pk.x) * 0.18
            if abs(pk.x - player.x) < 1.0 && abs(pk.z - (player.z + 0.7)) < 1.2:
                pk.visible = false
                sound.play "nc_pickup"
                call burst player.x, player.z + 0.8, 6
                if pk.kind == "health":
                    health = min(max_health, health + 3)
                    notice_text = "REPAIR CELL +3 HP"
                else:
                    weapon_energy = min(28, weapon_energy + 10)
                    notice_text = "WEAPON ENERGY +10"
                notice_ticks = 50

action tick(input):
    ticks = ticks + 1
    if notice_ticks > 0:
        notice_ticks = notice_ticks - 1

    match status:
        "title":
            victory_item.angle = (ticks * 5) % 360
            victory_item.z = 3.15 + sin(ticks * 0.1) * 0.12
            avatar.angle = 75 + sin(ticks * 0.05) * 18
            stop when true
        "select":
            select_spin = 212 + sin(ticks * 0.08) * 26
            select_boss.angle = select_spin
            select_boss.z = 2.9 + abs(sin(ticks * 0.14)) * 0.18
            select_boss.scale = 1.2 + sin(ticks * 0.14) * 0.045
            if select_cooldown > 0:
                select_cooldown = select_cooldown - 1
            move_x = (input.right || input.turn_right ? 1 : 0) - (input.left || input.turn_left ? 1 : 0)
            if move_x == 0 && input.move_x != null:
                if input.move_x > 0.4:
                    move_x = 1
                if input.move_x < -0.4:
                    move_x = -1
            move_y = (input.duck ? 1 : 0) - (input.aim_up ? 1 : 0)
            if select_cooldown <= 0 && (move_x != 0 || move_y != 0):
                if move_x != 0:
                    selected_stage = (selected_stage + move_x + 12) % 12
                else:
                    selected_stage = (selected_stage + move_y * 6 + 12) % 12
                select_cooldown = 8
                sound.play "nc_select_move"
                call refresh_select_preview
            stop when true
        "boss_dying":
            call tick_boss_dying
            stop when true
        "master_gate":
            for i in range(0, 2):
                lights[i].intensity = 0.48 + 0.20 * cos(ticks * 9 - i * 90)
            stop when true
        "master_credits":
            call tick_master_credits
            stop when true
        "escape_flip":
            call tick_escape_flip
            stop when true
        "escape_zoom":
            call tick_escape_zoom
            stop when true
        "boss_victory":
            call tick_boss_victory input
            stop when true
        "player_dying":
            call tick_player_dying
            stop when true
        "player_panning":
            call tick_player_panning
            stop when true
        "player_respawn":
            call tick_player_respawn
            stop when true
        "playing":
            # Continue into gameplay loop
        else:
            call update_effects
            stop when true

    if cooldown > 0:
        cooldown = cooldown - 1
    if invulnerable > 0:
        invulnerable = invulnerable - 1
    if hurt_ticks > 0:
        hurt_ticks = hurt_ticks - 1

    if master_active && master_transition > 0:
        call tick_master_run input
        stop when true

    # Weapon wheel hold & release handling
    if input.weapon_wheel == true:
        if !wheel_open:
            wheel_open = true
            wheel_ticks = 60
            wheel_cooldown = 0
            sound.play "nc_select_move"
            call refresh_ui
        if wheel_open:
            wheel_ticks = 60

    if !input.weapon_wheel:
        if wheel_open:
            wheel_open = false
            wheel_ticks = 0
            call refresh_ui

    # While the wheel is open, movement selects a weapon instead of moving Axel.
    if wheel_open:
        if wheel_cooldown > 0:
            wheel_cooldown = wheel_cooldown - 1

        move_w = (input.right || input.turn_right ? 1 : 0) - (input.left || input.turn_left ? 1 : 0)
        if move_w == 0 && input.move_x != null:
            if input.move_x > 0.3:
                move_w = 1
            if input.move_x < -0.3:
                move_w = -1
        move_vert = (input.duck ? 1 : 0) - (input.aim_up ? 1 : 0)
        if move_vert == 0 && input.duck_axis != null:
            if input.duck_axis > 0.4:
                move_vert = 1
            if input.duck_axis < -0.4:
                move_vert = -1

        if input.next_weapon && !next_w_held:
            move_w = 1
        if input.prev_weapon && !prev_w_held:
            move_w = -1
        prev_w_held = input.prev_weapon == true
        next_w_held = input.next_weapon == true

        dir = move_w != 0 ? move_w : move_vert
        if dir != wheel_last_dir:
            wheel_cooldown = 0
        wheel_last_dir = dir
        if dir != 0 && wheel_cooldown <= 0:
            call cycle_weapon dir
            wheel_cooldown = 10
        if dir == 0:
            wheel_cooldown = 0

        if input.fire:
            wheel_open = false
            wheel_ticks = 0
            call refresh_ui

        jump_held = input.jump == true
        stop when true

    if input.prev_weapon && !prev_w_held:
        call cycle_weapon -1
    if input.next_weapon && !next_w_held:
        call cycle_weapon 1
    prev_w_held = input.prev_weapon == true
    next_w_held = input.next_weapon == true

    if wheel_ticks > 0:
        wheel_ticks = wheel_ticks - 1
        if wheel_ticks == 0:
            call refresh_ui

    if master_active:
        call tick_master_run input
        stop when true
    if escape_active:
        call tick_escape input
        stop when true

    move = (input.right || input.turn_right ? 1 : 0) - (input.left || input.turn_left ? 1 : 0)
    if move == 0 && input.move_x != null:
        if input.move_x > 0.25:
            move = 1
        if input.move_x < -0.25:
            move = -1
    if move != 0:
        facing = move

    # Ladder grab check when pressing Up (rung at/above feet) or Down (cap beneath feet)
    if !on_ladder && input.aim_up == true:
        for lad in ladders:
            if !on_ladder && abs(lad.x - player.x) < 0.65 && lad.z >= player.z - 0.15 && abs(lad.z - (player.z + 0.45)) < 0.88:
                on_ladder = true
                player.x = lad.x
                player.vz = 0
                velocity = 0
                dash_ticks = 0
                jumps = 0
    if !on_ladder && grounded && input.duck == true:
        for cap in ladder_caps:
            if !on_ladder && abs(cap.x - player.x) < 0.65 && abs(cap.z - player.z) < 0.45:
                on_ladder = true
                player.x = cap.x
                player.z = max(0.8, cap.rung_z + 0.45)
                player.vz = 0
                velocity = 0
                dash_ticks = 0
                jumps = 0

    was_on_ladder = on_ladder
    if was_on_ladder:
        ducking = false
        grounded = false
        v_climb = (input.aim_up ? 0.17 : 0) - (input.duck ? 0.17 : 0)
        if abs(v_climb) > 0:
            climb_phase = climb_phase + 1
            nz = player.z + v_climb
            head_block = v_climb > 0 && voxel_get(world, floor(player.x), 7, floor(nz + 1.45)) != 0
            feet_block = v_climb < 0 && voxel_get(world, floor(player.x), 7, floor(nz - 0.05)) != 0
            if feet_block:
                player.z = floor(nz - 0.05) + 1.0
                on_ladder = false
                grounded = true
            if !feet_block && !head_block:
                player.z = nz
        for cap in ladder_caps:
            if on_ladder && v_climb >= 0 && abs(cap.x - player.x) < 0.65 && player.z >= cap.rung_z + 0.58 && player.z <= cap.rung_z + 1.35:
                player.z = cap.z
                player.vz = 0
                velocity = 0
                on_ladder = false
                grounded = true
        if on_ladder:
            still_on = false
            for lad in ladders:
                if abs(lad.x - player.x) < 0.65 && abs(lad.z - (player.z + 0.35)) < 1.05:
                    still_on = true
            if !still_on:
                on_ladder = false
                player.vz = 0
        if on_ladder && input.jump && !jump_held:
            on_ladder = false
            player.vz = input.duck ? 0 : 0.45
            if !input.duck:
                sound.play "nc_jump"
        jump_held = input.jump == true
        dx = 0
    if !was_on_ladder:
        ducking = grounded && (input.duck == true)

        if input.dash && !dash_held && campaign.weapons.volt == true && dash_ready && dash_ticks <= 0:
            dash_ticks = 11
            dash_ready = false
            sound.play "nc_dash"
            call burst player.x, player.z + 0.7, 5
        dash_held = input.dash == true

        dx = 0
        if dash_ticks > 0:
            dash_ticks = dash_ticks - 1
            dx = facing * 0.52
            player.vz = 0
        else:
            target_v = ducking ? 0 : move * 0.27
            velocity = velocity + (target_v - velocity) * 0.45
            dx = velocity

        do_jump = false
        did_first = false
        max_jumps = campaign.weapons.mag == true ? 2 : 1

        if grounded:
            coyote_ticks = 4
        else:
            if coyote_ticks > 0:
                coyote_ticks = coyote_ticks - 1

        if input.jump && !jump_held:
            jump_buffer = 4
        else:
            if jump_buffer > 0:
                jump_buffer = jump_buffer - 1

        if jump_buffer > 0 && (grounded || coyote_ticks > 0):
            do_jump = true
            jumps = 1
            did_first = true
            grounded = false
            coyote_ticks = 0
            jump_buffer = 0
            sound.play "nc_jump"
        if input.jump && !jump_held && !grounded && coyote_ticks <= 0 && !did_first && jumps < max_jumps:
            player.vz = 0.56
            jumps = jumps + 1
            jump_buffer = 0
            sound.play "nc_double_jump"
            call burst player.x, player.z, 6

        if !input.jump && jump_held && player.vz > 0.16:
            player.vz = player.vz * 0.52

        jump_held = input.jump == true

        player = voxel_move(world, player, dx, 0, do_jump, {"gravity": 0.042, "jumpSpeed": 0.54})
        player.y = 7
        grounded = player.vz == 0 && voxel_get(world, floor(player.x), 7, floor(player.z - 0.05)) != 0
        if !grounded && player.vz <= 0 && input.duck != true:
            for cap in ladder_caps:
                if abs(cap.x - player.x) < 0.58 && player.z >= cap.z - 0.52 && player.z <= cap.z + 0.16:
                    player.z = cap.z
                    player.vz = 0
                    grounded = true
        if grounded:
            jumps = 0
            dash_ready = true

    # Resolve the fall below the floor lip before voxel_move's lower bound
    # can act as a landing surface or let Axel step back out of the pit.
    if player.z < 1.5 && !grounded && voxel_get(world, floor(player.x - 0.24), 7, 0) == 0 && voxel_get(world, floor(player.x + 0.24), 7, 0) == 0:
        invulnerable = 0
        health = 0
        call begin_player_death
        stop when true

    if input.fire:
        if wheel_ticks > 0:
            wheel_ticks = 0
            call refresh_ui
        call fire_weapon (input.aim_up == true)

    hero_m = "nc/hero_idle"
    hero_a = facing > 0 ? 0 : 180
    if !on_ladder && grounded && !ducking && abs(dx) > 0.05:
        run_f = floor(ticks / 3) % 4
        if run_f == 0:
            hero_m = "nc/hero_run0"
        if run_f == 1:
            hero_m = "nc/hero_run1"
        if run_f == 2:
            hero_m = "nc/hero_run2"
        if run_f == 3:
            hero_m = "nc/hero_run3"
    if !on_ladder && grounded && ducking:
        hero_m = "nc/hero_duck"
    if !on_ladder && !grounded:
        hero_m = "nc/hero_jump"
    if !on_ladder && dash_ticks > 0:
        hero_m = "nc/hero_dash"
    if on_ladder:
        hero_m = floor(climb_phase / 4) % 2 == 0 ? "nc/hero_climb0" : "nc/hero_climb1"
        hero_a = facing > 0 ? 35 : 145
    avatar = {
        "x": player.x,
        "y": 7,
        "z": player.z,
        "model": hero_m,
        "angle": hero_a,
        "dissolve": 0,
        "visible": invulnerable <= 0 || invulnerable % 4 < 2
    }
    call sync_weapon_model

    call step_shots
    call step_enemies
    call step_boss_shutter
    call step_boss
    call step_enemy_shots
    call step_hazards_and_pickups
    call update_effects
    call refresh_ui

    focus_x = boss_active && boss_entity.alive ? (player.x + boss_entity.x) * 0.5 : (player.x + facing * 2.5)
    min_cx = boss_door_locked && boss_gate_x >= 0 ? boss_gate_x + 9.5 : 9.5
    cam_tx = max(min_cx, min(level_width - 10.5, focus_x))
    cam_tz = max(4.5, min(level_height - 2.5, player.z + 2.6))
    shake_z = 0
    shake_p = 0
    if cam_shake > 0:
        cam_shake = cam_shake - 1
        shake_z = (cam_shake % 2 == 0 ? 0.08 : -0.08) * cam_shake
        shake_p = (cam_shake % 2 == 0 ? 0.35 : -0.35) * cam_shake
    camera = {
        "x": camera.x + (cam_tx - camera.x) * 0.18,
        "y": 19,
        "z": camera.z + (cam_tz - camera.z) * 0.15 + shake_z,
        "angle": 270,
        "pitch": shake_p
    }
master.rune
# The six recovered Master cores are the keys. Older campaigns already store them as clears.
@Logic/neon_circuit

action count_master_keys:
    master_keys = 0
    if campaign.super_code == true:
        master_keys = 6
        stop when true
    for st in stages:
        if st.tier == 2 && campaign.defeated[st.code] == true:
            master_keys = master_keys + 1

action visit_master_gate:
    call count_master_keys
    call build_select_arena
    status = "master_gate"
    master_gate_selection = 0
    select_boss.visible = false
    select_pedestal.visible = false
    avatar.x = 13.8
    avatar.angle = 0
    camera.x = 18
    camera.z = 4.5
    master_props = [{"x": 18, "y": 7, "z": 2, "model": master_keys == 6 ? "nc/master_gate_open" : "nc/master_gate", "angle": 0}]
    for i in range(0, 6):
        local st = stages[6 + i]
        local lit = campaign.super_code == true || campaign.defeated[st.code] == true
        master_props.push({"x": 15.5 + i, "y": 8.4, "z": 6.7,
            "model": lit ? "nc/master_key_lit" : "nc/master_key_empty", "angle": 0})
    lights = [
        {"x": 15.3, "y": 9, "z": 3.3, "color": "#f637a9", "radius": 6, "intensity": 0.65},
        {"x": 21.3, "y": 9, "z": 3.3, "color": "#27e7fa", "radius": 6, "intensity": 0.65}
    ]
    call play_stage_music "nc_select"
    call refresh_ui

action redeem_super_code(fields):
    if fields.code == null || fields.code.split(" ").join("").toUpperCase() != "SUPERCODE":
        super_code_notice = "Code not recognized."
        stop when true
    campaign.super_code = true
    for st in stages:
        if st.unlocks != "":
            campaign.weapons[st.unlocks] = true
    super_code_notice = "All weapons unlocked. The Master Gate is open."
    call count_progress
    call visit_master_gate

action start_master_run:
    call count_master_keys
    stop when status != "master_gate" || master_keys < 6
    master_active = true
    lives = 3
    master_room = 0
    master_transition = 0
    master_music_ticks = 0
    call build_master_room
    call play_stage_music "nc_master_level"
    call refresh_ui

action retry_master_run:
    stop when !master_active
    lives = 3
    master_transition = 0
    if music_track != "nc_master_level":
        master_music_ticks = 0
    call build_master_room
    call play_stage_music "nc_master_level"
    call refresh_ui

action build_master_room:
    local room = master_room
    master_deck = room == 2 || room == 3
    master_mini = room == 1
    master_first = room == 3
    master_room_ticks = 0
    master_fade = 0
    local decks = ["nc/deck","nc/deck_pink","nc/wall_signal","nc/lane_grid","nc/lane_runway"]
    world = voxel_world(44, 20, 40, decks)
    level_width = 44
    level_height = 18
    level_map = "sky_title"
    local lane_y = master_mini ? 3.5 : (master_deck ? 8.5 : 7)
    local feet = master_deck ? escape_deck_z : 2
    local accent = ["#ff398e", "#b653ff", "#26e4ff", "#ff942b", "#ff3058"][room]
    local accent2 = ["#37ccff", "#74ffad", "#f351aa", "#686bff", "#29e7fe"][room]
    local floor_y = master_mini ? 2 : 5
    scenery = []
    title_scenery = []
    master_props = []
    escape_floor = []
    for i in range(0, 6):
        scenery.push({"x": 4 + i * 7.3, "y": 0.8, "z": 1.5,
            "model": i % 2 == 0 ? "nc/bg_pylon" : "nc/bg_tower", "angle": 0})
        if master_deck:
            for strip in range(0, 3):
                escape_floor.push({"x": 4 + i * 8, "y": 5.5 + strip * 4, "z": feet - 0.25,
                    "model": "nc/glass_panel", "angle": 90, "pitch": 0})
    if master_deck:
        world = voxel_fill(world, [0, 3, feet], [44, 1, 4], 3)
        world = voxel_fill(world, [0, 14, feet], [44, 1, 4], 3)
        world = voxel_fill(world, [0, 4, feet], [1, 10, 4], 3)
        world = voxel_fill(world, [43, 4, feet], [1, 10, 4], 3)
        local lower = master_first ? 4 : 7
        local upper = master_first ? 10 : 9
        world = voxel_fill(world, [12, 4, feet], [2, lower, 3], 2)
        world = voxel_fill(world, [21, upper, feet], [2, 14 - upper, 3], 3)
        world = voxel_fill(world, [28, 4, feet], [2, lower, 2], 2)
    if !master_deck:
        world = voxel_fill(world, [0, floor_y, 0], [44, 4, 2], master_mini ? 2 : 1)
        world = voxel_fill(world, [0, floor_y + 1, 1], [44, 2, 1], master_mini ? 5 : 4)
        if room < 2:
            local gap = master_mini ? 2 : 3
            for x in [11, 22]:
                world = voxel_fill(world, [x, floor_y, 0], [gap, 4, 2], 0)
                world = voxel_fill(world, [x + gap, floor_y, 2], [3, 4, 1], 2)
        if master_mini:
            for x in [5, 16, 27, 38]:
                world = voxel_fill(world, [x, 9, 0], [2, 2, 2], 3)
    player = {"x": 3.5, "y": lane_y, "z": feet, "angle": 0, "pitch": 0, "vz": 0}
    camera = {"x": 9, "y": 17.5, "z": 4.4, "angle": 270, "pitch": 0}
    master_angle = 0
    facing = 1
    grounded = true
    jump_held = false
    jumps = 0
    wheel_open = false
    wheel_ticks = 0
    weapon_energy = 28
    invulnerable = 24
    cooldown = 0
    health = max_health
    avatar = {"x": player.x, "y": lane_y, "z": feet, "angle": 0, "model": "nc/hero_idle",
        "scale": master_mini ? 0.56 : 1, "visible": !master_first}
    view_weapon = master_first ? {"sprite": "nc/return_buster", "x": 58, "y": 0, "bob": 0} : null
    weapon_model = {"visible": false}
    title_monument = {"visible": false}
    select_boss = {"visible": false}
    select_pedestal = {"visible": false}
    respawn_beam = {"visible": false}
    victory_item = {"visible": false}
    power_capsule = {"visible": false}
    boss_shutter_fx = {"visible": false}
    boss_entity = {"visible": false, "alive": false}
    boss_satellites = []
    boss_active = false
    checkpoints = []
    pickups = []
    enemies = []
    hazards_fx = []
    barriers_fx = []
    shots = []
    enemy_shots = []
    effects = []
    escape_active = false
    escape_first_person = false
    master_target_hp = room == 4 ? 14 : (master_deck ? 4 : 3)
    master_target_max_hp = master_target_hp
    master_dragon_neck = []
    master_dragon_break = 0
    master_target = {"x": 35.5, "y": lane_y, "z": feet + (room == 4 ? 0 : 0.67),
        "angle": 180, "scale": master_mini ? 0.62 : 1, "visible": true,
        "model": "nc/master_relay"}
    if room == 4:
        call build_master_dragon
    if room < 4:
        master_props.push(master_target)
    master_exit = {"x": 41, "y": lane_y, "z": feet, "angle": master_deck ? 90 : 0,
        "scale": master_mini ? 0.62 : 0.76, "model": "nc/master_gate"}
    master_props.push(master_exit)
    lights = []
    for i in range(0, 5):
        lights.push({"x": 4 + i * 8.4, "y": lane_y + 1.4, "z": feet + 2.2,
            "color": i % 2 == 0 ? accent : accent2, "radius": 7.2, "intensity": 0.65})
    if room == 4:
        lights.push({"x": master_target.x, "y": 8.4, "z": master_target.z,
            "color": "#ff6940", "radius": 5.5, "intensity": 0.8})
    status = "playing"
    call update_master_camera false

action build_master_dragon:
    master_dragon_body = {"x": 35.8, "y": 6, "z": 2, "model": "nc/master_dragon_body", "visible": true}
    master_props.push(master_dragon_body)
    for i in range(0, 6):
        local joint = {"x": 35.6, "y": 7, "z": 5.3, "pitch": 0,
            "model": "nc/master_dragon_neck", "visible": true}
        master_dragon_neck.push(joint)
        master_props.push(joint)
    master_target.model = "nc/master_dragon_head"
    master_target.angle = 0
    master_target.x = 30
    master_target.z = 6.6
    master_target.pitch = 0
    master_props.push(master_target)
    master_dragon_jaw = {"x": 30, "y": 7, "z": 6.2, "model": "nc/master_dragon_jaw", "visible": true}
    master_dragon_roaring = false
    master_props.push(master_dragon_jaw)
    call pose_master_dragon_neck

action pose_master_dragon_neck:
    local root_x = master_dragon_body.x - 1.35
    local root_z = master_dragon_body.z + 3.3
    local end_x = master_target.x + 0.55
    local end_z = master_target.z
    master_dragon_jaw.x = master_target.x - 0.45
    master_dragon_jaw.z = master_target.z - (master_dragon_roaring ? 0.58 : 0.33)
    master_dragon_jaw.pitch = master_target.pitch - (master_dragon_roaring ? 20 : 0)
    for i in range(0, 6):
        local a = i / 6
        local b = (i + 1) / 6
        local center = (a + b) * 0.5
        local arch = 1.2
        local az = root_z + (end_z - root_z) * a + sin(a * 180) * arch
        local bz = root_z + (end_z - root_z) * b + sin(b * 180) * arch
        local dx = (root_x - end_x) / 6
        local dz = bz - az
        local joint = master_dragon_neck[i]
        joint.x = root_x + (end_x - root_x) * center
        joint.y = master_dragon_body.y + (master_target.y - master_dragon_body.y) * center
        joint.z = (az + bz) * 0.5
        joint.pitch = atan2(dz, dx)
        joint.scale = max(0.57, sqrt(dx * dx + dz * dz) / 1.25)

action tick_master_dragon:
    if master_target_hp <= 0:
        master_dragon_break = min(30, master_dragon_break + 1)
        local fade = master_dragon_break / 30
        master_target.z = max(1.7, master_target.z - 0.09)
        master_dragon_body.z = max(0.8, master_dragon_body.z - 0.04)
        call pose_master_dragon_neck
        for joint in master_dragon_neck:
            joint.dissolve = fade
        master_target.dissolve = fade
        master_dragon_body.dissolve = fade
        master_dragon_jaw.dissolve = fade
        lights[5].radius = 5.5 * (1 - fade) + 0.1
        call update_effects
        stop when true

    local rage = master_target_hp <= 7
    local cycle = master_room_ticks % (rage ? 86 : 102)
    local dive = clamp((cycle - 16) / 12, 0, 1) * clamp((77 - cycle) / 14, 0, 1)
    local sway = sin(master_room_ticks * 6)
    master_target.x = 30.2 - 2.35 * dive + 0.34 * sway
    master_target.z = 6.6 - 3.65 * dive + 0.21 * sway
    master_target.pitch = -12 * dive + 7 * sway
    master_dragon_roaring = cycle >= 32 && cycle <= 57
    call pose_master_dragon_neck
    lights[5].x = master_target.x - 0.8
    lights[5].z = master_target.z
    lights[5].color = master_dragon_roaring ? "#ff5027" : "#ff9762"
    if (cycle == 42 || (rage && cycle == 56)) && abs(player.x - master_target.x) < 20:
        call fire_master_bolt master_target.x - 1, master_target.y, master_target.z - 0.16, 180

action update_master_camera(walking):
    if master_first:
        camera.x = player.x
        camera.y = player.y
        camera.z = player.z + 0.3 + (walking ? sin(master_room_ticks * 28) * 0.04 : 0)
        camera.angle = master_angle
        camera.pitch = -7
        view_weapon.bob = walking && player.z == escape_deck_z ? master_room_ticks * 0.49 : 0
        view_weapon.y = cooldown > 4 ? 3 : 0
        stop when true
    camera.x = clamp(player.x + (master_deck ? 0 : 4), 8, 37)
    camera.y = master_deck ? clamp(player.y + 1, 4, 17.5) : (master_mini ? 19.5 : 16.8)
    camera.z = master_deck ? 29 : (master_mini ? 4 : max(4.2, player.z + 2.2))
    camera.pitch = master_deck ? -85 : 0
    camera.angle = 270
    if master_room == 4:
        local arena = clamp((player.x - 15) / 9, 0, 1)
        camera.x = clamp(player.x + 4 + arena * 3.3, 8, 37)
        camera.y = 16.8 + arena * 2.9
        camera.z = max(4.2 + arena, player.z + 2.2)

action tick_master_run(input):
    master_music_ticks = master_music_ticks + 1
    if master_transition > 0:
        master_transition = master_transition - 1
        master_fade = 1 - abs(master_transition - 10) / 10
        if master_transition > 10:
            if master_room == 0:
                camera.y = min(19.7, camera.y + 0.23)
                avatar.y = max(3.5, avatar.y - 0.35)
                avatar.scale = max(0.56, avatar.scale - 0.045)
            if master_room == 1:
                camera.z = camera.z + 0.55
                camera.pitch = camera.pitch - 5
            if master_room == 2:
                camera.x = camera.x + (player.x - camera.x) * 0.25
                camera.y = camera.y + (player.y - camera.y) * 0.25
                camera.z = camera.z - 0.9
                camera.pitch = camera.pitch + 5
                camera.angle = (camera.angle + 10) % 360
            if master_room == 3:
                camera.z = camera.z + 0.6
                camera.angle = (camera.angle + 350) % 360
        if master_transition == 10:
            master_room = master_room + 1
            call build_master_room
            master_fade = 1
        call refresh_ui
        stop when true

    master_room_ticks = master_room_ticks + 1
    local dx = ((input.right || (!master_first && input.turn_right)) ? 1 : 0) - ((input.left || (!master_first && input.turn_left)) ? 1 : 0)
    local dy = (input.duck ? 1 : 0) - (input.aim_up ? 1 : 0)
    if dx == 0 && input.move_x:
        dx = input.move_x
    if dy == 0 && input.duck_axis:
        dy = input.duck_axis
    if input.move_up:
        dy = -input.move_up
    local old_x = player.x
    local old_y = player.y
    if master_deck:
        if master_first:
            local turn = (input.turn_right ? 1 : 0) - (input.turn_left ? 1 : 0)
            if input.turn_axis:
                turn = clamp(turn + input.turn_axis, -1, 1)
            master_angle = (master_angle + 5 * turn + 360) % 360
            local forward = -dy
            local strafe = dx
            dx = cos(master_angle) * forward - sin(master_angle) * strafe
            dy = sin(master_angle) * forward + cos(master_angle) * strafe
        local speed = min(1, sqrt(dx * dx + dy * dy))
        if speed > 0:
            local heading = atan2(dy, dx)
            if !master_first:
                master_angle = heading
            call move_on_deck player, heading, 0.28 * speed, 0.28
        call jump_on_deck input.jump
    if !master_deck:
        if dx != 0:
            facing = dx > 0 ? 1 : -1
        master_angle = facing > 0 ? 0 : 180
        local jump = input.jump == true && !jump_held
        jump_held = input.jump == true
        player = voxel_move(world, player, clamp(dx, -1, 1) * (master_mini ? 0.23 : 0.29), 0, jump, {"gravity": 0.042, "jumpSpeed": master_mini ? 0.40 : 0.54})
        if player.z < 1.5:
            call lose_master_life
            stop when true

    if master_target_hp > 0:
        player.x = min(player.x, master_room == 4 ? 32.5 : 40.25)
    local walking = player.x != old_x || player.y != old_y
    avatar.x = player.x
    avatar.y = player.y
    avatar.z = player.z
    avatar.angle = master_angle
    avatar.model = walking ? "nc/hero_run" + (floor(master_room_ticks / 3) % 4) : "nc/hero_idle"
    if player.vz != 0:
        avatar.model = "nc/hero_jump"
    avatar.dissolve = invulnerable > 0 && master_room_ticks % 6 < 2 ? 0.32 : 0
    call update_master_camera walking
    if input.fire:
        call fire_weapon false
    if master_room == 4:
        call tick_master_dragon
    if master_room < 4 && master_target_hp > 0:
        master_target.angle = (master_room_ticks * 5) % 360
        if master_room_ticks % 36 == 0 && abs(player.x - master_target.x) < 19:
            local bearing = master_deck ? atan2(player.y - master_target.y, player.x - master_target.x) : (player.x < master_target.x ? 180 : 0)
            call fire_master_bolt master_target.x, master_target.y, master_target.z, bearing

    call step_master_bolts
    if health <= 0:
        call lose_master_life
        stop when true
    for i in range(0, lights.length):
        lights[i].intensity = 0.35 + 0.48 * (1 + cos((master_music_ticks - i * 3) * 30)) / 2
        if master_room == 4 && i >= 3:
            lights[i].intensity = lights[i].intensity * 0.65
    if master_target_hp <= 0 && player.x > 39.6 && abs(player.y - master_exit.y) < 1.8:
        if master_room == 4:
            call finish_master_run
            stop when true
        master_transition = 20
        sound.play "nc_barrier_open"
    call refresh_ui

action fire_master_bolt(x, y, z, angle):
    local dx = cos(angle)
    local dy = sin(angle)
    enemy_shots.push({"x": x + dx * 0.48, "y": y + dy * 0.48, "z": z, "vx": dx * 0.32, "vy": dy * 0.32,
        "life": 52, "angle": angle, "model": "nc/shot_nova"})
    sound.play "nc_enemy_fire"

action step_master_bolts:
    for hostile in [false, true]:
        local incoming = hostile ? enemy_shots : shots
        local remaining = []
        for bolt in incoming:
            bolt.life = bolt.life - 1
            for step in range(0, 3):
                if bolt.life > 0:
                    bolt.x = bolt.x + bolt.vx / 3
                    bolt.y = bolt.y + bolt.vy / 3
                    if bolt.x <= 0 || bolt.x >= level_width || bolt.y <= 0 || bolt.y >= level_height || ((hostile || !bolt.pierce) && voxel_get(world, floor(bolt.x), floor(bolt.y), floor(bolt.z)) != 0):
                        bolt.life = 0
                    if bolt.life > 0 && hostile && abs(player.x - bolt.x) < 0.62 && abs(player.y - bolt.y) < 0.56 && abs(player.z + 0.55 - bolt.z) < 0.72:
                        bolt.life = 0
                        if invulnerable == 0:
                            health = max(0, health - 1)
                            invulnerable = 25
                            sound.play "nc_hurt"
                    local target_width = master_room == 4 ? 1.35 : 0.85
                    if bolt.life > 0 && !hostile && master_target_hp > 0 && abs(master_target.x - bolt.x) < target_width && abs(master_target.y - bolt.y) < 0.85 && abs(master_target.z - bolt.z) < 0.95:
                        master_target_hp = max(0, master_target_hp - bolt.dmg)
                        bolt.life = 0
                        sound.play "nc_hit"
                        if master_target_hp == 0:
                            master_target.visible = master_room == 4
                            if master_room == 4:
                                call burst master_target.x, master_target.z, 18
                                enemy_shots = []
                            master_exit.model = "nc/master_gate_open"
                            sound.play "nc_explode"
            if bolt.life > 0:
                remaining.push(bolt)
        if hostile:
            enemy_shots = remaining
        if !hostile:
            shots = remaining

action lose_master_life:
    lives = lives - 1
    sound.play "nc_player_death"
    if lives <= 0:
        status = "gameover"
        failure_selected = 0
        call stop_stage_music
        call refresh_ui
        stop when true
    master_transition = 0
    call build_master_room
    call refresh_ui

action finish_master_run:
    campaign.master_clear = true
    status = "master_credits"
    master_credits_ticks = 0
    escape_active = false
    view_weapon = null
    master_props = []
    shots = []
    enemy_shots = []
    effects = []
    level_map = "sky_master_dawn"
    avatar.model = "nc/hero_victory"
    avatar.x = 32
    avatar.y = 7
    avatar.z = 2
    avatar.angle = 70
    camera = {"x": 32, "y": 13.7, "z": 2.1, "angle": 270, "pitch": 2}
    lights = [
        {"x": 30.8, "y": 9.4, "z": 3.3, "color": "#ffac62", "radius": 7, "intensity": 0.65},
        {"x": 34.2, "y": 7.5, "z": 3.6, "color": "#65d9ec", "radius": 6, "intensity": 0.43}
    ]
    call play_stage_music "nc_credits"
    call refresh_ui

action refresh_master_ui:
    if master_transition > 0:
        ui = {"style": "floating", "meters": [], "objective": "", "detail": "", "notice": "", "prompt": "", "panel": null,
            "cinema": {"lines": [], "offset": 0, "fade": master_fade}}
        stop when true
    local room_names = ["01 // SWITCHYARD", "02 // BACKPLANE", "03 // PRISM GRID", "04 // GLASS TUNNEL", "05 // THE CONDUCTOR"]
    ui = {"style": "floating", "heading": "", "detail": room_names[master_room] + "  //  LIVES " + lives,
        "objective": master_target_hp > 0 ? (master_room == 4 ? "AIM FOR THE HEAD WHEN THE DRAGON SWOOPS" : "SHOOT THE RELAY TO OPEN THE EXIT") : "EXIT OPEN // CROSS THE ARCH",
        "notice": "",
        "panel": null,
        "reticle": master_first && !wheel_open,
        "wheel": w_wheel,
        "meters": [{"label":"AXEL","value":health,"max":max_health,"color":62975,"display":"pips","icon":"nc/hp_full","emptyIcon":"nc/hp_empty"},
            {"label":weapon_label,"value":weapon_energy,"max":28,"color":62975,"display":"bar"},
            {"label":master_room == 4 ? "CONDUCTOR" : "RELAY","value":master_target_hp,"max":master_target_max_hp,"color":16719515,"display":"bar"}],
        "prompt": master_first ? "WASD MOVE | LEFT/RIGHT TURN | SPACE JUMP | X FIRE | TAB WHEEL" : "WASD / ARROWS MOVE | SPACE JUMP | X FIRE | TAB WHEEL"}

action refresh_master_gate_ui:
    local key_slots = []
    for i in range(0, 6):
        local st = stages[6 + i]
        local mark = campaign.super_code == true || campaign.defeated[st.code] == true ? "KEY" : "LOCKED"
        key_slots.push(st.short + " " + mark)
    local ready = master_keys == 6
    local choices = ready ? ["ENTER MASTER LEVEL", "STAGE SELECT"] : ["STAGE SELECT"]
    local actions = ready ? [{"action": "start_master_run"}, {"action": "open_select"}] : [{"action": "open_select"}]
    ui = {"style":"floating","heading":"MASTER GATE",
        "meters": [], "notice": "", "prompt": "",
        "objective":master_keys + "/6 MASTER KEYS",
        "detail":campaign.master_clear == true ? "THE CONDUCTOR IS OFFLINE" : "NEON CITADEL // REACTOR ACCESS",
        "panel":{"title": ready ? "GATE UNSEALED" : "SIX MASTER CORES REQUIRED",
            "body": key_slots.slice(0, 3).join("  /  ") + "|" + key_slots.slice(3).join("  /  "),
            "choices": choices, "choiceActions": actions,
            "selected": master_gate_selection, "footer": "UP/DOWN SELECT | ENTER CONFIRM | ESC BACK"}}

action tick_master_credits:
    master_credits_ticks = master_credits_ticks + 1
    local t = min(1, master_credits_ticks / 270)
    camera.x = 32 + t * 1.4
    camera.y = 13.7 + t * 5.2
    camera.z = 2.1 + t * 1.1
    camera.pitch = 2 + t * 2
    if master_credits_ticks >= 420:
        call close_master_credits
        stop when true
    call refresh_ui

action close_master_credits:
    status = "won"
    call refresh_ui

@Map/sky_master_dawn
floor = "#281d45"
sky = {"seed":87,"zenith":"#342453","horizon":"#f28f65","cloud":"#885477","speed":0.035}
legend = {".":{}}
grid:
    "..."
    "..."
    "..."
music/boss.rune
# Neon Circuit — Boss Battle Theme (Frenetic Cyber Metal, E Phrygian)
@Music/nc_boss
type = synth
tempo = 164
time_signature = 4/4
loop = true
volume = 0.072
instruments = {"lead":"sawtooth","arp":"square","harmony":"brass","bass":"sawtooth","drums":"drums"}
effects = {
    "delay": {"time": 0.1875, "feedback": 0.38, "wet": 0.22, "damping": 3600},
    "crush": {"bits": 8, "drive": 0.15}
}
track_effects = {
    "lead": {"delay": 0.3},
    "arp": {"delay": 0.35},
    "bass": {"delay": 0}
}
sections = {
    "alarm": {
        "bars": 4,
        "lead": "E5:8 F5:8 E5:8 F5:8 Bb5:4 E5:4 | F5:8 E5:8 D5:8 E5:8 G5:4 F5:4 | E5:8 F5:8 G5:8 A5:8 Bb5:4 C6:4 | B5:4 Bb5:4 A5:4 G#5:4",
        "arp": "E4:8 B4:8 E5:8 B4:8 F4:8 C5:8 F5:8 C5:8 | E4:8 B4:8 E5:8 B4:8 D4:8 A4:8 D5:8 A4:8 | E4:8 B4:8 G4:8 B4:8 Bb4:8 F5:8 D5:8 F5:8 | B4:8 E5:8 B4:8 E5:8 B4:8 F5:8 B4:8 F5:8",
        "harmony": "[E3,B3]:1 | [F3,C4]:2 [D3,A3]:2 | [E3,G3,B3]:2 [Bb3,D4,F4]:2 | [E3,B3]:1",
        "bass": "E2:8 E2:8 E3:8 E2:8 F2:8 F2:8 F3:8 F2:8 | E2:8 E2:8 E3:8 E2:8 D2:8 D2:8 D3:8 D2:8 | E2:8 E2:8 G2:8 A2:8 Bb2:8 Bb2:8 C3:8 Bb2:8 | B2:8 B2:8 Bb2:8 Bb2:8 A2:8 A2:8 G#2:8 G#2:8",
        "drums": "crash:4 kick:8 kick:8 snare:4 kick:4 | kick:8 kick:8 snare:4 kick:8 kick:8 snare:4 | kick:8 kick:8 snare:4 tom:8 tom:8 snare:4 | kick:8 snare:8 kick:8 snare:8 tom:8 tom:8 crash:4"
    },
    "assault": {
        "bars": 8,
        "lead": "E5:8 F5:8 E5:8 D5:8 E5:8 G5:8 F5:8 E5:8 | Bb5:8 A5:8 G5:8 F5:8 E5:4 B4:4 | E5:8 F5:8 G5:8 A5:8 Bb5:8 A5:8 G5:8 F5:8 | G5:4 F5:4 E5:2 | B5:8 C6:8 B5:8 A5:8 G5:8 A5:8 B5:8 G5:8 | A5:8 Bb5:8 A5:8 G5:8 F5:4 E5:4 | D5:8 E5:8 F5:8 G5:8 A5:8 G5:8 F5:8 D5:8 | E5:4 B4:4 E5:2",
        "arp": "E4:8 G4:8 B4:8 E5:8 F4:8 A4:8 C5:8 F5:8 | Bb4:8 D5:8 F5:8 Bb5:8 E4:8 G4:8 B4:8 E5:8 | E4:8 G4:8 B4:8 E5:8 Bb4:8 D5:8 F5:8 Bb5:8 | G4:8 B4:8 D5:8 F4:8 E4:8 B4:8 E5:8 B4:8 | G4:8 B4:8 E5:8 G5:8 E4:8 G4:8 B4:8 E5:8 | F4:8 A4:8 D5:8 F5:8 D4:8 F4:8 A4:8 D5:8 | D4:8 F4:8 A4:8 D5:8 F4:8 A4:8 C5:8 F5:8 | E4:8 B4:8 E5:8 B4:8 E4:8 B4:8 E5:4",
        "harmony": "[E4,B4]:2 [F4,C5]:2 | [Bb3,F4]:2 [E4,B4]:2 | [E4,G4]:2 [Bb3,F4]:2 | [E4,B4]:1 | [G4,B4]:2 [E4,G4]:2 | [F4,A4]:2 [D4,F4]:2 | [D4,F4]:2 [F4,A4]:2 | [E4,B4]:1",
        "bass": "E2:8 E2:8 F2:8 E2:8 E2:8 E2:8 D2:8 E2:8 | Bb1:8 Bb1:8 Bb1:8 A1:8 E2:8 E2:8 B1:8 E2:8 | E2:8 E2:8 G2:8 A2:8 Bb2:8 A2:8 G2:8 F2:8 | G2:4 F2:4 E2:4 B1:4 | E2:8 E2:8 G2:8 E2:8 E2:8 E2:8 G2:8 E2:8 | F2:8 F2:8 A2:8 F2:8 D2:8 D2:8 F2:8 D2:8 | D2:8 D2:8 F2:8 G2:8 A2:8 G2:8 F2:8 D2:8 | E2:8 E2:8 B1:8 B1:8 E2:2",
        "drums": "crash:4 kick:8 snare:8 kick:8 kick:8 snare:4 | kick:8 hihat:8 snare:4 kick:8 tom:8 snare:4 | kick:8 kick:8 snare:4 kick:8 kick:8 snare:4 | kick:4 tom:8 tom:8 snare:8 snare:8 kick:4 | crash:4 kick:8 snare:8 kick:8 kick:8 snare:4 | kick:8 hihat:8 snare:4 kick:8 tom:8 snare:4 | kick:8 kick:8 snare:4 kick:8 kick:8 snare:4 | kick:8 tom:8 snare:8 tom:8 kick:4 crash:4"
    },
    "climax": {
        "bars": 4,
        "lead": "E6:8 D6:8 C6:8 B5:8 C6:8 B5:8 A5:8 G5:8 | F5:8 G5:8 A5:8 Bb5:8 C6:4 A5:4 | B5:8 C6:8 D6:8 E6:8 F6:8 E6:8 D6:8 B5:8 | E6:2 E5:2",
        "arp": "E5:8 B4:8 G4:8 E5:8 C5:8 G4:8 E4:8 C5:8 | F4:8 A4:8 C5:8 F5:8 D4:8 F4:8 A4:8 D5:8 | G4:8 B4:8 D5:8 G5:8 B4:8 D5:8 F5:8 B5:8 | E5:8 B4:8 G4:8 E4:8 E5:4 B4:4",
        "harmony": "[E4,G4,B4]:2 [C4,E4,G4]:2 | [F3,A3,C4]:2 [D3,F3,A3]:2 | [G3,B3,D4]:2 [B3,D4,F4]:2 | [E4,G4,B4]:1",
        "bass": "E2:8 E3:8 E2:8 E3:8 C2:8 C3:8 C2:8 C3:8 | F2:8 F3:8 F2:8 F3:8 D2:8 D3:8 D2:8 D3:8 | G2:8 G3:8 G2:8 G3:8 B1:8 B2:8 B1:8 B2:8 | E2:8 E3:8 B1:8 B2:8 E2:2",
        "drums": "crash:4 kick:8 kick:8 snare:4 kick:8 kick:8 | kick:8 kick:8 snare:4 tom:8 tom:8 snare:4 | kick:8 kick:8 snare:4 kick:8 kick:8 snare:4 | snare:8 snare:8 tom:8 tom:8 kick:4 crash:4"
    }
}
arrangement = ["alarm","assault","climax","assault"]
music/escape.rune
# Glass Deck Run. A descending minor-key motif over a syncopated pulse.
@Music/nc_escape
type = synth
tempo = 132
time_signature = 4/4
loop = true
volume = 0.06
instruments = {"lead":"triangle","arp":"square","bass":"triangle","drums":"drums"}
sections = {
    "return_run": {
        "bars": 8,
        "lead": "R:4 B4:8 A4:8 G4:4 E4:4 | R:4 C5:8 B4:8 G4:4 A4:4 | R:4 B4:8 D5:8 E5:4 B4:4 | A4:8 G4:8 F#4:4 D#4:4 R:4 | R:8 E5:8 D5:8 B4:8 A4:4 G4:4 | A4:8 C5:8 E5:8 G5:8 E5:4 C5:4 | B4:8 D5:8 F#5:8 A5:8 F#5:4 D5:4 | E5:8 D5:8 B4:8 G4:8 F#4:4 D#4:4",
        "arp": "E4:8 R:8 B4:8 E5:8 G4:8 R:8 B4:8 D5:8 | C4:8 R:8 G4:8 C5:8 E4:8 R:8 G4:8 B4:8 | G3:8 R:8 D4:8 G4:8 B3:8 R:8 D4:8 F#4:8 | B3:8 R:8 F#4:8 B4:8 D#4:8 R:8 A4:8 F#4:8 | E4:8 B4:8 E5:8 B4:8 G4:8 D5:8 E5:8 D5:8 | C4:8 G4:8 C5:8 G4:8 E4:8 B4:8 C5:8 B4:8 | D4:8 A4:8 D5:8 A4:8 F#4:8 C5:8 D5:8 C5:8 | B3:8 F#4:8 B4:8 F#4:8 D#4:8 A4:8 B4:8 F#4:8",
        "bass": "E2:8 E2:8 R:8 B2:8 E2:4 G2:8 B1:8 | C2:8 C2:8 R:8 G2:8 C2:4 E2:8 G2:8 | G1:8 G1:8 R:8 D2:8 G2:4 B1:8 D2:8 | B1:8 B1:8 F#2:8 B1:8 A1:4 D#2:4 | E2:8 E2:8 B1:8 E2:8 G2:8 E2:8 B1:8 E2:8 | C2:8 C2:8 G1:8 C2:8 E2:8 C2:8 G1:8 C2:8 | D2:8 D2:8 A1:8 D2:8 F#2:8 D2:8 A1:8 D2:8 | B1:8 B1:8 F#2:8 B1:8 D#2:8 B1:8 D#2:8 F#2:8",
        "drums": "kick:8 hihat:8 snare:8 hihat:8 kick:8 hihat:8 snare:8 hihat:8 | kick:8 hihat:8 snare:8 kick:8 hihat:8 kick:8 snare:8 hihat:8 | kick:8 hihat:8 snare:8 hihat:8 kick:8 hihat:8 snare:8 hihat:8 | kick:8 hihat:8 snare:8 kick:8 hihat:8 tom:8 snare:8 hihat:8 | kick:8 hihat:8 snare:8 kick:8 kick:8 hihat:8 snare:8 hihat:8 | kick:8 hihat:8 snare:8 hihat:8 kick:8 kick:8 snare:8 hihat:8 | kick:8 hihat:8 snare:8 kick:8 kick:8 hihat:8 snare:8 hihat:8 | kick:8 hihat:8 snare:8 hihat:8 tom:8 tom:8 snare:8 hihat:8"
    }
}
arrangement = ["return_run"]
music/master_boss.rune
# Master Robot battle theme in D harmonic minor, with a heavy three-beat pulse.
@Music/nc_master_boss
type = synth
tempo = 144
time_signature = 3/4
loop = true
volume = 0.072
instruments = {"lead":"brass","arp":"bell","harmony":"strings","bass":"triangle","drums":"drums"}
effects = {
    "delay": {"time": 0.2083, "feedback": 0.24, "wet": 0.16, "damping": 3100},
    "reverb": {"decay": 1.1, "wet": 0.12, "filter": 3400}
}
track_effects = {
    "arp": {"delay": 0.28, "reverb": 0.16},
    "harmony": {"reverb": 0.18},
    "bass": {"delay": 0, "reverb": 0}
}
sections = {
    "lockdown": {
        "bars": 4,
        "lead": "D5:4 F5:8 E5:8 A4:4 | Bb4:4 D5:8 C#5:8 A4:4 | G4:8 Bb4:8 D5:4 F5:8 E5:8 | C#5:4 A4:4 R:4",
        "arp": "R:8 A4:8 D5:8 F5:8 A5:4 | R:8 F4:8 Bb4:8 D5:8 F5:4 | R:8 D4:8 G4:8 Bb4:8 D5:4 | E4:8 A4:8 C#5:8 E5:8 A5:4",
        "harmony": "[D3,A3,F4]:2 [D3,F4]:4 | [Bb2,F3,D4]:2 [Bb2,D4]:4 | [G2,D3,Bb3]:2 [G3,Bb3]:4 | [A2,E3,C#4]:2 [A3,C#4]:4",
        "bass": "D2:4 R:8 D3:8 A1:4 | Bb1:4 R:8 Bb2:8 F2:4 | G1:4 D2:8 G2:8 Bb1:4 | A1:4 E2:8 A2:8 C#2:4",
        "drums": "kick:8 hihat:8 snare:8 kick:8 tom:8 hihat:8 | kick:8 hihat:8 tom:8 snare:8 kick:8 hihat:8 | kick:8 kick:8 snare:8 hihat:8 tom:8 hihat:8 | kick:8 hihat:8 snare:8 tom:8 tom:8 crash:8"
    },
    "overdrive": {
        "bars": 4,
        "lead": "A5:4 F5:8 E5:8 D5:4 | G5:8 F5:8 D5:4 Bb4:4 | C#5:8 E5:8 G5:8 Bb5:8 A5:4 | E5:4 C#5:4 D5:4",
        "arp": "D5:8 A4:8 F5:8 A4:8 D6:8 A4:8 | Bb4:8 F4:8 D5:8 F4:8 Bb5:8 F4:8 | C#5:8 G4:8 E5:8 G4:8 Bb5:8 G4:8 | E5:8 A4:8 C#5:8 A4:8 D5:8 R:8",
        "harmony": "[D3,F3,A3]:2 [F3,A3]:4 | [Bb2,D3,F3]:2 [D3,F3]:4 | [C#3,E3,G3,Bb3]:2 [A2,E3]:4 | [A2,E3,C#4]:2 [D3,F3,A3]:4",
        "bass": "D2:8 D2:8 A1:8 D2:8 F2:8 A2:8 | Bb1:8 Bb1:8 F2:8 Bb1:8 D2:8 F2:8 | C#2:8 C#2:8 E2:8 G2:8 A1:8 E2:8 | A1:8 E2:8 A2:8 C#2:8 D2:4",
        "drums": "crash:8 kick:8 snare:8 kick:8 hihat:8 kick:8 | kick:8 hihat:8 snare:8 kick:8 tom:8 hihat:8 | kick:8 kick:8 snare:8 tom:8 snare:8 hihat:8 | kick:8 tom:8 snare:8 tom:8 kick:8 crash:8"
    }
}
arrangement = ["lockdown","overdrive","lockdown"]
music/master_level.rune
# Citadel Overclock. Four-on-the-floor industrial techno at 150 BPM.
@Music/nc_master_level
type = synth
tempo = 150
time_signature = 4/4
loop = true
volume = 0.088
instruments = {"lead":"square","bass":"sawtooth","arp":"bell","drums":"drums"}
effects = {"delay":{"time":0.15,"feedback":0.23,"wet":0.13,"damping":3300},"crush":{"bits":9,"drive":0.12}}
track_effects = {"lead":{"delay":0.21},"arp":{"delay":0.28},"bass":{"delay":0}}
sections = {
    "switchyard": {
        "bars": 4,
        "lead": "R:8 C5:8 R:8 Eb5:8 R:8 G4:8 Bb4:8 G4:8 | R:8 C5:8 Eb5:8 C5:8 R:8 F#4:8 G4:8 R:8 | R:8 C5:8 R:8 Eb5:8 R:8 Bb4:8 C5:8 Eb5:8 | F#5:8 Eb5:8 C5:8 Eb5:8 G4:8 Bb4:8 C5:4",
        "arp": "G5:4 R:8 C6:8 R:4 Eb6:4 | G5:4 R:8 C6:8 R:4 F#6:4 | Bb5:4 R:8 C6:8 R:4 Eb6:4 | F#6:8 Eb6:8 R:4 Bb5:8 G5:8 C6:4",
        "bass": "R:8 C2:8 R:8 C2:8 R:8 C3:8 R:8 C2:8 | R:8 C2:8 R:8 Eb2:8 R:8 C2:8 R:8 G1:8 | R:8 C2:8 R:8 C2:8 R:8 Bb1:8 R:8 C2:8 | R:8 F#1:8 R:8 G1:8 R:8 C2:8 C2:16 C3:16 C2:8",
        "drums": "kick:8 hihat:8 [kick,snare]:8 hihat:8 kick:8 hihat:8 [kick,snare]:8 hihat:8 | kick:8 hihat:8 [kick,snare]:8 hihat:8 kick:8 hihat:8 [kick,snare]:8 hihat:8 | kick:8 hihat:8 [kick,snare]:8 hihat:8 kick:8 hihat:8 [kick,snare]:8 hihat:8 | kick:8 hihat:8 [kick,snare]:8 hihat:8 kick:8 hihat:8 [kick,tom]:8 snare:16 snare:16"
    },
    "overclock": {
        "bars": 4,
        "lead": "C6:8 G5:8 Eb5:8 C5:8 G5:8 Eb5:8 Bb4:8 C5:8 | F6:8 C6:8 Ab5:8 F5:8 C6:8 Ab5:8 G5:8 F5:8 | F#6:8 C6:8 A5:8 F#5:8 C6:8 A5:8 G5:8 F#5:8 | G5:8 Bb5:8 C6:8 Eb6:8 G6:8 Eb6:8 C6:4",
        "arp": "C5:8 Eb5:8 G5:8 Bb5:8 C6:8 Bb5:8 G5:8 Eb5:8 | F5:8 Ab5:8 C6:8 Eb6:8 F6:8 Eb6:8 C6:8 Ab5:8 | F#5:8 A5:8 C6:8 Eb6:8 F#6:8 Eb6:8 C6:8 A5:8 | G5:8 Bb5:8 C6:8 Eb6:8 G6:8 Eb6:8 C6:8 R:8",
        "bass": "R:16 C2:16 C2:8 R:8 C2:8 R:16 C2:16 C3:8 R:8 C2:8 | R:16 F2:16 F2:8 R:8 F2:8 R:16 F2:16 F3:8 R:8 F2:8 | R:16 F#2:16 F#2:8 R:8 F#2:8 R:16 F#2:16 F#3:8 R:8 F#2:8 | R:8 G2:8 R:8 Bb2:8 R:8 C3:8 R:8 C2:8",
        "drums": "[kick,crash]:8 hihat:16 hihat:16 [kick,snare]:8 hihat:8 kick:8 hihat:16 hihat:16 [kick,snare]:8 hihat:8 | kick:8 hihat:16 hihat:16 [kick,snare]:8 hihat:8 kick:8 hihat:16 hihat:16 [kick,snare]:8 hihat:8 | kick:8 hihat:16 hihat:16 [kick,snare]:8 hihat:8 kick:8 hihat:16 hihat:16 [kick,snare]:8 hihat:8 | [kick,crash]:8 hihat:8 [kick,snare]:8 hihat:8 kick:8 tom:8 [kick,snare]:8 tom:16 snare:16"
    }
}
arrangement = ["switchyard","overclock","switchyard","overclock"]
music/select.rune
# Neon Circuit — Stage Select Theme (Energetic Mega-Man Pulse, E Minor)
@Music/nc_select
type = synth
tempo = 140
time_signature = 4/4
loop = true
volume = 0.065
instruments = {"lead":"square","arp":"bell","harmony":"strings","bass":"triangle","drums":"drums"}
effects = {
    "reverb": {"decay": 1.4, "wet": 0.16},
    "delay": {"time": 0.214, "feedback": 0.32, "wet": 0.20, "damping": 3400}
}
track_effects = {
    "lead": {"delay": 0.25, "reverb": 0.18},
    "arp": {"delay": 0.35, "reverb": 0.2},
    "bass": {"delay": 0, "reverb": 0}
}
sections = {
    "loop_a": {
        "bars": 4,
        "lead": "E5:8 G5:8 B5:8 E6:8 D6:8 B5:8 G5:8 B5:8 | C6:8 B5:8 A5:8 G5:8 F#5:4 B4:4 | E5:8 G5:8 B5:8 E6:8 F#6:8 E6:8 D6:8 B5:8 | C6:4 D6:4 E6:2",
        "arp": "E4:8 B4:8 G4:8 B4:8 E4:8 B4:8 G4:8 B4:8 | C4:8 G4:8 E4:8 G4:8 B3:8 F#4:8 D#4:8 F#4:8 | E4:8 B4:8 G4:8 B4:8 G4:8 D5:8 B4:8 D5:8 | A3:8 E4:8 C4:8 E4:8 B3:8 F#4:8 E4:4",
        "harmony": "[E3,G3,B3]:1 | [C3,E3,G3]:2 [B2,D#3,F#3]:2 | [E3,G3,B3]:2 [G3,B3,D4]:2 | [A2,C3,E3]:2 [B2,D#3,F#3]:2",
        "bass": "E2:8 E3:8 E2:8 E3:8 G2:8 G3:8 G2:8 G3:8 | C2:8 C3:8 C2:8 C3:8 B1:8 B2:8 B1:8 B2:8 | E2:8 E3:8 E2:8 E3:8 G2:8 G3:8 G2:8 G3:8 | A1:8 A2:8 B1:8 B2:8 E2:4 B1:4",
        "drums": "crash:4 hihat:8 hihat:8 snare:4 hihat:4 | kick:4 hihat:8 kick:8 snare:4 hihat:4 | kick:4 hihat:8 hihat:8 snare:4 hihat:4 | kick:4 tom:8 tom:8 snare:4 kick:4"
    },
    "loop_b": {
        "bars": 4,
        "lead": "G5:8 A5:8 B5:8 D6:8 C6:8 B5:8 A5:8 G5:8 | A5:8 B5:8 C6:8 E6:8 D6:4 B5:4 | C6:8 B5:8 A5:8 G5:8 F#5:8 G5:8 A5:8 F#5:8 | G5:4 F#5:4 E5:2",
        "arp": "G4:8 D5:8 B4:8 D5:8 E4:8 B4:8 G4:8 B4:8 | A4:8 E5:8 C5:8 E5:8 G4:8 D5:8 B4:8 D5:8 | C4:8 G4:8 E4:8 G4:8 D4:8 A4:8 F#4:8 A4:8 | E4:8 B4:8 G4:8 B4:8 E4:8 B4:8 E5:4",
        "harmony": "[G3,B3,D4]:2 [E3,G3,B3]:2 | [A3,C4,E4]:2 [G3,B3,D4]:2 | [C3,E3,G3]:2 [D3,F#3,A3]:2 | [E3,G3,B3]:1",
        "bass": "G2:8 G3:8 G2:8 G3:8 E2:8 E3:8 E2:8 E3:8 | A1:8 A2:8 A1:8 A2:8 G2:8 G3:8 G2:8 G3:8 | C2:8 C3:8 C2:8 C3:8 D2:8 D3:8 D2:8 D3:8 | E2:8 E3:8 B1:8 B2:8 E2:2",
        "drums": "kick:4 hihat:8 hihat:8 snare:4 hihat:4 | kick:4 hihat:8 kick:8 snare:4 hihat:4 | kick:4 hihat:8 hihat:8 snare:4 tom:4 | kick:4 snare:8 snare:8 tom:4 crash:4"
    }
}
arrangement = ["loop_a","loop_b"]
music/stage_01_volt.rune
# Stage 01 — Volt Viper (Neon Power Grid — High-Voltage E Minor, 32-Bar Arrangement)
@Music/nc_stage_01
type = synth
tempo = 150
time_signature = 4/4
loop = true
volume = 0.068
instruments = {"lead":"square","arp":"bell","harmony":"sawtooth","bass":"triangle","drums":"drums"}
effects = {
    "delay": {"time": 0.25, "feedback": 0.32, "wet": 0.20, "damping": 3500},
    "reverb": {"decay": 1.6, "wet": 0.18}
}
track_effects = {
    "lead": {"delay": 0.3, "reverb": 0.2},
    "arp": {"delay": 0.35, "reverb": 0.2},
    "bass": {"delay": 0, "reverb": 0}
}
sections = {
    "intro": {
        "bars": 4,
        "lead": "E5:8 B5:8 E6:8 B5:8 G5:8 B5:8 E5:4 | F#5:8 A5:8 D6:8 A5:8 F#5:4 D5:4 | C5:8 E5:8 G5:8 C6:8 B5:4 G5:4 | B5:4 A5:8 G5:8 F#5:2",
        "arp": "E4:8 G4:8 B4:8 E5:8 B4:8 G4:8 B4:8 E5:8 | D4:8 F#4:8 A4:8 D5:8 A4:8 F#4:8 A4:8 D5:8 | C4:8 E4:8 G4:8 C5:8 G4:8 E4:8 G4:8 C5:8 | B3:8 D#4:8 F#4:8 B4:8 F#4:8 D#4:8 F#4:8 B4:8",
        "harmony": "[E3,G3,B3]:1 | [D3,F#3,A3]:1 | [C3,E3,G3]:1 | [B2,D#3,F#3]:1",
        "bass": "E2:8 E2:8 E3:8 E2:8 E2:8 E2:8 E3:8 E2:8 | D2:8 D2:8 D3:8 D2:8 D2:8 D2:8 D3:8 D2:8 | C2:8 C2:8 C3:8 C2:8 C2:8 C2:8 C3:8 C2:8 | B1:8 B1:8 B2:8 B1:8 B1:4 F#2:4",
        "drums": "crash:4 hihat:8 hihat:8 snare:4 hihat:4 | kick:4 hihat:8 kick:8 snare:4 hihat:4 | kick:4 hihat:8 hihat:8 snare:4 hihat:4 | kick:4 tom:8 tom:8 snare:4 crash:4"
    },
    "verse": {
        "bars": 8,
        "lead": "E5:8 B5:8 G5:8 E5:8 F#5:8 A5:8 G5:4 | E5:8 B5:8 D6:8 C6:8 B5:4 G5:4 | A5:8 G5:8 F#5:8 E5:8 D5:8 F#5:8 A5:4 | B5:4 A5:8 G5:8 F#5:2 | E5:8 G5:8 B5:8 E6:8 D6:8 B5:8 G5:4 | C6:8 B5:8 A5:8 G5:8 A5:4 F#5:4 | G5:8 A5:8 B5:8 C6:8 B5:8 A5:8 G5:8 F#5:8 | E5:1",
        "arp": "E4:8 B4:8 G4:8 B4:8 E4:8 B4:8 G4:8 B4:8 | E4:8 B4:8 G4:8 B4:8 G4:8 D5:8 B4:8 D5:8 | A3:8 E4:8 C4:8 E4:8 D4:8 A4:8 F#4:8 A4:8 | B3:8 F#4:8 D#4:8 F#4:8 B3:8 F#4:8 D#4:8 F#4:8 | E4:8 B4:8 G4:8 B4:8 E4:8 B4:8 G4:8 B4:8 | C4:8 G4:8 E4:8 G4:8 D4:8 A4:8 F#4:8 A4:8 | G4:8 D5:8 B4:8 D5:8 B3:8 F#4:8 D#4:8 F#4:8 | E4:8 B4:8 G4:8 B4:8 E4:4 B4:4",
        "harmony": "[E4,G4,B4]:1 | [E4,G4,B4]:2 [G4,B4,D5]:2 | [A3,C4,E4]:2 [D4,F#4,A4]:2 | [B3,D#4,F#4]:1 | [E4,G4,B4]:1 | [C4,E4,G4]:2 [D4,F#4,A4]:2 | [G4,B4,D5]:2 [B3,D#4,F#4]:2 | [E4,G4,B4]:1",
        "bass": "E2:8 E2:8 E3:8 E2:8 E2:8 E2:8 E3:8 E2:8 | E2:8 E2:8 E3:8 E2:8 G2:8 G2:8 G3:8 G2:8 | A1:8 A1:8 A2:8 A1:8 D2:8 D2:8 D3:8 D2:8 | B1:8 B1:8 B2:8 B1:8 B1:4 F#2:4 | E2:8 E2:8 E3:8 E2:8 E2:8 E2:8 E3:8 E2:8 | C2:8 C2:8 C3:8 C2:8 D2:8 D2:8 D3:8 D2:8 | G2:8 G2:8 B2:8 G2:8 B1:8 B1:8 F#2:8 B1:8 | E2:4 B1:4 E2:2",
        "drums": "kick:4 hihat:8 hihat:8 snare:4 hihat:4 | kick:4 hihat:8 kick:8 snare:4 hihat:4 | kick:4 hihat:8 hihat:8 snare:4 hihat:4 | kick:4 tom:8 tom:8 snare:4 hihat:4 | crash:4 hihat:8 hihat:8 snare:4 hihat:4 | kick:4 hihat:8 kick:8 snare:4 hihat:4 | kick:4 hihat:8 hihat:8 snare:4 tom:4 | kick:4 tom:4 snare:4 crash:4"
    },
    "chorus": {
        "bars": 8,
        "lead": "E6:4 B5:8 G5:8 A5:4 B5:4 | C6:8 B5:8 A5:8 G5:8 A5:4 F#5:4 | G5:4 B5:4 D6:8 C6:8 B5:4 | B5:2 G5:4 B4:4 | E6:4 B5:8 G5:8 A5:4 B5:4 | C6:8 D6:8 E6:4 D6:4 B5:4 | A5:8 G5:8 F#5:8 E5:8 F#5:4 B5:4 | E5:1",
        "arp": "E5:8 B4:8 G4:8 E5:8 D5:8 A4:8 F#4:8 D5:8 | C5:8 G4:8 E4:8 C5:8 D5:8 A4:8 F#4:8 D5:8 | G4:8 B4:8 D5:8 G5:8 D5:8 B4:8 G4:8 D5:8 | B4:8 F#4:8 D#4:8 B4:8 B4:8 F#4:8 D#4:8 B3:8 | E5:8 B4:8 G4:8 E5:8 D5:8 A4:8 F#4:8 D5:8 | C5:8 G4:8 E4:8 C5:8 G4:8 B4:8 D5:8 G5:8 | A4:8 C5:8 E5:8 A5:8 B4:8 D#5:8 F#5:8 B5:8 | E5:8 B4:8 G4:8 E5:8 E4:4 B4:4",
        "harmony": "[E4,G4,B4]:2 [D4,F#4,A4]:2 | [C4,E4,G4]:2 [D4,F#4,A4]:2 | [G4,B4,D5]:1 | [B3,D#4,F#4]:1 | [E4,G4,B4]:2 [D4,F#4,A4]:2 | [C4,E4,G4]:2 [G4,B4,D5]:2 | [A3,C4,E4]:2 [B3,D#4,F#4]:2 | [E4,G4,B4]:1",
        "bass": "E2:8 E3:8 E2:8 E3:8 D2:8 D3:8 D2:8 D3:8 | C2:8 C3:8 C2:8 C3:8 D2:8 D3:8 D2:8 D3:8 | G2:8 G3:8 G2:8 G3:8 G2:8 G3:8 G2:8 G3:8 | B1:8 B2:8 B1:8 B2:8 B1:4 F#2:4 | E2:8 E3:8 E2:8 E3:8 D2:8 D3:8 D2:8 D3:8 | C2:8 C3:8 C2:8 C3:8 G2:8 G3:8 G2:8 G3:8 | A1:8 A2:8 A1:8 A2:8 B1:8 B2:8 B1:8 B2:8 | E2:4 B1:4 E2:2",
        "drums": "crash:4 kick:8 snare:8 kick:8 kick:8 snare:4 | kick:4 hihat:8 kick:8 snare:4 hihat:4 | kick:4 hihat:8 kick:8 snare:4 tom:4 | kick:8 tom:8 snare:8 snare:8 crash:4 hihat:4 | kick:4 kick:8 snare:8 kick:8 kick:8 snare:4 | kick:4 hihat:8 kick:8 snare:4 hihat:4 | kick:4 tom:8 tom:8 snare:4 tom:4 | kick:8 kick:8 snare:4 crash:4 hihat:4"
    },
    "bridge": {
        "bars": 4,
        "lead": "C6:2 B5:4 A5:4 | B5:2 G5:4 E5:4 | A5:4 B5:4 C6:4 D6:4 | B5:1",
        "arp": "C4:8 E4:8 G4:8 C5:8 G4:8 E4:8 G4:8 C5:8 | G3:8 B3:8 D4:8 G4:8 E4:8 G4:8 B4:8 E5:8 | A3:8 C4:8 E4:8 A4:8 D4:8 F#4:8 A4:8 D5:8 | B3:8 D#4:8 F#4:8 B4:8 F#4:8 D#4:8 B3:4",
        "harmony": "[C4,E4,G4]:1 | [G3,B3,D4]:2 [E3,G3,B3]:2 | [A3,C4,E4]:2 [D4,F#4,A4]:2 | [B3,D#4,F#4]:1",
        "bass": "C2:4 G2:4 C2:4 G2:4 | G2:4 D3:4 E2:4 B2:4 | A1:4 E2:4 D2:4 A2:4 | B1:4 F#2:4 B1:2",
        "drums": "kick:4 hihat:4 snare:4 hihat:4 | kick:4 hihat:4 snare:4 hihat:4 | kick:4 tom:4 snare:4 tom:4 | kick:8 snare:8 tom:8 tom:8 crash:4 hihat:4"
    }
}
arrangement = ["intro","verse","chorus","bridge","chorus"]
music/stage_02_cryo.rune
# Stage 02 — Cryo Shade (Cryo Server Vault — Crystalline C Minor, 32-Bar Arrangement)
@Music/nc_stage_02
type = synth
tempo = 126
time_signature = 4/4
loop = true
volume = 0.085
instruments = {"lead":"bell","arp":"pluck","harmony":"strings","bass":"triangle","drums":"drums"}
effects = {
    "reverb": {"decay": 2.5, "wet": 0.28, "filter": 4200},
    "chorus": {"rate": 1.1, "depth": 0.002, "wet": 0.22}
}
track_effects = {
    "lead": {"reverb": 0.35, "chorus": 0.25},
    "arp": {"reverb": 0.4, "chorus": 0.3},
    "bass": {"reverb": 0.05, "chorus": 0}
}
sections = {
    "intro": {
        "bars": 4,
        "lead": "C6:4 G5:4 Eb5:2 | Ab5:4 Eb5:4 C5:2 | D5:4 F5:4 Ab5:4 G5:4 | G5:4 B4:4 D5:4 G5:4",
        "arp": "C4:8 Eb4:8 G4:8 C5:8 G4:8 Eb4:8 G4:8 C5:8 | Ab3:8 C4:8 Eb4:8 Ab4:8 Eb4:8 C4:8 Eb4:8 Ab4:8 | F3:8 Ab3:8 C4:8 F4:8 D4:8 F4:8 Ab4:8 D5:8 | G3:8 B3:8 D4:8 G4:8 D4:8 B3:8 D4:8 G4:8",
        "harmony": "[C4,Eb4,G4]:1 | [Ab3,C4,Eb4]:1 | [F3,Ab3,C4]:2 [D3,F3,Ab3]:2 | [G3,B3,D4]:1",
        "bass": "C2:2 G2:2 | Ab1:2 Eb2:2 | F1:2 D2:2 | G1:2 D2:2",
        "drums": "kick:4 hihat:4 snare:4 hihat:4 | kick:4 hihat:4 snare:4 hihat:4 | kick:4 hihat:4 snare:4 hihat:4 | kick:4 tom:8 tom:8 snare:4 crash:4"
    },
    "verse": {
        "bars": 8,
        "lead": "C5:8 Eb5:8 G5:8 C6:8 Bb5:4 G5:4 | Ab5:8 G5:8 F5:8 Eb5:8 D5:4 G4:4 | C5:8 D5:8 Eb5:8 F5:8 G5:4 Bb5:4 | Ab5:4 G5:4 F5:2 | Eb6:8 D6:8 C6:8 Bb5:8 G5:4 Eb5:4 | F5:8 G5:8 Ab5:8 Bb5:8 G5:4 C5:4 | D5:8 Eb5:8 F5:8 G5:8 F5:8 Eb5:8 D5:8 B4:8 | C5:4 G4:4 Eb5:4 C5:4",
        "arp": "C4:8 G4:8 Eb4:8 G4:8 Bb4:8 F4:8 D4:8 F4:8 | Ab3:8 Eb4:8 C4:8 Eb4:8 G3:8 D4:8 B3:8 D4:8 | C4:8 G4:8 Eb4:8 G4:8 Eb4:8 Bb4:8 G4:8 Bb4:8 | F3:8 C4:8 Ab3:8 C4:8 F3:8 C4:8 Ab3:8 C4:8 | Eb4:8 Bb4:8 G4:8 Bb4:8 Eb4:8 Bb4:8 G4:8 Bb4:8 | F3:8 C4:8 Ab3:8 C4:8 C4:8 G4:8 Eb4:8 G4:8 | D4:8 Ab4:8 F4:8 Ab4:8 G3:8 D4:8 B3:8 D4:8 | C4:8 G4:8 Eb4:8 G4:8 C4:4 G4:4",
        "harmony": "[C4,Eb4,G4]:2 [Bb3,D4,F4]:2 | [Ab3,C4,Eb4]:2 [G3,B3,D4]:2 | [C4,Eb4,G4]:2 [Eb4,G4,Bb4]:2 | [F3,Ab3,C4]:1 | [Eb4,G4,Bb4]:1 | [F3,Ab3,C4]:2 [C4,Eb4,G4]:2 | [D4,F4,Ab4]:2 [G3,B3,D4]:2 | [C4,Eb4,G4]:1",
        "bass": "C2:4 G2:4 Bb1:4 F2:4 | Ab1:4 Eb2:4 G1:4 D2:4 | C2:4 G2:4 Eb2:4 Bb2:4 | F2:4 C2:4 F2:2 | Eb2:4 Bb2:4 Eb3:4 Bb2:4 | F2:4 C2:4 C2:4 G2:4 | D2:4 Ab2:4 G1:4 D2:4 | C2:4 G1:4 C2:2",
        "drums": "kick:4 hihat:8 hihat:8 snare:4 hihat:4 | kick:4 hihat:8 kick:8 snare:4 hihat:4 | kick:4 hihat:8 hihat:8 snare:4 hihat:4 | kick:4 tom:4 snare:4 hihat:4 | crash:4 hihat:8 hihat:8 snare:4 hihat:4 | kick:4 hihat:8 kick:8 snare:4 hihat:4 | kick:4 hihat:8 hihat:8 snare:4 tom:8 tom:8 | kick:4 hihat:4 snare:4 crash:4"
    },
    "chorus": {
        "bars": 8,
        "lead": "G5:4 C6:4 D6:8 Eb6:8 D6:4 | C6:4 G5:4 Ab5:4 Bb5:4 | C6:4 Bb5:8 Ab5:8 G5:4 Eb5:4 | F5:2 D5:4 G4:4 | G5:4 C6:4 D6:8 Eb6:8 F6:4 | Eb6:4 D6:4 C6:4 Bb5:4 | Ab5:8 G5:8 F5:4 G5:4 B5:4 | C6:4 G5:4 Eb5:4 C5:4",
        "arp": "C5:8 G4:8 Eb4:8 C5:8 G4:8 D5:8 B4:8 G4:8 | C5:8 G4:8 Eb4:8 C5:8 Ab4:8 Eb4:8 Bb4:8 F4:8 | Ab4:8 Eb4:8 C4:8 Ab4:8 Eb4:8 G4:8 Bb4:8 Eb5:8 | F4:8 C4:8 Ab3:8 F4:8 G4:8 D4:8 B3:8 G4:8 | C5:8 G4:8 Eb4:8 C5:8 Bb4:8 F4:8 D4:8 Bb4:8 | Eb5:8 Bb4:8 G4:8 Eb5:8 C5:8 G4:8 Eb4:8 C5:8 | F4:8 Ab4:8 C5:8 F5:8 G4:8 B4:8 D5:8 G5:8 | C5:8 G4:8 Eb4:8 C5:8 C4:4 G4:4",
        "harmony": "[C4,Eb4,G4]:2 [G3,B3,D4]:2 | [C4,Eb4,G4]:2 [Ab3,C4,Eb4]:2 | [Ab3,C4,Eb4]:2 [Eb4,G4,Bb4]:2 | [F3,Ab3,C4]:2 [G3,B3,D4]:2 | [C4,Eb4,G4]:2 [Bb3,D4,F4]:2 | [Eb4,G4,Bb4]:2 [C4,Eb4,G4]:2 | [F3,Ab3,C4]:2 [G3,B3,D4]:2 | [C4,Eb4,G4]:1",
        "bass": "C2:8 C3:8 C2:8 C3:8 G1:8 G2:8 G1:8 G2:8 | C2:8 C3:8 C2:8 C3:8 Ab1:8 Ab2:8 Bb1:8 Bb2:8 | Ab1:8 Ab2:8 Ab1:8 Ab2:8 Eb2:8 Eb3:8 Eb2:8 Eb3:8 | F1:8 F2:8 F1:8 F2:8 G1:8 G2:8 G1:8 G2:8 | C2:8 C3:8 C2:8 C3:8 Bb1:8 Bb2:8 Bb1:8 Bb2:8 | Eb2:8 Eb3:8 Eb2:8 Eb3:8 C2:8 C3:8 C2:8 C3:8 | F1:8 F2:8 F1:8 F2:8 G1:8 G2:8 G1:8 G2:8 | C2:4 G1:4 C2:2",
        "drums": "crash:4 hihat:8 kick:8 snare:4 hihat:4 | kick:4 hihat:8 kick:8 snare:4 hihat:4 | kick:4 hihat:8 hihat:8 snare:4 hihat:4 | kick:4 tom:8 tom:8 snare:4 crash:4 | kick:4 hihat:8 kick:8 snare:4 hihat:4 | kick:4 hihat:8 kick:8 snare:4 hihat:4 | kick:4 tom:4 snare:4 tom:4 | kick:8 kick:8 snare:4 crash:4 hihat:4"
    },
    "bridge": {
        "bars": 4,
        "lead": "Ab5:2 G5:4 F5:4 | G5:2 Eb5:4 C5:4 | F5:4 G5:4 Ab5:4 Bb5:4 | G5:4 B5:4 D6:4 G5:4",
        "arp": "Ab3:8 C4:8 Eb4:8 Ab4:8 Eb4:8 C4:8 Eb4:8 Ab4:8 | Eb3:8 G3:8 Bb3:8 Eb4:8 C4:8 Eb4:8 G4:8 C5:8 | F3:8 Ab3:8 C4:8 F4:8 Bb3:8 D4:8 F4:8 Bb4:8 | G3:8 B3:8 D4:8 G4:8 D4:8 B3:8 G3:4",
        "harmony": "[Ab3,C4,Eb4]:1 | [Eb3,G3,Bb3]:2 [C3,Eb3,G3]:2 | [F3,Ab3,C4]:2 [Bb3,D4,F4]:2 | [G3,B3,D4]:1",
        "bass": "Ab1:4 Eb2:4 Ab1:4 Eb2:4 | Eb2:4 Bb2:4 C2:4 G2:4 | F1:4 C2:4 Bb1:4 F2:4 | G1:4 D2:4 G1:2",
        "drums": "kick:4 hihat:4 snare:4 hihat:4 | kick:4 hihat:4 snare:4 hihat:4 | kick:4 tom:4 snare:4 tom:4 | kick:8 snare:8 tom:8 tom:8 crash:4 hihat:4"
    }
}
arrangement = ["intro","verse","chorus","bridge","chorus"]
music/stage_03_mag.rune
# Stage 03 — Mag Titan (Mag-Lev Scrapyard — Heavy A Minor Industrial, 32-Bar Arrangement)
@Music/nc_stage_03
type = synth
tempo = 134
time_signature = 4/4
loop = true
volume = 0.068
instruments = {"lead":"brass","arp":"square","harmony":"strings","bass":"sawtooth","drums":"drums"}
effects = {
    "reverb": {"decay": 1.5, "wet": 0.16},
    "delay": {"time": 0.1875, "feedback": 0.36, "wet": 0.22, "damping": 2900},
    "crush": {"bits": 12, "drive": 0.12}
}
track_effects = {
    "lead": {"delay": 0.3, "reverb": 0.18},
    "arp": {"delay": 0.4, "reverb": 0.2},
    "bass": {"delay": 0, "reverb": 0}
}
sections = {
    "intro": {
        "bars": 4,
        "lead": "A4:4 E5:4 A5:2 | G5:4 E5:4 D5:2 | F5:4 E5:4 D5:4 C5:4 | B4:2 E5:2",
        "arp": "A3:8 C4:8 E4:8 A4:8 E4:8 C4:8 E4:8 A4:8 | G3:8 B3:8 D4:8 G4:8 D4:8 B3:8 D4:8 G4:8 | F3:8 A3:8 C4:8 F4:8 D4:8 F4:8 A4:8 D5:8 | E3:8 G#3:8 B3:8 E4:8 B3:8 G#3:8 B3:8 E4:8",
        "harmony": "[A3,C4,E4]:1 | [G3,B3,D4]:1 | [F3,A3,C4]:2 [D3,F3,A3]:2 | [E3,G#3,B3]:1",
        "bass": "A1:8 A1:8 A2:8 A1:8 A1:4 E2:4 | G1:8 G1:8 G2:8 G1:8 G1:4 D2:4 | F1:4 C2:4 D2:4 A1:4 | E1:4 B1:4 E2:2",
        "drums": "crash:4 snare:4 kick:4 snare:4 | kick:8 kick:8 snare:4 kick:4 snare:4 | kick:4 tom:4 snare:4 tom:4 | kick:8 kick:8 snare:4 crash:4 hihat:4"
    },
    "verse": {
        "bars": 8,
        "lead": "A4:4 C5:8 E5:8 A5:4 G5:4 | F5:8 E5:8 D5:8 C5:8 B4:4 E4:4 | A4:8 B4:8 C5:8 D5:8 E5:4 A5:4 | G5:4 F5:4 E5:2 | C6:8 B5:8 A5:8 G5:8 A5:4 E5:4 | F5:8 G5:8 A5:8 F5:8 E5:4 C5:4 | D5:8 E5:8 F5:8 G5:8 E5:8 D5:8 C5:8 B4:8 | A4:1",
        "arp": "A3:8 E4:8 C4:8 E4:8 A3:8 E4:8 C4:8 E4:8 | F3:8 C4:8 A3:8 C4:8 E3:8 B3:8 G#3:8 B3:8 | A3:8 E4:8 C4:8 E4:8 A3:8 E4:8 C4:8 E4:8 | G3:8 D4:8 B3:8 D4:8 E3:8 B3:8 G#3:8 B3:8 | A3:8 E4:8 C4:8 E4:8 A3:8 E4:8 C4:8 E4:8 | F3:8 C4:8 A3:8 C4:8 C4:8 G4:8 E4:8 G4:8 | D4:8 A4:8 F4:8 A4:8 E3:8 B3:8 G#3:8 B3:8 | A3:8 E4:8 C4:8 E4:8 A3:4 E4:4",
        "harmony": "[A3,C4,E4]:1 | [F3,A3,C4]:2 [E3,G#3,B3]:2 | [A3,C4,E4]:1 | [G3,B3,D4]:2 [E3,G#3,B3]:2 | [A3,C4,E4]:1 | [F3,A3,C4]:2 [C4,E4,G4]:2 | [D4,F4,A4]:2 [E3,G#3,B3]:2 | [A3,C4,E4]:1",
        "bass": "A1:8 A1:8 A2:8 A1:8 A1:4 G1:4 | F1:8 F1:8 F2:8 F1:8 E1:4 B1:4 | A1:8 A1:8 A2:8 A1:8 C2:4 A1:4 | G1:4 F1:4 E1:2 | A1:8 A1:8 A2:8 A1:8 E2:4 A1:4 | F1:8 F1:8 C2:8 F1:8 C2:4 G1:4 | D2:8 D2:8 F2:8 D2:8 E1:4 B1:4 | A1:4 E1:4 A1:2",
        "drums": "kick:4 snare:4 kick:4 snare:4 | kick:8 kick:8 snare:4 kick:4 snare:4 | kick:4 snare:4 tom:8 tom:8 snare:4 | kick:4 snare:4 kick:8 kick:8 snare:4 | crash:4 snare:4 kick:4 snare:4 | kick:8 kick:8 snare:4 kick:4 snare:4 | kick:4 tom:4 snare:4 tom:4 | kick:4 kick:4 snare:4 crash:4"
    },
    "chorus": {
        "bars": 8,
        "lead": "A5:4 E5:8 C5:8 D5:4 E5:4 | F5:4 G5:4 A5:2 | G5:4 D5:8 B4:8 C5:4 D5:4 | E5:2 C5:4 E4:4 | A5:4 E5:8 C5:8 D5:4 E5:4 | F5:8 G5:8 A5:4 C6:4 B5:4 | A5:8 G5:8 F5:8 E5:8 D5:4 G#4:4 | A4:1",
        "arp": "A4:8 E4:8 C4:8 A4:8 E4:8 C4:8 A3:8 E4:8 | F4:8 C4:8 A3:8 F4:8 A4:8 E4:8 C4:8 A4:8 | G4:8 D4:8 B3:8 G4:8 D4:8 B3:8 G3:8 D4:8 | E4:8 B3:8 G#3:8 E4:8 E4:8 B3:8 G#3:8 E3:8 | A4:8 E4:8 C4:8 A4:8 E4:8 C4:8 A3:8 E4:8 | F4:8 C4:8 A3:8 F4:8 C5:8 G4:8 E4:8 C5:8 | D4:8 F4:8 A4:8 D5:8 E4:8 G#4:8 B4:8 E5:8 | A4:8 E4:8 C4:8 A4:8 A3:4 E4:4",
        "harmony": "[A3,C4,E4]:1 | [F3,A3,C4]:2 [A3,C4,E4]:2 | [G3,B3,D4]:1 | [E3,G#3,B3]:1 | [A3,C4,E4]:1 | [F3,A3,C4]:2 [C4,E4,G4]:2 | [D4,F4,A4]:2 [E3,G#3,B3]:2 | [A3,C4,E4]:1",
        "bass": "A1:8 A2:8 A1:8 A2:8 A1:8 A2:8 A1:8 A2:8 | F1:8 F2:8 F1:8 F2:8 A1:8 A2:8 A1:8 A2:8 | G1:8 G2:8 G1:8 G2:8 G1:8 G2:8 G1:8 G2:8 | E1:8 E2:8 E1:8 E2:8 E1:4 B1:4 | A1:8 A2:8 A1:8 A2:8 A1:8 A2:8 A1:8 A2:8 | F1:8 F2:8 F1:8 F2:8 C2:8 C3:8 C2:8 C3:8 | D2:8 D3:8 D2:8 D3:8 E1:8 E2:8 E1:8 E2:8 | A1:4 E1:4 A1:2",
        "drums": "crash:4 snare:4 kick:8 kick:8 snare:4 | kick:4 snare:4 kick:8 kick:8 snare:4 | kick:4 snare:4 tom:8 tom:8 snare:4 | kick:8 tom:8 snare:8 snare:8 crash:4 hihat:4 | kick:4 snare:4 kick:8 kick:8 snare:4 | kick:4 snare:4 kick:8 kick:8 snare:4 | kick:4 tom:4 snare:4 tom:4 | kick:8 kick:8 snare:4 crash:4 hihat:4"
    },
    "bridge": {
        "bars": 4,
        "lead": "F5:2 E5:4 D5:4 | E5:2 C5:4 A4:4 | D5:4 E5:4 F5:4 G5:4 | E5:1",
        "arp": "F3:8 A3:8 C4:8 F4:8 C4:8 A3:8 C4:8 F4:8 | C4:8 E4:8 G4:8 C5:8 A3:8 C4:8 E4:8 A4:8 | D4:8 F4:8 A4:8 D5:8 G3:8 B3:8 D4:8 G4:8 | E3:8 G#3:8 B3:8 E4:8 B3:8 G#3:8 E3:4",
        "harmony": "[F3,A3,C4]:1 | [C4,E4,G4]:2 [A3,C4,E4]:2 | [D4,F4,A4]:2 [G3,B3,D4]:2 | [E3,G#3,B3]:1",
        "bass": "F1:4 C2:4 F1:4 C2:4 | C2:4 G2:4 A1:4 E2:4 | D2:4 A2:4 G1:4 D2:4 | E1:4 B1:4 E1:2",
        "drums": "kick:4 hihat:4 snare:4 hihat:4 | kick:4 hihat:4 snare:4 hihat:4 | kick:4 tom:4 snare:4 tom:4 | kick:8 snare:8 tom:8 tom:8 crash:4 hihat:4"
    }
}
arrangement = ["intro","verse","chorus","bridge","chorus"]
music/stage_04_pyro.rune
# Stage 04 — Pyro Nova (Plasma Foundry — Blazing F# Minor, 32-Bar Arrangement)
@Music/nc_stage_04
type = synth
tempo = 154
time_signature = 4/4
loop = true
volume = 0.068
instruments = {"lead":"square","arp":"bell","harmony":"sawtooth","bass":"triangle","drums":"drums"}
effects = {
    "reverb": {"decay": 1.8, "wet": 0.18},
    "delay": {"time": 0.25, "feedback": 0.35, "wet": 0.20, "damping": 2600},
    "crush": {"bits": 8, "drive": 0.22}
}
track_effects = {
    "lead": {"delay": 0.32, "reverb": 0.2},
    "arp": {"delay": 0.38, "reverb": 0.2},
    "bass": {"delay": 0, "reverb": 0}
}
sections = {
    "intro": {
        "bars": 4,
        "lead": "F#5:4 C#6:4 B5:4 A5:4 | G#5:4 B5:4 A5:4 G#5:4 | F#5:8 G#5:8 A5:8 B5:8 C#6:4 D6:4 | C#6:1",
        "arp": "F#4:8 A4:8 C#5:8 F#5:8 C#5:8 A4:8 C#5:8 F#5:8 | E4:8 G#4:8 B4:8 E5:8 B4:8 G#4:8 B4:8 E5:8 | D4:8 F#4:8 A4:8 D5:8 A4:8 F#4:8 A4:8 D5:8 | C#4:8 F4:8 G#4:8 C#5:8 G#4:8 F4:8 G#4:8 C#5:8",
        "harmony": "[F#3,A3,C#4]:1 | [E3,G#3,B3]:1 | [D3,F#3,A3]:1 | [C#3,F3,G#3]:1",
        "bass": "F#2:8 F#2:8 F#3:8 F#2:8 F#2:4 C#2:4 | E2:8 E2:8 E3:8 E2:8 E2:4 B1:4 | D2:8 D2:8 D3:8 D2:8 D2:4 A1:4 | C#2:4 G#2:4 C#2:2",
        "drums": "crash:4 snare:4 kick:8 kick:8 snare:4 | kick:4 snare:4 kick:8 hihat:8 snare:4 | kick:4 snare:4 tom:8 tom:8 snare:4 | kick:8 kick:8 snare:4 crash:4 hihat:4"
    },
    "verse": {
        "bars": 8,
        "lead": "F#5:8 A5:8 C#6:8 A5:8 B5:8 A5:8 G#5:4 | F#5:8 G#5:8 A5:8 B5:8 C#6:4 E6:4 | D6:8 C#6:8 B5:8 A5:8 G#5:4 B5:4 | C#6:4 G#5:4 F#5:2 | F#5:8 C#6:8 B5:8 A5:8 G#5:8 B5:8 A5:4 | D6:8 C#6:8 B5:8 G#5:8 A5:4 F#5:4 | B5:8 A5:8 G#5:8 F#5:8 G#5:8 A5:8 B5:8 C#6:8 | F#5:1",
        "arp": "F#4:8 C#5:8 A4:8 C#5:8 F#4:8 C#5:8 A4:8 C#5:8 | F#4:8 C#5:8 A4:8 C#5:8 A4:8 E5:8 C#5:8 E5:8 | D4:8 A4:8 F#4:8 A4:8 E4:8 B4:8 G#4:8 B4:8 | C#4:8 G#4:8 F4:8 G#4:8 F#4:8 C#5:8 A4:8 C#5:8 | F#4:8 C#5:8 A4:8 C#5:8 E4:8 B4:8 G#4:8 B4:8 | D4:8 A4:8 F#4:8 A4:8 F#4:8 C#5:8 A4:8 C#5:8 | B3:8 F#4:8 D4:8 F#4:8 C#4:8 G#4:8 F4:8 G#4:8 | F#4:8 C#5:8 A4:8 C#5:8 F#4:4 C#5:4",
        "harmony": "[F#3,A3,C#4]:1 | [F#3,A3,C#4]:2 [A3,C#4,E4]:2 | [D4,F#4,A4]:2 [E4,G#4,B4]:2 | [C#4,F4,G#4]:2 [F#3,A3,C#4]:2 | [F#3,A3,C#4]:2 [E4,G#4,B4]:2 | [D4,F#4,A4]:2 [F#3,A3,C#4]:2 | [B3,D4,F#4]:2 [C#4,F4,G#4]:2 | [F#3,A3,C#4]:1",
        "bass": "F#2:8 F#2:8 F#3:8 F#2:8 F#2:8 F#2:8 E2:8 F#2:8 | F#2:8 F#2:8 A2:8 F#2:8 A2:8 A2:8 E2:8 A2:8 | D2:8 D2:8 A2:8 D2:8 E2:8 E2:8 B2:8 E2:8 | C#2:4 G#2:4 F#2:2 | F#2:8 F#2:8 C#3:8 F#2:8 E2:8 E2:8 B2:8 E2:8 | D2:8 D2:8 A2:8 D2:8 F#2:4 C#2:4 | B1:8 B1:8 F#2:8 B1:8 C#2:8 C#2:8 G#2:8 C#2:8 | F#2:4 C#2:4 F#2:2",
        "drums": "kick:4 snare:4 kick:8 kick:8 snare:4 | kick:4 snare:4 kick:8 hihat:8 snare:4 | kick:4 snare:4 kick:8 kick:8 snare:4 | kick:4 tom:8 tom:8 snare:4 kick:4 | crash:4 snare:4 kick:8 kick:8 snare:4 | kick:4 snare:4 kick:8 hihat:8 snare:4 | kick:4 snare:4 tom:8 tom:8 snare:4 | kick:4 tom:4 snare:4 crash:4"
    },
    "chorus": {
        "bars": 8,
        "lead": "F#6:4 C#6:8 A5:8 B5:4 C#6:4 | D6:8 C#6:8 B5:8 A5:8 B5:4 G#5:4 | A5:4 C#6:4 E6:8 D6:8 C#6:4 | C#6:2 A5:4 C#5:4 | F#6:4 C#6:8 A5:8 B5:4 C#6:4 | D6:8 E6:8 F#6:4 E6:4 C#6:4 | B5:8 A5:8 G#5:8 F#5:8 G#5:4 C#6:4 | F#5:1",
        "arp": "F#5:8 C#5:8 A4:8 F#5:8 E5:8 B4:8 G#4:8 E5:8 | D5:8 A4:8 F#4:8 D5:8 E5:8 B4:8 G#4:8 E5:8 | A4:8 C#5:8 E5:8 A5:8 E5:8 C#5:8 A4:8 E5:8 | C#5:8 G#4:8 F4:8 C#5:8 C#5:8 G#4:8 F4:8 C#4:8 | F#5:8 C#5:8 A4:8 F#5:8 E5:8 B4:8 G#4:8 E5:8 | D5:8 A4:8 F#4:8 D5:8 A4:8 C#5:8 E5:8 A5:8 | B4:8 D5:8 F#5:8 B5:8 C#5:8 F5:8 G#5:8 C#6:8 | F#5:8 C#5:8 A4:8 F#5:8 F#4:4 C#5:4",
        "harmony": "[F#3,A3,C#4]:2 [E3,G#3,B3]:2 | [D4,F#4,A4]:2 [E4,G#4,B4]:2 | [A3,C#4,E4]:1 | [C#4,F4,G#4]:1 | [F#3,A3,C#4]:2 [E3,G#3,B3]:2 | [D4,F#4,A4]:2 [A3,C#4,E4]:2 | [B3,D4,F#4]:2 [C#4,F4,G#4]:2 | [F#3,A3,C#4]:1",
        "bass": "F#2:8 F#3:8 F#2:8 F#3:8 E2:8 E3:8 E2:8 E3:8 | D2:8 D3:8 D2:8 D3:8 E2:8 E3:8 E2:8 E3:8 | A1:8 A2:8 A1:8 A2:8 A1:8 A2:8 A1:8 A2:8 | C#2:8 C#3:8 C#2:8 C#3:8 C#2:4 G#2:4 | F#2:8 F#3:8 F#2:8 F#3:8 E2:8 E3:8 E2:8 E3:8 | D2:8 D3:8 D2:8 D3:8 A1:8 A2:8 A1:8 A2:8 | B1:8 B2:8 B1:8 B2:8 C#2:8 C#3:8 C#2:8 C#3:8 | F#2:4 C#2:4 F#2:2",
        "drums": "crash:4 kick:8 snare:8 kick:8 kick:8 snare:4 | kick:4 hihat:8 kick:8 snare:4 hihat:4 | kick:4 hihat:8 kick:8 snare:4 tom:4 | kick:8 tom:8 snare:8 snare:8 crash:4 hihat:4 | kick:4 kick:8 snare:8 kick:8 kick:8 snare:4 | kick:4 hihat:8 kick:8 snare:4 hihat:4 | kick:4 tom:8 tom:8 snare:4 tom:4 | kick:8 kick:8 snare:4 crash:4 hihat:4"
    },
    "bridge": {
        "bars": 4,
        "lead": "D6:2 C#6:4 B5:4 | C#6:2 A5:4 F#5:4 | B5:4 C#6:4 D6:4 E6:4 | C#6:1",
        "arp": "D4:8 F#4:8 A4:8 D5:8 A4:8 F#4:8 A4:8 D5:8 | A3:8 C#4:8 E4:8 A4:8 F#4:8 A4:8 C#5:8 F#5:8 | B3:8 D4:8 F#4:8 B4:8 E4:8 G#4:8 B4:8 E5:8 | C#4:8 F4:8 G#4:8 C#5:8 G#4:8 F4:8 C#4:4",
        "harmony": "[D4,F#4,A4]:1 | [A3,C#4,E4]:2 [F#3,A3,C#4]:2 | [B3,D4,F#4]:2 [E4,G#4,B4]:2 | [C#4,F4,G#4]:1",
        "bass": "D2:4 A2:4 D2:4 A2:4 | A1:4 E2:4 F#2:4 C#3:4 | B1:4 F#2:4 E2:4 B2:4 | C#2:4 G#2:4 C#2:2",
        "drums": "kick:4 hihat:4 snare:4 hihat:4 | kick:4 hihat:4 snare:4 hihat:4 | kick:4 tom:4 snare:4 tom:4 | kick:8 snare:8 tom:8 tom:8 crash:4 hihat:4"
    }
}
arrangement = ["intro","verse","chorus","bridge","chorus"]
music/stage_05_phase.rune
# Stage 05 — Phase Phantom (Holo-Net Spire — Ethereal G Minor, 32-Bar Arrangement)
@Music/nc_stage_05
type = synth
tempo = 138
time_signature = 4/4
loop = true
volume = 0.068
instruments = {"lead":"bell","arp":"pluck","harmony":"strings","bass":"triangle","drums":"drums"}
effects = {
    "reverb": {"decay": 2.6, "wet": 0.28, "filter": 3800},
    "delay": {"time": 0.333, "feedback": 0.38, "wet": 0.22},
    "chorus": {"rate": 1.3, "depth": 0.003, "wet": 0.30}
}
track_effects = {
    "lead": {"reverb": 0.35, "delay": 0.25},
    "arp": {"reverb": 0.4, "delay": 0.35, "chorus": 0.3},
    "bass": {"reverb": 0.05, "delay": 0}
}
sections = {
    "intro": {
        "bars": 4,
        "lead": "G5:4 D6:4 Bb5:4 G5:4 | F5:4 C6:4 A5:4 F5:4 | Eb5:4 Bb5:4 G5:4 Eb5:4 | D5:1",
        "arp": "G4:8 Bb4:8 D5:8 G5:8 D5:8 Bb4:8 D5:8 G5:8 | F4:8 A4:8 C5:8 F5:8 C5:8 A4:8 C5:8 F5:8 | Eb4:8 G4:8 Bb4:8 Eb5:8 Bb4:8 G4:8 Bb4:8 Eb5:8 | D4:8 F#4:8 A4:8 D5:8 A4:8 F#4:8 A4:8 D5:8",
        "harmony": "[G3,Bb3,D4]:1 | [F3,A3,C4]:1 | [Eb3,G3,Bb3]:1 | [D3,F#3,A3]:1",
        "bass": "G2:2 D3:2 | F2:2 C3:2 | Eb2:2 Bb2:2 | D2:2 A1:2",
        "drums": "crash:4 hihat:8 hihat:8 snare:4 hihat:4 | kick:4 hihat:8 kick:8 snare:4 hihat:4 | kick:4 hihat:8 hihat:8 snare:4 tom:4 | kick:8 tom:8 snare:4 crash:4 hihat:4"
    },
    "verse": {
        "bars": 8,
        "lead": "G5:8 Bb5:8 D6:8 Bb5:8 C6:4 A5:4 | Bb5:8 A5:8 G5:8 F5:8 Eb5:4 D5:4 | G5:8 A5:8 Bb5:8 C6:8 D6:4 F6:4 | Eb6:4 D6:4 C6:2 | D6:8 C6:8 Bb5:8 A5:8 Bb5:4 G5:4 | A5:8 Bb5:8 C6:8 A5:8 G5:4 D5:4 | Eb5:8 F5:8 G5:8 A5:8 Bb5:8 A5:8 G5:8 F#5:8 | G5:1",
        "arp": "G4:8 D5:8 Bb4:8 D5:8 F4:8 C5:8 A4:8 C5:8 | Eb4:8 Bb4:8 G4:8 Bb4:8 D4:8 A4:8 F#4:8 A4:8 | G4:8 D5:8 Bb4:8 D5:8 Bb4:8 F5:8 D5:8 F5:8 | C5:8 G5:8 Eb5:8 G5:8 C5:8 G5:8 Eb5:8 G5:8 | G4:8 D5:8 Bb4:8 D5:8 G4:8 D5:8 Bb4:8 D5:8 | F4:8 C5:8 A4:8 C5:8 G4:8 D5:8 B4:8 D5:8 | Eb4:8 Bb4:8 G4:8 Bb4:8 D4:8 A4:8 F#4:8 A4:8 | G4:8 D5:8 Bb4:8 D5:8 G4:4 D5:4",
        "harmony": "[G3,Bb3,D4]:2 [F3,A3,C4]:2 | [Eb3,G3,Bb3]:2 [D3,F#3,A3]:2 | [G3,Bb3,D4]:2 [Bb3,D4,F4]:2 | [C4,Eb4,G4]:1 | [G3,Bb3,D4]:1 | [F3,A3,C4]:2 [G3,Bb3,D4]:2 | [Eb3,G3,Bb3]:2 [D3,F#3,A3]:2 | [G3,Bb3,D4]:1",
        "bass": "G2:8 G2:8 D3:8 G2:8 F2:4 C3:4 | Eb2:8 Eb2:8 Bb2:8 Eb2:8 D2:4 A1:4 | G2:8 G2:8 D3:8 G2:8 Bb2:4 F2:4 | C2:4 G2:4 C3:2 | G2:8 G2:8 D3:8 G2:8 Bb2:4 G2:4 | F2:8 F2:8 C3:8 F2:8 G2:4 D2:4 | Eb2:4 Bb2:4 D2:4 A1:4 | G2:4 D2:4 G2:2",
        "drums": "kick:4 hihat:8 hihat:8 snare:4 hihat:4 | kick:4 hihat:8 kick:8 snare:4 hihat:4 | kick:4 hihat:8 hihat:8 snare:4 tom:4 | kick:4 snare:4 kick:8 hihat:8 snare:4 | crash:4 hihat:8 hihat:8 snare:4 hihat:4 | kick:4 hihat:8 kick:8 snare:4 hihat:4 | kick:4 tom:4 snare:4 tom:4 | kick:4 snare:4 crash:4 hihat:4"
    },
    "chorus": {
        "bars": 8,
        "lead": "D6:4 G6:4 F6:8 Eb6:8 D6:4 | C6:8 D6:8 Eb6:4 D6:4 C6:4 | Bb5:4 D6:4 C6:8 Bb5:8 A5:4 | Bb5:2 A5:4 D5:4 | D6:4 G6:4 F6:8 Eb6:8 D6:4 | Eb6:4 F6:4 G6:2 | F6:8 Eb6:8 D6:8 C6:8 D6:4 F#5:4 | G5:1",
        "arp": "G5:8 D5:8 Bb4:8 G5:8 F5:8 C5:8 A4:8 F5:8 | C5:8 G4:8 Eb4:8 C5:8 D5:8 A4:8 F#4:8 D5:8 | Bb4:8 F4:8 D4:8 Bb4:8 F4:8 A4:8 C5:8 F5:8 | G4:8 Bb4:8 D5:8 G5:8 D4:8 F#4:8 A4:8 D5:8 | G5:8 D5:8 Bb4:8 G5:8 F5:8 C5:8 A4:8 F5:8 | Eb5:8 Bb4:8 G4:8 Eb5:8 C5:8 G4:8 Eb4:8 C5:8 | D5:8 A4:8 F4:8 D5:8 D5:8 A4:8 F#4:8 D5:8 | G5:8 D5:8 Bb4:8 G5:8 G4:4 D5:4",
        "harmony": "[G3,Bb3,D4]:2 [F3,A3,C4]:2 | [C4,Eb4,G4]:2 [D3,F#3,A3]:2 | [Bb3,D4,F4]:2 [F3,A3,C4]:2 | [G3,Bb3,D4]:2 [D3,F#3,A3]:2 | [G3,Bb3,D4]:2 [F3,A3,C4]:2 | [Eb3,G3,Bb3]:2 [C4,Eb4,G4]:2 | [D3,F3,A3]:2 [D3,F#3,A3]:2 | [G3,Bb3,D4]:1",
        "bass": "G2:8 G3:8 G2:8 G3:8 F2:8 F3:8 F2:8 F3:8 | C2:8 C3:8 C2:8 C3:8 D2:8 D3:8 D2:8 D3:8 | Bb1:8 Bb2:8 Bb1:8 Bb2:8 F2:8 F3:8 F2:8 F3:8 | G2:8 G3:8 G2:8 G3:8 D2:4 A1:4 | G2:8 G3:8 G2:8 G3:8 F2:8 F3:8 F2:8 F3:8 | Eb2:8 Eb3:8 Eb2:8 Eb3:8 C2:8 C3:8 C2:8 C3:8 | D2:8 D3:8 D2:8 D3:8 D2:8 D3:8 D2:8 D3:8 | G2:4 D2:4 G2:2",
        "drums": "crash:4 hihat:8 kick:8 snare:4 hihat:4 | kick:4 hihat:8 kick:8 snare:4 hihat:4 | kick:4 hihat:8 kick:8 snare:4 tom:4 | kick:4 snare:4 tom:8 tom:8 crash:4 | kick:4 hihat:8 kick:8 snare:4 hihat:4 | kick:4 hihat:8 kick:8 snare:4 hihat:4 | kick:4 tom:4 snare:4 tom:4 | kick:8 kick:8 snare:4 crash:4 hihat:4"
    },
    "bridge": {
        "bars": 4,
        "lead": "Eb6:2 D6:4 C6:4 | D6:2 Bb5:4 G5:4 | C6:4 D6:4 Eb6:4 F6:4 | D6:1",
        "arp": "Eb4:8 G4:8 Bb4:8 Eb5:8 Bb4:8 G4:8 Bb4:8 Eb5:8 | Bb3:8 D4:8 F4:8 Bb4:8 G4:8 Bb4:8 D5:8 G5:8 | C4:8 Eb4:8 G4:8 C5:8 F4:8 A4:8 C5:8 F5:8 | D4:8 F#4:8 A4:8 D5:8 A4:8 F#4:8 D4:4",
        "harmony": "[Eb3,G3,Bb3]:1 | [Bb3,D4,F4]:2 [G3,Bb3,D4]:2 | [C4,Eb4,G4]:2 [F3,A3,C4]:2 | [D3,F#3,A3]:1",
        "bass": "Eb2:4 Bb2:4 Eb2:4 Bb2:4 | Bb1:4 F2:4 G2:4 D3:4 | C2:4 G2:4 F2:4 C3:4 | D2:4 A1:4 D2:2",
        "drums": "kick:4 hihat:4 snare:4 hihat:4 | kick:4 hihat:4 snare:4 hihat:4 | kick:4 tom:4 snare:4 tom:4 | kick:8 snare:8 tom:8 tom:8 crash:4 hihat:4"
    }
}
arrangement = ["intro","verse","chorus","bridge","chorus"]
music/stage_06_saw.rune
# Stage 06 — Pulse Saw (Bio-Synth Conduit — Acid B Minor, 32-Bar Arrangement)
@Music/nc_stage_06
type = synth
tempo = 156
time_signature = 4/4
loop = true
volume = 0.068
instruments = {"lead":"sawtooth","arp":"square","harmony":"brass","bass":"sawtooth","drums":"drums"}
effects = {
    "delay": {"time": 0.15, "feedback": 0.34, "wet": 0.18, "damping": 3000},
    "crush": {"bits": 8, "drive": 0.25}
}
track_effects = {
    "lead": {"delay": 0.3},
    "arp": {"delay": 0.35},
    "bass": {"delay": 0}
}
sections = {
    "intro": {
        "bars": 4,
        "lead": "B4:8 F#5:8 B5:8 F#5:8 D5:4 B4:4 | G5:8 F#5:8 E5:8 D5:8 C#5:4 F#4:4 | B4:8 D5:8 F#5:8 A5:8 G5:4 E5:4 | F#5:1",
        "arp": "B3:8 D4:8 F#4:8 B4:8 F#4:8 D4:8 F#4:8 B4:8 | G3:8 B3:8 D4:8 G4:8 F#3:8 A#3:8 C#4:8 F#4:8 | B3:8 D4:8 F#4:8 B4:8 E4:8 G4:8 B4:8 E5:8 | F#3:8 A#3:8 C#4:8 F#4:8 C#4:8 A#3:8 C#4:8 F#4:8",
        "harmony": "[B3,D4,F#4]:1 | [G3,B3,D4]:2 [F#3,A#3,C#4]:2 | [B3,D4,F#4]:2 [E4,G4,B4]:2 | [F#3,A#3,C#4]:1",
        "bass": "B1:8 B1:8 B2:8 B1:8 B1:4 F#1:4 | G1:8 G1:8 G2:8 G1:8 F#1:4 C#2:4 | B1:8 B1:8 F#2:8 B1:8 E2:4 B1:4 | F#1:4 C#2:4 F#1:2",
        "drums": "crash:4 kick:8 kick:8 snare:4 kick:4 | kick:8 kick:8 snare:4 tom:8 tom:8 snare:4 | kick:8 kick:8 snare:4 kick:8 hihat:8 snare:4 | kick:8 tom:8 snare:8 snare:8 crash:4 hihat:4"
    },
    "verse": {
        "bars": 8,
        "lead": "B4:8 D5:8 F#5:8 B5:8 A5:8 F#5:8 D5:4 | G5:8 F#5:8 E5:8 D5:8 C#5:4 F#4:4 | B4:8 C#5:8 D5:8 E5:8 F#5:4 A5:4 | G5:4 F#5:4 E5:2 | B5:8 A5:8 G5:8 F#5:8 G5:8 A5:8 B5:4 | A5:8 G5:8 F#5:8 E5:8 F#5:4 D5:4 | E5:8 F#5:8 G5:8 A5:8 G5:8 F#5:8 E5:8 C#5:8 | B4:1",
        "arp": "B3:8 F#4:8 D4:8 F#4:8 A3:8 E4:8 C#4:8 E4:8 | G3:8 D4:8 B3:8 D4:8 F#3:8 C#4:8 A#3:8 C#4:8 | B3:8 F#4:8 D4:8 F#4:8 D4:8 A4:8 F#4:8 A4:8 | E4:8 B4:8 G4:8 B4:8 E4:8 B4:8 G4:8 B4:8 | B3:8 F#4:8 D4:8 F#4:8 G3:8 D4:8 B3:8 D4:8 | A3:8 E4:8 C#4:8 E4:8 D4:8 A4:8 F#4:8 A4:8 | E4:8 B4:8 G4:8 B4:8 F#3:8 C#4:8 A#3:8 C#4:8 | B3:8 F#4:8 D4:8 F#4:8 B3:4 F#4:4",
        "harmony": "[B3,D4,F#4]:2 [A3,C#4,E4]:2 | [G3,B3,D4]:2 [F#3,A#3,C#4]:2 | [B3,D4,F#4]:2 [D4,F#4,A4]:2 | [E4,G4,B4]:1 | [B3,D4,F#4]:2 [G3,B3,D4]:2 | [A3,C#4,E4]:2 [D4,F#4,A4]:2 | [E4,G4,B4]:2 [F#3,A#3,C#4]:2 | [B3,D4,F#4]:1",
        "bass": "B1:8 B1:8 B2:8 B1:8 A1:8 A1:8 A2:8 A1:8 | G1:8 G1:8 G2:8 G1:8 F#1:8 F#1:8 C#2:8 F#1:8 | B1:8 B1:8 F#2:8 B1:8 D2:4 A1:4 | E2:4 B1:4 E2:2 | B1:8 B1:8 F#2:8 B1:8 G1:8 G1:8 D2:8 G1:8 | A1:8 A1:8 E2:8 A1:8 D2:4 A1:4 | E2:4 B1:4 F#1:4 C#2:4 | B1:4 F#1:4 B1:2",
        "drums": "kick:8 kick:8 snare:4 kick:8 hihat:8 snare:4 | kick:4 snare:4 kick:8 kick:8 snare:4 | kick:8 kick:8 snare:4 tom:8 tom:8 snare:4 | kick:4 snare:4 kick:8 kick:8 snare:4 | crash:4 kick:8 snare:8 kick:8 hihat:8 snare:4 | kick:4 snare:4 kick:8 kick:8 snare:4 | kick:4 tom:8 tom:8 snare:4 tom:4 | kick:4 snare:4 crash:4 hihat:4"
    },
    "chorus": {
        "bars": 8,
        "lead": "B5:4 F#5:8 D5:8 E5:4 F#5:4 | G5:8 F#5:8 E5:8 D5:8 E5:4 C#5:4 | D5:4 F#5:4 A5:8 G5:8 F#5:4 | F#5:2 D5:4 F#4:4 | B5:4 F#5:8 D5:8 E5:4 F#5:4 | G5:8 A5:8 B5:4 A5:4 F#5:4 | E5:8 D5:8 C#5:8 B4:8 C#5:4 F#5:4 | B4:1",
        "arp": "B4:8 F#4:8 D4:8 B4:8 A4:8 E4:8 C#4:8 A4:8 | G4:8 D4:8 B3:8 G4:8 A4:8 E4:8 C#4:8 A4:8 | D4:8 F#4:8 A4:8 D5:8 A4:8 F#4:8 D4:8 A4:8 | F#4:8 C#4:8 A#3:8 F#4:8 F#4:8 C#4:8 A#3:8 F#3:8 | B4:8 F#4:8 D4:8 B4:8 A4:8 E4:8 C#4:8 A4:8 | G4:8 D4:8 B3:8 G4:8 D4:8 F#4:8 A4:8 D5:8 | E4:8 G4:8 B4:8 E5:8 F#4:8 A#4:8 C#5:8 F#5:8 | B4:8 F#4:8 D4:8 B4:8 B3:4 F#4:4",
        "harmony": "[B3,D4,F#4]:2 [A3,C#4,E4]:2 | [G3,B3,D4]:2 [A3,C#4,E4]:2 | [D4,F#4,A4]:1 | [F#3,A#3,C#4]:1 | [B3,D4,F#4]:2 [A3,C#4,E4]:2 | [G3,B3,D4]:2 [D4,F#4,A4]:2 | [E4,G4,B4]:2 [F#3,A#3,C#4]:2 | [B3,D4,F#4]:1",
        "bass": "B1:8 B2:8 B1:8 B2:8 A1:8 A2:8 A1:8 A2:8 | G1:8 G2:8 G1:8 G2:8 A1:8 A2:8 A1:8 A2:8 | D2:8 D3:8 D2:8 D3:8 D2:8 D3:8 D2:8 D3:8 | F#1:8 F#2:8 F#1:8 F#2:8 F#1:4 C#2:4 | B1:8 B2:8 B1:8 B2:8 A1:8 A2:8 A1:8 A2:8 | G1:8 G2:8 G1:8 G2:8 D2:8 D3:8 D2:8 D3:8 | E2:8 E3:8 E2:8 E3:8 F#1:8 F#2:8 F#1:8 F#2:8 | B1:4 F#1:4 B1:2",
        "drums": "crash:4 kick:8 snare:8 kick:8 kick:8 snare:4 | kick:4 hihat:8 kick:8 snare:4 hihat:4 | kick:4 hihat:8 kick:8 snare:4 tom:4 | kick:8 tom:8 snare:8 snare:8 crash:4 hihat:4 | kick:4 kick:8 snare:8 kick:8 kick:8 snare:4 | kick:4 hihat:8 kick:8 snare:4 hihat:4 | kick:4 tom:8 tom:8 snare:4 tom:4 | kick:8 kick:8 snare:4 crash:4 hihat:4"
    },
    "bridge": {
        "bars": 4,
        "lead": "G5:2 F#5:4 E5:4 | F#5:2 D5:4 B4:4 | E5:4 F#5:4 G5:4 A5:4 | F#5:1",
        "arp": "G3:8 B3:8 D4:8 G4:8 D4:8 B3:8 D4:8 G4:8 | D4:8 F#4:8 A4:8 D5:8 B3:8 D4:8 F#4:8 B4:8 | E4:8 G4:8 B4:8 E5:8 A3:8 C#4:8 E4:8 A4:8 | F#3:8 A#3:8 C#4:8 F#4:8 C#4:8 A#3:8 F#3:4",
        "harmony": "[G3,B3,D4]:1 | [D4,F#4,A4]:2 [B3,D4,F#4]:2 | [E4,G4,B4]:2 [A3,C#4,E4]:2 | [F#3,A#3,C#4]:1",
        "bass": "G1:4 D2:4 G1:4 D2:4 | D2:4 A2:4 B1:4 F#2:4 | E2:4 B2:4 A1:4 E2:4 | F#1:4 C#2:4 F#1:2",
        "drums": "kick:4 hihat:4 snare:4 hihat:4 | kick:4 hihat:4 snare:4 hihat:4 | kick:4 tom:4 snare:4 tom:4 | kick:8 snare:8 tom:8 tom:8 crash:4 hihat:4"
    }
}
arrangement = ["intro","verse","chorus","bridge","chorus"]
music/stage_07_storm.rune
# Stage 07 — Storm Valkyrie (Skyline Wind Turbine — Soaring F Minor, 32-Bar Arrangement)
@Music/nc_stage_07
type = synth
tempo = 152
time_signature = 4/4
loop = true
volume = 0.068
instruments = {"lead":"square","arp":"bell","harmony":"strings","bass":"triangle","drums":"drums"}
effects = {
    "reverb": {"decay": 2.2, "wet": 0.22},
    "delay": {"time": 0.25, "feedback": 0.42, "wet": 0.24, "damping": 3200}
}
track_effects = {
    "lead": {"delay": 0.35, "reverb": 0.22},
    "arp": {"delay": 0.45, "reverb": 0.25},
    "bass": {"delay": 0, "reverb": 0}
}
sections = {
    "intro": {
        "bars": 4,
        "lead": "F5:4 C6:4 Bb5:4 Ab5:4 | G5:4 Bb5:4 Ab5:4 G5:4 | F5:8 G5:8 Ab5:8 Bb5:8 C6:4 Db6:4 | C6:1",
        "arp": "F4:8 Ab4:8 C5:8 F5:8 C5:8 Ab4:8 C5:8 F5:8 | Eb4:8 G4:8 Bb4:8 Eb5:8 Bb4:8 G4:8 Bb4:8 Eb5:8 | Db4:8 F4:8 Ab4:8 Db5:8 Ab4:8 F4:8 Ab4:8 Db5:8 | C4:8 E4:8 G4:8 C5:8 G4:8 E4:8 G4:8 C5:8",
        "harmony": "[F3,Ab3,C4]:1 | [Eb3,G3,Bb3]:1 | [Db3,F3,Ab3]:1 | [C3,E3,G3]:1",
        "bass": "F2:8 F2:8 F3:8 F2:8 F2:4 C2:4 | Eb2:8 Eb2:8 Eb3:8 Eb2:8 Eb2:4 Bb1:4 | Db2:8 Db2:8 Db3:8 Db2:8 Db2:4 Ab1:4 | C2:4 G2:4 C2:2",
        "drums": "crash:4 hihat:8 hihat:8 snare:4 hihat:4 | kick:4 hihat:8 kick:8 snare:4 hihat:4 | kick:4 tom:8 tom:8 snare:4 hihat:4 | kick:8 kick:8 snare:4 crash:4 hihat:4"
    },
    "verse": {
        "bars": 8,
        "lead": "F5:8 Ab5:8 C6:8 F6:8 Eb6:4 C6:4 | Db6:8 C6:8 Bb5:8 Ab5:8 G5:4 C5:4 | F5:8 G5:8 Ab5:8 Bb5:8 C6:4 Eb6:4 | Db6:4 C6:4 Bb5:2 | F6:8 Eb6:8 Db6:8 C6:8 Bb5:4 Ab5:4 | G5:8 Ab5:8 Bb5:8 C6:8 Ab5:4 F5:4 | Bb5:8 C6:8 Db6:8 Eb6:8 C6:8 Bb5:8 Ab5:8 G5:8 | F5:1",
        "arp": "F4:8 C5:8 Ab4:8 C5:8 Eb4:8 Bb4:8 G4:8 Bb4:8 | Db4:8 Ab4:8 F4:8 Ab4:8 C4:8 G4:8 E4:8 G4:8 | F4:8 C5:8 Ab4:8 C5:8 Ab4:8 Eb5:8 C5:8 Eb5:8 | Bb3:8 F4:8 Db4:8 F4:8 Bb3:8 F4:8 Db4:8 F4:8 | F4:8 C5:8 Ab4:8 C5:8 Bb3:8 F4:8 Db4:8 F4:8 | C4:8 G4:8 Eb4:8 G4:8 F4:8 C5:8 Ab4:8 C5:8 | Bb3:8 F4:8 Db4:8 F4:8 C4:8 G4:8 E4:8 G4:8 | F4:8 C5:8 Ab4:8 C5:8 F4:4 C5:4",
        "harmony": "[F3,Ab3,C4]:2 [Eb3,G3,Bb3]:2 | [Db3,F3,Ab3]:2 [C3,E3,G3]:2 | [F3,Ab3,C4]:2 [Ab3,C4,Eb4]:2 | [Bb3,Db4,F4]:1 | [F3,Ab3,C4]:2 [Bb3,Db4,F4]:2 | [C4,Eb4,G4]:2 [F3,Ab3,C4]:2 | [Bb3,Db4,F4]:2 [C4,E4,G4]:2 | [F3,Ab3,C4]:1",
        "bass": "F2:8 F2:8 C3:8 F2:8 Eb2:4 C2:4 | Db2:8 Db2:8 Ab2:8 Db2:8 C2:4 G1:4 | F2:8 F2:8 C3:8 F2:8 Ab2:4 Eb2:4 | Bb1:4 F2:4 Bb2:2 | F2:8 F2:8 C3:8 F2:8 Bb1:4 F2:4 | C2:4 G2:4 F2:4 C2:4 | Bb1:4 F2:4 C2:4 G1:4 | F2:4 C2:4 F2:2",
        "drums": "kick:4 snare:4 kick:8 kick:8 snare:4 | kick:4 hihat:8 kick:8 snare:4 hihat:4 | kick:4 snare:4 kick:8 kick:8 snare:4 | kick:4 tom:8 tom:8 snare:4 kick:4 | crash:4 snare:4 kick:8 kick:8 snare:4 | kick:4 hihat:8 kick:8 snare:4 hihat:4 | kick:4 tom:4 snare:4 tom:4 | kick:4 snare:4 crash:4 hihat:4"
    },
    "chorus": {
        "bars": 8,
        "lead": "F6:4 C6:8 Ab5:8 Bb5:4 C6:4 | Db6:8 C6:8 Bb5:8 Ab5:8 Bb5:4 G5:4 | Ab5:4 C6:4 Eb6:8 Db6:8 C6:4 | C6:2 Ab5:4 C5:4 | F6:4 C6:8 Ab5:8 Bb5:4 C6:4 | Db6:8 Eb6:8 F6:4 Eb6:4 C6:4 | Bb5:8 Ab5:8 G5:8 F5:8 G5:4 C6:4 | F5:1",
        "arp": "F5:8 C5:8 Ab4:8 F5:8 Eb5:8 Bb4:8 G4:8 Eb5:8 | Db5:8 Ab4:8 F4:8 Db5:8 Eb5:8 Bb4:8 G4:8 Eb5:8 | Ab4:8 C5:8 Eb5:8 Ab5:8 Eb5:8 C5:8 Ab4:8 Eb5:8 | C5:8 G4:8 E4:8 C5:8 C5:8 G4:8 E4:8 C4:8 | F5:8 C5:8 Ab4:8 F5:8 Eb5:8 Bb4:8 G4:8 Eb5:8 | Db5:8 Ab4:8 F4:8 Db5:8 Ab4:8 C5:8 Eb5:8 Ab5:8 | Bb4:8 Db5:8 F5:8 Bb5:8 C5:8 E5:8 G5:8 C6:8 | F5:8 C5:8 Ab4:8 F5:8 F4:4 C5:4",
        "harmony": "[F3,Ab3,C4]:2 [Eb3,G3,Bb3]:2 | [Db3,F3,Ab3]:2 [Eb3,G3,Bb3]:2 | [Ab3,C4,Eb4]:1 | [C4,E4,G4]:1 | [F3,Ab3,C4]:2 [Eb3,G3,Bb3]:2 | [Db3,F3,Ab3]:2 [Ab3,C4,Eb4]:2 | [Bb3,Db4,F4]:2 [C4,E4,G4]:2 | [F3,Ab3,C4]:1",
        "bass": "F2:8 F3:8 F2:8 F3:8 Eb2:8 Eb3:8 Eb2:8 Eb3:8 | Db2:8 Db3:8 Db2:8 Db3:8 Eb2:8 Eb3:8 Eb2:8 Eb3:8 | Ab1:8 Ab2:8 Ab1:8 Ab2:8 Ab1:8 Ab2:8 Ab1:8 Ab2:8 | C2:8 C3:8 C2:8 C3:8 C2:4 G2:4 | F2:8 F3:8 F2:8 F3:8 Eb2:8 Eb3:8 Eb2:8 Eb3:8 | Db2:8 Db3:8 Db2:8 Db3:8 Ab1:8 Ab2:8 Ab1:8 Ab2:8 | Bb1:8 Bb2:8 Bb1:8 Bb2:8 C2:8 C3:8 C2:8 C3:8 | F2:4 C2:4 F2:2",
        "drums": "crash:4 kick:8 snare:8 kick:8 kick:8 snare:4 | kick:4 hihat:8 kick:8 snare:4 hihat:4 | kick:4 hihat:8 kick:8 snare:4 tom:4 | kick:8 tom:8 snare:8 snare:8 crash:4 hihat:4 | kick:4 kick:8 snare:8 kick:8 kick:8 snare:4 | kick:4 hihat:8 kick:8 snare:4 hihat:4 | kick:4 tom:8 tom:8 snare:4 tom:4 | kick:8 kick:8 snare:4 crash:4 hihat:4"
    },
    "bridge": {
        "bars": 4,
        "lead": "Db6:2 C6:4 Bb5:4 | C6:2 Ab5:4 F5:4 | Bb5:4 C6:4 Db6:4 Eb6:4 | C6:1",
        "arp": "Db4:8 F4:8 Ab4:8 Db5:8 Ab4:8 F4:8 Ab4:8 Db5:8 | Ab3:8 C4:8 Eb4:8 Ab4:8 F4:8 Ab4:8 C5:8 F5:8 | Bb3:8 Db4:8 F4:8 Bb4:8 Eb4:8 G4:8 Bb4:8 Eb5:8 | C4:8 E4:8 G4:8 C5:8 G4:8 E4:8 C4:4",
        "harmony": "[Db3,F3,Ab3]:1 | [Ab3,C4,Eb4]:2 [F3,Ab3,C4]:2 | [Bb3,Db4,F4]:2 [Eb3,G3,Bb3]:2 | [C4,E4,G4]:1",
        "bass": "Db2:4 Ab2:4 Db2:4 Ab2:4 | Ab1:4 Eb2:4 F2:4 C3:4 | Bb1:4 F2:4 Eb2:4 Bb2:4 | C2:4 G2:4 C2:2",
        "drums": "kick:4 hihat:4 snare:4 hihat:4 | kick:4 hihat:4 snare:4 hihat:4 | kick:4 tom:4 snare:4 tom:4 | kick:8 snare:8 tom:8 tom:8 crash:4 hihat:4"
    }
}
arrangement = ["intro","verse","chorus","bridge","chorus"]
music/stage_08_glacier.rune
# Stage 08 — Glacier Reactor (Thermal-Cryo Core — Dramatic C# Minor, 32-Bar Arrangement)
@Music/nc_stage_08
type = synth
tempo = 136
time_signature = 4/4
loop = true
volume = 0.068
instruments = {"lead":"bell","arp":"sawtooth","harmony":"strings","bass":"triangle","drums":"drums"}
effects = {
    "reverb": {"decay": 3.0, "wet": 0.30, "pre_delay": 0.02, "filter": 3200},
    "chorus": {"rate": 0.9, "depth": 0.002, "wet": 0.25}
}
track_effects = {
    "lead": {"reverb": 0.38, "chorus": 0.25},
    "arp": {"reverb": 0.45, "chorus": 0.3},
    "bass": {"reverb": 0.08}
}
sections = {
    "intro": {
        "bars": 4,
        "lead": "C#5:4 G#5:4 E5:4 C#5:4 | A5:4 E5:4 C#5:4 A4:4 | F#5:4 D#5:4 C#5:4 A4:4 | G#4:1",
        "arp": "C#4:8 E4:8 G#4:8 C#5:8 G#4:8 E4:8 G#4:8 C#5:8 | A3:8 C#4:8 E4:8 A4:8 E4:8 C#4:8 E4:8 A4:8 | F#3:8 A3:8 C#4:8 F#4:8 C#4:8 A3:8 C#4:8 F#4:8 | G#3:8 C4:8 D#4:8 G#4:8 D#4:8 C4:8 D#4:8 G#4:8",
        "harmony": "[C#4,E4,G#4]:1 | [A3,C#4,E4]:1 | [F#3,A3,C#4]:1 | [G#3,C4,D#4]:1",
        "bass": "C#2:2 G#2:2 | A1:2 E2:2 | F#1:2 C#2:2 | G#1:2 D#2:2",
        "drums": "crash:4 hihat:8 hihat:8 snare:4 hihat:4 | kick:4 hihat:8 kick:8 snare:4 hihat:4 | kick:4 tom:4 snare:4 hihat:4 | kick:8 tom:8 snare:4 crash:4 hihat:4"
    },
    "verse": {
        "bars": 8,
        "lead": "C#5:8 E5:8 G#5:8 C#6:8 B5:4 G#5:4 | A5:8 G#5:8 F#5:8 E5:8 D#5:4 G#4:4 | C#5:8 D#5:8 E5:8 F#5:8 G#5:4 B5:4 | A5:4 G#5:4 F#5:2 | E6:8 D#6:8 C#6:8 B5:8 G#5:4 E5:4 | F#5:8 G#5:8 A5:8 B5:8 G#5:4 C#5:4 | D#5:8 E5:8 F#5:8 G#5:8 F#5:8 E5:8 D#5:8 B4:8 | C#5:1",
        "arp": "C#4:8 G#4:8 E4:8 G#4:8 B3:8 F#4:8 D#4:8 F#4:8 | A3:8 E4:8 C#4:8 E4:8 G#3:8 D#4:8 C4:8 D#4:8 | C#4:8 G#4:8 E4:8 G#4:8 E4:8 B4:8 G#4:8 B4:8 | F#3:8 C#4:8 A3:8 C#4:8 F#3:8 C#4:8 A3:8 C#4:8 | E4:8 B4:8 G#4:8 B4:8 E4:8 B4:8 G#4:8 B4:8 | F#3:8 C#4:8 A3:8 C#4:8 C#4:8 G#4:8 E4:8 G#4:8 | D#4:8 A4:8 F#4:8 A4:8 G#3:8 D#4:8 C4:8 D#4:8 | C#4:8 G#4:8 E4:8 G#4:8 C#4:4 G#4:4",
        "harmony": "[C#4,E4,G#4]:2 [B3,D#4,F#4]:2 | [A3,C#4,E4]:2 [G#3,C4,D#4]:2 | [C#4,E4,G#4]:2 [E4,G#4,B4]:2 | [F#3,A3,C#4]:1 | [E4,G#4,B4]:1 | [F#3,A3,C#4]:2 [C#4,E4,G#4]:2 | [D#4,F#4,A4]:2 [G#3,C4,D#4]:2 | [C#4,E4,G#4]:1",
        "bass": "C#2:8 C#2:8 G#2:8 C#2:8 B1:4 G#1:4 | A1:8 A1:8 E2:8 A1:8 G#1:4 D#2:4 | C#2:8 C#2:8 G#2:8 C#2:8 E2:4 B1:4 | F#1:4 C#2:4 F#2:2 | E2:4 B2:4 E3:4 B2:4 | F#2:4 C#2:4 C#2:4 G#2:4 | D#2:4 A2:4 G#1:4 D#2:4 | C#2:4 G#1:4 C#2:2",
        "drums": "kick:4 snare:4 kick:8 hihat:8 snare:4 | kick:4 hihat:8 kick:8 snare:4 hihat:4 | kick:4 snare:4 kick:8 kick:8 snare:4 | kick:4 tom:4 snare:4 hihat:4 | crash:4 snare:4 kick:8 hihat:8 snare:4 | kick:4 hihat:8 kick:8 snare:4 hihat:4 | kick:4 tom:8 tom:8 snare:4 tom:4 | kick:4 snare:4 crash:4 hihat:4"
    },
    "chorus": {
        "bars": 8,
        "lead": "G#5:4 C#6:4 D#6:8 E6:8 D#6:4 | C#6:4 G#5:4 A5:4 B5:4 | C#6:4 B5:8 A5:8 G#5:4 E5:4 | F#5:2 D#5:4 G#4:4 | G#5:4 C#6:4 D#6:8 E6:8 F#6:4 | E6:4 D#6:4 C#6:4 B5:4 | A5:8 G#5:8 F#5:4 G#5:4 C6:4 | C#6:1",
        "arp": "C#5:8 G#4:8 E4:8 C#5:8 G#4:8 D#5:8 C5:8 G#4:8 | C#5:8 G#4:8 E4:8 C#5:8 A4:8 E4:8 B4:8 F#4:8 | A4:8 E4:8 C#4:8 A4:8 E4:8 G#4:8 B4:8 E5:8 | F#4:8 C#4:8 A3:8 F#4:8 G#4:8 D#4:8 C4:8 G#4:8 | C#5:8 G#4:8 E4:8 C#5:8 B4:8 F#4:8 D#4:8 B4:8 | E5:8 B4:8 G#4:8 E5:8 C#5:8 G#4:8 E4:8 C#5:8 | F#4:8 A4:8 C#5:8 F#5:8 G#4:8 C5:8 D#5:8 G#5:8 | C#5:8 G#4:8 E4:8 C#5:8 C#4:4 G#4:4",
        "harmony": "[C#4,E4,G#4]:2 [G#3,C4,D#4]:2 | [C#4,E4,G#4]:2 [A3,C#4,E4]:2 | [A3,C#4,E4]:2 [E4,G#4,B4]:2 | [F#3,A3,C#4]:2 [G#3,C4,D#4]:2 | [C#4,E4,G#4]:2 [B3,D#4,F#4]:2 | [E4,G#4,B4]:2 [C#4,E4,G#4]:2 | [F#3,A3,C#4]:2 [G#3,C4,D#4]:2 | [C#4,E4,G#4]:1",
        "bass": "C#2:8 C#3:8 C#2:8 C#3:8 G#1:8 G#2:8 G#1:8 G#2:8 | C#2:8 C#3:8 C#2:8 C#3:8 A1:8 A2:8 B1:8 B2:8 | A1:8 A2:8 A1:8 A2:8 E2:8 E3:8 E2:8 E3:8 | F#1:8 F#2:8 F#1:8 F#2:8 G#1:8 G#2:8 G#1:8 G#2:8 | C#2:8 C#3:8 C#2:8 C#3:8 B1:8 B2:8 B1:8 B2:8 | E2:8 E3:8 E2:8 E3:8 C#2:8 C#3:8 C#2:8 C#3:8 | F#1:8 F#2:8 F#1:8 F#2:8 G#1:8 G#2:8 G#1:8 G#2:8 | C#2:4 G#1:4 C#2:2",
        "drums": "crash:4 hihat:8 kick:8 snare:4 hihat:4 | kick:4 hihat:8 kick:8 snare:4 hihat:4 | kick:4 hihat:8 kick:8 snare:4 tom:4 | kick:4 tom:8 tom:8 snare:4 crash:4 | kick:4 hihat:8 kick:8 snare:4 hihat:4 | kick:4 hihat:8 kick:8 snare:4 hihat:4 | kick:4 tom:4 snare:4 tom:4 | kick:8 kick:8 snare:4 crash:4 hihat:4"
    },
    "bridge": {
        "bars": 4,
        "lead": "A5:2 G#5:4 F#5:4 | G#5:2 E5:4 C#5:4 | F#5:4 G#5:4 A5:4 B5:4 | G#5:1",
        "arp": "A3:8 C#4:8 E4:8 A4:8 E4:8 C#4:8 E4:8 A4:8 | E3:8 G#3:8 B3:8 E4:8 C#4:8 E4:8 G#4:8 C#5:8 | F#3:8 A3:8 C#4:8 F#4:8 B3:8 D#4:8 F#4:8 B4:8 | G#3:8 C4:8 D#4:8 G#4:8 D#4:8 C4:8 G#3:4",
        "harmony": "[A3,C#4,E4]:1 | [E4,G#4,B4]:2 [C#4,E4,G#4]:2 | [F#3,A3,C#4]:2 [B3,D#4,F#4]:2 | [G#3,C4,D#4]:1",
        "bass": "A1:4 E2:4 A1:4 E2:4 | E2:4 B2:4 C#2:4 G#2:4 | F#1:4 C#2:4 B1:4 F#2:4 | G#1:4 D#2:4 G#1:2",
        "drums": "kick:4 hihat:4 snare:4 hihat:4 | kick:4 hihat:4 snare:4 hihat:4 | kick:4 tom:4 snare:4 tom:4 | kick:8 snare:8 tom:8 tom:8 crash:4 hihat:4"
    }
}
arrangement = ["intro","verse","chorus","bridge","chorus"]
music/stage_09_ghost.rune
# Stage 09 — Ghost Protocol (Black-ICE Mainframe — Cybernetic D# Minor, 32-Bar Arrangement)
@Music/nc_stage_09
type = synth
tempo = 146
time_signature = 4/4
loop = true
volume = 0.068
instruments = {"lead":"square","arp":"bell","harmony":"strings","bass":"sawtooth","drums":"drums"}
effects = {
    "reverb": {"decay": 2.4, "wet": 0.26, "filter": 3600},
    "delay": {"time": 0.28, "feedback": 0.44, "wet": 0.25, "damping": 2400},
    "chorus": {"rate": 1.4, "depth": 0.0028, "wet": 0.24}
}
track_effects = {
    "lead": {"delay": 0.35, "reverb": 0.28},
    "arp": {"delay": 0.42, "reverb": 0.35, "chorus": 0.3},
    "bass": {"delay": 0, "reverb": 0.05}
}
sections = {
    "intro": {
        "bars": 4,
        "lead": "D#5:4 A#5:4 F#5:4 D#5:4 | B5:4 F#5:4 D#5:4 B4:4 | G#5:4 F5:4 D#5:4 B4:4 | A#4:1",
        "arp": "D#4:8 F#4:8 A#4:8 D#5:8 A#4:8 F#4:8 A#4:8 D#5:8 | B3:8 D#4:8 F#4:8 B4:8 F#4:8 D#4:8 F#4:8 B4:8 | G#3:8 B3:8 D#4:8 G#4:8 D#4:8 B3:8 D#4:8 G#4:8 | A#3:8 D4:8 F4:8 A#4:8 F4:8 D4:8 F4:8 A#4:8",
        "harmony": "[D#4,F#4,A#4]:1 | [B3,D#4,F#4]:1 | [G#3,B3,D#4]:1 | [A#3,D4,F4]:1",
        "bass": "D#2:8 D#2:8 D#3:8 D#2:8 D#2:4 A#1:4 | B1:8 B1:8 B2:8 B1:8 B1:4 F#1:4 | G#1:4 D#2:4 G#1:4 D#2:4 | A#1:4 F2:4 A#1:2",
        "drums": "crash:4 hihat:8 hihat:8 snare:4 hihat:8 kick:8 | kick:4 snare:4 kick:8 kick:8 snare:4 | kick:4 tom:4 snare:4 tom:4 | kick:8 tom:8 snare:4 crash:4 hihat:4"
    },
    "verse": {
        "bars": 8,
        "lead": "D#5:8 F#5:8 A#5:8 D#6:8 C#6:8 A#5:8 F#5:4 | B5:8 A#5:8 G#5:8 F#5:8 F5:4 A#4:4 | D#5:8 F5:8 F#5:8 G#5:8 A#5:4 C#6:4 | B5:4 A#5:4 G#5:2 | D#6:8 C#6:8 B5:8 A#5:8 B5:4 F#5:4 | G#5:8 A#5:8 B5:8 C#6:8 A#5:4 D#5:4 | F5:8 F#5:8 G#5:8 A#5:8 G#5:8 F#5:8 F5:8 C#5:8 | D#5:1",
        "arp": "D#4:8 A#4:8 F#4:8 A#4:8 C#4:8 G#4:8 F4:8 G#4:8 | B3:8 F#4:8 D#4:8 F#4:8 A#3:8 F4:8 D4:8 F4:8 | D#4:8 A#4:8 F#4:8 A#4:8 F#4:8 C#5:8 A#4:8 C#5:8 | G#3:8 D#4:8 B3:8 D#4:8 G#3:8 D#4:8 B3:8 D#4:8 | D#4:8 A#4:8 F#4:8 A#4:8 B3:8 F#4:8 D#4:8 F#4:8 | G#3:8 D#4:8 B3:8 D#4:8 D#4:8 A#4:8 F#4:8 A#4:8 | F4:8 B4:8 G#4:8 B4:8 A#3:8 F4:8 D4:8 F4:8 | D#4:8 A#4:8 F#4:8 A#4:8 D#4:4 A#4:4",
        "harmony": "[D#4,F#4,A#4]:2 [C#4,F4,G#4]:2 | [B3,D#4,F#4]:2 [A#3,D4,F4]:2 | [D#4,F#4,A#4]:2 [F#4,A#4,C#5]:2 | [G#3,B3,D#4]:1 | [D#4,F#4,A#4]:2 [B3,D#4,F#4]:2 | [G#3,B3,D#4]:2 [D#4,F#4,A#4]:2 | [F4,G#4,B4]:2 [A#3,D4,F4]:2 | [D#4,F#4,A#4]:1",
        "bass": "D#2:8 D#2:8 A#2:8 D#2:8 C#2:4 A#1:4 | B1:8 B1:8 F#2:8 B1:8 A#1:4 F2:4 | D#2:8 D#2:8 A#2:8 D#2:8 F#2:4 C#2:4 | G#1:4 D#2:4 G#2:2 | D#2:8 D#2:8 A#2:8 D#2:8 B1:4 F#2:4 | G#1:4 D#2:4 D#2:4 A#1:4 | F2:4 B2:4 A#1:4 F2:4 | D#2:4 A#1:4 D#2:2",
        "drums": "kick:4 hihat:8 hihat:8 snare:4 hihat:8 kick:8 | kick:4 snare:4 kick:8 kick:8 snare:4 | kick:4 hihat:8 hihat:8 snare:4 tom:4 | kick:4 snare:4 kick:8 kick:8 snare:4 | crash:4 hihat:8 hihat:8 snare:4 hihat:8 kick:8 | kick:4 snare:4 kick:8 kick:8 snare:4 | kick:4 tom:8 tom:8 snare:4 tom:4 | kick:4 snare:4 crash:4 hihat:4"
    },
    "chorus": {
        "bars": 8,
        "lead": "D#6:4 A#5:8 F#5:8 G#5:4 A#5:4 | B5:8 A#5:8 G#5:8 F#5:8 G#5:4 F5:4 | F#5:4 A#5:4 C#6:8 B5:8 A#5:4 | A#5:2 F#5:4 A#4:4 | D#6:4 A#5:8 F#5:8 G#5:4 A#5:4 | B5:8 C#6:8 D#6:4 C#6:4 A#5:4 | G#5:8 F#5:8 F5:8 D#5:8 F5:4 A#5:4 | D#5:1",
        "arp": "D#5:8 A#4:8 F#4:8 D#5:8 C#5:8 G#4:8 F4:8 C#5:8 | B4:8 F#4:8 D#4:8 B4:8 C#5:8 G#4:8 F4:8 C#5:8 | F#4:8 A#4:8 C#5:8 F#5:8 C#5:8 A#4:8 F#4:8 C#5:8 | A#4:8 F4:8 D4:8 A#4:8 A#4:8 F4:8 D4:8 A#3:8 | D#5:8 A#4:8 F#4:8 D#5:8 C#5:8 G#4:8 F4:8 C#5:8 | B4:8 F#4:8 D#4:8 B4:8 F#4:8 A#4:8 C#5:8 F#5:8 | G#4:8 B4:8 D#5:8 G#5:8 A#4:8 D5:8 F5:8 A#5:8 | D#5:8 A#4:8 F#4:8 D#5:8 D#4:4 A#4:4",
        "harmony": "[D#4,F#4,A#4]:2 [C#4,F4,G#4]:2 | [B3,D#4,F#4]:2 [C#4,F4,G#4]:2 | [F#4,A#4,C#5]:1 | [A#3,D4,F4]:1 | [D#4,F#4,A#4]:2 [C#4,F4,G#4]:2 | [B3,D#4,F#4]:2 [F#4,A#4,C#5]:2 | [G#3,B3,D#4]:2 [A#3,D4,F4]:2 | [D#4,F#4,A#4]:1",
        "bass": "D#2:8 D#3:8 D#2:8 D#3:8 C#2:8 C#3:8 C#2:8 C#3:8 | B1:8 B2:8 B1:8 B2:8 C#2:8 C#3:8 C#2:8 C#3:8 | F#1:8 F#2:8 F#1:8 F#2:8 F#1:8 F#2:8 F#1:8 F#2:8 | A#1:8 A#2:8 A#1:8 A#2:8 A#1:4 F2:4 | D#2:8 D#3:8 D#2:8 D#3:8 C#2:8 C#3:8 C#2:8 C#3:8 | B1:8 B2:8 B1:8 B2:8 F#1:8 F#2:8 F#1:8 F#2:8 | G#1:8 G#2:8 G#1:8 G#2:8 A#1:8 A#2:8 A#1:8 A#2:8 | D#2:4 A#1:4 D#2:2",
        "drums": "crash:4 kick:8 snare:8 kick:8 kick:8 snare:4 | kick:4 hihat:8 kick:8 snare:4 hihat:4 | kick:4 hihat:8 kick:8 snare:4 tom:4 | kick:8 tom:8 snare:8 snare:8 crash:4 hihat:4 | kick:4 kick:8 snare:8 kick:8 kick:8 snare:4 | kick:4 hihat:8 kick:8 snare:4 hihat:4 | kick:4 tom:8 tom:8 snare:4 tom:4 | kick:8 kick:8 snare:4 crash:4 hihat:4"
    },
    "bridge": {
        "bars": 4,
        "lead": "B5:2 A#5:4 G#5:4 | A#5:2 F#5:4 D#5:4 | G#5:4 A#5:4 B5:4 C#6:4 | A#5:1",
        "arp": "B3:8 D#4:8 F#4:8 B4:8 F#4:8 D#4:8 F#4:8 B4:8 | F#3:8 A#3:8 C#4:8 F#4:8 D#4:8 F#4:8 A#4:8 D#5:8 | G#3:8 B3:8 D#4:8 G#4:8 C#4:8 F4:8 G#4:8 C#5:8 | A#3:8 D4:8 F4:8 A#4:8 F4:8 D4:8 A#3:4",
        "harmony": "[B3,D#4,F#4]:1 | [F#4,A#4,C#5]:2 [D#4,F#4,A#4]:2 | [G#3,B3,D#4]:2 [C#4,F4,G#4]:2 | [A#3,D4,F4]:1",
        "bass": "B1:4 F#2:4 B1:4 F#2:4 | F#1:4 C#2:4 D#2:4 A#2:4 | G#1:4 D#2:4 C#2:4 G#2:4 | A#1:4 F2:4 A#1:2",
        "drums": "kick:4 hihat:4 snare:4 hihat:4 | kick:4 hihat:4 snare:4 hihat:4 | kick:4 tom:4 snare:4 tom:4 | kick:8 snare:8 tom:8 tom:8 crash:4 hihat:4"
    }
}
arrangement = ["intro","verse","chorus","bridge","chorus"]
music/stage_10_hydra.rune
# Stage 10 — Iron Hydra (Mecha Assembly Trench — Pounding G# Minor, 32-Bar Arrangement)
@Music/nc_stage_10
type = synth
tempo = 144
time_signature = 4/4
loop = true
volume = 0.068
instruments = {"lead":"brass","arp":"square","harmony":"sawtooth","bass":"sawtooth","drums":"drums"}
effects = {
    "filter": {"type": "lowpass", "cutoff": 5800, "q": 1.1},
    "crush": {"bits": 10, "drive": 0.18},
    "delay": {"time": 0.208, "feedback": 0.36, "wet": 0.18, "damping": 2700}
}
track_effects = {
    "lead": {"delay": 0.3},
    "arp": {"delay": 0.38},
    "bass": {"delay": 0}
}
sections = {
    "intro": {
        "bars": 4,
        "lead": "G#4:4 D#5:4 B4:4 G#4:4 | E5:4 B4:4 G#4:4 E4:4 | C#5:4 A#4:4 G#4:4 E4:4 | D#4:1",
        "arp": "G#3:8 B3:8 D#4:8 G#4:8 D#4:8 B3:8 D#4:8 G#4:8 | E3:8 G#3:8 B3:8 E4:8 B3:8 G#3:8 B3:8 E4:8 | C#4:8 E4:8 G#4:8 C#5:8 G#4:8 E4:8 G#4:8 C#5:8 | D#3:8 G3:8 A#3:8 D#4:8 A#3:8 G3:8 A#3:8 D#4:8",
        "harmony": "[G#3,B3,D#4]:1 | [E3,G#3,B3]:1 | [C#4,E4,G#4]:1 | [D#3,G3,A#3]:1",
        "bass": "G#1:8 G#1:8 G#2:8 G#1:8 G#1:4 D#1:4 | E1:8 E1:8 E2:8 E1:8 E1:4 B1:4 | C#2:4 G#1:4 C#2:4 G#1:4 | D#1:4 A#1:4 D#1:2",
        "drums": "crash:4 snare:4 kick:8 kick:8 snare:4 | kick:8 kick:8 snare:4 kick:4 snare:4 | kick:4 tom:8 tom:8 snare:4 tom:4 | kick:8 kick:8 snare:4 crash:4 hihat:4"
    },
    "verse": {
        "bars": 8,
        "lead": "G#4:8 B4:8 D#5:8 G#5:8 F#5:4 D#5:4 | E5:8 D#5:8 C#5:8 B4:8 A#4:4 D#4:4 | G#4:8 A#4:8 B4:8 C#5:8 D#5:4 F#5:4 | E5:4 D#5:4 C#5:2 | G#5:8 F#5:8 E5:8 D#5:8 E5:4 B4:4 | C#5:8 D#5:8 E5:8 F#5:8 D#5:4 G#4:4 | A#4:8 B4:8 C#5:8 D#5:8 C#5:8 B4:8 A#4:8 F#4:8 | G#4:1",
        "arp": "G#3:8 D#4:8 B3:8 D#4:8 F#3:8 C#4:8 A#3:8 C#4:8 | E3:8 B3:8 G#3:8 B3:8 D#3:8 A#3:8 G3:8 A#3:8 | G#3:8 D#4:8 B3:8 D#4:8 B3:8 F#4:8 D#4:8 F#4:8 | C#4:8 G#4:8 E4:8 G#4:8 C#4:8 G#4:8 E4:8 G#4:8 | G#3:8 D#4:8 B3:8 D#4:8 E3:8 B3:8 G#3:8 B3:8 | C#4:8 G#4:8 E4:8 G#4:8 G#3:8 D#4:8 B3:8 D#4:8 | A#3:8 E4:8 C#4:8 E4:8 D#3:8 A#3:8 G3:8 A#3:8 | G#3:8 D#4:8 B3:8 D#4:8 G#3:4 D#4:4",
        "harmony": "[G#3,B3,D#4]:2 [F#3,A#3,C#4]:2 | [E3,G#3,B3]:2 [D#3,G3,A#3]:2 | [G#3,B3,D#4]:2 [B3,D#4,F#4]:2 | [C#4,E4,G#4]:1 | [G#3,B3,D#4]:2 [E3,G#3,B3]:2 | [C#4,E4,G#4]:2 [G#3,B3,D#4]:2 | [A#3,C#4,E4]:2 [D#3,G3,A#3]:2 | [G#3,B3,D#4]:1",
        "bass": "G#1:8 G#1:8 D#2:8 G#1:8 F#1:4 D#1:4 | E1:8 E1:8 B1:8 E1:8 D#1:4 A#1:4 | G#1:8 G#1:8 D#2:8 G#1:8 B1:4 F#1:4 | C#2:4 G#1:4 C#2:2 | G#1:8 G#1:8 D#2:8 G#1:8 E1:4 B1:4 | C#2:4 G#1:4 G#1:4 D#1:4 | A#1:4 E2:4 D#1:4 A#1:4 | G#1:4 D#1:4 G#1:2",
        "drums": "kick:4 snare:4 kick:8 kick:8 snare:4 | kick:8 kick:8 snare:4 kick:4 snare:4 | kick:4 snare:4 tom:8 tom:8 snare:4 | kick:4 snare:4 kick:8 kick:8 snare:4 | crash:4 snare:4 kick:8 kick:8 snare:4 | kick:8 kick:8 snare:4 kick:4 snare:4 | kick:4 tom:4 snare:4 tom:4 | kick:4 kick:4 crash:4 snare:4"
    },
    "chorus": {
        "bars": 8,
        "lead": "G#5:4 D#5:8 B4:8 C#5:4 D#5:4 | E5:8 D#5:8 C#5:8 B4:8 C#5:4 A#4:4 | B4:4 D#5:4 F#5:8 E5:8 D#5:4 | D#5:2 B4:4 D#4:4 | G#5:4 D#5:8 B4:8 C#5:4 D#5:4 | E5:8 F#5:8 G#5:4 F#5:4 D#5:4 | C#5:8 B4:8 A#4:8 G#4:8 A#4:4 D#5:4 | G#4:1",
        "arp": "G#4:8 D#4:8 B3:8 G#4:8 F#4:8 C#4:8 A#3:8 F#4:8 | E4:8 B3:8 G#3:8 E4:8 F#4:8 C#4:8 A#3:8 F#4:8 | B3:8 D#4:8 F#4:8 B4:8 F#4:8 D#4:8 B3:8 F#4:8 | D#4:8 A#3:8 G3:8 D#4:8 D#4:8 A#3:8 G3:8 D#3:8 | G#4:8 D#4:8 B3:8 G#4:8 F#4:8 C#4:8 A#3:8 F#4:8 | E4:8 B3:8 G#3:8 E4:8 B3:8 D#4:8 F#4:8 B4:8 | C#4:8 E4:8 G#4:8 C#5:8 D#4:8 G4:8 A#4:8 D#5:8 | G#4:8 D#4:8 B3:8 G#4:8 G#3:4 D#4:4",
        "harmony": "[G#3,B3,D#4]:2 [F#3,A#3,C#4]:2 | [E3,G#3,B3]:2 [F#3,A#3,C#4]:2 | [B3,D#4,F#4]:1 | [D#3,G3,A#3]:1 | [G#3,B3,D#4]:2 [F#3,A#3,C#4]:2 | [E3,G#3,B3]:2 [B3,D#4,F#4]:2 | [C#4,E4,G#4]:2 [D#3,G3,A#3]:2 | [G#3,B3,D#4]:1",
        "bass": "G#1:8 G#2:8 G#1:8 G#2:8 F#1:8 F#2:8 F#1:8 F#2:8 | E1:8 E2:8 E1:8 E2:8 F#1:8 F#2:8 F#1:8 F#2:8 | B1:8 B2:8 B1:8 B2:8 B1:8 B2:8 B1:8 B2:8 | D#1:8 D#2:8 D#1:8 D#2:8 D#1:4 A#1:4 | G#1:8 G#2:8 G#1:8 G#2:8 F#1:8 F#2:8 F#1:8 F#2:8 | E1:8 E2:8 E1:8 E2:8 B1:8 B2:8 B1:8 B2:8 | C#2:8 C#3:8 C#2:8 C#3:8 D#1:8 D#2:8 D#1:8 D#2:8 | G#1:4 D#1:4 G#1:2",
        "drums": "crash:4 kick:8 snare:8 kick:8 kick:8 snare:4 | kick:4 hihat:8 kick:8 snare:4 hihat:4 | kick:4 hihat:8 kick:8 snare:4 tom:4 | kick:8 tom:8 snare:8 snare:8 crash:4 hihat:4 | kick:4 kick:8 snare:8 kick:8 kick:8 snare:4 | kick:4 hihat:8 kick:8 snare:4 hihat:4 | kick:4 tom:8 tom:8 snare:4 tom:4 | kick:8 kick:8 snare:4 crash:4 hihat:4"
    },
    "bridge": {
        "bars": 4,
        "lead": "E5:2 D#5:4 C#5:4 | D#5:2 B4:4 G#4:4 | C#5:4 D#5:4 E5:4 F#5:4 | D#5:1",
        "arp": "E3:8 G#3:8 B3:8 E4:8 B3:8 G#3:8 B3:8 E4:8 | B3:8 D#4:8 F#4:8 B4:8 G#3:8 B3:8 D#4:8 G#4:8 | C#4:8 E4:8 G#4:8 C#5:8 F#3:8 A#3:8 C#4:8 F#4:8 | D#3:8 G3:8 A#3:8 D#4:8 A#3:8 G3:8 D#3:4",
        "harmony": "[E3,G#3,B3]:1 | [B3,D#4,F#4]:2 [G#3,B3,D#4]:2 | [C#4,E4,G#4]:2 [F#3,A#3,C#4]:2 | [D#3,G3,A#3]:1",
        "bass": "E1:4 B1:4 E1:4 B1:4 | B1:4 F#2:4 G#1:4 D#2:4 | C#2:4 G#2:4 F#1:4 C#2:4 | D#1:4 A#1:4 D#1:2",
        "drums": "kick:4 hihat:4 snare:4 hihat:4 | kick:4 hihat:4 snare:4 hihat:4 | kick:4 tom:4 snare:4 tom:4 | kick:8 snare:8 tom:8 tom:8 crash:4 hihat:4"
    }
}
arrangement = ["intro","verse","chorus","bridge","chorus"]
music/stage_11_prism.rune
# Stage 11 — Prism Archon (Orbital Laser Array — Radiant Bb Minor, 32-Bar Arrangement)
@Music/nc_stage_11
type = synth
tempo = 156
time_signature = 4/4
loop = true
volume = 0.068
instruments = {"lead":"bell","arp":"square","harmony":"strings","bass":"triangle","drums":"drums"}
effects = {
    "reverb": {"decay": 2.2, "wet": 0.24},
    "delay": {"time": 0.25, "feedback": 0.38, "wet": 0.24, "damping": 4500},
    "chorus": {"rate": 1.2, "depth": 0.003, "wet": 0.32}
}
track_effects = {
    "lead": {"delay": 0.32, "reverb": 0.22, "chorus": 0.25},
    "arp": {"delay": 0.42, "reverb": 0.28, "chorus": 0.35},
    "bass": {"delay": 0, "reverb": 0}
}
sections = {
    "intro": {
        "bars": 4,
        "lead": "Bb5:4 F6:4 Db6:4 Bb5:4 | Gb5:4 Db6:4 Bb5:4 Gb5:4 | Eb5:4 Bb5:4 Gb5:4 Eb5:4 | F5:1",
        "arp": "Bb4:8 Db5:8 F5:8 Bb5:8 F5:8 Db5:8 F5:8 Bb5:8 | Gb4:8 Bb4:8 Db5:8 Gb5:8 Db5:8 Bb4:8 Db5:8 Gb5:8 | Eb4:8 Gb4:8 Bb4:8 Eb5:8 Bb4:8 Gb4:8 Bb4:8 Eb5:8 | F4:8 A4:8 C5:8 F5:8 C5:8 A4:8 C5:8 F5:8",
        "harmony": "[Bb3,Db4,F4]:1 | [Gb3,Bb3,Db4]:1 | [Eb3,Gb3,Bb3]:1 | [F3,A3,C4]:1",
        "bass": "Bb1:8 Bb1:8 Bb2:8 Bb1:8 Bb1:4 F1:4 | Gb1:8 Gb1:8 Gb2:8 Gb1:8 Gb1:4 Db2:4 | Eb2:4 Bb1:4 Eb2:4 Bb1:4 | F1:4 C2:4 F1:2",
        "drums": "crash:4 hihat:8 hihat:8 snare:4 hihat:4 | kick:4 hihat:8 kick:8 snare:4 hihat:4 | kick:4 tom:4 snare:4 tom:4 | kick:8 kick:8 snare:4 crash:4 hihat:4"
    },
    "verse": {
        "bars": 8,
        "lead": "Bb5:8 Db6:8 F6:8 Db6:8 Eb6:4 C6:4 | Db6:8 C6:8 Bb5:8 Ab5:8 Gb5:4 F5:4 | Bb5:8 C6:8 Db6:8 Eb6:8 F6:4 Ab6:4 | Gb6:4 F6:4 Eb6:2 | F6:8 Eb6:8 Db6:8 C6:8 Db6:4 Bb5:4 | C6:8 Db6:8 Eb6:8 C6:8 Bb5:4 F5:4 | Gb5:8 Ab5:8 Bb5:8 C6:8 Db6:8 C6:8 Bb5:8 A5:8 | Bb5:1",
        "arp": "Bb4:8 F5:8 Db5:8 F5:8 Ab4:8 Eb5:8 C5:8 Eb5:8 | Gb4:8 Db5:8 Bb4:8 Db5:8 F4:8 C5:8 A4:8 C5:8 | Bb4:8 F5:8 Db5:8 F5:8 Db5:8 Ab5:8 F5:8 Ab5:8 | Eb4:8 Bb4:8 Gb4:8 Bb4:8 Eb4:8 Bb4:8 Gb4:8 Bb4:8 | Bb4:8 F5:8 Db5:8 F5:8 Db5:8 Ab5:8 F5:8 Ab5:8 | Ab4:8 Eb5:8 C5:8 Eb5:8 Bb4:8 F5:8 Db5:8 F5:8 | Gb4:8 Db5:8 Bb4:8 Db5:8 F4:8 C5:8 A4:8 C5:8 | Bb4:8 F5:8 Db5:8 F5:8 Bb4:4 F5:4",
        "harmony": "[Bb3,Db4,F4]:2 [Ab3,C4,Eb4]:2 | [Gb3,Bb3,Db4]:2 [F3,A3,C4]:2 | [Bb3,Db4,F4]:2 [Db4,F4,Ab4]:2 | [Eb4,Gb4,Bb4]:1 | [Bb3,Db4,F4]:2 [Db4,F4,Ab4]:2 | [Ab3,C4,Eb4]:2 [Bb3,Db4,F4]:2 | [Gb3,Bb3,Db4]:2 [F3,A3,C4]:2 | [Bb3,Db4,F4]:1",
        "bass": "Bb1:8 Bb1:8 F2:8 Bb1:8 Ab1:4 F1:4 | Gb1:8 Gb1:8 Db2:8 Gb1:8 F1:4 C2:4 | Bb1:8 Bb1:8 F2:8 Bb1:8 Db2:4 Ab1:4 | Eb2:4 Bb1:4 Eb2:2 | Bb1:8 Bb1:8 F2:8 Bb1:8 Db2:4 Bb1:4 | Ab1:4 Eb2:4 Bb1:4 F1:4 | Gb1:4 Db2:4 F1:4 C2:4 | Bb1:4 F1:4 Bb1:2",
        "drums": "kick:4 snare:4 kick:8 hihat:8 snare:4 | kick:4 hihat:8 kick:8 snare:4 hihat:4 | kick:4 snare:4 kick:8 kick:8 snare:4 | kick:4 tom:8 tom:8 snare:4 kick:4 | crash:4 snare:4 kick:8 hihat:8 snare:4 | kick:4 hihat:8 kick:8 snare:4 hihat:4 | kick:4 tom:4 snare:4 tom:4 | kick:4 snare:4 crash:4 hihat:4"
    },
    "chorus": {
        "bars": 8,
        "lead": "F6:4 Bb6:4 Ab6:8 Gb6:8 F6:4 | Eb6:8 F6:8 Gb6:4 F6:4 Eb6:4 | Db6:4 F6:4 Eb6:8 Db6:8 C6:4 | Db6:2 C6:4 F5:4 | F6:4 Bb6:4 Ab6:8 Gb6:8 F6:4 | Gb6:4 Ab6:4 Bb6:2 | Ab6:8 Gb6:8 F6:8 Eb6:8 F6:4 A5:4 | Bb5:1",
        "arp": "Bb5:8 F5:8 Db5:8 Bb5:8 Ab5:8 Eb5:8 C5:8 Ab5:8 | Eb5:8 Bb4:8 Gb4:8 Eb5:8 F5:8 C5:8 A4:8 F5:8 | Db5:8 Ab4:8 F4:8 Db5:8 Ab4:8 C5:8 Eb5:8 Ab5:8 | Bb4:8 Db5:8 F5:8 Bb5:8 F4:8 A4:8 C5:8 F5:8 | Bb5:8 F5:8 Db5:8 Bb5:8 Ab5:8 Eb5:8 C5:8 Ab5:8 | Gb5:8 Db5:8 Bb4:8 Gb5:8 Eb5:8 Bb4:8 Gb4:8 Eb5:8 | F5:8 C5:8 Ab4:8 F5:8 F5:8 C5:8 A4:8 F5:8 | Bb5:8 F5:8 Db5:8 Bb5:8 Bb4:4 F5:4",
        "harmony": "[Bb3,Db4,F4]:2 [Ab3,C4,Eb4]:2 | [Eb4,Gb4,Bb4]:2 [F3,A3,C4]:2 | [Db4,F4,Ab4]:2 [Ab3,C4,Eb4]:2 | [Bb3,Db4,F4]:2 [F3,A3,C4]:2 | [Bb3,Db4,F4]:2 [Ab3,C4,Eb4]:2 | [Gb3,Bb3,Db4]:2 [Eb4,Gb4,Bb4]:2 | [F3,Ab3,C4]:2 [F3,A3,C4]:2 | [Bb3,Db4,F4]:1",
        "bass": "Bb1:8 Bb2:8 Bb1:8 Bb2:8 Ab1:8 Ab2:8 Ab1:8 Ab2:8 | Eb2:8 Eb3:8 Eb2:8 Eb3:8 F1:8 F2:8 F1:8 F2:8 | Db2:8 Db3:8 Db2:8 Db3:8 Ab1:8 Ab2:8 Ab1:8 Ab2:8 | Bb1:8 Bb2:8 Bb1:8 Bb2:8 F1:4 C2:4 | Bb1:8 Bb2:8 Bb1:8 Bb2:8 Ab1:8 Ab2:8 Ab1:8 Ab2:8 | Gb1:8 Gb2:8 Gb1:8 Gb2:8 Eb2:8 Eb3:8 Eb2:8 Eb3:8 | F1:8 F2:8 F1:8 F2:8 F1:8 F2:8 F1:8 F2:8 | Bb1:4 F1:4 Bb1:2",
        "drums": "crash:4 kick:8 snare:8 kick:8 kick:8 snare:4 | kick:4 hihat:8 kick:8 snare:4 hihat:4 | kick:4 hihat:8 kick:8 snare:4 tom:4 | kick:8 tom:8 snare:8 snare:8 crash:4 hihat:4 | kick:4 kick:8 snare:8 kick:8 kick:8 snare:4 | kick:4 hihat:8 kick:8 snare:4 hihat:4 | kick:4 tom:8 tom:8 snare:4 tom:4 | kick:8 kick:8 snare:4 crash:4 hihat:4"
    },
    "bridge": {
        "bars": 4,
        "lead": "Gb6:2 F6:4 Eb6:4 | F6:2 Db6:4 Bb5:4 | Eb6:4 F6:4 Gb6:4 Ab6:4 | F6:1",
        "arp": "Gb4:8 Bb4:8 Db5:8 Gb5:8 Db5:8 Bb4:8 Db5:8 Gb5:8 | Db4:8 F4:8 Ab4:8 Db5:8 Bb4:8 Db5:8 F5:8 Bb5:8 | Eb4:8 Gb4:8 Bb4:8 Eb5:8 Ab4:8 C5:8 Eb5:8 Ab5:8 | F4:8 A4:8 C5:8 F5:8 C5:8 A4:8 F4:4",
        "harmony": "[Gb3,Bb3,Db4]:1 | [Db4,F4,Ab4]:2 [Bb3,Db4,F4]:2 | [Eb4,Gb4,Bb4]:2 [Ab3,C4,Eb4]:2 | [F3,A3,C4]:1",
        "bass": "Gb1:4 Db2:4 Gb1:4 Db2:4 | Db2:4 Ab2:4 Bb1:4 F2:4 | Eb2:4 Bb2:4 Ab1:4 Eb2:4 | F1:4 C2:4 F1:2",
        "drums": "kick:4 hihat:4 snare:4 hihat:4 | kick:4 hihat:4 snare:4 hihat:4 | kick:4 tom:4 snare:4 tom:4 | kick:8 snare:8 tom:8 tom:8 crash:4 hihat:4"
    }
}
arrangement = ["intro","verse","chorus","bridge","chorus"]
music/stage_12_omega.rune
# Stage 12 — Omega Overlord (Neon Citadel Nexus — Epic Final Fortress E Minor, 32-Bar Arrangement)
@Music/nc_stage_12
type = synth
tempo = 166
time_signature = 4/4
loop = true
volume = 0.074
instruments = {"lead":"sawtooth","arp":"square","harmony":"brass","bass":"sawtooth","drums":"drums"}
effects = {
    "reverb": {"decay": 2.8, "wet": 0.26, "filter": 3800},
    "delay": {"time": 0.25, "feedback": 0.40, "wet": 0.22, "damping": 3400},
    "crush": {"bits": 12, "drive": 0.14}
}
track_effects = {
    "lead": {"delay": 0.35, "reverb": 0.25},
    "arp": {"delay": 0.45, "reverb": 0.28},
    "harmony": {"reverb": 0.3},
    "bass": {"delay": 0, "reverb": 0}
}
sections = {
    "intro": {
        "bars": 4,
        "lead": "E5:4 B5:4 G5:4 E5:4 | C6:4 G5:4 E5:4 C5:4 | A5:4 F#5:4 D#5:4 B4:4 | E5:1",
        "arp": "E4:8 G4:8 B4:8 E5:8 B4:8 G4:8 B4:8 E5:8 | C4:8 E4:8 G4:8 C5:8 G4:8 E4:8 G4:8 C5:8 | A3:8 C4:8 E4:8 A4:8 B3:8 D#4:8 F#4:8 B4:8 | E4:8 G4:8 B4:8 E5:8 B4:8 G4:8 B4:8 E5:8",
        "harmony": "[E3,G3,B3]:1 | [C3,E3,G3]:1 | [A2,C3,E3]:2 [B2,D#3,F#3]:2 | [E3,G3,B3]:1",
        "bass": "E2:8 E2:8 E3:8 E2:8 E2:4 B1:4 | C2:8 C2:8 C3:8 C2:8 C2:4 G1:4 | A1:4 E2:4 B1:4 F#2:4 | E2:8 E2:8 B1:8 E2:8 E2:2",
        "drums": "crash:4 kick:8 kick:8 snare:4 kick:4 | kick:8 kick:8 snare:4 kick:4 snare:4 | kick:4 tom:8 tom:8 snare:4 tom:4 | kick:8 tom:8 snare:8 snare:8 crash:4 hihat:4"
    },
    "verse": {
        "bars": 8,
        "lead": "E5:8 G5:8 B5:8 E6:8 D#6:4 B5:4 | C6:8 B5:8 A5:8 G5:8 F#5:4 B4:4 | E5:8 F#5:8 G5:8 A5:8 B5:8 C6:8 D6:8 B5:8 | C6:4 D6:4 E6:2 | G6:8 F#6:8 E6:8 D6:8 E6:4 B5:4 | C6:8 D6:8 E6:8 C6:8 B5:4 G5:4 | A5:8 B5:8 C6:8 B5:8 A5:8 G5:8 F#5:8 D#5:8 | E5:1",
        "arp": "E4:8 B4:8 G4:8 B4:8 B3:8 F#4:8 D#4:8 F#4:8 | C4:8 G4:8 E4:8 G4:8 B3:8 F#4:8 D#4:8 F#4:8 | E4:8 B4:8 G4:8 B4:8 G4:8 D5:8 B4:8 D5:8 | C4:8 G4:8 E4:8 G4:8 E4:8 B4:8 G4:8 B4:8 | E4:8 B4:8 G4:8 B4:8 E4:8 B4:8 G4:8 B4:8 | C4:8 G4:8 E4:8 G4:8 G4:8 D5:8 B4:8 D5:8 | A3:8 E4:8 C4:8 E4:8 B3:8 F#4:8 D#4:8 F#4:8 | E4:8 B4:8 G4:8 B4:8 E4:4 B4:4",
        "harmony": "[E4,G4,B4]:2 [B3,D#4,F#4]:2 | [C4,E4,G4]:2 [B3,D#4,F#4]:2 | [E4,G4,B4]:2 [G4,B4,D5]:2 | [C4,E4,G4]:2 [E4,G4,B4]:2 | [E4,G4,B4]:1 | [C4,E4,G4]:2 [G4,B4,D5]:2 | [A3,C4,E4]:2 [B3,D#4,F#4]:2 | [E4,G4,B4]:1",
        "bass": "E2:8 E2:8 E3:8 E2:8 B1:8 B1:8 F#2:8 B1:8 | C2:8 C2:8 G2:8 C2:8 B1:8 B1:8 F#2:8 B1:8 | E2:8 E2:8 B2:8 E2:8 G2:8 G2:8 D3:8 G2:8 | C2:4 D2:4 E2:2 | E2:8 E2:8 B2:8 E2:8 E2:8 E2:8 B2:8 E2:8 | C2:8 C2:8 G2:8 C2:8 G2:4 D2:4 | A1:8 A1:8 E2:8 A1:8 B1:8 B1:8 F#2:8 B1:8 | E2:4 B1:4 E2:2",
        "drums": "kick:8 kick:8 snare:4 kick:8 kick:8 snare:4 | kick:8 hihat:8 snare:4 kick:8 tom:8 snare:4 | kick:8 kick:8 snare:4 kick:8 kick:8 snare:4 | kick:4 tom:8 tom:8 snare:8 snare:8 kick:4 | crash:4 kick:8 snare:8 kick:8 kick:8 snare:4 | kick:8 hihat:8 snare:4 kick:8 tom:8 snare:4 | kick:8 kick:8 snare:4 tom:8 tom:8 snare:4 | kick:8 tom:8 snare:8 tom:8 kick:4 crash:4"
    },
    "chorus": {
        "bars": 8,
        "lead": "E6:4 B5:8 G5:8 A5:4 B5:4 | C6:8 B5:8 A5:8 G5:8 A5:4 F#5:4 | G5:4 B5:4 D6:8 C6:8 B5:4 | B5:2 G5:4 B4:4 | E6:4 G6:4 F#6:8 E6:8 D#6:4 | E6:4 D6:4 C6:4 B5:4 | A5:8 G5:8 F#5:8 E5:8 F#5:4 B5:4 | E5:1",
        "arp": "E5:8 B4:8 G4:8 E5:8 D5:8 A4:8 F#4:8 D5:8 | C5:8 G4:8 E4:8 C5:8 D5:8 A4:8 F#4:8 D5:8 | G4:8 B4:8 D5:8 G5:8 D5:8 B4:8 G4:8 D5:8 | B4:8 F#4:8 D#4:8 B4:8 B4:8 F#4:8 D#4:8 B3:8 | E5:8 B4:8 G4:8 E5:8 B4:8 F#4:8 D#4:8 B4:8 | C5:8 G4:8 E4:8 C5:8 G4:8 B4:8 D5:8 G5:8 | A4:8 C5:8 E5:8 A5:8 B4:8 D#5:8 F#5:8 B5:8 | E5:8 B4:8 G4:8 E5:8 E4:4 B4:4",
        "harmony": "[E4,G4,B4]:2 [D4,F#4,A4]:2 | [C4,E4,G4]:2 [D4,F#4,A4]:2 | [G4,B4,D5]:1 | [B3,D#4,F#4]:1 | [E4,G4,B4]:2 [B3,D#4,F#4]:2 | [C4,E4,G4]:2 [G4,B4,D5]:2 | [A3,C4,E4]:2 [B3,D#4,F#4]:2 | [E4,G4,B4]:1",
        "bass": "E2:8 E3:8 E2:8 E3:8 D2:8 D3:8 D2:8 D3:8 | C2:8 C3:8 C2:8 C3:8 D2:8 D3:8 D2:8 D3:8 | G2:8 G3:8 G2:8 G3:8 G2:8 G3:8 G2:8 G3:8 | B1:8 B2:8 B1:8 B2:8 B1:4 F#2:4 | E2:8 E3:8 E2:8 E3:8 B1:8 B2:8 B1:8 B2:8 | C2:8 C3:8 C2:8 C3:8 G2:8 G3:8 G2:8 G3:8 | A1:8 A2:8 A1:8 A2:8 B1:8 B2:8 B1:8 B2:8 | E2:4 B1:4 E2:2",
        "drums": "crash:4 kick:8 snare:8 kick:8 kick:8 snare:4 | kick:4 hihat:8 kick:8 snare:4 hihat:4 | kick:4 hihat:8 kick:8 snare:4 tom:4 | kick:8 tom:8 snare:8 snare:8 crash:4 hihat:4 | kick:4 kick:8 snare:8 kick:8 kick:8 snare:4 | kick:4 hihat:8 kick:8 snare:4 hihat:4 | kick:4 tom:8 tom:8 snare:4 tom:4 | kick:8 kick:8 snare:4 crash:4 hihat:4"
    },
    "bridge": {
        "bars": 4,
        "lead": "C6:2 B5:4 A5:4 | B5:2 G5:4 E5:4 | A5:4 B5:4 C6:4 D#6:4 | E6:1",
        "arp": "C4:8 E4:8 G4:8 C5:8 G4:8 E4:8 G4:8 C5:8 | G3:8 B3:8 D4:8 G4:8 E4:8 G4:8 B4:8 E5:8 | A3:8 C4:8 E4:8 A4:8 B3:8 D#4:8 F#4:8 B4:8 | E4:8 G4:8 B4:8 E5:8 B4:8 G4:8 E4:4",
        "harmony": "[C4,E4,G4]:1 | [G3,B3,D4]:2 [E3,G3,B3]:2 | [A3,C4,E4]:2 [B3,D#4,F#4]:2 | [E4,G4,B4]:1",
        "bass": "C2:4 G2:4 C2:4 G2:4 | G2:4 D3:4 E2:4 B2:4 | A1:4 E2:4 B1:4 F#2:4 | E2:4 B1:4 E2:2",
        "drums": "kick:4 hihat:4 snare:4 hihat:4 | kick:4 hihat:4 snare:4 hihat:4 | kick:4 tom:4 snare:4 tom:4 | kick:8 snare:8 tom:8 tom:8 crash:4 hihat:4"
    }
}
arrangement = ["intro","verse","chorus","bridge","chorus"]
music/title.rune
# Neon Circuit — Title Theme (Multi-Section Cyberpunk Synthwave Anthem, D Minor)
@Music/nc_title
type = synth
tempo = 128
time_signature = 4/4
loop = true
volume = 0.065
instruments = {"lead":"sawtooth","arp":"bell","harmony":"strings","bass":"triangle","drums":"drums"}
effects = {
    "reverb": {"decay": 2.2, "wet": 0.22},
    "delay": {"time": 0.25, "feedback": 0.35, "wet": 0.18, "damping": 3200}
}
track_effects = {
    "lead": {"reverb": 0.35, "delay": 0.25},
    "arp": {"delay": 0.35, "reverb": 0.25},
    "bass": {"reverb": 0, "delay": 0}
}
sections = {
    "intro": {
        "bars": 4,
        "lead": "D5:2 A5:4 F5:4 | E5:2 C5:4 E5:4 | F5:4 G5:4 A5:2 | A5:1",
        "arp": "D4:8 F4:8 A4:8 D5:8 A4:8 F4:8 A4:8 F4:8 | C4:8 E4:8 G4:8 C5:8 G4:8 E4:8 G4:8 E4:8 | Bb3:8 D4:8 F4:8 Bb4:8 F4:8 D4:8 F4:8 D4:8 | A3:8 C#4:8 E4:8 A4:8 E4:8 C#4:8 E4:8 A4:8",
        "harmony": "[D3,F3,A3]:1 | [C3,E3,G3]:1 | [Bb2,D3,F3]:1 | [A2,C#3,E3]:1",
        "bass": "D2:2 A2:2 | C2:2 G2:2 | Bb1:2 F2:2 | A1:2 E2:2",
        "drums": "kick:4 hihat:4 snare:4 hihat:4 | kick:4 hihat:4 snare:4 hihat:4 | kick:4 hihat:4 snare:4 tom:4 | kick:4 tom:8 tom:8 snare:4 crash:4"
    },
    "verse": {
        "bars": 8,
        "lead": "D5:8 F5:8 A5:4 G5:8 F5:8 E5:4 | F5:8 A5:8 C6:4 Bb5:8 A5:8 G5:4 | A5:4 G5:8 F5:8 E5:4 D5:4 | E5:2 C5:4 A4:4 | D5:8 F5:8 A5:4 C6:4 Bb5:4 | A5:8 G5:8 F5:4 G5:8 F5:8 E5:4 | F5:4 E5:8 D5:8 C5:4 E5:4 | D5:1",
        "arp": "D4:8 F4:8 A4:8 D5:8 A4:8 F4:8 D5:8 A4:8 | F4:8 A4:8 C5:8 F5:8 C5:8 A4:8 F5:8 C5:8 | Bb3:8 D4:8 F4:8 Bb4:8 F4:8 D4:8 Bb4:8 F4:8 | A3:8 C#4:8 E4:8 A4:8 E4:8 C#4:8 A4:8 E4:8 | D4:8 F4:8 A4:8 D5:8 A4:8 F4:8 D5:8 A4:8 | G4:8 Bb4:8 D5:8 G5:8 D5:8 Bb4:8 G5:8 D5:8 | C4:8 E4:8 G4:8 C5:8 A3:8 C#4:8 E4:8 A4:8 | D4:8 F4:8 A4:8 D5:8 A4:8 F4:8 A4:8 D5:8",
        "harmony": "[D3,F3,A3]:1 | [F3,A3,C4]:1 | [Bb2,D3,F3]:1 | [A2,C#3,E3]:1 | [D3,F3,A3]:1 | [G3,Bb3,D4]:1 | [C3,E3,G3]:2 [A2,C#3,E3]:2 | [D3,F3,A3]:1",
        "bass": "D2:8 D2:8 D3:8 D2:8 D2:8 D2:8 D3:8 D2:8 | F2:8 F2:8 F3:8 F2:8 F2:8 F2:8 F3:8 F2:8 | Bb1:8 Bb1:8 Bb2:8 Bb1:8 Bb1:8 Bb1:8 Bb2:8 Bb1:8 | A1:8 A1:8 A2:8 A1:8 A1:8 A1:8 A2:8 A1:8 | D2:8 D2:8 D3:8 D2:8 D2:8 D2:8 D3:8 D2:8 | G2:8 G2:8 G3:8 G2:8 G2:8 G2:8 G3:8 G2:8 | C2:8 C2:8 C3:8 C2:8 A1:8 A1:8 A2:8 A1:8 | D2:8 D2:8 A1:8 D2:8 D2:2",
        "drums": "crash:4 hihat:8 hihat:8 snare:4 hihat:4 | kick:4 hihat:8 kick:8 snare:4 hihat:4 | kick:4 hihat:8 hihat:8 snare:4 hihat:4 | kick:4 tom:8 tom:8 snare:4 hihat:4 | kick:4 hihat:8 hihat:8 snare:4 hihat:4 | kick:4 hihat:8 kick:8 snare:4 hihat:4 | kick:4 hihat:8 hihat:8 snare:4 tom:4 | kick:4 snare:8 snare:8 tom:4 crash:4"
    },
    "chorus": {
        "bars": 8,
        "lead": "A5:4 D6:4 C6:8 Bb5:8 A5:4 | G5:8 A5:8 Bb5:4 A5:4 G5:4 | F5:4 A5:4 G5:8 F5:8 E5:4 | F5:2 E5:4 A4:4 | A5:4 D6:4 E6:8 D6:8 C6:4 | Bb5:8 C6:8 D6:4 C6:4 Bb5:4 | A5:8 G5:8 F5:4 E5:8 F5:8 G5:4 | A5:2 D6:2",
        "arp": "D5:8 A4:8 F4:8 D5:8 A4:8 F4:8 D5:8 A4:8 | G4:8 Bb4:8 D5:8 G5:8 D5:8 Bb4:8 G5:8 D5:8 | F4:8 A4:8 C5:8 F5:8 C5:8 A4:8 C5:8 F5:8 | D4:8 F4:8 A4:8 D5:8 A3:8 C#4:8 E4:8 A4:8 | D5:8 A4:8 F4:8 D5:8 C5:8 E4:8 G4:8 C5:8 | Bb4:8 F4:8 D4:8 Bb4:8 G4:8 Bb4:8 D5:8 G5:8 | F4:8 A4:8 D5:8 F5:8 A4:8 C#5:8 E5:8 A5:8 | D5:8 A4:8 F4:8 D5:8 A4:8 F4:8 D5:8 A4:8",
        "harmony": "[D3,F3,A3]:1 | [G3,Bb3,D4]:1 | [F3,A3,C4]:1 | [D3,F3,A3]:2 [A2,C#3,E3]:2 | [D3,F3,A3]:2 [C3,E3,G3]:2 | [Bb2,D3,F3]:2 [G3,Bb3,D4]:2 | [D3,F3,A3]:2 [A2,C#3,E3]:2 | [D3,F3,A3]:1",
        "bass": "D2:8 D3:8 D2:8 D3:8 D2:8 D3:8 D2:8 D3:8 | G2:8 G3:8 G2:8 G3:8 G2:8 G3:8 G2:8 G3:8 | F2:8 F3:8 F2:8 F3:8 F2:8 F3:8 F2:8 F3:8 | D2:8 D3:8 D2:8 D3:8 A1:8 A2:8 A1:8 A2:8 | D2:8 D3:8 D2:8 D3:8 C2:8 C3:8 C2:8 C3:8 | Bb1:8 Bb2:8 Bb1:8 Bb2:8 G2:8 G3:8 G2:8 G3:8 | D2:8 D3:8 D2:8 D3:8 A1:8 A2:8 A1:8 A2:8 | D2:4 A1:4 D2:2",
        "drums": "crash:4 hihat:8 kick:8 snare:4 hihat:4 | kick:4 hihat:8 kick:8 snare:4 hihat:4 | kick:4 hihat:8 kick:8 snare:4 hihat:4 | kick:4 snare:4 tom:8 tom:8 snare:4 | crash:4 hihat:8 kick:8 snare:4 hihat:4 | kick:4 hihat:8 kick:8 snare:4 hihat:4 | kick:4 hihat:8 kick:8 snare:4 tom:4 | kick:8 kick:8 snare:4 tom:4 crash:4"
    },
    "bridge": {
        "bars": 4,
        "lead": "Bb5:2 A5:4 G5:4 | A5:2 F5:4 D5:4 | G5:4 A5:4 Bb5:4 C6:4 | A5:1",
        "arp": "Bb3:8 D4:8 F4:8 Bb4:8 F4:8 D4:8 F4:8 Bb4:8 | F3:8 A3:8 C4:8 F4:8 C4:8 A3:8 C4:8 F4:8 | G3:8 Bb3:8 D4:8 G4:8 C4:8 E4:8 G4:8 C5:8 | A3:8 C#4:8 E4:8 A4:8 A4:8 E4:8 C#4:8 A3:8",
        "harmony": "[Bb2,D3,F3]:1 | [F3,A3,C4]:1 | [G3,Bb3,D4]:2 [C3,E3,G3]:2 | [A2,C#3,E3]:1",
        "bass": "Bb1:4 F2:4 Bb1:4 F2:4 | F2:4 C3:4 F2:4 C3:4 | G2:4 D3:4 C2:4 G2:4 | A1:4 E2:4 A1:2",
        "drums": "kick:4 hihat:4 snare:4 hihat:4 | kick:4 hihat:4 snare:4 hihat:4 | kick:4 hihat:4 snare:4 tom:4 | kick:8 tom:8 snare:8 snare:8 crash:4 hihat:4"
    }
}
arrangement = ["intro","verse","chorus","bridge","chorus"]
music/victory.rune
# Neon Circuit — Stage Clear / Weapon Get Fanfare (Triumphant C Major)
@Music/nc_victory
type = synth
tempo = 148
time_signature = 4/4
loop = false
volume = 0.08
instruments = {"lead":"brass","arp":"bell","harmony":"strings","bass":"triangle","drums":"drums"}
effects = {
    "reverb": {"decay": 2.5, "wet": 0.28, "filter": 4000},
    "chorus": {"rate": 1.0, "depth": 0.002, "wet": 0.2}
}
track_effects = {
    "lead": {"reverb": 0.35},
    "arp": {"reverb": 0.4},
    "harmony": {"reverb": 0.35, "chorus": 0.25},
    "bass": {"reverb": 0.08}
}
sections = {
    "fanfare": {
        "bars": 4,
        "lead": "C5:8 E5:8 G5:8 C6:8 -:8 G5:8 C6:4 | D6:8 C6:8 B5:8 A5:8 G5:2 | A5:8 B5:8 C6:8 D6:8 E6:4 D6:4 | C6:1",
        "arp": "C5:8 E5:8 G5:8 C6:8 G5:8 E5:8 G5:8 C6:8 | G5:8 B5:8 D6:8 G6:8 D6:8 B5:8 G5:8 D5:8 | F5:8 A5:8 C6:8 G5:8 B5:8 D6:8 G6:4 | C6:8 G5:8 E5:8 C5:8 C6:2",
        "harmony": "[C4,E4,G4]:1 | [G4,B4,D5]:1 | [F4,A4,C5]:2 [G4,B4,D5]:2 | [C4,E4,G4,C5]:1",
        "bass": "C2:4 G2:4 C3:4 G2:4 | G2:4 D2:4 G2:2 | F2:4 C2:4 G2:4 D2:4 | C2:4 G2:4 C2:2",
        "drums": "crash:4 snare:4 kick:8 kick:8 snare:4 | kick:4 snare:4 tom:8 tom:8 snare:4 | kick:4 snare:4 kick:8 kick:8 snare:4 | crash:2 snare:4 crash:4"
    }
}
arrangement = ["fanfare"]

# The last chord sustains into Axel's landing and the escape score.
@Music/nc_boss_victory
type = synth
tempo = 148
time_signature = 4/4
loop = false
volume = 0.065
instruments = {"lead":"brass","arp":"bell","bass":"triangle","drums":"drums"}
sections = {
    "landing_fanfare": {
        "bars": 3,
        "lead": "C5:8 E5:8 G5:8 C6:8 R:8 G5:8 C6:4 | D6:8 C6:8 B5:8 G5:8 C6:2 | R:1",
        "arp": "C5:8 E5:8 G5:8 C6:8 G5:8 E5:8 G5:8 C6:8 | G5:8 B5:8 D6:8 G6:8 [C5,E5,G5]:2 | [C5,E5,G5]:1",
        "bass": "C2:4 G2:4 C3:4 G2:4 | G2:4 D2:4 C2:2 | E2:1",
        "drums": "crash:4 snare:4 kick:8 kick:8 snare:4 | kick:4 snare:4 crash:2 | R:1"
    }
}
arrangement = ["landing_fanfare"]

# Dawn over the Citadel, an eight-bar credits reprise.
@Music/nc_credits
type = synth
tempo = 104
time_signature = 4/4
loop = false
volume = 0.064
instruments = {"lead":"bell","harmony":"strings","bass":"triangle"}
effects = {"reverb":{"decay":1.7,"wet":0.20,"filter":3600}}
track_effects = {"lead":{"reverb":0.32},"harmony":{"reverb":0.20},"bass":{"reverb":0.04}}
sections = {
    "dawn": {
        "bars": 8,
        "lead": "E5:4 D5:8 B4:8 G4:2 | A4:4 C5:4 E5:2 | F#5:4 D5:4 B4:2 | A4:4 F#4:4 E4:2 | E5:4 G5:8 A5:8 B5:2 | D6:4 B5:4 G5:2 | F#5:4 A5:4 B5:4 A5:4 | G5:2 E5:2",
        "harmony": "[E3,G3,B3]:1 | [C3,E3,G3]:1 | [G3,B3,D4]:1 | [D3,F#3,A3]:2 [B2,F#3,A3]:2 | [E3,G3,B3]:1 | [C3,E3,G3]:2 [G3,B3,D4]:2 | [D3,F#3,A3]:1 | [E3,G3,B3,E4]:1",
        "bass": "E2:2 B2:2 | C2:2 G2:2 | G2:2 D3:2 | D2:2 B1:2 | E2:2 B2:2 | C2:2 G2:2 | D2:2 A2:2 | E2:1"
    }
}
arrangement = ["dawn"]
return_challenge_models.rune
@Model/nc/return_mag_idle
palette = nc
unit = 0.1
blocks:
    {"from": [-9,-5,0], "size": [18,10,1], "color": "s"}
    {"from": [-8,-5,1], "size": [16,1,1], "color": "V"}
    {"from": [-8,4,1], "size": [16,1,1], "color": "V"}
    {"from": [-1,-3,1], "size": [2,6,1], "color": "g"}

@Model/nc/return_mag_west
palette = nc
emissive = "vc"
unit = 0.1
blocks:
    {"from": [-9,-5,0], "size": [18,10,1], "color": "s"}
    {"from": [-8,-5,1], "size": [16,1,1], "color": "V"}
    {"from": [-8,4,1], "size": [16,1,1], "color": "V"}
    {"from": [-5,-1,1], "size": [3,2,1], "color": "c"}
    {"from": [-2,-2,1], "size": [4,1,1], "color": "v"}
    {"from": [-2,1,1], "size": [4,1,1], "color": "v"}
    {"from": [2,-3,1], "size": [2,1,1], "color": "v"}
    {"from": [2,2,1], "size": [2,1,1], "color": "v"}

@Model/nc/return_mag_east
palette = nc
emissive = "vo"
unit = 0.1
blocks:
    {"from": [-9,-5,0], "size": [18,10,1], "color": "s"}
    {"from": [-8,-5,1], "size": [16,1,1], "color": "V"}
    {"from": [-8,4,1], "size": [16,1,1], "color": "V"}
    {"from": [2,-1,1], "size": [3,2,1], "color": "o"}
    {"from": [-2,-2,1], "size": [4,1,1], "color": "v"}
    {"from": [-2,1,1], "size": [4,1,1], "color": "v"}
    {"from": [-4,-3,1], "size": [2,1,1], "color": "v"}
    {"from": [-4,2,1], "size": [2,1,1], "color": "v"}

@Model/nc/return_purge_warn
palette = nc
emissive = "o"
unit = 0.1
blocks:
    {"from": [-3,-5,0], "size": [6,10,1], "color": "O"}
    {"from": [-1,-4,1], "size": [2,8,1], "color": "o"}

@Model/nc/return_purge_fire
palette = nc
emissive = "oy"
unit = 0.1
blocks:
    {"from": [-3,-5,0], "size": [6,10,2], "color": "r"}
    {"from": [-2,-5,2], "size": [4,10,2], "color": "o"}
    {"from": [-2,-4,4], "size": [3,3,3], "color": "o"}
    {"from": [-1,-3,6], "size": [2,2,3], "color": "y"}
    {"from": [-2,0,3], "size": [3,4,4], "color": "y"}
    {"from": [-1,2,6], "size": [2,2,5], "color": "o"}

@Model/nc/return_phase_core
palette = nc
emissive = "ci"
unit = 0.1
blocks:
    {"from": [-5,-4,0], "size": [10,8,2], "color": "V"}
    {"from": [-2,-5,3], "size": [4,10,2], "color": "c"}
    {"from": [-2,-5,12], "size": [4,10,2], "color": "c"}
shapes:
    {"type": "sphere", "center": [0,0,8], "radius": 4, "color": "i"}

@Model/nc/return_phase_echo
palette = nc
emissive = "pv"
unit = 0.1
blocks:
    {"from": [-3,-5,3], "size": [6,10,1], "color": "v"}
    {"from": [-3,-5,12], "size": [6,10,1], "color": "v"}
    {"from": [-3,-4,5], "size": [6,8,1], "color": "P"}
    {"from": [-3,-3,8], "size": [6,6,1], "color": "p"}
    {"from": [-3,-4,10], "size": [6,8,1], "color": "P"}

@Model/nc/return_saw_track
palette = nc
emissive = "L"
unit = 0.1
blocks:
    {"from": [-2,-15,0], "size": [4,30,1], "color": "a"}
    {"from": [-1,-13,1], "size": [2,26,1], "color": "L"}

@Model/nc/return_saw
palette = nc
emissive = "yl"
unit = 0.1
shapes:
    {"type": "cylinder", "center": [0,0,0], "radius": 4.5, "height": 2, "color": "g"}
blocks:
    {"from": [-1,-1,1], "size": [2,2,1], "color": "l"}
    {"from": [-2,-6,0], "size": [3,2,2], "color": "y"}
    {"from": [-2,4,0], "size": [3,2,2], "color": "y"}
    {"from": [-6,-1,0], "size": [2,3,2], "color": "y"}
    {"from": [4,-1,0], "size": [2,3,2], "color": "y"}

@Model/nc/return_ice_target
palette = nc
emissive = "i"
unit = 0.1
blocks:
    {"from": [-7,-7,0], "size": [14,1,1], "color": "i"}
    {"from": [-7,6,0], "size": [14,1,1], "color": "i"}
    {"from": [-7,-6,0], "size": [1,12,1], "color": "i"}
    {"from": [6,-6,0], "size": [1,12,1], "color": "i"}
    {"from": [-2,-1,0], "size": [4,2,1], "color": "C"}

@Model/nc/return_ice_shard
palette = nc
emissive = "i"
unit = 0.1
blocks:
    {"from": [-2,-1,1], "size": [4,2,3], "color": "C"}
    {"from": [-3,-2,4], "size": [6,4,3], "color": "i"}
    {"from": [-4,-2,7], "size": [8,4,4], "color": "C"}
    {"from": [0,-1,5], "size": [3,2,5], "color": "i"}
    {"from": [-3,-2,11], "size": [6,4,3], "color": "C"}
    {"from": [-1,-1,14], "size": [3,2,3], "color": "i"}

@Model/nc/return_listener
palette = nc
emissive = "V"
unit = 0.1
blocks:
    {"from": [-4,-4,0], "size": [8,8,2], "color": "s"}
    {"from": [-2,-2,2], "size": [4,4,5], "color": "m"}
    {"from": [-4,-4,7], "size": [8,8,4], "color": "s"}
    {"from": [-4,-3,8], "size": [8,6,2], "color": "V"}

@Model/nc/return_listener_alert
palette = nc
emissive = "pv"
unit = 0.1
blocks:
    {"from": [-4,-4,0], "size": [8,8,2], "color": "s"}
    {"from": [-2,-2,2], "size": [4,4,5], "color": "m"}
    {"from": [-4,-4,7], "size": [8,8,4], "color": "V"}
    {"from": [3,-3,6], "size": [4,6,6], "color": "v"}
    {"from": [7,-2,8], "size": [1,4,2], "color": "p"}

@Model/nc/return_press_base
palette = nc
emissive = "l"
unit = 0.1
blocks:
    {"from": [-8,-8,0], "size": [16,16,1], "color": "s"}
    {"from": [-8,-8,1], "size": [16,1,1], "color": "Y"}
    {"from": [-8,7,1], "size": [16,1,1], "color": "Y"}
    {"from": [-3,7,1], "size": [6,5,13], "color": "a"}
    {"from": [0,7,8], "size": [4,5,4], "color": "m"}
    {"from": [3,8,9], "size": [2,3,2], "color": "l"}

@Model/nc/return_press_base_warn
palette = nc
emissive = "oy"
unit = 0.1
blocks:
    {"from": [-8,-8,0], "size": [16,16,1], "color": "s"}
    {"from": [-8,-8,1], "size": [16,1,1], "color": "o"}
    {"from": [-8,7,1], "size": [16,1,1], "color": "o"}
    {"from": [-3,7,1], "size": [6,5,13], "color": "a"}
    {"from": [0,7,8], "size": [4,5,4], "color": "O"}
    {"from": [3,8,9], "size": [2,3,2], "color": "y"}

@Model/nc/return_press
palette = nc
emissive = "L"
unit = 0.1
blocks:
    {"from": [-8,-8,0], "size": [16,16,6], "color": "a"}
    {"from": [-8,-6,1], "size": [16,12,2], "color": "m"}
    {"from": [-2,-2,5], "size": [4,4,9], "color": "g"}
    {"from": [-8,-4,4], "size": [16,8,1], "color": "L"}

@Model/nc/return_press_warn
palette = nc
emissive = "yo"
unit = 0.1
blocks:
    {"from": [-8,-8,0], "size": [16,16,6], "color": "a"}
    {"from": [-8,-6,1], "size": [16,12,2], "color": "m"}
    {"from": [-2,-2,5], "size": [4,4,9], "color": "g"}
    {"from": [-8,-4,4], "size": [16,8,1], "color": "o"}
    {"from": [-8,-2,4], "size": [16,4,1], "color": "y"}

@Model/nc/return_prism_post
palette = nc
emissive = "V"
unit = 0.1
blocks:
    {"from": [-3,-3,0], "size": [6,6,2], "color": "m"}
    {"from": [-2,-2,2], "size": [4,4,20], "color": "a"}
    {"from": [-2,-3,2], "size": [4,2,3], "color": "V"}
    {"from": [-2,-3,17], "size": [4,2,4], "color": "V"}

@Model/nc/return_prism_warn
palette = nc
emissive = "g"
unit = 0.1
blocks:
    {"from": [-1,-7,0], "size": [2,3,1], "color": "g"}
    {"from": [-1,-2,0], "size": [2,3,1], "color": "g"}
    {"from": [-1,3,0], "size": [2,4,1], "color": "g"}

@Model/nc/return_prism_beam
palette = nc
emissive = "vi"
unit = 0.1
blocks:
    {"from": [-1,-8,-1], "size": [2,16,3], "color": "v"}
    {"from": [-2,-8,0], "size": [4,16,1], "color": "i"}

@Model/nc/return_aegis
palette = nc
emissive = "yc"
unit = 0.1
blocks:
    {"from": [-1,-4,4], "size": [2,8,1], "color": "y"}
    {"from": [-1,-4,-5], "size": [2,8,1], "color": "c"}
    {"from": [-1,-5,-4], "size": [2,1,8], "color": "c"}
    {"from": [-1,4,-4], "size": [2,1,8], "color": "y"}
    {"from": [-1,-3,-1], "size": [2,2,2], "color": "c"}
    {"from": [-1,1,-1], "size": [2,2,2], "color": "c"}
return_challenges.rune
@Logic/neon_circuit

action setup_return_challenge:
    return_challenge = null
    local deck = escape_deck_z
    local pieces = []
    local trigger = 0
    local hint = ""
    match current_stage:
        2:
            trigger = 79
            hint = "MAG RAIL // RIDE THE WESTWARD PULSE OR JUMP CLEAR"
            for i in range(0, 5):
                pieces.push({"x": 67.5 + i * 1.8, "y": 2.5, "z": deck, "model": "nc/return_mag_idle"})
        3:
            trigger = 75
            hint = "THERMAL PURGE // KEEP MOVING OR JUMP THE FIRE FRONT"
            for i in range(0, 3):
                pieces.push({"x": 76, "y": 2.5 + i, "z": deck, "model": "nc/return_purge_warn"})
        4:
            trigger = 77
            hint = "PHASE CACHE // SHOOT THE STEADY CYAN CORE FOR BONUS TIME"
            pieces = [
                {"x": 61.5, "y": 2.5, "z": deck, "model": "nc/return_phase_core", "real": true},
                {"x": 65.5, "y": 2.5, "z": deck, "model": "nc/return_phase_echo"},
                {"x": 69.5, "y": 2.5, "z": deck, "model": "nc/return_phase_echo"}
            ]
        5:
            trigger = 86
            hint = "SAW SHUTTLES // JUMP OR CROSS BEHIND THE BLADES"
            for i in range(0, 2):
                local x = 75.5 + i * 4.75
                pieces.push({"x": x, "y": 2.5, "z": deck + 0.43, "model": "nc/return_saw"})
                sector_return_props.push({"x": x, "y": 3.55, "z": deck, "model": "nc/return_saw_track"})
        7:
            trigger = 87
            hint = "ICE FALL // KEEP MOVING PAST THE TARGET MARKERS"
            pieces = [
                {"x": 82, "y": 2.5, "z": deck, "model": "nc/return_ice_target", "visible": false},
                {"x": 82, "y": 2.5, "z": deck, "model": "nc/return_ice_shard", "visible": false}
            ]
        8:
            trigger = 85
            hint = "LISTENING POST // STOP SHOOTING TO STAY UNDETECTED"
            pieces.push({"x": 74.5, "y": 3.45, "z": deck, "model": "nc/return_listener"})
        9:
            trigger = 92
            hint = "ASSEMBLY PRESSES // CROSS AS THE JAWS RISE"
            for i in range(0, 2):
                local x = 79.5 + i * 5
                local base = {"x": x, "y": 2.6, "z": deck, "model": "nc/return_press_base"}
                sector_return_props.push(base)
                pieces.push({"x": x, "y": 2.6, "z": deck + 3.1, "model": "nc/return_press", "base": base})
        10:
            trigger = 80
            hint = "PRISM GRID // JUMP THE LOW BEAMS AND WALK UNDER HIGH ONES"
            for i in range(0, 2):
                local x = 65.5 + i * 6
                pieces.push({"x": x, "y": 2.75, "z": deck + 0.32, "model": "nc/return_prism_beam", "visible": false})
                sector_return_props.push({"x": x, "y": 3.55, "z": deck, "model": "nc/return_prism_post"})
        11:
            trigger = 88
            hint = "AEGIS CIRCUIT // JUMP THROUGH HIGH RINGS AND COLLECT ALL THREE"
            for i in range(0, 3):
                local height = i == 1 ? 0.72 : 1.92
                pieces.push({"x": 81.5 - i * 4.75, "y": 2.5, "z": deck + height,
                    "model": "nc/return_aegis", "visible": true})
    if trigger > 0:
        return_challenge = {"pieces": pieces, "trigger": trigger, "hint": hint, "age": 0,
            "charge": 0, "spent": false, "rings": 0, "shield": false}
        for piece in pieces:
            sector_return_props.push(piece)

action step_return_challenge:
    local challenge = return_challenge
    if challenge.age == 0:
        stop when player.x > challenge.trigger
        notice_text = challenge.hint
        notice_ticks = 115
    challenge.age = challenge.age + 1
    match current_stage:
        2:
            call step_mag_rail challenge
        3:
            call step_pyro_purge challenge
        4:
            for echo in challenge.pieces:
                if !echo.real:
                    echo.dissolve = 0.2 + 0.38 * abs(sin(challenge.age * 15 + echo.x * 13))
        5:
            call step_saw_shuttles challenge
        7:
            call step_glacier_fall challenge
        8:
            call step_ghost_listener challenge
        9:
            call step_hydra_presses challenge
        10:
            call step_prism_grid challenge
        11:
            call step_omega_aegis challenge

action step_mag_rail(challenge):
    stop when player.x < 62 || player.x > 82
    local cycle = (challenge.age - 1) % 72
    local west = cycle < 40
    for i in range(0, challenge.pieces.length):
        local tile = challenge.pieces[i]
        tile.model = west ? "nc/return_mag_west" : "nc/return_mag_east"
        tile.dissolve = (i * (west ? -1 : 1) + floor(cycle / 4) + 6) % 5 == 0 ? 0 : 0.23
    if player.x > 66.55 && player.x < 75.65 && abs(player.y - 2.5) < 0.52 && player.z < escape_deck_z + 0.26:
        call move_on_deck player, (west ? 180 : 0), (west ? 0.15 : 0.09), 0.28

action step_pyro_purge(challenge):
    stop when challenge.spent
    local age = challenge.age
    if age == 1:
        sound.play "nc_enemy_charge"
    if age == 22:
        sound.play "nc_return_purge"
    if age >= 22:
        local x = 76 - (age - 22) * 0.45
        if x < 57.5:
            challenge.spent = true
        for jet in challenge.pieces:
            jet.x = x
            jet.model = "nc/return_purge_fire"
            jet.visible = !challenge.spent && voxel_get(world, floor(x), floor(jet.y), escape_deck_z) == 0
            if jet.visible && abs(player.x - x) < 0.53 && abs(player.y - jet.y) < 0.65 && player.z < escape_deck_z + 0.86:
                call hurt_player 1

action hit_phase_cache(shot):
    for core in return_challenge.pieces:
        if core.visible != false && shot.life > 0 && distance(shot, core) < 0.62 && abs(shot.z - core.z - 0.82) < 0.68:
            core.visible = false
            if !shot.pierce:
                shot.life = 0
            if core.real:
                escape_ticks = max(0, escape_ticks - 120)
                notice_text = "PHASE CACHE // UP TO FOUR SECONDS ADDED"
                notice_ticks = 90
                call burst_on_deck core.x, core.y
                sound.play "nc_pickup"
            if !core.real:
                sound.play "nc_hit"

action step_saw_shuttles(challenge):
    stop when player.x < 70 || player.x > 90
    for i in range(0, challenge.pieces.length):
        local saw = challenge.pieces[i]
        saw.y = 3.53 + 1.05 * cos(challenge.age * 10 + i * 180)
        saw.angle = (challenge.age * 34) % 360
        if distance(player, saw) < 0.58 && player.z < escape_deck_z + 0.81:
            call hurt_player 1

action step_glacier_fall(challenge):
    local mark = challenge.pieces[0]
    local shard = challenge.pieces[1]
    local cycle = (challenge.age - 1) % 48
    if cycle == 0:
        mark.visible = player.x > 75 && player.x < 88
        if mark.visible:
            mark.x = player.x - 3.5
            mark.y = player.y
            shard.x = mark.x
            shard.y = mark.y
            sound.play "nc_freeze"
    mark.dissolve = cycle < 16 ? 0.28 : 0
    shard.visible = mark.visible && cycle >= 18 && cycle < 25
    if shard.visible:
        shard.z = escape_deck_z + (24 - cycle) * 0.55
    if mark.visible && cycle == 24:
        if distance(player, mark) < 0.85:
            call hurt_player 1
        call burst_on_deck mark.x, mark.y
        sound.play "nc_return_press"
    if cycle == 25:
        mark.visible = false

action alert_ghost_listener:
    local challenge = return_challenge
    stop when challenge.spent || challenge.charge > 0 || player.x <= 72 || player.x >= 84
    challenge.charge = 24
    challenge.pieces[0].model = "nc/return_listener_alert"
    notice_text = "SIGNAL TRACED // MOVE OUT OF THE CROSSHAIRS"
    notice_ticks = 70
    sound.play "nc_enemy_charge"

action step_ghost_listener(challenge):
    local listener = challenge.pieces[0]
    if challenge.charge > 0:
        challenge.charge = challenge.charge - 1
        listener.angle = atan2(player.y - listener.y, player.x - listener.x)
        if challenge.charge == 0:
            for offset in [-9, 0, 9]:
                local angle = listener.angle + offset
                enemy_shots.push({"x": listener.x, "y": listener.y, "z": escape_deck_z + 0.75,
                    "vx": cos(angle) * 0.52, "vy": sin(angle) * 0.52, "life": 23,
                    "model": "nc/enemy_shot", "angle": angle})
            sound.play "nc_enemy_fire"
            listener.model = "nc/return_listener"
            challenge.spent = true

action step_hydra_presses(challenge):
    stop when player.x < 75 || player.x > 95
    for i in range(0, challenge.pieces.length):
        local jaw = challenge.pieces[i]
        local cycle = (challenge.age + i * 27) % 80
        jaw.z = escape_deck_z + 3.1
        local dropping = cycle >= 34 && cycle < 63
        jaw.base.model = dropping ? "nc/return_press_base_warn" : "nc/return_press_base"
        jaw.model = dropping ? "nc/return_press_warn" : "nc/return_press"
        if cycle >= 48 && cycle < 63:
            jaw.z = escape_deck_z + 3.1 * (1 - min(1, (cycle - 48) / 5))
        if cycle >= 63 && cycle < 72:
            jaw.z = escape_deck_z + 3.1 * (cycle - 63) / 9
        if cycle == 53 && abs(player.x - jaw.x) < 9:
            sound.play "nc_return_press"
        if jaw.z < escape_deck_z + 1.5 && abs(player.x - jaw.x) < 0.78 && abs(player.y - jaw.y) < 0.78:
            call hurt_player 1

action step_prism_grid(challenge):
    stop when player.x < 61 || player.x > 85
    for i in range(0, challenge.pieces.length):
        local beam = challenge.pieces[i]
        local cycle = (challenge.age + i * 21) % 84
        local high = cycle >= 42
        local sweep = cycle % 42
        beam.z = escape_deck_z + (high ? 1.82 : 0.28)
        beam.model = sweep < 12 ? "nc/return_prism_warn" : "nc/return_prism_beam"
        beam.visible = sweep < 32
        if sweep >= 12 && sweep < 32 && abs(player.x - beam.x) < 0.42 && abs(player.y - beam.y) < 0.76:
            if player.z <= beam.z + 0.18 && player.z + 1.12 >= beam.z:
                call hurt_player 1

action step_omega_aegis(challenge):
    stop when challenge.spent
    for ring in challenge.pieces:
        if ring.visible && distance(player, ring) < 0.7 && abs(player.z + 0.72 - ring.z) < 0.54:
            ring.visible = false
            challenge.rings = challenge.rings + 1
            notice_text = "AEGIS RINGS // " + challenge.rings + "/3"
            notice_ticks = 65
            sound.play "nc_pickup"
    if challenge.rings == 3:
        challenge.shield = true
        challenge.spent = true
        notice_text = "AEGIS READY // ABSORBS THE NEXT HIT"
        notice_ticks = 100
        sound.play "nc_barrier_open"
sector_returns.rune
@Logic/neon_circuit

action setup_sector_return:
    sector_return_props = []
    call setup_return_challenge
    if current_stage == 1:
        cryo_vent_tick = 0
        cryo_vents = []
        for lane in range(0, 2):
            local y = 2.5 + lane * 1.75
            for col in range(0, 4):
                local x = 68.5 + col * 1.75
                local vent = {"x": x, "y": y, "z": escape_deck_z, "lane": lane,
                    "model": "nc/cryo_vent_idle"}
                cryo_vents.push(vent)
                sector_return_props.push(vent)
        cryo_cache = {"x": 63.5, "y": 4.25, "z": escape_deck_z, "model": "nc/cryo_cache", "visible": true}
        sector_return_props.push(cryo_cache)
    if current_stage == 6:
        storm_fan_tick = 0
        storm_relay_off = false
        storm_wind = []
        storm_relay = {"x": 58.5, "y": 2.5, "z": escape_deck_z, "model": "nc/storm_relay", "visible": true}
        sector_return_props.push(storm_relay)
        for col in range(0, 4):
            local x = 55.5 + col * 2.75
            sector_return_props.push({"x": x, "y": 2.42, "z": escape_deck_z, "model": "nc/storm_fan"})
            local streak = {"x": x, "y": 2.65, "z": escape_deck_z, "model": "nc/storm_gust", "visible": false}
            storm_wind.push(streak)
            sector_return_props.push(streak)
        storm_beacon = {"x": 66.4, "y": 3.7, "z": escape_deck_z, "model": "nc/storm_beacon"}
        sector_return_props.push(storm_beacon)

action step_cryo_vents:
    cryo_slipping = false
    if cryo_vent_tick == 0:
        stop when player.x > 80
        notice_text = "FROST VENTS // JUMP OR CHANGE LANES WHEN THE LIGHTS COME ON"
        notice_ticks = 105
    cryo_vent_tick = cryo_vent_tick + 1
    local cycle = (cryo_vent_tick - 1) % 68
    local lane = floor((cryo_vent_tick - 1) / 68) % 2
    local live = cycle >= 22 && cycle < 53
    local selected_model = cycle < 22 ? "nc/cryo_vent_warn" : "nc/cryo_vent_idle"
    if live:
        selected_model = "nc/cryo_vent_live"
        local center = 2.5 + lane * 1.75
        cryo_slipping = player.x >= 67.7 && player.x <= 74.45 && abs(player.y - center) < 0.67 && player.z < escape_deck_z + 0.3
        if cycle == 22 && player.x > 63 && player.x < 82:
            sound.play "nc_freeze"
    for vent in cryo_vents:
        vent.model = vent.lane == lane ? selected_model : "nc/cryo_vent_idle"

action check_cryo_cache:
    stop when !cryo_cache.visible || (health >= max_health && weapon_energy >= 28)
    if distance(player, cryo_cache) < 0.8 && player.z < escape_deck_z + 0.65:
        cryo_cache.visible = false
        health = min(max_health, health + 2)
        weapon_energy = min(28, weapon_energy + 8)
        notice_text = "COOLANT CACHE // HEALTH AND WEAPON ENERGY RESTORED"
        notice_ticks = 90
        sound.play "nc_pickup"

action step_storm_crosswind:
    stop when storm_relay_off
    if storm_fan_tick == 0:
        stop when player.x > 71
        notice_text = "CROSSWIND // STRAFE AGAINST THE GUST OR SHOOT THE RELAY"
        notice_ticks = 110
    storm_fan_tick = storm_fan_tick + 1
    local cycle = (storm_fan_tick - 1) % 92
    local gust = cycle >= 24 && cycle < 49
    local beacon_model = cycle < 24 ? "nc/storm_beacon_warn" : "nc/storm_beacon"
    if gust:
        beacon_model = "nc/storm_beacon_live"
        if player.x > 54.5 && player.x < 65.5 && player.y < 4.5:
            call move_on_deck player, 90, 0.10, 0.28
        if cycle == 24 && player.x > 50 && player.x < 74:
            sound.play "nc_storm_gust"
    if cycle == 0 && player.x > 50 && player.x < 74:
        sound.play "nc_storm_spool"
    storm_beacon.model = beacon_model
    for i in range(0, storm_wind.length):
        local streak = storm_wind[i]
        streak.visible = gust
        streak.y = 2.65 + ((cycle - 24 + i * 3) % 12) * 0.18

action hit_storm_relay(shot):
    if distance(shot, storm_relay) < 0.62 && abs(shot.z - storm_relay.z - 0.75) < 0.66:
        storm_relay_off = true
        storm_relay.model = "nc/storm_relay_off"
        storm_beacon.model = "nc/storm_beacon"
        for streak in storm_wind:
            streak.visible = false
        if !shot.pierce:
            shot.life = 0
        notice_text = "FAN RELAY OFFLINE // CROSSWIND CLEAR"
        notice_ticks = 90
        sound.play "nc_barrier_open"
shell.rune
# Clean Arcade Cabinet — All Menus & Weapon Selectors Render Inside the Pixel-3D Engine!
@Page/neon_cabinet
title = Neon Circuit — Cyberpunk Pixel-3D Action Platformer
logic = neon_cabinet
style = neon_cabinet
view:
    main .cabinet:
        header .masthead:
            div:
                p .eyebrow "RUNE // PIXEL-3D // CYBERPUNK SIDESCROLLER"
                h1 "NEON CIRCUIT"
            div .meta:
                span .pill data-pixel-text=progress_label "CLEARED 0/12"
                span .pill .accent data-pixel-text=weapon_label "PULSE BUSTER"
        p .rotate-to-play:
            span aria-hidden=true "↻"
            span "Rotate your phone to play in landscape."
        section .game-card:
            div .toolbar:
                span .sector data-pixel-text=selected_title "01 VOLT VIPER"
                details .toolbar-settings open=true:
                    summary "Game options"
                    div .buttons:
                        select data-pixel-resolution=true aria-label="Resolution":
                            option value="432x270" "432x270"
                            option value="576x360" selected=true "576x360"
                            option value="768x480" "768x480"
                        select data-pixel-lighting=true aria-label="Lighting quality":
                            option value="standard" "Standard lighting"
                            option value="enhanced" selected=true "Enhanced lighting"
                        button data-pixel-action="return_to_select" "Stage Select / T"
                        button data-pixel-action="visit_master_gate" "Master Gate / G"
                        button data-pixel-pause=true "Pause / P"
                        button data-pixel-mute=true "Sound / M"
                button data-pixel-fullscreen=true "Fullscreen / F"
            div .game-surface:
                canvas data-rune-pixel-3d=true data-pixel-fit=viewport data-pixel-app-fullscreen=true tabindex=0 aria-label="Neon Circuit, a Mega Man style cyberpunk pixel-3d platformer."
                section .mobile-menu .mobile-title-menu data-pixel-hidden=mobile_title_hidden aria-label="Game menu":
                    button data-pixel-hidden=mobile_continue_hidden data-pixel-action=continue_game "Continue"
                    button data-pixel-hidden=mobile_new_hidden data-pixel-action=request_new_game "New game"
                    button .fullscreen-exit data-pixel-fullscreen=true "Exit fullscreen"
                    div .mobile-confirm data-pixel-hidden=mobile_confirm_hidden:
                        p "Erase saved progress?"
                        button data-pixel-action=cancel_new_game "Keep progress"
                        button data-pixel-action=confirm_new_game "Erase and start"
                section .mobile-menu .mobile-stage-menu data-pixel-hidden=mobile_select_hidden hidden=true aria-label="Stage selection":
                    h2 "Choose a stage"
                    p .mobile-stage-current data-pixel-text=selected_title aria-live=polite "01 VOLT VIPER"
                    p .mobile-stage-status data-pixel-text=selected_status_label "TIER 1 INTRO"
                    p .mobile-stage-hint data-pixel-text=selected_hint ""
                    div .mobile-stage-grid:
                        button data-pixel-action=pick_stage data-pixel-selected=mobile_stage_selected.0 data-pixel-args="[0]" "01 Volt"
                        button data-pixel-action=pick_stage data-pixel-selected=mobile_stage_selected.1 data-pixel-args="[1]" "02 Cryo"
                        button data-pixel-action=pick_stage data-pixel-selected=mobile_stage_selected.2 data-pixel-args="[2]" "03 Mag"
                        button data-pixel-action=pick_stage data-pixel-selected=mobile_stage_selected.3 data-pixel-args="[3]" "04 Pyro"
                        button data-pixel-action=pick_stage data-pixel-selected=mobile_stage_selected.4 data-pixel-args="[4]" "05 Phase"
                        button data-pixel-action=pick_stage data-pixel-selected=mobile_stage_selected.5 data-pixel-args="[5]" "06 Saw"
                        button data-pixel-action=pick_stage data-pixel-selected=mobile_stage_selected.6 data-pixel-args="[6]" "07 Storm"
                        button data-pixel-action=pick_stage data-pixel-selected=mobile_stage_selected.7 data-pixel-args="[7]" "08 Glacier"
                        button data-pixel-action=pick_stage data-pixel-selected=mobile_stage_selected.8 data-pixel-args="[8]" "09 Ghost"
                        button data-pixel-action=pick_stage data-pixel-selected=mobile_stage_selected.9 data-pixel-args="[9]" "10 Hydra"
                        button data-pixel-action=pick_stage data-pixel-selected=mobile_stage_selected.10 data-pixel-args="[10]" "11 Prism"
                        button data-pixel-action=pick_stage data-pixel-selected=mobile_stage_selected.11 data-pixel-args="[11]" "12 Omega"
                    div .mobile-stage-actions:
                        button .mobile-stage-play data-pixel-action=advance "Play selected stage"
                        button data-pixel-action=visit_master_gate "Master Gate"
                        button .fullscreen-exit data-pixel-fullscreen=true "Exit fullscreen"
                section .mobile-menu data-pixel-paused=true hidden=true aria-label="Pause menu":
                    h2 "Paused"
                    button data-pixel-pause=true "Resume"
                    button data-pixel-action=restart_current_stage "Restart stage"
                    button data-pixel-action=return_to_select "Stage select"
                    button data-pixel-mute=true "Sound"
                    button data-pixel-action=return_to_title "Quit to title"
                    button .fullscreen-exit data-pixel-fullscreen=true "Exit fullscreen"
            p .status data-pixel-status=true role=status aria-live=polite "NEON CIRCUIT READY."
            details .super-code:
                summary "Super Code"
                form data-pixel-action="redeem_super_code":
                    label for="neon-super-code" "Enter unlock code"
                    input #neon-super-code type=text name=code autocomplete=off spellcheck=false maxlength=24 required=true
                    button type=submit "Unlock"
                p data-pixel-text=super_code_notice role=status aria-live=polite ""
        section .guide:
            div:
                h2 "01 // 6 INTRO ROBOTS -> 6 GUNS & SKILLS"
                p "Defeat the 6 Tier-1 Intro Robots in any order to claim their weapons: Volt Surge (Air Dash + Volt Relays), Cryo Lance (Freeze Thermal Vents into ice bridges), Mag Claw (Double Mag-Boost Jump), Nova Breaker (Shatter Blast Walls), Phase Beam (Pierce Holo-Shields), and Hyper Saw (Slice Cable Barriers)."
            div:
                h2 "02 // 6 MASTER ROBOTS"
                p "All 6 Tier-2 Master Sectors can be explored at any time, but reaching their bosses requires combining skills from the first 6 robots. Highlight any robot on the in-game Stage Selector to see the exact skills required."
            div:
                h2 "03 // CONTROLS"
                p "A/D or Arrows: Move | Space/Z: Jump (press again with Mag Claw) | X/J/Click: Fire | W/Up: Aim Up | S/Down: Duck | Q/E/Tab or 1-7: Select Weapons | Shift/K: Surge Air Dash | T: Stage Select | Esc/P: Pause / Back to Title | M: Sound | F: Fullscreen."
                p "On a phone, use the directional buttons to move, aim and climb. Hold FIRE or JUMP while moving; WPN beside pause cycles unlocked weapons. TURN L/R appear in first-person sections. Use the pause menu to leave fullscreen."

@Logic/neon_cabinet
state:
    name = "Neon Circuit"

@Style/neon_cabinet
rules:
    :root:
        color-scheme = dark
    *:
        box-sizing = border-box
    body:
        margin = 0
        background = #060212
        color = #f4f7ff
        font-family = system-ui, -apple-system, sans-serif
    .cabinet:
        max-width = 1120px
        margin = auto
        padding = clamp(12px, 3vw, 32px)
    .masthead:
        display = flex
        align-items = end
        justify-content = space-between
        flex-wrap = wrap
        gap = 16px
        margin-bottom = 18px
    .eyebrow:
        color = #00f5ff
        font-size = 11px
        font-weight = 800
        letter-spacing = 3px
        margin = 0 0 8px
    h1:
        margin = 0
        font-size = clamp(28px, 4.5vw, 48px)
        letter-spacing = -1px
        color = #ff1e9b
        text-shadow = 0 0 18px #ff1e9b88
    .meta:
        display = flex
        gap = 8px
        flex-wrap = wrap
    .pill:
        padding = 6px 12px
        border = 1px solid #00f5ff88
        border-radius = 999px
        background = #120828
        color = #00f5ff
        font-size = 12px
        font-weight = 800
        letter-spacing = 1px
    .pill.accent:
        border-color = #ff1e9b
        color = #ffe600
    .game-card:
        border = 2px solid #ff1e9b99
        border-radius = 12px
        overflow = hidden
        background = #0c051e
        box-shadow = 0 0 36px #b026ff44
    .toolbar:
        display = flex
        align-items = center
        justify-content = space-between
        flex-wrap = wrap
        gap = 8px
        padding = 10px 14px
        background = #120828
        border-bottom = 1px solid #3b2c68
    .sector:
        color = #ffe600
        font-size = 12px
        font-weight = 800
        letter-spacing = 2px
    .buttons:
        display = flex
        gap = 6px
        flex-wrap = wrap
    .toolbar-settings summary:
        display = none
        cursor = pointer
        padding = 12px
        color = #80f8ff
        font-size = 12px
        font-weight = 800
    .toolbar-settings:not([open]) summary:
        display = block
    button, select, .super-code input:
        cursor = pointer
        min-height = 38px
        padding = 6px 12px
        font = inherit
        font-size = 12px
        font-weight = 800
        color = #f4f7ff
        background = #1d103d
        border = 1px solid #00f5ff88
        border-radius = 6px
    button:hover, select:hover:
        background = #2e1961
        border-color = #ff1e9b
    .game-surface:
        position = relative
        background = #05020d
        touch-action = none
    .mobile-menu:
        display = none
    .rotate-to-play:
        display = none
    .mobile-menu[hidden], .mobile-menu [hidden]:
        display = none !important
    .fullscreen-exit:
        display = none
    .game-surface:fullscreen .fullscreen-exit, .game-surface.rune-pixel3d-expanded .fullscreen-exit:
        display = inline-block
    .game-surface .rune-control-touch button:
        background = radial-gradient(circle closest-side, #172c4273 80%, #00f5ff88 84%, #00f5ff88 88%, transparent 92%)
        border = 0
        border-radius = 0
        text-shadow = 0 1px 3px #000
    .game-surface .rune-control-touch .touch-next_weapon:
        right = calc(max(12px, env(safe-area-inset-right)) + 52px) !important
    canvas:
        display = block
        width = 100%
        height = auto
        aspect-ratio = 16 / 10
        image-rendering = pixelated
        touch-action = none
        cursor = pointer
    .status:
        margin = 0
        padding = 8px 14px
        font-size = 12px
        color = #80f8ff
        background = #090418
    .super-code:
        padding = 10px 14px
        border-top = 1px solid #3b2c68
        color = #80f8ff
        font-size = 12px
    .super-code summary:
        cursor = pointer
        font-weight = 800
        width = fit-content
    .super-code form:
        display = flex
        align-items = center
        flex-wrap = wrap
        gap = 8px
        padding-top = 10px
    .super-code input:
        cursor = text
        width = 11em
    .super-code p:
        margin = 6px 0 0
    .guide:
        display = grid
        grid-template-columns = repeat(auto-fit, minmax(260px, 1fr))
        gap = 16px
        margin-top = 20px
        font-size = 13px
        line-height = 1.55
        color = #c9c2e8
    .guide h2:
        font-size = 13px
        color = #ff1e9b
        letter-spacing = 1.5px
        margin = 0 0 6px
responsive:
    (pointer: coarse) and (orientation: portrait):
        html[data-game-rotation] body:not(.rune-embedded-game) .rotate-to-play:
            display = flex
            align-items = center
            gap = 8px
            color = #80f8ff
            font-size = 13px
        .rotate-to-play span:first-child:
            font-size = 24px
    (pointer: coarse):
        .mobile-menu:not([hidden]):
            position = absolute
            inset = 0
            z-index = 8
            display = block
            overflow-y = auto
            padding = 12px
            background = #100a27
            touch-action = pan-y
        .mobile-menu h2:
            margin = 0 0 6px
            color = #00f5ff
            font-size = 16px
        .mobile-menu p:
            margin = 4px 0
            font-size = 12px
        .mobile-menu button:
            min-height = 44px
        .mobile-menu.mobile-title-menu:not([hidden]):
            top = auto
            max-height = 50%
        .mobile-stage-grid:
            display = grid
            grid-template-columns = repeat(3, minmax(0, 1fr))
            gap = 4px
            margin = 8px 0
        .mobile-stage-grid button[aria-pressed="true"]:
            background = #3e185c
            border-color = #ffe600
            color = #ffe600
        .mobile-stage-current:
            color = #ffe600
            font-weight = 800
        .mobile-stage-status:
            color = #00f5ff
        .mobile-stage-hint:
            line-height = 1.4
        .mobile-stage-actions:
            display = flex
            flex-wrap = wrap
            gap = 6px
        .mobile-stage-play:
            border-color = #ff1e9b
    (pointer: coarse) and (max-width: 480px):
        .toolbar-settings summary:
            display = block
        .game-surface:not(:fullscreen):not(.rune-pixel3d-expanded):has(.rune-control-touch:not([hidden])):
            padding-bottom = 160px
        .game-surface:not(:fullscreen):not(.rune-pixel3d-expanded) .rune-control-touch:
            top = calc(100% - 160px) !important
            height = 160px !important
        .game-surface:not(:fullscreen):not(.rune-pixel3d-expanded):has(.mobile-stage-menu:not([hidden])) canvas:
            display = none
        .game-surface:not(:fullscreen):not(.rune-pixel3d-expanded) .mobile-menu.mobile-stage-menu:not([hidden]):
            position = relative
            inset = auto
            overflow = visible
        .mobile-stage-grid:
            grid-template-columns = repeat(2, minmax(0, 1fr))
            gap = 6px
sounds.rune
@Sound/nc_buster
wave = square
frequency = 980
freq_end = 240
duration = 55ms
volume = 0.035

@Sound/nc_volt
wave = sawtooth
sequence = E5:30ms, B5:30ms, G6:45ms
volume = 0.038

@Sound/nc_cryo
wave = sine
sequence = C6:40ms, G5:40ms, E6:60ms
volume = 0.038

@Sound/nc_mag
wave = triangle
frequency = 320
freq_end = 110
duration = 120ms
volume = 0.042

@Sound/nc_nova
wave = noise
filter = lowpass 1600 -> 90
duration = 180ms
volume = 0.045

@Sound/nc_phase
wave = sine
frequency = 1320
freq_end = 440
duration = 95ms
volume = 0.038

@Sound/nc_saw
wave = sawtooth
sequence = A4:30ms, C5:30ms, A4:30ms, D5:40ms
volume = 0.04

@Sound/nc_jump
wave = triangle
sequence = D4:30ms, A4:40ms, E5:40ms
volume = 0.032

@Sound/nc_double_jump
wave = square
sequence = A4:30ms, E5:35ms, A5:55ms
volume = 0.032

@Sound/nc_dash
wave = sawtooth
frequency = 560
freq_end = 180
duration = 90ms
volume = 0.036

@Sound/nc_hit
wave = square
sequence = G4:22ms, C3:38ms
volume = 0.038

@Sound/nc_hurt
wave = sawtooth
sequence = D3:65ms, B2:65ms, G2:95ms
volume = 0.042

@Sound/nc_explode
wave = noise
filter = lowpass 2000 -> 70
duration = 260ms
volume = 0.048

@Sound/nc_barrier_open
wave = triangle
sequence = E4:45ms, G4:45ms, B4:45ms, E5:90ms
volume = 0.042

@Sound/nc_freeze
wave = sine
sequence = B5:40ms, E6:55ms, B6:70ms
volume = 0.038

@Sound/nc_checkpoint
wave = sine
sequence = C5:55ms, G5:55ms, C6:110ms
volume = 0.042

@Sound/nc_pickup
wave = triangle
sequence = E5:45ms, A5:45ms, C6:80ms
volume = 0.04

@Sound/nc_weapon_get
wave = square
sequence = C5:75ms, E5:75ms, G5:75ms, B5:75ms, C6:220ms
volume = 0.048

@Sound/nc_select_move
wave = square
frequency = 660
freq_end = 880
duration = 35ms
volume = 0.028

@Sound/nc_select_go
wave = triangle
sequence = E5:50ms, B5:60ms, E6:110ms
volume = 0.042

@Sound/nc_boss_warn
wave = sawtooth
sequence = E3:90ms, Bb3:90ms, E3:90ms, Bb3:130ms
volume = 0.045

@Sound/nc_enemy_charge
wave = triangle
frequency = 440
freq_end = 880
duration = 140ms
volume = 0.032

@Sound/nc_enemy_fire
wave = square
frequency = 480
freq_end = 220
duration = 75ms
volume = 0.036

@Sound/nc_escape_alarm
wave = triangle
sequence = A4:100ms, E4:90ms
volume = 0.017

@Sound/nc_escape_alarm_urgent
wave = triangle
sequence = E5:65ms, B5:80ms
volume = 0.034

@Sound/nc_escape_fall
wave = noise
filter = bandpass 2200 -> 260
duration = 310ms
volume = 0.037

@Sound/nc_glass_raise
wave = triangle
frequency = 82
freq_end = 179
duration = 2500ms
attack = 2150ms
volume = 0.044

@Sound/nc_escape_land
wave = triangle
frequency = 155
freq_end = 65
duration = 80ms
volume = 0.029

@Sound/nc_player_death
wave = triangle
sequence = B4:65ms, F#4:85ms, D4:90ms, B2:225ms
volume = 0.05

@Sound/nc_volt_lane_fire
wave = triangle
frequency = 610
freq_end = 115
duration = 170ms
volume = 0.061

@Sound/nc_storm_spool
wave = noise
filter = bandpass 120 -> 680
duration = 380ms
volume = 0.027

@Sound/nc_storm_gust
wave = noise
filter = lowpass 720 -> 180
duration = 660ms
volume = 0.036

@Sound/nc_return_purge
wave = noise
filter = bandpass 480 -> 1530
duration = 500ms
volume = 0.035

@Sound/nc_return_press
wave = noise
filter = lowpass 1560 -> 95
duration = 210ms
volume = 0.035
stages.rune
# Stage catalog, selector metadata, hints, and @SideMap loader
@Logic/neon_circuit

action build_stage_catalog:
    stages = [
        {
            "id": 0, "code": "01", "short": "01 VOLT", "name": "VOLT VIPER",
            "sector": "NEON POWER GRID", "tier": 1, "color": 62975,
            "light_colors": ["#20e9ff", "#ff2ba6"],
            "fg": "lvl_01_fg", "bg": "lvl_01_bg", "sky": "sky_01", "music": "nc_stage_01",
            "model": "nc/boss_volt", "unlocks": "volt", "unlock_label": "VOLT SURGE",
            "skill_desc": "AIR DASH (SHIFT/K) + CHARGE VOLT RELAYS",
            "requires": [],
            "hint": "INTRO UNIT - UNLOCKS: VOLT SURGE (AIR DASH + RELAY CHARGE)",
            "weakness": "saw"
        },
        {
            "id": 1, "code": "02", "short": "02 CRYO", "name": "CRYO SHADE",
            "sector": "CRYO SERVER VAULT", "tier": 1, "color": 9370367,
            "light_colors": ["#a5f0ff", "#616be5"],
            "fg": "lvl_02_fg", "bg": "lvl_02_bg", "sky": "sky_02", "music": "nc_stage_02",
            "model": "nc/boss_cryo", "unlocks": "cryo", "unlock_label": "CRYO LANCE",
            "skill_desc": "FREEZES SCORCHING THERMAL VENTS INTO ICE BRIDGES",
            "requires": [],
            "hint": "INTRO UNIT - UNLOCKS: CRYO LANCE (FREEZES THERMAL VENTS)",
            "weakness": "nova"
        },
        {
            "id": 2, "code": "03", "short": "03 MAG", "name": "MAG TITAN",
            "sector": "MAG-LEV SCRAPYARD", "tier": 1, "color": 11544319,
            "light_colors": ["#bd82ff", "#ffa553"],
            "fg": "lvl_03_fg", "bg": "lvl_03_bg", "sky": "sky_03", "music": "nc_stage_03",
            "model": "nc/boss_mag", "unlocks": "mag", "unlock_label": "MAG CLAW",
            "skill_desc": "DOUBLE MAG-BOOST JUMP IN MIDAIR",
            "requires": [],
            "hint": "INTRO UNIT - UNLOCKS: MAG CLAW (DOUBLE MAG-BOOST JUMP)",
            "weakness": "volt"
        },
        {
            "id": 3, "code": "04", "short": "04 PYRO", "name": "PYRO NOVA",
            "sector": "PLASMA FOUNDRY", "tier": 1, "color": 16739072,
            "light_colors": ["#ff793a", "#786edc"],
            "fg": "lvl_04_fg", "bg": "lvl_04_bg", "sky": "sky_04", "music": "nc_stage_04",
            "model": "nc/boss_pyro", "unlocks": "nova", "unlock_label": "NOVA BREAKER",
            "skill_desc": "SHATTERS REINFORCED BLAST WALLS",
            "requires": [],
            "hint": "INTRO UNIT - UNLOCKS: NOVA BREAKER (SHATTERS BLAST WALLS)",
            "weakness": "cryo"
        },
        {
            "id": 4, "code": "05", "short": "05 PHASE", "name": "PHASE PHANTOM",
            "sector": "HOLO-NET SPIRE", "tier": 1, "color": 16719515,
            "light_colors": ["#ef60d8", "#7771ff"],
            "fg": "lvl_05_fg", "bg": "lvl_05_bg", "sky": "sky_05", "music": "nc_stage_05",
            "model": "nc/boss_phase", "unlocks": "phase", "unlock_label": "PHASE BEAM",
            "skill_desc": "PIERCES WALLS & DEACTIVATES HOLO-SHIELDS",
            "requires": [],
            "hint": "INTRO UNIT - UNLOCKS: PHASE BEAM (PIERCES HOLO-SHIELDS)",
            "weakness": "mag"
        },
        {
            "id": 5, "code": "06", "short": "06 SAW", "name": "PULSE SAW",
            "sector": "BIO-SYNTH CONDUIT", "tier": 1, "color": 3800852,
            "light_colors": ["#67ed9a", "#ddcb56"],
            "fg": "lvl_06_fg", "bg": "lvl_06_bg", "sky": "sky_06", "music": "nc_stage_06",
            "model": "nc/boss_saw", "unlocks": "saw", "unlock_label": "HYPER SAW",
            "skill_desc": "SLICES ARMORED CABLE BARRIERS",
            "requires": [],
            "hint": "INTRO UNIT - UNLOCKS: HYPER SAW (CUTS CABLE BARRIERS)",
            "weakness": "phase"
        },
        {
            "id": 6, "code": "07", "short": "07 STORM", "name": "STORM VALKYRIE",
            "sector": "SKYLINE WIND TURBINE", "tier": 2, "color": 16770560,
            "light_colors": ["#ffdb64", "#77aeff"],
            "fg": "lvl_07_fg", "bg": "lvl_07_bg", "sky": "sky_07", "music": "nc_stage_07",
            "model": "nc/boss_storm", "unlocks": "", "unlock_label": "SKY CORE",
            "skill_desc": "MASTER SKY CORE RECOVERED",
            "requires": ["volt", "mag"],
            "hint": "NEEDS: VOLT SURGE + MAG CLAW (RELAY + AIR DASH + DOUBLE JUMP)",
            "weakness": "cryo"
        },
        {
            "id": 7, "code": "08", "short": "08 GLACR", "name": "GLACIER REACTOR",
            "sector": "THERMAL-CRYO CORE", "tier": 2, "color": 9370367,
            "light_colors": ["#54bfff", "#ff7969"],
            "fg": "lvl_08_fg", "bg": "lvl_08_bg", "sky": "sky_08", "music": "nc_stage_08",
            "model": "nc/boss_glacier", "unlocks": "", "unlock_label": "CRYO CORE",
            "skill_desc": "MASTER CRYO CORE RECOVERED",
            "requires": ["cryo", "nova"],
            "hint": "NEEDS: CRYO LANCE + NOVA BREAKER (FREEZE VENTS + BLAST WALL)",
            "weakness": "volt"
        },
        {
            "id": 8, "code": "09", "short": "09 GHOST", "name": "GHOST PROTOCOL",
            "sector": "BLACK-ICE MAINFRAME", "tier": 2, "color": 16719515,
            "light_colors": ["#cd78ff", "#86d949"],
            "fg": "lvl_09_fg", "bg": "lvl_09_bg", "sky": "sky_09", "music": "nc_stage_09",
            "model": "nc/boss_ghost", "unlocks": "", "unlock_label": "MAINFRAME CORE",
            "skill_desc": "MASTER MAINFRAME CORE RECOVERED",
            "requires": ["phase", "volt"],
            "hint": "NEEDS: PHASE BEAM + VOLT SURGE (HOLO-SHIELD + DASH + RELAY)",
            "weakness": "saw"
        },
        {
            "id": 9, "code": "10", "short": "10 HYDRA", "name": "IRON HYDRA",
            "sector": "MECHA ASSEMBLY TRENCH", "tier": 2, "color": 3800852,
            "light_colors": ["#45e096", "#fb9460"],
            "fg": "lvl_10_fg", "bg": "lvl_10_bg", "sky": "sky_10", "music": "nc_stage_10",
            "model": "nc/boss_hydra", "unlocks": "", "unlock_label": "HYDRA CORE",
            "skill_desc": "MASTER HYDRA CORE RECOVERED",
            "requires": ["saw", "nova"],
            "hint": "NEEDS: HYPER SAW + NOVA BREAKER (CABLE BARRIER + BLAST WALL)",
            "weakness": "phase"
        },
        {
            "id": 10, "code": "11", "short": "11 PRISM", "name": "PRISM ARCHON",
            "sector": "ORBITAL LASER ARRAY", "tier": 2, "color": 62975,
            "light_colors": ["#86f5ef", "#c980ff"],
            "fg": "lvl_11_fg", "bg": "lvl_11_bg", "sky": "sky_11", "music": "nc_stage_11",
            "model": "nc/boss_prism", "unlocks": "", "unlock_label": "PRISM CORE",
            "skill_desc": "MASTER PRISM CORE RECOVERED",
            "requires": ["mag", "phase", "cryo"],
            "hint": "NEEDS: MAG CLAW + PHASE BEAM + CRYO LANCE",
            "weakness": "nova"
        },
        {
            "id": 11, "code": "12", "short": "12 OMEGA", "name": "OMEGA OVERLORD",
            "sector": "NEON CITADEL NEXUS", "tier": 2, "color": 16717636,
            "light_colors": ["#ff506e", "#8867f0"],
            "fg": "lvl_12_fg", "bg": "lvl_12_bg", "sky": "sky_12", "music": "nc_stage_12",
            "model": "nc/boss_omega", "unlocks": "", "unlock_label": "CITADEL KEY",
            "skill_desc": "CITADEL MASTER KEY RECOVERED",
            "requires": ["volt", "cryo", "mag", "nova", "phase", "saw"],
            "hint": "NEEDS: ALL 6 INTRO SKILLS (VOLT, CRYO, MAG, NOVA, PHASE, SAW)",
            "weakness": "mag"
        }
    ]

action build_title_scene:
    volt_return_props = []
    sector_return_props = []
    return_challenge = null
    master_active = false
    master_props = []
    call set_title_lights
    lights = []
    lamps = []
    escape_active = false
    escape_first_person = false
    view_weapon = null
    escape_floor = []
    world = null
    scenery = []
    title_scenery = [
        {"x": 11.2, "y": 11.0, "z": 0.0, "model": "nc/bg_pylon", "angle": 0, "scale": 0.9, "visible": true},
        {"x": 24.8, "y": 11.0, "z": 0.0, "model": "nc/bg_pylon", "angle": 180, "scale": 0.9, "visible": true},
        {"x": 9.2, "y": 6.8, "z": 0.0, "model": "nc/bg_tower", "angle": 15, "scale": 1.05, "visible": true},
        {"x": 26.8, "y": 6.8, "z": 0.0, "model": "nc/bg_tower", "angle": 165, "scale": 1.05, "visible": true},
        {"x": 5.8, "y": 3.5, "z": 0.0, "model": "nc/bg_dome", "angle": 0, "scale": 1.15, "visible": true},
        {"x": 30.2, "y": 3.5, "z": 0.0, "model": "nc/bg_arch", "angle": 0, "scale": 1.2, "visible": true},
        {"x": 12.2, "y": 4.0, "z": 1.6, "model": "nc/bg_sign_cyan", "angle": 15, "scale": 0.85, "visible": true},
        {"x": 23.8, "y": 4.0, "z": 1.6, "model": "nc/bg_sign_pink", "angle": 345, "scale": 0.85, "visible": true},
        {"x": 7.5, "y": -2.5, "z": 0.0, "model": "nc/bg_tower", "angle": 0, "scale": 1.45, "visible": true},
        {"x": 28.5, "y": -2.5, "z": 0.0, "model": "nc/bg_tower", "angle": 180, "scale": 1.45, "visible": true},
        {"x": 13.8, "y": -6.0, "z": 0.0, "model": "nc/bg_dome", "angle": 0, "scale": 1.35, "visible": true},
        {"x": 22.2, "y": -6.0, "z": 0.0, "model": "nc/bg_dome", "angle": 0, "scale": 1.35, "visible": true},
        {"x": 11.2, "y": 2.0, "z": 4.8, "model": "nc/bg_orb", "angle": 0, "scale": 0.85, "visible": true},
        {"x": 24.8, "y": 2.0, "z": 4.8, "model": "nc/bg_orb", "angle": 0, "scale": 0.85, "visible": true}
    ]
    level_map = "sky_title"
    barriers = []
    barriers_fx = []
    hazards = []
    hazards_fx = []
    ladders = []
    ladder_caps = []
    boss_doors = []
    boss_door_locked = false
    boss_door_opened = false
    boss_gate_x = -1
    boss_shutter_fx = {"visible": false}
    checkpoints = []
    pickups = []
    enemies = []
    shots = []
    enemy_shots = []
    effects = []
    boss_entity = {"visible": false, "alive": false, "hp": 0, "max_hp": 1, "dissolve": 0}
    boss_satellites = []
    select_pedestal = {"visible": false}
    select_boss = {"visible": false}
    weapon_model = {"visible": false}
    respawn_beam = {"visible": false}
    title_monument = {"x": 18.0, "y": 11.8, "z": 0.0, "model": "nc/title_monument", "angle": 0, "scale": 1.05, "visible": true}
    avatar = {"x": 18.0, "y": 11.8, "z": 1.18, "model": "nc/hero_victory", "angle": 75, "scale": 1.18, "visible": true}
    victory_item = {"x": 18.0, "y": 11.8, "z": 3.15, "model": "nc/victory_orb", "angle": 0, "scale": 0.65, "visible": true}
    camera = {"x": 18.0, "y": 19.6, "z": 2.0, "angle": 270, "pitch": 2}

action build_select_arena:
    volt_return_props = []
    sector_return_props = []
    return_challenge = null
    master_active = false
    master_props = []
    lights = []
    lamps = []
    escape_active = false
    escape_first_person = false
    view_weapon = null
    escape_floor = []
    built = side_level("lvl_01_fg", "lvl_01_bg")
    world = built.world
    world = voxel_fill(world, [2, 4, 2], [36, 6, 15], 0)
    world = voxel_fill(world, [2, 5, 1], [36, 4, 1], 1)
    world = voxel_fill(world, [2, 6, 1], [36, 2, 1], 11)
    scenery = []
    for sc in built.scenery:
        if sc.y < 4:
            scenery.push(sc)
    title_scenery = []
    title_monument = {"visible": false}
    level_map = "sky_title"
    barriers = []
    barriers_fx = []
    hazards = []
    hazards_fx = []
    ladders = []
    ladder_caps = []
    boss_doors = []
    boss_door_locked = false
    boss_door_opened = false
    boss_gate_x = -1
    boss_shutter_fx = {"visible": false}
    checkpoints = []
    pickups = []
    enemies = []
    shots = []
    enemy_shots = []
    effects = []
    boss_entity = {"visible": false, "alive": false, "hp": 0, "max_hp": 1, "dissolve": 0}
    boss_satellites = []
    victory_item = {"visible": false, "x": 14, "y": 7, "z": 4, "model": "nc/victory_orb", "angle": 0, "scale": 1}
    avatar = {"x": 12.5, "y": 7, "z": 2.0, "model": "nc/hero_idle", "angle": 0, "visible": true}
    weapon_model = {"visible": false}
    respawn_beam = {"visible": false}
    select_pedestal = {"x": 21.5, "y": 7, "z": 2.0, "model": "nc/pedestal", "scale": 1.15, "visible": true}
    call refresh_select_preview
    camera = {"x": 17.5, "y": 17.5, "z": 3.4, "angle": 270, "pitch": -3}

action refresh_select_preview:
    st = stages[selected_stage]
    select_boss = {
        "x": 21.5,
        "y": 7,
        "z": 2.9,
        "model": st.model,
        "angle": select_spin,
        "scale": 1.2,
        "visible": true
    }
    call set_select_lights st.light_colors
    selected_title = st.code + " " + st.name
    selected_sector = st.sector
    selected_hint = st.hint
    beaten = campaign.defeated[st.code] == true
    selected_status_label = beaten ? "DEFEATED" : (st.tier == 1 ? "TIER 1 INTRO" : "TIER 2 MASTER")
    call refresh_ui

action load_stage(stage_idx):
    volt_return_props = []
    sector_return_props = []
    return_challenge = null
    master_active = false
    master_props = []
    current_stage = stage_idx
    selected_stage = stage_idx
    st = stages[stage_idx]
    built = side_level(st.fg, st.bg, {"margin_z": 24})
    world = built.world
    level_width = built.width
    level_height = built.height
    scenery = built.scenery
    barriers = built.barriers
    barriers_fx = []
    hazards = built.hazards
    hazards_fx = []
    ladders = built.ladders
    ladder_caps = []
    for lad in ladders:
        has_above = false
        for other in ladders:
            if abs(other.x - lad.x) < 0.2 && abs(other.z - (lad.z + 1)) < 0.2:
                has_above = true
        if !has_above:
            ladder_caps.push({"x": lad.x, "z": lad.z + 1.0, "rung_z": lad.z})
    boss_doors = built.boss_doors
    boss_door_locked = false
    boss_door_opened = false
    boss_gate_x = built.boss_doors.length > 0 ? built.boss_doors[0].x : -1
    boss_shutter_fx = {
        "x": boss_gate_x >= 0 ? boss_gate_x + 0.5 : 0,
        "y": 7.0,
        "z": 2.0,
        "model": "nc/boss_shutter",
        "angle": 0,
        "scale": 1.0,
        "visible": boss_gate_x >= 0
    }
    on_ladder = false
    climb_phase = 0
    death_ticks = 0
    pan_ticks = 0
    respawn_ticks = 0
    respawn_beam = {"x": built.spawn.x, "y": 7, "z": built.spawn.z, "model": "nc/teleport_beam", "angle": 0, "scale": 1, "visible": false}
    power_capsule = {"x": built.spawn.x, "y": 7, "z": built.spawn.z - 0.2, "model": "nc/power_capsule", "angle": 0, "scale": 1.15, "visible": false}
    escape_floor = []
    escape_flip_ticks = 0
    escape_ticks = 0
    escape_active = false
    escape_first_person = false
    view_weapon = null
    checkpoints = built.checkpoints
    pickups = built.pickups
    enemies = built.entities
    for e in enemies:
        e.base_model = e.model
        e.charge_ticks = 0
        e.fire_ticks = 0
        e.hurt_ticks = 0
        e.scale = 1.0
        e.angle = 0
        e.dissolve = 0
    shots = []
    enemy_shots = []
    effects = []
    player = {"x": built.spawn.x, "y": 7, "z": built.spawn.z, "angle": 0, "pitch": 0, "vz": 0}
    checkpoint = {"x": built.spawn.x, "z": built.spawn.z}
    facing = 1
    velocity = 0
    grounded = true
    jumps = 0
    jump_held = false
    coyote_ticks = 0
    jump_buffer = 0
    cam_shake = 0
    dash_ticks = 0
    dash_ready = true
    dash_held = false
    prev_w_held = false
    next_w_held = false
    wheel_held = false
    wheel_open = false
    wheel_cooldown = 0
    wheel_last_dir = 0
    wheel_ticks = 0
    cooldown = 0
    invulnerable = 0
    hurt_ticks = 0
    health = max_health
    weapon_energy = 28
    boss_active = false
    boss_defeated_now = false
    boss_defeat_ticks = 0
    victory_ticks = 0
    boss_phase = 0
    boss_clock = 0
    boss_state = "idle"
    boss_state_ticks = 0
    boss_hurt_ticks = 0
    boss_land_ticks = 0
    boss_grounded = true
    boss_entity = {"visible": false, "alive": false, "hp": 0, "max_hp": 1, "dissolve": 0}
    boss_satellites = []
    if built.boss != null:
        boss_entity = built.boss
        boss_entity.vz = 0
        boss_entity.angle = 212
        boss_entity.scale = 1.0
        boss_entity.dissolve = 0
        boss_satellites = [
            {"x": boss_entity.x - 1.1, "y": 7.1, "z": boss_entity.z + 1.1, "model": "nc/boss_pod", "angle": 0, "scale": 0.9, "dissolve": 0, "visible": true},
            {"x": boss_entity.x + 1.1, "y": 6.9, "z": boss_entity.z + 1.1, "model": "nc/boss_pod", "angle": 180, "scale": 0.9, "dissolve": 0, "visible": true},
            {"x": boss_entity.x, "y": 7.25, "z": boss_entity.z + 0.95, "model": "nc/boss_ring", "angle": 0, "scale": 0.85, "dissolve": 0, "visible": true}
        ]
    call set_stage_lights built.spawn, st.light_colors
    victory_item = {"visible": false, "x": player.x, "y": 7, "z": player.z + 2, "model": "nc/victory_orb", "angle": 0, "scale": 1}
    title_scenery = []
    title_monument = {"visible": false}
    select_pedestal = {"visible": false}
    select_boss = {"visible": false}
    avatar = {"x": player.x, "y": 7, "z": player.z, "model": "nc/hero_idle", "angle": 0, "visible": true}
    weapon_model = {"x": player.x + 0.20, "y": 7, "z": player.z + 0.7, "model": "nc/gun_buster", "angle": 0, "visible": true}
    level_map = st.sky
    status = "playing"
    notice_text = st.code + " " + st.name + " // " + st.sector
    notice_ticks = 110
    camera = {"x": max(10, player.x + 4), "y": 19, "z": max(4, player.z + 2.5), "angle": 270, "pitch": 0}
    call play_stage_music st.music
    call sync_weapon_model
    call refresh_ui
volt_return.rune
# Volt Viper's return is the pilot route for the deck encounters.
@Logic/neon_circuit

action setup_volt_return:
    volt_return_props = []
    volt_lane_warning = []
    if current_stage != 0:
        stop when true
    for e in enemies:
        if e.kind == "drone" && floor(e.home_x) == 68:
            e.volt_flank = 1
            e.x = 82.5
            e.y = 7.2
        if e.kind == "turret" && floor(e.home_x) == 58:
            e.volt_lane = true
            e.volt_lane_charge = 0
            e.cd = 0
    for i in range(0, 7):
        local stripe = {"x": 59.5 + i * 2, "y": 2.5, "z": escape_deck_z + 0.02,
            "model": "nc/volt_warning_stripe", "visible": false}
        volt_lane_warning.push(stripe)
        volt_return_props.push(stripe)
    volt_launch_pad = {"x": 42.4, "y": 3.61, "z": escape_deck_z + 0.01, "model": "nc/volt_dash_pad"}
    volt_return_props.push(volt_launch_pad)
    volt_return_props.push({"x": 36.8, "y": 3.62, "z": escape_deck_z + 0.02, "model": "nc/volt_dash_coil"})
    for i in range(0, 10):
        volt_return_props.push({"x": 40.4 - i * 2, "y": 3.62, "z": escape_deck_z + 0.02,
            "model": "nc/volt_dash_chevron"})

action step_volt_flank(e):
    # The drone comes around the right edge of the old platform while the
    # walker holds the main lane. After the approach it uses normal combat.
    if e.volt_flank == 1 && player.x > 74 && player.x <= 93:
        e.volt_flank = 2
    if e.volt_flank == 2:
        e.angle = 0
        call move_on_deck e, 0, 0.16, 0.34
        if e.x >= 86.2:
            e.volt_flank = 3
        stop when true
    if e.volt_flank == 3:
        e.angle = 270
        call move_on_deck e, 270, 0.16, 0.34
        if e.y <= 3.15:
            e.volt_flank = 4
            e.cd = 36

action set_volt_lane_warning(visible):
    for i in range(0, volt_lane_warning.length):
        volt_lane_warning[i].visible = visible
        volt_lane_warning[i].dissolve = (i + floor(escape_ticks / 4)) % 3 == 0 ? 0.28 : 0

action step_volt_lane_turret(e):
    e.angle = 0
    if e.volt_lane_charge > 0:
        e.volt_lane_charge = e.volt_lane_charge - 1
        if e.volt_lane_charge > 0:
            e.model = e.base_model + "_charge"
            call set_volt_lane_warning true
            stop when true
        call set_volt_lane_warning false
        e.cd = 56
        e.fire_ticks = 8
        enemy_shots.push({"x": e.x + 0.55, "y": 2.5, "z": escape_deck_z + 0.32,
            "vx": 0.77, "vy": 0, "life": 19, "model": "nc/volt_lane_pulse", "angle": 0})
        sound.play "nc_volt_lane_fire"
        stop when true
    e.fire_ticks = max(0, e.fire_ticks - 1)
    e.model = e.fire_ticks > 0 ? e.base_model + "_fire" : e.base_model
    e.cd = max(0, e.cd - 1)
    if e.cd == 0 && player.x >= e.x + 2 && player.x < e.x + 13.5 && abs(player.y - 2.5) < 1.85:
        e.volt_lane_charge = 27
        e.model = e.base_model + "_charge"
        call set_volt_lane_warning true
        notice_text = "CHARGING SHOT // JUMP OR STEP OUT OF THE LANE"
        notice_ticks = 47
        sound.play "nc_enemy_charge"

action prime_volt_dash(held, dx):
    volt_dash_ready = !volt_dash_used && player.x > 40.9 && player.x < 44.0 && player.y >= 3.28 && player.y <= 3.70
    if volt_dash_ready:
        if held && dx < -0.25 && player.z < escape_deck_z + 0.25:
            volt_dash_used = true
            volt_dash_ready = false
            volt_dash_ticks = 22
            volt_launch_pad.dissolve = 0.5
            notice_text = "BOOST RAIL ENGAGED"
            notice_ticks = 45
            sound.play "nc_dash"
            stop when true
        notice_text = "BOOST RAIL // MOVE LEFT + DASH (SHIFT/K)"
        notice_ticks = 45

action check_volt_coil:
    if player.x > 36.15 && player.x < 37.55 && player.y > 3.24 && player.y < 3.95 && player.z < escape_deck_z + 0.52 && invulnerable == 0:
        call hurt_player 1
        notice_text = "LIVE COIL // DASH, JUMP OR USE THE MAIN LANE"
        notice_ticks = 60
Site entièrement créé avec Rune-Web