

/* Mini-map (plugins/minimap.js): pinned below the layout's tab bar. */
#minimap {
    position: fixed;
    top: 34px;
    z-index: 50;
    background: rgba(7, 11, 17, 0.92);
    border: 1px solid rgba(120, 150, 190, 0.35);
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    user-select: none;
}
#minimap.minimap-tr { right: 12px; }
#minimap.minimap-tl { left: 12px; }
#minimap[hidden], #minimap [hidden] { display: none !important; }
#minimap canvas { display: block; }
#minimap .minimap-head {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 2px 4px 2px 8px;
    background: rgba(19, 33, 58, 0.95);
    color: #dfe8f3;
    font: 12px sans-serif;
}
#minimap .minimap-title {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
#minimap .minimap-btn {
    background: none;
    border: 0;
    color: #a9b8cb;
    cursor: pointer;
    font-size: 13px;
    line-height: 1;
    padding: 3px 5px;
    border-radius: 3px;
}
#minimap .minimap-btn:hover { background: rgba(110, 170, 255, 0.2); color: #fff; }

/* Pictures in the output (plugins/nfimages.js). */
.nf-image { margin: 6px 0 8px; }
.nf-image img {
    display: block; max-width: min(100%, 420px); max-height: 260px; width: auto; height: auto;
    border-radius: 6px; border: 1px solid rgba(120, 150, 190, 0.35); cursor: zoom-in;
}
.nf-image figcaption { font-size: 12px; color: #8a9bb0; margin-top: 3px; }
.nf-lightbox {
    position: fixed; inset: 0; z-index: 200; background: rgba(0, 0, 0, 0.85);
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; cursor: zoom-out;
}
.nf-lightbox[hidden] { display: none; }
.nf-lightbox img { max-width: 92vw; max-height: 85vh; border-radius: 6px; }
.nf-lightbox-caption { color: #dfe8f3; font: 13px sans-serif; }


/* Sound settings (plugins/nfsounds.js): a speaker button at the left end of the prompt line
   (falls back to the bottom-left corner when there's no input pane). */
#nfsounds-button {
    position: fixed; left: 10px; bottom: 54px; z-index: 55;
    width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(120, 150, 190, 0.35);
    background: rgba(7, 11, 17, 0.85); color: #dfe8f3; font-size: 15px; cursor: pointer; line-height: 1;
}
#nfsounds-button:hover { background: rgba(19, 33, 58, 0.95); }
.inputwrap #nfsounds-button.in-prompt {
    position: absolute; left: 2px; top: 0.1em; bottom: auto; width: 1.4em; height: 1.3em;
    border-radius: 4px; font-size: 12px; padding: 0; z-index: 2;
}
/* The prompt line is always there (not only once a prompt arrives), with room on its left
   for the button, so the button never sits on the input box. Same height the webclient's
   prompt code uses (plugins/default_out.js). */
.inputwrap .prompt { height: 1.5em; padding-left: 1.9em; padding-right: 8.5em; box-sizing: border-box; white-space: nowrap; overflow: hidden; }
.inputwrap .inputfieldwrapper { height: calc(100% - 1.5em); }
#nfsounds-panel {
    position: fixed; left: 10px; bottom: 92px; z-index: 56; width: 240px; padding: 8px 10px 10px;
    background: rgba(7, 11, 17, 0.96); border: 1px solid rgba(120, 150, 190, 0.35); border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5); color: #dfe8f3; font: 13px sans-serif;
}
#nfsounds-panel[hidden] { display: none; }
#nfsounds-panel .nfsounds-title { display: flex; justify-content: space-between; font-weight: bold; margin-bottom: 6px; }
#nfsounds-panel .nfsounds-close { background: none; border: 0; color: #a9b8cb; font-size: 16px; cursor: pointer; }
#nfsounds-panel .nfsounds-row { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
#nfsounds-panel .nfsounds-row.off { opacity: 0.5; }
#nfsounds-panel .nfsounds-check { display: flex; align-items: center; gap: 4px; margin: 0; cursor: pointer; }
#nfsounds-panel .nfsounds-hint { color: #8a9bb0; font-size: 11px; margin: 1px 0 0 20px; }
#nfsounds-panel select { background: #0d131d; color: #dfe8f3; border: 1px solid #2f4566; border-radius: 4px; }

/* The pilot's HUD as a cockpit (plugins/nfhud.js): under the mini-map, same corner. */
#nfhud {
    position: fixed; z-index: 50; width: 360px; overflow: hidden; user-select: none;
    background: rgba(4, 9, 15, 0.94); border: 1px solid rgba(72, 219, 251, 0.35); border-radius: 8px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.6), inset 0 0 24px rgba(72, 219, 251, 0.06);
    color: #cfefff; font: 12px "DejaVu Sans Mono", Menlo, Consolas, monospace;
}
#nfhud[hidden], #nfhud [hidden] { display: none !important; }
#nfhud.hud-tr { right: 12px; }
#nfhud.hud-tl { left: 12px; }
#nfhud.hud-small { width: 280px; }
#nfhud .hud-head { display: flex; align-items: center; gap: 6px; padding: 3px 4px 3px 10px; background: rgba(12, 32, 48, 0.95); }
#nfhud .hud-title { flex: 1; font-weight: bold; letter-spacing: 1px; color: #e9fbff; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
#nfhud .hud-status { font-size: 10px; padding: 1px 6px; border-radius: 3px; letter-spacing: 1px; }
#nfhud .hud-status.flying { background: rgba(72, 219, 251, 0.2); color: #48dbfb; box-shadow: 0 0 6px rgba(72, 219, 251, 0.5); }
#nfhud .hud-status.ground { background: rgba(254, 202, 87, 0.15); color: #feca57; }
#nfhud .hud-btn { background: none; border: 0; color: #8fbfd3; cursor: pointer; font-size: 13px; padding: 2px 5px; border-radius: 3px; }
#nfhud .hud-btn:hover { background: rgba(72, 219, 251, 0.18); color: #fff; }
#nfhud .hud-where { padding: 2px 10px 0; color: #7f9fb0; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#nfhud .hud-svg { display: block; width: 100%; height: auto; }
#nfhud .hud-glass { fill: rgba(6, 18, 28, 0.6); stroke: rgba(72, 219, 251, 0.15); }
#nfhud .hud-rule { stroke: rgba(72, 219, 251, 0.25); stroke-width: 1; }
#nfhud .hud-bezel { fill: #0b1620; stroke: rgba(72, 219, 251, 0.45); stroke-width: 2; }
#nfhud .hud-face { fill: #04090f; }
#nfhud .hud-zone-red, #nfhud .hud-zone-amber, #nfhud .hud-zone-green { fill: none; stroke-width: 4; }
#nfhud .hud-zone-red { stroke: rgba(255, 92, 92, 0.75); }
#nfhud .hud-zone-amber { stroke: rgba(254, 202, 87, 0.7); }
#nfhud .hud-zone-green { stroke: rgba(72, 230, 160, 0.7); }
#nfhud .hud-tick { stroke: rgba(207, 239, 255, 0.55); stroke-width: 1.2; }
#nfhud .hud-needle polygon { fill: #ff9f43; filter: drop-shadow(0 0 3px rgba(255, 159, 67, 0.8)); }
#nfhud .hud-needle { transition: transform 0.8s cubic-bezier(0.2, 0.9, 0.3, 1.2); }
#nfhud .hud-hub { fill: #1d3444; stroke: #8fbfd3; stroke-width: 1.5; }
#nfhud text { fill: #cfefff; font-family: inherit; }
#nfhud .hud-dial-label { font-size: 10px; fill: #7f9fb0; letter-spacing: 2px; }
#nfhud .hud-dial-value { font-size: 12px; font-weight: bold; }
#nfhud .hud-dial-value.ok { fill: #48e6a0; } #nfhud .hud-dial-value.warn { fill: #feca57; } #nfhud .hud-dial-value.bad { fill: #ff6b6b; }
#nfhud .hud-tape { fill: #04090f; stroke: rgba(72, 219, 251, 0.45); }
#nfhud .hud-tape-label { font-size: 10px; fill: #8fbfd3; }
#nfhud .hud-tape-meters { font-size: 8px; fill: #5f7f90; }
#nfhud .hud-ceiling { stroke: #ff6b6b; stroke-width: 1.5; stroke-dasharray: 4 3; }
#nfhud .hud-marker { fill: #5f7f90; }
#nfhud .hud-marker.on { fill: #48dbfb; filter: drop-shadow(0 0 4px rgba(72, 219, 251, 0.9)); }
#nfhud .hud-alt { font-size: 11px; fill: #48dbfb; letter-spacing: 1px; }
#nfhud .hud-counter { fill: #02060a; stroke: rgba(72, 230, 160, 0.35); }
#nfhud .hud-counter-label { font-size: 8px; fill: #7f9fb0; }
#nfhud .hud-counter-digits { font-size: 13px; font-weight: bold; fill: #48e6a0; letter-spacing: 1px; filter: drop-shadow(0 0 3px rgba(72, 230, 160, 0.7)); }
#nfhud .hud-bar-back { fill: #02060a; stroke: rgba(72, 219, 251, 0.3); }
#nfhud .hud-bar.ok { fill: #48dbfb; } #nfhud .hud-bar.bad { fill: #ff6b6b; }
#nfhud .hud-small { font-size: 9px; fill: #7f9fb0; } #nfhud .hud-small.bad { fill: #ff6b6b; }
#nfhud .hud-lamp rect { fill: #0b1620; stroke: rgba(207, 239, 255, 0.15); }
#nfhud .hud-lamp text { font-size: 9px; fill: #3f5866; letter-spacing: 2px; }
#nfhud .hud-lamp.warn rect { fill: rgba(254, 202, 87, 0.25); stroke: #feca57; }
#nfhud .hud-lamp.warn text { fill: #feca57; }
#nfhud .hud-lamp.bad rect { fill: rgba(255, 92, 92, 0.3); stroke: #ff6b6b; animation: hud-blink 0.9s steps(2) infinite; }
#nfhud .hud-lamp.bad text { fill: #ffd0d0; }
#nfhud .hud-target rect { fill: rgba(255, 92, 92, 0.16); stroke: rgba(255, 92, 92, 0.7); }
#nfhud .hud-target text { font-size: 11px; fill: #ffb3b3; letter-spacing: 1px; }
@keyframes hud-blink { 50% { opacity: 0.35; } }

/* The bike cluster ("ground"): amber on carbon, chrome bezels, a backlit LCD. */
#nfhud[data-kind="ground"] { border-color: rgba(255, 176, 0, 0.4); box-shadow: 0 4px 18px rgba(0, 0, 0, 0.6), inset 0 0 24px rgba(255, 176, 0, 0.05); }
#nfhud[data-kind="ground"] .hud-head { background: rgba(40, 28, 8, 0.95); }
#nfhud[data-kind="ground"] .hud-title { color: #ffe2a8; }
#nfhud[data-kind="ground"] .hud-status.ground { background: rgba(255, 176, 0, 0.18); color: #ffb000; }
#nfhud .hud-carbon { fill: #0b0b0d; stroke: rgba(255, 176, 0, 0.18); }
#nfhud .hud-ground .hud-bezel { fill: #121316; stroke: url(#hud-chrome); stroke-width: 5; }
#nfhud .hud-ground .hud-face { fill: #050506; }
#nfhud .hud-ground .hud-tick { stroke: rgba(255, 226, 168, 0.75); }
#nfhud .hud-zone-dim { fill: none; stroke: rgba(255, 226, 168, 0.18); stroke-width: 4; }
#nfhud .hud-rim-label { font-size: 11px; fill: #ffe2a8; font-weight: bold; }
#nfhud .hud-ground .hud-dial-label { fill: #b08a4a; font-size: 9px; }
#nfhud .hud-ground .hud-needle polygon { fill: #ff4d2e; filter: drop-shadow(0 0 3px rgba(255, 77, 46, 0.8)); }
#nfhud .hud-ground .hud-hub { fill: #2a2b30; stroke: #c9d1d8; }
#nfhud .hud-lcd { fill: #2a1d05; stroke: rgba(255, 176, 0, 0.5); filter: drop-shadow(0 0 4px rgba(255, 176, 0, 0.25)); }
#nfhud .hud-lcd-gear { font-size: 30px; font-weight: bold; fill: #ffb000; filter: drop-shadow(0 0 4px rgba(255, 176, 0, 0.8)); }
#nfhud .hud-lcd-small { font-size: 9px; fill: #ffcf6a; letter-spacing: 1px; }
#nfhud .hud-lcd-small.bad { fill: #ff6b4a; }
#nfhud .hud-lcd-digits { font-size: 12px; font-weight: bold; fill: #ffb000; letter-spacing: 1px; filter: drop-shadow(0 0 3px rgba(255, 176, 0, 0.7)); }
#nfhud .hud-seg { fill: rgba(255, 176, 0, 0.12); }
#nfhud .hud-seg.on { fill: #ffb000; }
#nfhud .hud-seg.on.bad { fill: #ff4d2e; }
#nfhud .hud-dash-lamp circle { fill: #1b1b1f; stroke: rgba(255, 226, 168, 0.2); }
#nfhud .hud-dash-lamp text { font-size: 8px; fill: #5a4a30; letter-spacing: 1px; }
#nfhud .hud-dash-lamp.warn circle { fill: #ffb000; stroke: #ffd36a; filter: drop-shadow(0 0 4px rgba(255, 176, 0, 0.9)); }
#nfhud .hud-dash-lamp.warn text { fill: #ffb000; }
#nfhud .hud-dash-lamp.bad circle { fill: #ff3b1f; stroke: #ff9a8a; filter: drop-shadow(0 0 5px rgba(255, 59, 31, 0.9)); animation: hud-blink 0.9s steps(2) infinite; }
#nfhud .hud-dash-lamp.bad text { fill: #ff6b4a; }
#nfhud .hud-signal { fill: rgba(72, 230, 160, 0.15); }
#nfhud .hud-ground .hud-small { fill: #8a7350; }

/* The mech display ("hybrid"): gunmetal and red, angular panels, a thrust reservoir. */
#nfhud[data-kind="hybrid"] { border-color: rgba(255, 71, 87, 0.45); border-radius: 3px; box-shadow: 0 4px 18px rgba(0, 0, 0, 0.6), inset 0 0 24px rgba(255, 71, 87, 0.05); }
#nfhud[data-kind="hybrid"] .hud-head { background: linear-gradient(90deg, rgba(60, 12, 18, 0.95), rgba(24, 26, 30, 0.95)); }
#nfhud[data-kind="hybrid"] .hud-title { color: #ffd0c8; }
#nfhud[data-kind="hybrid"] .hud-status.flying { background: rgba(255, 159, 67, 0.2); color: #ff9f43; box-shadow: 0 0 6px rgba(255, 159, 67, 0.5); }
#nfhud[data-kind="hybrid"] .hud-status.ground { background: rgba(255, 71, 87, 0.15); color: #ff6b78; }
#nfhud .hud-gunmetal { fill: #101215; stroke: rgba(255, 71, 87, 0.35); stroke-width: 1.5; }
#nfhud .hud-panel { fill: #181b20; stroke: #3a4048; stroke-width: 1; }
#nfhud .hud-plate polygon { fill: #1a1d22; stroke: #3a4048; }
#nfhud .hud-plate text { font-size: 9px; fill: #4a525c; letter-spacing: 2px; }
#nfhud .hud-plate.warn polygon { fill: rgba(255, 159, 67, 0.25); stroke: #ff9f43; }
#nfhud .hud-plate.warn text { fill: #ff9f43; }
#nfhud .hud-plate.bad polygon { fill: rgba(255, 71, 87, 0.35); stroke: #ff4757; animation: hud-blink 0.9s steps(2) infinite; }
#nfhud .hud-plate.bad text { fill: #ffd0d4; }
#nfhud .hud-mech { stroke: #0d0f12; stroke-width: 1.5; transition: fill 0.6s; fill: #3a4048; }
#nfhud .hud-mech.ok { fill: #3fbf86; }
#nfhud .hud-mech.warn { fill: #ff9f43; }
#nfhud .hud-mech.bad { fill: #ff4757; animation: hud-blink 1.2s steps(2) infinite; }
#nfhud .hud-hybrid .hud-seg { fill: rgba(255, 255, 255, 0.06); }
#nfhud .hud-hybrid .hud-seg.on, #nfhud .hud-hybrid .hud-seg.on.ok { fill: #3fbf86; }
#nfhud .hud-hybrid .hud-seg.on.warn { fill: #ff9f43; }
#nfhud .hud-hybrid .hud-seg.on.bad { fill: #ff4757; }
#nfhud .hud-mech-text { font-size: 10px; fill: #ffd0c8; letter-spacing: 1px; }
#nfhud .hud-tank { fill: #07080a; stroke: #5c6670; stroke-width: 2; }
#nfhud .hud-fluid { fill: #ff9f43; filter: drop-shadow(0 0 6px rgba(255, 159, 67, 0.9)); }
#nfhud .hud-fluid.low { fill: #ff4757; filter: drop-shadow(0 0 6px rgba(255, 71, 87, 0.9)); }
#nfhud .hud-notch { stroke: #07080a; stroke-width: 2; }
#nfhud .hud-ladder-label { font-size: 9px; fill: #a9b2bb; }
#nfhud .hud-marker.on.hot { fill: #ff9f43; filter: drop-shadow(0 0 4px rgba(255, 159, 67, 0.9)); }
#nfhud .hud-zone-steel { fill: none; stroke: rgba(169, 178, 187, 0.3); stroke-width: 4; }
#nfhud .hud-hybrid .hud-bezel { fill: #15181c; stroke: #5c6670; }
#nfhud .hud-hybrid .hud-needle polygon { fill: #ff4757; filter: drop-shadow(0 0 3px rgba(255, 71, 87, 0.8)); }
#nfhud .hud-hybrid .hud-counter { fill: #07080a; stroke: rgba(255, 71, 87, 0.45); }
#nfhud .hud-hybrid .hud-counter-digits { fill: #ff9f43; filter: drop-shadow(0 0 3px rgba(255, 159, 67, 0.7)); }
#nfhud .hud-hybrid .hud-counter-label { fill: #a9b2bb; }
#nfhud .hud-reticle rect { fill: rgba(255, 71, 87, 0.12); stroke: none; }
#nfhud .hud-bracket { fill: none; stroke: #ff4757; stroke-width: 2; }
#nfhud .hud-hybrid .hud-small { fill: #8a939c; }

/* The HUD's parts drawer (the ⚙ button): a row a fitted part, in each cockpit's colors. */
/* the combat strip under the instruments: guns, missiles, countermeasures, a leveling vehicle's level */
#nfhud .hud-strip { border-top: 1px solid rgba(72, 219, 251, 0.25); padding: 5px 8px 6px; display: flex; flex-direction: column; gap: 4px;
    font-family: Consolas, "DejaVu Sans Mono", monospace; }
#nfhud .hud-strip[hidden] { display: none; }
#nfhud .hud-strip-row { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
#nfhud .hud-strip-label { flex: none; width: 34px; font-size: 9px; letter-spacing: 1.5px; color: #7f9fb0; }
#nfhud .hud-chip { display: inline-flex; flex-direction: column; align-items: center; min-width: 54px; padding: 2px 6px 3px; border-radius: 4px;
    font: inherit; font-size: 9.5px; letter-spacing: 1px; line-height: 1.2; cursor: pointer; color: #dff8ff;
    background: rgba(72, 219, 251, 0.06); border: 1px solid rgba(72, 219, 251, 0.3); }
#nfhud .hud-chip small { font-size: 8.5px; letter-spacing: 1px; color: #7f9fb0; }
#nfhud .hud-chip:hover:not(:disabled) { border-color: #48dbfb; box-shadow: 0 0 8px rgba(72, 219, 251, 0.4); }
#nfhud .hud-chip:focus-visible { outline: 2px solid #48dbfb; outline-offset: 1px; }
#nfhud .hud-chip:disabled { cursor: default; opacity: 0.55; }
#nfhud .hud-chip.armed { border-color: rgba(46, 242, 160, 0.6); }
#nfhud .hud-chip.armed small { color: #2ef2a0; }
#nfhud .hud-chip.held { opacity: 0.6; border-style: dashed; }
#nfhud .hud-chip.held small { color: #feca57; }
#nfhud .hud-chip.dry small { color: #ff5c5c; }
#nfhud .hud-chip.missile { border-color: rgba(255, 79, 216, 0.6); }
#nfhud .hud-chip.missile small { color: #ff4fd8; font-weight: bold; }
#nfhud .hud-chip.ready small { color: #2ef2a0; }
#nfhud .hud-chip.live { color: #fff; border-color: #48dbfb; background: rgba(72, 219, 251, 0.25); box-shadow: 0 0 10px rgba(72, 219, 251, 0.5); }
#nfhud .hud-chip.live small { color: #fff; }
#nfhud .hud-chip.cool { opacity: 0.6; }
#nfhud .hud-chip.cool small { color: #feca57; }
#nfhud .hud-level { flex-wrap: nowrap; }
#nfhud .hud-xpbar { flex: 1; height: 5px; border-radius: 3px; background: rgba(72, 219, 251, 0.12); overflow: hidden; }
#nfhud .hud-xpbar i { display: block; height: 100%; background: linear-gradient(90deg, #ff4fd8, #48dbfb); }
#nfhud .hud-tune { flex: none; font-size: 9px; letter-spacing: 1px; color: #feca57; }
@media (prefers-reduced-motion: reduce) { #nfhud .hud-chip.live { box-shadow: none; } }
#nfhud .hud-parts { border-top: 1px solid rgba(72, 219, 251, 0.25); padding: 4px 10px 8px; max-height: 190px; overflow-y: auto; }
#nfhud .hud-parts-head { font-size: 10px; letter-spacing: 2px; color: #7f9fb0; margin: 2px 0 4px; }
#nfhud .hud-part-none { color: #7f9fb0; font-size: 11px; }
#nfhud .hud-part { display: grid; grid-template-columns: 12px 1fr auto; align-items: center; column-gap: 6px; padding: 3px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
#nfhud .hud-part-lamp { width: 8px; height: 8px; border-radius: 50%; background: #48e6a0; box-shadow: 0 0 5px rgba(72, 230, 160, 0.8); }
#nfhud .hud-part.offline .hud-part-lamp { background: #feca57; box-shadow: 0 0 5px rgba(254, 202, 87, 0.8); }
#nfhud .hud-part.empty .hud-part-lamp { background: #ff6b6b; box-shadow: 0 0 5px rgba(255, 107, 107, 0.9); animation: hud-blink 0.9s steps(2) infinite; }
#nfhud .hud-part-name { color: #e9fbff; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
#nfhud .hud-part-state { font-size: 10px; letter-spacing: 1px; color: #48e6a0; }
#nfhud .hud-part.offline .hud-part-state { color: #feca57; }
#nfhud .hud-part.empty .hud-part-state { color: #ff6b6b; }
#nfhud .hud-part-detail { grid-column: 2 / 4; font-size: 10px; color: #7f9fb0; }
#nfhud .hud-parts-btn.on { background: rgba(255, 255, 255, 0.12); color: #fff; }
#nfhud .hud-parts-btn.warn { color: #feca57; text-shadow: 0 0 6px rgba(254, 202, 87, 0.9); }
#nfhud .hud-parts-btn.bad { color: #ff6b6b; text-shadow: 0 0 6px rgba(255, 107, 107, 0.9); animation: hud-blink 0.9s steps(2) infinite; }
#nfhud[data-kind="ground"] .hud-parts { border-top-color: rgba(255, 176, 0, 0.3); }
#nfhud[data-kind="ground"] .hud-part-name { color: #ffe2a8; }
#nfhud[data-kind="ground"] .hud-parts-head, #nfhud[data-kind="ground"] .hud-part-detail { color: #a08a60; }
#nfhud[data-kind="hybrid"] .hud-parts { border-top-color: rgba(255, 71, 87, 0.35); }
#nfhud[data-kind="hybrid"] .hud-part-name { color: #ffd0c8; }
#nfhud[data-kind="hybrid"] .hud-parts-head, #nfhud[data-kind="hybrid"] .hud-part-detail { color: #8a939c; }

/* ---------------------------------------------------------------- the score tablet (plugins/nfscore.js)
   A tablet drawn into the text window: it scrolls up with everything else. */
.nf-tablet {
    --nft-cyan: #48dbfb; --nft-mag: #ff4fd8; --nft-green: #2ef2a0; --nft-amber: #feca57; --nft-red: #ff5c5c;
    --nft-ink: #dff8ff; --nft-dim: #7f9fb0; --nft-line: rgba(72, 219, 251, 0.22);
    width: min(620px, calc(100% - 16px)); margin: 14px auto 16px; font-family: "Consolas", "DejaVu Sans Mono", "Menlo", monospace;
    font-size: 12px; line-height: 1.35; color: var(--nft-ink); white-space: normal; text-align: left;
    container-type: inline-size;  /* narrow text pane, not narrow window: see @container below */
}
.nf-tablet.boot { animation: nft-rise 0.55s cubic-bezier(.2, .9, .3, 1.1) both; }
.nf-tablet.boot .nft-screen { animation: nft-boot 0.9s steps(1, end) both; }
@keyframes nft-rise { from { opacity: 0; transform: translateY(46px) scale(0.94) rotateX(14deg); } to { opacity: 1; transform: none; } }
@keyframes nft-boot {
    0% { filter: brightness(0); } 18% { filter: brightness(1.8) saturate(0.2); } 26% { filter: brightness(0.25); }
    40% { filter: brightness(1.3); } 55% { filter: brightness(0.7); } 70%, 100% { filter: none; }
}
@media (prefers-reduced-motion: reduce) {
    .nf-tablet.boot, .nf-tablet.boot .nft-screen, .nf-tablet .nft-body-scan, .nf-tablet .nft-node-ping, .nf-tablet .nft-pane-in { animation: none; }
}
.nf-tablet .nft-bezel {
    position: relative; padding: 18px 16px 22px; border-radius: 26px;
    background: linear-gradient(145deg, #2b333d 0%, #151a21 45%, #0c1015 100%);
    box-shadow: 0 0 0 1px #3a4552, inset 0 1px 0 rgba(255, 255, 255, 0.12), inset 0 -2px 6px rgba(0, 0, 0, 0.6),
                0 18px 40px rgba(0, 0, 0, 0.55), 0 0 28px rgba(72, 219, 251, 0.12);
}
.nf-tablet .nft-cam { position: absolute; top: 7px; left: 50%; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #4b6a8a, #05070a 70%); box-shadow: 0 0 0 1px #000; }
.nf-tablet .nft-home { position: absolute; bottom: 6px; left: 50%; width: 46px; height: 4px; margin-left: -23px; border-radius: 3px;
    background: rgba(255, 255, 255, 0.14); }
.nf-tablet .nft-screen {
    position: relative; overflow: hidden; border-radius: 12px; padding: 10px 14px 12px;
    background: radial-gradient(ellipse at 20% 0%, rgba(72, 219, 251, 0.14), transparent 55%),
                radial-gradient(ellipse at 100% 100%, rgba(255, 79, 216, 0.12), transparent 55%),
                linear-gradient(rgba(72, 219, 251, 0.05) 1px, transparent 1px) 0 0 / 100% 22px,
                linear-gradient(90deg, rgba(72, 219, 251, 0.04) 1px, transparent 1px) 0 0 / 22px 100%, #040a12;
    box-shadow: inset 0 0 0 1px rgba(72, 219, 251, 0.35), inset 0 0 30px rgba(0, 0, 0, 0.9);
}
.nf-tablet .nft-scan { position: absolute; inset: 0; pointer-events: none; z-index: 2;
    background: repeating-linear-gradient(rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 3px); }
.nf-tablet .nft-screen > * { position: relative; z-index: 1; }
.nf-tablet .nft-status { display: flex; gap: 10px; align-items: center; font-size: 10px; letter-spacing: 1.5px; color: var(--nft-dim);
    border-bottom: 1px solid var(--nft-line); padding-bottom: 5px; margin-bottom: 10px; }
.nf-tablet .nft-brand { color: var(--nft-cyan); flex: 1; text-shadow: 0 0 6px rgba(72, 219, 251, 0.6); }
.nf-tablet .nft-link { color: var(--nft-green); }
.nf-tablet .nft-sig { color: var(--nft-cyan); letter-spacing: 0; }
.nf-tablet .nft-head { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.nf-tablet .nft-badge { flex: none; width: 54px; height: 60px; display: grid; place-items: center;
    clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
    background: linear-gradient(160deg, var(--nft-mag), #6a1fd1 60%, #12213a); }
.nf-tablet .nft-badge span { font-size: 20px; font-weight: bold; color: #fff; text-shadow: 0 0 8px rgba(255, 255, 255, 0.7); }
.nf-tablet .nft-id { flex: 1; min-width: 0; }
.nf-tablet .nft-title { font-size: 11px; letter-spacing: 1.5px; color: #feca57; font-style: italic; margin-top: -2px; }
.nf-tablet .nft-name { font-size: 20px; font-weight: bold; letter-spacing: 2px; color: #fff; overflow: hidden; text-overflow: ellipsis;
    white-space: nowrap; text-shadow: 0 0 10px rgba(72, 219, 251, 0.7); }
.nf-tablet .nft-sub { font-size: 11px; letter-spacing: 2px; color: var(--nft-mag); margin: 1px 0 5px; overflow: hidden;
    text-overflow: ellipsis; white-space: nowrap; }
.nf-tablet .nft-xp span { font-size: 10px; color: var(--nft-dim); }
.nf-tablet .nft-xpbar, .nf-tablet .nft-meter { height: 6px; border-radius: 3px; background: rgba(72, 219, 251, 0.12); overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(72, 219, 251, 0.2); margin-bottom: 3px; }
.nf-tablet .nft-xpbar i, .nf-tablet .nft-meter i { display: block; height: 100%; width: 0; transition: width 1.1s ease-out 0.35s; }
.nf-tablet .nft-xpbar i { background: linear-gradient(90deg, var(--nft-mag), var(--nft-cyan)); box-shadow: 0 0 8px var(--nft-cyan); }
.nf-tablet .nft-meter i { background: linear-gradient(90deg, var(--nft-green), var(--nft-amber)); }
.nf-tablet .nft-credits { flex: none; text-align: right; padding: 6px 10px; border: 1px solid rgba(254, 202, 87, 0.45);
    border-radius: 6px; background: rgba(254, 202, 87, 0.07); }
.nf-tablet .nft-credits small { display: block; font-size: 9px; letter-spacing: 2px; color: var(--nft-dim); }
.nf-tablet .nft-credits b { color: var(--nft-amber); font-size: 14px; text-shadow: 0 0 6px rgba(254, 202, 87, 0.6); }
.nf-tablet .nft-row { display: flex; gap: 12px; align-items: stretch; margin-bottom: 10px; }
.nf-tablet .nft-rings { display: flex; gap: 10px; flex: none; }
.nf-tablet .nft-ring { position: relative; width: 92px; text-align: center; }
.nf-tablet .nft-ring svg { width: 92px; height: 92px; display: block; }
.nf-tablet .nft-ring-track { fill: none; stroke: rgba(255, 255, 255, 0.07); stroke-width: 7; }
.nf-tablet .nft-ring-ticks { fill: none; stroke: rgba(72, 219, 251, 0.3); stroke-width: 2; stroke-dasharray: 1 5.6; }
.nf-tablet .nft-ring-arc { fill: none; stroke-width: 7; stroke-linecap: round; transition: stroke-dashoffset 1.2s ease-out 0.3s; }
.nf-tablet .nft-health .nft-ring-arc { stroke: var(--nft-red); filter: drop-shadow(0 0 4px var(--nft-red)); }
.nf-tablet .nft-energy .nft-ring-arc { stroke: var(--nft-cyan); filter: drop-shadow(0 0 4px var(--nft-cyan)); }
.nf-tablet .nft-ring.low .nft-ring-arc { animation: nft-pulse 1.1s ease-in-out infinite; }
@keyframes nft-pulse { 50% { opacity: 0.45; } }
.nf-tablet .nft-ring-mid { position: absolute; top: 0; left: 0; width: 92px; height: 92px; display: flex; flex-direction: column;
    align-items: center; justify-content: center; }
.nf-tablet .nft-ring-mid b { font-size: 17px; color: #fff; }
.nf-tablet .nft-ring-mid span { font-size: 10px; color: var(--nft-dim); }
.nf-tablet .nft-ring-name { font-size: 10px; letter-spacing: 2px; color: var(--nft-dim); text-transform: uppercase; }
.nf-tablet .nft-panel { border: 1px solid var(--nft-line); border-radius: 8px; padding: 6px 10px 8px; margin-bottom: 10px;
    background: rgba(8, 22, 34, 0.55); }
.nf-tablet .nft-row .nft-panel { margin-bottom: 0; flex: 1; min-width: 0; }
.nf-tablet .nft-panel h4 { margin: 0 0 6px; font-size: 10px; font-weight: normal; letter-spacing: 3px; color: var(--nft-cyan); }
.nf-tablet .nft-panel h4::before { content: "▍"; color: var(--nft-mag); margin-right: 4px; }
.nf-tablet .nft-weapon { color: #fff; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nf-tablet .nft-dmg, .nf-tablet .nft-strain { margin-top: 6px; }
.nf-tablet .nft-dmg small, .nf-tablet .nft-strain small { display: block; font-size: 9px; letter-spacing: 2px; color: var(--nft-dim); }
.nf-tablet .nft-dmg b { font-size: 18px; color: var(--nft-amber); }
.nf-tablet .nft-attr { display: grid; grid-template-columns: 64px 1fr 44px; gap: 8px; align-items: center; margin: 3px 0; cursor: help; }
.nf-tablet .nft-attr-name { font-size: 11px; letter-spacing: 1px; color: var(--nft-ink); text-transform: uppercase; }
.nf-tablet .nft-segs { display: grid; grid-template-columns: repeat(20, 1fr); gap: 2px; }
.nf-tablet .nft-seg { height: 9px; border-radius: 1px; background: rgba(72, 219, 251, 0.09); }
.nf-tablet .nft-seg.on { background: var(--nft-cyan); box-shadow: 0 0 4px rgba(72, 219, 251, 0.7); }
.nf-tablet .nft-seg.bonus { background: var(--nft-green); box-shadow: 0 0 4px rgba(46, 242, 160, 0.7); }
.nf-tablet .nft-seg.drained { background: rgba(255, 92, 92, 0.5); }
.nf-tablet .nft-attr-val { text-align: right; font-size: 14px; color: #fff; }
.nf-tablet .nft-attr-val small { font-size: 9px; margin-left: 3px; }
.nf-tablet .nft-attr-val small.up { color: var(--nft-green); }
.nf-tablet .nft-attr-val small.down { color: var(--nft-red); }
.nf-tablet .nft-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 10px; }
.nf-tablet .nft-tile { text-align: center; padding: 6px 2px; border-radius: 6px; cursor: help;
    border: 1px solid rgba(255, 79, 216, 0.35); background: rgba(255, 79, 216, 0.06); }
.nf-tablet .nft-tile b { display: block; font-size: 17px; color: #fff; text-shadow: 0 0 6px rgba(255, 79, 216, 0.7); }
.nf-tablet .nft-tile small { font-size: 9px; letter-spacing: 1.5px; color: var(--nft-dim); }
.nf-tablet .nft-tile.zero { opacity: 0.45; }
.nf-tablet .nft-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.nf-tablet .nft-li { display: flex; gap: 8px; padding: 1px 0; border-bottom: 1px dotted rgba(72, 219, 251, 0.12); }
.nf-tablet .nft-li-k { flex: none; width: 58px; color: var(--nft-dim); font-size: 10px; text-transform: uppercase; padding-top: 1px; }
.nf-tablet .nft-li-v { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nf-tablet .nft-empty { color: var(--nft-dim); font-style: italic; }
.nf-tablet .nft-quest { padding: 2px 0 4px; border-bottom: 1px dotted rgba(72, 219, 251, 0.12); }
.nf-tablet .nft-quest b { display: block; color: var(--nft-amber); font-weight: normal; }
.nf-tablet .nft-quest span { color: var(--nft-dim); font-size: 11px; }
.nf-tablet .nft-alert { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 7px 10px; margin-bottom: 8px; border-radius: 8px;
    border: 1px solid rgba(254, 202, 87, 0.6); background: rgba(254, 202, 87, 0.08); animation: nft-glow 2s ease-in-out infinite; }
.nf-tablet .nft-alert span { flex: 1 0 100%; color: var(--nft-amber); letter-spacing: 2px; font-size: 11px; }
@keyframes nft-glow { 50% { box-shadow: 0 0 12px rgba(254, 202, 87, 0.35); } }
.nf-tablet .nft-train { font: inherit; font-size: 10px; letter-spacing: 1px; color: var(--nft-ink); cursor: pointer; padding: 3px 8px;
    border-radius: 4px; border: 1px solid rgba(72, 219, 251, 0.5); background: rgba(72, 219, 251, 0.1); }
.nf-tablet .nft-train:hover { background: rgba(72, 219, 251, 0.3); color: #fff; }
.nf-tablet .nft-foot { text-align: center; font-size: 9px; letter-spacing: 1.5px; color: rgba(127, 159, 176, 0.6); text-transform: uppercase; }
/* tabs */
.nf-tablet .nft-tabs { display: flex; gap: 4px; margin: 0 0 10px; border-bottom: 1px solid var(--nft-line); }
.nf-tablet .nft-tab { font: inherit; font-size: 10px; letter-spacing: 2.5px; padding: 5px 14px 6px; cursor: pointer; color: var(--nft-dim);
    background: rgba(72, 219, 251, 0.04); border: 1px solid var(--nft-line); border-bottom: 0; border-radius: 6px 6px 0 0;
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%); }
.nf-tablet .nft-tab:hover { color: var(--nft-ink); background: rgba(72, 219, 251, 0.1); }
.nf-tablet .nft-tab.on { color: #fff; background: linear-gradient(180deg, rgba(72, 219, 251, 0.28), rgba(72, 219, 251, 0.06));
    border-color: rgba(72, 219, 251, 0.6); text-shadow: 0 0 6px rgba(72, 219, 251, 0.8); box-shadow: inset 0 2px 0 var(--nft-mag); }
.nf-tablet .nft-pane[hidden] { display: none; }
.nf-tablet .nft-pane-in { animation: nft-pane 0.35s ease-out; }
@keyframes nft-pane { 0% { opacity: 0; filter: brightness(1.8); transform: translateY(4px); } 100% { opacity: 1; filter: none; transform: none; } }
/* loadout: the body outline */
.nf-tablet .nft-loadout { border: 1px solid var(--nft-line); border-radius: 8px; padding: 6px; margin-bottom: 10px;
    background: radial-gradient(ellipse at 50% 45%, rgba(72, 219, 251, 0.1), transparent 60%), rgba(8, 22, 34, 0.55); }
.nf-tablet .nft-body { display: block; width: 100%; height: auto; }
.nf-tablet .nft-body-grid line { stroke: rgba(72, 219, 251, 0.07); stroke-width: 1; }
.nf-tablet .nft-body-edge { fill: none; stroke: rgba(72, 219, 251, 0.75); stroke-width: 24; stroke-linecap: round; stroke-linejoin: round;
    filter: drop-shadow(0 0 6px rgba(72, 219, 251, 0.6)); }
.nf-tablet .nft-body-core { fill: none; stroke: #061522; stroke-width: 21; stroke-linecap: round; stroke-linejoin: round; }
.nf-tablet .nft-body-torso { fill: #061522; stroke: rgba(72, 219, 251, 0.75); stroke-width: 1.6;
    filter: drop-shadow(0 0 6px rgba(72, 219, 251, 0.5)); }
.nf-tablet .nft-body-line { fill: none; stroke: rgba(72, 219, 251, 0.35); stroke-width: 1; }
.nf-tablet .nft-body-visor { fill: rgba(255, 79, 216, 0.55); filter: drop-shadow(0 0 5px var(--nft-mag)); }
.nf-tablet .nft-body-scan { fill: rgba(72, 219, 251, 0.5); filter: drop-shadow(0 0 6px var(--nft-cyan)); animation: nft-scan 4s linear infinite; }
@keyframes nft-scan { 0% { transform: translateY(8px); opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { transform: translateY(462px); opacity: 0; } }
.nf-tablet .nft-lead { fill: none; stroke: rgba(72, 219, 251, 0.45); stroke-width: 1.2; }
.nf-tablet .nft-slot.empty .nft-lead { stroke: rgba(127, 159, 176, 0.18); stroke-dasharray: 3 4; }
.nf-tablet .nft-node { fill: var(--nft-cyan); filter: drop-shadow(0 0 4px var(--nft-cyan)); }
.nf-tablet .nft-slot.empty .nft-node { fill: rgba(127, 159, 176, 0.35); filter: none; }
.nf-tablet .nft-node-ping { fill: none; stroke: var(--nft-cyan); stroke-width: 1.2; transform-box: fill-box; transform-origin: center;
    animation: nft-ping 2.4s ease-out infinite; }
@keyframes nft-ping { 0% { transform: scale(1); opacity: 0.9; } 70%, 100% { transform: scale(3.2); opacity: 0; } }
.nf-tablet .nft-label { fill: rgba(6, 21, 34, 0.92); stroke: rgba(72, 219, 251, 0.45); stroke-width: 1; }
.nf-tablet .nft-slot.empty .nft-label { stroke: rgba(127, 159, 176, 0.2); fill: rgba(6, 21, 34, 0.6); }
.nf-tablet .nft-label-slot { fill: var(--nft-mag); font-size: 9px; letter-spacing: 2px; }
.nf-tablet .nft-label-item { fill: #fff; font-size: 12px; }
.nf-tablet .nft-slot.empty .nft-label-slot { fill: rgba(127, 159, 176, 0.6); }
.nf-tablet .nft-slot.empty .nft-label-item { fill: rgba(127, 159, 176, 0.5); font-style: italic; }
.nf-tablet .nft-slot.filled { cursor: help; outline: none; }
.nf-tablet .nft-slot.filled:hover .nft-label, .nf-tablet .nft-slot.filled:focus .nft-label { stroke: var(--nft-cyan); fill: rgba(72, 219, 251, 0.18);
    filter: drop-shadow(0 0 6px rgba(72, 219, 251, 0.7)); }
.nf-tablet .nft-slot.filled:hover .nft-lead, .nf-tablet .nft-slot.filled:focus .nft-lead { stroke: var(--nft-cyan); stroke-width: 2;
    filter: drop-shadow(0 0 3px var(--nft-cyan)); }
.nf-tablet .nft-port { margin: 8px 4px 2px; padding-top: 6px; border-top: 1px solid var(--nft-line); }
.nf-tablet .nft-port-head { font-size: 10px; letter-spacing: 3px; color: var(--nft-cyan); margin-bottom: 6px; }
.nf-tablet .nft-chip { padding: 6px 8px; margin-bottom: 6px; border: 1px solid rgba(255, 79, 216, 0.4); border-radius: 5px;
    background: linear-gradient(90deg, rgba(255, 79, 216, 0.1), transparent 70%); }
.nf-tablet .nft-chip.empty { border-style: dashed; border-color: rgba(127, 159, 176, 0.25); background: none;
    color: rgba(127, 159, 176, 0.6); font-style: italic; font-size: 11px; }
.nf-tablet .nft-chip-top { display: flex; gap: 8px; align-items: baseline; }
.nf-tablet .nft-chip-top b { color: #fff; font-weight: normal; letter-spacing: 1px; }
.nf-tablet .nft-chip-lvl { font-size: 9px; padding: 0 5px; border: 1px solid var(--nft-mag); border-radius: 3px; color: var(--nft-mag); }
.nf-tablet .nft-chip-life { margin-left: auto; font-size: 10px; color: var(--nft-dim); }
.nf-tablet .nft-chip-life.perm { color: var(--nft-amber); letter-spacing: 1.5px; }
.nf-tablet .nft-chip-fx { display: flex; gap: 8px; font-size: 11px; margin-top: 3px; }
.nf-tablet .nft-chip-fx span { color: var(--nft-amber); min-width: 120px; }
.nf-tablet .nft-chip-fx small { color: var(--nft-ink); font-size: 11px; }
.nf-tablet .nft-chip-total { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 11px; color: var(--nft-dim); padding: 2px 2px 0; }
.nf-tablet .nft-chip-total b { color: var(--nft-green); font-weight: normal; }
.nf-tablet .nft-chip-total-head { font-size: 9px; letter-spacing: 2px; color: var(--nft-cyan); }
.nf-tablet .nft-loadout-foot { display: flex; gap: 16px; font-size: 10px; letter-spacing: 2px; color: var(--nft-dim); padding: 4px 6px 0; }
.nf-tablet .nft-loadout-foot .nft-over { color: var(--nft-red); }
.nf-tablet .nft-loadout-foot .nft-hint { margin-left: auto; letter-spacing: 1px; font-style: italic; text-transform: none; }
/* the hover card */
.nf-tablet .nft-screen > .nft-tip { position: absolute; z-index: 5; width: 230px; padding: 8px 10px; border-radius: 6px; pointer-events: none;
    background: rgba(3, 10, 18, 0.97); border: 1px solid var(--nft-cyan);
    box-shadow: 0 0 16px rgba(72, 219, 251, 0.35), inset 0 0 0 1px rgba(255, 79, 216, 0.25); }
.nf-tablet .nft-screen > .nft-tip[hidden] { display: none; }
.nf-tablet .nft-tip-slot { font-size: 9px; letter-spacing: 2px; color: var(--nft-mag); }
.nf-tablet .nft-tip-name { font-size: 14px; color: #fff; margin: 2px 0 6px; text-shadow: 0 0 6px rgba(72, 219, 251, 0.6); }
.nf-tablet .nft-tip-stats { display: flex; flex-wrap: wrap; gap: 4px; }
.nf-tablet .nft-tip-desc { margin-top: 6px; padding-top: 6px; border-top: 1px dotted var(--nft-line); color: var(--nft-dim); font-size: 11px; }
.nf-tablet .nft-chip { display: inline-flex; gap: 5px; align-items: baseline; padding: 2px 7px; border-radius: 10px; font-size: 11px;
    border: 1px solid rgba(72, 219, 251, 0.4); background: rgba(72, 219, 251, 0.08); color: var(--nft-ink); }
.nf-tablet .nft-chip small { font-size: 9px; letter-spacing: 1px; color: var(--nft-dim); }
.nf-tablet .nft-chip.up { border-color: rgba(46, 242, 160, 0.55); } .nf-tablet .nft-chip.up b { color: var(--nft-green); }
.nf-tablet .nft-chip.down { border-color: rgba(255, 92, 92, 0.55); } .nf-tablet .nft-chip.down b { color: var(--nft-red); }
/* jobs */
.nf-tablet .nft-jobs-tab { margin-bottom: 10px; }
.nf-tablet .nft-nojobs { text-align: center; padding: 30px 10px; border: 1px dashed var(--nft-line); border-radius: 8px; }
.nf-tablet .nft-nojobs b { display: block; letter-spacing: 3px; color: var(--nft-cyan); margin-bottom: 4px; }
.nf-tablet .nft-nojobs span { color: var(--nft-dim); }
.nf-tablet .nft-job { border: 1px solid var(--nft-line); border-left: 3px solid var(--nft-amber); border-radius: 8px; padding: 8px 10px;
    margin-bottom: 8px; background: rgba(8, 22, 34, 0.55); }
.nf-tablet .nft-job.instance { border-left-color: var(--nft-mag); }
.nf-tablet .nft-job-head { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.nf-tablet .nft-job-head b { color: var(--nft-amber); font-size: 14px; font-weight: normal; }
.nf-tablet .nft-tag { font-size: 9px; letter-spacing: 2px; padding: 1px 6px; border-radius: 3px; color: #fff; background: rgba(255, 79, 216, 0.35); }
.nf-tablet .nft-job-giver { margin-left: auto; font-size: 10px; color: var(--nft-dim); }
.nf-tablet .nft-job-sum { color: var(--nft-dim); font-size: 11px; margin: 3px 0 6px; }
.nf-tablet .nft-steps { list-style: none; margin: 0; padding: 0; }
.nf-tablet .nft-step { display: grid; grid-template-columns: 16px 1fr; gap: 2px 6px; padding: 2px 0; }
.nf-tablet .nft-step-mark { font-style: normal; text-align: center; }
.nf-tablet .nft-step.done { color: rgba(127, 159, 176, 0.7); }
.nf-tablet .nft-step.done .nft-step-mark { color: var(--nft-green); }
.nf-tablet .nft-step.done span { text-decoration: line-through; text-decoration-color: rgba(46, 242, 160, 0.4); }
.nf-tablet .nft-step.now { color: #fff; }
.nf-tablet .nft-step.now .nft-step-mark { color: var(--nft-cyan); text-shadow: 0 0 6px var(--nft-cyan); animation: nft-pulse 1.4s ease-in-out infinite; }
.nf-tablet .nft-step.next { color: rgba(127, 159, 176, 0.55); }
.nf-tablet .nft-step-prog { grid-column: 2; display: flex; gap: 8px; align-items: center; }
.nf-tablet .nft-step-prog .nft-meter { flex: 1; margin: 0; }
.nf-tablet .nft-step-prog small { color: var(--nft-dim); font-size: 10px; }
.nf-tablet .nft-step-bar i { background: linear-gradient(90deg, var(--nft-cyan), var(--nft-green)); }
.nf-tablet .nft-rewards { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin-top: 6px; }
.nf-tablet .nft-rewards > small { font-size: 9px; letter-spacing: 2px; color: var(--nft-dim); margin-right: 4px; }
@container (max-width: 560px) {
    .nf-tablet .nft-row { flex-direction: column; }
    .nf-tablet .nft-rings { justify-content: center; }
    .nf-tablet .nft-cols { grid-template-columns: 1fr; }
    .nf-tablet .nft-tiles { grid-template-columns: repeat(2, 1fr); }
    .nf-tablet .nft-head { flex-wrap: wrap; }
    .nf-tablet .nft-tab { padding: 5px 9px 6px; letter-spacing: 1.5px; }
    .nf-tablet .nft-loadout-foot .nft-hint { display: none; }
    .nf-tablet .nft-credits { flex: 1 0 100%; display: flex; justify-content: space-between; align-items: baseline; }
}

/* ---------------------------------------------------------------- the bank statement (plugins/nfstatement.js): wallet */
.nf-bank {
    --nfb-gold: #feca57; --nfb-cyan: #48dbfb; --nfb-green: #2ef2a0; --nfb-red: #ff6b81; --nfb-dim: #8a9aa8;
    --nfb-line: rgba(254, 202, 87, 0.22);
    width: min(680px, calc(100% - 16px)); margin: 12px auto 14px; padding: 12px 16px 8px; box-sizing: border-box;
    font-family: "Consolas", "DejaVu Sans Mono", "Menlo", monospace; font-size: 12px; color: #eef6f8; white-space: normal; text-align: left;
    /* security paper: fine rings, like a banknote's guilloche */
    background: repeating-radial-gradient(circle at 100% 0%, rgba(254, 202, 87, 0.05) 0 1px, transparent 1px 7px),
                radial-gradient(ellipse at 0% 0%, rgba(254, 202, 87, 0.12), transparent 55%), rgba(6, 10, 16, 0.95);
    border: 1px solid rgba(254, 202, 87, 0.55);
    clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
    box-shadow: inset 0 0 26px rgba(254, 202, 87, 0.1); container-type: inline-size;
}
.nf-bank.boot { animation: nfw-in 0.6s ease-out both; }
.nf-bank .nfb-head { display: flex; gap: 12px; align-items: center; padding-bottom: 8px; border-bottom: 1px solid var(--nfb-line);
    font-size: 10px; letter-spacing: 2px; color: var(--nfb-dim); }
.nf-bank .nfb-logo { width: 30px; height: 34px; display: grid; place-items: center; flex: none; font-weight: bold; font-size: 12px;
    letter-spacing: 0; color: #1a1204; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
    background: linear-gradient(160deg, #fff0b8, var(--nfb-gold) 45%, #a8741a); }
.nf-bank .nfb-brand { flex: 1; display: flex; flex-direction: column; }
.nf-bank .nfb-brand b { font-size: 15px; letter-spacing: 5px; color: var(--nfb-gold); font-weight: normal;
    text-shadow: 0 0 8px rgba(254, 202, 87, 0.55); }
.nf-bank .nfb-brand small { font-size: 9px; letter-spacing: 2px; color: var(--nfb-dim); }
.nf-bank .nfb-secure { color: var(--nfb-green); font-size: 9px; }
.nf-bank .nfb-card { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin: 10px 0 8px; padding: 10px 12px;
    border: 1px solid rgba(72, 219, 251, 0.35); border-radius: 6px;
    background: linear-gradient(115deg, rgba(72, 219, 251, 0.1), rgba(255, 79, 216, 0.06) 60%, rgba(254, 202, 87, 0.1)); }
.nf-bank .nfb-card small { display: block; font-size: 8px; letter-spacing: 2px; color: var(--nfb-dim); }
.nf-bank .nfb-holder b { display: block; font-size: 14px; letter-spacing: 1px; font-weight: normal; color: #fff; margin: 2px 0 4px; }
.nf-bank .nfb-balance { text-align: right; }
.nf-bank .nfb-balance b { font-size: 26px; font-weight: normal; color: var(--nfb-gold); text-shadow: 0 0 12px rgba(254, 202, 87, 0.45); }
.nf-bank .nfb-balance i { font-style: normal; font-size: 11px; letter-spacing: 2px; margin-left: 6px; color: var(--nfb-dim); }
.nf-bank .nfb-sum { display: flex; gap: 16px; font-size: 9px; letter-spacing: 2px; color: var(--nfb-dim); padding: 2px 4px 6px; }
.nf-bank .nfb-sum span:first-child { flex: 1; }
.nf-bank .nfb-sum .in { color: var(--nfb-green); } .nf-bank .nfb-sum .out { color: var(--nfb-red); }
.nf-bank .nfb-row { display: grid; grid-template-columns: 64px 46px minmax(0, 1fr) 76px 76px; gap: 8px; align-items: center;
    position: relative; padding: 4px; border-bottom: 1px dotted rgba(254, 202, 87, 0.14); }
.nf-bank .nfb-cols { font-size: 9px; letter-spacing: 2px; color: var(--nfb-dim); border-bottom: 1px solid var(--nfb-line); }
.nf-bank .nfb-cols span:nth-child(n+4) { text-align: right; }
.nf-bank .nfb-entry:hover { background: linear-gradient(90deg, rgba(254, 202, 87, 0.1), transparent); }
.nf-bank .nfb-when b { display: block; font-weight: normal; color: #fff; }
.nf-bank .nfb-when small { color: var(--nfb-dim); font-size: 10px; }
.nf-bank .nfb-kind { justify-self: start; font-size: 8px; letter-spacing: 1px; padding: 1px 5px; border-radius: 3px;
    border: 1px solid currentColor; color: var(--nfb-dim); }
.nf-bank .k-shop { color: var(--nfb-cyan); } .nf-bank .k-transfer { color: #ff4fd8; } .nf-bank .k-loot { color: var(--nfb-green); }
.nf-bank .k-quest { color: var(--nfb-gold); } .nf-bank .k-service { color: #8fb3ff; } .nf-bank .k-medical { color: #ff9f6b; }
.nf-bank .k-clan { color: #c56cf0; } .nf-bank .k-staff { color: #feca57; }
.nf-bank .nfb-what { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nf-bank .nfb-what b { font-weight: normal; color: #eef6f8; }
.nf-bank .nfb-what small { margin-left: 8px; color: var(--nfb-dim); }
.nf-bank .nfb-count { font-style: normal; margin-left: 6px; color: var(--nfb-gold); }
.nf-bank .nfb-amt, .nf-bank .nfb-bal { text-align: right; font-variant-numeric: tabular-nums; }
.nf-bank .in .nfb-amt { color: var(--nfb-green); } .nf-bank .out .nfb-amt { color: var(--nfb-red); }
.nf-bank .nfb-bal { color: var(--nfb-dim); }
.nf-bank .nfb-actions { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); display: none; }
.nf-bank .nfb-entry:hover .nfb-actions, .nf-bank .nfb-entry:focus-within .nfb-actions { display: flex; }
.nf-bank .nfb-pay { font: inherit; font-size: 9px; letter-spacing: 1.5px; padding: 3px 8px; cursor: pointer; border-radius: 3px;
    color: #fff; background: rgba(6, 10, 16, 0.95); border: 1px solid var(--nfb-gold); box-shadow: 0 0 6px rgba(254, 202, 87, 0.4); }
.nf-bank .nfb-pay:hover { background: rgba(254, 202, 87, 0.3); }
.nf-bank .nfb-group { cursor: pointer; }
.nf-bank .nfb-group.open { background: linear-gradient(90deg, rgba(254, 202, 87, 0.12), transparent); }
.nf-bank .nfb-group .nfb-what b { color: #fff; }
.nf-bank .nfb-toggle { font: inherit; font-size: 12px; line-height: 1; width: 18px; height: 18px; padding: 0; margin-right: 8px;
    vertical-align: 1px; cursor: pointer; border-radius: 3px; color: var(--nfb-gold); background: rgba(6, 10, 16, 0.9);
    border: 1px solid var(--nfb-gold); box-shadow: 0 0 5px rgba(254, 202, 87, 0.35); }
.nf-bank .nfb-toggle:hover { background: rgba(254, 202, 87, 0.25); }
.nf-bank .nfb-kids { margin-left: 18px; border-left: 1px solid var(--nfb-line); }
.nf-bank .nfb-kids .nfb-row { grid-template-columns: 64px 46px minmax(0, 1fr) 76px 76px; opacity: 0.9; }
.nf-bank .nfb-more { padding: 4px 8px; font-size: 10px; color: var(--nfb-dim); }
.nf-bank .nfb-earlier { margin-top: 8px; padding-top: 6px; border-top: 1px solid var(--nfb-line); }
.nf-bank .nfb-empty { padding: 14px 4px; color: var(--nfb-dim); text-align: center; }
.nf-bank .nfb-foot { text-align: right; padding-top: 6px; font-size: 9px; letter-spacing: 1.5px; color: rgba(138, 154, 168, 0.6); text-transform: uppercase; }
@container (max-width: 520px) {
    .nf-bank .nfb-row { grid-template-columns: 56px minmax(0, 1fr) 70px; }
    .nf-bank .nfb-row > :nth-child(2), .nf-bank .nfb-row > :nth-child(5) { display: none; }
    .nf-bank .nfb-secure { display: none; }
    .nf-bank .nfb-balance b { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) { .nf-bank.boot { animation: none; } }

/* ---------------------------------------------------------------- the NetLink (plugins/nflink.js): who and channel chat */
.nf-who {
    --nfw-cyan: #48dbfb; --nfw-mag: #ff4fd8; --nfw-dim: #7f9fb0; --nfw-line: rgba(72, 219, 251, 0.22);
    width: min(680px, calc(100% - 16px)); margin: 12px auto 14px; padding: 10px 14px 8px; box-sizing: border-box;
    font-family: "Consolas", "DejaVu Sans Mono", "Menlo", monospace; font-size: 12px; color: #dff8ff; white-space: normal; text-align: left;
    background: linear-gradient(rgba(72, 219, 251, 0.05) 1px, transparent 1px) 0 0 / 100% 20px,
                radial-gradient(ellipse at 0% 0%, rgba(255, 79, 216, 0.14), transparent 50%), rgba(4, 10, 18, 0.94);
    border: 1px solid rgba(72, 219, 251, 0.5);
    clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
    box-shadow: inset 0 0 24px rgba(72, 219, 251, 0.12); container-type: inline-size;
}
.nf-who.boot { animation: nfw-in 0.6s ease-out both; }
@keyframes nfw-in { 0% { opacity: 0; transform: scaleY(0.04); filter: brightness(3); } 40% { opacity: 1; transform: scaleY(1); } 55% { filter: brightness(0.5); } 100% { filter: none; } }
.nf-who .nfw-head { display: flex; gap: 12px; align-items: baseline; padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid var(--nfw-line);
    font-size: 10px; letter-spacing: 2px; color: var(--nfw-dim); }
.nf-who .nfw-brand { flex: 1; color: var(--nfw-cyan); text-shadow: 0 0 6px rgba(72, 219, 251, 0.7); }
.nf-who .nfw-count b { font-size: 15px; color: #fff; text-shadow: 0 0 8px var(--nfw-mag); }
.nf-who .nfw-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) 44px 112px minmax(0, 0.7fr); gap: 8px; align-items: center;
    position: relative; padding: 4px 4px; border-bottom: 1px dotted rgba(72, 219, 251, 0.12); }
.nf-who .nfw-cols { font-size: 9px; letter-spacing: 2px; color: var(--nfw-dim); border-bottom: 0; padding-top: 2px; }
.nf-who .nfw-person:hover { background: linear-gradient(90deg, rgba(72, 219, 251, 0.14), transparent); }
.nf-who .nfw-person.me { background: linear-gradient(90deg, rgba(255, 79, 216, 0.1), transparent 70%); }
.nf-who .nfw-badge { width: 28px; height: 31px; display: grid; place-items: center; font-size: 11px; font-weight: bold; color: #fff;
    clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
    background: linear-gradient(160deg, hsl(var(--h), 90%, 60%), hsl(calc(var(--h) + 50), 70%, 25%)); }
.nf-who .nfw-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nf-who .nfw-name b { font-size: 13px; color: #fff; font-weight: normal; letter-spacing: 1px; }
.nf-who .nfw-name small { color: var(--nfw-dim); }
.nf-who .nfw-name .nfw-title { color: #feca57; font-size: 11px; font-style: italic; }
.nf-who .nfw-tag { font-style: normal; font-size: 8px; letter-spacing: 1.5px; margin-left: 6px; padding: 1px 5px; border-radius: 3px;
    vertical-align: 2px; border: 1px solid rgba(127, 159, 176, 0.5); color: var(--nfw-dim); }
.nf-who .nfw-tag.you { border-color: var(--nfw-mag); color: var(--nfw-mag); }
.nf-who .nfw-tag.staff { border-color: #feca57; color: #feca57; }
.nf-who .nfw-tag.party { border-color: #2ef2a0; color: #2ef2a0; }
.nf-who .nfw-tag.clan { border-color: #c56cf0; color: #c56cf0; letter-spacing: 0.5px; }
.nf-who .nfw-lvl { text-align: center; font-size: 14px; color: var(--nfw-cyan); }
.nf-who .nfw-status { font-size: 10px; letter-spacing: 1px; color: var(--nfw-dim); white-space: nowrap; }
.nf-who .nfw-status i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; background: #556; }
.nf-who .nfw-status.active { color: #2ef2a0; }
.nf-who .nfw-status.active i { background: #2ef2a0; box-shadow: 0 0 6px #2ef2a0; animation: nfw-blink 2s ease-in-out infinite; }
.nf-who .nfw-status.idle { color: #feca57; } .nf-who .nfw-status.idle i { background: #feca57; }
@keyframes nfw-blink { 50% { opacity: 0.35; } }
.nf-who .nfw-on, .nf-who .nfw-where { color: var(--nfw-dim); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nf-who .nfw-actions { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); display: none; gap: 4px; }
.nf-who .nfw-person:hover .nfw-actions, .nf-who .nfw-person:focus-within .nfw-actions { display: flex; }
.nf-who .nfw-actions button { font: inherit; font-size: 9px; letter-spacing: 1.5px; padding: 3px 8px; cursor: pointer; border-radius: 3px;
    color: #fff; background: rgba(4, 10, 18, 0.95); border: 1px solid var(--nfw-cyan); box-shadow: 0 0 6px rgba(72, 219, 251, 0.4); }
.nf-who .nfw-actions button:hover { background: rgba(72, 219, 251, 0.3); }
.nf-who .nfw-actions button.staff { border-color: #feca57; box-shadow: 0 0 6px rgba(254, 202, 87, 0.4); }
.nf-who .nfw-actions button.staff:hover { background: rgba(254, 202, 87, 0.3); }
.nf-who .nfw-foot { text-align: right; padding-top: 5px; font-size: 9px; letter-spacing: 1.5px; color: rgba(127, 159, 176, 0.55); text-transform: uppercase; }
@container (max-width: 520px) {
    .nf-who .nfw-row { grid-template-columns: 30px minmax(0, 1fr) 34px 84px; }
    .nf-who .nfw-row > :nth-child(5) { display: none; }
}
@media (prefers-reduced-motion: reduce) { .nf-who.boot, .nf-who .nfw-status.active i { animation: none; } }

.nf-chat {
    --ch: #48dbfb;
    display: flex; gap: 8px; align-items: baseline; margin: 3px 0; padding: 3px 8px 3px 0; white-space: normal;
    font-family: "Consolas", "DejaVu Sans Mono", "Menlo", monospace; font-size: 13px; line-height: 1.4; color: #dff8ff;
    border-left: 2px solid var(--ch); background: linear-gradient(90deg, color-mix(in srgb, var(--ch) 12%, transparent), transparent 65%);
    animation: nfc-in 0.35s ease-out;
}
@keyframes nfc-in { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .nf-chat { animation: none; } }
.nf-chat .nfc-chan { flex: none; font-size: 9px; letter-spacing: 2px; padding: 1px 6px; color: #04101a; background: var(--ch);
    clip-path: polygon(0 0, 100% 0, calc(100% - 5px) 100%, 0 100%); padding-right: 10px; box-shadow: 0 0 8px var(--ch); }
.nf-chat .nfc-time { flex: none; font-size: 10px; color: rgba(127, 159, 176, 0.75); }
.nf-chat .nfc-body { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.nf-chat .nfc-who { white-space: nowrap; }
.nf-chat .nfc-badge { display: inline-block; width: 15px; height: 16px; line-height: 16px; text-align: center; vertical-align: -2px;
    margin-right: 5px; font-size: 7px; font-weight: bold; color: #fff;
    clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
    background: linear-gradient(160deg, hsl(var(--h), 90%, 60%), hsl(calc(var(--h) + 50), 70%, 25%)); }
.nf-chat .nfc-name { color: hsl(var(--h), 95%, 72%); font-weight: normal; }
.nf-chat .nfc-lvl { font-size: 9px; margin-left: 4px; padding: 0 4px; border-radius: 3px; vertical-align: 1px;
    color: #48dbfb; border: 1px solid rgba(72, 219, 251, 0.4); }
.nf-chat .nfc-sep { margin: 0 6px; color: var(--ch); }
.nf-chat .nfc-text.pose { font-style: italic; color: #c8e8f5; }
.nf-chat.system .nfc-text { color: rgba(200, 225, 235, 0.75); }
.nf-chat.mine { background: linear-gradient(90deg, rgba(255, 255, 255, 0.05), transparent 65%); }
.nf-chat.mention { border-left-color: #feca57; background: linear-gradient(90deg, rgba(254, 202, 87, 0.22), transparent 75%);
    box-shadow: inset 0 0 0 1px rgba(254, 202, 87, 0.25); }

/* ---------------------------------------------------------------- reload after a deploy (plugins/nfreload.js) */
#nfreload-banner { position: fixed; top: 10px; left: 50%; transform: translateX(-50%); z-index: 3000; display: flex; gap: 10px;
    align-items: center; padding: 8px 14px; border-radius: 6px; font-family: "Consolas", "DejaVu Sans Mono", monospace; font-size: 13px;
    color: #dff8ff; background: rgba(4, 10, 18, 0.96); border: 1px solid #48dbfb; box-shadow: 0 0 18px rgba(72, 219, 251, 0.45); }
#nfreload-banner[hidden] { display: none; }
#nfreload-banner button { font: inherit; font-size: 11px; padding: 3px 9px; cursor: pointer; border-radius: 4px; color: #fff;
    background: rgba(72, 219, 251, 0.15); border: 1px solid rgba(72, 219, 251, 0.6); }
#nfreload-banner button:hover { background: rgba(72, 219, 251, 0.35); }

/* ---------------------------------------------------------------- speech in the room (plugins/nflink.js, world/roomtalk.py)
   Quieter than channel chat: no tag or badge, a faint edge, the name in the speaker's color. */
.nf-say { margin: 3px 0; padding: 1px 0 1px 9px; border-left: 2px solid rgba(255, 255, 255, 0.13); white-space: normal;
    font-size: 14px; line-height: 1.45; color: #d6e6ee; overflow-wrap: anywhere; }
.nf-say .nfs-name { color: hsl(var(--h), 95%, 72%); font-weight: bold; }
.nf-say.npc { border-left-color: rgba(254, 202, 87, 0.3); }
.nf-say.npc .nfs-name { color: #feca57; }
.nf-say .nfs-verb { color: rgba(214, 230, 238, 0.6); }
.nf-say .nfs-q { color: hsl(var(--h), 70%, 60%); opacity: 0.8; }
.nf-say.npc .nfs-q { color: #feca57; }
.nf-say.speech .nfs-text { color: #f6fbfd; }
.nf-say.pose .nfs-text { font-style: italic; color: #c3d6df; }
.nf-say.mine { opacity: 0.72; }
.nf-say.mine .nfs-name { color: #9fb7c3; }

/* ---------------------------------------------------------------- the sky clock (plugins/nfclock.js) */
#nfclock { position: fixed; right: 12px; z-index: 900; width: 216px; font-family: "Consolas", "DejaVu Sans Mono", "Menlo", monospace;
    font-size: 11px; color: #dff8ff; background: rgba(4, 10, 18, 0.92); border: 1px solid rgba(72, 219, 251, 0.45);
    border-radius: 6px; box-shadow: 0 0 14px rgba(72, 219, 251, 0.15); overflow: hidden; }
#nfclock.nfc-left { right: auto; left: 12px; }
#nfclock[hidden], #nfclock [hidden] { display: none !important; }
#nfclock .nfc-head { display: flex; align-items: center; gap: 5px; padding: 3px 5px 3px 8px;
    background: linear-gradient(90deg, rgba(254, 202, 87, 0.3), rgba(12, 32, 48, 0.9)); }
#nfclock .nfc-icon { color: #feca57; width: 12px; text-align: center; }
#nfclock .nfc-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; letter-spacing: 1px; font-size: 10px; }
#nfclock .nfc-btn { flex: none; font: inherit; font-size: 11px; width: 20px; height: 18px; padding: 0; cursor: pointer; color: #9fdcef;
    background: rgba(4, 10, 18, 0.6); border: 1px solid rgba(72, 219, 251, 0.35); border-radius: 3px; }
#nfclock .nfc-btn:hover { color: #fff; border-color: #48dbfb; }
#nfclock .nfc-btn:focus-visible { outline: 2px solid #48dbfb; outline-offset: -2px; }
#nfclock .nfc-sky { display: block; cursor: pointer; margin: 0 auto; }
#nfclock .nfc-foot { padding: 2px 8px 4px; font-size: 10px; color: #9fb7c3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#nfclock.nfc-folded .nfc-body { display: none; }

/* ---------------------------------------------------------------- the party panel (plugins/nfparty.js) */
#nfparty { position: fixed; right: 12px; z-index: 900; width: 226px; font-family: "Consolas", "DejaVu Sans Mono", "Menlo", monospace;
    font-size: 12px; color: #dff8ff; background: rgba(4, 10, 18, 0.92); border: 1px solid rgba(72, 219, 251, 0.45);
    border-radius: 6px; box-shadow: 0 0 14px rgba(72, 219, 251, 0.15); overflow: hidden; }
#nfparty.nfp-left { right: auto; left: 12px; }
#nfparty[hidden], #nfparty [hidden] { display: none !important; }
#nfparty .nfp-headrow { display: flex; align-items: center; padding-right: 5px;
    background: linear-gradient(90deg, rgba(197, 108, 240, 0.35), rgba(12, 32, 48, 0.9)); }
#nfparty .nfp-head { display: flex; flex: 1; min-width: 0; gap: 6px; align-items: center; padding: 4px 8px; cursor: pointer; font: inherit;
    font-size: 10px; letter-spacing: 2.5px; color: #fff; border: 0; background: transparent; }
#nfparty .nfp-swap { flex: none; font: inherit; font-size: 11px; width: 20px; height: 18px; padding: 0; cursor: pointer; color: #9fdcef;
    background: transparent; border: 1px solid rgba(72, 219, 251, 0.3); border-radius: 3px; }
#nfparty .nfp-swap:hover { color: #fff; border-color: #48dbfb; }
#nfparty .nfp-head:focus-visible, #nfparty .nfp-swap:focus-visible { outline: 2px solid #48dbfb; outline-offset: -2px; }
#nfparty .nfp-title { flex: 1; text-align: left; text-shadow: 0 0 6px rgba(197, 108, 240, 0.9); }
#nfparty .nfp-count { color: #c56cf0; }
#nfparty .nfp-fold { width: 12px; text-align: center; color: #8fbfd3; }
#nfparty .nfp-list { padding: 4px 6px 6px; }
#nfparty .nfp-member { padding: 5px 2px 4px; border-bottom: 1px dotted rgba(72, 219, 251, 0.15); }
#nfparty .nfp-member:last-child { border-bottom: 0; }
#nfparty .nfp-member.offline { opacity: 0.45; }
#nfparty .nfp-top { display: flex; align-items: center; gap: 5px; margin-bottom: 3px; }
#nfparty .nfp-badge { flex: none; width: 17px; height: 19px; line-height: 19px; text-align: center; font-size: 8px; font-weight: bold; color: #fff;
    clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
    background: linear-gradient(160deg, hsl(var(--h), 90%, 60%), hsl(calc(var(--h) + 50), 70%, 25%)); }
#nfparty .nfp-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: hsl(var(--h), 95%, 72%); }
#nfparty .nfp-member.you .nfp-name { color: #9fb7c3; }
#nfparty .nfp-lead { color: #feca57; font-size: 11px; }
#nfparty .nfp-fight { color: #ff5c5c; font-size: 11px; animation: nfp-pulse 1s ease-in-out infinite; }
#nfparty .nfp-lvl { font-size: 9px; padding: 0 4px; border-radius: 3px; color: #48dbfb; border: 1px solid rgba(72, 219, 251, 0.4); }
#nfparty .nfp-bar { height: 4px; margin: 2px 0 0 22px; border-radius: 2px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
#nfparty .nfp-bar i { display: block; height: 100%; transition: width 0.6s ease-out; }
#nfparty .nfp-bar.health i { background: #ff5c5c; box-shadow: 0 0 5px #ff5c5c; }
#nfparty .nfp-bar.energy i { background: #48dbfb; box-shadow: 0 0 5px #48dbfb; }
#nfparty .nfp-bar.health.low i { animation: nfp-pulse 1s ease-in-out infinite; }
@keyframes nfp-pulse { 50% { opacity: 0.4; } }
#nfparty .nfp-where { margin: 3px 0 0 22px; font-size: 9px; letter-spacing: 1px; color: #7f9fb0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#nfparty .nfp-where.here { color: #2ef2a0; letter-spacing: 2px; }
#nfparty .nfp-where.off { letter-spacing: 2px; }
@media (prefers-reduced-motion: reduce) { #nfparty .nfp-fight, #nfparty .nfp-bar.health.low i { animation: none; } }

/* ---------------------------------------------------------------- unread pages (world/inbox.py): who and the score tablet */
.nf-mail { font: inherit; font-size: 10px; letter-spacing: 1px; padding: 1px 7px; cursor: pointer; border-radius: 10px; color: #04101a;
    background: #feca57; border: 0; box-shadow: 0 0 8px rgba(254, 202, 87, 0.7); animation: nf-mail-glow 1.6s ease-in-out infinite; }
.nf-mail:hover { background: #ffe08a; }
@keyframes nf-mail-glow { 50% { box-shadow: 0 0 2px rgba(254, 202, 87, 0.3); } }
@media (prefers-reduced-motion: reduce) { .nf-mail { animation: none; } }

/* ---------------------------------------------------------------- invisible staff (world/invis.py): only those who can see them get the tag */
.nf-invis-tag, .nf-who .nfw-tag.invis { font-style: normal; font-size: 8px; letter-spacing: 1.5px; padding: 1px 5px; margin-right: 5px;
    border-radius: 3px; vertical-align: 1px; color: #a29bfe; border: 1px dashed rgba(162, 155, 254, 0.7); }
.nf-who .nfw-tag.invis { margin: 0 0 0 6px; }

/* ---------------------------------------------------------------- a vehicle's manifest tablet (plugins/nfcargo.js); built on .nf-tablet */
.nf-tablet.ncg .nft-badge span { font-size: 24px; }
.nf-tablet .ncg-cap { display: flex; gap: 10px; align-items: baseline; margin: 2px 0 6px; font-size: 10px; letter-spacing: 2px; color: var(--nft-dim); }
.nf-tablet .ncg-cap b { color: #fff; font-size: 13px; letter-spacing: 1px; }
.nf-tablet .ncg-hint { margin-left: auto; font-style: italic; letter-spacing: 1px; }
.nf-tablet .ncg-none { padding: 20px 10px; text-align: center; color: var(--nft-dim); border: 1px dashed var(--nft-line); border-radius: 8px; margin-bottom: 10px; }
.nf-tablet .ncg-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; margin-bottom: 10px; }
.nf-tablet .ncg-slot { height: 64px; border-radius: 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    padding: 4px; box-sizing: border-box; text-align: center; outline: none; }
.nf-tablet .ncg-slot.empty { border: 1px dashed rgba(72, 219, 251, 0.18); color: rgba(127, 159, 176, 0.4); }
.nf-tablet .ncg-slot.full { cursor: help; border: 1px solid rgba(72, 219, 251, 0.45); background: linear-gradient(160deg, rgba(72, 219, 251, 0.14), rgba(8, 22, 34, 0.7));
    transition: transform 0.15s ease, box-shadow 0.15s ease; }
.nf-tablet .ncg-slot.full:hover, .nf-tablet .ncg-slot.full:focus { transform: translateY(-2px); box-shadow: 0 0 12px rgba(72, 219, 251, 0.45); border-color: var(--nft-cyan); }
.nf-tablet .ncg-slot i { font-style: normal; font-size: 20px; color: var(--nft-cyan); text-shadow: 0 0 8px rgba(72, 219, 251, 0.7); }
.nf-tablet .ncg-slot span { font-size: 10px; line-height: 1.15; color: var(--nft-ink); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.nf-tablet .ncg-slot.k-weapon i { color: var(--nft-red); text-shadow: 0 0 8px rgba(255, 92, 92, 0.6); }
.nf-tablet .ncg-slot.k-clothing i { color: var(--nft-green); text-shadow: 0 0 8px rgba(46, 242, 160, 0.6); }
.nf-tablet .ncg-slot.k-implant i { color: var(--nft-mag); text-shadow: 0 0 8px rgba(255, 79, 216, 0.6); }
.nf-tablet .ncg-slot.k-tech i, .nf-tablet .ncg-slot.k-part i { color: var(--nft-amber); text-shadow: 0 0 8px rgba(254, 202, 87, 0.6); }
.nf-tablet .ncg-slot.wide { grid-column: span 2; height: 70px; }
.nf-tablet .ncg-baybar { height: 8px; margin-bottom: 10px; }
.nf-tablet .ncg-baybar i { background: linear-gradient(90deg, var(--nft-cyan), var(--nft-amber)); }
.nf-tablet .ncg-ammo { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-bottom: 10px; }
.nf-tablet .ncg-cal { cursor: help; outline: none; text-align: center; padding: 8px 6px 6px; border-radius: 6px;
    border: 1px solid rgba(254, 202, 87, 0.45); background: rgba(254, 202, 87, 0.06); transition: box-shadow 0.15s ease; }
.nf-tablet .ncg-cal:hover, .nf-tablet .ncg-cal:focus { box-shadow: 0 0 12px rgba(254, 202, 87, 0.5); }
.nf-tablet .ncg-cal b { display: block; font-size: 20px; color: #fff; text-shadow: 0 0 6px rgba(254, 202, 87, 0.6); }
.nf-tablet .ncg-cal small { font-size: 9px; letter-spacing: 2px; color: var(--nft-amber); }
.nf-tablet .ncg-cal .nft-meter { margin-top: 5px; height: 4px; }
.nf-tablet .ncg-cal .nft-meter i { width: 0; background: var(--nft-amber); transition: none; }
.nf-tablet .ncg-cal.dry b { color: var(--nft-red); }
.nf-tablet .ncg-cal.spare { opacity: 0.6; }
.nf-tablet .ncg-battrow { display: flex; gap: 10px; align-items: center; padding: 6px 4px; border-top: 1px solid var(--nft-line); cursor: help; outline: none; }
.nf-tablet .ncg-battrow span { font-size: 10px; letter-spacing: 2px; color: var(--nft-dim); }
.nf-tablet .ncg-battrow .nft-meter { flex: 1; margin: 0; }
.nf-tablet .ncg-battrow .nft-meter i { background: linear-gradient(90deg, var(--nft-cyan), var(--nft-green)); transition: none; }
.nf-tablet .ncg-batt i { width: 0; }
/* the popup: springs up next to whatever you point at */
.nf-tablet .nft-screen > .ncg-pop { position: absolute; z-index: 6; width: 230px; padding: 8px 10px; border-radius: 6px; pointer-events: none;
    background: rgba(3, 10, 18, 0.97); border: 1px solid var(--nft-cyan);
    box-shadow: 0 0 18px rgba(72, 219, 251, 0.4), inset 0 0 0 1px rgba(255, 79, 216, 0.25); transform-origin: top center; }
.nf-tablet .nft-screen > .ncg-pop[hidden] { display: none; }
.nf-tablet .nft-screen > .ncg-pop.in { animation: ncg-pop 0.22s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes ncg-pop { from { opacity: 0; transform: scale(0.8) translateY(-6px); filter: brightness(2); } to { opacity: 1; transform: none; filter: none; } }
@media (prefers-reduced-motion: reduce) { .nf-tablet .nft-screen > .ncg-pop.in { animation: none; } }
.nf-tablet .ncg-pop-kind { font-size: 9px; letter-spacing: 2px; color: var(--nft-mag); }
.nf-tablet .ncg-pop-name { font-size: 14px; color: #fff; margin: 2px 0 6px; text-shadow: 0 0 6px rgba(72, 219, 251, 0.6); }
.nf-tablet .ncg-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.nf-tablet .ncg-pop-desc { margin-top: 6px; padding-top: 6px; border-top: 1px dotted var(--nft-line); color: var(--nft-dim); font-size: 11px; }

/* ---------------------------------------------------------------- a vehicle's spec sheet (plugins/nfcargo.js, nf_specs) */
.nf-tablet .nsp-state { letter-spacing: 2px; color: var(--nft-green); }
.nf-tablet .nsp-state.wrecked { color: var(--nft-red); }
.nf-tablet .nsp-state.parked { color: var(--nft-dim); }
.nf-tablet .nsp-state.flying, .nf-tablet .nsp-state.airborne { color: var(--nft-cyan); }
.nf-tablet .nsp-where { font-size: 11px; color: var(--nft-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nf-tablet .nsp-desc { margin: -4px 0 10px; color: var(--nft-dim); font-size: 11px; font-style: italic; }
.nf-tablet .nsp-gauges { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; margin-bottom: 10px; }
.nf-tablet .nsp-gauge { display: grid; grid-template-columns: 74px 1fr 64px; gap: 6px; align-items: center; }
.nf-tablet .nsp-gauge span { font-size: 9.5px; letter-spacing: 1.5px; color: var(--nft-dim); }
.nf-tablet .nsp-gauge .nft-meter { margin: 0; }
.nf-tablet .nsp-gauge b { text-align: right; font-weight: normal; color: #fff; font-size: 11px; }
.nf-tablet .nsp-gauge.hull .nft-meter i { background: var(--nft-green); box-shadow: 0 0 6px var(--nft-green); }
.nf-tablet .nsp-gauge.fuel .nft-meter i, .nf-tablet .nsp-gauge.bay .nft-meter i { background: var(--nft-amber); box-shadow: 0 0 6px var(--nft-amber); }
.nf-tablet .nsp-gauge.battery .nft-meter i, .nf-tablet .nsp-gauge.thrust .nft-meter i { background: var(--nft-cyan); box-shadow: 0 0 6px var(--nft-cyan); }
.nf-tablet .nsp-gauge.grid .nft-meter i, .nf-tablet .nsp-gauge.bw .nft-meter i { background: var(--nft-mag); box-shadow: 0 0 6px var(--nft-mag); }
.nf-tablet .nsp-gauge.low .nft-meter i { background: var(--nft-red); box-shadow: 0 0 6px var(--nft-red); animation: nft-pulse 1.1s ease-in-out infinite; }
.nf-tablet .nsp-gauge.low b { color: var(--nft-red); }
.nf-tablet .nsp-who { color: hsl(var(--h), 95%, 72%); }
.nf-tablet .nsp-note { margin-top: 4px; font-size: 10.5px; color: var(--nft-dim); font-style: italic; }
.nf-tablet .nsp-specials { display: flex; flex-wrap: wrap; gap: 6px; }
.nf-tablet .nsp-special { cursor: help; outline: none; font-size: 10px; letter-spacing: 1.5px; padding: 3px 8px; border-radius: 4px;
    color: var(--nft-amber); border: 1px solid rgba(254, 202, 87, 0.5); background: rgba(254, 202, 87, 0.07); }
.nf-tablet .nsp-special:hover, .nf-tablet .nsp-special:focus { box-shadow: 0 0 10px rgba(254, 202, 87, 0.4); }
.nf-tablet .nsp-upkeep { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.nf-tablet .nsp-upkeep .nft-tile { border-color: rgba(254, 202, 87, 0.35); background: rgba(254, 202, 87, 0.05); }
.nf-tablet .nsp-upkeep .nft-tile b { font-size: 14px; text-shadow: 0 0 6px rgba(254, 202, 87, 0.6); }
.nf-tablet .nsp-parts, .nf-tablet.nsp .nsp-gun { margin-bottom: 4px; }
.nf-tablet .nsp-part, .nf-tablet .nsp-gun { display: grid; align-items: center; gap: 8px; padding: 5px 8px; margin-bottom: 4px; border-radius: 6px;
    cursor: help; outline: none; border: 1px solid var(--nft-line); background: rgba(8, 22, 34, 0.55); }
.nf-tablet .nsp-part { grid-template-columns: 14px 1fr auto auto 76px; }
.nf-tablet .nsp-gun { grid-template-columns: 1fr auto 52px 84px; }
.nf-tablet .nsp-part:hover, .nf-tablet .nsp-part:focus, .nf-tablet .nsp-gun:hover, .nf-tablet .nsp-gun:focus {
    border-color: var(--nft-cyan); box-shadow: 0 0 10px rgba(72, 219, 251, 0.35); }
.nf-tablet .nsp-part i { font-style: normal; color: var(--nft-green); text-align: center; }
.nf-tablet .nsp-part-name, .nf-tablet .nsp-gun-name { color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nf-tablet .nsp-part small, .nf-tablet .nsp-gun small { font-size: 9px; letter-spacing: 1.5px; color: var(--nft-dim); }
.nf-tablet .nsp-part-cost { font-size: 10px; color: var(--nft-mag); }
.nf-tablet .nsp-part b, .nf-tablet .nsp-gun b { text-align: right; font-weight: normal; font-size: 10px; letter-spacing: 1.5px; color: var(--nft-green); }
.nf-tablet .nsp-part.offline i, .nf-tablet .nsp-part.offline b { color: var(--nft-amber); }
.nf-tablet .nsp-part.empty i, .nf-tablet .nsp-part.empty b, .nf-tablet .nsp-gun.dry b { color: var(--nft-red); }
.nf-tablet .nsp-gun { margin-bottom: 4px; }
.nf-tablet .nsp-gun > span:nth-child(3) { color: var(--nft-amber); text-align: right; }
.nf-tablet .nsp-gun.held { opacity: 0.6; }
.nf-tablet .nsp-gun.held b { color: var(--nft-amber); }
.nf-tablet .nsp-gun.missile b { color: var(--nft-mag); }
.nf-tablet .nsp-gauge.flares .nft-meter i { background: var(--nft-red); box-shadow: 0 0 6px var(--nft-red); }
.nf-tablet .nsp-gauge.xp .nft-meter i { background: linear-gradient(90deg, var(--nft-mag), var(--nft-cyan)); }
.nf-tablet .nsp-special.on { color: #fff; border-color: var(--nft-cyan); background: rgba(72, 219, 251, 0.2); }
@container (max-width: 480px) {
    .nf-tablet .nsp-gauges, .nf-tablet .nsp-upkeep { grid-template-columns: 1fr 1fr; }
    .nf-tablet .nsp-gauges { grid-template-columns: 1fr; }
    .nf-tablet .nsp-part { grid-template-columns: 14px 1fr 76px; }
    .nf-tablet .nsp-part small, .nf-tablet .nsp-part-cost { display: none; }
}

/* ---------------------------------------------------------------- who's aboard a vehicle (plugins/nfcargo.js, nf_crew) */
.nf-crew { width: min(520px, calc(100% - 16px)); margin: 8px auto 12px; padding: 8px 12px 10px; box-sizing: border-box; white-space: normal;
    font-family: "Consolas", "DejaVu Sans Mono", "Menlo", monospace; font-size: 12px; color: #dff8ff;
    background: linear-gradient(rgba(72, 219, 251, 0.05) 1px, transparent 1px) 0 0 / 100% 18px, rgba(4, 10, 18, 0.94);
    border: 1px solid rgba(72, 219, 251, 0.5); clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
    animation: nfw-in 0.5s ease-out both; container-type: inline-size; }
@media (prefers-reduced-motion: reduce) { .nf-crew { animation: none; } }
.nf-crew .ncr-head { display: flex; gap: 10px; font-size: 10px; letter-spacing: 2px; padding-bottom: 5px; margin-bottom: 6px; border-bottom: 1px solid rgba(72, 219, 251, 0.22); }
.nf-crew .ncr-brand { flex: 1; color: #48dbfb; text-shadow: 0 0 6px rgba(72, 219, 251, 0.7); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nf-crew .ncr-state { color: #feca57; }
.nf-crew .ncr-body-row { display: flex; gap: 12px; align-items: center; }
.nf-crew .ncr-pic { flex: none; width: 150px; height: auto; }
.nf-crew .ncr-body { fill: rgba(72, 219, 251, 0.06); stroke: rgba(72, 219, 251, 0.75); stroke-width: 1.6; filter: drop-shadow(0 0 4px rgba(72, 219, 251, 0.5)); }
.nf-crew .ncr-fan { fill: rgba(72, 219, 251, 0.12); stroke-dasharray: 3 3; }
.nf-crew .ncr-wheel { fill: rgba(127, 159, 176, 0.25); }
.nf-crew .ncr-glass { fill: none; stroke: rgba(255, 79, 216, 0.8); }
.nf-crew .ncr-seat circle { fill: rgba(6, 21, 34, 0.9); stroke: rgba(127, 159, 176, 0.5); stroke-dasharray: 2 2; }
.nf-crew .ncr-seat text { font-size: 9px; font-weight: bold; fill: rgba(127, 159, 176, 0.7); font-family: inherit; }
.nf-crew .ncr-seat.taken circle { fill: hsl(var(--h), 70%, 28%); stroke: hsl(var(--h), 95%, 65%); stroke-dasharray: none;
    filter: drop-shadow(0 0 4px hsl(var(--h), 95%, 60%)); }
.nf-crew .ncr-seat.taken text { fill: #fff; }
.nf-crew .ncr-seat.you circle { stroke-width: 2.2; }
.nf-crew .ncr-list { flex: 1; min-width: 0; }
.nf-crew .ncr-row { display: flex; gap: 8px; align-items: center; padding: 4px 2px; border-bottom: 1px dotted rgba(72, 219, 251, 0.12); }
.nf-crew .ncr-row.you { background: linear-gradient(90deg, rgba(255, 79, 216, 0.1), transparent 70%); }
.nf-crew .ncr-badge { flex: none; width: 22px; height: 24px; line-height: 24px; text-align: center; font-size: 9px; font-weight: bold; color: #fff;
    clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
    background: linear-gradient(160deg, hsl(var(--h), 90%, 60%), hsl(calc(var(--h) + 50), 70%, 25%)); }
.nf-crew .ncr-badge.free { background: rgba(127, 159, 176, 0.25); color: rgba(223, 248, 255, 0.6); }
.nf-crew .ncr-seatname { flex: none; width: 76px; font-size: 9px; letter-spacing: 1.5px; color: #ff4fd8; }
.nf-crew .ncr-row b { font-weight: normal; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nf-crew .ncr-row b.ncr-empty { color: rgba(127, 159, 176, 0.6); font-style: italic; }
@container (max-width: 380px) { .nf-crew .ncr-body-row { flex-direction: column; } }
.nf-tablet .ncg-access { font-size: 9px; letter-spacing: 1.5px; padding: 1px 6px; border-radius: 3px; border: 1px solid rgba(127, 159, 176, 0.5); color: var(--nft-dim); }
.nf-tablet .ncg-access.view { border-color: #feca57; color: #feca57; }

/* ---------------------------------------------------------------- the world map tablet (plugins/nfworldmap.js) */
.nf-tablet.nwm { width: min(720px, calc(100% - 16px)); }
.nwm .nwm-seen { color: var(--nft-amber); }
.nwm .nwm-stage { position: relative; margin-top: 8px; border-radius: 8px; overflow: hidden; height: 300px;
    box-shadow: inset 0 0 0 1px var(--nft-line), 0 0 18px rgba(72, 219, 251, 0.08); background: #03070c; }
.nwm .nwm-map { display: block; cursor: grab; touch-action: none; }
.nwm .nwm-map:active { cursor: grabbing; }
.nwm .nwm-tools { position: absolute; top: 8px; right: 8px; display: flex; flex-direction: column; gap: 4px; }
.nwm .nwm-btn { width: 26px; height: 26px; padding: 0; border-radius: 6px; font: bold 14px/1 Consolas, monospace;
    color: var(--nft-cyan); background: rgba(3, 7, 12, 0.85); border: 1px solid var(--nft-line); cursor: pointer; }
.nwm .nwm-btn:hover { border-color: var(--nft-cyan); box-shadow: 0 0 8px rgba(72, 219, 251, 0.35); }
.nwm .nwm-readout { position: absolute; left: 8px; bottom: 8px; right: 44px; padding: 3px 8px; border-radius: 4px;
    font-size: 10px; letter-spacing: 1.2px; color: var(--nft-cyan); background: rgba(3, 7, 12, 0.85);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
.nwm .nwm-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 8px; font-size: 10.5px; color: var(--nft-dim); }
.nwm .nwm-key { display: inline-flex; align-items: center; gap: 5px; }
.nwm .nwm-key i { width: 10px; height: 10px; border-radius: 2px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.4); }
.nwm .nwm-key b { font-weight: normal; }
.nwm .nwm-key.you i { border-radius: 50%; background: #2ef2a0; box-shadow: 0 0 6px #2ef2a0; }
.nwm .nwm-key.car i { width: 8px; height: 8px; background: #ff5c5c; transform: rotate(45deg); border-radius: 1px; }
.nwm .nwm-key.mate i { border-radius: 50%; box-shadow: 0 0 0 1.5px #03070c; }
.nwm .nwm-key.pad i, .nwm .nwm-key.flag i { width: auto; height: auto; padding: 0 3px; font-style: normal; font-size: 9px; line-height: 12px;
    border-radius: 2px; box-shadow: none; }
.nwm .nwm-key.pad i { color: #48dbfb; border: 1px solid #48dbfb; background: rgba(72, 219, 251, 0.2); }
.nwm .nwm-key.flag i { color: #ff4fd8; font-size: 11px; }
/* the click menu: mark a square, fly to a pad */
.nwm .nwm-menu { position: absolute; z-index: 6; min-width: 210px; max-width: 280px; padding: 6px; border-radius: 8px; box-sizing: border-box;
    background: rgba(3, 10, 18, 0.97); border: 1px solid var(--nft-cyan);
    box-shadow: 0 0 16px rgba(72, 219, 251, 0.35), inset 0 0 0 1px rgba(255, 79, 216, 0.25), 0 12px 28px rgba(0, 0, 0, 0.6);
    animation: ncg-pop 0.18s cubic-bezier(.2, 1.4, .4, 1) both; }
.nwm .nwm-menu[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .nwm .nwm-menu { animation: none; } }
.nwm .nwm-menu-head { font-size: 9.5px; letter-spacing: 1.5px; color: var(--nft-dim); padding: 0 4px 5px; border-bottom: 1px solid var(--nft-line); margin-bottom: 4px; }
.nwm .nwm-opt { display: block; width: 100%; text-align: left; font: inherit; padding: 5px 7px; margin: 2px 0; border-radius: 5px; cursor: pointer;
    color: var(--nft-ink); background: rgba(72, 219, 251, 0.05); border: 1px solid transparent; }
.nwm .nwm-opt b { display: block; font-weight: normal; font-size: 12px; color: #fff; }
.nwm .nwm-opt small { display: block; font-size: 10px; color: var(--nft-dim); }
.nwm .nwm-opt:hover:not(:disabled), .nwm .nwm-opt:focus-visible { border-color: var(--nft-cyan); background: rgba(72, 219, 251, 0.15); outline: none; }
.nwm .nwm-opt.off { cursor: not-allowed; opacity: 0.5; }
.nwm .nwm-menu-why { font-size: 10.5px; color: #feca57; padding: 2px 7px 4px; }
.nwm-blocked { margin: 6px 8px; color: #feca57; font-family: Consolas, "DejaVu Sans Mono", monospace; font-size: 12px; }
/* popped out (⧉): the map fills a window of its own */
.nf-tablet.nwm.nwm-pop { width: 100%; height: 100%; margin: 0; }
.nwm-pop .nft-screen { height: 100%; box-sizing: border-box; border-radius: 0; display: flex; flex-direction: column; }
.nwm-pop .nwm-stage { flex: 1 1 auto; min-height: 0; height: auto; }
.nwm-pop .nwm-legend, .nwm-pop .nft-foot { flex: none; }
/* a party member's dossier: pointing at their dot (the same card as the builder's world map) */
.nwm .nwm-dossier { position: absolute; z-index: 5; width: 290px; max-width: calc(100% - 12px); padding: 9px 11px 10px; border-radius: 8px;
    pointer-events: none; font-size: 11.5px; line-height: 1.35; box-sizing: border-box;
    background: rgba(3, 10, 18, 0.97); border: 1px solid var(--nft-cyan);
    box-shadow: 0 0 16px rgba(72, 219, 251, 0.35), inset 0 0 0 1px rgba(255, 79, 216, 0.25), 0 12px 28px rgba(0, 0, 0, 0.6);
    animation: ncg-pop 0.2s cubic-bezier(.2, 1.4, .4, 1) both; }
.nwm .nwm-dossier[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .nwm .nwm-dossier { animation: none; } }
.nwm .nwm-dz-head { display: flex; gap: 10px; align-items: center; margin-bottom: 7px; }
.nwm .nwm-dz-badge { flex: none; width: 38px; height: 43px; display: grid; place-items: center;
    clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
    background: linear-gradient(160deg, hsl(var(--h), 90%, 60%), hsl(calc(var(--h) + 50), 70%, 25%)); }
.nwm .nwm-dz-badge span { font-size: 14px; font-weight: bold; color: #fff; text-shadow: 0 0 8px rgba(255, 255, 255, 0.7); }
.nwm .nwm-dz-id { flex: 1; min-width: 0; }
.nwm .nwm-dz-name { font-size: 15px; font-weight: bold; letter-spacing: 1.5px; color: hsl(var(--h), 95%, 72%);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-shadow: 0 0 10px hsla(var(--h), 95%, 60%, 0.6); }
.nwm .nwm-dz-sub { font-size: 10px; letter-spacing: 2px; color: var(--nft-mag); }
.nwm .nwm-dz-where { font-size: 10.5px; color: var(--nft-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nwm .nwm-dz-meter { display: grid; grid-template-columns: 66px 1fr auto; gap: 6px; align-items: center; margin: 3px 0; }
.nwm .nwm-dz-meter > span:first-child { font-size: 9.5px; letter-spacing: 1.5px; color: var(--nft-dim); }
.nwm .nwm-dz-bar { height: 6px; border-radius: 3px; background: rgba(72, 219, 251, 0.1); overflow: hidden; box-shadow: inset 0 0 0 1px var(--nft-line); }
.nwm .nwm-dz-bar i { display: block; height: 100%; background: var(--nft-cyan); box-shadow: 0 0 6px var(--nft-cyan); }
.nwm .nwm-dz-meter.health i, .nwm .nwm-dz-meter.hull i { background: var(--nft-green); box-shadow: 0 0 6px var(--nft-green); }
.nwm .nwm-dz-meter.fuel i, .nwm .nwm-dz-meter.ammo i { background: var(--nft-amber); box-shadow: 0 0 6px var(--nft-amber); }
.nwm .nwm-dz-meter.low:not(.ammo) i { background: var(--nft-red); box-shadow: 0 0 6px var(--nft-red); }
.nwm .nwm-dz-meter b { font-weight: normal; font-size: 10.5px; min-width: 50px; text-align: right; color: #fff; }
.nwm .nwm-dz-section { margin: 8px 0 4px; font-size: 9.5px; letter-spacing: 2px; color: var(--nft-cyan); border-bottom: 1px solid var(--nft-line); padding-bottom: 2px; }
.nwm .nwm-dz-dim { color: var(--nft-dim); margin: 2px 0; }
.nwm .nwm-dz-chips { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.nwm .nwm-dz-vname { font-size: 13px; color: #fff; margin-right: 2px; text-shadow: 0 0 6px rgba(72, 219, 251, 0.6); }
.nwm .nwm-dz-tag { font-size: 9.5px; letter-spacing: 1px; padding: 1px 6px; border-radius: 3px; border: 1px solid var(--nft-line); color: var(--nft-dim); }
.nwm .nwm-dz-tag.who { color: hsl(var(--h), 95%, 72%); border-color: hsla(var(--h), 95%, 65%, 0.45); letter-spacing: 0; font-size: 10.5px; }
.nwm .nwm-dz-tag.role { color: var(--nft-mag); border-color: rgba(255, 79, 216, 0.5); }
.nwm .nwm-dz-tag.role.pilot { color: var(--nft-green); border-color: rgba(46, 242, 160, 0.5); }
.nwm .nwm-dz-tag.air { color: var(--nft-cyan); border-color: rgba(72, 219, 251, 0.5); }
.nwm .nwm-dz-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 6px 0 4px; }
.nwm .nwm-dz-stat { padding: 3px 4px; border: 1px solid var(--nft-line); border-radius: 4px; text-align: center; }
.nwm .nwm-dz-stat span { display: block; font-size: 8.5px; letter-spacing: 1px; color: var(--nft-dim); }
.nwm .nwm-dz-stat b { font-size: 13px; color: #fff; font-weight: normal; }
.nwm .nwm-dz-gun { display: flex; justify-content: space-between; gap: 8px; padding: 1px 0; }
.nwm .nwm-dz-gun small { color: var(--nft-dim); font-size: 10.5px; white-space: nowrap; }
.nwm .nwm-dz-warn { margin-top: 4px; color: var(--nft-amber); font-size: 10.5px; }

/* ---------------------------------------------------------------- the shop window (plugins/nfshop.js, nf_shop) */
.nf-tablet.nf-shop { position: fixed; z-index: 60; left: 50%; top: 50%; transform: translate(-50%, -50%); margin: 0;
    width: min(860px, calc(100vw - 16px)); max-height: calc(100vh - 16px); }
.nf-tablet.nf-shop.boot { animation: nsh-rise 0.45s cubic-bezier(.2, .9, .3, 1.1) both; }
@keyframes nsh-rise { from { opacity: 0; transform: translate(-50%, -46%) scale(0.95); } to { opacity: 1; transform: translate(-50%, -50%); } }
@media (prefers-reduced-motion: reduce) { .nf-tablet.nf-shop.boot { animation: none; } }
.nf-shop .nft-screen { display: flex; flex-direction: column; max-height: calc(100vh - 60px); }
.nf-shop .nsh-credits { margin-left: auto; letter-spacing: 1px; }
.nf-shop .nsh-credits b { color: var(--nft-amber); text-shadow: 0 0 6px rgba(254, 202, 87, 0.6); }
.nf-shop .nsh-x { font: inherit; font-size: 13px; line-height: 1; padding: 2px 6px; margin-left: 10px; cursor: pointer;
    color: var(--nft-dim); background: none; border: 1px solid var(--nft-line); border-radius: 4px; }
.nf-shop .nsh-x:hover { color: #fff; border-color: var(--nft-red); }
.nf-shop .nsh-vendor { font-size: 10px; letter-spacing: 3px; color: var(--nft-mag); margin: 0 0 8px; }
.nf-shop .nsh-modes { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 8px; }
.nf-shop .nsh-mode { font: inherit; font-size: 10px; letter-spacing: 2px; padding: 4px 12px; border-radius: 4px; cursor: pointer;
    color: var(--nft-dim); background: rgba(72, 219, 251, 0.04); border: 1px solid var(--nft-line); }
.nf-shop .nsh-mode:hover { color: var(--nft-ink); }
.nf-shop .nsh-mode.nsh-junk { margin-left: auto; color: #feca57; border-color: rgba(254, 202, 87, 0.5); }
.nf-shop .nsh-mode.nsh-junk:disabled { opacity: 0.6; cursor: default; }
.nf-shop .nsh-mode.on { color: #fff; border-color: var(--nft-cyan); background: rgba(72, 219, 251, 0.2); }
.nf-shop .nsh-mode:focus-visible { outline: 2px solid var(--nft-cyan); outline-offset: 1px; }
.nf-shop .nsh-buy.sell { color: #1a1204; background: var(--nft-amber); border-color: var(--nft-amber); box-shadow: 0 0 12px rgba(254, 202, 87, 0.4); }
.nf-shop .nsh-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 12px; min-height: 0; flex: 1; margin-bottom: 8px; }
.nf-shop .nsh-list { overflow-y: auto; max-height: min(460px, calc(100vh - 210px)); display: flex; flex-direction: column; gap: 3px;
    padding-right: 4px; scrollbar-width: thin; }
.nf-shop .nsh-row { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 8px; align-items: center; text-align: left;
    font: inherit; font-size: 12px; padding: 6px 8px; border-radius: 6px; cursor: pointer; color: var(--nft-ink);
    background: rgba(8, 22, 34, 0.55); border: 1px solid var(--nft-line); }
.nf-shop .nsh-row:hover, .nf-shop .nsh-row:focus-visible { border-color: var(--nft-cyan); box-shadow: 0 0 10px rgba(72, 219, 251, 0.35); outline: none; }
.nf-shop .nsh-row.on { border-color: var(--nft-mag); background: linear-gradient(90deg, rgba(255, 79, 216, 0.16), rgba(8, 22, 34, 0.55)); }
.nf-shop .nsh-row i { font-style: normal; font-size: 16px; text-align: center; color: var(--nft-cyan); }
.nf-shop .nsh-row.k-weapon i { color: var(--nft-red); } .nf-shop .nsh-row.k-clothing i { color: var(--nft-green); }
.nf-shop .nsh-row.k-implant i { color: var(--nft-mag); } .nf-shop .nsh-row.k-part i, .nf-shop .nsh-row.k-tech i { color: var(--nft-amber); }
.nf-shop .nsh-row-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #fff; }
.nf-shop .nsh-row b { font-weight: normal; color: var(--nft-amber); white-space: nowrap; }
.nf-shop .nsh-row.short b { color: var(--nft-red); }
.nf-shop .nsh-row.short .nsh-row-name { color: var(--nft-dim); }
.nf-shop .nsh-detail { overflow-y: auto; max-height: min(460px, calc(100vh - 210px)); padding: 10px 12px; border-radius: 8px;
    border: 1px solid var(--nft-line); background: rgba(8, 22, 34, 0.55); scrollbar-width: thin; }
.nf-shop .nsh-pick { height: 100%; min-height: 160px; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 8px; color: var(--nft-dim); text-align: center; font-size: 12px; }
.nf-shop .nsh-pick i { font-style: normal; font-size: 28px; color: var(--nft-cyan); opacity: 0.6; }
.nf-shop .nsh-pic { height: 170px; display: grid; place-items: center; margin-bottom: 10px; border-radius: 8px; overflow: hidden;
    background: radial-gradient(ellipse at 50% 40%, rgba(72, 219, 251, 0.18), rgba(3, 7, 12, 0.9) 70%);
    box-shadow: inset 0 0 0 1px var(--nft-line); }
.nf-shop .nsh-pic img { max-width: 100%; max-height: 100%; object-fit: contain; }
.nf-shop .nsh-pic i { font-style: normal; font-size: 64px; color: var(--nft-cyan); text-shadow: 0 0 18px rgba(72, 219, 251, 0.7); }
.nf-shop .nsh-pic.k-weapon i { color: var(--nft-red); text-shadow: 0 0 18px rgba(255, 92, 92, 0.6); }
.nf-shop .nsh-pic.k-clothing i { color: var(--nft-green); text-shadow: 0 0 18px rgba(46, 242, 160, 0.6); }
.nf-shop .nsh-pic.k-implant i { color: var(--nft-mag); text-shadow: 0 0 18px rgba(255, 79, 216, 0.6); }
.nf-shop .nsh-kind { font-size: 9.5px; letter-spacing: 2px; color: var(--nft-mag); }
.nf-shop .nsh-name { font-size: 18px; font-weight: bold; color: #fff; margin: 2px 0; text-shadow: 0 0 8px rgba(72, 219, 251, 0.6); }
.nf-shop .nsh-price { font-size: 15px; color: var(--nft-amber); margin-bottom: 8px; }
.nf-shop .nsh-price.short { color: var(--nft-red); }
.nf-shop .nsh-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 5px; margin-bottom: 8px; }
.nf-shop .nsh-stat { padding: 4px 6px; border-radius: 5px; border: 1px solid var(--nft-line); background: rgba(72, 219, 251, 0.05); }
.nf-shop .nsh-stat small { display: block; font-size: 8.5px; letter-spacing: 1.5px; color: var(--nft-dim); }
.nf-shop .nsh-stat b { font-weight: normal; color: #fff; font-size: 12.5px; }
.nf-shop .nsh-stat.up b { color: var(--nft-green); } .nf-shop .nsh-stat.down b { color: var(--nft-red); }
.nf-shop .nsh-stat em { display: block; font-style: normal; font-size: 9px; color: var(--nft-dim); margin-top: 1px; }
.nf-shop .nsh-stat.better { border-color: rgba(46, 242, 160, 0.6); background: rgba(46, 242, 160, 0.1); }
.nf-shop .nsh-stat.better b { color: var(--nft-green); }
.nf-shop .nsh-stat.better b::before { content: "▲ "; font-size: 9px; }
.nf-shop .nsh-stat.worse { border-color: rgba(255, 92, 92, 0.6); background: rgba(255, 92, 92, 0.1); }
.nf-shop .nsh-stat.worse b { color: var(--nft-red); }
.nf-shop .nsh-stat.worse b::before { content: "▼ "; font-size: 9px; }
.nf-shop .nsh-stats.mine .nsh-stat { opacity: 0.85; }
.nf-shop .nsh-legend { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 10px; letter-spacing: 1px; color: var(--nft-dim); margin-bottom: 5px; }
.nf-shop .nsh-legend .better { color: var(--nft-green); } .nf-shop .nsh-legend .worse { color: var(--nft-red); }
.nf-shop .nsh-mine { margin: 0 0 8px; padding: 6px 8px 2px; border-radius: 6px; border: 1px dashed var(--nft-line); }
.nf-shop .nsh-mine-name { font-size: 13px; color: var(--nft-ink); margin: 2px 0 5px; }
.nf-shop .nsh-desc { margin: 0 0 8px; color: var(--nft-dim); font-size: 12px; line-height: 1.45; }
.nf-shop .nsh-warn { margin-bottom: 8px; font-size: 11px; color: var(--nft-amber); }
.nf-shop .nsh-actions { display: flex; gap: 8px; }
.nf-shop .nsh-buy, .nf-shop .nsh-cancel { font: inherit; font-size: 11px; letter-spacing: 2px; padding: 7px 14px; border-radius: 6px; cursor: pointer; }
.nf-shop .nsh-buy { flex: 1; color: #04120b; background: var(--nft-green); border: 1px solid var(--nft-green); font-weight: bold;
    box-shadow: 0 0 12px rgba(46, 242, 160, 0.4); }
.nf-shop .nsh-buy:hover:not(:disabled) { filter: brightness(1.15); }
.nf-shop .nsh-buy:disabled { cursor: not-allowed; opacity: 0.4; box-shadow: none; }
.nf-shop .nsh-cancel { color: var(--nft-ink); background: transparent; border: 1px solid var(--nft-line); }
.nf-shop .nsh-qty { width: 56px; flex: none; font: inherit; font-size: 13px; text-align: center; padding: 5px 4px; border-radius: 6px;
    color: #fff; background: rgba(3, 7, 12, 0.85); border: 1px solid var(--nft-line); }
.nf-shop .nsh-qty:focus-visible { outline: 2px solid var(--nft-cyan); outline-offset: 1px; }
.nf-shop .nsh-cancel:hover { border-color: var(--nft-red); color: #fff; }
.nf-shop .nsh-buy:focus-visible, .nf-shop .nsh-cancel:focus-visible, .nf-shop .nsh-x:focus-visible { outline: 2px solid var(--nft-cyan); outline-offset: 2px; }
.nf-shop .nft-screen > .nsh-tip { position: absolute; z-index: 5; width: 220px; padding: 8px 10px; border-radius: 6px; pointer-events: none;
    background: rgba(3, 10, 18, 0.97); border: 1px solid var(--nft-cyan);
    box-shadow: 0 0 16px rgba(72, 219, 251, 0.35), inset 0 0 0 1px rgba(255, 79, 216, 0.25); }
.nf-shop .nft-screen > .nsh-tip[hidden] { display: none; }
.nf-shop .nsh-tip-name { font-size: 13px; color: #fff; margin: 2px 0 4px; }
.nf-shop .nsh-tip-sum { font-size: 11px; color: var(--nft-ink); }
.nf-shop .nsh-tip-price { margin-top: 4px; font-size: 11px; color: var(--nft-amber); }
@media (max-width: 640px) {
    .nf-shop .nsh-body { grid-template-columns: 1fr; }
    .nf-shop .nsh-list { max-height: 34vh; }
    .nf-shop .nft-screen > .nsh-tip { display: none; }
}

/* ---------------------------------------------------------------- the runner deck (plugins/nfdeck.js) */
#nfdeck { position: fixed; right: 12px; z-index: 880; width: 236px; user-select: none;
    font: 12px/1.3 "Consolas", "DejaVu Sans Mono", "Menlo", monospace; color: #dff8ff;
    background: linear-gradient(rgba(72, 219, 251, 0.04) 1px, transparent 1px) 0 0 / 100% 18px, rgba(4, 9, 16, 0.93);
    border: 1px solid rgba(72, 219, 251, 0.45); box-shadow: 0 4px 16px rgba(0, 0, 0, 0.55), inset 0 0 18px rgba(72, 219, 251, 0.07);
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px)); }
#nfdeck.ndk-left { right: auto; left: 12px; }
#nfdeck[hidden], #nfdeck [hidden] { display: none !important; }
#nfdeck .ndk-head { display: flex; gap: 4px; align-items: center; padding: 4px 6px 4px 9px;
    background: linear-gradient(90deg, rgba(255, 79, 216, 0.28), rgba(12, 32, 48, 0.9)); }
#nfdeck .ndk-title { flex: 1; font-size: 10px; letter-spacing: 2px; color: #fff; text-shadow: 0 0 6px rgba(255, 79, 216, 0.8);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#nfdeck .ndk-head button { font: inherit; font-size: 11px; width: 20px; height: 18px; padding: 0; cursor: pointer; color: #9fdcef;
    background: transparent; border: 1px solid rgba(72, 219, 251, 0.3); border-radius: 3px; }
#nfdeck .ndk-head button:hover { color: #fff; border-color: #48dbfb; }
#nfdeck .ndk-body { display: flex; flex-direction: column; gap: 5px; padding: 7px 9px 8px; }
#nfdeck.ndk-folded .ndk-body { display: none; }
#nfdeck .ndk-bar { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 6px; align-items: center; }
#nfdeck .ndk-bar b { font-size: 10px; letter-spacing: 1px; color: #7f9fb0; font-weight: normal; }
#nfdeck .ndk-track { height: 8px; background: rgba(127, 159, 176, 0.18); border-radius: 2px; overflow: hidden; }
#nfdeck .ndk-fill { display: block; height: 100%; transition: width 0.4s ease; box-shadow: 0 0 6px currentColor; }
#nfdeck .ndk-fill.good { background: #2ef2a0; color: #2ef2a0; } #nfdeck .ndk-fill.warn { background: #feca57; color: #feca57; }
#nfdeck .ndk-fill.bad { background: #ff5c6c; color: #ff5c6c; } #nfdeck .ndk-fill.energy { background: #48dbfb; color: #48dbfb; }
#nfdeck .ndk-fill.load { background: #c56cf0; color: #c56cf0; } #nfdeck .ndk-fill.foe { background: #ff5c6c; color: #ff5c6c; }
#nfdeck .ndk-num { font-size: 10px; color: #b8d4e0; min-width: 52px; text-align: right; }
#nfdeck .ndk-credits { display: flex; justify-content: space-between; font-size: 10px; letter-spacing: 1px; color: #7f9fb0; }
#nfdeck .ndk-credits b { color: #feca57; font-weight: normal; letter-spacing: 0; font-size: 12px; }
#nfdeck .ndk-fx { display: flex; flex-wrap: wrap; gap: 4px; }
#nfdeck .ndk-chip { font-size: 10px; padding: 1px 5px; border-radius: 3px; color: #feca57; border: 1px solid rgba(254, 202, 87, 0.5);
    background: rgba(254, 202, 87, 0.08); cursor: help; }
#nfdeck .ndk-chip.ending { color: #ff8a5c; border-color: rgba(255, 138, 92, 0.7); animation: ndk-blink 1s steps(2) infinite; }
@keyframes ndk-blink { 50% { opacity: 0.45; } }
#nfdeck .ndk-tag { font-size: 9px; letter-spacing: 1.5px; padding: 0 4px; margin-right: 5px; border-radius: 2px;
    color: #04090f; background: #48dbfb; }
#nfdeck .ndk-job { display: block; width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; padding: 5px 6px;
    background: rgba(72, 219, 251, 0.06); border: 1px solid rgba(72, 219, 251, 0.2); border-radius: 3px; }
#nfdeck .ndk-job:hover { border-color: #48dbfb; }
#nfdeck .ndk-job b { font-weight: normal; color: #fff; }
#nfdeck .ndk-job .ndk-step { display: block; margin-top: 2px; font-size: 11px; color: #b8d4e0; }
#nfdeck .ndk-job small { display: block; font-size: 9px; color: #7f9fb0; margin-top: 1px; }
#nfdeck .ndk-fight { padding: 5px 6px; border: 1px solid rgba(255, 92, 108, 0.45); border-radius: 3px; background: rgba(255, 92, 108, 0.07); }
#nfdeck .ndk-fight.boss { border-color: #ff4fd8; background: rgba(255, 79, 216, 0.1); }
#nfdeck .ndk-fight .ndk-tag { background: #ff5c6c; } #nfdeck .ndk-fight.boss .ndk-tag { background: #ff4fd8; }
#nfdeck .ndk-foe { display: flex; align-items: baseline; gap: 4px; margin-bottom: 4px; }
#nfdeck .ndk-foe b { flex: 1; font-weight: normal; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#nfdeck .ndk-foe small { color: #7f9fb0; font-size: 10px; }
#nfdeck .ndk-fight .ndk-bar { grid-template-columns: 0 minmax(0, 1fr) auto; }
#nfdeck .ndk-actions { display: flex; gap: 5px; }
#nfdeck .ndk-actions button { flex: 1; font: inherit; font-size: 10px; letter-spacing: 1.5px; padding: 4px 0; cursor: pointer; color: #fff;
    background: rgba(4, 10, 18, 0.95); border: 1px solid #48dbfb; border-radius: 3px; box-shadow: 0 0 6px rgba(72, 219, 251, 0.35); }
#nfdeck .ndk-actions button:hover { background: rgba(72, 219, 251, 0.25); }
#nfdeck .ndk-actions button.danger { border-color: #ff5c6c; box-shadow: 0 0 6px rgba(255, 92, 108, 0.4); }
#nfdeck .ndk-actions button.danger:hover { background: rgba(255, 92, 108, 0.25); }
#nfdeck .ndk-actions button.ally { border-color: #2ef2a0; box-shadow: 0 0 6px rgba(46, 242, 160, 0.35); }
#nfdeck .ndk-menu { position: absolute; left: 9px; right: 9px; z-index: 2; display: flex; flex-direction: column; gap: 2px; padding: 4px;
    background: rgba(4, 9, 16, 0.98); border: 1px solid #feca57; border-radius: 4px; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6); }
#nfdeck .ndk-menu button { text-align: left; font: inherit; color: #fff; cursor: pointer; padding: 4px 6px; background: transparent;
    border: 0; border-radius: 3px; }
#nfdeck .ndk-menu button:hover { background: rgba(254, 202, 87, 0.15); }
#nfdeck .ndk-menu small { display: block; font-size: 10px; color: #b8d4e0; }
@media (prefers-reduced-motion: reduce) { #nfdeck .ndk-fill { transition: none; } #nfdeck .ndk-chip.ending { animation: none; } }

/* ---------------------------------------------------------------- the inventory window (plugins/nfpack.js)
   It's a shop window (.nf-shop) too, for the rows, details and buttons; these are its own parts. */
.nf-tablet.nf-shop.nf-pack { width: min(1000px, calc(100vw - 16px)); }
.nf-pack .npk-load { display: grid; grid-template-columns: auto 1fr auto auto; gap: 8px; align-items: center; margin: 0 0 8px; cursor: help; }
.nf-pack .npk-load small { font-size: 9.5px; letter-spacing: 2px; color: var(--nft-dim); }
.nf-pack .npk-load b { font-weight: normal; color: #fff; font-size: 12px; }
.nf-pack .npk-bar { height: 7px; border-radius: 4px; background: rgba(72, 219, 251, 0.12); overflow: hidden; }
.nf-pack .npk-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--nft-green), var(--nft-cyan));
    box-shadow: 0 0 8px rgba(72, 219, 251, 0.6); transition: width 0.4s ease-out; }
.nf-pack .npk-load.high .npk-bar i { background: var(--nft-amber); }
.nf-pack .npk-load.over .npk-bar i { background: var(--nft-red); }
.nf-pack .npk-load.over b { color: var(--nft-red); }
.nf-pack .npk-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.1fr); gap: 12px;
    min-height: 0; flex: 1; margin-bottom: 8px; }
.nf-pack .npk-col { display: flex; flex-direction: column; min-height: 0; padding: 4px; border-radius: 8px; border: 1px dashed transparent; }
.nf-pack.dragging .npk-col, .nf-pack.dragging .npk-slot { border-color: var(--nft-line); }
.nf-pack .npk-col.over, .nf-pack .npk-slot.over { border-color: var(--nft-mag) !important; background: rgba(255, 79, 216, 0.1); }
.nf-pack .npk-col-head { margin: 2px 0 6px; }
.nf-pack .npk-list { flex: 1; }
.nf-pack .npk-group { display: flex; justify-content: space-between; align-items: baseline; margin: 8px 0 3px; padding: 0 2px 2px;
    font-size: 9px; letter-spacing: 1.8px; color: var(--nft-amber); border-bottom: 1px solid var(--nft-line); }
.nf-pack .npk-group:first-child { margin-top: 0; }
.nf-pack .npk-group small { color: var(--nft-dim); letter-spacing: 0; font-size: 10px; }
.nf-pack .npk-cats { display: inline-flex; align-items: center; gap: 4px; margin-left: 12px; font-size: 9.5px; letter-spacing: 1.5px;
    color: var(--nft-dim); cursor: pointer; white-space: nowrap; }
.nf-pack .npk-cats input { accent-color: var(--nft-cyan); cursor: pointer; }
.nf-pack .nsh-row b.npk-w { color: var(--nft-dim); font-size: 11px; }
.nf-pack .nsh-row[draggable="true"] { cursor: grab; }
.nf-pack .npk-body { overflow-y: auto; max-height: min(460px, calc(100vh - 230px)); scrollbar-width: thin; }
.nf-pack .npk-slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; margin-bottom: 10px; }
.nf-pack .npk-port { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nf-pack .npk-slot { font: inherit; text-align: left; padding: 5px 6px; min-height: 44px; border-radius: 6px; cursor: default;
    color: var(--nft-dim); background: rgba(8, 22, 34, 0.55); border: 1px solid var(--nft-line); }
.nf-pack .npk-slot small { display: block; font-size: 8.5px; letter-spacing: 1.5px; color: var(--nft-dim); }
.nf-pack .npk-slot span { display: block; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nf-pack .npk-slot.full { cursor: grab; color: #fff; border-color: rgba(46, 242, 160, 0.45); }
.nf-pack .npk-slot.full.k-weapon { border-color: rgba(255, 92, 92, 0.55); }
.nf-pack .npk-slot.full.k-tech { border-color: rgba(254, 202, 87, 0.55); }
.nf-pack .npk-slot.on { border-color: var(--nft-mag); background: linear-gradient(90deg, rgba(255, 79, 216, 0.16), rgba(8, 22, 34, 0.55)); }
.nf-pack .npk-slot:focus-visible { outline: 2px solid var(--nft-cyan); outline-offset: 1px; }
.nf-pack .npk-actions { flex-wrap: wrap; }
.nf-pack .npk-actions .nsh-buy { flex: 1 1 100%; }
.nf-pack .npk-actions .nsh-cancel { flex: 1; }
.nf-pack .npk-drop:hover { border-color: var(--nft-red); color: var(--nft-red); }
@media (max-width: 760px) {
    .nf-pack .npk-cols { grid-template-columns: 1fr; }
    .nf-pack .nsh-list, .nf-pack .npk-body { max-height: 30vh; }
}

/* ---------------------------------------------------------------- click menus on names in the room (plugins/typelinks.js) */
.nf-menu { position: fixed; z-index: 80; min-width: 150px; max-width: 260px; padding: 4px; border-radius: 6px;
    font-family: "Consolas", "DejaVu Sans Mono", "Menlo", monospace; font-size: 12px;
    background: rgba(3, 10, 18, 0.97); border: 1px solid #48dbfb;
    box-shadow: 0 0 16px rgba(72, 219, 251, 0.35), inset 0 0 0 1px rgba(255, 79, 216, 0.25); }
.nf-menu-head { padding: 3px 8px 5px; margin-bottom: 3px; color: #ff4fd8; font-size: 10.5px; letter-spacing: 1.5px;
    border-bottom: 1px solid rgba(72, 219, 251, 0.22); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nf-menu-item { display: block; width: 100%; text-align: left; font: inherit; color: #dff8ff; cursor: pointer; padding: 5px 8px;
    background: transparent; border: 0; border-radius: 4px; }
.nf-menu-item:hover, .nf-menu-item:focus-visible { background: rgba(72, 219, 251, 0.18); color: #fff; outline: none; }
.nf-menu-item.fill::after { content: " ✎"; color: #7f9fb0; }
.nf-menu-item.danger { color: #ff8a8a; }
.nf-menu-item.danger:hover { background: rgba(255, 92, 92, 0.18); }
/* the names themselves: their own colour, a dotted underline (they're links whose command is "__menu__ #id") */
a[onclick*="__menu__"] { color: inherit; text-decoration: underline dotted rgba(223, 248, 255, 0.35); text-underline-offset: 3px; }
a[onclick*="__menu__"]:hover { text-decoration-color: currentColor; text-shadow: 0 0 6px currentColor; }

.nwm .nwm-key.job i { width: auto; height: auto; padding: 0 4px; font-style: normal; font-size: 10px; font-weight: bold; line-height: 12px;
    color: #03070c; background: #feca57; border-radius: 2px; }

/* ---------------------------------------------------------------- the job board (plugins/nfjobs.js)
   It's a shop window (.nf-shop) too, for the rows, details and buttons; these are its own parts. */
.nf-jobs .njb-row { grid-template-columns: 22px minmax(0, 1fr) auto; align-items: start; }
.nf-jobs .njb-row i { color: var(--nft-amber); }
.nf-jobs .njb-row.pinned { border-color: rgba(254, 202, 87, 0.6); }
.nf-jobs .njb-row .nsh-row-name { white-space: normal; }
.nf-jobs .njb-title { display: block; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nf-jobs .njb-row small { display: block; color: var(--nft-dim); font-size: 10.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nf-jobs .njb-row b { font-size: 11px; }
.nf-jobs .njb-steps { list-style: none; margin: 4px 0 10px; padding: 0; }
.nf-jobs .njb-step { display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; padding: 4px 0; font-size: 12px;
    border-bottom: 1px dotted rgba(72, 219, 251, 0.12); }
.nf-jobs .njb-step i { flex: none; width: 14px; font-style: normal; text-align: center; }
.nf-jobs .njb-step span { flex: 1; min-width: 0; }
.nf-jobs .njb-step em { font-style: normal; font-size: 11px; color: var(--nft-amber); }
.nf-jobs .njb-step.done { color: var(--nft-dim); }
.nf-jobs .njb-step.done i { color: var(--nft-green); }
.nf-jobs .njb-step.done span { text-decoration: line-through; text-decoration-color: rgba(127, 159, 176, 0.5); }
.nf-jobs .njb-step.now { color: #fff; }
.nf-jobs .njb-step.now i { color: var(--nft-amber); }
.nf-jobs .njb-step.next { color: var(--nft-dim); opacity: 0.7; }
.nf-jobs .njb-type { flex: 1 0 100%; margin-left: 20px; text-align: left; font: inherit; font-size: 11px; cursor: pointer; padding: 3px 8px;
    color: var(--nft-ink); background: rgba(72, 219, 251, 0.1); border: 1px solid var(--nft-line); border-radius: 4px; }
.nf-jobs .njb-type::before { content: "› "; color: var(--nft-cyan); }
.nf-jobs .njb-type:hover { background: rgba(72, 219, 251, 0.25); color: #fff; }
.nf-jobs .njb-where { margin: 0 0 8px; padding: 6px 8px; border-radius: 6px; border: 1px dashed var(--nft-line); }
.nf-jobs .njb-where small { display: block; font-size: 8.5px; letter-spacing: 1.5px; color: var(--nft-dim); }
.nf-jobs .njb-where b { font-weight: normal; color: var(--nft-amber); font-size: 12.5px; }
.nf-jobs .njb-meta { font-size: 11px; color: var(--nft-dim); margin: -2px 0 8px; }
.nf-jobs .njb-actions { flex-wrap: wrap; }
.nf-jobs .njb-actions > * { flex: 1 1 auto; }
.nf-jobs .njb-abandon:hover { border-color: var(--nft-red); color: var(--nft-red); }
/* the contracts window (plugins/nfcontracts.js), on the job board's look */
.nf-contracts .ncx-bar { display: flex; flex-wrap: wrap; gap: 4px 14px; justify-content: space-between; font-size: 9.5px;
    letter-spacing: 1.5px; color: var(--nft-dim); margin: 0 0 8px; padding: 4px 8px; border: 1px solid var(--nft-line); border-radius: 6px; }
.nf-contracts .ncx-route { display: flex; align-items: center; gap: 8px; margin: 2px 0 10px; font-size: 12.5px; color: var(--nft-ink); }
.nf-contracts .ncx-route i { font-style: normal; color: var(--nft-cyan); }
.nf-contracts .ncx-route b { font-weight: normal; color: var(--nft-amber); }

/* ---------------------------------------------------------------- the NetLink phone (plugins/nfphone.js)
   A ☎ button in the bottom-right corner (level with the sound button on the left), and the phone above it. */
.nph-launch { position: fixed; right: 10px; bottom: 54px; z-index: 57; display: flex; align-items: center; gap: 6px;
    height: 32px; padding: 0 12px 0 10px; border-radius: 16px; cursor: pointer;
    font: 600 10.5px "Consolas", "DejaVu Sans Mono", "Menlo", monospace; letter-spacing: 2px; color: #dff8ff;
    background: rgba(7, 11, 17, 0.88); border: 1px solid rgba(72, 219, 251, 0.4); box-shadow: 0 0 10px rgba(72, 219, 251, 0.15); }
.nph-launch i { font-style: normal; font-size: 15px; letter-spacing: 0; color: #48dbfb; }
.nph-launch:hover { background: rgba(19, 33, 58, 0.95); border-color: #48dbfb; }
/* In the prompt line: the sound button's height and top, at the other end (room kept by .prompt's padding-right). */
.inputwrap .nph-launch.in-prompt { position: absolute; right: 2px; left: auto; top: 0.1em; bottom: auto; z-index: 2;
    height: 1.3em; padding: 0 6px; gap: 4px; border-radius: 4px; font-size: 12px; box-shadow: none; }  /* (12px: the sound button's, so 1.3em is the same height) */
.inputwrap .nph-launch.in-prompt span { font-size: 9.5px; letter-spacing: 1.5px; }
.inputwrap .nph-launch.in-prompt i { font-size: 11px; }
.inputwrap .nph-launch.in-prompt .nph-badge { height: 12px; min-width: 12px; line-height: 12px; font-size: 9px; padding: 0 3px; }
.nph-launch.new { border-color: #ff4fd8; box-shadow: 0 0 14px rgba(255, 79, 216, 0.45); }
.nph-launch.new i { color: #ff4fd8; animation: nph-ring 1.6s ease-in-out infinite; }
@keyframes nph-ring { 0%, 70%, 100% { transform: none; } 75% { transform: rotate(-14deg); } 85% { transform: rotate(14deg); } }
@media (prefers-reduced-motion: reduce) { .nph-launch.new i { animation: none; } }
.nph-badge { min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; font-size: 10px; line-height: 16px; letter-spacing: 0;
    text-align: center; color: #fff; background: #ff4fd8; box-shadow: 0 0 6px rgba(255, 79, 216, 0.7); }
.nph { position: fixed; right: 10px; bottom: 94px; z-index: 58; width: min(360px, calc(100vw - 20px));
    height: min(560px, calc(100vh - 110px)); font-family: "Consolas", "DejaVu Sans Mono", "Menlo", monospace; font-size: 12px; color: #dff8ff; }
.nph-body { height: 100%; padding: 10px 8px 14px; border-radius: 26px; box-sizing: border-box;
    background: linear-gradient(145deg, #2b333d 0%, #151a21 45%, #0c1015 100%);
    box-shadow: 0 0 0 1px #3a4552, inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 18px 40px rgba(0, 0, 0, 0.6), 0 0 24px rgba(72, 219, 251, 0.15); }
.nph-screen { height: 100%; display: flex; flex-direction: column; overflow: hidden; border-radius: 16px; padding: 8px 10px;
    box-sizing: border-box; background: radial-gradient(ellipse at 20% 0%, rgba(72, 219, 251, 0.14), transparent 55%), #040a12;
    box-shadow: inset 0 0 0 1px rgba(72, 219, 251, 0.35); }
.nph-status { display: flex; align-items: center; gap: 8px; font-size: 10px; letter-spacing: 2px; color: #7f9fb0; margin-bottom: 8px; }
.nph-brand { flex: 1; color: #48dbfb; text-shadow: 0 0 6px rgba(72, 219, 251, 0.6); }
.nph-x, .nph-back { font: inherit; font-size: 13px; line-height: 1; padding: 2px 7px; cursor: pointer; color: #7f9fb0;
    background: none; border: 1px solid rgba(72, 219, 251, 0.22); border-radius: 4px; }
.nph-x:hover, .nph-back:hover { color: #fff; border-color: #48dbfb; }
.nph-tabs { display: flex; gap: 4px; margin-bottom: 8px; }
.nph-tab { flex: 1; display: flex; justify-content: center; align-items: center; gap: 5px; font: inherit; font-size: 10px; letter-spacing: 2px;
    padding: 5px 4px; cursor: pointer; color: #7f9fb0; background: rgba(72, 219, 251, 0.04); border: 1px solid rgba(72, 219, 251, 0.22); border-radius: 4px; }
.nph-tab.on { color: #fff; border-color: #48dbfb; background: rgba(72, 219, 251, 0.2); }
.nph-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; color: #fff; }
.nph-head b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nph-threads, .nph-feed { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: thin; }
.nph-thread { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 8px; align-items: center; width: 100%; text-align: left;
    font: inherit; color: #dff8ff; cursor: pointer; padding: 6px; margin-bottom: 3px; border-radius: 6px;
    background: rgba(8, 22, 34, 0.55); border: 1px solid rgba(72, 219, 251, 0.15); }
.nph-thread:hover { border-color: #48dbfb; }
.nph-thread.new { border-color: rgba(255, 79, 216, 0.6); }
.nph-thread > i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-style: normal;
    font-size: 11px; font-weight: bold; color: #fff; }
.nph-thread-body { min-width: 0; }
.nph-thread-body b { display: block; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nph-thread-body small { display: block; color: #7f9fb0; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nph-thread-side { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; font-size: 10px; color: #7f9fb0; }
.nph-line { display: flex; flex-direction: column; align-items: flex-start; margin: 0 0 6px; }
.nph-line.mine { align-items: flex-end; }
.nph-meta { display: flex; gap: 6px; font-size: 10px; color: #7f9fb0; margin: 0 4px 1px; }
.nph-meta .nph-who { font-weight: bold; }
.nph-bubble { max-width: 85%; padding: 5px 9px; border-radius: 10px 10px 10px 3px; line-height: 1.4; word-wrap: break-word;
    background: rgba(72, 219, 251, 0.1); border: 1px solid rgba(72, 219, 251, 0.2); }
.nph-line.mine .nph-bubble { border-radius: 10px 10px 3px 10px; background: rgba(255, 79, 216, 0.14); border-color: rgba(255, 79, 216, 0.3); }
.nph-line.pose .nph-bubble { font-style: italic; background: transparent; border-style: dashed; }
.nph-members { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; }
.nph-member { font-size: 10px; padding: 1px 6px; border-radius: 8px; color: #7f9fb0; border: 1px solid rgba(72, 219, 251, 0.15); }
.nph-member.on { color: #2ef2a0; border-color: rgba(46, 242, 160, 0.45); }
.nph-empty { padding: 18px 8px; text-align: center; color: #7f9fb0; font-size: 11.5px; }
.nph-empty.big { flex: 1; display: grid; place-items: center; }
.nph-say { display: flex; gap: 6px; margin-top: 8px; }
.nph-say input { flex: 1; min-width: 0; font: inherit; font-size: 12px; padding: 7px 9px; border-radius: 8px; color: #fff;
    background: rgba(3, 7, 12, 0.9); border: 1px solid rgba(72, 219, 251, 0.3); }
.nph-say input:focus { outline: none; border-color: #48dbfb; box-shadow: 0 0 8px rgba(72, 219, 251, 0.35); }
.nph-send { font: inherit; font-size: 10.5px; font-weight: bold; letter-spacing: 1.5px; padding: 0 12px; cursor: pointer; border-radius: 8px;
    color: #04120b; background: #2ef2a0; border: 1px solid #2ef2a0; }
.nph-send:hover { filter: brightness(1.15); }
.nph-tab:focus-visible, .nph-thread:focus-visible, .nph-launch:focus-visible, .nph-send:focus-visible { outline: 2px solid #48dbfb; outline-offset: 1px; }

/* ---------------------------------------------------------------- collections (plugins/nfcollect.js)
   It's a shop window (.nf-shop) too, for the details and tabs; these are its own parts. */
.nf-collect .ncl-tabs .nsh-mode { flex: 1; display: flex; flex-direction: column; gap: 4px; align-items: stretch; }
.nf-collect .ncl-meter { height: 4px; border-radius: 2px; background: rgba(72, 219, 251, 0.12); overflow: hidden; }
.nf-collect .ncl-meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--nft-mag), var(--nft-cyan)); }
.nf-collect .ncl-kinds { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 8px; }
.nf-collect .ncl-kind { font: inherit; font-size: 9.5px; letter-spacing: 1px; padding: 3px 7px; border-radius: 4px; cursor: pointer;
    color: var(--nft-dim); background: transparent; border: 1px solid var(--nft-line); }
.nf-collect .ncl-kind.on { color: #fff; border-color: var(--nft-cyan); background: rgba(72, 219, 251, 0.18); }
.nf-collect .ncl-kind.boss { color: var(--nft-mag); }
.nf-collect .ncl-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 5px; align-content: start; }
.nf-collect .ncl-tile { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; min-height: 66px;
    padding: 6px 4px; font: inherit; font-size: 10px; text-align: center; cursor: pointer; color: var(--nft-dim);
    background: rgba(3, 7, 12, 0.7); border: 1px dashed rgba(127, 159, 176, 0.3); border-radius: 6px; }
.nf-collect .ncl-tile i { font-style: normal; font-size: 20px; opacity: 0.5; }
.nf-collect .ncl-tile span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nf-collect .ncl-tile em { position: absolute; top: 3px; right: 5px; font-style: normal; font-size: 9px; color: var(--nft-amber); }
.nf-collect .ncl-tile.known { color: #fff; border: 1px solid var(--nft-line); background: rgba(8, 22, 34, 0.7); }
.nf-collect .ncl-tile.known i { opacity: 1; color: var(--nft-cyan); text-shadow: 0 0 8px rgba(72, 219, 251, 0.6); }
.nf-collect .ncl-tile.known.k-weapon i { color: var(--nft-red); } .nf-collect .ncl-tile.known.k-clothing i { color: var(--nft-green); }
.nf-collect .ncl-tile.known.k-implant i { color: var(--nft-mag); } .nf-collect .ncl-tile.known.k-tech i { color: var(--nft-amber); }
.nf-collect .ncl-tile.boss { border-color: rgba(255, 79, 216, 0.55); }
.nf-collect .ncl-tile.boss.known { box-shadow: inset 0 0 12px rgba(255, 79, 216, 0.25); }
.nf-collect .ncl-tile:hover, .nf-collect .ncl-tile:focus-visible { border-color: var(--nft-cyan); outline: none; }
.nf-collect .ncl-tile.on { border-color: var(--nft-mag); border-style: solid; background: linear-gradient(180deg, rgba(255, 79, 216, 0.18), rgba(8, 22, 34, 0.7)); }
.nf-collect .ncl-unknown i { color: var(--nft-dim); text-shadow: none; opacity: 0.5; }
.nf-collect .ncl-source { margin: 0 0 8px; padding: 5px 8px; border-radius: 6px; font-size: 11.5px; color: var(--nft-amber);
    border: 1px dashed var(--nft-line); }
.nf-collect .ncl-source small { display: block; font-size: 8.5px; letter-spacing: 1.5px; color: var(--nft-dim); }
.nf-collect .ncl-source b { font-weight: normal; }
.nf-collect .ncl-source.boss { color: var(--nft-mag); border-color: rgba(255, 79, 216, 0.5); }
.nf-collect .ncl-map { overflow-y: auto; max-height: min(480px, calc(100vh - 220px)); margin-bottom: 8px; scrollbar-width: thin; }
.nf-collect .ncl-big { display: flex; align-items: baseline; gap: 12px; margin: 4px 0 12px; }
.nf-collect .ncl-big b { font-size: 34px; color: #fff; text-shadow: 0 0 12px rgba(72, 219, 251, 0.7); }
.nf-collect .ncl-big span { color: var(--nft-dim); font-size: 11.5px; }
.nf-collect .ncl-area { display: grid; grid-template-columns: minmax(0, 200px) 1fr auto; gap: 10px; align-items: center; padding: 5px 0;
    border-bottom: 1px dotted rgba(72, 219, 251, 0.12); }
.nf-collect .ncl-area .ncl-meter { height: 7px; }
.nf-collect .ncl-area-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nf-collect .ncl-area b { font-weight: normal; font-size: 11px; color: var(--nft-ink); white-space: nowrap; }
.nf-collect .ncl-area.done .ncl-area-name { color: var(--nft-green); }
.nf-collect .ncl-area.done .ncl-meter i { background: var(--nft-green); }

/* ---------------------------------------------------------------- settings (plugins/nfsettings.js)
   It's a shop window (.nf-shop) too, for the frame and status line; these are its own parts. */
.nf-tablet.nf-shop.nf-settings { width: min(700px, calc(100vw - 16px)); }
.nf-settings .nst-list { overflow-y: auto; max-height: min(560px, calc(100vh - 150px)); margin-bottom: 8px; padding-right: 4px; scrollbar-width: thin; }
.nf-settings .nst-head { margin: 12px 0 4px; padding-bottom: 3px; border-bottom: 1px solid var(--nft-line); }
.nf-settings .nst-head:first-child { margin-top: 2px; }
.nf-settings .nst-row { display: flex; align-items: center; gap: 12px; padding: 7px 4px; border-bottom: 1px dotted rgba(72, 219, 251, 0.12); }
.nf-settings .nst-text { flex: 1; min-width: 0; }
.nf-settings .nst-text b { display: block; color: #fff; font-weight: normal; font-size: 12.5px; }
.nf-settings .nst-text small { display: block; color: var(--nft-dim); font-size: 10.5px; line-height: 1.35; margin-top: 1px; }
.nf-settings .nst-switch { flex: none; display: flex; border: 1px solid var(--nft-line); border-radius: 6px; overflow: hidden; }
.nf-settings .nst-choice { font: inherit; font-size: 10px; letter-spacing: 1px; text-transform: uppercase; min-width: 52px; padding: 5px 9px;
    cursor: pointer; color: var(--nft-dim); background: rgba(3, 7, 12, 0.7); border: 0; border-left: 1px solid var(--nft-line); }
.nf-settings .nst-choice:first-child { border-left: 0; }
.nf-settings .nst-choice:hover { color: #fff; background: rgba(72, 219, 251, 0.12); }
.nf-settings .nst-choice.on { color: #04120b; font-weight: bold; background: var(--nft-green); cursor: default; }
.nf-settings .nst-choice.on.pending { background: var(--nft-amber); }
.nf-settings .nst-choice:focus-visible { outline: 2px solid var(--nft-cyan); outline-offset: -2px; }
.nf-settings .nst-actions { display: flex; justify-content: flex-end; margin: 0 0 8px; }
.nf-settings .nst-reset { font: inherit; font-size: 10px; letter-spacing: 1px; padding: 5px 12px; cursor: pointer; color: var(--nft-dim);
  background: transparent; border: 1px solid var(--nft-line); border-radius: 6px; }
.nf-settings .nst-reset:hover { color: #fff; border-color: var(--nft-red); }
.nf-settings .nst-reset.armed { color: #fff; background: rgba(255, 82, 82, 0.18); border-color: var(--nft-red); }
.nf-settings .nst-reset:disabled { cursor: default; opacity: 0.6; }
.nf-settings .nst-reset:focus-visible { outline: 2px solid var(--nft-cyan); outline-offset: 2px; }
@media (max-width: 560px) { .nf-settings .nst-row { flex-direction: column; align-items: stretch; } .nf-settings .nst-switch { align-self: flex-start; } }

/* ---------------------------------------------------------------- the help window (plugins/nfhelp.js)
   It's a shop window (.nf-shop) too, for the frame and headings; these are its own parts. */
.nf-tablet.nf-shop.nf-help { width: min(1000px, calc(100vw - 16px)); }
.nf-help .nhp-nav { font: inherit; font-size: 10px; letter-spacing: 1.5px; padding: 2px 8px; margin-left: 6px; cursor: pointer;
    color: var(--nft-ink); background: rgba(72, 219, 251, 0.08); border: 1px solid var(--nft-line); border-radius: 4px; }
.nf-help .nhp-nav:hover:not(:disabled) { border-color: var(--nft-cyan); color: #fff; }
.nf-help .nhp-nav:disabled { opacity: 0.35; cursor: default; }
.nf-help .nhp-wrap { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 12px; min-height: 0; flex: 1; margin-bottom: 8px; }
.nf-help .nhp-side, .nf-help .nhp-main { overflow-y: auto; max-height: min(560px, calc(100vh - 160px)); scrollbar-width: thin; }
.nf-help .nhp-side { padding-right: 4px; border-right: 1px solid var(--nft-line); }
.nf-help .nhp-search input { width: 100%; box-sizing: border-box; font: inherit; font-size: 12px; padding: 6px 8px; margin-bottom: 8px;
    color: #fff; background: rgba(3, 7, 12, 0.9); border: 1px solid var(--nft-line); border-radius: 6px; }
.nf-help .nhp-search input:focus { outline: none; border-color: var(--nft-cyan); }
.nf-help .nhp-cat { display: flex; justify-content: space-between; width: 100%; font: inherit; font-size: 10.5px; letter-spacing: 2px;
    text-transform: uppercase; padding: 5px 6px; margin-top: 2px; cursor: pointer; color: var(--nft-cyan); background: transparent;
    border: 0; border-bottom: 1px dotted rgba(72, 219, 251, 0.2); text-align: left; }
.nf-help .nhp-cat::before { content: "▸ "; color: var(--nft-mag); }
.nf-help .nhp-cat.open::before { content: "▾ "; }
.nf-help .nhp-cat small { color: var(--nft-dim); letter-spacing: 0; }
.nf-help .nhp-topics { display: flex; flex-direction: column; padding: 3px 0 6px 10px; }
.nf-help .nhp-link { font: inherit; font-size: 12px; text-align: left; padding: 2px 6px; cursor: pointer; color: var(--nft-ink);
    background: transparent; border: 0; border-radius: 4px; }
.nf-help .nhp-link:hover, .nf-help .nhp-link:focus-visible { background: rgba(72, 219, 251, 0.15); color: #fff; outline: none; }
.nf-help .nhp-link.guide { color: var(--nft-amber); }
.nf-help .nhp-link.guide::before { content: "★ "; font-size: 10px; }
.nf-help .nhp-link.on { background: rgba(255, 79, 216, 0.2); color: #fff; }
.nf-help .nhp-link.chip { border: 1px solid var(--nft-line); margin: 0 4px 4px 0; }
.nf-help .nhp-link.big { font-size: 13px; padding: 6px 12px; margin: 0 0 12px; color: var(--nft-green); border: 1px solid rgba(46, 242, 160, 0.5); }
.nf-help .nhp-main { padding: 2px 6px 0 2px; }
.nf-help .nhp-aliases { color: var(--nft-dim); font-size: 11px; margin: -2px 0 8px; }
.nf-help .nhp-body { white-space: pre-wrap; font-size: 12.5px; line-height: 1.5; color: var(--nft-ink); margin-bottom: 12px; }
.nf-help .nhp-inline { cursor: pointer; text-decoration: underline dotted rgba(72, 219, 251, 0.6); text-underline-offset: 3px; }
.nf-help .nhp-inline:hover { text-decoration-color: currentColor; text-shadow: 0 0 6px rgba(72, 219, 251, 0.6); }
.nf-help .nhp-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 0; margin: 4px 0 8px; }
.nf-help .nhp-chips small { flex: 0 0 100%; font-size: 9px; letter-spacing: 2px; color: var(--nft-dim); margin-bottom: 4px; }
.nf-help .nhp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.nf-help .nhp-card { display: flex; flex-direction: column; align-items: flex-start; padding: 8px; border-radius: 8px;
    background: rgba(8, 22, 34, 0.55); border: 1px solid var(--nft-line); }
.nf-help .nhp-card-head { font: inherit; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--nft-cyan);
    background: none; border: 0; padding: 0; cursor: pointer; }
.nf-help .nhp-card-head:hover { color: #fff; }
.nf-help .nhp-card small { color: var(--nft-dim); font-size: 10px; margin: 2px 0 6px; }
.nf-help .nhp-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 2px; }
@media (max-width: 700px) { .nf-help .nhp-wrap { grid-template-columns: 1fr; } .nf-help .nhp-side { max-height: 30vh; border-right: 0; } }

/* ---------------------------------------------------------------- achievements (plugins/nfachieve.js), in the help window's look */
.nf-tablet.nf-shop.nf-ach { width: min(860px, calc(100vw - 16px)); }
.nf-ach .nac-cat::before { content: none; }
.nf-ach .nac-cat.on { background: rgba(255, 79, 216, 0.2); color: #fff; }
.nf-ach .nac-h { font-size: 9px; letter-spacing: 2px; color: var(--nft-dim); margin: 12px 0 4px; }
.nf-ach .nac-item { padding: 8px 10px; margin: 0 0 6px; border: 1px solid var(--nft-line); border-radius: 8px; background: rgba(4, 10, 18, 0.5); }
.nf-ach .nac-item.done { border-color: rgba(254, 202, 87, 0.45); background: rgba(254, 202, 87, 0.06); }
.nf-ach .nac-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nf-ach .nac-head b { font-weight: normal; color: #fff; font-size: 13px; letter-spacing: 1px; }
.nf-ach .nac-star { color: var(--nft-dim); font-size: 14px; }
.nf-ach .nac-item.done .nac-star { color: var(--nft-amber); text-shadow: 0 0 6px rgba(254, 202, 87, 0.7); }
.nf-ach .nac-title { font-size: 11px; font-style: italic; color: var(--nft-amber); opacity: 0.75; }
.nf-ach .nac-title.on { opacity: 1; }
.nf-ach .nac-wear { font: inherit; font-size: 9.5px; letter-spacing: 1.5px; padding: 2px 8px; margin-left: auto; cursor: pointer;
    color: var(--nft-cyan); background: transparent; border: 1px solid var(--nft-line); border-radius: 4px; }
.nf-ach .nac-wear:hover { color: #fff; border-color: var(--nft-cyan); }
.nf-ach .nac-wear.on { color: #04120b; background: var(--nft-amber); border-color: var(--nft-amber); }
.nf-ach .nac-what { font-size: 12px; color: var(--nft-ink); margin: 3px 0 0 22px; }
.nf-ach .nac-when { font-size: 10.5px; color: var(--nft-dim); margin: 2px 0 0 22px; }
.nf-ach .nac-progress { display: flex; align-items: center; gap: 8px; margin: 5px 0 0 22px; }
.nf-ach .nac-progress small { font-size: 10.5px; color: var(--nft-dim); white-space: nowrap; }
.nf-ach .nac-progress.big { margin: 6px 0 10px; }
.nf-ach .nac-bar { flex: 1; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.nf-ach .nac-bar.big { height: 8px; }
.nf-ach .nac-bar i { display: block; height: 100%; background: var(--nft-amber); box-shadow: 0 0 6px rgba(254, 202, 87, 0.6); }
html.nf-mobile .nf-ach .nac-wear { padding: 6px 12px; font-size: 11px; }

/* Item names in their rarity's color (world/rarity.py: the same colors as in the text). */
.nf-r-junk { color: #8a8a8a !important; }
.nf-r-common { color: #f2f2f2 !important; }
.nf-r-uncommon { color: #5fd75f !important; }
.nf-r-rare { color: #5fafff !important; }
.nf-r-epic { color: #d787ff !important; }
.nf-r-legendary { color: #ffaf00 !important; text-shadow: 0 0 6px rgba(255, 175, 0, 0.45); }

/* Bags in the inventory window (plugins/nfpack.js): a branch with + / -, what's in it beneath. */
.nf-pack .npk-bag { display: flex; flex-direction: column; gap: 4px; }
.nf-pack .npk-bag-head { display: flex; gap: 4px; align-items: stretch; border-radius: 6px; border: 1px dashed transparent; }
.nf-pack.dragging .npk-bag-head, .nf-pack.dragging .npk-bag-items { border-color: var(--nft-line); }
.nf-pack .npk-bag-head.over, .nf-pack .npk-bag-items.over { border-color: var(--nft-mag) !important; background: rgba(255, 79, 216, 0.1); }
.nf-pack .npk-bag-head .nsh-row { flex: 1; min-width: 0; grid-template-columns: 22px minmax(0, 1fr) auto auto; }
.nf-pack .npk-toggle { flex: none; width: 24px; font: 700 14px/1 inherit; color: var(--nft-cyan); cursor: pointer;
    background: rgba(8, 22, 34, 0.55); border: 1px solid var(--nft-line); border-radius: 6px; padding: 0; }
.nf-pack .npk-toggle:hover, .nf-pack .npk-toggle:focus-visible { border-color: var(--nft-cyan); outline: none; }
.nf-pack .npk-fill { font-size: 10px; color: var(--nft-dim, #7f9db0); letter-spacing: 0.04em; }
.nf-pack .npk-bag-items { display: flex; flex-direction: column; gap: 4px; margin-left: 12px; padding-left: 10px;
    border-left: 1px solid var(--nft-line); border-radius: 0 6px 6px 0; border-top: 1px dashed transparent;
    border-right: 1px dashed transparent; border-bottom: 1px dashed transparent; min-height: 26px; }
.nf-pack .npk-bag-empty { font-size: 11px; color: var(--nft-dim, #7f9db0); padding: 5px 4px; font-style: italic; }
.nf-pack .nsh-row.npk-child { font-size: 11.5px; }

/* ---------------------------------------------------------------- the phone layout (plugins/nfmobile.js)
   <html class="nf-mobile"> on a narrow screen: a bar across the top (health, energy, the fight, a
   button a panel); the panels drop down from it as sheets; windows fill the screen. */
.nfm-dock { display: none; }
html.nf-mobile .nfm-dock { position: fixed; top: 0; left: 0; right: 0; height: 40px; z-index: 960; display: flex; align-items: stretch;
    gap: 6px; padding: 4px 6px; box-sizing: border-box; user-select: none;
    font: 12px/1.2 "Consolas", "DejaVu Sans Mono", "Menlo", monospace; color: #dff8ff;
    background: linear-gradient(rgba(72, 219, 251, 0.05) 1px, transparent 1px) 0 0 / 100% 10px, rgba(4, 9, 16, 0.97);
    border-bottom: 1px solid rgba(72, 219, 251, 0.45); box-shadow: 0 2px 12px rgba(0, 0, 0, 0.6); }
html.nf-mobile .nfm-dock[hidden], html.nf-mobile .nfm-dock [hidden] { display: none !important; }
.nfm-dock button { font: inherit; color: inherit; cursor: pointer; border-radius: 6px; -webkit-tap-highlight-color: transparent; }
.nfm-vitals { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 0 8px;
    background: rgba(8, 22, 34, 0.6); border: 1px solid rgba(72, 219, 251, 0.3); }
.nfm-vitals.on, .nfm-btn.on { border-color: #48dbfb; background: rgba(72, 219, 251, 0.16); box-shadow: inset 0 0 8px rgba(72, 219, 251, 0.25); }
.nfm-level { color: #ff4fd8; font-size: 12px; text-shadow: 0 0 6px rgba(255, 79, 216, 0.6); }
.nfm-pools { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.nfm-pool { display: grid; grid-template-columns: 18px minmax(0, 1fr) 30px; align-items: center; gap: 4px; }
.nfm-pool small { font-size: 9px; color: #7f9fb0; letter-spacing: 1px; text-align: left; }
.nfm-pool em { font-style: normal; font-size: 10px; color: #9fdcef; text-align: right; }
.nfm-bar { display: block; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.nfm-bar i { display: block; height: 100%; border-radius: 3px; transition: width 0.4s ease; }
.nfm-bar.good i { background: #2ef2a0; } .nfm-bar.warn i { background: #feca57; } .nfm-bar.bad i { background: #ff5c5c; }
.nfm-bar.energy i { background: #48dbfb; } .nfm-bar.foe i { background: #ff5c5c; }
.nfm-fx { font-size: 11px; color: #feca57; }
.nfm-dock.fighting .nfm-vitals { flex: 0 1 34%; gap: 5px; padding: 0 6px; }
.nfm-dock.fighting .nfm-pool { grid-template-columns: minmax(0, 1fr); }
.nfm-dock.fighting .nfm-pool small, .nfm-dock.fighting .nfm-pool em, .nfm-dock.fighting .nfm-fx { display: none; }
.nfm-fight { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 6px; padding: 0 4px 0 8px; border-radius: 6px;
    background: rgba(60, 8, 16, 0.75); border: 1px solid rgba(255, 92, 92, 0.6); }
.nfm-foe { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.nfm-foe b { font-size: 11px; color: #ffd0d0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.nfm-flee { flex: none; padding: 4px 10px; font-weight: bold; letter-spacing: 1px; color: #fff !important;
    background: #b3263a; border: 1px solid #ff5c5c; }
.nfm-buttons { flex: none; display: flex; gap: 4px; }
.nfm-btn { padding: 0 9px; font-size: 10.5px; letter-spacing: 1px; color: #9fdcef; background: rgba(8, 22, 34, 0.6);
    border: 1px solid rgba(72, 219, 251, 0.3); }
.nfm-dock button:focus-visible { outline: 2px solid #48dbfb; outline-offset: 1px; }
@media (prefers-reduced-motion: reduce) { .nfm-bar i { transition: none; } }

/* The text and input under the bar, bigger; 16px in the input so phones don't zoom in on it. */
html.nf-mobile #clientwrapper #main { height: calc(100% - 40px); margin-top: 40px; }
html.nf-mobile body { font-size: 13.5px; line-height: 1.4; }
html.nf-mobile .content { padding: 6px 8px !important; }
html.nf-mobile .inputfield, html.nf-mobile #inputfield { font-size: 16px; }

/* The panels: sheets under the bar, only while their button is lit. */
html.nf-mobile #nfdeck, html.nf-mobile #minimap, html.nf-mobile #nfparty, html.nf-mobile #nfhud, html.nf-mobile #nfclock {
    position: fixed !important; top: 40px !important; left: 0 !important; right: 0 !important; width: auto !important;
    max-height: calc(100% - 48px); overflow-y: auto; z-index: 955; border-radius: 0 0 10px 10px; }
html.nf-mobile #nfdeck:not(.nf-sheet), html.nf-mobile #minimap:not(.nf-sheet),
html.nf-mobile #nfparty:not(.nf-sheet), html.nf-mobile #nfhud:not(.nf-sheet), html.nf-mobile #nfclock:not(.nf-sheet) { display: none !important; }
html.nf-mobile #nfdeck, html.nf-mobile #minimap, html.nf-mobile #nfparty, html.nf-mobile #nfhud, html.nf-mobile #nfclock { background-color: #040910; }
html.nf-mobile #nfclock .nfc-btn { display: none; }
html.nf-mobile #minimap canvas { margin: 0 auto; }
html.nf-mobile #nfdeck .ndk-head button,
html.nf-mobile #nfparty .nfp-swap,
html.nf-mobile #minimap .minimap-btn:not(:nth-child(2)),
html.nf-mobile #nfhud .hud-btn[title^="Move to the other"], html.nf-mobile #nfhud .hud-btn[title="Bigger / smaller"] { display: none; }
html.nf-mobile #nfdeck { font-size: 13px; }
html.nf-mobile #nfdeck .ndk-actions button, html.nf-mobile #nfdeck .ndk-job { min-height: 36px; }

/* Windows (shop, inventory, help, settings, collections, jobs) fill the screen under the bar, with a thin bezel. */
html.nf-mobile .nf-tablet.nf-shop { top: 44px; left: 4px; right: 4px; bottom: auto; width: auto !important; max-height: calc(100% - 50px);
    transform: none; animation: none; }
html.nf-mobile .nf-tablet.nf-shop .nft-bezel { padding: 6px; border-radius: 14px; }
html.nf-mobile .nf-tablet.nf-shop .nft-cam, html.nf-mobile .nf-tablet.nf-shop .nft-home { display: none; }
html.nf-mobile .nf-shop .nft-screen { max-height: calc(100vh - 64px); padding: 8px 10px 10px; }
html.nf-mobile .nf-shop .nsh-x { padding: 6px 10px; font-size: 15px; }
html.nf-mobile .nf-tablet { width: calc(100% - 4px); }
html.nf-mobile .nf-tablet .nft-bezel { padding: 8px 6px 10px; border-radius: 16px; }
/* The NetLink phone: the whole screen under the bar. */
html.nf-mobile .nph { top: 44px; left: 4px !important; right: 4px !important; bottom: 4px !important; width: auto; height: auto; }
#minimap .minimap-tap { position: absolute; left: 8px; right: 8px; bottom: 8px; padding: 6px 9px; border-radius: 6px; white-space: pre-line;
    font: 12px/1.35 sans-serif; color: #dfe8f3; background: rgba(7, 11, 17, 0.95); border: 1px solid rgba(120, 150, 190, 0.5); pointer-events: none; }
#minimap .minimap-tap[hidden] { display: none; }
html.nf-mobile #minimap > div:last-child { position: relative; }

/* The ▲ ▼ buttons that reorder the floating panels (plugins/nfstack.js). */
.nf-stack-btn:disabled { opacity: 0.3; cursor: default; }
html.nf-mobile .nf-stack-btn { display: none !important; }

/* The connection screen on a phone (plugins/nfwelcome.js): a compact header and a login form. */
.nfw .nfw-card { max-width: 420px; margin: 8px auto; padding: 14px 14px 10px; border: 1px solid rgba(72, 219, 251, 0.35);
    border-radius: 10px; background: rgba(4, 10, 18, 0.85); white-space: normal; }
.nfw .nfw-logo { text-align: center; line-height: 1; margin-bottom: 12px; font-family: "Consolas", "DejaVu Sans Mono", "Menlo", monospace; }
.nfw .nfw-neon, .nfw .nfw-forge { display: block; font-size: 44px; font-weight: 900; letter-spacing: 6px; }
.nfw .nfw-neon { color: #00ffff; text-shadow: 0 0 8px #00ffff, 0 0 18px rgba(0, 255, 255, 0.6); }
.nfw .nfw-forge { color: #ff55ff; text-shadow: 0 0 8px #ff55ff, 0 0 18px rgba(255, 85, 255, 0.6); }
.nfw .nfw-logo small { display: block; margin-top: 8px; font-size: 11px; letter-spacing: 1px; color: #7f9fb0; }
.nfw .nfw-form { display: flex; flex-direction: column; gap: 8px; margin: 6px 0 12px; }
.nfw .nfw-form input { font: inherit; font-size: 16px; padding: 10px 12px; border-radius: 6px; color: #dff8ff;
    background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(72, 219, 251, 0.4); }
.nfw .nfw-form input:focus { outline: none; border-color: #48dbfb; box-shadow: 0 0 6px rgba(72, 219, 251, 0.5); }
.nfw .nfw-form input[hidden] { display: none; }
.nfw .nfw-go { font: inherit; font-size: 15px; font-weight: bold; letter-spacing: 3px; padding: 11px; border-radius: 6px; cursor: pointer;
    color: #04121a; background: linear-gradient(90deg, #00e5ff, #ff55ff); border: 0; }
.nfw .nfw-mode { font: inherit; font-size: 13px; padding: 6px; cursor: pointer; color: #9fdcef; background: none; border: 0; text-decoration: underline; }
.nfw .nfw-rest { font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.nfw .nfw-hint { margin-top: 8px; font-size: 11px; color: #6f8796; text-align: center; }
