/* NEON TURF — neon.css. Base page layout (integrator) + HUD styles (ui.js owner). */
html, body { margin: 0; height: 100%; background: #07070d; overflow: hidden; overscroll-behavior: none; }
body { position: fixed; inset: 0; color: #e8ecf5; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif; }
#view { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; outline: none; }
#hud { position: absolute; inset: 0; pointer-events: none; }

/* ==========================================================================
   HUD — "dark glass + thin neon, cut corners". --acc = local team colour (set by ui.js).
   ========================================================================== */
.nt-hud {
  --acc: #c9d3e8; --acc-a: rgba(201, 211, 232, .5); --acc-b: rgba(201, 211, 232, .16); --acc-c: rgba(201, 211, 232, .08);
  --glass: rgba(9, 11, 19, .88); --glass2: rgba(15, 18, 29, .94); --line: rgba(150, 170, 210, .17); --line2: rgba(150, 170, 210, .32);
  --txt: #e8ecf5; --dim: #8e97ad; --faint: #596178; --good: #4cf0a2; --warn: #ffb21e; --bad: #ff4d5e; --glint: #b9f7ec;
  --side: 288px; --topH: 38px; --gap: 8px; --cut: 9px;
  font-size: 13px; line-height: 1.3; font-variant-numeric: tabular-nums; color: var(--txt);
  -webkit-tap-highlight-color: transparent;
}
.nt-hud button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; outline: none; touch-action: manipulation; }
.nt-hud.nt-off > :not(.nt-ov):not(.nt-toasts) { display: none !important; }
.nt-hud.nt-spec:not(.nt-compact) .nt-side { bottom: auto; }
.nt-hud.nt-spec .nt-pow, .nt-hud.nt-spec .nt-glint, .nt-hud.nt-spec .nt-tabs, .nt-hud.nt-spec .nt-grid, .nt-hud.nt-spec .nt-powers { display: none !important; }
.nt-ico { width: 16px; height: 16px; flex: none; display: block; }

/* glass panel with two cut corners: neon bevel top-left, quiet bevel bottom-right */
.nt-glass {
  position: relative; pointer-events: auto; background: var(--glass); border: 1px solid var(--line); border-top-color: var(--acc-a);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03);
}
.nt-glass::before, .nt-glass::after { content: ''; position: absolute; width: var(--cut); height: var(--cut); pointer-events: none; }
.nt-glass::before { left: -1px; top: -1px; background: linear-gradient(135deg, transparent calc(50% - 1px), var(--acc) calc(50% - .5px), var(--acc) calc(50% + .6px), transparent calc(50% + 1.1px)); }
.nt-glass::after { right: -1px; bottom: -1px; background: linear-gradient(135deg, transparent calc(50% - 1px), var(--line2) calc(50% - .5px), var(--line2) calc(50% + .6px), transparent calc(50% + 1.1px)); }

/* ---------- top bar ---------- */
.nt-top { position: absolute; left: var(--gap); right: var(--gap); top: var(--gap); height: var(--topH); display: flex; justify-content: space-between; align-items: stretch; pointer-events: none; }
.nt-res { display: flex; align-items: center; gap: 20px; padding: 0 18px 0 16px; }
.nt-meter { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.nt-val { font-weight: 700; font-size: 16px; letter-spacing: .02em; }
.nt-small { font-size: 13px; font-weight: 600; }
.nt-lbl { color: var(--dim); font-size: 12px; letter-spacing: .04em; }
.nt-glint .nt-ico { color: var(--glint); filter: drop-shadow(0 0 4px rgba(185, 247, 236, .55)); width: 18px; height: 18px; }
.nt-glint .nt-val { min-width: 62px; color: #f2fffc; transition: color .25s, text-shadow .25s; }
.nt-glint.up .nt-val { color: var(--glint); text-shadow: 0 0 8px rgba(185, 247, 236, .6); }
.nt-glint.down .nt-val { color: #d7dcea; }
.nt-pow .nt-ico { color: var(--good); }
.nt-pbar { position: relative; width: 84px; height: 6px; background: rgba(255, 255, 255, .07); border: 1px solid var(--line); overflow: hidden; }
.nt-pbar i { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--p, 0) * 100%); background: var(--good); box-shadow: 0 0 6px var(--good); transition: width .3s; }
.nt-pow.tight .nt-ico { color: var(--warn); } .nt-pow.tight .nt-pbar i { background: var(--warn); box-shadow: 0 0 6px var(--warn); }
.nt-pow.low .nt-ico, .nt-pow.low .nt-val { color: var(--bad); }
.nt-pow.low .nt-pbar { border-color: var(--bad); }
.nt-pow.low .nt-pbar i { background: var(--bad); box-shadow: 0 0 8px var(--bad); }
.nt-pow.low { animation: nt-blink 1s steps(2, jump-none) infinite; }
.nt-clock .nt-ico { color: var(--dim); width: 14px; height: 14px; }
.nt-clock .nt-val { color: #c6cde0; }
.nt-sys { display: flex; align-items: center; justify-content: flex-end; gap: 2px; padding: 0 6px; width: var(--side); box-sizing: border-box; }
.nt-sb { height: 28px; min-width: 32px; padding: 0 8px !important; display: inline-flex; align-items: center; justify-content: center; gap: 5px; color: #c9d1e4 !important; border-radius: 2px; }
.nt-sb:hover { background: var(--acc-b) !important; color: #fff !important; }
.nt-sb .nt-ico { width: 15px; height: 15px; }
.nt-sb.off { color: var(--faint) !important; }
.nt-lang { font-weight: 700; font-size: 12px; letter-spacing: .04em; border: 1px solid var(--line) !important; height: 22px; }
.nt-speed span { font-size: 12px; font-weight: 700; min-width: 26px; text-align: left; }

/* ---------- sidebar ---------- */
.nt-side { position: absolute; right: var(--gap); top: calc(var(--gap) * 2 + var(--topH)); bottom: var(--gap); width: var(--side); box-sizing: border-box;
  display: flex; flex-direction: column; gap: 8px; padding: 10px; }
.nt-mm { position: relative; width: 100%; aspect-ratio: 1; flex: none; background: #05060a; border: 1px solid var(--line); box-sizing: border-box; pointer-events: auto; }
.nt-mmc { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: crosshair; touch-action: none; }
.nt-mmframe { position: absolute; inset: -1px; pointer-events: none;
  background: linear-gradient(var(--acc), var(--acc)) left top / 12px 1px no-repeat, linear-gradient(var(--acc), var(--acc)) left top / 1px 12px no-repeat,
    linear-gradient(var(--acc), var(--acc)) right bottom / 12px 1px no-repeat, linear-gradient(var(--acc), var(--acc)) right bottom / 1px 12px no-repeat; }
.nt-nosig { position: absolute; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 6px; pointer-events: none; text-align: center; padding: 0 14px; }
.nt-mm.dark .nt-nosig { display: flex; }
.nt-nosig b { font-size: 15px; letter-spacing: .32em; padding-left: .32em; color: #e9eefb; background: rgba(5, 6, 10, .78); padding: 3px 8px 3px calc(8px + .32em); text-shadow: 0 0 6px var(--acc); animation: nt-flicker 3.2s infinite; }
.nt-nosig span { font-size: 11.5px; color: #cdd4e6; background: rgba(5, 6, 10, .78); padding: 2px 6px; }

.nt-powers { display: none; flex-wrap: wrap; gap: 6px; flex: none; }
.nt-powers.on { display: flex; }
.nt-pw { flex: 1 1 calc(50% - 3px); min-width: 0; display: flex; align-items: center; gap: 8px; padding: 4px 6px 4px 4px !important; background: rgba(255, 255, 255, .03) !important; border: 1px solid var(--line) !important; text-align: left; }
.nt-pw.gone { display: none; }
.nt-pwring { position: relative; flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--acc) calc(var(--p, 0) * 1turn), rgba(255, 255, 255, .1) 0); }
.nt-pwi { border-radius: 50%; }
.nt-pwc { display: flex; flex-direction: column; min-width: 0; }
.nt-pwc b { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nt-pwc span { font-size: 11px; color: var(--dim); }
.nt-pw.off { opacity: .5; }
.nt-pw.ready { border-color: var(--acc) !important; animation: nt-pulse 1.4s ease-in-out infinite; }
.nt-pw.ready .nt-pwc span { color: var(--acc); font-weight: 700; letter-spacing: .08em; }
.nt-pw.on { background: var(--acc-b) !important; }
.nt-pw:hover { background: var(--acc-c) !important; }

.nt-tabs { display: flex; gap: 3px; flex: none; }
.nt-tab { position: relative; flex: 1 1 0; min-width: 0; height: 32px; padding: 0 3px !important; font-size: 11.5px !important; line-height: 1.08; color: var(--dim) !important;
  background: rgba(255, 255, 255, .03) !important; border: 1px solid var(--line) !important; border-bottom-width: 2px !important; overflow: hidden; }
.nt-tabn { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: keep-all; overflow-wrap: anywhere; }
.nt-tab:hover { color: var(--txt) !important; }
.nt-tab.on { color: #fff !important; background: var(--acc-b) !important; border-bottom-color: var(--acc) !important; }
.nt-tabb { position: absolute; top: 1px; right: 2px; font-size: 9.5px; font-weight: 700; line-height: 1; color: var(--acc); }
.nt-tab.ready .nt-tabb { color: #06110c; background: var(--good); padding: 1px 4px; border-radius: 6px; animation: nt-pulse-g 1s ease-in-out infinite; }
.nt-tabbar { position: absolute; left: 0; bottom: 0; height: 2px; width: calc(var(--p, 0) * 100%); background: var(--acc); }
.nt-seltab { display: none; flex: 0 0 auto; padding: 0 10px !important; }

.nt-grid { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; scrollbar-color: var(--line2) transparent; margin-right: -4px; padding-right: 4px; }
.nt-qgrid { display: none; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.nt-qgrid.on { display: grid; }
.nt-sheetsel { display: none; }
.nt-collapse { display: none; }

/* build button */
.nt-b { position: relative; display: flex !important; flex-direction: column; align-items: center; padding: 6px 2px 5px !important; min-width: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015)) !important; border: 1px solid var(--line) !important;
  clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px); transition: border-color .15s, background .15s; }
.nt-b:hover { border-color: var(--acc-a) !important; background: var(--acc-c) !important; }
.nt-b:active { transform: translateY(1px); }
.nt-bi { display: block; flex: none; }
.nt-bname { margin-top: 4px; font-size: 10.5px; line-height: 1.18; text-align: center; color: #d5dbea; padding: 0 1px; height: 2.36em; overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; hyphens: auto; letter-spacing: -.01em; }
.nt-bcost { position: absolute; left: 3px; top: 3px; font-size: 10.5px; font-weight: 700; color: var(--glint); background: rgba(5, 7, 12, .82); padding: 0 4px; line-height: 15px; }
.nt-b.poor .nt-bcost { color: var(--bad); }
.nt-bcount { position: absolute; right: 3px; top: 3px; min-width: 16px; height: 16px; line-height: 16px; text-align: center; font-size: 11px; font-weight: 700;
  color: #05070c; background: var(--acc); border-radius: 8px; padding: 0 3px; box-sizing: border-box; }
.nt-bcount:empty { display: none; }
.nt-bsweep { position: absolute; left: 0; right: 0; top: 0; bottom: 0; display: none; pointer-events: none;
  background: conic-gradient(from 0deg at 50% 38%, transparent 0 calc(var(--p, 0) * 1turn), rgba(3, 5, 10, .66) 0); }
.nt-b.prod .nt-bsweep, .nt-b.held .nt-bsweep { display: block; }
.nt-b.held .nt-bsweep { background: rgba(3, 5, 10, .28); }
.nt-bpct { position: absolute; left: 0; right: 0; top: 24px; text-align: center; font-size: 14px; font-weight: 800; color: #fff; text-shadow: 0 0 4px #000, 0 0 8px #000; pointer-events: none; }
.nt-b.prod { border-color: var(--acc-a) !important; }
.nt-bstate { position: absolute; left: 50%; top: 26px; transform: translateX(-50%); font-size: 10.5px; font-weight: 800; letter-spacing: .1em; padding: 1px 6px; line-height: 15px; white-space: nowrap; pointer-events: none; }
.nt-bstate:empty { display: none; }
.nt-b.ready { border-color: var(--good) !important; animation: nt-pulse-g 1.1s ease-in-out infinite; }
.nt-b.ready .nt-bstate { color: #04140c; background: var(--good); box-shadow: 0 0 10px rgba(76, 240, 162, .7); }
.nt-b.held .nt-bstate { color: #cfd6e8; background: rgba(5, 7, 12, .85); border: 1px solid var(--line2); }
.nt-b.max .nt-bstate { color: var(--warn); background: rgba(5, 7, 12, .85); border: 1px solid var(--warn); }
.nt-block { position: absolute; left: 50%; top: 22px; transform: translateX(-50%); color: #aeb6c9; display: none; pointer-events: none; }
.nt-block .nt-ico { width: 18px; height: 18px; filter: drop-shadow(0 0 3px #000); }
.nt-b.locked .nt-block { display: block; }
.nt-b.locked .nt-bi, .nt-b.max .nt-bi { opacity: .32; filter: grayscale(.85); }
.nt-b.locked .nt-bname, .nt-b.max .nt-bname { color: var(--faint); }
.nt-b.locked .nt-bcost { color: var(--faint); }
.nt-bx { position: absolute; right: 2px; top: 2px; width: 18px; height: 18px; display: none; place-items: center; background: rgba(5, 7, 12, .9); border: 1px solid var(--bad); color: var(--bad); }
.nt-bx .nt-ico { width: 11px; height: 11px; }
.nt-b.queued:hover .nt-bx { display: grid; }
.nt-b.queued:hover .nt-bcount { display: none; }

/* ---------- tooltip ---------- */
.nt-tip { position: absolute; left: 0; top: 0; width: 300px; box-sizing: border-box; padding: 10px 12px 9px; display: none; z-index: 40; pointer-events: none !important; background: var(--glass2); font-size: 12px; }
.nt-tip.on { display: block; }
.nt-th { display: flex; gap: 10px; align-items: center; margin-bottom: 7px; }
.nt-thi { flex: none; }
.nt-thc { min-width: 0; }
.nt-tn { display: block; font-size: 14.5px; color: #fff; margin-bottom: 3px; }
.nt-tm { display: flex; flex-wrap: wrap; gap: 4px 10px; color: #cbd2e3; }
.nt-tm > span { display: inline-flex; align-items: center; gap: 4px; }
.nt-tm .nt-ico { width: 12px; height: 12px; }
.nt-tcost { color: var(--glint); font-weight: 700; }
.nt-tstats { display: flex; flex-wrap: wrap; gap: 3px 12px; padding: 5px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.nt-tstats i { font-style: normal; color: var(--dim); margin-right: 4px; }
.nt-td { margin: 0 0 6px; color: #b7bfd2; line-height: 1.42; }
.nt-tw { margin: 0 0 5px; padding: 4px 0 4px 8px; border-left: 2px solid var(--acc-a); }
.nt-twh b { margin-right: 6px; color: #fff; font-size: 12px; }
.nt-twr { display: flex; flex-wrap: wrap; gap: 1px 10px; margin-top: 2px; color: var(--dim); font-size: 11.5px; }
.nt-tt { margin: 2px 0 4px; padding: 0 0 0 14px; color: #cfd6e6; line-height: 1.4; }
.nt-tt li::marker { color: var(--acc); }
.nt-treq:empty { display: none; }
.nt-treq { margin: 4px 0 2px; display: flex; flex-direction: column; gap: 2px; }
.nt-reqs span + span:not(:last-child)::after, .nt-reqs span:nth-child(n+2):not(:last-child)::after { content: ' · '; color: var(--faint); }
.nt-thint { margin-top: 6px; padding-top: 5px; border-top: 1px dashed var(--line); color: var(--faint); font-size: 11px; }
.nt-good { color: var(--good); } .nt-bad { color: var(--bad); } .nt-warn { color: var(--warn); } .nt-dim { color: var(--dim); }

/* ---------- selection panel ---------- */
.nt-sel { position: absolute; left: var(--gap); bottom: var(--gap); max-width: calc(100% - var(--side) - var(--gap) * 4); box-sizing: border-box;
  display: none; gap: 14px; padding: 10px 12px; align-items: center; }
.nt-sel.on { display: flex; }
.nt-selbody { min-width: 0; }
.nt-one { display: none; gap: 11px; align-items: flex-start; }
.nt-one.on { display: flex; }
.nt-pic { flex: none; display: block; }
.nt-oneinfo { width: 290px; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.nt-onehead { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.nt-onename { font-size: 15px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nt-rank { color: var(--warn); font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.nt-owner { font-size: 11.5px; white-space: nowrap; margin-left: auto; }
.nt-hp { position: relative; height: 13px; background: rgba(255, 255, 255, .07); border: 1px solid var(--line); overflow: hidden; }
.nt-hp i { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--p, 1) * 100%); background: linear-gradient(180deg, #5ff7b1, #22c47d); transition: width .2s; }
.nt-hp.mid i { background: linear-gradient(180deg, #ffc955, #e89a0c); }
.nt-hp.low i { background: linear-gradient(180deg, #ff6b78, #d92a3c); }
.nt-hp span { position: absolute; right: 5px; top: 0; font-size: 10px; line-height: 11px; font-weight: 700; color: #fff; text-shadow: 0 0 3px #000, 0 0 2px #000; }
.nt-cargo { display: none; height: 4px; background: rgba(255, 255, 255, .07); position: relative; }
.nt-cargo.on { display: block; }
.nt-cargo i { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--p, 0) * 100%); background: var(--glint); box-shadow: 0 0 6px var(--glint); }
.nt-stats { color: var(--dim); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nt-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.nt-chip { font-size: 10.5px; line-height: 15px; padding: 0 6px; border: 1px solid var(--line2); color: #cdd4e6; white-space: nowrap; }
.nt-chip.good { border-color: var(--good); color: var(--good); }
.nt-chip.bad { border-color: var(--bad); color: var(--bad); }
.nt-chip.warn { border-color: var(--warn); color: var(--warn); }
.nt-chip.acc { border-color: var(--acc); color: var(--acc); background: var(--acc-c); }
.nt-chip.trait { color: var(--dim); border-style: dashed; }
.nt-many { display: none; }
.nt-many.on { display: block; }
.nt-manyhead { color: var(--dim); font-size: 11.5px; margin-bottom: 5px; }
.nt-manygrid { display: flex; flex-wrap: wrap; gap: 4px; max-width: 470px; max-height: 98px; overflow: hidden; }
.nt-grp { position: relative; display: block !important; border: 1px solid var(--line) !important; }
.nt-grp:hover { border-color: var(--acc) !important; }
.nt-grpi { display: block; }
.nt-grpn { position: absolute; right: 2px; bottom: 4px; font-size: 11px; font-weight: 800; color: #fff; text-shadow: 0 0 3px #000, 0 0 3px #000; }
.nt-grphp { position: absolute; left: 0; bottom: 0; height: 2px; width: calc(var(--p, 1) * 100%); background: var(--good); }
.nt-acts { display: grid; grid-auto-flow: column; grid-template-rows: repeat(2, auto); gap: 5px; align-content: center; flex: none; }
.nt-acts:empty { display: none; }
.nt-act { min-width: 92px; height: 32px; padding: 0 8px 0 10px !important; display: flex !important; align-items: center; justify-content: space-between; gap: 8px;
  background: rgba(255, 255, 255, .04) !important; border: 1px solid var(--line) !important; font-size: 12.5px !important; white-space: nowrap; }
.nt-act:hover { border-color: var(--acc-a) !important; background: var(--acc-c) !important; }
.nt-act.on { border-color: var(--acc) !important; background: var(--acc-b) !important; color: #fff !important; }
.nt-act.dis { opacity: .38; cursor: default; }
.nt-act kbd { font: 700 10px/14px ui-monospace, Menlo, Consolas, monospace; color: var(--dim); border: 1px solid var(--line2); padding: 0 4px; border-radius: 2px; }
.nt-act-sell { color: #ffd0d4 !important; }
.nt-selhint { position: absolute; left: 12px; top: -20px; font-size: 11.5px; color: #cfd6e6; text-shadow: 0 1px 3px #000, 0 0 6px #000; white-space: nowrap; }
.nt-selhint:empty { display: none; }
.nt-sel.nt-glass { clip-path: none; overflow: visible; }
.nt-sel.nt-glass::before { left: -1px; top: -1px; }

/* ---------- toasts / banners ---------- */
.nt-toasts { position: absolute; left: var(--gap); top: calc(var(--gap) * 2 + var(--topH)); width: 330px; display: flex; flex-direction: column; gap: 5px; pointer-events: none; z-index: 20; }
.nt-toast { display: flex; align-items: center; gap: 8px; padding: 7px 12px 7px 12px; font-size: 13px; pointer-events: none; border-left: 3px solid var(--acc) !important;
  animation: nt-in .22s ease-out; transition: opacity .4s, transform .4s; --cut: 7px; }
.nt-toast.click { pointer-events: auto; cursor: pointer; }
.nt-toast.click:hover { background: var(--glass2); }
.nt-toast.good { border-left-color: var(--good) !important; }
.nt-toast.warn { border-left-color: var(--warn) !important; }
.nt-toast.bad { border-left-color: var(--bad) !important; background: rgba(32, 8, 14, .9); }
.nt-toast.out { opacity: 0; transform: translateX(-12px); }
.nt-toast.bump { animation: nt-bump .3s ease-out; }
.nt-ttxt { flex: 1; min-width: 0; }
.nt-tcnt { color: var(--dim); font-size: 11.5px; font-weight: 700; }
.nt-tjump { color: var(--dim); display: flex; }
.nt-tjump .nt-ico { width: 14px; height: 14px; }
.nt-toast.bad .nt-tjump { color: var(--bad); }

/* centred in the strip between the toast column (330 px) and the sidebar, so neither covers the other */
.nt-hint, .nt-banner { position: absolute; top: calc(var(--gap) * 2 + var(--topH)); left: calc((100% - var(--side) + 330px + var(--gap)) / 2); transform: translateX(-50%); z-index: 15; }
.nt-hint { display: none; align-items: center; flex-wrap: wrap; gap: 6px 12px; padding: 9px 10px 9px 14px; max-width: min(560px, calc(100% - var(--side) - 330px - var(--gap) * 4)); box-sizing: border-box; }
.nt-hint.on { display: flex; }
.nt-hud .nt-hint { pointer-events: none; }               /* the coach line must not swallow taps on the units under it */
.nt-hud .nt-hint .nt-hbtn { pointer-events: auto; }
.nt-moding .nt-hint { display: none; }
.nt-banner { display: none; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.nt-banner.on { display: flex; }
.nt-bannert { padding: 7px 16px; font-size: 13px; color: #fff; white-space: nowrap; pointer-events: none !important; border-top-color: var(--acc) !important; }
.nt-confirm { display: none; gap: 10px; pointer-events: auto; }
.nt-confirm.on { display: flex; }
.nt-cbtn { min-width: 116px; height: 46px; font-size: 15px !important; font-weight: 700; letter-spacing: .04em; border: 1px solid var(--line2) !important; background: var(--glass2) !important;
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px); }
.nt-ok { border-color: var(--good) !important; color: var(--good) !important; }
.nt-no { color: #ffc2c8 !important; }
.nt-paused { position: absolute; left: calc((100% - var(--side) - var(--gap)) / 2); top: 38%; transform: translate(-50%, -50%); display: none; font-size: 30px; font-weight: 800;
  letter-spacing: .4em; padding-left: .4em; color: #fff; text-shadow: 0 0 14px var(--acc), 0 0 2px #000; pointer-events: none; }
.nt-paused.on { display: block; animation: nt-flicker 4s infinite; }
.nt-rotate { display: none; }

@keyframes nt-blink { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@keyframes nt-flicker { 0%, 92%, 100% { opacity: 1; } 93% { opacity: .55; } 95% { opacity: 1; } 97% { opacity: .7; } }
@keyframes nt-pulse { 0%, 100% { box-shadow: 0 0 0 0 transparent, inset 0 0 0 0 transparent; } 50% { box-shadow: 0 0 12px -2px var(--acc), inset 0 0 10px -4px var(--acc); } }
@keyframes nt-pulse-g { 0%, 100% { box-shadow: inset 0 0 0 0 transparent; } 50% { box-shadow: inset 0 0 14px -3px rgba(76, 240, 162, .8); } }
@keyframes nt-in { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
@keyframes nt-bump { 0% { filter: brightness(1.8); } 100% { filter: none; } }

/* ---------- first-game hint ---------- */
.nt-htag { flex: none; font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #06080e; background: var(--acc); padding: 2px 6px; }
.nt-htxt { flex: 1 1 180px; min-width: 0; font-size: 13px; color: #eef2fb; }
.nt-hbtn { flex: none; height: 26px; padding: 0 10px !important; font-size: 12px !important; border: 1px solid var(--acc-a) !important; color: #fff !important; background: var(--acc-b) !important; white-space: nowrap; }
.nt-hbtn.ghost { border-color: var(--line) !important; background: none !important; color: var(--dim) !important; }
.nt-b.nt-hl { border-color: var(--acc) !important; animation: nt-pulse 1.2s ease-in-out infinite; }
.nt-b.nt-hl.ready { animation: nt-pulse-g 1.1s ease-in-out infinite; }

/* ---------- overlays ---------- */
.nt-ov { position: absolute; inset: 0; display: none; pointer-events: auto; z-index: 50; overflow: auto; box-sizing: border-box; padding: 24px;
  background: radial-gradient(ellipse at 50% 120%, var(--acc-b), transparent 60%), rgba(4, 5, 10, .74); backdrop-filter: blur(2px); }
.nt-ov.on { display: flex; }
.nt-ov > * { margin: auto; flex: none; }
.nt-ov-main { background:
  linear-gradient(180deg, rgba(5, 6, 12, .55), rgba(5, 6, 12, .96) 70%),
  repeating-linear-gradient(90deg, rgba(120, 140, 190, .05) 0 1px, transparent 1px 64px),
  repeating-linear-gradient(0deg, rgba(120, 140, 190, .05) 0 1px, transparent 1px 64px),
  radial-gradient(ellipse at 20% -10%, var(--acc-b), transparent 55%), radial-gradient(ellipse at 90% 110%, rgba(25, 227, 255, .10), transparent 50%), #06070d; backdrop-filter: none; }
.nt-panel { --cut: 14px; padding: 22px 26px 20px; box-sizing: border-box; max-width: 100%; background: var(--glass2); }
.nt-ptitle { margin: 0 0 16px; font-size: 20px; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; color: #fff; text-shadow: 0 0 12px var(--acc-a); }
.nt-pcol { display: flex; flex-direction: column; gap: 8px; }
.nt-pause { width: 340px; }
.nt-mbtn { height: 42px; padding: 0 20px !important; font-size: 14.5px !important; font-weight: 600; letter-spacing: .03em; color: #e8ecf5 !important;
  border: 1px solid var(--line2) !important; background: rgba(255, 255, 255, .04) !important; white-space: nowrap; display: inline-flex !important; align-items: center; justify-content: center; gap: 10px;
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px); transition: background .15s, border-color .15s; }
.nt-mbtn:hover { background: var(--acc-c) !important; border-color: var(--acc-a) !important; }
.nt-mbtn.primary { color: #05070c !important; background: var(--acc) !important; border-color: var(--acc) !important; font-weight: 800; box-shadow: 0 0 18px -4px var(--acc); }
.nt-mbtn.primary:hover { filter: brightness(1.12); }
.nt-mbtn.ghost { background: none !important; }
.nt-mbtn.warn { color: #ffc2c8 !important; }
.nt-mbtn.danger { color: #fff !important; background: rgba(255, 77, 94, .35) !important; border-color: var(--bad) !important; }
.nt-pfoot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.nt-chiprow { display: flex; flex-wrap: wrap; gap: 6px; }
.nt-mchip { --c: var(--acc); height: 32px; padding: 0 14px !important; font-size: 13px !important; border: 1px solid var(--line2) !important; color: #cfd6e6 !important; background: rgba(255, 255, 255, .03) !important; white-space: nowrap; }
.nt-mchip:hover { border-color: var(--c) !important; }
.nt-mchip.on { border-color: var(--c) !important; color: #fff !important; background: color-mix(in srgb, var(--c) 22%, transparent) !important; box-shadow: inset 0 -2px 0 var(--c); }

/* main menu */
.nt-ov > .nt-menu { width: 100%; max-width: 1180px; margin: 0 auto; padding: 8px 8px 24px; box-sizing: border-box; }
.nt-mhead { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin: 6px 0 18px; }
.nt-logo h1 { display: inline-block; margin: 0; font-size: 56px; line-height: 1; font-weight: 900; letter-spacing: .06em; font-style: italic; color: #fff;
  text-shadow: 0 0 2px #fff, 0 0 14px var(--acc), 0 0 34px var(--acc-a); transform: skewX(-4deg); }
.nt-logo2 { display: inline-block; margin-left: 16px; font-size: 26px; font-weight: 800; letter-spacing: .2em; color: var(--acc); text-shadow: 0 0 12px var(--acc-a); vertical-align: 8px; }
.nt-mtag { margin: 10px 0 0; color: #aab3c8; font-size: 14px; max-width: 640px; }
.nt-mtools { display: flex; gap: 8px; align-items: center; flex: none; }
.nt-mlink { height: 32px; padding: 0 12px !important; display: inline-flex; align-items: center; font-size: 13px; color: #cfd6e6 !important; text-decoration: none; border: 1px solid var(--line2) !important; }
.nt-mlink:hover { border-color: var(--acc) !important; color: #fff !important; }
.nt-mlang { font-weight: 700; }
.nt-msec { margin: 18px 0 9px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); font-weight: 700; display: flex; align-items: center; gap: 10px; }
.nt-msec::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line2), transparent); }
.nt-fcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 12px; }
.nt-fcard { --c: #fff; position: relative; display: flex !important; flex-direction: column; gap: 10px; padding: 14px 16px 14px 18px !important; text-align: left;
  background: linear-gradient(135deg, var(--ca), transparent 60%), rgba(12, 14, 23, .9) !important; border: 1px solid var(--line) !important; border-left: 3px solid var(--c) !important;
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px); transition: border-color .15s, transform .15s; opacity: .78; }
.nt-fcard:hover { opacity: 1; }
.nt-fcard.on { opacity: 1; border-color: var(--c) !important; box-shadow: inset 0 0 40px -18px var(--c); }
.nt-fcard.on::after { content: '✓'; position: absolute; right: 14px; top: 10px; font-weight: 900; color: var(--c); font-size: 18px; }
.nt-fcol { display: flex; gap: 6px; }
.nt-fcol canvas { display: block; }
.nt-fname { font-size: 22px; font-weight: 800; color: var(--c); letter-spacing: .02em; }
.nt-ftag { display: block; font-size: 13px; color: #e2e7f2; margin-top: 2px; }
.nt-fdesc { margin: 6px 0 0; font-size: 12.5px; line-height: 1.5; color: #9aa3b8; }
.nt-mopts { display: flex; gap: 32px; flex-wrap: wrap; }
.nt-mopt { flex: 1 1 300px; min-width: 0; }
.nt-maps { display: flex; gap: 10px; flex-wrap: wrap; }
.nt-mapc { display: flex !important; flex-direction: column; gap: 6px; padding: 8px !important; border: 1px solid var(--line) !important; background: rgba(12, 14, 23, .85) !important; text-align: left; width: 150px; box-sizing: border-box; }
.nt-mapc:hover { border-color: var(--acc-a) !important; }
.nt-mapc.on { border-color: var(--acc) !important; box-shadow: 0 0 0 1px var(--acc), 0 0 18px -6px var(--acc); }
.nt-mapv { display: block; width: 132px; height: 132px; }
.nt-mapq { display: grid; place-items: center; font-size: 46px; font-weight: 900; color: var(--dim); background: repeating-linear-gradient(45deg, rgba(255, 255, 255, .03) 0 6px, transparent 6px 12px), #05060a; }
.nt-mapl b { display: block; font-size: 13px; color: #fff; line-height: 1.2; }
.nt-mapl span { font-size: 11.5px; color: var(--dim); }
.nt-mapdesc { margin: 10px 0 0; color: #aab3c8; font-size: 13px; line-height: 1.5; max-width: 820px; min-height: 2.9em; }
.nt-mfoot { display: flex; justify-content: flex-end; align-items: center; gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.nt-mfoot .primary { height: 50px; min-width: 210px; font-size: 17px !important; letter-spacing: .1em; text-transform: uppercase; }

/* settings */
.nt-settings { width: 520px; }
.nt-srows { display: flex; flex-direction: column; gap: 10px; }
.nt-srow { display: flex; align-items: center; gap: 14px; min-height: 34px; }
.nt-slab { width: 150px; flex: none; color: #cfd6e6; }
.nt-sctl { flex: 1; display: flex; align-items: center; gap: 10px; min-width: 0; }
.nt-range { flex: 1; accent-color: var(--acc); }
.nt-sval { width: 30px; text-align: right; color: var(--dim); }

/* how to play */
.nt-howto { width: 980px; max-height: calc(100vh - 48px); overflow: auto; }
.nt-hcols { display: grid; grid-template-columns: 1.15fr 1fr; gap: 28px; }
.nt-hsec { margin-bottom: 12px; }
.nt-hsec h4, .nt-hk { margin: 0 0 4px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--acc); }
.nt-hsec p { margin: 0; color: #b9c1d4; line-height: 1.5; font-size: 13px; }
.nt-hk { margin-top: 4px; margin-bottom: 8px; }
.nt-keys { display: grid; grid-template-columns: auto 1fr; gap: 5px 12px; align-items: center; margin-bottom: 16px; }
.nt-keys kbd { font: 700 11.5px/20px ui-monospace, Menlo, Consolas, monospace; color: #fff; border: 1px solid var(--line2); border-bottom-width: 2px; padding: 0 7px; justify-self: start; white-space: nowrap; }
.nt-keys span { color: #b9c1d4; font-size: 12.5px; }
.nt-tlist { margin: 0; padding-left: 16px; color: #b9c1d4; line-height: 1.6; font-size: 12.5px; }
.nt-tlist li::marker { color: var(--acc); }

/* game over */
.nt-over { width: 860px; text-align: center; }
.nt-otitle { margin: 6px 0 4px; font-size: 64px; font-weight: 900; letter-spacing: .22em; padding-left: .22em; font-style: italic; color: #fff; }
.nt-over.win .nt-otitle { text-shadow: 0 0 2px #fff, 0 0 18px var(--good), 0 0 40px rgba(76, 240, 162, .5); }
.nt-over.lose .nt-otitle { text-shadow: 0 0 2px #fff, 0 0 18px var(--bad), 0 0 40px rgba(255, 77, 94, .5); color: #ffe3e6; }
.nt-over.spec .nt-otitle { font-size: 44px; text-shadow: 0 0 16px var(--acc); }
.nt-osub { margin: 0; font-size: 16px; color: #d7ddeb; }
.nt-otime { margin: 6px 0 16px; color: var(--dim); }
.nt-otbl { width: 100%; border-collapse: collapse; font-size: 13px; text-align: right; }
.nt-otbl th { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); font-weight: 700; padding: 6px 8px; border-bottom: 1px solid var(--line2); }
.nt-otbl td { padding: 9px 8px; border-bottom: 1px solid var(--line); }
.nt-otbl th:first-child, .nt-otbl td:first-child { text-align: left; }
.nt-otbl tr.won td { background: rgba(255, 255, 255, .035); }
.nt-ogang { display: flex; align-items: center; gap: 8px; }
.nt-ogang i { width: 10px; height: 10px; flex: none; }
.nt-ogang span { color: var(--dim); font-size: 11.5px; }
.nt-over .nt-pfoot { justify-content: center; }

/* ==========================================================================
   COMPACT — touch / small screens (ui.js sets .nt-compact)
   ========================================================================== */
.nt-compact { --topH: 40px; --gap: 5px; font-size: 12px; }   /* 40: the top-bar buttons' hit areas fill the bar */
.nt-compact .nt-res { gap: 12px; padding: 0 10px; }
.nt-compact .nt-val { font-size: 14.5px; }
.nt-compact .nt-glint .nt-lbl, .nt-compact .nt-pow .nt-lbl { display: none; }
.nt-compact .nt-glint .nt-val { min-width: 52px; }
.nt-compact .nt-pbar { width: 46px; }
.nt-compact .nt-sys { width: auto; padding: 0 3px; }
.nt-compact .nt-sb { height: 30px; min-width: 40px; }
/* minimap: corner, tap to enlarge */
.nt-compact > .nt-mm { position: absolute; right: var(--gap); top: calc(var(--gap) * 2 + var(--topH)); width: 92px; height: 92px; aspect-ratio: auto; z-index: 12; box-shadow: 0 0 0 1px var(--acc-a); }
.nt-compact > .nt-mm.big { width: min(78vh, 60vw); height: min(78vh, 60vw); z-index: 45; }
.nt-compact > .nt-mm .nt-nosig b { font-size: 10px; padding: 2px 4px 2px calc(4px + .3em); }
.nt-compact > .nt-mm .nt-nosig span { display: none; }
.nt-compact > .nt-mm.big .nt-nosig span { display: block; }
.nt-compact > .nt-powers { position: absolute; right: var(--gap); top: calc(var(--gap) * 3 + var(--topH) + 92px); flex-direction: column; gap: 5px; z-index: 11; }
.nt-compact > .nt-powers .nt-pw { pointer-events: auto; flex: none; padding: 3px !important; background: var(--glass) !important; }
.nt-compact > .nt-powers .nt-pwc { display: none; }
/* bottom sheet */
.nt-compact .nt-side { left: var(--gap); right: var(--gap); top: auto; bottom: var(--gap); width: auto; height: 122px; padding: 5px 6px 6px; gap: 5px; --cut: 7px; }
.nt-compact .nt-side.folded { height: 42px; }
.nt-compact .nt-side.folded .nt-grid, .nt-compact .nt-side.folded .nt-sheetsel { display: none !important; }
.nt-compact .nt-tabs { padding-right: 40px; }
.nt-compact .nt-tab { height: 30px; font-size: 12px !important; flex: 1 1 0; }
.nt-compact .nt-seltab.vis { display: block; flex: 0 0 auto; color: var(--acc) !important; }
.nt-compact .nt-collapse { display: grid; place-items: center; position: absolute; right: 6px; top: 5px; width: 34px; height: 30px; border: 1px solid var(--line) !important; color: var(--dim) !important; font-size: 14px !important; }
.nt-compact .nt-side.folded .nt-collapse { transform: rotate(180deg); }
/* touch: invisible hit-area extensions so the 30 px-tall controls answer a ~40 px fingertip without taking more room */
.nt-compact .nt-sb, .nt-compact .nt-hbtn { position: relative; }
.nt-compact .nt-tab { overflow: visible; }
.nt-compact .nt-sb::after, .nt-compact .nt-tab::after, .nt-compact .nt-collapse::after, .nt-compact .nt-hbtn::after { content: ''; position: absolute; left: 0; right: 0; top: -5px; bottom: -5px; }
.nt-compact .nt-grid { overflow-x: auto; overflow-y: hidden; margin: 0; padding: 0 0 2px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.nt-compact .nt-qgrid.on { display: flex; gap: 5px; }
.nt-compact .nt-b { flex: none; width: 72px; height: 76px; padding: 4px 1px 3px !important; }
.nt-compact .nt-bi { width: 44px !important; height: 44px !important; }
.nt-compact .nt-bname { font-size: 10px; height: 1.2em; -webkit-line-clamp: 1; margin-top: 3px; }
.nt-compact .nt-bpct, .nt-compact .nt-bstate { top: 18px; }
.nt-compact .nt-block { top: 16px; }
.nt-compact .nt-bcost { font-size: 9.5px; line-height: 13px; }
.nt-compact .nt-side.selmode .nt-grid { display: none; }
.nt-compact .nt-side.selmode .nt-sheetsel { display: block; flex: 1; min-height: 0; }
.nt-compact .nt-sel { position: static; display: none; max-width: none; height: 100%; padding: 0; background: none; border: 0; clip-path: none; box-shadow: none; gap: 10px; }
.nt-compact .nt-sel.on { display: flex; }
.nt-compact .nt-sel::before, .nt-compact .nt-sel::after { display: none; }
.nt-compact .nt-selbody { flex: 0 1 auto; min-width: 0; }
.nt-compact .nt-oneinfo { width: 200px; gap: 3px; }
.nt-compact .nt-onename { font-size: 13px; }
.nt-compact .nt-stats, .nt-compact .nt-owner { display: none; }
.nt-compact .nt-chips { max-height: 17px; overflow: hidden; }
.nt-compact .nt-manyhead { display: none; }
.nt-compact .nt-manygrid { max-width: 240px; max-height: 76px; overflow-y: auto; }
.nt-compact .nt-acts { grid-template-rows: none; grid-auto-flow: column; overflow-x: auto; scrollbar-width: none; flex: 1 1 auto; justify-content: start; }
.nt-compact .nt-act { min-width: 72px; height: 68px; padding: 0 8px !important; flex-direction: column; justify-content: center; font-size: 12.5px !important; }
.nt-compact .nt-act-deselect { color: var(--dim) !important; }
.nt-compact .nt-selhint { display: none; }
/* messages */
.nt-compact .nt-toasts { top: calc(var(--gap) * 2 + var(--topH)); width: min(300px, 46vw); }
.nt-compact .nt-toast { font-size: 12px; padding: 5px 9px; }
.nt-compact .nt-hint, .nt-compact .nt-banner, .nt-compact .nt-paused { left: 50%; }
.nt-compact .nt-hint { max-width: min(520px, 64vw); top: auto; bottom: 136px; padding: 6px 8px 6px 10px; gap: 8px; }
.nt-compact.nt-folded .nt-hint { bottom: 56px; }
.nt-compact.nt-folded .nt-banner { bottom: 56px; }
.nt-compact .nt-htxt { font-size: 12px; }
.nt-compact .nt-hbtn.ghost { display: none; }
.nt-compact .nt-hbtn { height: 30px; }
.nt-compact .nt-banner { top: auto; bottom: 138px; }
.nt-compact .nt-bannert { font-size: 12px; white-space: normal; text-align: center; max-width: 60vw; }
.nt-compact .nt-tip { width: 260px; font-size: 11.5px; }
.nt-compact .nt-tip .nt-tw, .nt-compact .nt-tip .nt-td { display: none; }
/* overlays on small screens */
.nt-compact .nt-ov { padding: 10px; }
.nt-compact .nt-logo h1 { font-size: 34px; }
.nt-compact .nt-logo2 { font-size: 17px; margin-left: 10px; vertical-align: 4px; }
.nt-compact .nt-mtag { font-size: 12px; margin-top: 6px; }
.nt-compact .nt-mhead { margin-bottom: 8px; }
.nt-compact .nt-msec { margin: 10px 0 6px; }
.nt-compact .nt-fcards { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 8px; }
.nt-compact .nt-fcard { padding: 10px 12px 10px 14px !important; gap: 6px; }
.nt-compact .nt-fcol canvas { width: 40px !important; height: 40px !important; }
.nt-compact .nt-fname { font-size: 17px; }
.nt-compact .nt-fdesc { display: none; }
.nt-compact .nt-mapc { width: 104px; padding: 5px !important; }
.nt-compact .nt-mapv { width: 92px !important; height: 92px !important; }
.nt-compact .nt-mapdesc { font-size: 12px; min-height: 0; }
.nt-compact .nt-mfoot { position: sticky; bottom: -10px; background: linear-gradient(180deg, transparent, #06070d 30%); padding: 14px 0 8px; margin-top: 8px; }
.nt-compact .nt-mfoot .primary { height: 46px; }
.nt-compact .nt-panel { padding: 14px 16px; max-height: calc(100vh - 20px); overflow: auto; }
.nt-compact .nt-ptitle { font-size: 16px; margin-bottom: 10px; }
.nt-compact .nt-mbtn { height: 44px; }
.nt-compact .nt-pause .nt-pcol { display: grid; grid-template-columns: 1fr 1fr; }
.nt-compact .nt-pause { width: min(460px, 100%); }
.nt-compact .nt-hcols { grid-template-columns: 1fr; gap: 10px; }
.nt-compact .nt-otitle { font-size: 40px; }
.nt-compact .nt-otbl { font-size: 11.5px; }
.nt-compact .nt-otbl th, .nt-compact .nt-otbl td { padding: 4px 4px; }
.nt-compact .nt-otbl th:nth-child(6), .nt-compact .nt-otbl td:nth-child(6), .nt-compact .nt-otbl th:nth-child(7), .nt-compact .nt-otbl td:nth-child(7) { display: none; }
.nt-compact .nt-settings .nt-slab { width: 110px; }
.nt-portrait .nt-rotate { display: block; position: absolute; left: var(--gap); top: calc(var(--gap) * 2 + var(--topH) + 4px); z-index: 46; pointer-events: none;
  font-size: 12px; padding: 5px 10px; background: var(--glass2); border: 1px solid var(--acc-a); white-space: nowrap; }
.nt-compact.nt-spec .nt-side:not(.selmode) { display: none; }
.nt-portrait .nt-clock, .nt-portrait .nt-speed { display: none !important; }
.nt-portrait .nt-res { gap: 10px; }
.nt-portrait .nt-hint { max-width: 92vw; width: 92vw; }
.nt-portrait .nt-toasts { top: calc(var(--gap) * 3 + var(--topH) + 34px); }   /* below the rotate note, not under it */
