/* =========================================================
   Navigatie-prototypes (?nav=scherven | zegel | ring | wereld | orbitaal) — zie js/nav-proto.js
   Tijdelijk: de gekozen variant verhuist naar style.css.
   ========================================================= */

.nav-proto .altimeter { display: none; }

.np {
  position: fixed;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  font: 400 10px/1.2 var(--f-mono);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .72);
  text-shadow: 0 1px 3px rgba(0, 0, 0, .6);
  animation: fade-in 1.2s 2.4s both;
}

/* ---------- het vreemde schrift, dat zich letter voor letter vertaalt ---------- */
.alien { display: inline-flex; white-space: nowrap; }
.alien__ch { position: relative; display: inline-block; }
.alien__ch b { font-weight: inherit; opacity: 0; }
.alien__ch svg {
  position: absolute;
  left: calc(50% - .1em);            /* letter-spacing zit rechts van de letter */
  top: 50%;
  width: .74em;
  height: 1.04em;
  transform: translate(-50%, -50%);
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: miter;
  transition: opacity .12s ease;
}
/* tijdens het ontcijferen flakkert elke letter door vreemde tekens (amber), dan klikt hij vast */
.alien__ch.is-flicker svg {
  stroke: #ffb35c;
  filter: drop-shadow(0 0 1.5px rgba(255, 150, 60, .95)) drop-shadow(0 0 4px rgba(255, 110, 30, .5));
  transition: none;
}
.alien__ch.is-locked b { opacity: 1; animation: np-decode .55s both; }
.alien__ch.is-locked svg { opacity: 0; }
@keyframes np-decode {
  0%   { opacity: 0; color: #ffb35c; text-shadow: 0 0 8px rgba(255, 140, 50, .95); }
  35%  { opacity: 1; color: #ffc887; text-shadow: 0 0 6px rgba(255, 140, 50, .7); }
  100% { opacity: 1; }
}

/* ---------- gedeeld: links, labels, zegels, "waar ben je" ---------- */
.np-mark {
  position: absolute;
  left: 0; top: 0;
  display: block;
  width: 36px; height: 36px;
  margin: -18px 0 0 -18px;
  border-radius: 50%;
  color: rgba(255, 255, 255, .5);
  text-decoration: none;
  pointer-events: auto;
  transition: opacity .5s ease, color .4s ease;
}
.np-mark:focus-visible { outline: 1px solid rgba(255, 179, 92, .7); outline-offset: 2px; }
.np-mark__label {
  position: absolute;
  right: calc(100% + 4px);
  top: 50%;
  transform: translateY(-50%);
  opacity: .6;
  transition: opacity .4s ease, color .4s ease;
}
.np-mark:hover, .np-mark:focus-visible { color: #fff; }
.np-mark:hover .np-mark__label,
.np-mark:focus-visible .np-mark__label { opacity: 1; }

.np-seal { display: block; width: 100%; height: 100%; overflow: visible; fill: none; stroke: rgba(200, 212, 234, .62); stroke-linecap: square; transition: stroke .5s ease, filter .5s ease; }
.np-seal__ring { stroke-width: 1; }
.np-seal__sig { stroke-width: 1.5; }
.np-mark:hover .np-seal,
.np-mark:focus-visible .np-seal,
.np-mark.is-active .np-seal {
  stroke: #ffb35c;
  filter: drop-shadow(0 0 2px rgba(255, 150, 60, .95)) drop-shadow(0 0 6px rgba(255, 110, 30, .6));
}

.np-now {
  position: absolute;
  left: 0; top: 0;
  width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 7px;
  transition: opacity .4s ease;
}
.np-now__name { display: none; font-size: 11px; color: #fff; }
.np-now__name.is-on { display: inline-flex; }

/* =========================================================
   ZEGEL
   ========================================================= */
.np-dial {
  position: absolute;
  left: 0; top: 0;
  overflow: visible;
  fill: none;
  stroke: rgba(200, 212, 234, .5);
  stroke-linecap: square;
}
.np-dial__script > path[transform] { stroke-width: 1.25; stroke-linecap: round; }
.np-dial__script { opacity: .75; }
.np-dial__script--lit {
  opacity: 1;
  stroke: #ffb35c;
  filter: drop-shadow(0 0 1.5px rgba(255, 150, 60, .95)) drop-shadow(0 0 5px rgba(255, 110, 30, .55));
  animation: core-breathe 6s ease-in-out infinite;
}
.np-dial__inner { opacity: .55; }
.np-dial__lane { opacity: .75; }
.np-dial__mark .np-seal__ring { stroke-width: .7; }
.np-dial__mark .np-seal__sig { stroke-width: 1.15; }
.np-dial__mark { transition: stroke .5s ease, filter .5s ease; }
.np-dial__mark.is-active,
.np-dial__mark.is-hot {
  stroke: #ffb35c;
  filter: drop-shadow(0 0 1.5px rgba(255, 150, 60, .95)) drop-shadow(0 0 5px rgba(255, 110, 30, .6));
}
.np-dial__mark.is-active { animation: ring-breathe 5s ease-in-out infinite; }
.np-dial__pointer { stroke: #ffb35c; filter: drop-shadow(0 0 2px rgba(255, 150, 60, .9)); }
.np-dial__pointer path:first-child { fill: #ffb35c; stroke: none; }

.np-dial__link .np-mark__label { right: calc(100% + 2px); }
.np-dial__link.is-active .np-mark__label { opacity: 0; }
.np-dial__link.is-gone { opacity: 0; pointer-events: none; }
.np-dial__now { margin-top: -10px; padding-right: 12px; }
.np--zegel.is-small .np-mark__label { display: none; }
.np--zegel.is-small .np-dial__now { padding-right: 0; }

/* =========================================================
   RING
   ========================================================= */
.np-ring__key {
  position: absolute;
  right: 28px;
  top: 50%;
  width: 64px; height: 64px;
  margin-top: -32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  cursor: pointer;
  pointer-events: auto;
}
.np-ring__key:focus-visible { outline: 1px solid rgba(255, 179, 92, .7); outline-offset: 3px; }
.np-ring__key svg { display: block; width: 100%; height: 100%; overflow: visible; fill: none; stroke: rgba(200, 212, 234, .6); stroke-linecap: square; }
.np-ring__spin { animation: np-spin 120s linear infinite; }
.np--ring.is-open .np-ring__spin { animation-duration: 20s; }
@keyframes np-spin { to { transform: rotate(360deg); } }
.np-ring__sig {
  stroke: #ffb35c;
  stroke-width: 1.5;
  filter: drop-shadow(0 0 2px rgba(255, 150, 60, .95)) drop-shadow(0 0 7px rgba(255, 110, 30, .6));
  animation: core-breathe 6s ease-in-out infinite;
}
.np-ring__key.is-swap .np-ring__sig { animation: np-swap .7s ease both, core-breathe 6s .7s ease-in-out infinite; }
@keyframes np-swap {
  0% { opacity: 0; } 20% { opacity: .9; } 30% { opacity: .2; } 45% { opacity: 1; } 55% { opacity: .5; } 100% { opacity: 1; }
}
.np-ring__key:hover .np-ring__inner { stroke: rgba(255, 179, 92, .8); }
.np-ring__inner { transition: stroke .4s ease; }

.np-ring__now { left: auto; top: 50%; right: 106px; transform: translateY(-50%); }
.np--ring.is-open .np-ring__now { opacity: 0; }

.np-ring__menu {
  position: absolute;
  right: 60px;
  top: 50%;
  width: 0; height: 0;
}
.np-ring__arcs {
  position: absolute;
  left: -220px; top: -220px;
  width: 440px; height: 440px;
  overflow: visible;
  fill: none;
  stroke: rgba(200, 212, 234, .5);
  stroke-linecap: square;
  pointer-events: none;
}
.np-ring__arcs path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .35s ease; }
.np-ring__g { transform-origin: 0 0; transform: rotate(-26deg); transition: transform .4s ease; }
.np-ring__g--b { transform: rotate(18deg); }
.np-ring__g--c { transform: scale(.4); }
.np--ring.is-open .np-ring__arcs path { stroke-dashoffset: 0; transition: stroke-dashoffset .9s cubic-bezier(.2, .7, .2, 1); }
.np--ring.is-open .np-ring__g--b path { transition-delay: .12s; }
.np--ring.is-open .np-ring__g--c path { transition-delay: .05s; }
.np--ring.is-open .np-ring__g { transform: none; transition: transform 1.1s cubic-bezier(.2, .7, .2, 1); }
.np-ring__g--c { opacity: .6; }

.np-ring__link {
  width: 40px; height: 40px;
  margin: -20px 0 0 -20px;
  opacity: 0;
  pointer-events: none;
  transform: translate(0, 0) scale(.2);
  transition: transform .3s ease, opacity .2s ease;
}
.np--ring.is-open .np-ring__link {
  opacity: 1;
  pointer-events: auto;
  transform: translate(var(--x), var(--y)) scale(1);
  transition: transform .6s cubic-bezier(.2, .8, .2, 1) calc(.15s + var(--i) * 50ms), opacity .3s calc(.15s + var(--i) * 50ms), color .4s ease;
}
.np-ring__link.is-chosen .np-seal { stroke: #ffd09a; filter: drop-shadow(0 0 3px rgba(255, 170, 80, 1)) drop-shadow(0 0 12px rgba(255, 110, 30, .9)); }
.np-ring__link .np-mark__label { opacity: .85; }

.np--ring.is-small .np-ring__key { top: auto; bottom: 22px; right: 14px; margin: 0; width: 52px; height: 52px; }
.np--ring.is-small .np-ring__now { top: auto; bottom: 40px; right: 78px; transform: none; }
/* telefoon: de ring opent als hele cirkel midden in beeld, namen onder de tekens */
.np--ring.is-small .np-ring__menu { top: 50%; right: auto; left: 50%; }
.np--ring.is-small .np-ring__menu::before {
  content: "";
  position: absolute;
  left: -190px; top: -190px;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .88), rgba(0, 0, 0, .75) 72%, transparent);
  opacity: 0;
  transform: scale(.6);
  transition: opacity .3s ease, transform .3s ease;
}
.np--ring.is-small.is-open .np-ring__menu::before { opacity: 1; transform: none; transition: opacity .6s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.np--ring.is-small .np-ring__link .np-mark__label { right: auto; left: 50%; top: calc(100% + 3px); transform: translateX(-50%); }

/* =========================================================
   WERELD
   ========================================================= */
.np-world__cv { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.np-world__link { width: 44px; height: 44px; margin: -22px 0 0 -22px; }
.np-world__link .np-mark__label { opacity: .42; right: calc(100% - 4px); }
.np-world__link.is-active .np-mark__label { opacity: 1; color: #fff; }
.np-world__link:hover .np-mark__label,
.np-world__link:focus-visible .np-mark__label { opacity: 1; }
.np-world__link.is-under { color: rgba(246, 234, 208, .7); }
.np-world__link.is-under.is-active .np-mark__label { color: #f6ead0; }
.np--wereld.is-small .np-world__link:not(.is-active) .np-mark__label { display: none; }

/* =========================================================
   SCHERVEN
   ========================================================= */
.np-shards__gl { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.np-shard {
  width: calc(var(--r, 20px) * 2);
  height: calc(var(--r, 20px) * 2);
  margin: calc(var(--r, 20px) * -1) 0 0 calc(var(--r, 20px) * -1);
}
.np-shard .np-mark__label { opacity: .4; }
.np-shard.is-behind .np-mark__label { opacity: .14; }
.np-shard.is-active .np-mark__label { opacity: 0; }
.np-shard:hover .np-mark__label,
.np-shard:focus-visible .np-mark__label { opacity: 1; }
.np-shards__now { align-items: center; }
.np--scherven.is-small .np-shards__now { align-items: flex-end; }
.np--scherven.is-small .np-shard .np-mark__label { display: none; }

/* =========================================================
   ORBITAAL
   ========================================================= */
.np-orb__at { position: absolute; left: 0; top: 0; width: 0; height: 0; }
.np-orb__gl { position: absolute; left: 0; top: 0; pointer-events: none; }
/* de kern: een korrel amber in het midden van de wolk */
.np-orb__core {
  position: absolute;
  left: -2.5px; top: -2.5px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #ffe2b8;
  box-shadow: 0 0 3px 1px rgba(255, 170, 80, .9), 0 0 12px 3px rgba(255, 110, 30, .35);
  animation: core-breathe 6s ease-in-out infinite;
  pointer-events: none;
}
/* de meetflits als de wolk na een klik in één punt instort */
.np-orb__flash {
  position: absolute;
  left: -90px; top: -90px;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 236, 205, .95), rgba(255, 150, 60, .45) 30%, rgba(255, 110, 30, 0) 70%);
  opacity: 0;
  pointer-events: none;
}
.np-orb__flash.is-on { animation: np-orb-flash .7s .24s ease-out both; }
@keyframes np-orb-flash {
  0%   { opacity: 0; transform: scale(.15); }
  12%  { opacity: 1; }
  100% { opacity: 0; transform: scale(1.3); }
}
/* de vonk die de steen in tunnelt: de kop staat op (0, 0), JS schuift en draait hem */
.np-orb__spark {
  position: absolute;
  left: -60px; top: -1.5px;
  width: 60px; height: 3px;
  border-radius: 3px;
  transform-origin: 100% 50%;
  background: linear-gradient(90deg, rgba(255, 110, 30, 0), rgba(255, 160, 70, .85) 80%, #fff4e0);
  box-shadow: 0 0 8px 1px rgba(255, 140, 50, .7);
  opacity: 0;
  pointer-events: none;
}
/* de inslag: een amber flits waar de vonk het kanaal raakt */
.np-orb__hit {
  position: absolute;
  width: 110px; height: 110px;
  margin: -55px 0 0 -55px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 244, 222, .95), rgba(255, 160, 70, .55) 28%, rgba(255, 110, 30, 0) 72%);
  opacity: 0;
  pointer-events: none;
}
.np-orb__hit.is-on { animation: np-orb-hit .75s ease-out both; }
@keyframes np-orb-hit {
  0%   { opacity: 0; transform: scale(.2); }
  10%  { opacity: 1; }
  100% { opacity: 0; transform: scale(1.5, 2.4); }
}
.np-orb__det { position: absolute; overflow: visible; fill: none; stroke: rgba(200, 212, 234, .34); stroke-linecap: square; pointer-events: none; }
.np-orb__det g { transition: stroke .5s ease, filter .5s ease; }
.np-orb__det g.is-active { stroke: rgba(255, 179, 92, .5); }
.np-orb__det g.is-hot { stroke: #ffb35c; filter: drop-shadow(0 0 2px rgba(255, 150, 60, .9)); }

/* groot scherm: elke link is een onzichtbare taartpunt rond de wolk, met het zegel erin */
.np-orb__link {
  position: absolute;
  left: 0; top: 0;
  display: block;
  color: rgba(255, 255, 255, .5);
  text-decoration: none;
  outline: none;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
}
.np-orb__link .np-seal { position: absolute; left: var(--sx); top: var(--sy); width: 26px; height: 26px; margin: -13px 0 0 -13px; }
.np-orb__link.is-active .np-seal { stroke: rgba(255, 179, 92, .7); }
.np-orb__link.is-hot .np-seal {
  stroke: #ffb35c;
  filter: drop-shadow(0 0 2px rgba(255, 150, 60, .95)) drop-shadow(0 0 6px rgba(255, 110, 30, .6));
}
.np-orb__link .np-mark__label { display: none; }
.np-orb__now { align-items: center; }
.np-orb__key, .np-orb__veil { display: none; }

/* telefoon: klein in de hoek; tikken opent hem groot midden in beeld */
.np--orbitaal.is-small .np-orb__key {
  display: block;
  position: absolute;
  left: 0; top: 0;
  width: 84px; height: 84px;
  margin: -42px 0 0 -42px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  cursor: pointer;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
}
.np--orbitaal.is-small .np-orb__key svg { display: block; width: 100%; height: 100%; overflow: visible; fill: none; stroke: rgba(200, 212, 234, .42); stroke-linecap: square; transition: opacity .4s ease; }
.np--orbitaal.is-small.is-open .np-orb__key svg { opacity: 0; }
.np--orbitaal.is-small .np-orb__veil {
  display: block;
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 46%, rgba(0, 0, 0, .92), rgba(0, 0, 0, .78) 42%, rgba(0, 0, 0, .35) 80%);
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s ease;
}
.np--orbitaal.is-small.is-open .np-orb__veil { opacity: 1; transition-duration: .7s; }
.np--orbitaal.is-small .np-orb__det { opacity: 0; transition: opacity .3s ease; }
.np--orbitaal.is-small.is-open .np-orb__det { opacity: 1; transition: opacity .8s .15s ease; }
.np--orbitaal.is-small .np-orb__link {
  width: 44px; height: 44px;
  margin: -22px 0 0 -22px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility 0s .25s;
}
.np--orbitaal.is-small.is-open .np-orb__link { opacity: 1; visibility: visible; transition: opacity .5s calc(.2s + var(--i) * 70ms) ease, visibility 0s; }
.np--orbitaal.is-small .np-orb__link .np-seal { left: 50%; top: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px; }
.np--orbitaal.is-small .np-orb__link .np-mark__label { display: inline-flex; right: auto; left: 50%; top: calc(100% - 2px); transform: translateX(-50%); opacity: .9; color: #fff; }
.np--orbitaal.is-small .np-orb__link.is-up .np-mark__label { top: auto; bottom: calc(100% - 2px); }
.np--orbitaal.is-small .np-orb__now { align-items: flex-end; transition: opacity .3s ease; }
.np--orbitaal.is-small.is-open .np-orb__now { opacity: 0; }
