/* The scout drone's camera feed (plugins/nfscout.js): a panel in the bottom-left corner, a sheet on a phone. */
#nfscout { position: fixed; left: 12px; bottom: 70px; z-index: 905; width: 300px; max-height: calc(100% - 140px); display: flex; flex-direction: column;
    background: #060b12; border: 1px solid #1f6f7c; border-radius: 8px; overflow: hidden; color: #cfe6ee;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 16px rgba(94, 231, 255, 0.15); font-family: "Consolas", "DejaVu Sans Mono", monospace; }
.nsc-head { display: flex; align-items: center; gap: 8px; padding: 4px 8px; background: #0b1520; border-bottom: 1px solid #16323b; font-size: 11px; letter-spacing: 1px; }
.nsc-rec { color: #ff4d5e; animation: nsc-blink 1.2s steps(2) infinite; }
@keyframes nsc-blink { 50% { opacity: 0.2; } }
.nsc-title { flex: 1; color: #5ee7ff; }
.nsc-hull { display: flex; gap: 3px; }
.nsc-pip { width: 9px; height: 9px; border: 1px solid #ff6b5c; transform: skewX(-15deg); }
.nsc-pip.on { background: #6dffa8; border-color: #6dffa8; box-shadow: 0 0 5px #6dffa8; }
.nsc-cam { position: relative; height: 150px; flex: none; background: #0a141c; overflow: hidden; }
.nsc-cam.noimg { background: repeating-linear-gradient(0deg, #0a141c 0 2px, #0d1a24 2px 4px), radial-gradient(circle at 50% 40%, #12303a, #05090e); }
.nsc-img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.6) contrast(1.15) sepia(0.2) hue-rotate(140deg); }
.nsc-overlay { position: absolute; inset: 0; pointer-events: none;
    background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.18) 0 1px, transparent 1px 3px),
        linear-gradient(#5ee7ff, #5ee7ff) left 8px top 8px / 14px 2px no-repeat, linear-gradient(#5ee7ff, #5ee7ff) left 8px top 8px / 2px 14px no-repeat,
        linear-gradient(#5ee7ff, #5ee7ff) right 8px top 8px / 14px 2px no-repeat, linear-gradient(#5ee7ff, #5ee7ff) right 8px top 8px / 2px 14px no-repeat,
        linear-gradient(#5ee7ff, #5ee7ff) left 8px bottom 8px / 14px 2px no-repeat, linear-gradient(#5ee7ff, #5ee7ff) left 8px bottom 8px / 2px 14px no-repeat,
        linear-gradient(#5ee7ff, #5ee7ff) right 8px bottom 8px / 14px 2px no-repeat, linear-gradient(#5ee7ff, #5ee7ff) right 8px bottom 8px / 2px 14px no-repeat,
        radial-gradient(circle at center, transparent 55%, rgba(0, 0, 0, 0.55)); }
.nsc-room { position: absolute; left: 28px; bottom: 14px; right: 90px; color: #fff; font-size: 13px; text-shadow: 0 0 4px #000, 0 0 8px #000; }
.nsc-range { position: absolute; right: 28px; bottom: 15px; color: #5ee7ff; font-size: 10px; text-shadow: 0 0 4px #000; }
.nsc-warn { position: absolute; left: 50%; top: 12px; transform: translateX(-50%); padding: 1px 6px; color: #fff; background: rgba(255, 77, 94, 0.8);
    font-size: 11px; letter-spacing: 2px; animation: nsc-blink 0.8s steps(2) infinite; }
.nsc-static { position: absolute; inset: 0; background: repeating-radial-gradient(circle at 30% 40%, #333 0 1px, #999 1px 2px, #111 2px 3px);
    animation: nsc-noise 0.15s steps(3) infinite; opacity: 0.7; }
@keyframes nsc-noise { 0% { background-position: 0 0; } 50% { background-position: 7px -5px; } 100% { background-position: -4px 6px; } }
.nsc-lost { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #ff4d5e; font-size: 18px;
    letter-spacing: 4px; text-shadow: 0 0 8px #000; }
.nsc-batt { display: flex; align-items: center; gap: 6px; padding: 4px 8px; font-size: 10px; color: #7fa5b3; }
.nsc-batt-bar { flex: 1; height: 5px; background: #13222c; border-radius: 3px; overflow: hidden; }
.nsc-batt-fill { height: 100%; background: #6dffa8; transition: width 1s linear; }
.nsc-batt-fill.low { background: #ff6b5c; }
.nsc-note { padding: 4px 8px; font-size: 12px; color: #ffd166; background: rgba(255, 209, 102, 0.06); }
.nsc-info { padding: 4px 8px 6px; overflow-y: auto; min-height: 0; font-size: 12px; }
.nsc-desc { color: #9fb8c4; font-family: "Rajdhani", "Segoe UI", sans-serif; font-size: 13px; line-height: 1.35; max-height: 80px; overflow-y: auto; margin-bottom: 4px; }
.nsc-list-head { margin-top: 4px; color: #5ee7ff; font-size: 10px; letter-spacing: 2px; }
.nsc-mob { display: flex; justify-content: space-between; color: #f5d76e; }
.nsc-mob.hostile { color: #ff6b5c; }
.nsc-lv { color: #9fb3c8; }
.nsc-person { color: #6dffa8; }
.nsc-thing { color: #cfe6ee; }
.nsc-ways { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px 8px 8px; border-top: 1px solid #16323b; }
.nsc-way { padding: 3px 8px; border-radius: 4px; border: 1px solid #1f6f7c; background: #0b1a24; color: #5ee7ff; cursor: pointer; font: 12px "Consolas", monospace; }
.nsc-way:hover { background: #5ee7ff; color: #06121a; }
.nsc-way.recall { margin-left: auto; border-color: #7a4b2a; color: #ffb36b; }
.nsc-way.recall:hover { background: #ffb36b; color: #1a0e06; }
#nfscout.lost { border-color: #ff4d5e; }

/* On a phone: a sheet under the dock, like the other panels (nfmobile.js). */
html.nf-mobile #nfscout { position: fixed !important; top: 40px !important; left: 0 !important; right: 0 !important; bottom: auto; width: auto !important;
    max-height: calc(100% - 48px); z-index: 955; border-radius: 0 0 10px 10px; }
html.nf-mobile #nfscout:not(.nf-sheet) { display: none !important; }
html.nf-mobile #nfscout .nsc-cam { height: 180px; }
