Give ceremonial titles regal typography and readable character names

This commit is contained in:
unimatrix 2026-11-17 02:44:32 +00:00
commit a9f2bf9310
6 changed files with 23 additions and 2 deletions

View file

@ -0,0 +1,13 @@
# Campaign map and Company specialist — design notes
Agreed 17 November 2026. Future work, not part of the current clan identity publication.
- RTS influence at campaign level: each Home Block anchors a province; actual WorldGuard-format claim geometry remains the land source. Do not imply ownership of gaps between disconnected claims.
- Province owner comes from the deed; hierarchy distinguishes mother and daughter clans. Campaign overlays show conquer/server-event progress.
- Example victory condition: conquer 10 Home Blocks on the target world. Repeat-capture, eligibility and holding-period rules remain to be designed with the event.
- Minecraft players perform the battles; the website projects recorded outcomes through the shared API. No second ownership store or website-only combat result.
- Company specialist inspiration: Duncan Idaho as portrayed in Dune (1992). Reuse appointment and portrait components, adapting to commercial responsibilities. Exact Company title and privileges remain to be agreed.
Imperial Intervention is a server event, not an action funded or authorised by the player Emperor's political deed. Management entry: Emperor Actions → Start Dune II Event. EU4-style event setup defines target world, participants, victory objective and Imperial intervention settings. Province map presents progress. This is a design entry, not an instruction to launch an event now. Exact access policy and event mechanics are future work.
Correction: no per-event staff setup. Start Dune II Event launches a predefined automated scenario; selection, objectives, province tracking, intervention and completion follow preset rules. Emperor Actions is its management entry, not a manual staff setup form.

View file

@ -1,3 +1,4 @@
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700&display=swap');
.clan-dynasty{position:relative;isolation:isolate;padding:clamp(24px,5vw,64px);border:1px solid #ae9452;border-radius:18px;background:linear-gradient(#0e2724aa,#091d1aeb),url('https://www.dunerealms.com/assets/political-small-council-v1.png') center/cover;color:#eee2c4;overflow:hidden}.clan-dynasty-basic{background-image:linear-gradient(#0e2724aa,#091d1aeb),url('https://www.dunerealms.com/assets/guild.webp')}.clan-dynasty-royal{background-image:linear-gradient(#18242988,#111b24eb),url('https://www.dunerealms.com/assets/political-imperial-chamber-v1.png')}.clan-dynasty>header{text-align:center;display:grid;justify-items:center;gap:12px;margin-bottom:38px}.clan-dynasty>header img{object-fit:contain;filter:drop-shadow(0 8px 12px #0008)}.clan-dynasty h2{font:700 clamp(26px,4vw,42px) Georgia,serif;color:#f0d592;margin:0}.clan-dynasty small,.clan-deed-card small{color:#e3bf71;letter-spacing:.15em;font-size:11px}.clan-dynasty-tree{display:grid;grid-template-columns:repeat(2,minmax(0,260px));gap:65px 45px;justify-content:center;position:relative}.dynasty-player{position:relative;display:flex;flex-direction:column;align-items:center;text-align:center;gap:12px;padding:26px 18px;border:1px solid #b69a54;border-radius:12px;background:linear-gradient(140deg,#244039e8,#102721f5);box-shadow:0 15px 30px #0005;min-width:0}.dynasty-player a{font:700 clamp(17px,2vw,23px) Georgia,serif;color:#f3d995;overflow-wrap:anywhere}.dynasty-player strong{font-size:14px;color:#d8cfb7}.dynasty-portrait{display:grid;place-items:center;width:100px;height:100px;border:1px solid #c3a65b;border-radius:12px;background:#0a1c19;color:#cfb36f;box-shadow:0 0 22px #e2bb4b19}.dynasty-portrait img{width:80px;height:80px;border-radius:8px;image-rendering:pixelated}.dynasty-player-ruler:after{content:'';position:absolute;width:46px;height:1px;right:-46px;top:50%;background:#c9ad68}.dynasty-player-heir{grid-column:1/-1;justify-self:center;width:100%;max-width:260px;box-sizing:border-box}.dynasty-player-heir:before{content:'';position:absolute;height:66px;width:1px;background:#c9ad68;top:-66px;left:50%}.dynasty-vacant{border-style:dashed;background:#10251fbd}.clan-deed-card{display:grid;grid-template-columns:minmax(150px,240px) minmax(0,1fr);gap:32px;padding:30px;border:1px solid #a48d52;border-radius:16px;background:linear-gradient(130deg,#2c3025,#102821);color:#e9dfc7;align-items:center}.clan-deed-card h2{font:700 30px Georgia,serif;color:#f2d896}.clan-deed-picture{height:auto;aspect-ratio:1;width:100%;overflow:hidden;position:relative}.clan-deed-picture img{width:300%;height:100%;max-width:none;object-fit:cover;position:absolute;left:0}.clan-deed-card dl{display:grid;grid-template-columns:auto 1fr;gap:10px 24px}.clan-deed-card dd{margin:0;overflow-wrap:anywhere}.clan-deed-card dt{color:#d2b66c}.clan-deed-card>div:last-child{min-width:0}.clan-dynasty-tree,.clan-deed-card{box-sizing:border-box}@media(max-width:560px){.clan-dynasty-tree{gap:48px 18px}.clan-dynasty{padding:24px 14px}.dynasty-player{padding:18px 8px}.dynasty-player-ruler:after{width:19px;right:-19px}.dynasty-player-heir:before{height:49px;top:-49px}.dynasty-portrait{width:70px;height:70px}.dynasty-portrait img{width:58px;height:58px}.clan-deed-card{grid-template-columns:1fr;padding:22px}.clan-deed-picture{width:180px;justify-self:center;height:auto}.clan-deed-card h2{font-size:26px}}
/* Imperial register: heraldic protection, sealed corners and ornate card edges. */
@ -9,3 +10,5 @@
.organisation-settings-card .clan-deed-card{display:block;padding:20px;max-width:100%;box-sizing:border-box}.organisation-settings-card .clan-deed-picture{width:160px;height:160px;max-width:100%;margin:0 auto 22px}.organisation-settings-card .clan-deed-card h2{font-size:26px;line-height:1.25;overflow-wrap:break-word}.organisation-settings-card .clan-deed-card dl{grid-template-columns:minmax(60px,auto) minmax(0,1fr);gap:12px 16px;font-size:15px;line-height:1.6}.organisation-settings-card .clan-deed-card dd{min-width:0;word-break:normal;overflow-wrap:break-word}.organisation-settings-card .clan-deed-card small{letter-spacing:.06em;line-height:1.6}.organisation-settings-card .clan-deed-card~form{display:grid;gap:14px;margin-top:24px;padding-top:22px;border-top:1px solid #87734466}.organisation-settings-card .clan-deed-card~form label{display:grid;gap:10px}.organisation-settings-card .clan-deed-card~form label:has(>input[type=checkbox]){display:flex;align-items:flex-start;gap:10px;line-height:1.6}.organisation-settings-card .clan-deed-card~form input[type=checkbox]{width:18px!important;height:18px;flex:0 0 18px;margin-top:4px}.organisation-settings-card .clan-deed-card~form button{justify-self:start}.dynasty-player>a{line-height:1.45;font-size:clamp(17px,2vw,21px)}.dynasty-player>small:last-child{font-size:11px;letter-spacing:.04em;color:#b6c9b9}.clan-deed-card dd{line-height:1.6}.clan-deed-card h2{overflow-wrap:break-word}
/* Household specialist, deliberately outside the family connector graph. */
.clan-dynasty>.dynasty-specialist{position:relative;max-width:280px;margin:42px auto 0;border-style:double;border-width:3px;padding:24px;box-sizing:border-box;text-align:center}.dynasty-specialist::before,.dynasty-specialist::after{display:none}.dynasty-specialist>small{display:block;margin-bottom:16px}.dynasty-specialist .dynasty-portrait{margin:0 auto 18px}.dynasty-specialist>a{display:block}.dynasty-specialist>small:last-child{margin-top:12px;margin-bottom:0}
.clan-dynasty h2,.dynasty-player>a,.clan-deed-card h2,.clan-deed-card dd{font-family:'Cinzel','Palatino Linotype',serif;font-weight:600;text-decoration:none;letter-spacing:.025em}.dynasty-player>a{line-height:1.55;text-wrap:balance}.dynasty-player>a:hover{text-shadow:0 0 14px #e8c97666;color:#fff0bc}.clan-deed-card dd{line-height:1.7}

View file

@ -2,7 +2,7 @@
const houses={
atreides:[['Lord / Lady','Ducal Heir','Ducal Consort'],['Duke / Duchess','Ducal Heir','Ducal Consort'],['Duke / Duchess','Ducal Heir','Ducal Consort']],
harkonnen:[['Lord / Lady','Na-Baron / Na-Baroness','Baronial Consort'],['Baron / Baroness','Na-Baron / Na-Baroness','Baronial Consort'],['Baron / Baroness','Na-Baron / Na-Baroness','Baronial Consort']],
corrino:[['Lord / Lady','Imperial Heir','Imperial Consort'],['Prince / Princess','Imperial Heir','Imperial Consort'],['Prince / Princess Imperial','Imperial Heir','Imperial Consort']],
corrino:[['Lord / Lady','Imperial Heir','Imperial Consort'],['Prince / Princess','Imperial Heir','Imperial Consort'],['Prince Imperial / Princess Imperial','Imperial Heir','Imperial Consort']],
ordos:[['Factor','Director-Designate','Consort'],['Director','Director-Designate','Consort'],['High Director','Director-Designate','Consort']],
fremen:[['Sietch Elder','Chosen Successor','Consort'],['Naib','Chosen Successor','Consort'],['Naib of Naibs','Chosen Successor','Consort']],
guild:[['Guild Agent','Guildmaster-Designate','Consort'],['Navigator','Guildmaster-Designate','Consort'],['Guildmaster','Guildmaster-Designate','Consort']],

View file

@ -2,7 +2,7 @@ const first=value=>String(value||'').split(' / ')[0].trim();
// Display only. Auth, ownership and permission checks never consume this text.
export function dynasticAddress(person,clan,titles,role='ruler'){
if(!person)return 'Not appointed';
const name=String(person.characterName||person.displayName||person.username||'').trim();
const name=String(person.characterName||person.displayName||person.username||'').replace(/_+/g,' ').replace(/\s+/g,' ').trim();
if(!name)return 'Not appointed';
const politics=role==='arms'?null:person.politicalIdentity;
const emperor=politics?.poldeeds?.status==='available'&&politics.poldeeds.records.some(r=>r.office==='emperor');

View file

@ -1,6 +1,9 @@
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700&display=swap');
*{box-sizing:border-box}body{margin:0;background:#0b221b;color:#eee6ce;font:15px/1.7 system-ui,sans-serif}a{color:#e4ca83}.citizen-profile{max-width:1240px;margin:36px auto 60px;padding:0 28px}.citizen-profile [hidden]{display:none!important}.profile-breadcrumb{margin-bottom:22px;font-size:13px;color:#b8c5b7}.profile-breadcrumb a{text-decoration:none}.profile-hero,.profile-panel{border:1px solid #7f8c61;border-radius:16px;padding:30px;margin-bottom:24px;background:linear-gradient(135deg,#1d4031,#102c23);box-shadow:0 8px 25px #0002}.profile-hero{border-top:3px solid #d2b76b;background:linear-gradient(105deg,#173e2bf2,#102e28e8),url('/assets/sietch.webp') center/cover}.citizen-profile .eyebrow{font-size:10px;font-weight:700;letter-spacing:.16em;color:#c4ad6d;margin:0 0 12px}.identity{display:flex;align-items:center;gap:26px;margin:22px 0}.identity>div{min-width:0}#avatar{width:112px;height:112px;flex-shrink:0;border-radius:13px;border:2px solid #c6ab64;object-fit:cover;image-rendering:pixelated;background:#0a241b}.citizen-profile h1,.citizen-profile h2,.citizen-profile h3{font-family:Georgia,serif;color:#efdcab;line-height:1.25;overflow-wrap:anywhere}.citizen-profile h1{font-size:38px;margin:0 0 6px}.citizen-profile h2{font-size:25px;margin:0 0 18px}.citizen-profile h3{font-size:18px}.citizen-profile p{margin-top:0}.muted,#handle,#status{color:#b9ccbd}#handle{margin-bottom:6px}.metadata{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;margin-top:26px}.metadata>div{border-top:1px solid #8d9a6b55;padding-top:16px}.metadata small{display:block;color:#b5c6b5;font-size:12px;margin-bottom:5px}.metadata strong{overflow-wrap:anywhere}.chips{display:flex;gap:10px;flex-wrap:wrap}.chip{display:inline-block;border:1px solid #a89058;border-radius:20px;padding:5px 13px;background:#9b87481c;font-size:12px;text-decoration:none}.chip[data-staff=true]{border-color:#90b2bb;color:#b8d8e3;background:#456d7b30}.profile-columns{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:24px}.profile-prose{white-space:pre-line;overflow-wrap:anywhere;color:#d4dfce}.profile-functions{display:grid;gap:12px;margin-bottom:20px}.profile-function{padding:13px 16px;border:1px solid #71856677;border-left:3px solid #d1b66c;border-radius:8px;background:#0b281d}.profile-function strong{display:block;color:#e4cb8e}.profile-function span,.profile-function small{display:block;color:#b8cdbb;font-size:12px}.profile-award-groups{display:grid;gap:28px;margin-top:26px}.profile-awards{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:18px}.profile-seal{margin:0!important;min-width:0;padding:22px 16px;border:1px solid #7f8b645c;border-radius:12px;background:linear-gradient(145deg,#274936,#102d24);text-align:center;display:flex;flex-direction:column;align-items:center;gap:14px}.profile-seal img{width:128px;height:128px;max-width:100%;object-fit:contain;filter:drop-shadow(0 4px 7px #0005)}.profile-seal figcaption{font-size:13px;color:#e8d6a5;overflow-wrap:anywhere;line-height:1.5;width:100%}.profile-seal small{font-size:11px;color:#b4bd9f}.personal-seal-panel,.profile-order{display:flex;align-items:center;justify-content:space-between;gap:30px}.personal-seal-panel .profile-seal{min-width:210px}.profile-order{justify-content:flex-start;border-color:#c7a955;background:linear-gradient(115deg,#5d502936,#173b2c)}.profile-order>img{object-fit:contain;flex-shrink:0}.profile-community{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:18px}.profile-community>article{padding:20px;border:1px solid #6e886777;border-radius:10px;background:#0c281e}.profile-community strong{display:block;color:#e8d6a5;font-size:21px}.profile-community small{color:#b7cbb8}.profile-community a{font-size:12px}.citizen-profile a:focus-visible{outline:2px solid #e8cb7c;outline-offset:4px}
.profile-clan-emblem{display:block;width:110px;height:110px;object-fit:contain;margin:0 auto 18px;filter:drop-shadow(0 4px 8px #0005)}
.profile-political-offices{border:3px double #c7a05a;background:linear-gradient(120deg,#4b252c,#261e22);box-shadow:inset 0 0 0 3px #d5ad6114}.profile-political-office-list{display:grid;gap:16px}.profile-political-office{display:flex;align-items:center;gap:24px;padding:20px;border:1px solid #b8975688;border-radius:10px;background:#f6eddd0a;min-width:0}.profile-political-office>img{width:96px;height:96px;object-fit:contain;flex-shrink:0;filter:drop-shadow(0 4px 8px #0005)}.profile-political-office small{color:#d4ba82;letter-spacing:.08em;text-transform:uppercase}.profile-political-office h3{margin:7px 0 10px}.profile-political-office strong{color:#edd7a0;font-size:13px}.profile-political-office p{margin:8px 0 0;font-size:12px}@media(max-width:520px){.profile-political-office{align-items:flex-start;flex-direction:column;gap:14px;padding:16px}.profile-political-office>img{width:80px;height:80px}}
#passport-title{line-height:1.2;font-size:clamp(1.6rem,3.7vw,2.8rem);overflow-wrap:break-word}.profile-header-clan-logo{display:block;width:88px;height:88px;object-fit:contain;filter:drop-shadow(0 4px 7px #0006)}.profile-holdings{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.profile-holding-box{padding:22px;min-width:0;border:1px solid #947b43;border-radius:13px;background:linear-gradient(120deg,#213d31ec,#102922f7)}.profile-holding-box h3{font-family:Georgia,serif;color:#e7cc86;margin-top:0}.profile-holding-link{display:flex;align-items:center;gap:14px;padding:10px 0;line-height:1.5;overflow-wrap:anywhere}.profile-holding-link img{width:48px;height:48px;object-fit:contain;flex:none}.profile-holding-box>small{display:block;color:#b7c9b8}@media(max-width:650px){.profile-holdings{grid-template-columns:1fr}}
#passport-title,.profile-holding-card h3,.profile-holding-card a{font-family:'Cinzel','Palatino Linotype',serif;font-weight:600;letter-spacing:.025em;text-wrap:balance}

View file

@ -26,3 +26,5 @@ test('specialist titles follow all seven traditions',async()=>{
for(const [home,arms] of [['kaladam','Master-at-Arms'],['giedermark','Arms Overseer'],['kaiterhof','Master of the Guard'],['sigmadraken_iv','Arsenal Director'],['arrakduin','Warleader']])assert.equal(clanTitles({home_world:home}).arms,arms);
assert.equal(clanTitles({institution:'spacing_guild',charterKind:'royal'}).heir,'Guildmaster-Designate');assert.equal(clanTitles({institution:'veiled_concord',charterKind:'royal'}).arms,'Weapons Master');
});
test('ceremonial names replace underscores without changing account identity',()=>{const person={username:'mr_blueray'};assert.equal(dynasticAddress(person,{name:'Unimatrix-Artreides'},{heir:'Ducal Heir'},'heir'),'Ducal Heir mr blueray of Unimatrix-Artreides');assert.equal(person.username,'mr_blueray');});