/* HUD portfolio — near-black + signal yellow, terminal windows over a 3D scene */
:root {
  --bg: #090909;
  --ink: #f9f9f9;
  --muted: #a3a3a3;
  --dim: #737373;
  --acc: #ffd116;
  --acc-soft: rgba(255, 209, 22, 0.12);
  --line: rgba(255, 209, 22, 0.35);
  --sans: 'IBM Plex Sans', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

.scene { position: fixed; inset: 0; z-index: 0; }
.scene canvas { display: block; width: 100%; height: 100%; }

.hud { position: fixed; inset: 0; z-index: 1; pointer-events: none; }
.hud > * { pointer-events: auto; }
.hud__vignette { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at center, transparent 45%, rgba(0, 0, 0, 0.75) 100%); }
.hud__dots { position: absolute; inset: 0; pointer-events: none; opacity: 0.5; background: repeating-linear-gradient(0deg, rgba(249, 249, 249, 0.03) 0 1px, transparent 1px 3px); }

/* Top left */
.hud__tl { position: absolute; top: 28px; left: 32px; display: flex; flex-direction: column; gap: 22px; pointer-events: none; }
.hud__tl > * { pointer-events: auto; }
.hud__logo { align-self: flex-start; font-family: var(--mono); font-weight: 600; letter-spacing: 0.15em; font-size: 15px; padding: 8px 12px; box-shadow: inset 0 0 0 1px var(--line); }
.hud__logo span { color: var(--acc); margin: 0 2px; }
.hud__logo:hover { box-shadow: inset 0 0 0 2px var(--acc); }
.hud__title { display: flex; flex-direction: column; gap: 4px; font-weight: 700; text-transform: uppercase; letter-spacing: -0.02em; }
.hud__title_line { font-size: clamp(1.6rem, 3.4vw, 3rem); line-height: 1; }
.hud__title_sub { font-family: var(--mono); font-size: clamp(0.8rem, 1.1vw, 1rem); color: var(--acc); letter-spacing: 0.15em; font-weight: 500; }
.hud__back_hint { font-family: var(--mono); font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.12em; opacity: 0; transition: opacity 0.3s; }
.hud__key { display: inline-block; padding: 2px 8px; margin: 0 4px; color: var(--acc); box-shadow: inset 0 0 0 1px var(--acc); }
.hud[data-state="main"] .hud__back_hint, .hud[data-state="preloading"] .hud__back_hint { opacity: 0; }
.hud:not([data-state="main"]):not([data-state="preloading"]) .hud__back_hint { opacity: 1; }

/* Top right */
.hud__tr { position: absolute; top: 28px; right: 32px; display: flex; gap: 12px; align-items: center; }
.hud__cta, .hud__menu_toggle { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.15em; padding: 11px 16px; box-shadow: inset 0 0 0 1px var(--line); background: rgba(9, 9, 9, 0.7); transition: box-shadow 0.2s, color 0.2s, background 0.2s; }
.hud__cta:hover, .hud__menu_toggle:hover, .hud__menu_toggle[aria-expanded="true"] { box-shadow: inset 0 0 0 2px var(--acc), 0 0 1.2rem rgba(255, 209, 22, 0.35); color: var(--acc); }
.hud__menu_toggle { color: #090909; background: var(--acc); font-weight: 600; box-shadow: 0 0 1rem rgba(255, 209, 22, 0.3); }
.hud__menu_toggle:hover { color: #090909; background: #ffe066; }
.hud__menu { position: absolute; top: 80px; right: 32px; list-style: none; min-width: 200px; background: rgba(9, 9, 9, 0.96); box-shadow: inset 0 0 0 1px var(--line); z-index: 5; }
.hud__menu button { display: block; width: 100%; text-align: left; padding: 14px 18px; font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.15em; font-size: 12px; border-bottom: 1px solid rgba(255, 209, 22, 0.15); }
.hud__menu button:hover { background: var(--acc-soft); color: var(--acc); }

/* Centre nav */
.hud__nav { position: absolute; inset: 0; pointer-events: none; transition: opacity 0.4s, transform 0.4s; }
.hud__nav_btn { position: absolute; pointer-events: auto; font-family: var(--mono); font-weight: 500; font-size: 13px; text-transform: uppercase; letter-spacing: 0.18em; padding: 14px 26px; background: rgba(9, 9, 9, 0.75); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow 0.2s, color 0.2s, transform 0.2s; }
.hud__nav_btn::before { content: "> "; color: var(--acc); }
.hud__nav_btn:hover { color: var(--acc); box-shadow: inset 0 0 0 2px var(--acc), 0 0 1.6rem rgba(255, 209, 22, 0.4), inset 0 0 1.6rem rgba(255, 209, 22, 0.12); }
.hud__nav_btn--top { top: 30%; left: 50%; transform: translateX(-50%); }
.hud__nav_btn--bottom { top: 70%; left: 50%; transform: translateX(-50%); }
.hud__nav_btn--left { top: 50%; left: 22%; transform: translateY(-50%); }
.hud__nav_btn--right { top: 50%; right: 22%; transform: translateY(-50%); }
.hud:not([data-state="main"]) .hud__nav { opacity: 0; pointer-events: none; transform: scale(1.04); }
.hud:not([data-state="main"]) .hud__nav_btn { pointer-events: none; }
.hud[data-state="preloading"] .hud__nav { opacity: 0; }

/* Bottom left status + bottom right text */
.hud__bl { position: absolute; left: 32px; bottom: 28px; width: min(340px, calc(100vw - 64px)); }
.hud__marketing { position: absolute; right: 32px; bottom: 32px; max-width: 360px; text-align: right; font-family: var(--mono); font-size: 13px; color: var(--muted); line-height: 1.6; pointer-events: none; transition: opacity 0.3s; }
.hud:not([data-state="main"]) .hud__marketing { opacity: 0; }
.status__boot { font-family: var(--mono); font-size: 14px; margin-bottom: 10px; }
.status__acc { color: var(--acc); }
.status__mono { font-family: var(--mono); font-size: 12px; line-height: 1.8; }
.status__dim { color: var(--dim); }
#st-user, #st-sys, #st-probe { color: var(--acc); }
.status__bars { display: flex; gap: 3px; margin-top: 12px; }
.status__bars i { flex: 1; height: 8px; background: rgba(255, 209, 22, 0.15); transition: background 0.2s; }
.status__bars i.on { background: var(--acc); box-shadow: 0 0 8px rgba(255, 209, 22, 0.6); }

/* Windows */
.win { background: rgba(9, 9, 9, 0.88); box-shadow: inset 0 0 0 1px var(--line), inset 0 0 3rem rgba(255, 209, 22, 0.05); backdrop-filter: blur(4px); position: relative; }
.win--active { box-shadow: inset 0 0 0 2px var(--acc), 0 0 1.6rem rgba(255, 209, 22, 0.25), inset 0 0 2rem rgba(255, 209, 22, 0.08); }
.win__top { display: flex; align-items: center; justify-content: space-between; height: 34px; padding: 0 12px; background: var(--acc-soft); box-shadow: inset 0 -1px 0 var(--line); }
.win__title { font-family: var(--mono); font-size: 12px; color: var(--acc); letter-spacing: 0.15em; text-transform: uppercase; }
.win__ctrls { display: flex; gap: 6px; }
.win__ctrl { width: 12px; height: 12px; box-shadow: inset 0 0 0 1px var(--acc); display: block; }
.win__ctrl--x { position: relative; }
button.win__ctrl--x:hover { background: var(--acc); }
.win__body { padding: 18px 20px 20px; }
.win__body--scroll { max-height: calc(100vh - 200px); overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--acc) transparent; }
.win__body--scroll::-webkit-scrollbar { width: 6px; }
.win__body--scroll::-webkit-scrollbar-thumb { background: var(--acc); }

.hud__list, .hud__details, .hud__info { position: absolute; top: 190px; }
.hud__list { left: 32px; width: min(340px, calc(100vw - 64px)); }
.hud__details { left: 400px; right: 32px; max-width: 980px; }
.hud__info { left: 50%; transform: translateX(-50%); width: min(920px, calc(100vw - 64px)); top: 150px; }
.win { animation: winIn 0.35s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes winIn { from { opacity: 0; transform: translateY(14px) scale(0.985); } to { opacity: 1; transform: none; } }

/* List */
.list { list-style: none; display: flex; flex-direction: column; }
.list__btn { width: 100%; text-align: left; display: flex; align-items: center; gap: 12px; padding: 14px 8px; font-size: 15px; font-weight: 500; border-bottom: 1px solid rgba(255, 209, 22, 0.14); transition: background 0.15s, color 0.15s, padding 0.15s; }
.list__num { font-family: var(--mono); font-size: 11px; color: var(--dim); width: 22px; }
.list__btn:hover, .list__btn[aria-current="true"] { background: var(--acc-soft); color: var(--acc); padding-left: 14px; }
.list__btn[aria-current="true"] .list__num, .list__btn:hover .list__num { color: var(--acc); }

/* Details */
.details__head { font-size: clamp(1.4rem, 2.4vw, 2.1rem); font-weight: 700; text-transform: uppercase; letter-spacing: -0.02em; margin-bottom: 8px; }
.details__intro { color: var(--muted); max-width: 640px; margin-bottom: 22px; font-size: 15px; line-height: 1.6; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-bottom: 22px; }
.card { padding: 16px; box-shadow: inset 0 0 0 1px var(--line); background: rgba(255, 209, 22, 0.03); transition: box-shadow 0.2s, background 0.2s, transform 0.2s; animation: winIn 0.4s both; }
.card:hover { box-shadow: inset 0 0 0 2px var(--acc), 0 0 1.2rem rgba(255, 209, 22, 0.25); background: var(--acc-soft); transform: translateY(-2px); }
.card__num { font-family: var(--mono); font-size: 12px; color: var(--acc); margin-bottom: 8px; letter-spacing: 0.12em; }
.card__title { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.card__text { font-size: 13.5px; color: var(--muted); line-height: 1.55; }
.btn { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.15em; padding: 12px 22px; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow 0.2s, color 0.2s; display: inline-block; }
.btn:hover { box-shadow: inset 0 0 0 2px var(--acc); color: var(--acc); }
.btn--primary { background: var(--acc); color: #090909; font-weight: 600; box-shadow: 0 0 1rem rgba(255, 209, 22, 0.3); }
.btn--primary:hover { background: #ffe066; color: #090909; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* Info windows */
.tl { display: grid; grid-template-columns: 150px 1fr; gap: 6px 24px; padding: 16px 0; border-bottom: 1px solid rgba(255, 209, 22, 0.14); }
.tl__year { font-family: var(--mono); font-size: 13px; color: var(--acc); }
.tl__val { font-weight: 600; margin-bottom: 4px; }
.tl__text { color: var(--muted); font-size: 14px; line-height: 1.6; }
.tl__text ul { padding-left: 18px; display: grid; gap: 6px; margin-top: 6px; }
.info__sum { color: var(--muted); font-size: 15px; line-height: 1.7; margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chip { font-family: var(--mono); font-size: 12px; padding: 6px 10px; box-shadow: inset 0 0 0 1px var(--line); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 16px 0; }
.stat { padding: 14px; box-shadow: inset 0 0 0 1px var(--line); }
.stat b { display: block; font-size: 28px; color: var(--acc); font-weight: 700; }
.stat span { font-family: var(--mono); font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }
.contact { display: grid; gap: 0; }
.contact__row { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid rgba(255, 209, 22, 0.14); align-items: center; }
.contact__label { font-family: var(--mono); font-size: 12px; color: var(--dim); text-transform: uppercase; letter-spacing: 0.12em; }
.contact__value { font-size: 16px; word-break: break-word; }
a.contact__value:hover { color: var(--acc); }

/* Boot overlay while loading */
.hud[data-state="preloading"] .hud__tr, .hud[data-state="preloading"] .hud__tl > *:not(.hud__logo) { opacity: 0; }
.hud__tr, .hud__tl > * { transition: opacity 0.6s; }

/* Responsive */
@media (max-width: 900px) {
  .hud__tl { top: 16px; left: 16px; gap: 14px; }
  .hud__tr { top: 16px; right: 16px; gap: 8px; }
  .hud__tr .hud__cta { display: none; }
  .hud__menu { right: 16px; top: 62px; }
  .hud__bl { left: 16px; bottom: 16px; width: calc(100vw - 32px); }
  .hud__marketing { display: none; }
  .hud__list, .hud__details, .hud__info { left: 16px; right: 16px; width: auto; max-width: none; transform: none; top: 150px; }
  .hud[data-state="skill_selected"] .hud__list, .hud[data-state="project_selected"] .hud__list { display: none; }
  .win__body--scroll { max-height: calc(100vh - 340px); }
  .hud__nav_btn { padding: 12px 18px; font-size: 12px; }
  .hud__nav_btn--left { left: 8%; top: 50%; }
  .hud__nav_btn--right { right: 8%; top: 50%; }
  .hud__nav_btn--top { top: 36%; }
  .hud__nav_btn--bottom { top: 64%; }
  .tl { grid-template-columns: 1fr; }
  .contact__row { grid-template-columns: 1fr; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) { .win, .card { animation: none; } }

/* ---- Detail pass: condensed display type, solid yellow window chrome, dot grid, light pool ---- */
.hud__title_line, .details__head, .stat b {
  font-family: 'Bebas Neue', 'IBM Plex Sans', Impact, sans-serif;
  font-weight: 400;
  letter-spacing: 0;
}
.hud__title { gap: 0; }
.hud__title_line { font-size: clamp(3rem, 8.2vw, 7.2rem); line-height: 0.86; text-transform: uppercase; color: #fff; }
.hud__title_sub { font-family: 'Bebas Neue', 'IBM Plex Sans', Impact, sans-serif; font-size: clamp(3rem, 8.2vw, 7.2rem); line-height: 0.86; color: #fff; letter-spacing: 0; font-weight: 400; text-transform: uppercase; }
.details__head { font-size: clamp(2rem, 3.6vw, 3.2rem); line-height: 0.95; }
.hud__logo { box-shadow: none; padding: 0; font-size: 22px; letter-spacing: 0.4em; }
.hud__logo:hover { box-shadow: none; color: var(--acc); }
.hud__tl { gap: 14px; top: 22px; left: 20px; }
.hud__back_hint { font-family: var(--sans); text-transform: none; letter-spacing: 0; font-size: 15px; color: var(--muted); }
.hud__key { box-shadow: none; padding: 0; margin: 0 2px; }

/* top-right links: arrow + spaced mono caps, no boxes */
.hud__cta { box-shadow: none; background: none; font-size: 17px; letter-spacing: 0.3em; padding: 6px 4px; }
.hud__cta::before { content: "\2192"; margin-right: 12px; letter-spacing: 0; }
.hud__cta:hover { box-shadow: none; color: var(--acc); }

/* Window chrome: solid yellow title bar, glowing yellow frame */
.win { background: rgba(5, 5, 5, 0.72); backdrop-filter: blur(2px); box-shadow: 0 0 0 1px var(--acc), 0 0 2.2rem rgba(255, 209, 22, 0.28), inset 0 0 2.4rem rgba(255, 209, 22, 0.2); }
.win--active { box-shadow: 0 0 0 1px var(--acc), 0 0 2.6rem rgba(255, 209, 22, 0.4), inset 0 0 3rem rgba(255, 209, 22, 0.25); }
.win__top { background: var(--acc); box-shadow: none; height: 34px; }
.win__title { color: #090909; font-family: var(--sans); font-size: 15px; font-weight: 500; letter-spacing: 0; text-transform: none; }
.win__ctrls { gap: 10px; align-items: center; }
.win__ctrl { box-shadow: none; width: 12px; height: 12px; position: relative; }
.win__ctrls .win__ctrl:nth-child(1)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 1px; height: 2px; background: #090909; }
.win__ctrls .win__ctrl:nth-child(2)::after { content: ""; position: absolute; inset: 1px; box-shadow: inset 0 0 0 1.5px #090909; }
.win__ctrl--x::before, .win__ctrl--x::after { content: ""; position: absolute; left: 50%; top: -1px; width: 1.6px; height: 14px; background: #090909; box-shadow: none; inset: auto; }
.win__ctrls .win__ctrl--x::before { transform: translateX(-50%) rotate(45deg); }
.win__ctrls .win__ctrl--x::after { transform: translateX(-50%) rotate(-45deg); inset: auto; left: 50%; top: -1px; right: auto; bottom: auto; width: 1.6px; height: 14px; }
button.win__ctrl--x:hover { background: transparent; opacity: 0.6; }
.win__title:empty { display: none; }

/* List items: quiet grey, bright when active */
.list__btn { color: #9a9a9a; border-bottom: 0; padding: 12px 8px; font-size: 16px; font-weight: 400; }
.list__num { display: none; }
.list__btn:hover, .list__btn[aria-current="true"] { background: none; color: #fff; padding-left: 8px; }
.win__body--scroll::-webkit-scrollbar-thumb { background: var(--acc); }

/* Dot grid + light pool over the scene */
.hud__dots { opacity: 1; background: radial-gradient(circle, rgba(249, 249, 249, 0.22) 1px, transparent 1.4px) 0 0 / 90px 90px; }
.hud__vignette { background:
  radial-gradient(ellipse 38% 26% at 50% 92%, rgba(255, 255, 255, 0.16), transparent 70%),
  radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.82) 100%); }
.hud__nav_btn { font-size: 15px; background: rgba(5, 5, 5, 0.65); }

@media (max-width: 900px) {
  .hud__title_line, .hud__title_sub { font-size: clamp(2.4rem, 12vw, 4rem); }
  .hud__logo { font-size: 16px; }
}

/* ---- Three-level layout (list -> summary -> details), rows, button bars ---- */
.hud__title_line, .hud__title_sub { font-size: clamp(2.6rem, 5.6vw, 6.2rem); }
.hud__title_sub[hidden] { display: none; }
.hud__list, .hud__summary, .hud__details, .hud__info { position: absolute; transform: none; max-width: none; right: auto; }
.hud__list { top: 300px; left: 20px; width: min(340px, calc(100vw - 40px)); }
.hud__list .win__body { padding: 8px 12px; max-height: 240px; }
.hud__summary { top: 300px; left: 380px; width: min(380px, calc(100vw - 40px)); }
.hud__summary .win__body { max-height: 260px; padding: 14px 18px; }
.hud__details { top: 300px; left: 20px; width: min(580px, calc(100vw - 40px)); }
.hud__details .win__body { max-height: calc(100vh - 300px - 120px); padding: 8px 18px 14px; }
.hud__info { top: 210px; left: 20px; width: min(580px, calc(100vw - 40px)); }
.hud__info .win__body { max-height: calc(100vh - 210px - 50px); padding: 8px 18px 16px; }
.hud[data-state="about"] .hud__info { top: 300px; }
.hud[data-state="about"] .hud__info .win__body { max-height: calc(100vh - 300px - 50px); }

.list__mark { display: none; width: 9px; height: 9px; background: var(--acc); flex: none; }
.list__btn[aria-current="true"] .list__mark { display: inline-block; }
.list__btn { gap: 10px; padding: 11px 6px; }

.sum__name { font-size: 15px; color: var(--acc); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 2px; }
.sum__tag { font-size: 16px; color: #fff; text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 14px; }
.sum__list { list-style: none; display: grid; gap: 7px; color: #b5b5b5; font-size: 15px; }

.btnbar { display: flex; gap: 8px; margin-top: 8px; }
.btn--glass { background: rgba(25, 25, 25, 0.78); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); color: #fff; font-size: 14px; letter-spacing: 0.3em; padding: 16px 28px; flex: 1; text-align: center; backdrop-filter: blur(4px); }
.btn--glass.btn--wide { flex: 2; }
.btn--glass:hover { color: var(--acc); box-shadow: inset 0 0 0 1px var(--acc); }

.details__intro { font-size: 15px; margin: 12px 0 6px; max-width: none; }
.cards { display: block; margin: 0; }
.row { padding: 18px 4px 18px; border-bottom: 1px solid rgba(255, 209, 22, 0.16); animation: winIn 0.4s both; position: relative; }
.row__num { font-family: var(--mono); font-size: 13px; color: #d0d0d0; margin-bottom: 6px; }
.row__title { font-size: 26px; font-weight: 400; line-height: 1.15; color: #fff; margin-bottom: 8px; padding-left: 0; }
.row__text { font-size: 15px; line-height: 1.6; color: #a3a3a3; padding-left: 40px; }
a.row__link { display: block; }
a.row__link:hover { color: var(--acc); }
.info__sum, .contact { display: none; }
.hud__info .btn { margin-top: 16px; }

@media (max-width: 900px) {
  .hud__title_line, .hud__title_sub { font-size: clamp(2.2rem, 11vw, 3.6rem); }
  .hud__list, .hud__summary, .hud__details, .hud__info { left: 16px; width: calc(100vw - 32px); top: 230px; }
  .hud[data-state="skill_selected"] .hud__list, .hud[data-state="project_selected"] .hud__list { display: none; }
  .hud[data-state="about"] .hud__info { top: 230px; }
  .hud__details .win__body, .hud__info .win__body { max-height: calc(100vh - 230px - 130px); }
  .hud__summary .win__body { max-height: 230px; }
  .row__text { padding-left: 0; }
}

/* ---- Fix pass: unique font, close-only window controls, no overlap ---- */
:root { --sans: 'Chakra Petch', 'Segoe UI', sans-serif; --mono: 'Share Tech Mono', ui-monospace, monospace; }
body, .row__title, .row__text, .win__title, .list__btn, .sum__list, .details__intro { font-family: var(--sans); }
.row__title { font-weight: 500; letter-spacing: 0.01em; }
.status__boot, .status__mono, .hud__cta, .hud__menu_toggle, .hud__nav_btn, .btn, .row__num, .hud__logo { font-family: var(--mono); }
.hud__title_sub { font-family: 'Bebas Neue', Impact, sans-serif; }

/* only the close button on every window */
.win__ctrls .win__ctrl:not(.win__ctrl--x) { display: none; }
.win__ctrls .win__ctrl--x {
  width: 22px; height: 22px; position: relative; display: block;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M1 1l10 10M11 1L1 11' stroke='%23090909' stroke-width='1.8'/%3E%3C/svg%3E") center / 12px 12px no-repeat;
}
.win__ctrls .win__ctrl--x::before, .win__ctrls .win__ctrl--x::after { content: none; display: none; }
button.win__ctrl--x:hover { background-color: rgba(9, 9, 9, 0.15); opacity: 1; }

/* status window only on the main view (no overlap with other windows) */
.hud:not([data-state="main"]):not([data-state="preloading"]) .hud__bl { display: none; }

/* ---- Main menu window (replaces the four floating buttons) ---- */
.hud__nav { display: none !important; }
.hud__mainwin { position: absolute; top: 300px; left: 20px; width: min(400px, calc(100vw - 40px)); }
.hud__mainwin .win__body { padding: 6px 10px; }
.menu { list-style: none; }
.menu__btn { width: 100%; display: flex; align-items: center; gap: 16px; text-align: left; padding: 13px 8px; border-bottom: 1px solid rgba(255, 209, 22, 0.14); color: #9a9a9a; transition: background 0.15s, color 0.15s, padding 0.15s; }
.menu li:last-child .menu__btn { border-bottom: 0; }
.menu__num { font-family: var(--mono); font-size: 13px; color: var(--dim); width: 24px; flex: none; }
.menu__txt { display: flex; flex-direction: column; gap: 2px; }
.menu__name { font-size: 20px; font-weight: 500; letter-spacing: 0.02em; }
.menu__sub { font-family: var(--mono); font-size: 12px; color: var(--dim); text-transform: uppercase; letter-spacing: 0.12em; }
.menu__btn:hover, .menu__btn:focus-visible { background: var(--acc-soft); color: #fff; padding-left: 16px; outline: none; }
.menu__btn:hover .menu__num, .menu__btn:focus-visible .menu__num, .menu__btn:hover .menu__sub { color: var(--acc); }
.menu__hint { margin-top: 8px; font-family: var(--mono); font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.12em; }

/* status window moves to the bottom-right so it never sits under the menu */
.hud__bl { left: auto; right: 24px; bottom: 24px; width: min(320px, calc(100vw - 40px)); }
.hud__marketing { display: none; }
@media (max-width: 900px) {
  .hud__mainwin { left: 16px; width: calc(100vw - 32px); top: 230px; }
  .hud__bl { display: none; }
}
