



#hud {
  position: fixed; inset: 0 0 auto; z-index: 48; height: var(--hud-h); color: #fff;
  background: rgba(5,12,11,.74); -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: inset 0 -1px 0 rgba(255,255,255,.08);
  -webkit-tap-highlight-color: transparent; -webkit-user-select: none; user-select: none;
  --hud-dim: rgba(255,255,255,.6); --mint: #8FF0D3;
}
html.lite #hud { background: rgba(5,12,11,.97); -webkit-backdrop-filter: none; backdrop-filter: none; }
#hud :focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }
#hud button { color: inherit; }
#hud .wide { display: none; }
@media (min-width: 760px) { #hud .wide { display: inline; } }

.hud-bar { position: relative; display: flex; align-items: center; height: 100%; padding-inline: var(--gutter); }

.hud-home { display: flex; align-items: center; gap: 10px; flex: none; height: 44px; border-radius: 10px; color: inherit; }
.hud-mark { width: 16px; height: 21px; fill: #fff; flex: none; }
.hud-word { display: none; font-size: 15px; font-weight: 700; line-height: 1; white-space: nowrap; }
@media (min-width: 780px) { .hud-word { display: block; } }


.hud-meter { display: flex; align-items: center; gap: 9px; min-width: 0; min-height: 44px; margin-inline-start: 12px; padding-inline: 2px 8px; border-radius: 10px; text-align: start; }
@media (min-width: 780px) { .hud-meter { position: relative; margin-inline-start: 16px; padding-inline-start: 16px; }
  .hud-meter::before { content: ""; position: absolute; inset-inline-start: 0; top: 13px; bottom: 13px; width: 1px; background: rgba(255,255,255,.14); } }
.hud-pctv { flex: none; font-size: 15px; font-weight: 700; line-height: 1; color: var(--mint); font-variant-numeric: tabular-nums; white-space: nowrap; transition: opacity .2s; }
@media (hover: hover) { .hud-meter:hover .hud-lines { opacity: 1; } }
.hud-lines { display: flex; flex-direction: column; gap: 1px; min-width: 0; overflow: hidden; font-size: 11px; line-height: 1.3; white-space: nowrap; opacity: .9; transition: opacity .2s; }
.l1 { font-weight: 500; color: var(--hud-dim); }
.l2 { display: flex; min-width: 0; font-weight: 600; color: #fff; }
.l2a { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.l2t { display: none; }
@media (min-width: 1080px) { .hud-lines { max-width: min(180px, 15vw); } }


.hud-rail { position: absolute; left: 0; right: 0; bottom: 0; display: flex; gap: 3px; height: 2px; opacity: 1; animation: hud-in .5s var(--ease) both; }
@keyframes hud-in { from { opacity: 0; } }
.rc { position: relative; flex: 1; min-width: 0; color: rgba(255,255,255,.52); text-decoration: none; pointer-events: none; transition: color .35s var(--ease); }
.rc-t { display: none; }
.rc-l { position: absolute; inset: 0; display: block; border-radius: 2px; background: rgba(255,255,255,.13); contain: layout; }
.rc-f { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, #5FE0C2, #BFF8E7); box-shadow: 0 0 8px rgba(127,245,217,.45); transform-origin: var(--o-start) 50%; transform: scaleX(var(--f, 0)); }
.rc-b { position: absolute; top: 50%; inset-inline-start: calc(var(--b, 0) * 100%); width: 9px; height: 9px; margin-block-start: -4.5px; margin-inline-start: -4.5px; border-radius: 50%; opacity: 0;
  background: radial-gradient(circle at 36% 30%, #fff 0, #CFF9EC 26%, #5FD6B6 62%, #1C6B59 100%); box-shadow: 0 0 10px 1px rgba(127,245,217,.65); transition: opacity .25s var(--ease); }
.rc.ball .rc-b { opacity: 1; }
#hud.complete .rc-f { background: var(--mint); }
@media (min-width: 1080px) {
  .hud-rail { top: 0; right: auto; left: 50%; height: auto; translate: -50% 0; gap: clamp(10px, 1.3vw, 20px); align-items: center; }
  .rc { flex: none; display: grid; gap: 8px; width: clamp(88px, 8.6vw, 158px); padding-block: 10px; pointer-events: auto; text-align: center; cursor: pointer; }
  .rc-t { display: block; overflow: hidden; font-size: 13.5px; font-weight: 600; line-height: 1.25; white-space: nowrap; text-overflow: ellipsis; }
  .rc-l { position: relative; inset: auto; height: 2px; }
  .rc.done { color: rgba(191,248,231,.82); }
  .rc.on { color: #fff; }
  .rc-b { width: 11px; height: 11px; margin-block-start: -5.5px; margin-inline-start: -5.5px; }
}
@media (min-width: 1080px) and (hover: hover) { .rc:hover { color: #fff; } }
@media (min-width: 1080px) and (max-width: 1239px) { .hud-lines { max-width: min(124px, 11vw); } }




.rc-x { display: none; }
.hud-app, .rc-x .rc-t {
  position: relative; display: inline-flex; align-items: center; gap: 11px; height: 44px; padding-inline: 2px; border-radius: 12px; overflow: visible;
  font-size: 14px; font-weight: 700; line-height: 1; white-space: nowrap; text-decoration: none; color: #F2FFF9;
}


.ap-ic { position: relative; flex: none; width: 34px; height: 34px; border-radius: 27%;
  background: url(/v1/img/app-icon.webp?v=5) center / 100% 100% no-repeat; box-shadow: 0 8px 14px -6px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.05);
  transform-origin: 50% 100%; transition: transform .4s cubic-bezier(.2, .8, .2, 1); }


.ap-ic::before { content: ""; position: absolute; left: 50%; top: 100%; width: 14px; height: 3px; margin: 6px 0 0 -7px; border-radius: 3px;
  background: linear-gradient(180deg, rgba(255,255,255,.95) 0%, rgba(218,255,242,.55) 45%, rgba(63,240,176,.3) 100%);
  box-shadow: inset 0 0 0 .5px rgba(255,255,255,.55), 0 0 5px rgba(143,240,211,.4), 0 1px 1.5px rgba(0,0,0,.4); opacity: 0; transition: opacity .3s; }
html.on-research .ap-ic::before { opacity: 1; }
@media (hover: hover) { .hud-app:hover .ap-ic, .rc-x:hover .ap-ic { transform: translateY(-3px) scale(1.16); } }
.hud-app:active .ap-ic, .rc-x:active .ap-ic { transform: scale(.94); transition-duration: .12s; }
@media (prefers-reduced-motion: reduce) { .ap-ic { transition: none; } }
.hud-app { flex: none; margin-inline-start: auto; }
@media (max-width: 1079px) { .hud-app + .hud-tools { margin-inline-start: 6px; } .hud-app ~ .hud-wallet { margin-inline-start: 8px; } }
@media (max-width: 759px) { .hud-app { height: 40px; gap: 10px; font-size: 13px; } .hud-app .ap-ic { width: 30px; height: 30px; } }
@media (max-width: 379px) { .hud-app > span:not(.ap-ic) { display: none; } }
@media (min-width: 1080px) {
  .hud-app { display: none; }
  .hud-rail .rc-x { display: flex; align-items: center; position: relative; width: auto; padding-block: 0; margin-inline-start: clamp(10px, 1.2vw, 20px); color: inherit; }
  .rc-x::before { content: ""; position: absolute; inset-block: 2px; inset-inline-start: calc(-1 * clamp(10px, 1.25vw, 20px)); width: 1px; background: rgba(255,255,255,.18); }
  html.on-research .rc:not(.rc-x).on { color: rgba(255,255,255,.52); }
}



.hud-about { display: none; align-items: center; flex: none; min-height: 44px; padding-inline: 4px; font-size: 13px; font-weight: 600; white-space: nowrap;
  color: var(--hud-dim); text-decoration: none; transition: color .2s; }
.hud-about.on { color: #fff; }
@media (hover: hover) { .hud-about:hover { color: #fff; } }
@media (min-width: 1080px) { .hud-home + .hud-about { display: inline-flex; margin-inline-start: 18px; } }
@media (max-width: 1079px) { .hud-tools > .hud-about-t { display: inline-flex; width: auto; padding-inline: 10px; } }
@media (min-width: 1080px) { .hud-tools > .hud-about-t { display: none; } }


.hud-tools { display: flex; align-items: center; gap: 2px; flex: none; margin-inline-start: auto; }
.hud-tools > *, .hud-more { position: relative; display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 10px; color: rgba(255,255,255,.72); transition: background-color .2s, color .2s; }
@media (hover: hover) { .hud-tools > :hover, .hud-more:hover { background: rgba(255,255,255,.08); color: #fff; } }
.hud-tools svg, .hud-more svg { width: 19px; height: 19px; }
.hud-theme svg { fill: none; stroke: currentColor; stroke-width: 1.5; transition: transform .5s var(--ease); }
.hud-theme path { fill: currentColor; stroke: none; }
:root[data-theme="dark"] .hud-theme svg { transform: rotate(180deg); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hud-theme svg { transform: rotate(180deg); } }
.hud-sound svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.hud-sound .spk { fill: currentColor; stroke-width: 1.2; }
.hud-sound[aria-pressed="false"] .wv, .hud-sound[aria-pressed="true"] .mt { display: none; }
.hud-lang { color: rgba(255,255,255,.72); text-decoration: none; }
.hud-lang .lg, .hud-lang-item .lg { display: grid; place-items: center; font: 700 12.5px/1 var(--font-body); letter-spacing: .04em; }
.hud-lang .lg svg { display: block; height: .644em; width: auto; font-size: 14px; fill: currentColor; }
.hud-langs { position: relative; flex: none; }
.hud-lang-menu { position: absolute; top: calc(100% + 6px); inset-inline-end: 0; z-index: 1; display: grid; gap: 2px; padding: 4px; border-radius: 12px; background: rgba(8,18,16,.96); box-shadow: 0 14px 34px rgba(0,0,0,.5), inset 0 0 0 1px rgba(255,255,255,.1); }
.hud-lang-menu[hidden] { display: none; }
.hud-lang-item { display: grid; place-items: center; min-width: 44px; height: 40px; border-radius: 8px; color: inherit; }
@media (hover: hover) { .hud-lang-item:hover { background: rgba(255,255,255,.08); } }

.hud-wallet { display: flex; align-items: center; flex: none; min-height: 44px; margin-inline-start: 8px; }
.chip { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding-inline: 12px 14px; border-radius: 10px; background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1);
  font-size: 13px; font-weight: 600; line-height: 1; white-space: nowrap; transition: background-color .2s, transform .2s var(--ease); }
@media (hover: hover) { .hud-wallet:hover .chip { background: rgba(255,255,255,.15); } }
.hud-wallet:active .chip { transform: scale(.97); }
.ic-w { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; opacity: .85; }
.chip .orb-mini, .chip .addr, #hud.signed .ic-w { display: none; }
#hud.signed .chip .orb-mini { display: inline-block; }
#hud.signed .chip .addr { display: inline; font-size: 12px; }
#hud.signed .chip .lbl { display: none; }
.hud-wallet[aria-busy="true"] { cursor: progress; }
.hud-wallet[aria-busy="true"] .chip { opacity: .55; }

.hud-more { display: none; fill: currentColor; }
@media (max-width: 759px) {
  .hud-meter { flex: 0 1 auto; }
  .hud-wallet { margin-inline-start: auto; }
  .chip { height: 34px; padding-inline: 10px 12px; }
  .hud-more { display: grid; width: 36px; margin-inline-end: -6px; }
  .hud-more[aria-expanded="true"] { background: rgba(255,255,255,.1); color: #fff; }
  .hud-tools { position: absolute; top: calc(100% + 8px); inset-inline-end: var(--gutter); z-index: 1; display: none; gap: 4px; margin: 0; padding: 6px; border-radius: 14px; background: rgba(8,18,16,.97); box-shadow: 0 14px 34px rgba(0,0,0,.55), inset 0 0 0 1px rgba(255,255,255,.1); }
  .hud-tools.open { display: flex; }
  .hud-tools > * { width: 44px; height: 44px; }
}
@media (max-width: 379px) { .hud-lines { font-size: 10.5px; } .hud-meter { margin-inline-start: 8px; gap: 7px; } .chip .ic-w { display: none; } .chip { padding-inline: 10px; } }


.hud-banner { position: fixed; inset: calc(var(--hud-h) + 10px) 12px auto; z-index: 47; display: flex; justify-content: center; pointer-events: none; }
.bn { display: flex; align-items: baseline; gap: 10px; max-width: 100%; min-width: 0; padding: 8px 16px; border-radius: 999px; background: rgba(8,18,16,.86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.1), 0 10px 30px rgba(0,0,0,.4); color: #fff; opacity: 0; translate: 0 -6px; visibility: hidden; transition: opacity .25s var(--ease), translate .25s var(--ease), visibility 0s .25s; }
.hud-banner.on .bn { opacity: 1; translate: none; visibility: visible; transition: opacity .3s var(--ease), translate .3s var(--ease); }
.bn-stamp, .bn-t { display: none; }
.bn-main, .bn-side { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.3; }
.bn-main { flex: 0 1 auto; font-size: 13.5px; font-weight: 600; }
.bn-side { flex: 0 2 auto; font-size: 12px; font-weight: 500; opacity: .62; }
@media (max-width: 480px) { .bn-side { display: none; } }
