/* rafikiAOS Galaxy shell (r6): the HUD header, star sky, neighbour links and Galaxy footer of /g/css/galaxy.css, for pages that keep
   their own content stylesheets. Every rule is scoped to body.gx-shell and to the shell's own elements, so the page's own classes
   (.wrap, .hero, .grid, .btn, .status ...) are never touched. Values are copied from galaxy.css; tokens are prefixed --gx- so the page's own
   --ink/--accent/--muted keep working. */
body.gx-shell{--gx-void:#05030b;--gx-ink:#0c0818;--gx-ink2:#150e2a;--gx-line:rgba(190,170,255,.18);--gx-text:#efeaff;--gx-muted:#b6aedb;--gx-dim:#8a82b3;
  --gx-pink:#ff2d95;--gx-cyan:#19e6ff;--gx-violet:#a66bff;--gx-lime:#c6ff3d;--gx-amber:#ffb020;--gx-ice:#7da2ff;--gx-accent:#ff2d95;
  --gx-chrome-grad:linear-gradient(180deg,#ffffff 0%,#dfe4ff 22%,#8a84c9 47%,#2c2456 50%,#f3ecff 54%,#c3b2ff 78%,#ffffff 100%);
  --gx-f-display:"Unbounded","Arial Black",system-ui,sans-serif;--gx-f-body:"Space Grotesk",system-ui,-apple-system,"Segoe UI",sans-serif;
  --gx-f-mono:"JetBrains Mono",ui-monospace,Consolas,monospace;--gx-wrap:1320px;--gx-gut:clamp(16px,4vw,48px);--gx-hud:64px}
body.gx-shell[data-world=stage],.gx-shell [data-world=stage]{--gx-accent:#ff2d95}
body.gx-shell[data-world=rain],.gx-shell [data-world=rain]{--gx-accent:#19e6ff}
body.gx-shell[data-world=lab],.gx-shell [data-world=lab]{--gx-accent:#a66bff}
body.gx-shell[data-world=observatory],.gx-shell [data-world=observatory]{--gx-accent:#7da2ff}
body.gx-shell[data-world=arena],.gx-shell [data-world=arena]{--gx-accent:#c6ff3d}
body.gx-shell[data-world=bazaar],.gx-shell [data-world=bazaar]{--gx-accent:#ffb020}
body.gx-shell[data-world=port],.gx-shell [data-world=port]{--gx-accent:#e8e6ff}

/* the Galaxy background: the page's own background colour gives way to the star map's (html stays transparent so the sky canvas shows) */
html:has(>body.gx-shell){background:transparent!important;color-scheme:dark}
html body.gx-shell{margin:0;color:var(--gx-text);min-height:100vh;overflow-x:hidden;background:
  radial-gradient(900px 620px at 8% -6%,rgba(123,44,255,.42),transparent 62%),
  radial-gradient(760px 520px at 100% 4%,rgba(255,45,149,.20),transparent 62%),
  radial-gradient(1000px 700px at 62% 100%,rgba(25,230,255,.10),transparent 62%),
  var(--gx-void);background-attachment:fixed}
html body.gx-shell::before{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;opacity:1;
  background:radial-gradient(700px 480px at 82% 24%,color-mix(in srgb,var(--gx-accent) 22%,transparent),transparent 65%)}
html body.gx-shell::after{content:"";position:fixed;inset:0;z-index:50;pointer-events:none;opacity:.05;
  background:repeating-linear-gradient(0deg,#fff 0 1px,transparent 1px 3px)}
@media (prefers-reduced-motion:no-preference){html body.gx-shell::before{animation:gx-breathe 9s ease-in-out infinite alternate}}
@keyframes gx-breathe{from{opacity:.65}to{opacity:1}}
.gx-shell #sky.gx-sky{position:fixed;inset:0;width:100%;height:100%;z-index:-2;pointer-events:none;display:block}
.gx-shell .gx-defs{position:absolute;width:0;height:0;overflow:hidden}

/* HUD */
.gx-shell .hud,.gx-shell .hud *,.gx-shell .hud *::before,.gx-shell .hud *::after,
.gx-shell .gaz,.gx-shell .gaz *,.gx-shell nav.flight,.gx-shell nav.flight *{box-sizing:border-box}
.gx-shell .hud{position:sticky;top:0;z-index:40;display:flex;align-items:center;gap:10px;height:var(--gx-hud);margin:0;padding:0 var(--gx-gut);
  background:linear-gradient(180deg,rgba(5,3,11,.92),rgba(5,3,11,.72));backdrop-filter:blur(10px);border:0;border-bottom:1px solid var(--gx-line);
  font:400 17px/1.6 var(--gx-f-body);color:var(--gx-text);text-align:left;max-width:none;width:auto;box-shadow:none}
.gx-shell .hud .brand{display:flex;align-items:center;gap:10px;color:var(--gx-text);text-decoration:none;font:800 17px/1 var(--gx-f-display);white-space:nowrap;letter-spacing:normal;text-transform:none;background:none;padding:0;margin:0}
.gx-shell .hud .brand svg{width:30px;height:30px;display:block;max-width:100%;flex:none}
.gx-shell .hud .brand span{color:inherit;font:inherit}
.gx-shell .hud .brand small{font:500 10px/1 var(--gx-f-mono);letter-spacing:.2em;text-transform:uppercase;color:var(--gx-dim);margin-left:4px}
.gx-shell .hud .hud-tools{display:flex;gap:5px;align-items:center}
.gx-shell .hud .hud-tools a,.gx-shell .hud .hud-tools button{font:500 12px/1 var(--gx-f-mono);letter-spacing:.06em;text-transform:uppercase;color:var(--gx-text);background:transparent;
  border:1px solid var(--gx-line);border-radius:999px;padding:9px 10px;text-decoration:none;cursor:pointer;white-space:nowrap;min-height:0;box-shadow:none;margin:0}
.gx-shell .hud .hud-tools a:hover,.gx-shell .hud .hud-tools button:hover{border-color:#fff}
.gx-shell .hud .hud-tools .txt{font-weight:700}
.gx-shell .hud .hud-tools button[aria-pressed=true]{background:var(--gx-cyan);color:#05030b;border-color:var(--gx-cyan)}
.gx-shell .hud .hud-tools button#rcpt[aria-pressed=true]{background:var(--gx-lime);color:#05030b;border-color:var(--gx-lime)}
.gx-shell .hud a:focus-visible,.gx-shell .hud button:focus-visible,.gx-shell .gaz a:focus-visible,.gx-shell nav.flight a:focus-visible{outline:3px solid var(--gx-cyan);outline-offset:3px;border-radius:6px}
@media (max-width:1560px){.gx-shell .hud .brand small{display:none}}
@media (max-width:1100px){
  body.gx-shell{--gx-hud:96px}
  .gx-shell .hud{flex-wrap:wrap;gap:0 10px;align-content:center}
  .gx-shell .hud .hud-tools{margin-left:auto}
  .gx-shell .hud .hud-tools #rcpt,.gx-shell .hud .hud-tools .txt{display:none}
}
@media (max-width:1199px){.gx-shell .hud{backdrop-filter:none;background:rgba(5,3,11,.96)}html body.gx-shell{background-attachment:scroll}}

/* neighbour worlds (the HUD pages' flight links) */
.gx-shell nav.flight{display:grid;grid-template-columns:1fr 1fr;gap:14px;max-width:var(--gx-wrap);margin:30px auto 70px;padding:0 var(--gx-gut);font:400 17px/1.6 var(--gx-f-body)}
.gx-shell nav.flight a{display:block;padding:22px;border:1px solid var(--gx-line);border-radius:18px;text-decoration:none;color:#fff;background:rgba(9,6,20,.7);border-bottom:3px solid var(--gx-accent)}
.gx-shell nav.flight a:hover{background:color-mix(in srgb,var(--gx-accent) 16%,rgba(9,6,20,.7));color:#fff}
.gx-shell nav.flight small{display:block;font:500 11px var(--gx-f-mono);letter-spacing:.2em;text-transform:uppercase;color:var(--gx-accent);margin-bottom:8px}
.gx-shell nav.flight b{font:800 clamp(16px,2vw,26px)/1.1 var(--gx-f-display);text-transform:uppercase;color:#fff}
.gx-shell nav.flight a:last-child{text-align:right}
.gx-shell nav.flight a.lg::after,.gx-shell .lg-demo{content:"classic";display:inline-block;font:500 9px/1 var(--gx-f-mono);letter-spacing:.12em;text-transform:uppercase;color:var(--gx-dim);border:1px solid var(--gx-line);border-radius:3px;padding:2px 4px;margin-left:6px;vertical-align:middle;white-space:nowrap}

/* Galaxy footer */
.gx-shell footer.gaz{display:block;border:0;border-top:1px solid var(--gx-line);background:rgba(5,3,11,.85);margin:0;padding:46px 0 34px;font:400 14px/1.6 var(--gx-f-body);color:var(--gx-text);text-align:left;max-width:none}
.gx-shell footer.gaz>.gx-wrap{max-width:var(--gx-wrap);margin:0 auto;padding:0 var(--gx-gut)}
.gx-shell .gaz .gaz-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:22px}
@media (max-width:1100px){.gx-shell .gaz .gaz-grid{grid-template-columns:repeat(4,1fr)}}
@media (max-width:640px){.gx-shell .gaz .gaz-grid{grid-template-columns:repeat(2,1fr)}}
.gx-shell footer.gaz h2{font:700 12px/1.2 var(--gx-f-display);letter-spacing:.08em;text-transform:uppercase;margin:0 0 10px;padding:0;color:var(--gx-accent);text-shadow:none;background:none;-webkit-text-fill-color:currentColor;border:0;filter:none}
.gx-shell footer.gaz h2::before,.gx-shell footer.gaz h2::after{content:none}
.gx-shell footer.gaz ul{list-style:none;margin:0;padding:0}
.gx-shell footer.gaz li{margin:0;padding:0}
.gx-shell footer.gaz li::before{content:none}
.gx-shell footer.gaz li a{display:inline-block;padding:6px 0}
.gx-shell footer.gaz a{color:var(--gx-muted);text-decoration:none;background:none;border:0;font:inherit}
.gx-shell footer.gaz a:hover{color:#fff;text-decoration:underline}
.gx-shell footer.gaz p{margin:0 0 1em}
.gx-shell footer.gaz .keys-line{font:500 11px/2 var(--gx-f-mono);letter-spacing:.08em;color:var(--gx-dim);margin:18px 0 0}
.gx-shell footer.gaz .lg-legend{display:block!important;margin:18px 0 0}
.gx-shell footer.gaz kbd{font:700 11px var(--gx-f-mono);border:1px solid var(--gx-line);border-bottom-width:3px;border-radius:5px;padding:2px 6px;color:#fff;background:none}
@media (max-width:1199px){.gx-shell footer.gaz .keys-line:not(.lg-legend){display:none}}
.gx-shell footer.gaz .fine{display:flex;flex-wrap:wrap;gap:8px 26px;justify-content:space-between;margin-top:34px;padding-top:20px;border-top:1px solid var(--gx-line);color:var(--gx-dim);font:500 12px/1.6 var(--gx-f-mono)}
.gx-shell footer.gaz .fine a{display:inline-block;padding:6px 2px;color:var(--gx-muted)}
/* the links and lines this page's earlier header and footer carried, kept here so none is lost */
.gx-shell footer.gaz .gaz-local{margin:0 0 34px;padding:0 0 26px;border-bottom:1px solid var(--gx-line)}
.gx-shell footer.gaz .gaz-local ul{display:flex;flex-wrap:wrap;gap:4px 22px}
.gx-shell footer.gaz .gaz-note{color:var(--gx-muted);margin:10px 0 0;max-width:90ch}
.gx-shell footer.gaz .gaz-note *{color:inherit;font:inherit;max-width:100%}
.gx-shell footer.gaz .gaz-note a{color:var(--gx-text);text-decoration:underline;text-underline-offset:3px;display:inline;padding:0}
.gx-shell footer.gaz .gaz-note p{margin:0 0 .6em}
.gx-shell footer.gaz .gaz-note div,.gx-shell footer.gaz .gaz-note nav{display:block;margin:0 0 .6em;padding:0;background:none;border:0;max-width:none}
.gx-shell footer.gaz .gaz-note .brand{display:inline;font-weight:700}
@media print{.gx-shell .hud,.gx-shell nav.flight,.gx-shell footer.gaz,.gx-shell #sky.gx-sky{display:none!important}}
.gx-shell footer.gaz .gaz-more{display:flex;flex-wrap:wrap;gap:2px 18px;align-items:baseline;margin:30px 0 0;padding-top:18px;border-top:1px solid var(--gx-line);font:500 13px/1.6 var(--gx-f-mono)}
.gx-shell footer.gaz .gaz-more b{font:700 12px/1.2 var(--gx-f-display);letter-spacing:.08em;text-transform:uppercase;color:var(--gx-text);margin-right:6px}
.gx-shell footer.gaz .gaz-more a{display:inline-block;padding:6px 0;color:var(--gx-muted)}
/* vet r6 #9: the in-page links an earlier header carried ("On this page"), now a slim bar under the HUD */
.gx-shell nav.gx-subnav{display:flex;align-items:center;gap:4px 18px;overflow-x:auto;scrollbar-width:none;max-width:var(--gx-wrap);margin:0 auto;padding:10px var(--gx-gut);border-bottom:1px solid var(--gx-line);font:500 12px/1.4 var(--gx-f-mono);letter-spacing:.1em;text-transform:uppercase;background:none}
.gx-shell nav.gx-subnav::-webkit-scrollbar{display:none}
.gx-shell nav.gx-subnav .gx-subnav-k{color:var(--gx-dim);white-space:nowrap}
.gx-shell nav.gx-subnav a{color:var(--gx-muted);text-decoration:none;white-space:nowrap;padding:8px 0}
.gx-shell nav.gx-subnav a:hover{color:#fff}
.gx-shell nav.gx-subnav a:focus-visible{outline:3px solid var(--gx-cyan);outline-offset:3px;border-radius:6px}
@media (max-width:640px){.gx-shell nav.gx-subnav{flex-wrap:wrap;overflow:visible;gap:0 14px;padding-block:6px}.gx-shell nav.gx-subnav .gx-subnav-k{width:100%;padding-top:4px}}

/* r7 (r6 revet2): in-page anchors land below the sticky HUD (64 px, 96 px when it wraps) */
html:has(>body.gx-shell){scroll-padding-top:76px}
@media (max-width:1100px){html:has(>body.gx-shell){scroll-padding-top:108px}}
