/* NOTE: CSS custom properties (var(--x)) are valid modern CSS. If your editor flags them, it’s an outdated linter — the browser will still render correctly. */
/* sleep HUB — OPEN-AIR NAVI MARKET (v9)
   New:
   - Micro ring circles that deploy around core in focus mode.
   - Perf auto-mode (drops expensive effects when FPS stays low).
   - More secondary motion + cleaner panel docking (kept from v8).
*/

:root{
  --ink:#0c1220;
  --muted: rgba(30,45,70,.64);

  --bgA:#f8fbff;
  --bgB:#dfe8f5;
  --accent:#5aa7ff;
  --accent2:#9be2ff;

  --panelA: rgba(255,255,255,.90);
  --panelB: rgba(238,244,253,.72);
  --line: rgba(120,140,175,.36);

  --shadow: 0 24px 80px rgba(7,16,30,.16);
  --shadow2: 0 10px 22px rgba(7,16,30,.12);

  --radius: 16px;
  --topH: 0px;
  --tickH: 0px;

  --hx: 0px;
  --hy: 0px;
}


html{ box-sizing:border-box; }
*,*::before,*::after{ box-sizing:inherit; }
html[data-theme="magenta"]{
  --bgA:#fff7fc;
  --bgB:#ead9f0;
  --accent:#ff4bd6;
  --accent2:#7dd6ff;

  --panelA: rgba(255,255,255,.90);
  --panelB: rgba(245,232,250,.70);
  --line: rgba(160,120,175,.40);
}

html[data-theme="obsidian"]{
  --ink:#e7eefc;
  --muted: rgba(220,235,255,.60);

  --bgA:#070b12;
  --bgB:#0d1526;
  --accent:#7dd6ff;
  --accent2:#ff4bd6;

  --panelA: rgba(16,24,40,.82);
  --panelB: rgba(9,12,20,.64);
  --line: rgba(150,190,255,.22);

  --shadow: 0 26px 90px rgba(0,0,0,.55);
  --shadow2: 0 12px 28px rgba(0,0,0,.40);
}
html,body{ height:100%; }

.srOnly{
  position:absolute;
  width:1px; height:1px;
  padding:0; margin:-1px;
  overflow:hidden;
  clip: rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

body{
  margin:0;
  color:var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  overflow:hidden;
  background:
    radial-gradient(1200px 780px at 60% 8%, rgba(90,167,255,.20), transparent 66%),
    radial-gradient(900px 620px at 18% 40%, rgba(155,226,255,.16), transparent 64%),
    linear-gradient(180deg, var(--bgA), var(--bgB));
}

/* overlays (toggle via body classes) */
body:not(.scan-off):before{
  content:"";
  position:fixed; top:0; right:0; bottom:0; left:0;
  pointer-events:none;
  opacity:.38;
  mix-blend-mode: overlay;
  background:
    repeating-linear-gradient(180deg,
      rgba(0,0,0,.02) 0px, rgba(0,0,0,.02) 1px,
      rgba(255,255,255,0) 6px, rgba(255,255,255,0) 12px
    );
}
body:not(.noise-off):after{
  content:"";
  position:fixed; top:0; right:0; bottom:0; left:0;
  pointer-events:none;
  opacity:.11;
  mix-blend-mode: overlay;
  background-image:
    radial-gradient(circle at 12% 25%, rgba(0,0,0,.20) 0 1px, transparent 2px),
    radial-gradient(circle at 38% 65%, rgba(0,0,0,.14) 0 1px, transparent 2px),
    radial-gradient(circle at 76% 18%, rgba(0,0,0,.18) 0 1px, transparent 2px),
    radial-gradient(circle at 88% 72%, rgba(0,0,0,.12) 0 1px, transparent 2px),
    radial-gradient(circle at 55% 40%, rgba(0,0,0,.14) 0 1px, transparent 2px);
  filter: blur(.25px);
}

/* PERF MODE: drop expensive stuff */
body.perf:before, body.perf:after{ opacity:0 ; }
body.perf .hero:after{ opacity:.25 ; }
body.perf .ring, body.perf .panel, body.perf .topbar, body.perf .cornerCap, body.perf .ticker{
  backdrop-filter: none ;
}
body.perf .coin, body.perf .nodeFx, body.perf .coreFx, body.perf .micro{
  animation: none ;
}
body.perf .hero{ transform: translate3d(0,0,0) ; }
body.perf .panel{ box-shadow: 0 18px 55px rgba(0,0,0,.12) ; }
body.perf .ring{ box-shadow: 0 12px 34px rgba(0,0,0,.10), inset 0 1px 0 rgba(255,255,255,.70) ; }

/* TOPBAR */
.topbar{
  position:fixed; top:0; right:0; bottom:auto; left:0;
  height:var(--topH);
  display:flex; align-items:center; gap:12px;
  padding:0 14px;
  z-index:50;
  background: linear-gradient(180deg, rgba(255,255,255,.84), rgba(238,242,249,.70));
  border-bottom:1px solid var(--line);
  box-shadow: 0 8px 28px rgba(0,0,0,.06);
  backdrop-filter: blur(10px);
}
.brand{
  display:flex; align-items:center; gap:10px;
  padding:9px 12px;
  border-radius:999px;
  border:1px solid var(--line);
  background: linear-gradient(180deg, var(--panelA), var(--panelB));
  box-shadow: var(--shadow2);
  user-select:none;
}
.brand b{ letter-spacing:.20em; text-transform:uppercase; font-size:12px; }
.brand .sub{ color:var(--muted); font-size:12px; letter-spacing:.06em; }
.dot{
  width:8px;height:8px;border-radius:999px;
  background: radial-gradient(circle at 35% 35%, #fff, var(--accent));
  box-shadow: 0 0 0 3px rgba(90,167,255,.14);
}
.topTools{ display:flex; align-items:center; gap:8px; }
.sep{ width:1px; height:18px; background: rgba(120,140,175,.30); margin:0 6px; }
.tool{
  padding:9px 10px;
  border-radius: 999px;
  border:1px solid rgba(120,140,175,.30);
  background: linear-gradient(180deg, var(--panelA), var(--panelB));
  box-shadow: var(--shadow2);
  font-size:11px;
  letter-spacing:.16em;
  text-transform:uppercase;
  color: rgba(10,18,32,.92);
  cursor:pointer;
  user-select:none;
}
.tool[aria-pressed="false"]{ opacity:.64; filter:saturate(.8); }
.tool:hover{ filter:brightness(1.02); }
.tool:active{ transform: translateY(1px); }
.status{
  margin-left:auto;
  display:flex; align-items:center; gap:8px;
  user-select:none;
}
.pill{
  padding:8px 10px;
  border-radius:999px;
  border:1px solid rgba(120,140,175,.30);
  background: linear-gradient(180deg, rgba(255,255,255,.70), rgba(255,255,255,.22));
  box-shadow: var(--shadow2);
  color: rgba(30,45,70,.72);
  letter-spacing:.10em;
  text-transform:uppercase;
  font-size:11px;
  white-space:nowrap;
}
.pill b{ color: rgba(10,18,32,.92); }
.mono{ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace; }

/* STAGE */
.stage{
  position:fixed;
  top:var(--topH); right:0; bottom:0; left:0;
  overflow:hidden;
}
.hero{
  position:absolute; top:-8px; right:-8px; bottom:-8px; left:-8px;
  background:
    url("../RENDERS/hero.png") center/cover no-repeat,
    radial-gradient(1200px 800px at 70% 20%, rgba(90,167,255,.14), transparent 60%),
    radial-gradient(900px 700px at 22% 70%, rgba(155,226,255,.12), transparent 60%);
  filter: contrast(1.02) saturate(1.02);
  transform: translate3d(var(--hx), var(--hy), 0);
  will-change: transform;
}
.hero:after{
  content:"";
  position:absolute; top:0; right:0; bottom:0; left:0;
  background:
    linear-gradient(120deg, rgba(255,255,255,.34), rgba(255,255,255,0) 44%),
    radial-gradient(650px 340px at 18% 10%, rgba(255,255,255,.42), transparent 60%),
    repeating-linear-gradient(180deg, rgba(255,255,255,.06) 0px, rgba(255,255,255,.06) 1px, rgba(255,255,255,0) 8px, rgba(255,255,255,0) 16px);
  opacity:.9;
  mix-blend-mode: overlay;
}

/* corner caption */
.cornerCap{
  position:absolute;
  left:14px; bottom: calc(var(--tickH) + 14px);
  width:min(520px, 62vw);
  z-index:10;
  border-radius: var(--radius);
  border:1px solid var(--line);
  background: linear-gradient(180deg, var(--panelA), var(--panelB));
  box-shadow: var(--shadow2);
  padding:12px 12px 12px 14px;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
  backdrop-filter: blur(10px);
}
.ccTitle{
  font-size:12px;
  letter-spacing:.20em;
  text-transform:uppercase;
  color: rgba(10,18,32,.92);
}
.ccText{ margin-top:6px; font-size:12px; color:var(--muted); letter-spacing:.04em; }
.ccTiny{ margin-top:8px; font-size:11px; color: rgba(30,45,70,.66); letter-spacing:.08em; }

/* NODES */
.node, .hubCore{
  position:absolute;
  border:0;
  padding:0;
  background: transparent;
  cursor:pointer;
  user-select:none;

  transform: translate(-50%,-50%);
  transition:
    transform 760ms cubic-bezier(.2,.95,.2,1),
    opacity 520ms ease,
    filter 220ms ease;
  opacity:1;
  will-change: transform;
}
.node{
  width: 170px;
  height: 170px;
  z-index:20;
}
.node:focus-visible{
  outline: 2px solid rgba(90,167,255,.55);
  outline-offset: 4px;
  border-radius: 999px;
}
.node:hover{ filter: brightness(1.03); }
.node:active{ transform: translate(-50%,-50%) scale(.985); }

.nodeFx{
  position:absolute; top:0; right:0; bottom:0; left:0;
  transform: translate3d(0,0,0);
  will-change: transform;
  animation: none;
}
body.ready:not(.focus):not(.perf) .node .nodeFx{
  animation: nodeFloat 7.2s ease-in-out infinite;
  animation-delay: var(--fd, 0ms);
}
@keyframes nodeFloat{
  0%,100%{ transform: translate3d(0,0,0); }
  50%{ transform: translate3d(0,-10px,0); }
}

.ring{
  position:absolute; top:0; right:0; bottom:0; left:0;
  border-radius: 999px;
  border: 1px solid rgba(120,140,175,.34);
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.80), rgba(255,255,255,.20) 44%, rgba(255,255,255,0) 66%);
  box-shadow: 0 18px 50px rgba(0,0,0,.10), inset 0 1px 0 rgba(255,255,255,.70);
  backdrop-filter: blur(8px);
}
.ring:before{
  content:"";
  position:absolute; top:10px; right:10px; bottom:10px; left:10px;
  border-radius:999px;
  border:1px dashed rgba(120,140,175,.28);
  opacity:.9;
}
.ring:after{
  content:"";
  position:absolute; top:0; right:0; bottom:0; left:0;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.45);
  box-shadow: 0 0 0 6px rgba(90,167,255,.10);
  opacity:.9;
  pointer-events:none;
}
.label{
  position:absolute;
  left:50%; top:56%;
  transform: translate(-50%,-50%);
  font-size:12px;
  letter-spacing:.22em;
  text-transform:uppercase;
  color: rgba(10,18,32,.92);
  padding:10px 12px;
  border-radius:999px;
  border:1px solid rgba(120,140,175,.28);
  background: linear-gradient(180deg, rgba(255,255,255,.74), rgba(255,255,255,.18));
  box-shadow: var(--shadow2);
}
.hint{
  position:absolute;
  left:50%; top:72%;
  transform: translate(-50%,-50%);
  font-size:11px;
  letter-spacing:.08em;
  color: var(--muted);
  white-space:nowrap;
  opacity:.92;
}

/* intro animation */
body.loading .node{
  opacity:0;
  transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(.82);
}
body.ready .node{
  opacity:1;
  transform: translate(-50%,-50%) scale(1);
}

/* Collapse with stagger in focus */
body.focus .node{
  pointer-events:none;
  transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(.74);
  opacity:0;
  transition-delay: var(--sd, 0ms);
  transition-duration: 540ms;
  transition-timing-function: cubic-bezier(.18,.92,.2,1);
}

/* Explode feel */
body.explode .node{
  transition-timing-function: cubic-bezier(.16,1.22,.34,1);
}

/* Hub core (focus) */
.hubCore{
  width: 190px;
  height: 190px;
  left:50%; top:50%;
  z-index:28;

  transform: translate(-50%,-50%) scale(.92);
  opacity:0;
  pointer-events:none;
  transition: transform 420ms cubic-bezier(.2,.95,.2,1), opacity 220ms ease;
}
.coreFx{ animation:none; }
body.focus .hubCore{
  opacity:1;
  pointer-events:auto;
  transform: translate(-50%,-50%) scale(1);
}
body.focus:not(.perf) .hubCore .coreFx{
  animation: corePulse 2.4s ease-in-out infinite;
}
@keyframes corePulse{
  0%,100%{ transform: translate3d(0,0,0) scale(1); }
  50%{ transform: translate3d(0,-2px,0) scale(1.015); }
}

/* MICRO RING */
.microRing{
  position:absolute;
  left:0; top:0; right:0; bottom:0;
  pointer-events:none;
  z-index:29;
}
.micro{
  position:absolute;
  left: var(--cx, 50%);
  top:  var(--cy, 50%);
  width: 66px;
  height: 66px;
  border-radius: 999px;
  border:1px solid rgba(120,140,175,.30);
  background:
    radial-gradient(circle at 35% 30%, rgba(255,255,255,.86), rgba(255,255,255,.22) 56%, rgba(255,255,255,0) 80%),
    radial-gradient(circle at 60% 68%, rgba(90,167,255,.22), transparent 60%);
  box-shadow: 0 14px 40px rgba(0,0,0,.12), inset 0 1px 0 rgba(255,255,255,.75);
  transform: translate(-50%,-50%) translate3d(0,0,0) scale(.30);
  opacity:0;
  transition:
    transform 520ms cubic-bezier(.18,.92,.20,1),
    opacity 280ms ease;
  will-change: transform, opacity;
  cursor:pointer;
  pointer-events:auto;
  user-select:none;
}
.micro:before{
  content:"";
  position:absolute; top:7px; right:7px; bottom:7px; left:7px;
  border-radius:999px;
  border:1px dashed rgba(120,140,175,.24);
  opacity:.95;
}
.micro .mLab{
  position:absolute;
  left:50%; top:52%;
  transform: translate(-50%,-50%);
  font-size:10px;
  letter-spacing:.22em;
  text-transform:uppercase;
  color: rgba(10,18,32,.90);
  padding:8px 10px;
  border-radius:999px;
  border:1px solid rgba(120,140,175,.22);
  background: linear-gradient(180deg, rgba(255,255,255,.72), rgba(255,255,255,.16));
  box-shadow: var(--shadow2);
  white-space:nowrap;
}
.micro .mSub{
  position:absolute;
  left:50%; top:74%;
  transform: translate(-50%,-50%);
  font-size:10px;
  letter-spacing:.06em;
  color: var(--muted);
  white-space:nowrap;
  opacity:.9;
}
body.focus.microActive .micro{
  opacity:1;
  transform: translate(-50%,-50%) translate3d(var(--mx), var(--my), 0) scale(1);
}
body.focus.microActive .micro{ transition-delay: var(--md, 0ms); }
body.focus.microExit .micro{
  opacity:0;
  transform: translate(-50%,-50%) translate3d(0,0,0) scale(.25);
  transition-duration: 340ms;
  transition-timing-function: cubic-bezier(.4,0,.2,1);
}

/* decorative coins */
.coin{
  position:absolute;
  width:12px; height:12px;
  border-radius:999px;
  border:1px solid rgba(120,140,175,.30);
  background: radial-gradient(circle at 35% 35%, #fff, var(--accent));
  box-shadow: 0 0 0 4px rgba(90,167,255,.10);
  opacity:.80;
  z-index:12;
  animation: drift 7s ease-in-out infinite;
}
body.perf .coin{ opacity:.45; }
@keyframes drift{ 0%,100%{ transform: translateY(0px);} 50%{ transform: translateY(-14px);} }
.c1{ left: 10%; top: 44%; animation-delay:0ms; }
.c2{ left: 42%; top: 18%; animation-delay:280ms; }
.c3{ left: 64%; top: 78%; animation-delay:560ms; }
.c4{ left: 92%; top: 32%; animation-delay:820ms; }

/* PANEL */
.panel{
  position:absolute;
  left:50%; top:50%;
  width:min(520px, 86vw);
  max-height: min(520px, 68vh);
  border-radius: var(--radius);
  border:1px solid var(--line);
  background: linear-gradient(180deg, var(--panelA), var(--panelB));
  box-shadow: var(--shadow);
  overflow:hidden;
  z-index:30;
  opacity:0;
  pointer-events:none;

  /* entry motion driven by vars */
  --x: 0px;
  --y: 16px;
  --s: .985;
  transform: translate(-50%,-50%) translate3d(var(--x), var(--y), 0) scale(var(--s));
  transition: transform 360ms cubic-bezier(.16,1.12,.30,1), opacity 240ms ease;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
  will-change: transform, opacity;
  backdrop-filter: blur(10px);
}
.panel.open{
  opacity:1;
  pointer-events:auto;
  --x: 0px;
  --y: 0px;
  --s: 1;
  box-shadow: 0 22px 70px rgba(0,0,0,.14), inset 0 1px 0 rgba(255,255,255,.72);
}
 .panel.dock-right{ transform-origin: 0% 50%; }
 .panel.dock-left{ transform-origin: 100% 50%; }
.panel.min .panelBody{ display:none; }
.panel.min{ max-height: none; width:min(460px, 86vw); }
.panelHead{
  height: 40px;
  display:flex; align-items:center; justify-content:space-between;
  padding:0 10px 0 12px;
  border-bottom:1px solid rgba(120,140,175,.28);
  background: linear-gradient(180deg, rgba(255,255,255,.72), rgba(255,255,255,.24));
}
.phLeft{ display:flex; align-items:center; gap:10px; min-width:0; }
.pchip{
  width:10px; height:10px;
  border-radius:999px;
  background: radial-gradient(circle at 35% 35%, #fff, var(--accent));
  box-shadow: 0 0 0 3px rgba(90,167,255,.12);
}
.ptitle{
  font-size:12px;
  letter-spacing:.18em;
  text-transform:uppercase;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  color: rgba(10,18,32,.92);
}
.phRight{ display:flex; align-items:center; gap:8px; }
.pbtn{
  width:26px; height:26px;
  border-radius: 10px;
  border:1px solid rgba(120,140,175,.28);
  background: linear-gradient(180deg, rgba(255,255,255,.72), rgba(255,255,255,.20));
  cursor:pointer;
  color: rgba(10,18,32,.82);
}
.pbtn:hover{ filter:brightness(1.03); }
.pbtn:active{ transform: translateY(1px); }
.panelBody{
  padding:12px;
  overflow:auto;
  max-height: calc(min(520px, 68vh) - 40px);
  color: rgba(10,18,32,.92);
}

/* content helpers */
.h{ font-size:12px; letter-spacing:.20em; text-transform:uppercase; margin:0 0 10px 0; }
.p{ margin:0 0 10px 0; color:var(--muted); font-size:12px; line-height:1.45; }
.card{
  border-radius: 14px;
  border:1px solid rgba(120,140,175,.28);
  background: linear-gradient(180deg, rgba(255,255,255,.70), rgba(255,255,255,.22));
  box-shadow: var(--shadow2);
  padding:10px;
}
.row{ display:flex; gap:10px; flex-wrap:wrap; }
.badge{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size:11px;
  letter-spacing:.12em;
  text-transform:uppercase;
  padding:7px 10px;
  border-radius:999px;
  border:1px solid rgba(120,140,175,.30);
  background: linear-gradient(180deg, rgba(255,255,255,.68), rgba(255,255,255,.20));
}

/* TICKER */
.ticker{
  position:absolute;
  left:14px; right:14px; bottom:12px;
  height: var(--tickH);
  border-radius: var(--radius);
  border:1px solid var(--line);
  background: linear-gradient(180deg, var(--panelA), var(--panelB));
  box-shadow: var(--shadow2);
  display:flex; align-items:center; gap:10px;
  padding:0 12px;
  overflow:hidden;
  z-index:40;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
  backdrop-filter: blur(10px);
}
.ticker .tag{
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(120,140,175,.30);
  background: linear-gradient(180deg, rgba(255,255,255,.68), rgba(255,255,255,.20));
  color: rgba(10,18,32,.90);
  font-size:11px;
  letter-spacing:.14em;
  text-transform:uppercase;
}
.ticker .msg{
  flex:1;
  font-size:12px;
  letter-spacing:.04em;
  color:var(--muted);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}


/* LOADER (Flash-era HUD strip) */
:root{
  --hudLoop: 1.8s;
  --hudCyan: rgba(70, 165, 255, 0.95);
  --hudCyanSoft: rgba(70, 165, 255, 0.40);
  --hudInk: rgba(20, 35, 60, 0.88);
}

.loader{
  position:fixed; inset:0;
  z-index:9999;
  display:grid; place-items:center;
  background:
    radial-gradient(1200px 700px at 50% 25%, rgba(120, 190, 255, .22), transparent 62%),
    linear-gradient(180deg, #ffffff, #f6fbff);
  opacity:1;
  transition: opacity .38s ease, visibility .38s ease;
}
.loader.hidden{ opacity:0; visibility:hidden; pointer-events:none; }

.hudLoader{
  width:min(560px, 92vw);
  transform: translateY(-6px);
}

.hudPlate{
  position:relative;
  border-radius: 14px;
  padding: 14px 16px 12px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.92), rgba(245,250,255,.92));
  border: 1px solid rgba(140, 160, 195, .55);
  box-shadow:
    0 22px 70px rgba(0,0,0,.14),
    inset 0 1px 0 rgba(255,255,255,.75);
  overflow:hidden;
}

/* scanlines + subtle moving noise */
.hudPlate::before{
  content:"";
  position:absolute; inset:0;
  background:
    repeating-linear-gradient(180deg,
      rgba(0,0,0,.035) 0px,
      rgba(0,0,0,.020) 1px,
      rgba(255,255,255,0) 7px,
      rgba(255,255,255,0) 14px
    );
  opacity:.38;
  mix-blend-mode:multiply;
  pointer-events:none;
}
.hudPlate::after{
  content:"";
  position:absolute; inset:-40%;
  background:
    radial-gradient(circle at 30% 40%, rgba(120,190,255,.15), transparent 45%),
    radial-gradient(circle at 70% 60%, rgba(120,190,255,.12), transparent 48%),
    linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.35), rgba(255,255,255,0));
  opacity:.30;
  transform: translateX(-30%);
  animation: hudSheen var(--hudLoop) linear infinite;
  pointer-events:none;
}
@keyframes hudSheen{
  0%{ transform: translateX(-35%); }
  100%{ transform: translateX(35%); }
}

.hudTopRow{
  display:flex; align-items:center; gap:10px;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  letter-spacing: .18em;
  font-size: 12px;
  color: var(--hudInk);
  text-transform: uppercase;
  user-select:none;
}
.hudLed{
  width:10px; height:10px; border-radius:50%;
  background: radial-gradient(circle at 35% 35%, rgba(255,255,255,.95), var(--hudCyan) 55%, rgba(20,90,160,.55) 100%);
  box-shadow: 0 0 0 3px rgba(90, 170, 255, .18), 0 0 16px rgba(90,170,255,.45);
}
.hudWord{ font-weight: 650; }
.hudCode{
  margin-left:auto;
  font-size: 11px;
  letter-spacing:.22em;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(140,160,195,.55);
  background: rgba(255,255,255,.55);
}

.hudTrack{
  position:relative;
  margin-top: 12px;
  height: 26px;
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(235,245,255,.95), rgba(255,255,255,.88));
  border: 1px solid rgba(140,160,195,.45);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
  overflow:hidden;
}

/* drifting ticks (data) */
.hudTicks{
  position:absolute; inset:0;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(70,165,255,.0) 0px,
      rgba(70,165,255,.0) 10px,
      rgba(70,165,255,.28) 10px,
      rgba(70,165,255,.28) 12px,
      rgba(70,165,255,.0) 12px,
      rgba(70,165,255,.0) 24px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(255,255,255,0) 0px,
      rgba(255,255,255,0) 42px,
      rgba(255,255,255,.40) 42px,
      rgba(255,255,255,.40) 44px,
      rgba(255,255,255,0) 44px,
      rgba(255,255,255,0) 88px
    );
  opacity:.9;
  transform: translateX(0);
  animation: hudTicks var(--hudLoop) linear infinite;
  filter: saturate(1.05);
}
@keyframes hudTicks{
  0%{ transform: translateX(-22%); opacity:.78; }
  40%{ opacity:1; }
  100%{ transform: translateX(22%); opacity:.78; }
}

/* scanning head */
.hudScanner{
  position:absolute; top:-18px; bottom:-18px;
  width: 64px;
  left:-80px;
  background:
    linear-gradient(90deg,
      rgba(255,255,255,0) 0%,
      rgba(255,255,255,.70) 40%,
      rgba(120,190,255,.55) 55%,
      rgba(255,255,255,0) 100%
    );
  filter: blur(.2px);
  opacity:.9;
  animation: hudScan var(--hudLoop) cubic-bezier(.33,0,.2,1) infinite;
  mix-blend-mode: screen;
}
@keyframes hudScan{
  0%{ transform: translateX(0); }
  100%{ transform: translateX(740px); }
}

.hudBottomRow{
  display:flex; align-items:center;
  gap:10px;
  margin-top: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 11px;
  color: rgba(25, 40, 70, .78);
  user-select:none;
}
.hudMicro{ opacity:.95; }
.hudDots{
  margin-left:auto;
  width: 34px; height: 10px;
  background:
    radial-gradient(circle, rgba(70,165,255,.9) 38%, rgba(70,165,255,0) 40%) 0 50%/10px 10px no-repeat,
    radial-gradient(circle, rgba(70,165,255,.9) 38%, rgba(70,165,255,0) 40%) 12px 50%/10px 10px no-repeat,
    radial-gradient(circle, rgba(70,165,255,.9) 38%, rgba(70,165,255,0) 40%) 24px 50%/10px 10px no-repeat;
  opacity:.85;
  animation: hudDots 1.05s steps(3) infinite;
}
@keyframes hudDots{
  0%{ filter: brightness(1); opacity:.55; }
  33%{ filter: brightness(1.15); opacity:.85; }
  66%{ filter: brightness(1.25); opacity:1; }
  100%{ filter: brightness(1); opacity:.55; }
}

/* screen-reader only */
.srOnly{
  position:absolute !important;
  width:1px; height:1px;
  padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0);
  white-space:nowrap; border:0;
}



/* mobile */
@media (max-width: 820px){
  .status{ display:none; }
  .node{ width: 150px; height: 150px; }
  .hubCore{ width: 170px; height: 170px; }
  .cornerCap{ width: calc(100% - 28px); }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce){
  .scanPulse, .orb, .coin, .nodeFx, .coreFx{ animation:none ; }
  .node, .hubCore, .panel, .loader, .micro{ transition:none ; }
  .hero{ transform:none ; }
}


/* v10 — remove full-width bars; replace with floating HUD pod + status chip */
.topbar, .ticker, .cornerCap{ display:none ; }

.stage{ top:0; right:0; bottom:0; left:0; }

.hudPod{
  position: fixed;
  left: 14px;
  top: 14px;
  z-index: 60;
  width: min(760px, calc(100vw - 28px));
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.76), rgba(238,242,249,.56));
  box-shadow: var(--shadow2);
  padding: 10px 10px 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  backdrop-filter: blur(10px);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}
.hudTop{
  display:flex;
  align-items:center;
  gap:10px;
  justify-content:space-between;
}
.hudRight{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.hudTools{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
.hudMeta{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}

.statusChip{
  position: fixed;
  left: 14px;
  bottom: 14px;
  z-index: 60;
  max-width: min(720px, calc(100vw - 28px));
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panelA), var(--panelB));
  box-shadow: var(--shadow2);
  padding: 10px 12px;
  display:flex;
  align-items:center;
  gap:10px;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
  backdrop-filter: blur(10px);
}
.statusChip .tag{
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(120,140,175,.30);
  background: linear-gradient(180deg, rgba(255,255,255,.68), rgba(255,255,255,.20));
  color: rgba(10,18,32,.90);
  font-size:11px;
  letter-spacing:.14em;
  text-transform:uppercase;
}
.statusChip .msg{
  flex:1;
  font-size:12px;
  letter-spacing:.04em;
  color:var(--muted);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

/* Keep HUD readable on mobile */
@media (max-width: 820px){
  .hudPod{ width: calc(100vw - 28px); }
  .hudRight{ display:none; }
  .statusChip{ width: calc(100vw - 28px); }
}


/* v11 — hide any legacy bars/pods */
.topbar, .ticker, .cornerCap, .hudPod, .statusChip{ display:none ; }

/* v11 — loader = dots only (no box) */
.loader{
  position:fixed; top:0; right:0; bottom:0; left:0;
  z-index:9999;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:16px;
  background:
    radial-gradient(900px 600px at 50% 30%, rgba(90,167,255,.16), transparent 70%),
    repeating-linear-gradient(180deg, rgba(0,0,0,.028) 0px, rgba(0,0,0,.028) 1px, rgba(255,255,255,0) 7px, rgba(255,255,255,0) 14px),
    linear-gradient(180deg, #ffffff, #ffffff);
  opacity:1;
  transition: opacity .32s ease, visibility .32s ease;
}
.loader.hidden{ opacity:0; visibility:hidden; pointer-events:none; }

.orbsOnly{
  position:relative;
  width:200px; height:200px;
  filter: drop-shadow(0 18px 60px rgba(0,0,0,.14));
}
.orbsOnly .orb{
  position:absolute;
  left:50%; top:50%;
  border-radius:999px;
  border:1px solid rgba(120,140,175,.34);
  background: radial-gradient(circle at 35% 35%, #fff, rgba(90,167,255,.86));
  box-shadow: 0 0 0 6px rgba(90,167,255,.10);
  transform: translate(-50%,-50%);
  animation: orbit 1.25s linear infinite;
}
.orbsOnly .o1{ width:44px; height:44px; }
.orbsOnly .o2{ width:30px; height:30px; animation-duration: .95s; opacity:.92; }
.orbsOnly .o3{ width:18px; height:18px; animation-duration: .78s; opacity:.88; }

@keyframes orbit{
  0%{ transform: translate(-50%,-50%) rotate(0deg) translateX(62px) rotate(0deg); }
  100%{ transform: translate(-50%,-50%) rotate(360deg) translateX(62px) rotate(-360deg); }
}

.loadTiny{
  font-size:12px;
  letter-spacing:.18em;
  text-transform:uppercase;
  color: rgba(27,36,49,.72);
  padding:10px 12px;
  border-radius:999px;
  border:1px solid rgba(120,140,175,.30);
  background: linear-gradient(180deg, rgba(255,255,255,.70), rgba(255,255,255,.20));
  box-shadow: 0 10px 22px rgba(7,16,30,.10);
}

/* v11 — hamburger + drawer HUD (top-right) */
.hudBurger{
  position:fixed;
  top:14px;
  right:14px;
  z-index:70;
  width:44px;
  height:44px;
  border-radius: 14px;
  border:1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.78), rgba(238,242,249,.50));
  box-shadow: var(--shadow2);
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:4px;
  padding:10px;
  backdrop-filter: blur(10px);
}
.hudBurger span{
  display:block;
  width:18px;
  height:2px;
  border-radius:99px;
  background: rgba(20,30,45,.55);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55);
}
.hudBurger:active{ transform: translateY(1px); }

.hudDrawer{
  position:fixed;
  top:14px;
  right:14px;
  z-index:69;
  width:min(760px, calc(100vw - 28px));
  pointer-events:none;
}
.hudDrawer .hudCard{
  pointer-events:auto;
  transform: translate3d(0,-8px,0) scale(.985);
  opacity:0;
  transition: transform 240ms ease, opacity 220ms ease;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.76), rgba(238,242,249,.56));
  box-shadow: var(--shadow2);
  padding: 10px;
  display:flex;
  flex-direction:column;
  gap: 10px;
  backdrop-filter: blur(10px);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}
.hudDrawer.open .hudCard{
  opacity:1;
  transform: translate3d(0,0,0) scale(1);
}
.hudStatus{
  border-radius: 14px;
  border:1px solid rgba(120,140,175,.28);
  background: linear-gradient(180deg, rgba(255,255,255,.68), rgba(255,255,255,.18));
  box-shadow: var(--shadow2);
  padding:10px 10px;
  color: rgba(30,45,70,.70);
  letter-spacing:.12em;
  text-transform:uppercase;
  font-size:11px;
}

/* PERF mode reduces blur on HUD too */
body.perf .hudBurger, body.perf .hudDrawer .hudCard{ backdrop-filter:none ; }

@media (max-width: 820px){
  .hudDrawer .hudRight{ display:none; }
  .hudDrawer{ width: calc(100vw - 28px); }
}

/* ensure stage fills screen */
.stage{ top:0; right:0; bottom:0; left:0; }


/* --- disabled: floating info panel (removed for now) --- */
.panel{ display:none !important; }
