/* ============================================================================
   hud.css — the HUD look (docs/DESIGN.md "HUD"; owner 2026-11-18).
   Loaded last, on every page but a server's public web page. It applies only
   while <html class="hx"> carries data-theme="dark" (the default); the topbar
   toggle switches to the light theme, takes .hx away with it (wy.js) and this
   file leaves light alone but for one rule: the HUD's own elements are never
   shown outside it, so nothing fx.js made can land in the light layout.
   wy.css and css/pages/* stay the layout and state contract and stay linted;
   this file is outside that lint on purpose: it may use literals, gradients,
   blur and uppercase. js/fx.js draws the aurora on canvas#hx-fx and runs the
   moving parts. Nothing here clips overflow, so menus and tooltips still work.
   ========================================================================== */

@font-face {
  font-family: "Oxanium";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("../fonts/oxanium-latin-wght-normal.woff2") format("woff2");
}

@property --hx-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@view-transition { navigation: auto; }

@keyframes hx-run { to { background-position: 140% 0; } }
@keyframes hx-spin { to { --hx-a: 360deg; } }
@keyframes hx-shimmer { to { background-position: 200% 50%; } }
@keyframes hx-ping { 0% { box-shadow: 0 0 0 0 currentColor; } 70%, 100% { box-shadow: 0 0 0 0.5rem transparent; } }
@keyframes hx-sweep { from { transform: translateX(-120%); } to { transform: translateX(420%); } }
@keyframes hx-breathe { 50% { filter: drop-shadow(0 0 1.6rem rgb(61 255 160 / 0.9)); } }
@keyframes hx-in { from { opacity: 0; transform: translateY(14px); clip-path: inset(0 100% 0 0); } 60% { clip-path: inset(0 0 0 0); } }
@keyframes hx-rise { from { opacity: 0; transform: translateY(26px); } }
@keyframes hx-slide { from { opacity: 0; transform: translateX(-18px); } }
@keyframes hx-draw { from { width: 0; } }
@keyframes hx-fill { from { max-width: 0; } }
@keyframes hx-pop { from { opacity: 0; transform: scaleY(0.02); } 55% { opacity: 1; transform: scaleY(0.02); } }
@keyframes hx-letter { from { opacity: 0; transform: translateY(0.45em) rotateX(-80deg); filter: blur(6px); } }
@keyframes hx-flicker { 0%, 100% { opacity: 1; } 8% { opacity: 0.4; } 10% { opacity: 1; } 14% { opacity: 0.55; } 18% { opacity: 1; } }
@keyframes hx-caret { 50% { opacity: 0; } }

/* The light theme (and dark without .hx): the HUD's own elements stay out of the layout. */
#hx-fx, #hx-intro, .hx-readout { display: none; }

:root.hx[data-theme="dark"] {
  --hx-neon: #3dffa0;
  --hx-live: #1db862;
  --hx-cyan: #38e1ff;
  --hx-violet: #a274ff;
  --hx-hot: #ffb02e;
  --hx-void: #03060a;
  --hx-ink: #e9fff4;
  --hx-dim: #8fb3a4;
  /* panels are near-opaque and carry no live backdrop blur: blurring over the moving sky re-blurred
     every panel each frame and lagged the owner's computer (2026-11-28); dialogs and toasts keep theirs. */
  --hx-panel: rgb(8 14 19 / 0.88);
  --hx-panel-hi: rgb(22 40 42 / 0.9);
  --hx-line: rgb(61 255 160 / 0.2);
  --hx-line-strong: rgb(61 255 160 / 0.5);
  --hx-glow: rgb(29 184 98 / 0.6);
  --hx-glow-soft: rgb(29 184 98 / 0.14);
  --hx-aurora: linear-gradient(100deg, #3dffa0, #38e1ff 52%, #a274ff);
  --hx-font: "Oxanium", "Barlow Condensed", ui-sans-serif, system-ui, sans-serif;
  --hx-mono: var(--wy-font-mono);
  --wy-bg: var(--hx-void);
  --wy-radius-xl: 4px;
  --wy-radius-lg: 3px;
  --wy-radius-md: 3px;
  --wy-radius-sm: 2px;
  --wy-card-head-bg: transparent;
  --wy-focus: var(--hx-neon);
  /* a tight dark rim behind text that stands on the sky or a photo (Contrast, below) */
  --hx-halo: 0 0 1px rgb(2 6 9 / 0.95), 0 0 2px rgb(2 6 9 / 0.9), 0 0 5px rgb(2 6 9 / 0.75);
  scrollbar-color: #1f6b47 #05090d;

  /* ---- Backdrop ---------------------------------------------------------- */
  & body.wy-root {
    background:
      radial-gradient(80rem 36rem at 80% -10%, rgb(29 184 98 / 0.22), transparent 62%),
      radial-gradient(60rem 30rem at 0% 0%, rgb(56 225 255 / 0.1), transparent 60%),
      radial-gradient(50rem 30rem at 50% 115%, rgb(162 116 255 / 0.12), transparent 60%),
      var(--hx-void);
    background-attachment: fixed;
  }
  & #hx-fx { display: block; position: fixed; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0; transition: opacity 1.2s ease; }
  & #hx-fx.is-on { opacity: 1; }
  & .wy-shell, & .wy-auth-split, & .wy-landing { position: relative; z-index: 1; }
  /* scanlines and a vignette over everything below the top layer */
  & body.wy-root::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 35;
    pointer-events: none;
    background:
      repeating-linear-gradient(0deg, rgb(160 255 215 / 0.022) 0 1px, transparent 1px 3px),
      radial-gradient(120% 90% at 50% 40%, transparent 55%, rgb(0 0 0 / 0.5));
  }
  & ::selection { background: var(--hx-neon); color: #02140b; }

  /* ---- Shell --------------------------------------------------------------- */
  & .wy-shell__main { background: transparent; }
  & .wy-sidebar { background: transparent; border-right-color: transparent; }
  & .wy-sidebar__header, & .wy-sidebar__footer { border-color: var(--hx-line); }
  @media (min-width: 1024px) {
    & .wy-shell::before {
      border-right: 1px solid var(--hx-line);
      background: linear-gradient(180deg, var(--hx-panel-hi), var(--hx-panel) 32%);
      box-shadow: 14px 0 44px -26px var(--hx-glow);
    }
  }
  @media (max-width: 1023px) {
    & .wy-sidebar { background: var(--hx-panel); }
  }
  & .wy-topbar {
    border-bottom-color: var(--hx-line);
    background: linear-gradient(180deg, var(--hx-panel-hi), var(--hx-panel));
  }
  /* a light runs along the topbar's lower edge */
  & .wy-topbar::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 1px;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, var(--hx-neon), var(--hx-cyan), transparent) no-repeat -40% 0 / 30% 100%;
    animation: hx-run 6s linear infinite;
  }
  & .wy-sidebar .wy-logo { color: #fff; filter: drop-shadow(0 0 10px var(--hx-glow)); }
  & .wy-nav__group { color: var(--hx-live); font-family: var(--hx-mono); font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; }
  & .wy-nav__group::before { content: "// "; color: var(--hx-hot); }
  & .wy-nav__item {
    font-family: var(--hx-font);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-radius: 0;
    background: linear-gradient(90deg, var(--hx-glow-soft), transparent) no-repeat 0 0 / 0% 100%;
    transition: background-size var(--wy-motion) var(--wy-ease), color var(--wy-motion-fast) var(--wy-ease), padding-left var(--wy-motion) var(--wy-ease);
  }
  & .wy-nav__item:hover { background-color: transparent; background-size: 100% 100%; color: var(--hx-ink); padding-left: var(--wy-space-4); }
  & .wy-nav__item[aria-current="page"] {
    background: linear-gradient(90deg, rgb(61 255 160 / 0.24), transparent 88%);
    color: var(--hx-neon);
    text-shadow: 0 0 14px var(--hx-glow);
  }
  & .wy-sidebar .wy-nav__item[aria-current="page"]::before { top: 0; bottom: 0; width: 3px; border-radius: 0; background: var(--hx-neon); box-shadow: 0 0 12px var(--hx-neon); }
  & .wy-nav__item > .wy-icon { color: var(--hx-live); }
  & .wy-nav__item[aria-current="page"] > .wy-icon { color: var(--hx-neon); filter: drop-shadow(0 0 6px var(--hx-glow)); }
  & .wy-sidebar--rail .wy-nav__item:hover { padding-left: 0; }
  & .wy-breadcrumbs, & .wy-breadcrumb { font-family: var(--hx-font); letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.75rem; }

  /* readout fx.js adds to the topbar: UTC clock and this page's load time */
  & .hx-readout { display: none; flex: none; align-items: center; gap: var(--wy-space-2); margin-right: var(--wy-space-2); color: var(--hx-dim); font-family: var(--hx-mono); font-size: 0.6875rem; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
  & .hx-readout b { color: var(--hx-neon); font-weight: 400; }
  & .hx-readout i { width: 6px; height: 6px; border-radius: 50%; background: var(--hx-neon); color: rgb(61 255 160 / 0.7); animation: hx-ping 2s ease-out infinite; }
  @media (min-width: 900px) { & .hx-readout { display: inline-flex; } }

  /* ---- Page header ---------------------------------------------------------- */
  & .wy-page-header { position: relative; }
  & .wy-page-header__title {
    font-size: clamp(2rem, 1.4rem + 1.6vw, 2.75rem);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    text-shadow: 0 0 26px rgb(61 255 160 / 0.45);
  }
  & .wy-page-header__text::before { width: var(--wy-space-16); height: 3px; border-radius: 0; background: var(--hx-aurora); box-shadow: 0 0 14px var(--hx-glow); }
  & .wy-page-header__count, & .wy-tab__count { border: 1px solid var(--hx-line-strong); border-radius: 2px; background: rgb(61 255 160 / 0.1); color: var(--hx-neon); font-family: var(--hx-mono); text-shadow: none; }
  /* plain headers (not the photo banners) stand on a glowing rule with a hazard tick */
  & .wy-page-header:not(.wy-page-header--banner) { padding-bottom: var(--wy-space-4); border-bottom: 1px solid var(--hx-line); }
  & .wy-server > .wy-page-header { padding-bottom: var(--wy-space-6); }
  & .wy-page-header:not(.wy-page-header--banner)::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -3px;
    width: 4.5rem;
    height: 5px;
    background: repeating-linear-gradient(-55deg, var(--hx-hot) 0 3px, transparent 3px 7px);
    opacity: 0.85;
  }
  /* photo banners: a framed viewport with brackets and a slow scan */
  & .wy-page-header--banner, & .wy-server > .wy-page-header {
    border: 1px solid var(--hx-line-strong);
    border-radius: 4px;
    box-shadow: 0 0 0 1px rgb(0 0 0 / 0.5), 0 24px 60px -30px var(--hx-glow), inset 0 0 80px rgb(0 0 0 / 0.55);
    --b: var(--hx-neon);
  }
  & .wy-page-header--banner::before, & .wy-server > .wy-page-header::before {
    content: "";
    position: absolute;
    inset: 8px;
    pointer-events: none;
    background:
      linear-gradient(var(--b), var(--b)) top left / 22px 2px,
      linear-gradient(var(--b), var(--b)) top left / 2px 22px,
      linear-gradient(var(--b), var(--b)) top right / 22px 2px,
      linear-gradient(var(--b), var(--b)) top right / 2px 22px,
      linear-gradient(var(--b), var(--b)) bottom left / 22px 2px,
      linear-gradient(var(--b), var(--b)) bottom left / 2px 22px,
      linear-gradient(var(--b), var(--b)) bottom right / 22px 2px,
      linear-gradient(var(--b), var(--b)) bottom right / 2px 22px;
    background-repeat: no-repeat;
    filter: drop-shadow(0 0 4px var(--hx-glow));
    opacity: 0.9;
  }
  & .wy-page-header--banner::after, & .wy-server > .wy-page-header::after {
    content: "";
    position: absolute;
    inset: 0;
    width: auto;
    height: auto;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, rgb(160 255 215 / 0.13) 50%, transparent) no-repeat -40% 0 / 22% 100%;
    opacity: 1;
    animation: hx-run 7s linear infinite;
  }
  /* an open menu's panel rises above its neighbours (each glass panel is its own layer) */
  & .wy-card:has(.is-open), & .wy-table-wrap:has(.is-open), & .wy-page-header:has(.is-open) { z-index: 6; }

  /* ---- Panels --------------------------------------------------------------- */
  & .wy-card {
    position: relative;
    border-color: rgb(61 255 160 / 0.18);
    border-radius: 4px;
    background:
      radial-gradient(26rem circle at var(--mx, -40rem) var(--my, -40rem), rgb(61 255 160 / 0.11), transparent 62%),
      linear-gradient(180deg, var(--hx-panel-hi), var(--hx-panel) 5rem);
    box-shadow: 0 0 0 1px rgb(0 0 0 / 0.45), 0 22px 46px -30px var(--hx-glow), inset 0 1px 0 rgb(160 255 215 / 0.08);
    transition: border-color var(--wy-motion) var(--wy-ease), box-shadow var(--wy-motion) var(--wy-ease);
  }
  & .wy-card:hover { border-color: rgb(61 255 160 / 0.36); box-shadow: 0 0 0 1px rgb(0 0 0 / 0.45), 0 26px 60px -28px var(--hx-glow), inset 0 1px 0 rgb(160 255 215 / 0.12); }
  /* corner brackets, drawn on the border box */
  & .wy-card::before {
    content: "";
    position: absolute;
    inset: -1px;
    pointer-events: none;
    --b: var(--hx-neon);
    background:
      linear-gradient(var(--b), var(--b)) top left / 16px 2px,
      linear-gradient(var(--b), var(--b)) top left / 2px 16px,
      linear-gradient(var(--b), var(--b)) top right / 16px 2px,
      linear-gradient(var(--b), var(--b)) top right / 2px 16px,
      linear-gradient(var(--b), var(--b)) bottom left / 16px 2px,
      linear-gradient(var(--b), var(--b)) bottom left / 2px 16px,
      linear-gradient(var(--b), var(--b)) bottom right / 16px 2px,
      linear-gradient(var(--b), var(--b)) bottom right / 2px 16px;
    background-repeat: no-repeat;
    filter: drop-shadow(0 0 4px var(--hx-glow));
    transition: inset var(--wy-motion) var(--wy-ease);
  }
  & .wy-card:hover::before { inset: -4px; }
  /* a beam circles the border while the pointer is on the panel */
  & .wy-card::after {
    content: "";
    position: absolute;
    inset: -1px;
    padding: 1px;
    border-radius: inherit;
    pointer-events: none;
    background: conic-gradient(from var(--hx-a), transparent 0 72%, var(--hx-cyan) 84%, var(--hx-neon) 92%, transparent 100%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    opacity: 0;
    transition: opacity 0.4s ease;
  }
  & .wy-card:hover::after { opacity: 1; animation: hx-spin 3.2s linear infinite; }
  & .wy-card .wy-card::before, & .wy-card .wy-card::after { content: none; }
  & .wy-card__header { border-bottom-color: var(--hx-line); background: linear-gradient(90deg, rgb(61 255 160 / 0.12), transparent 70%); }
  & .wy-card__footer { border-top-color: var(--hx-line); }
  & .wy-card__title { display: flex; align-items: center; gap: var(--wy-space-3); color: var(--hx-ink); font-family: var(--hx-font); font-size: 0.875rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; }
  & .wy-card__title::before { content: ""; flex: none; width: 16px; height: 10px; background: repeating-linear-gradient(-60deg, var(--hx-hot) 0 2px, transparent 2px 5px); }

  & .wy-table-wrap { background: var(--hx-panel); border-color: rgb(61 255 160 / 0.18); border-radius: 4px; }
  & .wy-card .wy-table-wrap { background: transparent; backdrop-filter: none; }
  & .wy-table th { color: var(--hx-neon); font-family: var(--hx-mono); font-size: 0.6875rem; font-weight: 400; letter-spacing: 0.1em; text-transform: uppercase; }
  & .wy-table thead th { background: linear-gradient(180deg, rgb(61 255 160 / 0.12), transparent); border-bottom-color: var(--hx-line-strong); }
  & .wy-table tbody tr { transition: background-color var(--wy-motion-fast) var(--wy-ease), box-shadow var(--wy-motion-fast) var(--wy-ease); }
  & .wy-table tbody tr:hover { background: linear-gradient(90deg, rgb(61 255 160 / 0.13), transparent 75%); box-shadow: inset 3px 0 0 var(--hx-neon); }
  & .wy-table td, & .wy-table .wy-table__rowhead { border-color: rgb(61 255 160 / 0.08); }
  & .wy-table .wy-table__rowhead { color: inherit; font-family: inherit; font-size: inherit; font-weight: inherit; letter-spacing: inherit; text-transform: inherit; }

  & .wy-stat__value {
    font-family: var(--hx-font);
    font-size: 1.625rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--hx-neon);
    background: var(--hx-aurora);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 14px rgb(61 255 160 / 0.45));
  }
  & .wy-stat__label, & .wy-quota__label { font-family: var(--hx-mono); font-size: 0.6875rem; font-weight: 400; letter-spacing: 0.1em; text-transform: uppercase; color: var(--hx-dim); }
  /* meters: segmented, lit */
  & .wy-quota__bar, & .wy-meter__bar, & .wy-progress {
    height: var(--wy-space-2);
    border-radius: 0;
    background: rgb(61 255 160 / 0.1);
    -webkit-mask: repeating-linear-gradient(90deg, #000 0 6px, transparent 6px 8px);
    mask: repeating-linear-gradient(90deg, #000 0 6px, transparent 6px 8px);
  }
  & .wy-quota__fill, & .wy-meter__fill, & .wy-progress__fill { border-radius: 0; background: var(--hx-aurora); }
  & .wy-quota--warn .wy-quota__fill { background: linear-gradient(90deg, #a5741a, var(--hx-hot)); }
  & .wy-quota--over .wy-quota__fill { background: linear-gradient(90deg, var(--wy-danger), var(--wy-danger-fg)); }

  /* ---- Controls ------------------------------------------------------------- */
  & .wy-btn { position: relative; border-radius: 2px; font-family: var(--hx-font); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
  & .wy-btn--sm { font-size: 0.75rem; }
  & .wy-btn:not(.wy-btn--primary, .wy-btn--ghost, .wy-btn--danger, :disabled, [aria-disabled="true"]) {
    border-color: rgb(61 255 160 / 0.34);
    background:
      linear-gradient(110deg, transparent 42%, rgb(255 255 255 / 0.18) 50%, transparent 58%) no-repeat -160% 0 / 220% 100%,
      linear-gradient(180deg, rgb(160 255 215 / 0.1), transparent 48%, rgb(0 0 0 / 0.3)),
      rgb(10 22 22 / 0.85);
    color: var(--hx-ink);
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.08);
    transition: background-position 0.55s var(--wy-ease), border-color var(--wy-motion-fast) var(--wy-ease), box-shadow var(--wy-motion-fast) var(--wy-ease), color var(--wy-motion-fast) var(--wy-ease);
  }
  & .wy-btn:not(.wy-btn--primary, .wy-btn--ghost, .wy-btn--danger, :disabled, [aria-disabled="true"]):hover {
    border-color: var(--hx-neon);
    background-position: 260% 0, 0 0, 0 0;
    color: #fff;
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.08), 0 0 18px -4px var(--hx-glow);
  }
  & .wy-btn--primary:not(.wy-btn--danger, :disabled, [aria-disabled="true"]) {
    border-color: #b9ffdc;
    background:
      linear-gradient(110deg, transparent 42%, rgb(255 255 255 / 0.7) 50%, transparent 58%) no-repeat -160% 0 / 220% 100%,
      linear-gradient(180deg, #8dffc6, #2fe387 46%, #14b866);
    color: #02140b;
    box-shadow: 0 0 22px -4px var(--hx-glow), 0 0 0 1px rgb(0 0 0 / 0.5), inset 0 1px 0 rgb(255 255 255 / 0.6);
    transition: background-position 0.55s var(--wy-ease), box-shadow var(--wy-motion) var(--wy-ease), transform var(--wy-motion-fast) var(--wy-ease);
    /* cut corners: top-left and bottom-right */
    clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
    border-radius: 0;
  }
  & .wy-btn--primary:not(.wy-btn--danger, :disabled, [aria-disabled="true"]):hover {
    background-position: 260% 0, 0 0;
    color: #02140b;
    filter: brightness(1.08) drop-shadow(0 0 10px rgb(61 255 160 / 0.7));
  }
  & .wy-btn--primary:focus-visible { clip-path: none; }
  & .wy-btn--ghost:hover { background: var(--hx-glow-soft); color: var(--hx-neon); }
  & .wy-btn--danger:not(.wy-btn--primary):hover { box-shadow: 0 0 18px -4px var(--wy-danger-fg); }

  & .wy-segmented { background: rgb(5 10 14 / 0.8); border-color: rgb(61 255 160 / 0.3); }
  & .wy-segmented > * { font-family: var(--hx-font); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
  & .wy-segmented > [aria-pressed="true"], & .wy-segmented > [aria-current="page"] { background: linear-gradient(0deg, rgb(61 255 160 / 0.3), rgb(61 255 160 / 0.06)); color: var(--hx-neon); box-shadow: inset 0 -2px 0 var(--hx-neon); }

  & .wy-input, & .wy-select, & .wy-textarea { border-color: rgb(61 255 160 / 0.55); border-radius: 2px; background-color: rgb(2 6 9 / 0.78); box-shadow: inset 0 2px 8px rgb(0 0 0 / 0.6); transition: border-color var(--wy-motion-fast) var(--wy-ease), box-shadow var(--wy-motion) var(--wy-ease); }
  & .wy-input:focus, & .wy-select:focus, & .wy-textarea:focus { border-color: var(--hx-neon); box-shadow: inset 0 2px 8px rgb(0 0 0 / 0.6), 0 0 0 1px rgb(61 255 160 / 0.5), 0 0 24px -4px var(--hx-glow); }
  & .wy-label { font-family: var(--hx-mono); font-size: 0.6875rem; font-weight: 400; letter-spacing: 0.1em; text-transform: uppercase; color: var(--hx-neon); }
  & .wy-label__optional { text-transform: none; font-family: var(--wy-font-sans); letter-spacing: 0; color: var(--hx-dim); }

  & .wy-option { background: var(--hx-panel); border-color: rgb(61 255 160 / 0.22); border-radius: 3px; transition: border-color var(--wy-motion-fast) var(--wy-ease), box-shadow var(--wy-motion) var(--wy-ease), transform var(--wy-motion) var(--wy-ease); }
  & .wy-option:hover { border-color: var(--hx-neon); box-shadow: 0 0 20px -6px var(--hx-glow); transform: translateY(-2px); }
  & .wy-option:has(.wy-option__input:checked) { border-color: var(--hx-neon); background: linear-gradient(135deg, rgb(61 255 160 / 0.22), rgb(56 225 255 / 0.06) 60%, var(--hx-panel)); box-shadow: 0 0 26px -6px var(--hx-glow), inset 0 0 0 1px rgb(61 255 160 / 0.5); }
  & .wy-option__title { font-family: var(--hx-font); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }

  & .wy-tabs, & .wy-tabs__list { border-bottom-color: var(--hx-line); }
  & .wy-tab { font-family: var(--hx-font); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
  & .wy-tab:hover { color: var(--hx-ink); }
  & .wy-tab[aria-selected="true"] { color: var(--hx-neon); background: linear-gradient(0deg, rgb(61 255 160 / 0.18), transparent 80%); box-shadow: 0 8px 14px -8px var(--hx-neon); text-shadow: 0 0 14px var(--hx-glow); }

  /* ---- Status --------------------------------------------------------------- */
  & .wy-badge { border-radius: 2px; font-family: var(--hx-mono); font-size: 0.6875rem; font-weight: 400; letter-spacing: 0.06em; text-transform: uppercase; }
  & .wy-badge__dot { box-shadow: 0 0 6px 1px currentColor; }
  & .wy-badge--success { box-shadow: 0 0 14px -4px var(--wy-success-fg); }
  & .wy-badge--success .wy-badge__dot { animation: hx-ping 1.8s ease-out infinite; }
  & .wy-badge--danger { box-shadow: 0 0 14px -4px var(--wy-danger-fg); }
  & .wy-badge--warning { box-shadow: 0 0 14px -4px var(--wy-warning-fg); }
  & .wy-notice { border-left-width: 3px; border-radius: 2px; }
  & .wy-toast { backdrop-filter: blur(10px); box-shadow: var(--wy-shadow), 0 0 28px -8px var(--hx-glow); }
  & .wy-empty__icon { color: var(--hx-neon); filter: drop-shadow(0 0 12px var(--hx-glow)); }
  & .wy-code, & .wy-cmd { box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.4), inset 0 12px 24px -16px rgb(61 255 160 / 0.14); }
  & .wy-kv__row { border-bottom-color: rgb(61 255 160 / 0.1); }
  & .wy-kv__row > dt { font-family: var(--hx-mono); font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--hx-dim); padding-top: 0.2rem; }
  & .wy-server__addr { color: var(--hx-neon); text-shadow: 0 0 16px var(--hx-glow); }

  /* ---- Overlays -------------------------------------------------------------- */
  & .wy-dialog { border-color: var(--hx-line-strong); border-radius: 4px; background: linear-gradient(180deg, #132524, #070d11 5rem); box-shadow: 0 0 0 1px rgb(0 0 0 / 0.6), 0 0 70px -10px var(--hx-glow), 0 30px 80px -20px rgb(0 0 0 / 0.9); }
  & .wy-dialog::backdrop { background: rgb(1 4 6 / 0.7); backdrop-filter: blur(5px); }
  & .wy-dialog__title { font-family: var(--hx-font); font-size: 0.9375rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
  & .wy-dialog__header { background: linear-gradient(90deg, rgb(61 255 160 / 0.14), transparent 70%); border-bottom-color: var(--hx-line); }
  & .wy-menu__list { border-color: var(--hx-line-strong); border-radius: 3px; background: #070d11; box-shadow: var(--wy-shadow), 0 0 30px -8px var(--hx-glow); }
  & .wy-menu__item:hover, & .wy-menu__item:focus-visible { background: linear-gradient(90deg, rgb(61 255 160 / 0.2), transparent); color: #fff; }

  /* ---- Sign-in frame ----------------------------------------------------------- */
  & .wy-auth-split { background: transparent; }
  @media (min-width: 960px) {
    & .wy-auth-split__art { position: relative; background-image: linear-gradient(200deg, rgb(3 6 10 / 0.1), rgb(3 6 10 / 0.5) 60%, rgb(3 6 10 / 0.92)); border-right: 1px solid var(--hx-line); }
    & .wy-auth-split__art::before {
      content: "";
      position: absolute;
      inset: var(--wy-space-6);
      pointer-events: none;
      --b: var(--hx-neon);
      background:
        linear-gradient(var(--b), var(--b)) top left / 34px 2px,
        linear-gradient(var(--b), var(--b)) top left / 2px 34px,
        linear-gradient(var(--b), var(--b)) bottom right / 34px 2px,
        linear-gradient(var(--b), var(--b)) bottom right / 2px 34px;
      background-repeat: no-repeat;
      filter: drop-shadow(0 0 6px var(--hx-glow));
    }
  }
  & .wy-auth-split__tag { text-shadow: 0 0 40px rgb(61 255 160 / 0.5), 0 2px 20px rgb(0 0 0 / 0.6); }
  & .wy-auth-split__tag em { background: var(--hx-aurora) 0 50% / 200% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: hx-shimmer 5s linear infinite; }
  & .wy-auth__brand .wy-logo { color: #fff; filter: drop-shadow(0 0 14px var(--hx-glow)); animation: hx-breathe 4s ease-in-out infinite; }
  & .wy-auth__card { position: relative; }
  & .wy-auth .wy-card { box-shadow: 0 0 0 1px rgb(0 0 0 / 0.5), 0 0 80px -18px var(--hx-glow), inset 0 1px 0 rgb(160 255 215 / 0.1); }
  & .wy-auth__title { text-transform: uppercase; letter-spacing: 0.03em; text-shadow: 0 0 22px rgb(61 255 160 / 0.5); }

  /* ---- Landing ------------------------------------------------------------------ */
  & .wy-landing { background: transparent; }
  & .wy-landing__top { position: relative; background-image: linear-gradient(180deg, rgb(3 6 10 / 0.55) 0%, rgb(3 6 10 / 0) 22%, rgb(3 6 10 / 0) 70%, var(--hx-void) 100%); min-height: 100vh; }
  & .wy-landing__masthead { position: relative; border-bottom-color: var(--hx-line); background: rgb(3 6 10 / 0.6); }
  & .wy-landing__masthead .wy-logo { filter: drop-shadow(0 0 12px var(--hx-glow)); }
  & .wy-landing__edition { font-family: var(--hx-mono); font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--hx-neon); }
  & .wy-landing__contents { border-bottom-color: var(--hx-line); }
  @media (max-width: 639px) {
    & .wy-landing__mastactions .wy-btn { font-size: 0.6875rem; letter-spacing: 0.06em; padding-inline: var(--wy-space-3); }
    & .wy-landing__mastactions .wy-btn--ghost:not(.wy-btn--icon) { display: none; }
    & .wy-landing__toc { font-size: 0.75rem; letter-spacing: 0.08em; }
  }
  & .wy-landing__toc { position: relative; font-family: var(--hx-font); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; transition: color var(--wy-motion-fast) var(--wy-ease), text-shadow var(--wy-motion) var(--wy-ease); }
  & .wy-landing__toc:hover { color: var(--hx-neon); text-shadow: 0 0 14px var(--hx-glow); }
  & .wy-landing__top .wy-landing__kicker { font-family: var(--hx-mono); font-size: 0.75rem; color: var(--hx-ink); }
  & .wy-landing__top .wy-landing__h1 {
    max-width: 13ch;
    font-size: clamp(3.4rem, 1.2rem + 9.2vw, 9.5rem);
    line-height: 0.86;
    letter-spacing: -0.005em;
    color: #fff;
    text-shadow: var(--hx-halo), 0 0 60px rgb(61 255 160 / 0.35), 0 4px 30px rgb(0 0 0 / 0.7);
    perspective: 800px;
  }
  & .wy-landing__top .wy-landing__accent {
    color: var(--hx-neon);
    background: var(--hx-aurora) 0 50% / 200% 100%;
    background-image: linear-gradient(100deg, #3dffa0, #38e1ff 30%, #a274ff 50%, #38e1ff 70%, #3dffa0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
    filter: drop-shadow(0 0 28px rgb(61 255 160 / 0.6));
    animation: hx-shimmer 6s linear infinite;
  }
  & .hx-ch { display: inline-block; white-space: pre; transform-origin: 50% 100%; }
  & .hx-word { display: inline-block; white-space: nowrap; }
  &.fx-go .hx-ch { animation: hx-letter 0.7s cubic-bezier(0.2, 0.7, 0.1, 1) backwards; animation-delay: calc(var(--i) * 22ms + 150ms); }
  & .wy-landing__top .wy-landing__standfirst { font-size: clamp(1.05rem, 0.9rem + 0.5vw, 1.35rem); color: #d9efe5; }
  & .wy-landing__top .wy-landing__standfirst em { font-style: normal; color: var(--hx-neon); font-family: var(--hx-mono); font-size: 0.9em; }
  & .wy-landing__top .wy-landing__cta .wy-btn--primary { font-size: 1rem; padding-inline: var(--wy-space-8); min-height: 3.4rem; }
  /* a scroll cue under the hero */
  & .wy-landing__top::after {
    content: "";
    position: absolute;
    bottom: var(--wy-space-4);
    left: 50%;
    width: 1px;
    height: var(--wy-space-12);
    background: linear-gradient(180deg, transparent, var(--hx-neon));
    animation: hx-flicker 3s linear infinite;
  }
  & .wy-landing__section, & .wy-landing__worlds, & .wy-landing__colophon, & .wy-landing__footer {
    position: relative;
    background-color: rgb(3 6 10 / 0.66);
    background-image: radial-gradient(60% 26rem at 50% 0%, rgb(61 255 160 / 0.09), transparent 70%);
    background-repeat: no-repeat;
    border-color: var(--hx-line);
  }
  & .wy-landing__section:nth-of-type(even) { background-image: radial-gradient(50% 26rem at 90% 0%, rgb(162 116 255 / 0.1), transparent 70%); }
  & .wy-landing__h2 {
    font-size: clamp(2.4rem, 1.4rem + 3.6vw, 4.6rem);
    line-height: 0.9;
    color: #fff;
    text-shadow: 0 0 40px rgb(61 255 160 / 0.28);
  }
  & .wy-landing__n, & .wy-landing__numeral {
    background: var(--hx-aurora);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 16px rgb(61 255 160 / 0.5));
  }
  & .wy-landing__head .wy-landing__kicker, & .wy-landing__sub { font-family: var(--hx-mono); letter-spacing: 0.14em; color: var(--hx-neon); }
  & .wy-landing__term, & .wy-landing__q { font-family: var(--hx-font); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--hx-ink); }
  & .wy-landing__row, & .wy-landing__qa { border-color: rgb(61 255 160 / 0.14); transition: background-color var(--wy-motion) var(--wy-ease), box-shadow var(--wy-motion) var(--wy-ease); }
  & .wy-landing__row:hover, & .wy-landing__qa:hover { background: linear-gradient(90deg, rgb(61 255 160 / 0.09), transparent 70%); box-shadow: inset 3px 0 0 var(--hx-neon); }
  & .wy-landing__ledger { border-color: var(--hx-line-strong); }
  /* Fig. 1, the live request demo: a glass terminal */
  & .wy-landing__plate, & .wy-landing__demo {
    position: relative;
    border: 1px solid var(--hx-line-strong);
    border-radius: 4px;
    background: linear-gradient(180deg, rgb(18 38 36 / 0.82), rgb(5 10 13 / 0.86) 6rem);
    box-shadow: 0 0 0 1px rgb(0 0 0 / 0.5), 0 40px 90px -40px var(--hx-glow), inset 0 1px 0 rgb(160 255 215 / 0.1);
  }
  & .wy-landing__plate .wy-landing__demo { border: 0; background: none; box-shadow: none; backdrop-filter: none; }
  & .wy-landing__req-text { color: var(--hx-neon); text-shadow: 0 0 14px var(--hx-glow); }
  & .wy-landing__caret { background: var(--hx-neon); box-shadow: 0 0 10px var(--hx-neon); }
  & .wy-landing__chip--ok { box-shadow: 0 0 16px -4px var(--wy-success-fg); }
  & .wy-landing__figure { border-color: var(--hx-line); }
  & .wy-landing__fig2 { border: 1px solid var(--hx-line-strong); border-radius: 4px; box-shadow: 0 0 0 1px rgb(0 0 0 / 0.5), 0 40px 100px -40px var(--hx-glow); }
  /* the game cards: a tilting plate with brackets, a beam and a glare */
  & .wy-landing__worldgrid { perspective: 1400px; }
  & .wy-landing__world {
    position: relative;
    overflow: hidden;
    border: 1px solid rgb(255 255 255 / 0.14);
    border-radius: 4px;
    box-shadow: 0 0 0 1px rgb(0 0 0 / 0.5), 0 30px 60px -34px rgb(0 0 0 / 0.9);
    transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(0);
    transform-style: preserve-3d;
    transition: transform 0.25s var(--wy-ease), box-shadow var(--wy-motion) var(--wy-ease), border-color var(--wy-motion) var(--wy-ease);
    will-change: transform;
  }
  & .wy-landing__world:hover { border-color: var(--hx-neon); box-shadow: 0 0 0 1px rgb(0 0 0 / 0.5), 0 0 44px -8px var(--hx-glow), 0 40px 70px -34px rgb(0 0 0 / 0.9); transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-6px); }
  & .wy-landing__world::before {
    content: "";
    position: absolute;
    inset: 10px;
    z-index: 2;
    pointer-events: none;
    --b: rgb(255 255 255 / 0.75);
    background:
      linear-gradient(var(--b), var(--b)) top left / 18px 2px,
      linear-gradient(var(--b), var(--b)) top left / 2px 18px,
      linear-gradient(var(--b), var(--b)) top right / 18px 2px,
      linear-gradient(var(--b), var(--b)) top right / 2px 18px,
      linear-gradient(var(--b), var(--b)) bottom left / 18px 2px,
      linear-gradient(var(--b), var(--b)) bottom left / 2px 18px,
      linear-gradient(var(--b), var(--b)) bottom right / 18px 2px,
      linear-gradient(var(--b), var(--b)) bottom right / 2px 18px;
    background-repeat: no-repeat;
    opacity: 0.5;
    transition: inset var(--wy-motion) var(--wy-ease), opacity var(--wy-motion) var(--wy-ease);
  }
  & .wy-landing__world:hover::before { inset: 6px; opacity: 1; --b: var(--hx-neon); }
  & .wy-landing__world::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
      radial-gradient(22rem circle at var(--mx, -30rem) var(--my, -30rem), rgb(255 255 255 / 0.2), transparent 60%),
      repeating-linear-gradient(0deg, rgb(255 255 255 / 0.03) 0 1px, transparent 1px 3px);
  }
  & .wy-landing__world > * { position: relative; z-index: 3; }
  & .wy-landing__world-name { font-size: clamp(2rem, 1.2rem + 2vw, 3.1rem); }
  & .wy-landing__world-facts li { border-radius: 2px; border-color: rgb(255 255 255 / 0.28); font-family: var(--hx-mono); font-size: 0.6875rem; letter-spacing: 0.06em; text-transform: uppercase; background: rgb(3 6 10 / 0.45); }
  & .wy-landing__world-price { color: var(--hx-neon); text-shadow: 0 0 18px var(--hx-glow); }
  & .wy-landing__rate, & .wy-landing__tariff { border-color: var(--hx-line); }
  & .wy-landing__tariff { border-top-color: var(--hx-neon); box-shadow: 0 -1px 18px -4px var(--hx-glow); }
  & .wy-landing__figure--games { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: var(--wy-space-4) var(--wy-space-6); }
  & .wy-landing__game { padding: var(--wy-space-3); border: 1px solid rgb(61 255 160 / 0.14); background: rgb(8 14 19 / 0.6); transition: border-color var(--wy-motion-fast) var(--wy-ease), box-shadow var(--wy-motion) var(--wy-ease), transform var(--wy-motion) var(--wy-ease); }
  & .wy-landing__game:hover { border-color: var(--hx-neon); box-shadow: 0 0 20px -6px var(--hx-glow); transform: translateY(-2px); }
  @media (min-width: 900px) { & .wy-landing__tariff { grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); } }
  & .wy-landing__colophon .wy-logo, & .wy-landing__close .wy-logo { filter: drop-shadow(0 0 24px var(--hx-glow)); }
  & .wy-landing__colophon { border-top: 1px solid var(--hx-line-strong); border-radius: 0; background-image: radial-gradient(60% 22rem at 30% 100%, rgb(61 255 160 / 0.16), transparent 70%); }
  & .wy-landing__turn { border-top-color: var(--hx-neon); box-shadow: 0 -1px 18px -4px var(--hx-glow); }
  & .wy-landing__plate { border-inline: 0; border-radius: 0; }
  & .wy-landing__plate .wy-landing__ledger, & .wy-landing__req { border-top-color: var(--hx-neon); }

  /* scroll reveals (fx.js adds .hx-rv, then .hx-in when the block scrolls into view) */
  & .hx-rv { opacity: 0; transform: translateY(34px); transition: opacity 0.7s var(--wy-ease), transform 0.7s var(--wy-ease); transition-delay: calc(var(--d, 0) * 70ms); }
  & .hx-rv.hx-in { opacity: 1; transform: none; }
  & .wy-landing__world.hx-rv { transform: translateY(40px) rotateX(14deg); }
  & .wy-landing__world.hx-rv.hx-in { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }

  /* ---- Boot-in: once per page load, while <html> has .fx-boot ----------------- */
  &.fx-boot .wy-content > *, &.fx-boot .wy-auth__card > * { animation: hx-in 0.6s var(--wy-ease) backwards; }
  &.fx-boot .wy-content > :nth-child(2), &.fx-boot .wy-auth__card > :nth-child(2) { animation-delay: 0.08s; }
  &.fx-boot .wy-content > :nth-child(3), &.fx-boot .wy-auth__card > :nth-child(3) { animation-delay: 0.16s; }
  &.fx-boot .wy-content > :nth-child(4) { animation-delay: 0.24s; }
  &.fx-boot .wy-content > :nth-child(n + 5) { animation-delay: 0.32s; }
  &.fx-boot .wy-server > * { animation: hx-in 0.6s var(--wy-ease) backwards; }
  &.fx-boot .wy-server > :nth-child(2) { animation-delay: 0.1s; }
  &.fx-boot .wy-server > :nth-child(3) { animation-delay: 0.18s; }
  &.fx-boot .wy-server > :nth-child(n + 4) { animation-delay: 0.26s; }
  &.fx-boot .wy-auth-split__art > * { animation: hx-rise 0.8s 0.1s var(--wy-ease) backwards; }
  &.fx-boot .wy-auth__brand { animation: hx-in 0.6s var(--wy-ease) backwards; }
  &.fx-boot .wy-nav__list > li { animation: hx-slide 0.4s var(--wy-ease) backwards; }
  &.fx-boot .wy-nav__list > li:nth-child(2) { animation-delay: 0.05s; }
  &.fx-boot .wy-nav__list > li:nth-child(3) { animation-delay: 0.1s; }
  &.fx-boot .wy-nav__list > li:nth-child(n + 4) { animation-delay: 0.15s; }
  &.fx-boot .wy-page-header__text::before { animation: hx-draw 0.8s 0.2s var(--wy-ease) backwards; }
  &.fx-boot .wy-quota__fill { animation: hx-fill 1s 0.3s var(--wy-ease) backwards; }
  &.fx-boot .wy-table tbody tr { animation: hx-slide 0.45s var(--wy-ease) backwards; animation-delay: calc(0.3s + var(--r, 0) * 40ms); }
  &.fx-boot .wy-landing__masthead, &.fx-boot .wy-landing__contents { animation: hx-rise 0.7s var(--wy-ease) backwards; }
  &.fx-boot .wy-landing__kicker { animation: hx-rise 0.7s 0.1s var(--wy-ease) backwards; }
  &.fx-boot .wy-landing__deck { animation: hx-rise 0.9s 0.9s var(--wy-ease) backwards; }

  /* ---- The landing's intro: plays once per browser session ----------------------- */
  & #hx-intro { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; color: var(--hx-ink); font-family: var(--hx-mono); }
  & #hx-intro .hx-intro__half { position: absolute; left: 0; right: 0; height: 50.5%; background: #020508; transition: transform 0.9s cubic-bezier(0.7, 0, 0.2, 1); }
  & #hx-intro .hx-intro__half--a { top: 0; border-bottom: 1px solid var(--hx-neon); box-shadow: 0 0 40px var(--hx-glow); }
  & #hx-intro .hx-intro__half--b { bottom: 0; border-top: 1px solid var(--hx-neon); box-shadow: 0 0 40px var(--hx-glow); }
  & #hx-intro .hx-intro__core { position: relative; z-index: 1; display: grid; justify-items: center; gap: var(--wy-space-6); width: min(26rem, 80vw); transition: opacity 0.35s ease, transform 0.35s ease; }
  & #hx-intro .hx-intro__logo { position: relative; display: grid; place-items: center; width: 9rem; height: 9rem; color: #fff; font-family: var(--wy-font-display); font-size: 4.4rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1; text-shadow: 0 0 30px var(--hx-glow); }
  & #hx-intro .hx-intro__logo b { color: var(--hx-neon); font-weight: 800; }
  & #hx-intro .hx-intro__logo::before, & #hx-intro .hx-intro__logo::after { content: ""; position: absolute; inset: 0; border-radius: 50%; }
  & #hx-intro .hx-intro__logo::before { border: 1px solid rgb(61 255 160 / 0.25); background: conic-gradient(from var(--hx-a), transparent 0 70%, rgb(61 255 160 / 0.5) 99%, transparent); animation: hx-spin 1.6s linear infinite; -webkit-mask: radial-gradient(closest-side, transparent 78%, #000 80%); mask: radial-gradient(closest-side, transparent 78%, #000 80%); }
  & #hx-intro .hx-intro__logo::after { inset: -0.9rem; border: 1px dashed rgb(61 255 160 / 0.3); animation: hx-spin 9s linear infinite reverse; transform: rotate(var(--hx-a)); }
  & #hx-intro .hx-intro__bar { width: 100%; height: 10px; background: rgb(61 255 160 / 0.12); -webkit-mask: repeating-linear-gradient(90deg, #000 0 8px, transparent 8px 11px); mask: repeating-linear-gradient(90deg, #000 0 8px, transparent 8px 11px); }
  & #hx-intro .hx-intro__bar i { display: block; width: 0; height: 100%; background: var(--hx-aurora); box-shadow: 0 0 14px var(--hx-neon); }
  & #hx-intro .hx-intro__row { display: flex; justify-content: space-between; width: 100%; font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--hx-dim); }
  & #hx-intro .hx-intro__row b { color: var(--hx-neon); font-weight: 400; }
  & #hx-intro .hx-intro__skip { position: absolute; right: var(--wy-space-6); bottom: var(--wy-space-6); z-index: 2; padding: var(--wy-space-2) var(--wy-space-4); border: 1px solid var(--hx-line-strong); background: transparent; color: var(--hx-ink); font: inherit; font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer; }
  & #hx-intro .hx-intro__skip:hover, & #hx-intro .hx-intro__skip:focus-visible { border-color: var(--hx-neon); color: var(--hx-neon); box-shadow: 0 0 18px -4px var(--hx-glow); outline: none; }
  & #hx-intro.is-open { pointer-events: none; }
  & #hx-intro.is-open .hx-intro__half--a { transform: translateY(-101%); }
  & #hx-intro.is-open .hx-intro__half--b { transform: translateY(101%); }
  & #hx-intro.is-open .hx-intro__core, & #hx-intro.is-open .hx-intro__skip { opacity: 0; transform: scale(1.15); }
  /* before fx.js builds the intro, hold the page back; let go on its own if the script never runs */
  &.fx-intro body.wy-root::before { content: ""; position: fixed; inset: 0; z-index: 80; background: #020508; animation: hx-hold 0.4s 4s forwards; }
  &.fx-intro.fx-intro-on body.wy-root::before { content: none; }

  /* ---- Contrast (WCAG AA, docs/DESIGN.md §6 "Accessibility", 2026-11-28) -----------------
     Glass cards, the sidebar, dialogs and menus pass on their own. Text standing straight on
     the moving sky or on a banner photo does not on the brightest curtains, so it carries a
     tight dark halo (the WCAG technique: the halo is the text's background); on the dark sky
     it is invisible, on a bright curtain it darkens only the rim of each letter. */
  & .wy-shell :is(.wy-page-header__desc, .wy-tab, .wy-stepper, .wy-auth__note, .wy-stack > .wy-server__note, .wy-create__agree),
  & .wy-auth-split .wy-auth__links { text-shadow: var(--hx-halo); }
  & .wy-shell .wy-tab[aria-selected="true"] { text-shadow: var(--hx-halo), 0 0 14px var(--hx-glow); }
  & .wy-page-header--banner .wy-page-header__title, & .wy-server > .wy-page-header .wy-page-header__title { text-shadow: var(--hx-halo), 0 0 26px rgb(61 255 160 / 0.45); }
  & .wy-page-header--banner .wy-page-header__desc, & .wy-server > .wy-page-header .wy-page-header__desc { text-shadow: var(--hx-halo); }
  /* The public pages (landing, hosting, /games, the auth frame) draw the sky at level 1, not 0.62:
     its brightest curtains reach #1cd295, so the hero's text, the art panel's tagline and the
     muted text on the sections' 66% veil carry the same halo; the gradient numerals and the
     headline's gradient word take it as a tight drop-shadow (a text-shadow would show through
     their transparent fill). Measured in tests/test_accessibility.py (PUBLIC_SKY). */
  & .wy-landing__top :is(.wy-landing__kicker, .wy-landing__standfirst), & .wy-auth-split__sub { text-shadow: var(--hx-halo), var(--wy-hero-shadow); }
  & .wy-landing__top .wy-landing__fine, & .wy-landing__toc,
  & :is(.wy-landing__desc, .wy-landing__fig-caption, .wy-landing__rate-label, .wy-landing__figure small, .wy-landing__fig2 figcaption, .wy-landing__footer, .wy-landing__world-line, .wy-landing__world-price small) { text-shadow: var(--hx-halo); }
  & .wy-landing__toc:hover { text-shadow: var(--hx-halo), 0 0 14px var(--hx-glow); }
  & .wy-auth-split__tag { text-shadow: var(--hx-halo), 0 0 40px rgb(61 255 160 / 0.5), 0 2px 20px rgb(0 0 0 / 0.6); }
  & .wy-landing__n, & .wy-landing__numeral { filter: drop-shadow(0 0 1px rgb(2 6 9 / 0.95)) drop-shadow(0 0 2px rgb(2 6 9 / 0.9)) drop-shadow(0 0 16px rgb(61 255 160 / 0.5)); }
  & .wy-landing__top .wy-landing__accent { filter: drop-shadow(0 0 1px rgb(2 6 9 / 0.95)) drop-shadow(0 0 2px rgb(2 6 9 / 0.9)) drop-shadow(0 0 28px rgb(61 255 160 / 0.6)); }
  /* The focus ring on the bare sky: a dark rim under the outline, so the ring holds 3:1 over a
     bright curtain too (neon on #1cd295 alone is 1.5:1). Only while focused. */
  & :is(.wy-landing__top, .wy-auth-split .wy-auth__links, .wy-auth__brand) :focus-visible { box-shadow: 0 0 0 6px rgb(2 6 9 / 0.95); }
  /* the neon counts keep their 10% green, now over a dark base instead of the bare sky */
  & .wy-page-header__count, & .wy-tab__count { background: linear-gradient(rgb(61 255 160 / 0.1), rgb(61 255 160 / 0.1)), rgb(2 6 9 / 0.7); }
  /* the vignette darkens the sky's corners under the console instead of the text on top of it */
  & body.wy-root:has(> .wy-shell)::after { z-index: 0; }

  @media (prefers-reduced-motion: reduce) {
    & .wy-topbar::after, & .wy-auth__brand .wy-logo, & .wy-badge--success .wy-badge__dot, & .hx-readout i, & .wy-landing__top::after,
    & .wy-landing__top .wy-landing__accent, & .wy-auth-split__tag em, & .wy-card:hover::after,
    & .wy-page-header--banner::after, & .wy-server > .wy-page-header::after { animation: none; }
    & .wy-page-header--banner::after, & .wy-server > .wy-page-header::after { content: none; }
    & * { animation-duration: 0.01ms; animation-delay: 0s; animation-iteration-count: 1; }
    & .hx-rv { opacity: 1; transform: none; transition: none; }
    & .wy-landing__world, & .wy-landing__world:hover, & .wy-option:hover { transform: none; transition: none; }
  }
  @media (forced-colors: active) {
    & body.wy-root::after, & .wy-card::before, & .wy-card::after, & .wy-page-header::after, & .wy-landing__world::before, & .wy-landing__world::after { content: none; }
    & .wy-quota__bar { -webkit-mask: none; mask: none; }
    & .wy-stat__value, & .wy-landing__n, & .wy-landing__numeral, & .wy-landing__top .wy-landing__accent, & .wy-auth-split__tag em { -webkit-text-fill-color: currentColor; background: none; }
  }
}
@keyframes hx-hold { to { opacity: 0; visibility: hidden; } }
