/* Brolly Boxes HUD (shared shell look): DOM over the canvas. Everything is OPAQUE so it reads over any stage (bright day, dark cellar, night forge):
   cream tiles with a navy-brown outline and a bottom lip, on oak plates with a brass rim.
   Rules: every button has hover, focus and pressed states; hover eases and never swaps fill and text colour; text >= 12 px; taps >= 44 px. */
@font-face { font-family: 'Baloo 2'; font-weight: 700; font-display: swap; src: url('fonts/baloo2-700.woff2') format('woff2'); }
.nh, .nh * { box-sizing: border-box; }
.nh {
  --ink: #2a1d16; --ink2: #5b4636; --cream: #fff3dc; --paper: #fffaf0; --paper2: #f6e2b6; --lip: #dcc08a; --brass: #e2a93b; --gold: #f6cf6b; --brass-d: #b9801f;
  --oak: #6a4630; --oak2: #4a3022; --deep: #1a100a; --tom: #d85a3c; --teal: #3f9d8f; --sun: #f6cf6b;
  --disp: 'Baloo 2', 'Trebuchet MS', ui-rounded, system-ui, sans-serif; --body: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --top-h: 52px; --bot-h: 96px; --ease: cubic-bezier(.3, .7, .3, 1);
  position: fixed; inset: 0; z-index: 10; pointer-events: none; color: var(--ink);
  font: 600 14px/1.25 var(--body); -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent;
  padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
}
@media (max-height: 520px) { .nh { --top-h: 46px; --bot-h: 66px; } }
.nh [hidden] { display: none !important; }
:where(.nh) button { font: inherit; color: inherit; border: 0; background: none; margin: 0; padding: 0; cursor: pointer; touch-action: manipulation; pointer-events: auto; }
.nh svg { display: block; flex: none; }

/* ---- card buttons (win / stuck cards of the stand-alone HUD) ---- */
.nh-btn { position: relative; min-height: 48px; min-width: 44px; padding: 6px 18px 9px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 700 18px/1 var(--disp); color: var(--ink); background: var(--paper); border: 2.5px solid var(--ink);
  box-shadow: inset 0 -5px 0 var(--lip), 0 3px 0 rgba(26, 16, 10, .45);
  transition: transform .16s var(--ease), box-shadow .16s var(--ease), filter .16s var(--ease); }
@media (hover: hover) { .nh-btn:hover { transform: translateY(-2px); filter: brightness(1.05); } }
.nh-btn:active { transform: translateY(2px); box-shadow: inset 0 -2px 0 var(--lip), 0 1px 0 rgba(26, 16, 10, .45); transition-duration: .06s; }
.nh-btn:focus-visible, .nh-icon:focus-visible, .nh-boost:focus-visible { outline: 3px solid #16a5e0; outline-offset: 2px; }
.nh-btn.primary { background: linear-gradient(#fbdc86, #f0bb48); --lip: #c98f22; }
.nh-btn.sky { background: linear-gradient(#8fdace, #55b3a5); --lip: #2f7e72; }
.nh-btn.big { min-height: 58px; font-size: 22px; border-radius: 18px; padding: 8px 26px 12px; }
.nh-btn small { font: 700 13px/1 var(--body); opacity: .85; }
.nh-btn:disabled { background: #e4d6b8; color: #8a7a62; --lip: #c9b78f; cursor: default; transform: none; }

/* ---- top bar: level plaque, coin pill, two tile buttons ---- */
.nh-top { position: absolute; left: max(10px, env(safe-area-inset-left, 0px)); right: max(10px, env(safe-area-inset-right, 0px)); top: calc(env(safe-area-inset-top, 0px) + 8px); height: var(--top-h);
  display: flex; align-items: flex-start; gap: 8px; }
.nh-pill { height: 44px; padding: 0 16px 3px; border-radius: 14px; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  font: 700 20px/1 var(--disp); border: 2.5px solid var(--ink); }
.nh-level { color: var(--cream); letter-spacing: .01em; text-shadow: 0 2px 0 rgba(26, 16, 10, .6);
  background: repeating-linear-gradient(90deg, rgba(0, 0, 0, .08) 0 1px, transparent 1px 9px), linear-gradient(var(--oak), var(--oak2));
  box-shadow: inset 0 0 0 2px var(--brass), inset 0 -5px 0 rgba(26, 16, 10, .35), 0 3px 0 rgba(26, 16, 10, .5); }
.nh-coins { padding: 0 14px 3px 8px; color: var(--ink); background: var(--paper); box-shadow: inset 0 -4px 0 var(--lip), 0 3px 0 rgba(26, 16, 10, .5); }
.nh-coins b { font-weight: 700; min-width: 2ch; text-align: right; font-variant-numeric: tabular-nums; }
.nh-coins.bump { animation: nhBump .35s cubic-bezier(.2, .9, .3, 1.5); }
.nh-spacer { flex: 1; }
.nh-icon { width: 44px; height: 44px; padding: 0 0 3px; border-radius: 14px; background: var(--paper); border: 2.5px solid var(--ink); display: grid; place-items: center;
  box-shadow: inset 0 -4px 0 var(--lip), 0 3px 0 rgba(26, 16, 10, .5); transition: transform .16s var(--ease), filter .16s var(--ease), box-shadow .16s var(--ease); }
.nh-icon.off { background: #eadcc0; }
@media (hover: hover) { .nh-icon:hover { transform: translateY(-2px); filter: brightness(1.05); } }
.nh-icon:active { transform: translateY(2px); padding-bottom: 1px; box-shadow: inset 0 -2px 0 var(--lip), 0 1px 0 rgba(26, 16, 10, .5); transition-duration: .06s; }


/* ---- the room clock pill (W18, contract v1.9 #4): timed rooms only; cream plate like the coins; warm red + a gentle pulse at <= 15 s ---- */
.nh-clock { padding: 0 12px 3px 8px; gap: 6px; color: var(--ink); background: var(--paper); box-shadow: inset 0 -4px 0 var(--lip), 0 3px 0 rgba(26, 16, 10, .5); }
.nh-clock b { font-weight: 700; min-width: 3.2ch; text-align: left; font-variant-numeric: tabular-nums; }
.nh-clock.paused { filter: saturate(.7) brightness(.97); }
.nh-clock.warn { color: #fff7ea; background: linear-gradient(#ef7355, #cf4a30); border-color: var(--ink); box-shadow: inset 0 -4px 0 #9c3322, 0 3px 0 rgba(26, 16, 10, .5); text-shadow: 0 2px 0 rgba(90, 24, 10, .55); animation: nhPulse 1s ease-in-out infinite; }
.nh-clock.warn.paused { animation: none; }
@keyframes nhPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.07); } }
@media (prefers-reduced-motion: reduce) { .nh-clock.warn { animation: none; } }
/* a narrow phone: with the clock shown the level plaque keeps only its number so Home, level, clock, coins, sound and pause all fit */
@media (max-width: 440px) { .nh.timed .nh-lw { display: none; } .nh.timed .nh-level { padding: 0 11px 3px; } .nh.timed .nh-coins b { min-width: 0; } .nh.timed .nh-clock { padding: 0 9px 3px 6px; } }
@media (max-width: 440px) { .nh.timed .nh-top { gap: 4px; } .nh.timed .nh-coins { padding: 0 8px 3px 5px; gap: 4px; margin-left: auto; } .nh.timed .nh-coins .ic { width: 20px; height: 20px; }
  .nh.timed .nh-spacer { display: none; } .nh.timed .nh-clock { gap: 4px; } .nh.timed .nh-clock .nh-clk { width: 19px; height: 19px; } .nh.timed .nh-level { padding: 0 9px 3px; } }
@media (max-width: 380px) { .nh.timed .nh-clock { padding: 0 7px 3px 5px; font-size: 17px; gap: 3px; } .nh.timed .nh-level { padding: 0 7px 3px; font-size: 17px; } .nh.timed .nh-coins { font-size: 17px; padding: 0 7px 3px 5px; } }
/* still too wide (a 3-digit level on a narrow phone, a big font setting): the level plaque steps aside, the clock never does (hud.js fitTop) */
.nh.tight .nh-level { display: none; } .nh.tight .nh-coins { margin-left: auto; } .nh.tight .nh-spacer { display: none; }

/* ---- bottom booster tray: one oak plate, three cream cards ---- */
.nh-bar { position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--bot-h) + env(safe-area-inset-bottom, 0px)); padding: 0 max(10px, env(safe-area-inset-right, 0px)) calc(env(safe-area-inset-bottom, 0px) + 12px) max(10px, env(safe-area-inset-left, 0px));
  display: flex; align-items: flex-end; justify-content: center; }
.nh-tray { pointer-events: auto; display: flex; gap: 8px; width: min(100%, 372px); padding: 8px 8px 9px; border-radius: 22px; border: 3px solid var(--ink);
  background: repeating-linear-gradient(90deg, rgba(0, 0, 0, .08) 0 1px, transparent 1px 11px), linear-gradient(var(--oak), var(--oak2));
  box-shadow: inset 0 0 0 2px var(--brass), inset 0 -6px 0 rgba(26, 16, 10, .3), 0 5px 0 var(--deep), 0 12px 18px rgba(0, 0, 0, .35); }
.nh-boost { position: relative; flex: 1 1 0; min-width: 0; height: 62px; padding: 0 2px 4px; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  background: linear-gradient(var(--paper), #fbecc8); color: var(--ink); border: 2.5px solid var(--ink); box-shadow: inset 0 -5px 0 var(--lip), 0 3px 0 var(--deep);
  font: 700 13px/1 var(--disp); transition: transform .16s var(--ease), filter .16s var(--ease), box-shadow .16s var(--ease); }
@media (hover: hover) { .nh-boost:hover { transform: translateY(-2px); filter: brightness(1.05); } }
.nh-boost:active { transform: translateY(3px); padding-bottom: 1px; box-shadow: inset 0 -2px 0 var(--lip), 0 0 0 var(--deep); transition-duration: .06s; }
.nh-bic svg { width: 30px; height: 30px; }
.nh-bl { max-width: 100%; padding: 0 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nh-boost.locked { background: #d9ccb2; color: #6f6252; --lip: #bfae8d; }
.nh-boost.locked .nh-bic { opacity: .45; filter: grayscale(1); }
.nh-badge { position: absolute; top: -9px; right: -7px; min-width: 26px; height: 26px; padding: 0 6px 1px; border-radius: 13px; display: grid; place-items: center; font: 700 15px/1 var(--disp); font-style: normal;
  background: var(--gold); color: var(--ink); border: 2.5px solid var(--ink); box-shadow: inset 0 -3px 0 #d89e2c; }
.nh-badge.zero { background: var(--teal); color: #fff; box-shadow: inset 0 -3px 0 #2f7e72; font-size: 18px; }
.nh-badge.lock { background: var(--paper); box-shadow: inset 0 -3px 0 var(--lip); padding: 0 3px 1px; }
.nh-badge.pop { animation: nhBump .35s cubic-bezier(.2, .9, .3, 1.5); }
.nh-boost.ready { animation: nhReady 1.3s ease-in-out infinite; }
@media (max-height: 520px) {
  .nh-bar { padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 8px); }
  .nh-tray { width: min(100%, 520px); padding: 6px 6px 7px; border-radius: 18px; }
  .nh-boost { flex-direction: row; gap: 6px; height: 44px; padding: 0 8px 3px; } .nh-bic svg { width: 24px; height: 24px; } .nh-bl { font-size: 14px; }
}

/* ---- toast ---- */
.nh-toast { position: absolute; left: 50%; top: calc(env(safe-area-inset-top, 0px) + var(--top-h) + 58px); transform: translate(-50%, -10px); width: max-content; max-width: min(88vw, 420px); padding: 9px 18px 11px; border-radius: 16px; text-align: center;
  background: var(--paper); color: var(--ink); border: 2.5px solid var(--ink); font: 700 17px/1.2 var(--disp); box-shadow: inset 0 -4px 0 var(--lip), 0 4px 0 rgba(26, 16, 10, .45); opacity: 0; transition: opacity .25s ease, transform .3s cubic-bezier(.2, .9, .3, 1.4); pointer-events: none; }
.nh-toast.show { opacity: 1; transform: translate(-50%, 0); }
.nh-toast:empty { display: none; }
@media (max-height: 520px) { .nh-toast { top: calc(env(safe-area-inset-top, 0px) + var(--top-h) + 14px); } }

/* ---- cards (win, stuck) ---- */
.nh-scrim { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(20, 12, 6, .6); pointer-events: auto; animation: nhFade .25s ease; }
.nh-card { width: min(88vw, 360px); max-height: 92vh; overflow: auto; padding: 24px 20px 20px; border-radius: 26px; text-align: center; color: var(--ink);
  background: linear-gradient(#fff8e8, #fbeacb); border: 3px solid var(--ink); box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .7), 0 8px 0 rgba(20, 12, 8, .5), 0 24px 40px rgba(0, 0, 0, .4); animation: nhPop .45s cubic-bezier(.2, .9, .3, 1.35); }
.nh-card h2 { margin: 0 0 8px; font: 700 30px/1.05 var(--disp); color: var(--ink); }
.nh-card p { margin: 0 0 16px; font: 600 15px/1.35 var(--body); color: var(--ink2); }
.nh-stars { display: flex; justify-content: center; gap: 6px; margin: 6px 0 12px; }
.nh-stars svg { width: 56px; height: 56px; transform: scale(0); }
.nh-stars svg.on { animation: nhStar .55s cubic-bezier(.2, .9, .3, 1.6) forwards; animation-delay: calc(var(--i) * .22s + .2s); }
.nh-stars svg.off { transform: scale(.85); }
.nh-reward { display: inline-flex; align-items: center; gap: 8px; padding: 4px 18px 6px 10px; border-radius: 999px; background: #fbe3a4; border: 2.5px solid var(--ink); font: 700 26px/1 var(--disp); margin-bottom: 16px; }
.nh-actions { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.nh-actions .nh-btn { width: 100%; }
.nh-row { display: flex; gap: 10px; } .nh-row .nh-btn { flex: 1; }
.nh-ad { display: inline-grid; place-items: center; min-width: 30px; height: 20px; padding: 0 5px; border-radius: 6px; font: 700 12px/1 var(--body); background: var(--ink); color: var(--cream); }

@keyframes nhBump { 0% { transform: scale(1); } 40% { transform: scale(1.18); } 100% { transform: scale(1); } }
@keyframes nhReady { 0%, 100% { box-shadow: inset 0 -5px 0 var(--lip), 0 3px 0 var(--deep), 0 0 0 0 rgba(246, 207, 107, 0); } 50% { box-shadow: inset 0 -5px 0 var(--lip), 0 3px 0 var(--deep), 0 0 0 5px rgba(246, 207, 107, .9); } }
@keyframes nhFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes nhPop { from { transform: scale(.7) translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes nhStar { 0% { transform: scale(0) rotate(-40deg); } 70% { transform: scale(1.25) rotate(8deg); } 100% { transform: scale(1) rotate(0); } }
@media (prefers-reduced-motion: reduce) { .nh *, .nh *::before { animation-duration: .01s !important; animation-delay: 0s !important; transition-duration: .01s !important; } .nh-stars svg { transform: scale(1); } }

/* ---- armed booster (Tidy up, pick a box): lit, pressed-in button + a ring on every open box ---- */
.nh-boost.armed { background: linear-gradient(#8fdace, #55b3a5); box-shadow: inset 0 3px 0 #2f7e72, 0 0 0 3px #fff3dc, 0 0 0 6px #2f7e72; transform: translateY(2px); animation: none; }
.nh-boost.armed .nh-bic { animation: nhArm .7s ease-in-out infinite alternate; }
@keyframes nhArm { to { transform: translateY(-3px) rotate(-8deg); } }
.nh-rings { position: absolute; inset: 0; pointer-events: none; }
.nh-ring { position: absolute; width: 60px; height: 60px; margin: -30px 0 0 -30px; box-sizing: border-box; border-radius: 50%; border: 4px solid #f6cf6b; box-shadow: 0 0 0 2.5px #2a1d16, inset 0 0 0 2.5px #2a1d16, 0 0 18px 4px rgba(246, 207, 107, .55);
  animation: nhRing 1s ease-in-out infinite alternate; }
@keyframes nhRing { from { opacity: .55; transform: scale(.96); } to { opacity: 1; transform: scale(1.03); } }
@media (max-height: 520px) { .nh-ring { width: 48px; height: 48px; margin: -24px 0 0 -24px; } }
@media (prefers-reduced-motion: reduce) { .nh-ring, .nh-boost.armed .nh-bic { animation: none; } }


/* 20 Nov: house button added to the top bar; round buttons keep 44 px, narrow phones tighten gaps and pills instead */
.nh-icon { flex: none; }
@media (max-width: 400px) { .nh-top { gap: 5px; } .nh-pill { padding: 0 10px 3px; font-size: 18px; } .nh-coins { padding: 0 10px 3px 6px; gap: 5px; } }

@keyframes nhPulse { to { transform: scale(1.06); box-shadow: inset 0 0 0 2px rgba(255, 120, 120, .7), 0 3px 0 rgba(26, 16, 10, .4); } }
.nh-jic svg { width: 22px; height: 22px; }

.nh-boost[hidden], .nh-badge[hidden] { display: none; }
.nh-tray { gap: 6px; }

@keyframes nhTick { 0% { transform: rotate(-8deg); } 100% { transform: rotate(8deg); } }
@keyframes nhCiPop { 0% { transform: scale(.4); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes nhFadeIn { from { opacity: 0; } to { opacity: 1; } }

/* W17 (21 Nov 2026): painted booster icon images match SVG sizing and layout */
.nh .ic-img { display: block; flex: none; object-fit: contain; pointer-events: none; }
.nh-bic .ic-img { width: 32px; height: 32px; }
@media (max-height: 520px) { .nh-bic .ic-img { width: 26px; height: 26px; } }

/* ---- Brolly Boxes (W4): box labels, next-box badge, bench count. They follow view.anchor() by transform only and never take a tap. ---- */
.nh-tags { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.nh-tag, .nh-bench, .nh-next { position: absolute; left: 0; top: 0; will-change: transform; pointer-events: none; }
.nh-tag > *, .nh-next > * { flex: none; }
.nh-tag { display: flex; align-items: center; gap: 6px; margin: 0; translate: -50% 0; height: 40px; padding: 0 6px 0 7px; border-radius: 10px; white-space: nowrap; justify-content: center;
  background: linear-gradient(#fffaf0, #f1dfbb); border: 2px solid var(--ink); box-shadow: 0 3px 0 rgba(26, 16, 10, .45), 0 6px 14px rgba(26, 16, 10, .25); color: var(--ink); font: 700 17px/1 var(--disp); } /* operator 21 Nov: bigger, under the box (lead) */
.nh-tag::before { content: ''; position: absolute; left: 50%; top: -9px; width: 36px; height: 12px; margin-left: -18px; border-radius: 2px; background: rgba(214, 178, 120, .92); box-shadow: inset 0 -1px 0 rgba(90, 60, 30, .35); transform: rotate(-3deg); }
.nh-pics { display: inline-flex; gap: 1px; }
.nh-pic { position: relative; width: 22px; height: 22px; display: inline-block; }
.nh-pic::before { content: ''; position: absolute; inset: 5px; border-radius: 50%; background: var(--dot, #b98852); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .2); }
.nh-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fffaf0; border-radius: 4px; }
.nh-tw { font-size: 17px; }
.nh-tag .nh-pic { width: 28px; height: 28px; }
.nh-tag .nh-pic:nth-child(2) { display: none; }
.nh-tags.stack .nh-tag { flex-wrap: wrap; height: auto; width: var(--tagw, 104px); padding: 6px 5px 6px; row-gap: 4px; gap: 5px 5px; }
.nh-tags.stack .nh-tw { flex: 0 1 calc(100% - 34px); min-width: 0; overflow: hidden; text-overflow: ellipsis; text-align: left; font-size: 15px; }
.nh-tags.stack.small .nh-tw { flex-basis: calc(100% - 30px); font-size: 12px; } /* v1.6 sort and seek: one look per box, so the picture is the clue: it stays, the word shortens */
.nh-tn { font: 700 19px/1 var(--disp); font-variant-numeric: tabular-nums; padding: 4px 7px 5px; border-radius: 8px; background: var(--ink); color: var(--cream); }
.nh-tag.full .nh-tn { background: #2f7e72; }
.nh-tag.bump .nh-tn { animation: nhBump .35s cubic-bezier(.2, .9, .3, 1.5); }
.nh-next { display: flex; align-items: center; gap: 3px; margin: -13px 0 0 0; translate: -50% 0; height: 26px; padding: 0 7px 1px 6px; border-radius: 13px; white-space: nowrap;
  background: rgba(42, 29, 22, .86); color: var(--cream); font: 700 12px/1 var(--disp); border: 1.5px solid rgba(255, 243, 220, .7); }
.nh-next small { font: 700 12px/1 var(--disp); opacity: .8; }
.nh-next .nh-pic { width: 18px; height: 18px; }
.nh-bench { margin: -13px 0 0 -22px; min-width: 44px; height: 26px; padding: 2px 8px 0; border-radius: 13px; text-align: center; font: 700 15px/22px var(--disp); font-variant-numeric: tabular-nums;
  background: var(--paper); color: var(--ink); border: 2px solid var(--ink); box-shadow: 0 2px 0 rgba(26, 16, 10, .45); }
.nh-bench.near { background: #ffe08a; }
.nh-bench.full { background: var(--tom); color: #fff; }
.nh-rings { position: absolute; inset: 0; pointer-events: none; }
.nh-ring.box { position: absolute; left: 0; top: 0; width: 124px; height: 112px; margin: -86px 0 0 -62px; border-radius: 16px; border: 4px solid #ffe08a; box-shadow: 0 0 0 3px rgba(42, 29, 22, .7), 0 0 18px 4px rgba(255, 224, 138, .8); animation: nhGlow .8s ease-in-out infinite alternate; }
@keyframes nhGlow { from { opacity: .55; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .nh-ring.box { animation: none; } }
/* operator 22 Nov: the label is PRINTED on the box's front side: a flat paper shipping label sized to the side, no tape */
.nh-tags.face .nh-tag { translate: -50% -50%; width: var(--tagw); height: auto; min-height: 0; padding: 3px 4px; gap: 4px; border-radius: 4px;
  background: linear-gradient(#fdf6e6, #f3e4c4); border: 1.5px solid rgba(70, 45, 25, .7); box-shadow: 0 1px 0 rgba(60, 35, 15, .35), inset 0 0 0 2px rgba(255, 250, 238, .7); }
.nh-tags.face .nh-tag::before { display: none; }
.nh-tags.face .nh-tag .nh-pic { width: clamp(16px, calc(var(--tagh) * .5), 24px); height: clamp(16px, calc(var(--tagh) * .5), 24px); }
.nh-tags.face .nh-tw { font-size: clamp(12px, calc(var(--tagh) * .36), 16px); }
.nh-tags.face .nh-tn { font-size: clamp(12px, calc(var(--tagh) * .38), 17px); padding: 2px 5px 3px; border-radius: 5px; }
/* two lines (picture + word, then the count) when one line does not fit the side; word only when even that is too tall */
.nh-tags.face.stack .nh-tag { padding: 2px 4px; row-gap: 1px; gap: 1px 3px; }
.nh-tags.face.stack .nh-tag .nh-pic { width: clamp(14px, calc(var(--tagh) * .4), 18px); height: clamp(14px, calc(var(--tagh) * .4), 18px); }
.nh-tags.face.stack .nh-tw { flex-basis: calc(100% - clamp(14px, calc(var(--tagh) * .4), 18px) - 4px); font-size: clamp(12px, calc(var(--tagh) * .32), 14px); }
.nh-tags.face.stack .nh-tn { font-size: clamp(12px, calc(var(--tagh) * .32), 14px); padding: 1px 5px 2px; }
.nh-tags.face.stack.small .nh-tw { flex-basis: calc(100% - clamp(14px, calc(var(--tagh) * .4), 18px) - 4px); font-size: 12px; }
/* callouts: what a tapped thing is, where it went, why a tap did nothing (operator 22 Nov) */
.nh-calls { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.nh-call { position: absolute; translate: -50% -100%; display: flex; align-items: center; gap: 6px; padding: 5px 11px 6px 6px; border-radius: 999px;
  background: rgba(43, 28, 18, .9); color: #fff6e4; font: 700 15px/1.15 var(--disp); white-space: nowrap; box-shadow: 0 3px 10px rgba(20, 10, 4, .35);
  animation: nhCall 1.25s cubic-bezier(.2, .8, .3, 1) forwards; }
.nh-call:not(:has(.nh-pic)) { padding-left: 11px; }
.nh-call .nh-pic { width: 22px; height: 22px; flex: none; }
.nh-call.warn { background: rgba(120, 52, 30, .92); }
.nh-call.long { animation-duration: 2.6s; white-space: normal; max-width: min(260px, 80vw); text-align: center; }
@keyframes nhCall { 0% { opacity: 0; transform: translateY(8px) scale(.92); } 10% { opacity: 1; transform: translateY(0) scale(1); }
  80% { opacity: 1; transform: translateY(-10px); } 100% { opacity: 0; transform: translateY(-16px); } }
@media (prefers-reduced-motion: reduce) { .nh .nh-call { animation: none !important; } } /* still shown, removed by its timer */
