/* Photo-plate engine (plates.js). Only applies once a plate.json has loaded. */
.np-stage { position: absolute; inset: 0; z-index: 1; overflow: hidden; opacity: 0; transition: opacity .4s ease; background: #070d1d; }
.np-stage.is-in { opacity: 1; }
.np-hidden-by-plate { visibility: hidden !important; }
.np-inner { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.np-pic, .np-img { display: block; width: 100%; height: 100%; }
.np-img { object-fit: fill; filter: brightness(1.04) saturate(1.04); transition: filter 1s ease; }
.np-stage.is-night .np-img { filter: brightness(.6) saturate(.82) contrast(1.06) hue-rotate(-6deg); }
.np-vignette { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 1s ease;
  background: radial-gradient(120% 90% at 50% 45%, rgba(4, 8, 24, 0) 45%, rgba(4, 8, 24, .55) 100%), linear-gradient(180deg, rgba(10, 20, 60, .28), rgba(10, 20, 60, 0) 45%); }
.np-stage.is-night .np-vignette { opacity: 1; }
.np-bulbs, .np-glow, .np-win { position: absolute; left: 0; top: 0; pointer-events: none; }
.np-glow { filter: blur(10px); mix-blend-mode: screen; opacity: .95; }
.np-win { filter: blur(1.5px); mix-blend-mode: screen; }
.np-badge { position: absolute; z-index: 4; top: 12px; right: 12px; max-width: calc(100% - 24px); font: 700 .75rem/1.3 system-ui, sans-serif; letter-spacing: .02em; color: #eef1f8; background: rgba(5, 10, 24, .72); padding: 5px 10px; border-radius: 999px; pointer-events: none; }
@media (max-width: 600px) { .np-badge { right: auto; left: 12px; } }
.np-badge-left .np-badge { right: auto; left: 12px; }
.np-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0; }
.np-fps { position: absolute; z-index: 5; left: 8px; bottom: 8px; font: 700 12px/1 ui-monospace, monospace; background: #000; color: #0f0; padding: 4px 6px; border-radius: 4px; }

/* Control panel (radiogroups) */
.np-panel { display: grid; gap: 10px; }
.np-group { border: 0; margin: 0; padding: 0; min-width: 0; }
.np-group legend { padding: 0; margin-bottom: 6px; font-weight: 700; font-size: .85rem; color: var(--n-muted, #bcc6d8); }
.np-row { display: flex; flex-wrap: wrap; gap: 6px; }
.np-opt { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; border-radius: 999px; border: 2px solid var(--n-line, rgba(255, 255, 255, .16)); background: var(--n-surface, #14223f); color: var(--n-ink, #f4f1ea); font-weight: 600; font-size: .9rem; cursor: pointer; }
.np-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.np-opt:has(input:checked) { border-color: var(--n-accent, #f6c25b); background: color-mix(in srgb, var(--n-accent, #f6c25b) 18%, var(--n-surface, #14223f)); }
.np-opt:has(input:focus-visible) { outline: 3px solid var(--n-focus, #8fd3ff); outline-offset: 2px; }
@media (max-width: 600px) {
  .np-row { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .np-row::-webkit-scrollbar { display: none; }
  .np-opt { flex: none; font-size: .85rem; padding: 6px 12px; }
  .np-row { scroll-snap-type: x proximity; padding-inline-end: 32px; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); }
  .np-opt { scroll-snap-align: start; }
}

/* Zones */
.np-zsvg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.np-zone { fill: rgba(240, 160, 67, 0); stroke: rgba(255, 196, 120, 0); stroke-width: 2; vector-effect: non-scaling-stroke; transition: fill .25s, stroke .25s; }
.np-zone.is-hot { fill: rgba(240, 160, 67, .16); stroke: rgba(255, 196, 120, .8); filter: drop-shadow(0 0 6px rgba(255, 180, 90, .8)); }
.np-zone.is-selected { fill: rgba(240, 160, 67, .24); stroke: #ffc478; filter: drop-shadow(0 0 10px rgba(255, 180, 90, .9)); }
.np-markers { position: absolute; inset: 0; }
.np-marker { position: absolute; width: 48px; height: 48px; margin: -24px 0 0 -24px; padding: 0; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; }
.np-dot { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #f0a043; color: #1c1003; font: 800 .85rem/1 system-ui, sans-serif; border: 3px solid #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .5); transition: transform .15s; }
.np-marker.sev-high .np-dot { background: #ff7a6b; }
.np-marker.sev-low .np-dot { background: #9fd2ff; }
.np-marker:hover .np-dot, .np-marker[aria-expanded="true"] .np-dot { transform: scale(1.15); }
.np-marker:focus-visible { outline: none; }
.np-marker:focus-visible .np-dot { outline: 3px solid var(--n-focus, #8fd3ff); outline-offset: 3px; }

.np-zpanel { position: absolute; z-index: 6; top: 12px; right: 12px; bottom: 12px; width: min(360px, 42%); overflow: auto; background: var(--n-surface, #19242c); color: var(--n-ink, #eef2f4); border: 1px solid var(--n-line, rgba(255, 255, 255, .15)); border-radius: 16px; padding: 16px 18px; box-shadow: 0 16px 40px rgba(0, 0, 0, .45); }
.np-zp-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.np-zp-head h2 { font-size: 1.2rem; margin: 0; }
.np-zp-close { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--n-line, rgba(255, 255, 255, .2)); background: transparent; color: inherit; font-size: 1.4rem; cursor: pointer; }
.np-zp-label { display: inline-block; margin: 8px 0 10px; font-size: .75rem; font-weight: 700; color: #1c1003; background: var(--n-draft, #ffd166); padding: 2px 8px; border-radius: 6px; }
.np-zp-next { font-weight: 600; }
.np-zp-ex img { width: 100%; border-radius: 10px; display: block; }
.np-zp-ex figcaption { font-size: .78rem; color: var(--n-muted, #b4c0c8); margin-top: 4px; }
.np-ba { position: relative; border-radius: 12px; overflow: hidden; }
.np-ba img { display: block; width: 100%; }
.np-ba-after { position: absolute; inset: 0; height: 100%; object-fit: cover; clip-path: inset(0 0 0 var(--cut, 50%)); }
.np-ba-line { position: absolute; top: 0; bottom: 0; left: var(--cut, 50%); width: 3px; margin-left: -1px; background: #fff; }
.np-ba-range { width: 100%; min-height: 44px; accent-color: var(--n-accent, #f0a043); }
.np-ba-cap { font-size: .78rem; color: var(--n-muted, #b4c0c8); }
@media (max-width: 900px) {
  .np-zpanel { position: fixed; left: 0; right: 0; top: auto; bottom: 0; width: auto; max-height: 72vh; border-radius: 18px 18px 0 0; padding: 14px 16px calc(84px + env(safe-area-inset-bottom)); z-index: 60; }
  .np-zpanel::before { content: ""; display: block; width: 44px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .3); margin: -4px auto 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .np-stage, .np-img, .np-vignette, .np-zone, .np-dot { transition: none !important; }
}
/* Host copy dropped into the narrow card always stacks to one column. */
.np-zp-body dl { display: block !important; margin: 0 0 12px; }
.np-zp-body dt { margin-top: 10px; }
.np-zp-body dd { margin: 2px 0 0; }
.np-zp-body p:last-child { margin-bottom: 0; }
/* The card scrolls when the copy is longer than the frame; the fade says there's more. */
.np-zpanel { overscroll-behavior: contain; }
.np-zp-fade { position: sticky; bottom: -16px; height: 36px; margin: -36px -18px -16px; background: linear-gradient(rgba(25, 36, 44, 0), var(--n-surface, #19242c) 85%); pointer-events: none; transition: opacity .2s; }
.np-zpanel.is-end .np-zp-fade { opacity: 0; }
@media (max-width: 900px) { .np-zp-fade { bottom: calc(-84px - env(safe-area-inset-bottom)); margin-bottom: calc(-84px - env(safe-area-inset-bottom)); } }
