diff --git a/website/scripts/portal-navigation.mjs b/website/scripts/portal-navigation.mjs
index 53193f75..94a0618b 100644
--- a/website/scripts/portal-navigation.mjs
+++ b/website/scripts/portal-navigation.mjs
@@ -39,7 +39,7 @@ export function pageContextFor(value,links=PORTAL_LINKS){
const shortNames={'Staff roster':'Roster','Support center':'Support','Account center':'CP','Clan center':'Clans','Manual/wiki':'Dunopedia'};const link=links.find(x=>x[0]===name||x[0]===shortNames[name]);
return !link?{label:typeof document!=='undefined'?(document.querySelector('h1')?.textContent.trim()||'Field guide'):'Field guide',icon:'nav-manual-full-v2.webp'}:{label:name,icon:link[2].replace('-v2.webp','-full-v2.webp')};
}
-export const CONTEXT_SCRIPT=`(()=>{if(window.top!==window.self){document.documentElement.classList.add('dune-embedded');return;}const links=${JSON.stringify(PORTAL_LINKS)},choose=${pageContextFor.toString()};let welcomeName='traveller';fetch('https://cp.dunerealms.com/api/welcome',{credentials:'include',cache:'no-store'}).then(r=>r.ok?r.json():null).then(data=>{if(typeof data?.username==='string'&&data.username.length<=32){welcomeName=data.username;render();}}).catch(()=>{});function render(){if(location.hostname==='support.dunerealms.com')document.body.classList.add('dune-support');const item=choose(location.href,links);let worlds=document.querySelector('.world-status');if(!worlds){worlds=document.createElement('aside');worlds.className='world-status';worlds.setAttribute('aria-label','Live server status');const heading=document.createElement('h2');heading.textContent='Worlds online';const list=document.createElement('ul');list.className='world-status-list';const note=document.createElement('p');note.className='world-status-note';note.textContent='Checking the caravan network…';worlds.append(heading,list,note);}worlds.remove();document.querySelector('.dune-page-marker')?.remove();if(!item)return;const header=document.querySelector('.dune-site-header');if(!header)return;const panel=document.createElement('section');panel.className='dune-page-marker';panel.setAttribute('aria-label','Welcome to '+item.label);const image=document.createElement('img');image.src='https://www.dunerealms.com/assets/'+item.icon;image.alt='';image.width=160;image.height=160;const text=document.createElement('div'),small=document.createElement('small'),title=document.createElement('p');small.textContent='THE CARAVAN GUIDE';title.textContent='Welcome, '+welcomeName+', to the '+item.label+'.';const lore=document.createElement('small');const quotes={DuneGit:['Every invention begins with a mark in the caravan ledger.','Share your craft; a good idea can travel beyond the dunes.','Build with care, and leave a trail others can follow.'],Webmail:['A sealed message carries your voice across the dunes.'],Home:['The caravan gathers here; the latest word travels with the wind.','Rest beneath our banners and hear what stirs beyond the dunes.','Every journey begins with news from the road.'],Boards:['A shared tale can light the way for another traveller.','Trade your stories beneath the awning; every voice has a place.','Listen well: the quietest traveller may know the safest passage.'],Exchange:['Weigh your Dunemarks carefully; a fair bargain outlasts a fortune.','Count the coin, inspect the wares, and leave with honour.','Even in a sea of sand, a good bargain is worth finding.'],Discord:['Tune to the caravan frequency; familiar voices shorten the crossing.','Across the dunes, a friendly voice is its own shelter.','The signal is clear. Join the conversation beyond the horizon.'],'Manual/wiki':['A well-read field guide saves more water than a hurried journey.','Learn the trail before you challenge the dunes.','Turn the page; knowledge is the lightest provision you can carry.'],'Staff roster':['A watchful crew keeps the caravan moving.','Every banner is stronger with a trusted hand behind it.','Meet the keepers of the caravan and the worlds beyond.'],'Support center':['Set down your burden; the caravan clerks are here to help.','A troubled journey deserves a patient listener.','Bring us the details, and we will help find the next step.'],'Account center':['Your journey has a place in the caravan ledger.','Keep your records in order and your next crossing within reach.','Behind every banner stands a traveller with a story of their own.'],'Clan center':['Raise your banner; the strongest caravan travels together.','Choose your companions well, and no horizon is too distant.','A shared purpose binds a clan more firmly than any crest.']};const choices=quotes[item.label]||['May your water last and your journey bring good fortune.'];const key=location.hostname+location.pathname+location.hash;let seed=0;for(const character of key)seed=(seed*31+character.charCodeAt(0))>>>0;lore.textContent=choices[seed%choices.length];text.append(lore);const npc=document.createElement('img');npc.src='https://www.dunerealms.com/assets/nav-account-v2.webp';npc.alt='Caravan guide';npc.style.cssText='width:48px;height:48px;object-fit:contain';text.prepend(npc);text.append(small,title);if(worlds&&!worlds.querySelector('.dune-join-box')){const join=document.createElement('div');join.className='dune-join-box';const address=document.createElement('code');address.textContent='play.dunerealms.com';const button=document.createElement('button');button.type='button';button.textContent='Join now';button.setAttribute('aria-label','Join now: copy Minecraft server address');const help=document.createElement('p');help.className='dune-join-help';help.textContent='Java & Bedrock · copy the server address';help.setAttribute('role','status');button.addEventListener('click',async()=>{try{await navigator.clipboard.writeText('play.dunerealms.com');button.textContent='Copied ✓';help.textContent='Address copied · choose Add Server in Java or Bedrock.';}catch{help.textContent='In Minecraft Java, add a server with address play.dunerealms.com.';}});const ports=document.createElement('div');ports.className='dune-join-ports';for(const [edition,port]of [['Bedrock','19132'],['Java','25565']]){const box=document.createElement('span'),label=document.createElement('small'),value=document.createElement('code');label.textContent=edition+' port';value.textContent=port;const icon=document.createElement('img');icon.className='edition-icon';icon.alt='';icon.width=12;icon.height=12;icon.src='https://www.dunerealms.com/assets/edition-'+(edition==='Java'?'java':'bedrock')+'.svg';box.append(icon,label,value);ports.append(box);}join.append(address,button,ports,help);worlds.append(join);}if(worlds&&!worlds.querySelector('.world-network-art')){worlds.querySelector('.eyebrow')?.remove();const plate=document.createElement('img');plate.className='world-network-art';plate.src='https://www.dunerealms.com/assets/vaerkring-network-title-v1.webp';plate.alt='Vaerkring Network';plate.width=280;plate.height=80;worlds.prepend(plate);}panel.append(image,text);if(worlds)panel.append(worlds);header.after(panel);if(!document.querySelector('.dune-shared-footer')){const old=document.querySelector('body>footer,.site-footer'),foot=old||document.createElement('footer');foot.className='dune-shared-footer';foot.replaceChildren();const brand=document.createElement('a');brand.href='https://www.dunerealms.com/';brand.textContent='✦ dunerealms.com';brand.className='dune-footer-brand';const links=document.createElement('nav');links.setAttribute('aria-label','Footer navigation');for(const [label,href]of [['Manual/wiki','https://wiki.dunerealms.com/'],['Support','https://support.dunerealms.com/'],['Account','https://cp.dunerealms.com/'],['DuneGit','https://www.dunerealms.com/git/unimatrix/MC'],['Disclaimer & contact','https://www.dunerealms.com/wiki.html']]){const a=document.createElement('a');a.textContent=label;a.href=href;links.append(a);}const note=document.createElement('small');note.textContent='Independent fan project · Not affiliated with Dune rights holders, Mojang or Microsoft.';foot.append(brand,links);const host=document.createElement('a');host.className='dune-hosting-badge';host.href='https://www.hetzner.com/';host.target='_blank';host.rel='noopener noreferrer';host.setAttribute('aria-label','Powered by Hetzner — visit Hetzner');const server=document.createElement('span');server.className='dune-hosting-art';server.textContent='▤';server.setAttribute('aria-hidden','true');const hostText=document.createElement('span');const powered=document.createElement('span');powered.textContent='POWERED BY';const hostLogo=document.createElement('img');hostLogo.src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxODEuNDIgMjIuMjQiPjxkZWZzPjxzdHlsZT4uY2xzLTF7ZmlsbDojZDUwYzJkO308L3N0eWxlPjwvZGVmcz48dGl0bGU+RWxlbWVudCAxPC90aXRsZT48ZyBpZD0iRWJlbmVfMiIgZGF0YS1uYW1lPSJFYmVuZSAyIj48ZyBpZD0iTG9nb19QdXIiIGRhdGEtbmFtZT0iTG9nbyBQdXIiPjxnIGlkPSJMb2dvIj48ZyBpZD0iSEVUWk5FUiI+PHBhdGggY2xhc3M9ImNscy0xIiBkPSJNMTc0LjA1LDE0LjEyYTEwLjIyLDEwLjIyLDAsMCwwLDQuNTMtMmwwLDBhNi4xNSw2LjE1LDAsMCwwLDEuNjgtNC43OCw3LjcxLDcuNzEsMCwwLDAtMS4xNC00LjA2QTYuNDcsNi40NywwLDAsMCwxNzMuODQuMDlsLTEuMDksMEwxNzAuMiwwLDE1OC42NiwwYy0uNywwLTEsLjI5LTEsMVYyMS4yMmMwLC43LjI5LDEsMSwxaDNjLjcsMCwxLS4yOSwxLTF2LTYuN2gzLjY3YTMuNDgsMy40OCwwLDAsMSwyLjE3LjkxbDUuODIsNS44NWEzLjA4LDMuMDgsMCwwLDAsMiwuOTJoNC40N2MuNywwLC44Ny0uNDEuMzgtLjkxWm0tLjc2LTQuM0gxNjIuNjRWNC43MmgxMC42NWEyLjEzLDIuMTMsMCwwLDEsMS44NywyLjE1di43OUEyLjE0LDIuMT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43MSwwLTEsLjI4LTEsMVYzLjc2YzAsLjcuMjgsMSwxLDFoNy43OFYyMS4yNGMwLC43LjI5LDEsMSwxaDMuM2MuNywwLDEtLjI5LDEtMVY0Ljc1aDcuNTdjLjcsMCwxLS4yOSwxLTFWMUM3NS4xOC4zMiw3NC44OSwwLDc0LjE5LDBaIi8+PHBhdGggY2xhc3M9ImNscy0xIiBkPSJNNDcuOTEsMTcuNTJIMzEuNDFWMTMuMzVINDQuNmMuNywwLDEtLjI5LDEtMVY5LjkyYzAtLjctLjI4LTEtMS0xSDMxLjQxVjQuNzZoMTYuNWMuNywwLDEtLjI5LDEtMVYxYzAtLjctLjI5LTEtMS0xSDI3LjMzYy0uNywwLTEsLjI5LTEsMVYyMS4yNGMwLC43LjI5LDEsMSwxSDQ3LjkxYy43LDAsMS0uMjksMS0xVjE4LjUxQzQ4LjksMTcuODEsNDguNjEsMTcuNTIsNDcuOTEsMTcuNTJaIi8+PHBhdGggY2xhc3M9ImNscy0xIiBkPSJNMjEuNjMsMEgxOC41MmMtLjcsMC0xLC4yOS0xLDFWOC44N0g1LjEzVjFjMC0uNy0uMjktMS0xLTFIMUMuMjksMCwwLC4yOSwwLDFWMjEuMjVjMCwuNzEuMjksMSwxLDFINC4xM2MuNywwLDEtLjI4LDEtMXYtOGgxMi40djhjMCwuNy4yOSwxLDEsMWgzLjExYy43LDAsMS0uMjksMS0xVjFDMjIuNjIuMzIsMjIuMzMsMCwyMS42MywwWiIvPjwvZz48L2c+PC9nPjwvZz48L3N2Zz4=";hostLogo.alt='Hetzner';hostLogo.width=120;hostLogo.height=20;hostText.append(powered,hostLogo);host.append(server,hostText);host.title='Hosting infrastructure · Logo: Hetzner Online GmbH';foot.append(host);foot.append(note);const legal=document.querySelector('.legal-notice');if(legal){const details=document.createElement('details'),summary=document.createElement('summary');summary.textContent='Unofficial fan project';details.className='dune-footer-legal';details.append(summary,legal);foot.append(details);}if(['www.dunerealms.com','dunerealms.com'].includes(location.hostname)&&['/','/index.html'].includes(location.pathname)){const box=document.createElement('div');box.className='dune-footer-parental';const heading=document.createElement('strong');heading.textContent='Parents & guardians';const copy=document.createElement('span');copy.textContent='Parental consent or a child’s account-data request? Contact our support team.';const link=document.createElement('a');link.href='https://support.dunerealms.com/open.php';link.textContent='Parental help →';box.append(heading,copy,link);foot.append(box);}if(!old)document.body.append(foot);}const pin=()=>document.documentElement.style.setProperty('--dune-nav-height',header.getBoundingClientRect().height+'px');pin();if(!header.dataset.pinObserved){new ResizeObserver(pin).observe(header);header.dataset.pinObserved='1';}}render();async function refreshWorlds(){try{const response=await fetch('https://cp.dunerealms.com/api/worlds',{cache:'no-store',credentials:'omit',signal:AbortSignal.timeout(7000)});if(!response.ok)throw Error();const data=await response.json(),panel=document.querySelector('.dune-page-marker .world-status');if(!panel)return;const list=panel.querySelector('.world-status-list');list.replaceChildren();const glyphs={Arrakduin:'serevan',Kaladam:'pelareth',Giedermark:'varkesh',Kaiterhof:'orivane','Sigmadraken IV':'nivareth'};list.setAttribute('role','table');list.setAttribute('aria-label','World and connection status');for(const server of data.servers){const row=document.createElement('li'),name=document.createElement('span'),state=document.createElement('span'),icon=document.createElement('img');const display=server.name==='Velocity'?'Proxi':server.name;row.setAttribute('role','row');name.setAttribute('role','cell');name.className='world-name';name.title=display;icon.alt='';icon.width=14;icon.height=14;icon.src=glyphs[server.name]?'https://www.dunerealms.com/assets/planet-glyphs/'+glyphs[server.name]+'.svg':server.name==='Velocity'?'https://www.dunerealms.com/assets/network-proxy.svg':'https://www.dunerealms.com/assets/nav-home-v2.webp';name.append(icon,document.createTextNode(display));const status=server.state==='online'?'Online':server.state==='offline'?'Offline':'Unknown';state.setAttribute('role','cell');state.setAttribute('aria-label',status);state.title=status;state.className='world-state traffic-light '+server.state;for(const color of ['red','amber','green']){const lamp=document.createElement('i');lamp.className='lamp-'+color;lamp.setAttribute('aria-hidden','true');state.append(lamp);}row.append(name,state);list.append(row);}panel.querySelector('.world-status-note').textContent=data.available?'Live check · updates every 30s':'Status check unavailable';}catch{const note=document.querySelector('.dune-page-marker .world-status-note');if(note)note.textContent='Status check unavailable · retrying';}}refreshWorlds();setInterval(()=>{if(!document.hidden)refreshWorlds();},30000);addEventListener('hashchange',()=>{render();refreshWorlds();});})();`;
+export const CONTEXT_SCRIPT=`(()=>{if(window.top!==window.self){document.documentElement.classList.add('dune-embedded');return;}const links=${JSON.stringify(PORTAL_LINKS)},choose=${pageContextFor.toString()};let welcomeName='traveller';fetch('https://cp.dunerealms.com/api/welcome',{credentials:'include',cache:'no-store'}).then(r=>r.ok?r.json():null).then(data=>{if(typeof data?.username==='string'&&data.username.length<=32){welcomeName=data.username;render();}}).catch(()=>{});function render(){if(location.hostname==='support.dunerealms.com')document.body.classList.add('dune-support');const item=choose(location.href,links);let worlds=document.querySelector('.world-status');if(!worlds){worlds=document.createElement('aside');worlds.className='world-status';worlds.setAttribute('aria-label','Live server status');const heading=document.createElement('h2');heading.textContent='Worlds online';const list=document.createElement('ul');list.className='world-status-list';const note=document.createElement('p');note.className='world-status-note';note.textContent='Checking the caravan network…';worlds.append(heading,list,note);}worlds.remove();document.querySelector('.dune-page-marker')?.remove();if(!item)return;const header=document.querySelector('.dune-site-header');if(!header)return;const panel=document.createElement('section');panel.className='dune-page-marker';panel.setAttribute('aria-label','Welcome to '+item.label);const image=document.createElement('img');image.src='https://www.dunerealms.com/assets/'+item.icon;image.alt='';image.width=160;image.height=160;const text=document.createElement('div'),small=document.createElement('small'),title=document.createElement('p');small.textContent='THE CARAVAN GUIDE';title.textContent='Welcome, '+welcomeName+', to the '+item.label+'.';const lore=document.createElement('small');const quotes={DuneGit:['Every invention begins with a mark in the caravan ledger.','Share your craft; a good idea can travel beyond the dunes.','Build with care, and leave a trail others can follow.'],Webmail:['A sealed message carries your voice across the dunes.'],Home:['The caravan gathers here; the latest word travels with the wind.','Rest beneath our banners and hear what stirs beyond the dunes.','Every journey begins with news from the road.'],Boards:['A shared tale can light the way for another traveller.','Trade your stories beneath the awning; every voice has a place.','Listen well: the quietest traveller may know the safest passage.'],Exchange:['Weigh your Dunemarks carefully; a fair bargain outlasts a fortune.','Count the coin, inspect the wares, and leave with honour.','Even in a sea of sand, a good bargain is worth finding.'],Discord:['Tune to the caravan frequency; familiar voices shorten the crossing.','Across the dunes, a friendly voice is its own shelter.','The signal is clear. Join the conversation beyond the horizon.'],'Manual/wiki':['A well-read field guide saves more water than a hurried journey.','Learn the trail before you challenge the dunes.','Turn the page; knowledge is the lightest provision you can carry.'],'Staff roster':['A watchful crew keeps the caravan moving.','Every banner is stronger with a trusted hand behind it.','Meet the keepers of the caravan and the worlds beyond.'],'Support center':['Set down your burden; the caravan clerks are here to help.','A troubled journey deserves a patient listener.','Bring us the details, and we will help find the next step.'],'Account center':['Your journey has a place in the caravan ledger.','Keep your records in order and your next crossing within reach.','Behind every banner stands a traveller with a story of their own.'],'Clan center':['Raise your banner; the strongest caravan travels together.','Choose your companions well, and no horizon is too distant.','A shared purpose binds a clan more firmly than any crest.']};const choices=quotes[item.label]||['May your water last and your journey bring good fortune.'];const key=location.hostname+location.pathname+location.hash;let seed=0;for(const character of key)seed=(seed*31+character.charCodeAt(0))>>>0;lore.textContent=choices[seed%choices.length];text.append(lore);const npc=document.createElement('img');npc.src='https://www.dunerealms.com/assets/nav-account-v2.webp';npc.alt='Caravan guide';npc.style.cssText='width:48px;height:48px;object-fit:contain';text.prepend(npc);text.append(small,title);if(worlds&&!worlds.querySelector('.dune-join-box')){const join=document.createElement('div');join.className='dune-join-box';const address=document.createElement('code');address.textContent='play.dunerealms.com';const button=document.createElement('button');button.type='button';button.textContent='Join now';button.setAttribute('aria-label','Join now: copy Minecraft server address');const help=document.createElement('p');help.className='dune-join-help';help.textContent='Java & Bedrock · copy the server address';help.setAttribute('role','status');button.addEventListener('click',async()=>{try{await navigator.clipboard.writeText('play.dunerealms.com');button.textContent='Copied ✓';help.textContent='Address copied · choose Add Server in Java or Bedrock.';}catch{help.textContent='In Minecraft Java, add a server with address play.dunerealms.com.';}});const ports=document.createElement('div');ports.className='dune-join-ports';for(const [edition,port]of [['Bedrock','19132'],['Java','25565']]){const box=document.createElement('span'),label=document.createElement('small'),value=document.createElement('code');label.textContent=edition+' port';value.textContent=port;const icon=document.createElement('img');icon.className='edition-icon';icon.alt='';icon.width=12;icon.height=12;icon.src='https://www.dunerealms.com/assets/edition-'+(edition==='Java'?'java':'bedrock')+'.svg';box.append(icon,label,value);ports.append(box);}join.append(address,button,ports,help);worlds.append(join);}if(worlds&&!worlds.querySelector('.world-network-art')){worlds.querySelector('.eyebrow')?.remove();const plate=document.createElement('img');plate.className='world-network-art';plate.src='https://www.dunerealms.com/assets/vaerkring-network-title-v1.webp';plate.alt='Vaerkring Network';plate.width=280;plate.height=80;worlds.prepend(plate);}panel.append(image,text);if(worlds)panel.append(worlds);header.after(panel);if(!document.querySelector('.dune-shared-footer')){const old=document.querySelector('body>footer,.site-footer'),foot=old||document.createElement('footer');foot.className='dune-shared-footer';foot.replaceChildren();const brand=document.createElement('a');brand.href='https://www.dunerealms.com/';brand.textContent='✦ dunerealms.com';brand.className='dune-footer-brand';const links=document.createElement('nav');links.setAttribute('aria-label','Footer navigation');for(const [label,href]of [['Manual/wiki','https://wiki.dunerealms.com/'],['Support','https://support.dunerealms.com/'],['Account','https://cp.dunerealms.com/'],['DuneGit','https://www.dunerealms.com/git/unimatrix/MC'],['Disclaimer & contact','https://www.dunerealms.com/wiki.html']]){const a=document.createElement('a');a.textContent=label;a.href=href;links.append(a);}const note=document.createElement('small');note.textContent='Independent fan project · Not affiliated with Dune rights holders, Mojang or Microsoft.';foot.append(brand,links);const host=document.createElement('a');host.className='dune-hosting-badge';host.href='https://www.hetzner.com/';host.target='_blank';host.rel='noopener noreferrer';host.setAttribute('aria-label','Powered by Hetzner — visit Hetzner');const server=document.createElement('span');server.className='dune-hosting-art';server.textContent='▤';server.setAttribute('aria-hidden','true');const hostText=document.createElement('span');const powered=document.createElement('span');powered.textContent='POWERED BY';const hostLogo=document.createElement('img');hostLog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EsMTcuNTJIMzEuNDFWMTMuMzVINDQuNmMuNywwLDEtLjI5LDEtMVY5LjkyYzAtLjctLjI4LTEtMS0xSDMxLjQxVjQuNzZoMTYuNWMuNywwLDEtLjI5LDEtMVYxYzAtLjctLjI5LTEtMS0xSDI3LjMzYy0uNywwLTEsLjI5LTEsMVYyMS4yNGMwLC43LjI5LDEsMSwxSDQ3LjkxYy43LDAsMS0uMjksMS0xVjE4LjUxQzQ4LjksMTcuODEsNDguNjEsMTcuNTIsNDcuOTEsMTcuNTJaIi8+PHBhdGggY2xhc3M9ImNscy0xIiBkPSJNMjEuNjMsMEgxOC41MmMtLjcsMC0xLC4yOS0xLDFWOC44N0g1LjEzVjFjMC0uNy0uMjktMS0xLTFIMUMuMjksMCwwLC4yOSwwLDFWMjEuMjVjMCwuNzEuMjksMSwxLDFINC4xM2MuNywwLDEtLjI4LDEtMXYtOGgxMi40djhjMCwuNy4yOSwxLDEsMWgzLjExYy43LDAsMS0uMjksMS0xVjFDMjIuNjIuMzIsMjIuMzMsMCwyMS42MywwWiIvPjwvZz48L2c+PC9nPjwvZz48L3N2Zz4=";hostLogo.alt='Hetzner';hostLogo.width=120;hostLogo.height=20;hostText.append(powered,hostLogo);host.append(server,hostText);host.title='Hosting infrastructure · Logo: Hetzner Online GmbH';foot.append(host);foot.append(note);const legal=document.querySelector('.legal-notice');if(legal){const details=document.createElement('details'),summary=document.createElement('summary');summary.textContent='Unofficial fan project';details.className='dune-footer-legal';details.append(summary,legal);foot.append(details);}if(['www.dunerealms.com','dunerealms.com'].includes(location.hostname)&&['/','/index.html'].includes(location.pathname)){const box=document.createElement('div');box.className='dune-footer-parental';const heading=document.createElement('strong');heading.textContent='Parents & guardians';const copy=document.createElement('span');copy.textContent='Parental consent or a child’s account-data request? Contact our support team.';const link=document.createElement('a');link.href='https://support.dunerealms.com/open.php';link.textContent='Parental help →';box.append(heading,copy,link);foot.append(box);}if(!old)document.body.append(foot);}const pin=()=>document.documentElement.style.setProperty('--dune-nav-height',header.getBoundingClientRect().height+'px');pin();if(!header.dataset.pinObserved){new ResizeObserver(pin).observe(header);header.dataset.pinObserved='1';}}render();async function refreshWorlds(){try{const response=await fetch('https://cp.dunerealms.com/api/worlds',{cache:'no-store',credentials:'omit',signal:AbortSignal.timeout(7000)});if(!response.ok)throw Error();const data=await response.json(),panel=document.querySelector('.dune-page-marker .world-status, .portal-realm-status>.world-status');if(!panel)return;const list=panel.querySelector('.world-status-list');list.replaceChildren();const glyphs={Arrakduin:'serevan',Kaladam:'pelareth',Giedermark:'varkesh',Kaiterhof:'orivane','Sigmadraken IV':'nivareth'};list.setAttribute('role','table');list.setAttribute('aria-label','World and connection status');for(const server of data.servers){const row=document.createElement('li'),name=document.createElement('span'),state=document.createElement('span'),icon=document.createElement('img');const display=server.name==='Velocity'?'Proxi':server.name;row.setAttribute('role','row');name.setAttribute('role','cell');name.className='world-name';name.title=display;icon.alt='';icon.width=14;icon.height=14;icon.src=glyphs[server.name]?'https://www.dunerealms.com/assets/planet-glyphs/'+glyphs[server.name]+'.svg':server.name==='Velocity'?'https://www.dunerealms.com/assets/network-proxy.svg':'https://www.dunerealms.com/assets/nav-home-v2.webp';name.append(icon,document.createTextNode(display));const status=server.state==='online'?'Online':server.state==='offline'?'Offline':'Unknown';state.setAttribute('role','cell');state.setAttribute('aria-label',status);state.title=status;state.className='world-state traffic-light '+server.state;for(const color of ['red','amber','green']){const lamp=document.createElement('i');lamp.className='lamp-'+color;lamp.setAttribute('aria-hidden','true');state.append(lamp);}row.append(name,state);list.append(row);}panel.querySelector('.world-status-note').textContent=data.available?'Live check · updates every 30s':'Status check unavailable';}catch{const note=document.querySelector('.dune-page-marker .world-status-note, .portal-realm-status .world-status-note');if(note)note.textContent='Status check unavailable · retrying';}}refreshWorlds();setInterval(()=>{if(!document.hidden)refreshWorlds();},30000);addEventListener('hashchange',()=>{render();refreshWorlds();});})();`;
export const CONTEXT_CSS=`.dune-page-marker>.world-status{max-width:325px!important;min-width:245px!important;flex-basis:245px!important;padding:8px 12px!important;border:1px solid #8a7845!important;border-radius:4px;box-shadow:inset 0 0 0 3px #0b2117,0 3px 9px #0003}.dune-page-marker .world-status h2{font:600 16px/1.25 system-ui!important;margin:3px 0 7px!important;color:#ead399}.dune-page-marker .world-status .eyebrow{font:700 8px/1.4 system-ui!important;letter-spacing:.12em!important;margin:0 0 3px!important;color:#b6c5aa}.dune-page-marker .world-status-list{gap:1px 8px!important}.dune-page-marker .world-status-list li{font:10px/1.35 system-ui!important;padding:2px 0!important;border-bottom:1px solid #58654444}.dune-page-marker .world-state{font-size:9px!important;white-space:nowrap}.dune-page-marker .world-status-note{font:8px/1.4 system-ui!important;margin:5px 0 0!important}.dune-join-box{padding:6px 7px!important;margin-top:7px!important;gap:5px 7px!important}.dune-join-box>code{font-size:10px!important}.dune-join-box button{padding:5px 8px!important;font-size:10px!important}.dune-join-ports{gap:5px!important}.dune-join-ports>span{padding:3px 4px!important}.dune-join-ports small{font-size:8px!important}.dune-join-ports code{font-size:9px!important}.dune-page-marker .dune-join-help{font-size:8px!important;line-height:1.35!important}@media(max-width:1000px){.dune-page-marker>.world-status{max-width:none!important;flex-basis:100%!important}}.dune-join-ports{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:6px}.dune-join-ports>span{display:flex;align-items:center;justify-content:space-between;gap:7px;padding:4px 6px;background:#10251b;border:1px solid #62704a;border-radius:2px}.dune-join-ports small{font:9px/1.4 system-ui!important;color:#bcc8ae!important}.dune-join-ports code{font-size:11px;color:#ead49a}.dune-join-box{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:7px 10px;margin-top:10px;padding:9px 10px;background:#1f3728;border:1px solid #98854e;border-radius:3px}.dune-join-box code{font:600 12px/1.5 ui-monospace,monospace;color:#f0dfad;background:none;padding:0;overflow-wrap:anywhere}.dune-join-box button{border:1px solid #dfc479;background:linear-gradient(#d9bd74,#b9974c);color:#12241a;padding:7px 12px;border-radius:2px;font:700 11px/1.3 system-ui;cursor:pointer;white-space:nowrap}.dune-join-box button:hover{filter:brightness(1.1)}.dune-join-box button:focus-visible{outline:2px solid #c5e4b8;outline-offset:3px}.dune-page-marker .dune-join-help{grid-column:1/-1;font:10px/1.4 system-ui!important;color:#bdcbb4!important;margin:0!important;letter-spacing:normal!important}.dune-embedded .dune-page-marker,.dune-embedded .dune-shared-footer,.dune-embedded #footer,.dune-embedded footer{display:none!important}.dune-page-marker .world-status .eyebrow,.dune-page-marker .world-status-note{font:11px/1.5 system-ui!important;letter-spacing:normal!important}.dune-footer-legal,.dune-footer-parental{flex-basis:100%;font:12px/1.6 system-ui}.dune-footer-legal summary{cursor:pointer;color:#d6ba76}.dune-footer-legal .legal-notice{max-width:none!important;margin:10px 0 0!important;padding:12px 0!important;background:none!important;border:0!important;font:11px/1.6 system-ui}.dune-footer-parental{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;border-top:1px solid #425a45;padding-top:10px;color:#bdc7b8}.dune-footer-parental strong,.dune-footer-parental a{color:#dfc17c}.dune-shared-footer{display:flex!important;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 24px!important;padding:18px max(24px,4%)!important;background:#10271f!important;border-top:1px solid #74663f!important;border-bottom:0!important;margin-top:20px;box-sizing:border-box}.dune-hosting-badge{display:inline-flex!important;align-items:center;gap:12px;padding:9px 15px!important;border:1px solid #a88e4b!important;border-radius:7px;background:linear-gradient(135deg,#294636,#0d241b)!important;box-shadow:inset 0 0 0 3px #d1b66b12,0 3px 8px #0003;text-decoration:none!important}.dune-hosting-badge>span:last-child{display:grid;gap:5px}.dune-hosting-badge span span{font:9px/1.2 system-ui;letter-spacing:.2em;color:#e4c77f}.dune-hosting-badge img{display:block;width:120px!important;height:20px!important;object-fit:contain;background:#fff;border-radius:3px;padding:6px 8px}.dune-hosting-art{font-size:38px;line-height:1;color:#d5b66b;text-shadow:2px 2px #081c14;border:1px solid #857847;padding:2px 7px;border-radius:4px}.dune-hosting-badge:hover{border-color:#f0d488!important;box-shadow:0 0 15px #dfbb4c22}.dune-shared-footer .dune-footer-brand{font:700 19px/1.4 system-ui;letter-spacing:0;color:#dfbe78}.dune-shared-footer nav{display:flex!important;position:static!important;flex-direction:row!important;flex-wrap:wrap;gap:10px 20px!important;padding:0!important;background:none!important;border:0!important;font:12px/1.5 system-ui}.dune-shared-footer nav a{color:#dfc17c!important;text-decoration:none!important;padding:0!important;min-height:0!important;background:none!important;border:0!important}.dune-shared-footer small{flex-basis:100%;border:0!important;padding:0!important;font:10px/1.5 system-ui;letter-spacing:0!important;text-align:left!important;color:#b7c3b5}.dune-page-marker{gap:20px!important;min-height:165px!important;padding-top:10px!important;padding-bottom:10px!important}.dune-page-marker>img{width:130px!important;height:140px!important;flex-basis:130px!important}.dune-page-marker p{margin:8px 0!important;font-size:21px!important}.dune-page-marker>.world-status{padding:10px 16px!important}.dune-page-marker .world-status-list{gap:3px 12px!important}#footer:not(footer){padding-top:12px!important;padding-bottom:12px!important}@media(max-width:650px){.dune-page-marker>img{width:80px!important;height:90px!important;flex-basis:80px!important}.dune-shared-footer{gap:8px!important;padding:15px 20px!important}}footer,.site-footer{background-repeat:no-repeat!important;background-size:cover!important;background-position:center!important}html,body{background-color:#0d211b!important;background-image:none!important}header.dune-site-header::after{display:none!important;content:none!important}header.dune-site-header{position:static!important;top:auto!important}.dune-page-marker{position:static!important;top:auto!important;border-bottom:3px double #b49a5c!important;box-shadow:0 5px 10px #0005}html{scroll-padding-top:0}@media(max-height:650px){.dune-page-marker{min-height:120px!important;padding-top:6px!important;padding-bottom:6px!important}.dune-page-marker>img{height:90px!important;width:90px!important;flex-basis:90px!important}.dune-page-marker p{font-size:17px!important}.dune-page-marker .world-status-list{gap:0 12px!important}.dune-page-marker>.world-status{padding:6px 12px!important}}.dune-page-marker>.world-status{position:static!important;transform:none!important;inset:auto!important;flex:1 1 320px;max-width:430px;width:auto!important;min-width:260px;margin:0 0 0 auto!important;padding:14px 20px!important;box-sizing:border-box;background:#0d211b;border:1px solid #586844;border-radius:6px}.dune-page-marker .world-status h2{font:600 20px/1.3 system-ui;margin:4px 0 10px}.dune-page-marker .world-status .eyebrow{font-size:10px;margin:0}.dune-page-marker .world-status-list{display:grid;grid-template-columns:1fr 1fr;gap:5px 16px;margin:0;padding:0;list-style:none}.dune-page-marker .world-status-list li{display:flex;justify-content:space-between;gap:8px;font:12px/1.5 system-ui;padding:2px 0}.dune-page-marker .world-status>p:last-child{font:11px/1.5 system-ui;margin:8px 0 0}@media(max-width:1000px){.dune-page-marker{flex-wrap:wrap}.dune-page-marker>.world-status{flex-basis:100%;max-width:none;margin:8px 0 0!important}}body.dune-support #landing_page .main-content,body.dune-support #content .main-content{background:#142d26!important;color:#e6dfca!important;padding:20px;box-sizing:border-box;border:1px solid #50624d}body.dune-support #content p,body.dune-support #content h1,body.dune-support #content h2{color:#e6dfca}body.dune-support #content input,body.dune-support #content select,body.dune-support #content textarea{background:#10261f;color:#eee3c7;border:1px solid #718266}header.dune-site-header[hidden]{display:none!important}.dune-page-marker{display:flex;align-items:center;gap:26px;width:100%;min-height:206px;margin:0;padding:14px max(5%,24px);background:#122c23;border-top:1px solid #596345;border-bottom:1px solid #596345;color:#e9d5aa;box-sizing:border-box;text-align:left}.dune-page-marker>img{display:block;width:164px;height:178px;object-fit:contain;flex:0 0 164px}.dune-page-marker>div{max-width:470px;text-align:center}.dune-page-marker div>img{display:inline-block;width:48px;height:48px;object-fit:contain}.dune-page-marker small{display:block;font:12px/1.5 system-ui;letter-spacing:normal;color:#cbb978}.dune-page-marker p{font:600 25px/1.35 system-ui;margin:10px 0;color:#eee3c7}@media(max-width:650px){.dune-page-marker{padding:14px 5%;min-height:160px;gap:14px}.dune-page-marker>img{width:90px;height:120px;flex-basis:90px}.dune-page-marker p{font-size:18px}.dune-page-marker small{font-size:11px}.dune-page-marker div>img{width:40px;height:40px}}
.dune-page-marker .world-network-art{display:block;width:100%!important;height:62px!important;object-fit:contain;margin:0 auto 3px}
.dune-page-marker .world-status h2{font:700 10px/1.4 system-ui!important;text-transform:uppercase;letter-spacing:.14em;margin:2px 0 5px!important;color:#cbb37a}
diff --git a/website/web/index.html b/website/web/index.html
index 7172966d..810b8607 100644
--- a/website/web/index.html
+++ b/website/web/index.html
@@ -1,6 +1,6 @@
-
dunerealms.com — The caravans must endure
+dunerealms.com — The caravans must endureSkip to content
diff --git a/website/web/portal-account.js b/website/web/portal-account.js
index 51aeba1e..e7d0299d 100644
--- a/website/web/portal-account.js
+++ b/website/web/portal-account.js
@@ -1,48 +1,48 @@
-(()=>{
- const cp=location.hostname==='cp.dunerealms.com';
- if(!cp&&!['/','/index.html'].includes(location.pathname))return;
- let user=null,revision=0,mailRevision=0,mailBusy=false,mailState=null;
- const site='https://www.dunerealms.com';
- function render(){
- const panel=document.querySelector('.dune-page-marker'),worlds=panel?.querySelector('.world-status');
- if(!panel||!worlds)return;
- const side=cp?document.querySelector('.cp-panel-frame:not([hidden])>.cp-panel-sidebar'):null;
- const sideReady=side&&['user','staff'].includes(side.parentElement.dataset.panel);
- const old=document.querySelector('.portal-account-card');
- if(cp&&!sideReady){old?.remove();return;}
- if(old?.dataset.identity===(user||''))return;
- old?.remove();panel.querySelector('.portal-welcome-card')?.remove();
- if(cp&&!user){panel.classList.remove('portal-account-welcome');return;}
- if(!cp)panel.classList.add('portal-account-welcome');
- const box=document.createElement('aside');box.className='portal-account-card';box.dataset.identity=user||'';box.setAttribute('aria-label',user?'Your Imperial Postbox':'Your DuneRealms account');
- const art=document.createElement('img');art.src=site+(user?'/assets/imperial-postbox-v1.png':'/assets/nav-account-full-v2.webp');art.alt=user?'Emerald and gold Minecraft imperial postbox with sealed letters':'';art.width=user?200:80;art.height=user?300:80;if(user)art.className='imperial-postbox-art';
- const heading=document.createElement('h2');heading.textContent=user?'Imperial Postbox':'Join the caravan';
- const text=document.createElement('p');text.textContent=user?'Your private correspondence.':'Create your account and begin your DuneRealms journey.';
- const actions=document.createElement('div');
- const links=user?[['Open Internal Mail','https://cp.dunerealms.com/#shared-inbox']]:[['Register','https://cp.dunerealms.com/?mode=register'],['Login','https://cp.dunerealms.com/']];
- for(const[label,url]of links){const a=document.createElement('a');a.textContent=label;a.href=url;actions.append(a);}
- box.append(art,heading,text,actions);
- if(user&&document.querySelector('.dune-release-badge')?.textContent.match(/\d+(?:\.\d+){3}/)?.[0]==='1.0.0.4'){const ribbon=document.createElement('span');ribbon.className='postbox-new-ribbon';ribbon.textContent='NEW';ribbon.setAttribute('aria-label','New this release');box.append(ribbon);}
- if(user){const status=document.createElement('p');status.className='postbox-status';status.setAttribute('role','status');status.textContent=mailLabel();box.append(status);}
- if(user&&!cp){
- const welcome=document.createElement('aside');welcome.className='portal-welcome-card';welcome.setAttribute('aria-label','Your DuneRealms account');
- const portrait=document.createElement('img');portrait.src=site+'/assets/nav-account-full-v2.webp';portrait.alt='';portrait.width=portrait.height=80;
- const title=document.createElement('h2');title.textContent='Welcome, '+user;
- const copy=document.createElement('p');copy.textContent='Your place in the imperial ledger.';
- const account=document.createElement('a');account.href='https://cp.dunerealms.com/';account.textContent='Account centre';
- welcome.append(portrait,title,copy,account);panel.insertBefore(welcome,worlds);
- }
- if(cp){box.classList.add('cp-sidebar-postbox');side.insertBefore(box,side.querySelector('.cp-panel-category'));panel.classList.remove('portal-account-welcome');panel.querySelector('.portal-welcome-card')?.remove();}else panel.insertBefore(box,worlds);
- }
- new MutationObserver(render).observe(document.body,{childList:true,subtree:true});
+(()=>{
+ const cp=location.hostname==='cp.dunerealms.com';
+ if(!cp&&!['/','/index.html'].includes(location.pathname))return;
+ let user=null,revision=0,mailRevision=0,mailBusy=false,mailState=null;
+ const site='https://www.dunerealms.com';
+ function render(){
+ const panel=document.querySelector('.dune-page-marker'),worlds=panel?.querySelector('.world-status')||document.querySelector('.portal-realm-status>.world-status');
+ if(!panel||!worlds)return;
+ const side=cp?document.querySelector('.cp-panel-frame:not([hidden])>.cp-panel-sidebar'):null;
+ const sideReady=side&&['user','staff'].includes(side.parentElement.dataset.panel);
+ const old=document.querySelector('.portal-account-card');
+ if(cp&&!sideReady){old?.remove();return;}
+ if(old?.dataset.identity===(user||''))return;
+ old?.remove();panel.querySelector('.portal-welcome-card')?.remove();
+ if(cp&&!user){panel.classList.remove('portal-account-welcome');return;}
+ if(!cp)panel.classList.add('portal-account-welcome');
+ const box=document.createElement('aside');box.className='portal-account-card';box.dataset.identity=user||'';box.setAttribute('aria-label',user?'Your Imperial Postbox':'Your DuneRealms account');
+ const art=document.createElement('img');art.src=site+(user?'/assets/imperial-postbox-v1.png':'/assets/nav-account-full-v2.webp');art.alt=user?'Emerald and gold Minecraft imperial postbox with sealed letters':'';art.width=user?200:80;art.height=user?300:80;if(user)art.className='imperial-postbox-art';
+ const heading=document.createElement('h2');heading.textContent=user?'Imperial Postbox':'Join the caravan';
+ const text=document.createElement('p');text.textContent=user?'Your private correspondence.':'Create your account and begin your DuneRealms journey.';
+ const actions=document.createElement('div');
+ const links=user?[['Open Internal Mail','https://cp.dunerealms.com/#shared-inbox']]:[['Register','https://cp.dunerealms.com/?mode=register'],['Login','https://cp.dunerealms.com/']];
+ for(const[label,url]of links){const a=document.createElement('a');a.textContent=label;a.href=url;actions.append(a);}
+ box.append(art,heading,text,actions);
+ if(user&&document.querySelector('.dune-release-badge')?.textContent.match(/\d+(?:\.\d+){3}/)?.[0]==='1.0.0.4'){const ribbon=document.createElement('span');ribbon.className='postbox-new-ribbon';ribbon.textContent='NEW';ribbon.setAttribute('aria-label','New this release');box.append(ribbon);}
+ if(user){const status=document.createElement('p');status.className='postbox-status';status.setAttribute('role','status');status.textContent=mailLabel();box.append(status);}
+ if(user&&!cp){
+ const welcome=document.createElement('aside');welcome.className='portal-welcome-card';welcome.setAttribute('aria-label','Your DuneRealms account');
+ const portrait=document.createElement('img');portrait.src=site+'/assets/nav-account-full-v2.webp';portrait.alt='';portrait.width=portrait.height=80;
+ const title=document.createElement('h2');title.textContent='Welcome, '+user;
+ const copy=document.createElement('p');copy.textContent='Your place in the imperial ledger.';
+ const account=document.createElement('a');account.href='https://cp.dunerealms.com/';account.textContent='Account centre';
+ welcome.append(portrait,title,copy,account);panel.insertBefore(welcome,worlds);
+ }
+ if(cp){box.classList.add('cp-sidebar-postbox');side.insertBefore(box,side.querySelector('.cp-panel-category'));panel.classList.remove('portal-account-welcome');panel.querySelector('.portal-welcome-card')?.remove();}else panel.insertBefore(box,worlds);
+ }
+ new MutationObserver(render).observe(document.body,{childList:true,subtree:true});
function mailLabel(){return !cp?'Open your inbox to view unread mail.':mailState===null?'Checking unread mail…':mailState==='unavailable'?'Unread count temporarily unavailable.':mailState===0?'Your inbox is up to date.':mailState+' unread '+(mailState===1?'message':'messages');}
function paintMail(){const box=document.querySelector('.portal-account-card');if(box?.dataset.identity!==user)return;const status=box.querySelector('.postbox-status');if(status)status.textContent=mailLabel();box?.classList.toggle('has-unread-mail',Number(mailState)>0);}
async function refreshMail(){if(!cp||!user||mailBusy||document.hidden)return;const who=user,current=mailRevision;mailBusy=true;try{const r=await fetch('/api/internal-mail/summary',{credentials:'same-origin',cache:'no-store'}),d=r.ok?await r.json():null;if(current!==mailRevision||user!==who)return;mailState=Number.isSafeInteger(d?.unreadCount)&&d.unreadCount>=0?d.unreadCount:'unavailable';paintMail();}catch{if(current===mailRevision&&user===who){mailState='unavailable';paintMail();}}finally{mailBusy=false;}}
function setUser(next){if(next!==user){mailRevision++;mailState=null;}user=next;render();paintMail();void refreshMail();}
- async function refresh(){const current=++revision;try{const r=await fetch('https://cp.dunerealms.com/api/welcome',{credentials:'include',cache:'no-store'});const d=r.ok?await r.json():null;if(current===revision){setUser(typeof d?.username==='string'?d.username:null);}}catch{if(current===revision){setUser(null);}}}
- window.addEventListener('dune:session',event=>{revision++;setUser(event.detail?.username||null);});
- window.addEventListener('pageshow',refresh);window.addEventListener('focus',refresh);
- document.addEventListener('visibilitychange',()=>{if(!document.hidden)refresh();});
+ async function refresh(){const current=++revision;try{const r=await fetch('https://cp.dunerealms.com/api/welcome',{credentials:'include',cache:'no-store'});const d=r.ok?await r.json():null;if(current===revision){setUser(typeof d?.username==='string'?d.username:null);}}catch{if(current===revision){setUser(null);}}}
+ window.addEventListener('dune:session',event=>{revision++;setUser(event.detail?.username||null);});
+ window.addEventListener('pageshow',refresh);window.addEventListener('focus',refresh);
+ document.addEventListener('visibilitychange',()=>{if(!document.hidden)refresh();});
window.addEventListener('dune:mail-changed',refreshMail);if(cp)setInterval(()=>{void refreshMail();},60000);
- render();refresh();
-})();
+ render();refresh();
+})();
diff --git a/website/web/portal-community.css b/website/web/portal-community.css
new file mode 100644
index 00000000..e8c7e511
--- /dev/null
+++ b/website/web/portal-community.css
@@ -0,0 +1,3 @@
+/* Approved community portal; shared masthead and navigation remain unchanged. */
+body.portal-community main#main{display:grid;grid-template-columns:minmax(170px,210px) minmax(0,1fr) minmax(210px,270px);gap:22px;width:min(1640px,96%);max-width:none;margin:24px auto;padding:0;align-items:start}.portal-directory,.portal-stories,.portal-realm-status{min-width:0;display:grid;gap:20px}.portal-community-card,.portal-directory-group{padding:20px;border:1px solid #9e8546;border-radius:12px;background:linear-gradient(135deg,#1d4033,#102b23);color:#eee3c7}.portal-directory-group{padding:0;overflow:hidden}.portal-directory-group summary{padding:14px;color:#eed495;font:700 18px Georgia,serif;cursor:pointer;border-bottom:1px solid #687044}.portal-directory-group nav{display:grid;gap:5px;padding:9px}.portal-directory-group a{display:block;padding:10px 12px;border:1px solid #475c3e;border-radius:6px;background:#102b22;text-decoration:none;color:#ede1bc}.portal-directory-group a:hover,.portal-directory-group a:focus-visible{background:#294b37;border-color:#d7b660}.portal-community-card h2{font-family:Georgia,serif;color:#eed495;margin-top:0}.portal-community-card a{color:#eed495}.portal-placeholder{display:block;padding:9px 12px;border-left:2px solid #ab9258;color:#b9cbbd;background:#0c261e;font-size:12px}.portal-briefing{text-align:center;background:linear-gradient(#14352be8,#102b23f2),url('/assets/political-imperial-chamber-v1.png') center/cover}.portal-briefing small{font-size:10px;letter-spacing:.12em}.portal-briefing img{object-fit:contain;margin:8px auto}.portal-community .portal-stories>.dune-page-marker{width:100%;min-height:0!important;padding:18px!important;display:flex;flex-wrap:wrap;gap:12px;border:1px solid #9e8546!important;border-radius:12px;background:linear-gradient(100deg,#102d24e8,#153a2dba),url('/assets/political-imperial-chamber-v1.png') center/cover}.portal-community .portal-stories>.dune-page-marker>img{width:90px!important;height:100px!important;flex-basis:90px!important}.portal-community .portal-stories>.dune-page-marker>div{flex:1;min-width:170px;max-width:none;text-align:left}.portal-community .portal-stories>.dune-page-marker p{font-size:22px!important}.portal-community .portal-realm-status>.world-status{position:static!important;inset:auto!important;transform:none!important;width:100%!important;min-width:0!important;max-width:none!important;margin:0!important;box-sizing:border-box;padding:14px;border:1px solid #9e8546;border-radius:12px;background:#102b23}.portal-community .news-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.portal-community .moderation-columns{display:grid;grid-template-columns:1fr;gap:20px}.portal-community .three-grid{grid-template-columns:1fr}.portal-community #server-bans{min-width:0}.portal-community .portal-stories .panel{margin:0;padding:20px}.portal-community .feature{margin:0;min-height:180px}.portal-community .portal-account-card{max-width:100%;box-sizing:border-box}
+@media(max-width:1100px){body.portal-community main#main{grid-template-columns:170px minmax(0,1fr)}.portal-realm-status{grid-column:1/-1;grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:700px){body.portal-community main#main{display:flex;flex-direction:column;width:94%;gap:16px}.portal-directory,.portal-stories,.portal-realm-status{width:100%}.portal-directory{grid-template-columns:1fr}.portal-realm-status{grid-template-columns:1fr}.portal-community .news-grid{grid-template-columns:1fr}}
diff --git a/website/web/portal-community.js b/website/web/portal-community.js
new file mode 100644
index 00000000..cf0773c5
--- /dev/null
+++ b/website/web/portal-community.js
@@ -0,0 +1,19 @@
+(()=>{
+ if(!['/','/index.html'].includes(location.pathname)||window.top!==window.self)return;
+ const main=document.querySelector('main#main');if(!main)return;
+ const el=(tag,text,cls)=>{const node=document.createElement(tag);if(text!==undefined)node.textContent=text;if(cls)node.className=cls;return node;};
+ const link=(label,href)=>{const a=el('a',label);a.href=href;return a;};
+ document.body.classList.add('portal-community');
+ const left=el('aside',undefined,'portal-directory'),center=el('div',undefined,'portal-stories'),right=el('aside',undefined,'portal-realm-status');left.setAttribute('aria-label','Realm directory');right.setAttribute('aria-label','Your realm briefing');
+ const previous=[...main.children];main.replaceChildren(left,center,right);for(const node of previous)center.append(node);
+ for(const [title,items]of [['Community',[['Gazette','/news-archive.html'],['Forums','https://forums.dunerealms.com/'],['Staff roster','/staff.html'],['Discord','/discord.html']]],['The realm',[['Political Houses','/government.html'],['Clans','https://clans.dunerealms.com/'],['Companies','https://corp.dunerealms.com/'],['Exchange','/exchange.html']]],['Your adventure',[['Missions & Decisions','https://clans.dunerealms.com/#quests/quests'],['Your account','https://cp.dunerealms.com/'],['Field manual','/manual.html']]]]){
+ const section=el('details',undefined,'portal-directory-group');section.open=true;section.append(el('summary',title));const nav=el('nav');nav.setAttribute('aria-label',title);for(const [label,href]of items)nav.append(link(label,href));section.append(nav);left.append(section);
+ }
+ const report=el('section',undefined,'portal-community-card portal-briefing');const portrait=el('img');portrait.src='/assets/nav-account-v2.webp';portrait.alt='';portrait.width=portrait.height=72;report.append(el('small','J.A.R.V.I.S. · PERSONAL BRIEFING'),el('h2','Mentat Report'),portrait,el('p','Your House adviser, personal level and reputation await in your mission journal.'),link('Open your briefing →','https://clans.dunerealms.com/#quests/quests'));right.append(report);
+ for(const [title,copy,href,label]of [['Around the realm','Explore the latest discussions and meet the organisations shaping the season.','https://forums.dunerealms.com/','Visit the forums →'],['Upcoming events','Event highlights will appear here when the portal event feed is connected.',null,null],['Community gallery','A place for player creations and stories. Gallery publishing is not connected yet.',null,null]]){
+ const section=el('section',undefined,'panel portal-community-card');section.append(el('h2',title),el('p',copy));if(href)section.append(link(label,href));else section.append(el('span','Preview · awaiting connection','portal-placeholder'));center.append(section);
+ }
+ const featured=el('section',undefined,'portal-community-card');featured.append(el('h2','Featured travellers'),el('p','Community spotlights will be published here.'),el('span','Preview · no featured members selected','portal-placeholder'));right.append(featured);
+ function arrange(){const worlds=document.querySelector('.world-status');if(worlds&&worlds.parentElement!==right)right.insertBefore(worlds,featured);const welcome=document.querySelector('.dune-page-marker');if(welcome&&welcome.parentElement!==center)center.prepend(welcome);}
+ arrange();new MutationObserver(arrange).observe(document.body,{childList:true,subtree:true});
+})();
diff --git a/website/web/portal-navigation.css b/website/web/portal-navigation.css
index 93b43f23..d32666fd 100644
--- a/website/web/portal-navigation.css
+++ b/website/web/portal-navigation.css
@@ -147,3 +147,6 @@ header.dune-site-header nav[aria-label="Main navigation"] .dune-menu-dropdown{bo
/* Nested My Account and Staff menus stay inside the dropdown at all widths. */
header nav[aria-label="Main navigation"] .dune-menu-subgroup>.dune-menu-dropdown{position:static;min-width:0;margin:4px 0 8px 12px;padding:4px;border:0;border-left:1px solid #b89a5577;border-radius:0;box-shadow:none;background:#102a21}header nav[aria-label="Main navigation"] .dune-menu-subgroup>summary{min-height:48px}header nav[aria-label="Main navigation"] .dune-menu-subgroup>.dune-menu-dropdown a{white-space:normal}
+
+/* Footer memorial, shared across public pages. */
+footer .dune-memorial{position:relative!important;inset:auto!important;display:grid;grid-template-columns:68px 1fr;gap:4px 14px;align-items:center;width:min(420px,100%);box-sizing:border-box;margin:16px 0;padding:16px;border:1px solid #9e8546;border-radius:8px;background:#11271f;color:#e7d9b8;text-align:left}footer .dune-memorial>img{grid-column:1;grid-row:1/5;width:64px;height:74px;object-fit:contain}footer .dune-memorial>span:not(.dune-memorial-candle),footer .dune-memorial>strong,footer .dune-memorial-dedication{grid-column:2}footer .dune-memorial-dedication p,footer .dune-memorial-dedication blockquote{margin:4px 0;font:12px/1.5 Georgia,serif}footer .dune-memorial-candle{grid-column:1;margin:12px auto 0}
diff --git a/website/web/portal-navigation.js b/website/web/portal-navigation.js
index bb20263a..526b6e5e 100644
--- a/website/web/portal-navigation.js
+++ b/website/web/portal-navigation.js
@@ -7,7 +7,7 @@
const name=host==='forums.dunerealms.com'?'Boards':host==='support.dunerealms.com'?'Support center':host==='clans.dunerealms.com'?'Clan center':host==='cp.dunerealms.com'?(url.hash==='#exchange'?'Exchange':url.hash==='#tickets'?'Support center':url.hash==='#forum-admin'?'Boards':'Account center'):/\/(manual|wiki)\.html$/.test(url.pathname)?'Manual/wiki':/\/staff\.html$/.test(url.pathname)?'Staff roster':/\/discord\.html$/.test(url.pathname)?'Discord':/\/exchange\.html$/.test(url.pathname)?'Exchange':['/','/index.html'].includes(url.pathname)?'Home':null;
const link=links.find(x=>x[0]===name);
return !link?{label:typeof document!=='undefined'?(document.querySelector('h1')?.textContent.trim()||'Field guide'):'Field guide',icon:'nav-manual-full-v2.webp'}:{label:link[0],icon:link[2].replace('-v2.webp','-full-v2.webp')};
-};let welcomeName='traveller';fetch('https://cp.dunerealms.com/api/welcome',{credentials:'include',cache:'no-store'}).then(r=>r.ok?r.json():null).then(data=>{if(typeof data?.username==='string'&&data.username.length<=32){welcomeName=data.username;render();}}).catch(()=>{});function render(){if(location.hostname==='support.dunerealms.com')document.body.classList.add('dune-support');const item=choose(location.href,links);let worlds=document.querySelector('.world-status');if(!worlds){worlds=document.createElement('aside');worlds.className='world-status';worlds.setAttribute('aria-label','Live server status');const heading=document.createElement('h2');heading.textContent='Worlds online';const list=document.createElement('ul');list.className='world-status-list';const note=document.createElement('p');note.className='world-status-note';note.textContent='Checking the caravan network…';worlds.append(heading,list,note);}worlds.remove();document.querySelector('.dune-page-marker')?.remove();if(!item)return;const header=document.querySelector('.dune-site-header');if(!header)return;const panel=document.createElement('section');panel.className='dune-page-marker';panel.setAttribute('aria-label','Welcome to '+item.label);const image=document.createElement('img');image.src='https://www.dunerealms.com/assets/'+item.icon;image.alt='';image.width=160;image.height=160;const text=document.createElement('div'),small=document.createElement('small'),title=document.createElement('p');small.textContent='THE CARAVAN GUIDE';title.textContent='Welcome, '+welcomeName+', to the '+item.label+'.';const lore=document.createElement('small');const quotes={Home:['The caravan gathers here; the latest word travels with the wind.','Rest beneath our banners and hear what stirs beyond the dunes.','Every journey begins with news from the road.'],Boards:['A shared tale can light the way for another traveller.','Trade your stories beneath the awning; every voice has a place.','Listen well: the quietest traveller may know the safest passage.'],Exchange:['Weigh your Dunemarks carefully; a fair bargain outlasts a fortune.','Count the coin, inspect the wares, and leave with honour.','Even in a sea of sand, a good bargain is worth finding.'],Discord:['Tune to the caravan frequency; familiar voices shorten the crossing.','Across the dunes, a friendly voice is its own shelter.','The signal is clear. Join the conversation beyond the horizon.'],'Manual/wiki':['A well-read field guide saves more water than a hurried journey.','Learn the trail before you challenge the dunes.','Turn the page; knowledge is the lightest provision you can carry.'],'Staff roster':['A watchful crew keeps the caravan moving.','Every banner is stronger with a trusted hand behind it.','Meet the keepers of the caravan and the worlds beyond.'],'Support center':['Set down your burden; the caravan clerks are here to help.','A troubled journey deserves a patient listener.','Bring us the details, and we will help find the next step.'],'Account center':['Your journey has a place in the caravan ledger.','Keep your records in order and your next crossing within reach.','Behind every banner stands a traveller with a story of their own.'],'Clan center':['Raise your banner; the strongest caravan travels together.','Choose your companions well, and no horizon is too distant.','A shared purpose binds a clan more firmly than any crest.']};const choices=quotes[item.label]||['May your water last and your journey bring good fortune.'];const key=location.hostname+location.pathname+location.hash;let seed=0;for(const character of key)seed=(seed*31+character.charCodeAt(0))>>>0;lore.textContent=choices[seed%choices.length];text.append(lore);const npc=document.createElement('img');npc.src='https://www.dunerealms.com/assets/nav-account-v2.webp';npc.alt='Caravan guide';npc.style.cssText='width:48px;height:48px;object-fit:contain';text.prepend(npc);text.append(small,title);if(worlds&&!worlds.querySelector('.dune-join-box')){const join=document.createElement('div');join.className='dune-join-box';const address=document.createElement('code');address.textContent='play.dunerealms.com';const button=document.createElement('button');button.type='button';button.textContent='Join now';button.setAttribute('aria-label','Join now: copy Minecraft server address');const help=document.createElement('p');help.className='dune-join-help';help.textContent='Java & Bedrock · copy the server address';help.setAttribute('role','status');button.addEventListener('click',async()=>{try{await navigator.clipboard.writeText('play.dunerealms.com');button.textContent='Copied ✓';help.textContent='Address copied · choose Add Server in Java or Bedrock.';}catch{help.textContent='In Minecraft Java, add a server with address play.dunerealms.com.';}});const ports=document.createElement('div');ports.className='dune-join-ports';for(const [edition,port]of [['Bedrock','19132'],['Java','25565']]){const box=document.createElement('span'),label=document.createElement('small'),value=document.createElement('code');label.textContent=edition+' port';value.textContent=port;const icon=document.createElement('img');icon.className='edition-icon';icon.alt='';icon.width=12;icon.height=12;icon.src='https://www.dunerealms.com/assets/edition-'+(edition==='Java'?'java':'bedrock')+'.svg';box.append(icon,label,value);ports.append(box);}join.append(address,button,ports,help);worlds.append(join);}if(worlds&&!worlds.querySelector('.world-network-art')){worlds.querySelector('.eyebrow')?.remove();const plate=document.createElement('img');plate.className='world-network-art';plate.src='https://www.dunerealms.com/assets/vaerkring-network-title-v1.webp';plate.alt='Vaerkring Network';plate.width=280;plate.height=80;worlds.prepend(plate);}panel.append(image,text);if(worlds)panel.append(worlds);header.after(panel);if(!document.querySelector('.dune-shared-footer')){const old=document.querySelector('body>footer,.site-footer'),foot=old||document.createElement('footer');foot.className='dune-shared-footer';foot.replaceChildren();const brand=document.createElement('a');brand.href='https://www.dunerealms.com/';brand.textContent='✦ dunerealms.com';brand.className='dune-footer-brand';const links=document.createElement('nav');links.setAttribute('aria-label','Footer navigation');for(const [label,href]of [['Manual/wiki','https://wiki.dunerealms.com/'],['Support','https://support.dunerealms.com/'],['Account','https://cp.dunerealms.com/'],['Disclaimer & contact','https://www.dunerealms.com/wiki.html']]){const a=document.createElement('a');a.textContent=label;a.href=href;links.append(a);}const note=document.createElement('small');note.textContent='Independent fan project · Not affiliated with Dune rights holders, Mojang or Microsoft.';foot.append(brand,links);const host=document.createElement('a');host.className='dune-hosting-badge';host.href='https://www.hetzner.com/';host.target='_blank';host.rel='noopener noreferrer';host.setAttribute('aria-label','Powered by Hetzner — visit Hetzner');const server=document.createElement('span');server.className='dune-hosting-art';server.textContent='▤';server.setAttribute('aria-hidden','true');const hostText=document.createElement('span');const powered=document.createElement('span');powered.textContent='POWERED BY';const h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y0xIiBkPSJNNDcuOTEsMTcuNTJIMzEuNDFWMTMuMzVINDQuNmMuNywwLDEtLjI5LDEtMVY5LjkyYzAtLjctLjI4LTEtMS0xSDMxLjQxVjQuNzZoMTYuNWMuNywwLDEtLjI5LDEtMVYxYzAtLjctLjI5LTEtMS0xSDI3LjMzYy0uNywwLTEsLjI5LTEsMVYyMS4yNGMwLC43LjI5LDEsMSwxSDQ3LjkxYy43LDAsMS0uMjksMS0xVjE4LjUxQzQ4LjksMTcuODEsNDguNjEsMTcuNTIsNDcuOTEsMTcuNTJaIi8+PHBhdGggY2xhc3M9ImNscy0xIiBkPSJNMjEuNjMsMEgxOC41MmMtLjcsMC0xLC4yOS0xLDFWOC44N0g1LjEzVjFjMC0uNy0uMjktMS0xLTFIMUMuMjksMCwwLC4yOSwwLDFWMjEuMjVjMCwuNzEuMjksMSwxLDFINC4xM2MuNywwLDEtLjI4LDEtMXYtOGgxMi40djhjMCwuNy4yOSwxLDEsMWgzLjExYy43LDAsMS0uMjksMS0xVjFDMjIuNjIuMzIsMjIuMzMsMCwyMS42MywwWiIvPjwvZz48L2c+PC9nPjwvZz48L3N2Zz4=";hostLogo.alt='Hetzner';hostLogo.width=120;hostLogo.height=20;hostText.append(powered,hostLogo);host.append(server,hostText);host.title='Hosting infrastructure · Logo: Hetzner Online GmbH';foot.append(host);foot.append(note);const legal=document.querySelector('.legal-notice');if(legal){const details=document.createElement('details'),summary=document.createElement('summary');summary.textContent='Unofficial fan project';details.className='dune-footer-legal';details.append(summary,legal);foot.append(details);}if(['www.dunerealms.com','dunerealms.com'].includes(location.hostname)&&['/','/index.html'].includes(location.pathname)){const box=document.createElement('div');box.className='dune-footer-parental';const heading=document.createElement('strong');heading.textContent='Parents & guardians';const copy=document.createElement('span');copy.textContent='Parental consent or a child’s account-data request? Contact our support team.';const link=document.createElement('a');link.href='https://support.dunerealms.com/open.php';link.textContent='Parental help →';box.append(heading,copy,link);foot.append(box);}if(!old)document.body.append(foot);}const pin=()=>document.documentElement.style.setProperty('--dune-nav-height',header.getBoundingClientRect().height+'px');pin();if(!header.dataset.pinObserved){new ResizeObserver(pin).observe(header);header.dataset.pinObserved='1';}}render();async function refreshWorlds(){try{const response=await fetch('https://cp.dunerealms.com/api/worlds',{cache:'no-store',credentials:'omit',signal:AbortSignal.timeout(7000)});if(!response.ok)throw Error();const data=await response.json(),panel=document.querySelector('.dune-page-marker .world-status');if(!panel)return;const list=panel.querySelector('.world-status-list');list.replaceChildren();const glyphs={Arrakduin:'serevan',Kaladam:'pelareth',Giedermark:'varkesh',Kaiterhof:'orivane','Sigmadraken IV':'nivareth'};list.setAttribute('role','table');list.setAttribute('aria-label','World and connection status');for(const server of data.servers){const row=document.createElement('li'),name=document.createElement('span'),state=document.createElement('span'),icon=document.createElement('img');const display=server.name==='Velocity'?'Proxi':server.name;row.setAttribute('role','row');name.setAttribute('role','cell');name.className='world-name';name.title=display;icon.alt='';icon.width=14;icon.height=14;icon.src=glyphs[server.name]?'https://www.dunerealms.com/assets/planet-glyphs/'+glyphs[server.name]+'.svg':server.name==='Velocity'?'https://www.dunerealms.com/assets/network-proxy.svg':'https://www.dunerealms.com/assets/nav-home-v2.webp';name.append(icon,document.createTextNode(display));const status=server.state==='online'?'Online':server.state==='offline'?'Offline':'Unknown';state.setAttribute('role','cell');state.setAttribute('aria-label',status);state.title=status;state.className='world-state traffic-light '+server.state;for(const color of ['red','amber','green']){const lamp=document.createElement('i');lamp.className='lamp-'+color;lamp.setAttribute('aria-hidden','true');state.append(lamp);}row.append(name,state);list.append(row);}panel.querySelector('.world-status-note').textContent=data.available?'Live check · updates every 30s':'Status check unavailable';}catch{const note=document.querySelector('.dune-page-marker .world-status-note');if(note)note.textContent='Status check unavailable · retrying';}}refreshWorlds();setInterval(()=>{if(!document.hidden)refreshWorlds();},30000);addEventListener('hashchange',()=>{render();refreshWorlds();});})();
+};let welcomeName='traveller';fetch('https://cp.dunerealms.com/api/welcome',{credentials:'include',cache:'no-store'}).then(r=>r.ok?r.json():null).then(data=>{if(typeof data?.username==='string'&&data.username.length<=32){welcomeName=data.username;render();}}).catch(()=>{});function render(){if(location.hostname==='support.dunerealms.com')document.body.classList.add('dune-support');const item=choose(location.href,links);let worlds=document.querySelector('.world-status');if(!worlds){worlds=document.createElement('aside');worlds.className='world-status';worlds.setAttribute('aria-label','Live server status');const heading=document.createElement('h2');heading.textContent='Worlds online';const list=document.createElement('ul');list.className='world-status-list';const note=document.createElement('p');note.className='world-status-note';note.textContent='Checking the caravan network…';worlds.append(heading,list,note);}worlds.remove();document.querySelector('.dune-page-marker')?.remove();if(!item)return;const header=document.querySelector('.dune-site-header');if(!header)return;const panel=document.createElement('section');panel.className='dune-page-marker';panel.setAttribute('aria-label','Welcome to '+item.label);const image=document.createElement('img');image.src='https://www.dunerealms.com/assets/'+item.icon;image.alt='';image.width=160;image.height=160;const text=document.createElement('div'),small=document.createElement('small'),title=document.createElement('p');small.textContent='THE CARAVAN GUIDE';title.textContent='Welcome, '+welcomeName+', to the '+item.label+'.';const lore=document.createElement('small');const quotes={Home:['The caravan gathers here; the latest word travels with the wind.','Rest beneath our banners and hear what stirs beyond the dunes.','Every journey begins with news from the road.'],Boards:['A shared tale can light the way for another traveller.','Trade your stories beneath the awning; every voice has a place.','Listen well: the quietest traveller may know the safest passage.'],Exchange:['Weigh your Dunemarks carefully; a fair bargain outlasts a fortune.','Count the coin, inspect the wares, and leave with honour.','Even in a sea of sand, a good bargain is worth finding.'],Discord:['Tune to the caravan frequency; familiar voices shorten the crossing.','Across the dunes, a friendly voice is its own shelter.','The signal is clear. Join the conversation beyond the horizon.'],'Manual/wiki':['A well-read field guide saves more water than a hurried journey.','Learn the trail before you challenge the dunes.','Turn the page; knowledge is the lightest provision you can carry.'],'Staff roster':['A watchful crew keeps the caravan moving.','Every banner is stronger with a trusted hand behind it.','Meet the keepers of the caravan and the worlds beyond.'],'Support center':['Set down your burden; the caravan clerks are here to help.','A troubled journey deserves a patient listener.','Bring us the details, and we will help find the next step.'],'Account center':['Your journey has a place in the caravan ledger.','Keep your records in order and your next crossing within reach.','Behind every banner stands a traveller with a story of their own.'],'Clan center':['Raise your banner; the strongest caravan travels together.','Choose your companions well, and no horizon is too distant.','A shared purpose binds a clan more firmly than any crest.']};const choices=quotes[item.label]||['May your water last and your journey bring good fortune.'];const key=location.hostname+location.pathname+location.hash;let seed=0;for(const character of key)seed=(seed*31+character.charCodeAt(0))>>>0;lore.textContent=choices[seed%choices.length];text.append(lore);const npc=document.createElement('img');npc.src='https://www.dunerealms.com/assets/nav-account-v2.webp';npc.alt='Caravan guide';npc.style.cssText='width:48px;height:48px;object-fit:contain';text.prepend(npc);text.append(small,title);if(worlds&&!worlds.querySelector('.dune-join-box')){const join=document.createElement('div');join.className='dune-join-box';const address=document.createElement('code');address.textContent='play.dunerealms.com';const button=document.createElement('button');button.type='button';button.textContent='Join now';button.setAttribute('aria-label','Join now: copy Minecraft server address');const help=document.createElement('p');help.className='dune-join-help';help.textContent='Java & Bedrock · copy the server address';help.setAttribute('role','status');button.addEventListener('click',async()=>{try{await navigator.clipboard.writeText('play.dunerealms.com');button.textContent='Copied ✓';help.textContent='Address copied · choose Add Server in Java or Bedrock.';}catch{help.textContent='In Minecraft Java, add a server with address play.dunerealms.com.';}});const ports=document.createElement('div');ports.className='dune-join-ports';for(const [edition,port]of [['Bedrock','19132'],['Java','25565']]){const box=document.createElement('span'),label=document.createElement('small'),value=document.createElement('code');label.textContent=edition+' port';value.textContent=port;const icon=document.createElement('img');icon.className='edition-icon';icon.alt='';icon.width=12;icon.height=12;icon.src='https://www.dunerealms.com/assets/edition-'+(edition==='Java'?'java':'bedrock')+'.svg';box.append(icon,label,value);ports.append(box);}join.append(address,button,ports,help);worlds.append(join);}if(worlds&&!worlds.querySelector('.world-network-art')){worlds.querySelector('.eyebrow')?.remove();const plate=document.createElement('img');plate.className='world-network-art';plate.src='https://www.dunerealms.com/assets/vaerkring-network-title-v1.webp';plate.alt='Vaerkring Network';plate.width=280;plate.height=80;worlds.prepend(plate);}panel.append(image,text);if(worlds)panel.append(worlds);header.after(panel);if(!document.querySelector('.dune-shared-footer')){const old=document.querySelector('body>footer,.site-footer'),foot=old||document.createElement('footer');foot.className='dune-shared-footer';foot.replaceChildren();const brand=document.createElement('a');brand.href='https://www.dunerealms.com/';brand.textContent='✦ dunerealms.com';brand.className='dune-footer-brand';const links=document.createElement('nav');links.setAttribute('aria-label','Footer navigation');for(const [label,href]of [['Manual/wiki','https://wiki.dunerealms.com/'],['Support','https://support.dunerealms.com/'],['Account','https://cp.dunerealms.com/'],['Disclaimer & contact','https://www.dunerealms.com/wiki.html']]){const a=document.createElement('a');a.textContent=label;a.href=href;links.append(a);}const note=document.createElement('small');note.textContent='Independent fan project · Not affiliated with Dune rights holders, Mojang or Microsoft.';foot.append(brand,links);const host=document.createElement('a');host.className='dune-hosting-badge';host.href='https://www.hetzner.com/';host.target='_blank';host.rel='noopener noreferrer';host.setAttribute('aria-label','Powered by Hetzner — visit Hetzner');const server=document.createElement('span');server.className='dune-hosting-art';server.textContent='▤';server.setAttribute('aria-hidden','true');const hostText=document.createElement('span');const powered=document.createElement('span');powered.textContent='POWERED BY';const hostLogo=document.createElement('img');hostLogo.src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxODEuNDIgMjIuMjQiPjxkZWZzPjxzdHlsZT4uY2xzLTF7ZmlsbDojZDUwYzJkO308L3N0eWxlPjwvZGVmcz48dGl0bGU+RWxlbWVudCAxPC90aXRsZT48ZyBpZD0iRWJlbmVfMiIgZGF0YS1uYW1lPSJFYmVuZSAyIj48ZyBpZD0iTG9nb19QdXIiIGRhdGEtbmFtZT0iTG9nbyBQdXIiPjxnIGlkPSJMb2dvIj48ZyBpZD0iSEVUWk5FUiI+PHBhdGggY2xhc3M9ImNscy0xIiBkPSJNMTc0LjA1LDE0LjEyYTEwLjIyLDEwLjIyLDAsMCwwLDQuNTMtMm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MCwuNzEuMjksMSwxLDFINC4xM2MuNywwLDEtLjI4LDEtMXYtOGgxMi40djhjMCwuNy4yOSwxLDEsMWgzLjExYy43LDAsMS0uMjksMS0xVjFDMjIuNjIuMzIsMjIuMzMsMCwyMS42MywwWiIvPjwvZz48L2c+PC9nPjwvZz48L3N2Zz4=";hostLogo.alt='Hetzner';hostLogo.width=120;hostLogo.height=20;hostText.append(powered,hostLogo);host.append(server,hostText);host.title='Hosting infrastructure · Logo: Hetzner Online GmbH';foot.append(host);foot.append(note);const legal=document.querySelector('.legal-notice');if(legal){const details=document.createElement('details'),summary=document.createElement('summary');summary.textContent='Unofficial fan project';details.className='dune-footer-legal';details.append(summary,legal);foot.append(details);}if(['www.dunerealms.com','dunerealms.com'].includes(location.hostname)&&['/','/index.html'].includes(location.pathname)){const box=document.createElement('div');box.className='dune-footer-parental';const heading=document.createElement('strong');heading.textContent='Parents & guardians';const copy=document.createElement('span');copy.textContent='Parental consent or a child’s account-data request? Contact our support team.';const link=document.createElement('a');link.href='https://support.dunerealms.com/open.php';link.textContent='Parental help →';box.append(heading,copy,link);foot.append(box);}if(!old)document.body.append(foot);}const pin=()=>document.documentElement.style.setProperty('--dune-nav-height',header.getBoundingClientRect().height+'px');pin();if(!header.dataset.pinObserved){new ResizeObserver(pin).observe(header);header.dataset.pinObserved='1';}}render();async function refreshWorlds(){try{const response=await fetch('https://cp.dunerealms.com/api/worlds',{cache:'no-store',credentials:'omit',signal:AbortSignal.timeout(7000)});if(!response.ok)throw Error();const data=await response.json(),panel=document.querySelector('.dune-page-marker .world-status, .portal-realm-status>.world-status');if(!panel)return;const list=panel.querySelector('.world-status-list');list.replaceChildren();const glyphs={Arrakduin:'serevan',Kaladam:'pelareth',Giedermark:'varkesh',Kaiterhof:'orivane','Sigmadraken IV':'nivareth'};list.setAttribute('role','table');list.setAttribute('aria-label','World and connection status');for(const server of data.servers){const row=document.createElement('li'),name=document.createElement('span'),state=document.createElement('span'),icon=document.createElement('img');const display=server.name==='Velocity'?'Proxi':server.name;row.setAttribute('role','row');name.setAttribute('role','cell');name.className='world-name';name.title=display;icon.alt='';icon.width=14;icon.height=14;icon.src=glyphs[server.name]?'https://www.dunerealms.com/assets/planet-glyphs/'+glyphs[server.name]+'.svg':server.name==='Velocity'?'https://www.dunerealms.com/assets/network-proxy.svg':'https://www.dunerealms.com/assets/nav-home-v2.webp';name.append(icon,document.createTextNode(display));const status=server.state==='online'?'Online':server.state==='offline'?'Offline':'Unknown';state.setAttribute('role','cell');state.setAttribute('aria-label',status);state.title=status;state.className='world-state traffic-light '+server.state;for(const color of ['red','amber','green']){const lamp=document.createElement('i');lamp.className='lamp-'+color;lamp.setAttribute('aria-hidden','true');state.append(lamp);}row.append(name,state);list.append(row);}panel.querySelector('.world-status-note').textContent=data.available?'Live check · updates every 30s':'Status check unavailable';}catch{const note=document.querySelector('.dune-page-marker .world-status-note, .portal-realm-status .world-status-note');if(note)note.textContent='Status check unavailable · retrying';}}refreshWorlds();setInterval(()=>{if(!document.hidden)refreshWorlds();},30000);addEventListener('hashchange',()=>{render();refreshWorlds();});})();
/* DuneRealms action system v1 */
(()=>{
const selector='button,input[type=submit],input[type=button],input[type=reset],a.button,a.btn,a.action-button,[role=button],.ui.button,.cp-area-tabs>button,.tabs>a,.git-control-actions>a,.exchange-actions>a';
@@ -39,8 +39,8 @@
/* Shop SALES indicator v1: inactive until a real promotion is active */
(()=>{let active=new URLSearchParams(location.search).get('sale-preview')==='1';if(active)document.body.classList.add('dune-sale-preview');const draw=()=>{for(const a of document.querySelectorAll('header nav[aria-label="Main navigation"] a[href="https://shop.dunerealms.com/"]')){let badge=a.querySelector('.dune-sales-overlay');if(active&&!badge){badge=document.createElement('span');badge.className='dune-sales-overlay';badge.textContent='SALE';badge.setAttribute('aria-label','Shop sale active');a.append(badge);}else if(!active&&badge)badge.remove();a.classList.toggle('dune-shop-sale-active',active);}};window.addEventListener('dune:shop-promotions',e=>{active=e.detail?.active===true;draw();});draw();new MutationObserver(draw).observe(document.body,{childList:true,subtree:true});})();
-/* Sir Patrick Stewart header memorial */
-(()=>{const place=()=>{const header=document.querySelector('header.dune-site-header')||document.querySelector('body>header');if(!header||header.querySelector('.dune-memorial'))return;const tribute=document.createElement('aside');tribute.className='dune-memorial';tribute.setAttribute('aria-label','In memory of Sir Patrick Stewart');tribute.title='In memory of Sir Patrick Stewart';const portrait=document.createElement('img');portrait.src='https://www.dunerealms.com/assets/sir-patrick-stewart-memorial-v1.webp';portrait.alt='Sir Patrick Stewart, remembered within a heraldic shield with a black mourning ribbon';portrait.width=96;portrait.height=96;const text=document.createElement('span');text.textContent='In memory of';const name=document.createElement('strong');name.textContent='Sir Patrick Stewart';tribute.append(portrait,text,name);header.append(tribute);};place();new MutationObserver(place).observe(document.body,{childList:true,subtree:true});})();
+/* Sir Patrick Stewart footer memorial */
+(()=>{const place=()=>{const header=document.querySelector('header.dune-site-header')||document.querySelector('body>header');const footer=document.querySelector('footer.dune-shared-footer')||document.querySelector('footer');if(!footer)return;const existing=document.querySelector('.dune-memorial');if(existing){if(existing.parentElement!==footer)footer.append(existing);return;}const tribute=document.createElement('aside');tribute.className='dune-memorial';tribute.setAttribute('aria-label','In memory of Sir Patrick Stewart');tribute.title='In memory of Sir Patrick Stewart';const portrait=document.createElement('img');portrait.src='https://www.dunerealms.com/assets/sir-patrick-stewart-memorial-v1.webp';portrait.alt='Sir Patrick Stewart, remembered within a heraldic shield with a black mourning ribbon';portrait.width=96;portrait.height=96;const text=document.createElement('span');text.textContent='In memory of';const name=document.createElement('strong');name.textContent='Sir Patrick Stewart';tribute.append(portrait,text,name);footer.append(tribute);};place();new MutationObserver(place).observe(document.body,{childList:true,subtree:true});})();
/* Memorial dedication box and candle */
(()=>{function enhance(){const box=document.querySelector('.dune-memorial');if(!box||box.querySelector('.dune-memorial-dedication'))return;const dedication=document.createElement('div');dedication.className='dune-memorial-dedication';const role=document.createElement('p');role.textContent='Gurney Halleck · Dune (1984)';const quote=document.createElement('blockquote');quote.textContent='“May thy knife chip and shatter.”';const credit=document.createElement('small');credit.textContent='— Dune';dedication.append(role,quote,credit);const candle=document.createElement('span');candle.className='dune-memorial-candle';candle.setAttribute('role','img');candle.setAttribute('aria-label','A burning candle in remembrance');const flame=document.createElement('i');flame.className='dune-memorial-flame';candle.append(flame);box.append(dedication,candle);}enhance();new MutationObserver(enhance).observe(document.body,{childList:true,subtree:true});})();