BEYOND REALITY 2027 — Version 2.8 Tactical Field Systems
:root{--glass:rgba(7,15,23,.76);--line:#ffffff2a;--cyan:#9cecff;--muted:#a9bac7}
*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;background:#07121b;color:#fff;font-family:Inter,system-ui,Arial}
canvas{display:block}button{font:inherit;cursor:pointer;border:1px solid #ffffff35;border-radius:12px;padding:11px 14px;background:#102432;color:#fff;font-weight:800;letter-spacing:.04em}
button.primary{background:linear-gradient(110deg,#91edfa,#64b8ff);color:#06121c;border:0}
#hud{position:fixed;inset:0;pointer-events:none}
.glass{background:var(--glass);border:1px solid var(--line);backdrop-filter:blur(12px);border-radius:13px;box-shadow:0 8px 26px #0005}
#brand{position:absolute;top:14px;left:14px;padding:11px 14px;font-size:12px;font-weight:950;letter-spacing:.13em}
#brand small{display:block;color:var(--cyan);font-size:9px;letter-spacing:.2em;margin-top:4px}
#readout{position:absolute;right:14px;top:14px;padding:10px 13px;text-align:right;font-size:10px;line-height:1.8;color:var(--muted)}
#readout b{color:white}
#mission{position:absolute;left:14px;top:82px;padding:11px 13px;width:min(270px,65vw);font-size:11px}
#mission strong{display:block;color:var(--cyan);font-size:9px;letter-spacing:.18em;margin-bottom:5px}
#bossHUD{position:absolute;left:50%;top:14px;transform:translateX(-50%);width:min(360px,42vw);padding:9px 13px;display:none;font-size:9px;letter-spacing:.13em;text-align:center}
#bossHUD strong{display:block;color:#ffb2a4;margin-bottom:6px}
#bossBar{height:8px;border-radius:8px;background:#ffffff24;overflow:hidden}
#bossFill{height:100%;width:100%;background:linear-gradient(90deg,#a52b34,#ff8b65);transition:width .12s linear}
#bossMeta{display:block;color:#d5c3bd;margin-top:4px;font-size:8px}
#nav{min-height:16px}#navArrow{transition:transform .12s linear;text-shadow:0 0 9px #75e5ff88}
.act button{min-width:45px}
#bars{position:absolute;left:14px;bottom:16px;width:190px;padding:11px 12px;font-size:10px}
.barline{display:flex;justify-content:space-between;margin:5px 0 3px;color:#d7e4ec}
.bar{height:6px;background:#ffffff20;border-radius:8px;overflow:hidden}.fill{height:100%;border-radius:8px;background:linear-gradient(90deg,#4dd8bd,#9df4d2);width:100%}
#hint{position:absolute;left:50%;bottom:18px;transform:translateX(-50%);padding:9px 13px;font-size:10px;color:#d7e5ed;white-space:nowrap}
#crosshair{position:absolute;left:50%;top:50%;width:9px;height:9px;border:1px solid #fff;border-radius:50%;transform:translate(-50%,-50%);box-shadow:0 0 8px #8cecff88}
#toast{position:fixed;z-index:4;top:105px;left:50%;transform:translateX(-50%);background:#071725e8;border:1px solid #ffffff30;border-radius:30px;padding:9px 14px;font-size:11px;opacity:0;transition:opacity .2s;pointer-events:none;white-space:nowrap}
#overlay{position:fixed;inset:0;z-index:5;display:grid;place-items:center;background:linear-gradient(125deg,#06111df2,#0b2634d9),radial-gradient(circle at 72% 30%,#28617a,#07111b)}
.card{width:min(92vw,540px);padding:28px;border:1px solid #ffffff2b;border-radius:22px;background:#06111de8;box-shadow:0 25px 90px #000a}
.kicker{font-size:10px;letter-spacing:.25em;color:var(--cyan);font-weight:900}
h1{font-size:clamp(34px,8vw,58px);line-height:.94;letter-spacing:-.055em;margin:13px 0}
.desc{font-size:13px;line-height:1.65;color:#b8c9d5;margin:12px 0 20px}
.controls{font-size:10px;line-height:1.9;color:#8fa5b4;margin-top:18px}
#mobile{position:fixed;left:14px;right:14px;bottom:16px;display:none;justify-content:space-between;align-items:end;pointer-events:none}
.pad{display:grid;grid-template-columns:repeat(3,43px);grid-template-rows:repeat(2,42px);gap:4px;pointer-events:auto}
.pad button,.act button{padding:0;background:#071725d9;border:1px solid #ffffff55;touch-action:none}
.act{display:grid;grid-template-columns:repeat(3,44px);grid-template-rows:repeat(3,44px);gap:5px;pointer-events:auto}.act button{width:44px;height:44px;min-width:0;padding:0;font-size:8px}
#topactions{position:absolute;right:14px;top:105px;display:flex;gap:6px;pointer-events:auto}
#topactions button{font-size:9px;padding:8px 10px;background:#071725cc}
@media(pointer:coarse){#bossHUD{top:14px;width:min(260px,52vw)}#mobile{display:flex}#hint{bottom:130px;white-space:normal;text-align:center;width:90%}#bars{bottom:130px;width:160px}#topactions{top:105px;right:12px;flex-direction:column}#mission{top:82px}#vehicleHUD{top:230px!important;right:12px!important}}
#damageFlash{position:fixed;inset:0;z-index:3;pointer-events:none;opacity:0;background:radial-gradient(ellipse at center,transparent 42%,rgba(150,14,20,.52) 100%);transition:opacity .08s linear}
#mapPanel{position:fixed;right:14px;bottom:54px;z-index:2;padding:7px;border-radius:14px;pointer-events:none;width:166px}
#mapPanel strong{display:block;color:var(–cyan);font-size:8px;letter-spacing:.18em;margin:0 0 5px 3px}
#tacticalMap{display:block;width:150px;height:150px;border-radius:9px;background:rgba(4,13,20,.88);border:1px solid #ffffff35}
@media(pointer:coarse){#mapPanel{right:12px;bottom:170px;width:128px;padding:5px}#mapPanel strong{font-size:7px;margin-bottom:3px}#tacticalMap{width:116px;height:116px}}
NEXT-GENERATION OPEN WORLD • VERSION 2.8 • 50-LEVEL CAMPAIGN
BEYOND
REALITY 2027
Version 2.8 campaign build. Fight through 50 escalating operations, five signal-relay operations and five unique boss encounters. Scout, rifleman and heavy enemy classes now use different combat profiles. Your progress is saved locally.
START SURVIVAL
NEW OPERATION
QUALITY: HIGH
PC: WASD move / drive · Mouse look · Hold click fire · E interact / enter / exit · F refuel · Shift sprint · C crouch stealth · H vehicle repair at station · Space jump / brake · V camera · R reload · Esc pause · Boss encounters at Levels 10 / 20 / 30 / 40 / 50 · Suppressed enemies may seek cover or flank · Next Level after extraction
Mobile: movement / action buttons · USE near jeep to drive · drag scene to look
BEYOND REALITY 2027 // VERSION 2.8 TACTICAL FIELD SYSTEMS & WEAPON SYSTEMS
TIME 08:30
WEATHER CLEAR
CAMERA THIRD PERSON
AMMO 18 / 72
BOSS TARGETBOSS INTEGRITY · 100%
LEVEL 01 / 50 • FIRST CONTACTCollect 3 supply crates, then clear the hostile patrol (0/3)SIGNAL RELAY · OFFLINE▲OBJECTIVE · SEARCH THE AREA
HEALTH100
STAMINA100
HUNGER100
CROUCH · LOW PROFILE
NOT SAVED
JEEP 0 KM/H
FUEL 100%
CONDITION 100%
LIGHTS AUTO
WASD drive · E exit · H repair · L lights
CAMERA: VRELOAD: RPAUSE: ESCNEXT LEVEL ▶
50-level campaign · Secure supplies · Neutralize hostiles · Activate relays on special levels · Extract
TACTICAL MAP · 110 MCYAN SUPPLY · RED HOSTILE · AMBER RELAY
▲
◀▼▶
CAMJUMPFIRERUNUSEFUELCROUCHFIXLIGHTS
import * as THREE from 'three';
const coarse=matchMedia('(pointer:coarse)').matches;const scene=new THREE.Scene();scene.background=new THREE.Color(0x9ac8d8);scene.fog=new THREE.FogExp2(0x9ac8d8,.0022);
const camera=new THREE.PerspectiveCamera(70,innerWidth/innerHeight,.1,1000);
const renderer=new THREE.WebGLRenderer({antialias:!coarse,powerPreference:'high-performance'});
renderer.setSize(innerWidth,innerHeight);renderer.setPixelRatio(Math.min(devicePixelRatio,coarse?1.25:1.6));renderer.shadowMap.enabled=!coarse;renderer.shadowMap.type=THREE.PCFSoftShadowMap;renderer.toneMapping=THREE.ACESFilmicToneMapping;renderer.toneMappingExposure=1.05;document.body.appendChild(renderer.domElement);
scene.add(new THREE.HemisphereLight(0xccecff,0x3d4936,1.35));
const sun=new THREE.DirectionalLight(0xffe2b5,2.8);sun.position.set(-70,100,40);sun.castShadow=true;sun.shadow.mapSize.set(coarse?512:1024,coarse?512:1024);sun.shadow.camera.left=-100;sun.shadow.camera.right=100;sun.shadow.camera.top=100;sun.shadow.camera.bottom=-100;scene.add(sun);scene.add(camera); // Camera is in the scene so its first-person weapon rig is rendered.
const M=(c,r=1,m=0)=>new THREE.MeshStandardMaterial({color:c,roughness:r,metalness:m});
const groundMat=M(0x536c49),trunkMat=M(0x493a2c),leafMat=M(0x244a35),leaf2=M(0x3c6545);
const groundGeo=new THREE.PlaneGeometry(700,700,90,90),p=groundGeo.attributes.position;
for(let i=0;i((seed=(seed*1664525+1013904223)>>>0)/4294967296);
const staticColliders=[],treeColliders=[];
// Instanced forest: preserve the same low-poly tree art while reducing hundreds of draw calls.
const TREE_COUNT=190,treeDummy=new THREE.Object3D();
const treeTrunks=new THREE.InstancedMesh(new THREE.CylinderGeometry(.18,.32,3.8,7),trunkMat,TREE_COUNT);
const treeCanopies=[
new THREE.InstancedMesh(new THREE.ConeGeometry(2,3.8,7),leafMat,TREE_COUNT),
new THREE.InstancedMesh(new THREE.ConeGeometry(1.75,3.8,7),leaf2,TREE_COUNT),
new THREE.InstancedMesh(new THREE.ConeGeometry(1.5,3.8,7),leafMat,TREE_COUNT)
];
for(const inst of [treeTrunks,...treeCanopies]){inst.castShadow=!coarse;inst.receiveShadow=false;scene.add(inst)}
for(let i=0;i<TREE_COUNT;i++){
let x=(rand()-.5)*300,z=(rand()-.5)*300,s=.65+rand()*.8;
if(Math.hypot(x,z)<=17){x+=24;z+=18}
treeColliders.push({x,z,r:.42*s});
treeDummy.position.set(x,1.9*s,z);treeDummy.scale.setScalar(s);treeDummy.rotation.set(0,0,0);treeDummy.updateMatrix();treeTrunks.setMatrixAt(i,treeDummy.matrix);
for(let layer=0;layer<3;layer++){treeDummy.position.set(x,(3.5+layer*1.05)*s,z);treeDummy.scale.setScalar(s);treeDummy.updateMatrix();treeCanopies[layer].setMatrixAt(i,treeDummy.matrix)}
}
for(const inst of [treeTrunks,...treeCanopies]){inst.instanceMatrix.needsUpdate=true;inst.computeBoundingSphere()}
function box(x,y,z,w,h,d,color,material=null){let o=new THREE.Mesh(new THREE.BoxGeometry(w,h,d),material||M(color));o.position.set(x,y,z);o.castShadow=true;o.receiveShadow=true;scene.add(o);return o}
function building(x,z,w,h,d,c){staticColliders.push({x,z,w,d});box(x,h/2,z,w,h,d,c);box(x,h+.13,z,w*1.04,.3,d*1.04,0x303b43);for(let yy=2;yy<h-1;yy+=2.8)for(let xx=-w/2+1;xx-105;z-=22){let pole= new THREE.Group();let stem=new THREE.Mesh(new THREE.CylinderGeometry(.09,.14,6,6),M(0x454b49));stem.position.y=3;pole.add(stem);let arm=new THREE.Mesh(new THREE.BoxGeometry(1.8,.12,.12),M(0x454b49));arm.position.set(.7,5.6,0);pole.add(arm);let lamp=new THREE.Mesh(new THREE.BoxGeometry(.45,.18,.38),M(0xb8c7b9,.4));lamp.position.set(1.35,5.48,0);pole.add(lamp);pole.position.set(-9,0,z);scene.add(pole)}
// Functional field fuel point and late-mission extraction beacon.
const fuelPoint=new THREE.Vector3(24,0,8);staticColliders.push({x:fuelPoint.x,z:fuelPoint.z,w:1.9,d:1.9});
const fuelStation=new THREE.Group();fuelStation.position.copy(fuelPoint);
const pumpBase=new THREE.Mesh(new THREE.BoxGeometry(1.25,.35,1.15),M(0x303a3b));pumpBase.position.y=.18;fuelStation.add(pumpBase);
const pumpBody=new THREE.Mesh(new THREE.BoxGeometry(.82,1.75,.72),M(0xd6d9d3,.55));pumpBody.position.y=1.2;pumpBody.castShadow=true;fuelStation.add(pumpBody);
const pumpFace=new THREE.Mesh(new THREE.BoxGeometry(.57,.42,.035),new THREE.MeshStandardMaterial({color:0x10252b,emissive:0x1c7180,emissiveIntensity:.75}));pumpFace.position.set(0,1.55,-.38);fuelStation.add(pumpFace);
const pumpHose=new THREE.Mesh(new THREE.CylinderGeometry(.045,.045,.9,8),M(0x161b1c));pumpHose.position.set(.48,.92,.1);pumpHose.rotation.z=-.45;fuelStation.add(pumpHose);
const pumpLight=new THREE.PointLight(0x63e5c5,1.3,12);pumpLight.position.set(0,2.25,0);fuelStation.add(pumpLight);scene.add(fuelStation);
const extractionPoint=new THREE.Vector3(0,0,-112);const extractBeacon=new THREE.Group();extractBeacon.position.copy(extractionPoint);
const extractRing=new THREE.Mesh(new THREE.CylinderGeometry(5.4,5.4,.12,32),new THREE.MeshStandardMaterial({color:0x39d9ed,emissive:0x126c85,emissiveIntensity:.8,transparent:true,opacity:.48}));extractRing.position.y=.08;extractBeacon.add(extractRing);
const extractPillar=new THREE.Mesh(new THREE.CylinderGeometry(.18,.42,7,10),new THREE.MeshStandardMaterial({color:0x9cecff,emissive:0x28bcd8,emissiveIntensity:1.8,transparent:true,opacity:.88}));extractPillar.position.y=3.5;extractBeacon.add(extractPillar);
const extractLight=new THREE.PointLight(0x55dff5,2.8,34);extractLight.position.y=5;extractBeacon.add(extractLight);extractBeacon.visible=false;scene.add(extractBeacon);
// Optional signal-relay objective used by five special campaign operations.
const relayGroup=new THREE.Group();const relayBase=new THREE.Mesh(new THREE.CylinderGeometry(1.35,1.6,.5,8),M(0x39474a,.8,.35));relayBase.position.y=.25;relayGroup.add(relayBase);const relayMast=new THREE.Mesh(new THREE.CylinderGeometry(.13,.2,4.8,8),M(0x657579,.55,.55));relayMast.position.y=2.7;relayGroup.add(relayMast);const relayDish=new THREE.Mesh(new THREE.SphereGeometry(.95,16,10,0,Math.PI*2,0,Math.PI*.55),M(0x7c8e91,.38,.7));relayDish.position.set(0,4.65,-.12);relayDish.rotation.x=-.28;relayGroup.add(relayDish);const relayCoreMat=new THREE.MeshStandardMaterial({color:0xffb85c,emissive:0xff8b35,emissiveIntensity:1.8,metalness:.3,roughness:.25});const relayCore=new THREE.Mesh(new THREE.OctahedronGeometry(.42,1),relayCoreMat);relayCore.position.set(0,3.1,-.18);relayGroup.add(relayCore);const relayRing=new THREE.Mesh(new THREE.TorusGeometry(1.5,.055,8,36),new THREE.MeshStandardMaterial({color:0xffc16b,emissive:0xff8b35,emissiveIntensity:1.1,transparent:true,opacity:.8}));relayRing.position.y=3.1;relayGroup.add(relayRing);const relayLight=new THREE.PointLight(0xffa34f,1.8,22);relayLight.position.set(0,3.2,0);relayGroup.add(relayLight);relayGroup.visible=false;scene.add(relayGroup);let relayPosition=new THREE.Vector3(),relayRequired=false,relayActive=true;
// player rig
const player=new THREE.Group();const torso=new THREE.Mesh(new THREE.CapsuleGeometry(.43,.95,5,10),M(0x263d4b,.8));torso.position.y=1.25;torso.castShadow=true;player.add(torso);const head=new THREE.Mesh(new THREE.SphereGeometry(.31,16,12),M(0xc18f70));head.position.y=2.15;player.add(head);const pack=new THREE.Mesh(new THREE.BoxGeometry(.58,.72,.23),M(0x26302c));pack.position.set(0,1.35,.43);player.add(pack);player.position.set(0,0,8);scene.add(player);
const limbMat=M(0x263d4b,.85),bootMat=M(0x171e21,.95);function makeLimb(x,y,z,r,len,mat){let pivot=new THREE.Group();pivot.position.set(x,y,z);let mesh=new THREE.Mesh(new THREE.CapsuleGeometry(r,len,4,8),mat);mesh.position.y=-len*.28;mesh.castSha