/* light-theme: manual
   nexpal.html "Der NexPal-Loop" ring (assets/js/nexpal-loop.js), sticker style.
   The three step cards stay in the markup for no-JS and are hidden here. */

.has-np-loop .nexpal-cycle-track,
.has-np-loop .nexpal-cycle-loop-note { display: none; }

.np-loop {
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  align-items: center;
  gap: 2.5rem;
  max-width: 980px;
  margin: 1.4rem auto 2.2rem;
}

.np-ring { position: relative; width: 100%; aspect-ratio: 1; }
.np-ring svg { width: 100%; height: 100%; display: block; }
.np-ring-base { fill: none; stroke: rgba(252, 239, 220, 0.12); stroke-width: 14; }
.np-ring-fill {
  fill: none;
  stroke: var(--np-orange, #f08a3c);
  stroke-width: 14;
  stroke-linecap: round;
  filter: drop-shadow(0 0 8px rgba(240, 138, 60, 0.6));
}

.np-loop.is-reset .np-ring-fill { stroke: var(--np-teal, #2bb3c0); filter: drop-shadow(0 0 8px rgba(43, 179, 192, 0.8)); }

.np-center {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  justify-items: center;
  transform: translate(-50%, -50%);
  text-align: center;
}
.np-center-num { font: 700 3.2rem/1 var(--np-head, "Fredoka", sans-serif); color: var(--np-cream, #fcefdc); }
.np-center small { color: var(--np-muted, #e3cdb4); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.72rem; }

.np-node {
  position: absolute;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 3px solid var(--np-rim, #2a170b);
  background: var(--np-panel-2, #1a2a2e);
  color: var(--np-muted, #e3cdb4);
  font-size: 1.3rem;
  cursor: pointer;
  transform: translate(-50%, -50%);
  box-shadow: 4px 4px 0 var(--np-shadow, #0b0603);
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.np-node span {
  position: absolute;
  top: -10px;
  right: -10px;
  padding: 0.1rem 0.4rem;
  border: 2px solid var(--np-rim, #2a170b);
  border-radius: 999px;
  background: var(--np-cream, #fcefdc);
  color: var(--np-rim, #2a170b);
  font: 700 0.7rem var(--np-head, "Fredoka", sans-serif);
}
.np-node.is-done { color: var(--np-cream, #fcefdc); }
.np-node.is-active {
  background: var(--np-orange, #f08a3c);
  color: #fff;
  transform: translate(-50%, -50%) scale(1.12);
  box-shadow: 5px 5px 0 var(--np-orange-dark, #8a3f14);
}

.np-paw {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--np-cream, #fcefdc);
  color: var(--np-orange-dark, #8a3f14);
  font-size: 0.85rem;
  box-shadow: 0 0 0 3px var(--np-rim, #2a170b), 0 0 16px rgba(240, 138, 60, 0.7);
  pointer-events: none;
}

.np-cards { display: grid; grid-template-areas: "c"; }
.np-card {
  grid-area: c;
  padding: 1.5rem 1.6rem;
  border: 3px solid var(--np-rim, #2a170b);
  border-radius: 22px;
  background: linear-gradient(170deg, #1f3a3f, var(--np-panel-2, #1a2a2e));
  box-shadow: 7px 7px 0 var(--np-shadow, #0b0603);
  opacity: 0;
  transform: translateY(10px) rotate(-1deg);
  transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.np-card.is-active { opacity: 1; transform: rotate(-0.6deg); }
.np-card-step { color: var(--np-orange, #f08a3c); font: 700 0.78rem var(--np-head, "Fredoka", sans-serif); letter-spacing: 0.08em; text-transform: uppercase; }
.np-card h3 { margin: 0.3rem 0 0.5rem; color: var(--np-cream, #fcefdc); font: 700 1.7rem var(--np-head, "Fredoka", sans-serif); }
.np-card p { margin: 0; color: var(--np-muted, #e3cdb4); line-height: 1.6; font-size: 1.02rem; }

@media (max-width: 760px) {
  .np-loop { grid-template-columns: 1fr; gap: 1.5rem; }
  .np-ring { max-width: 300px; margin: 0 auto; }
  .np-node { width: 54px; height: 54px; font-size: 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .np-card, .np-node { transition: none; }
}

html[data-theme="light"] .np-ring-base { stroke: rgba(42, 23, 11, 0.12); }
html[data-theme="light"] .np-center-num { color: var(--np-rim, #2a170b); }
html[data-theme="light"] .np-center small { color: #7a4a2a; }
html[data-theme="light"] .np-card { background: linear-gradient(170deg, #f0fbfc, #dff3f5); }
html[data-theme="light"] .np-card h3 { color: var(--np-rim, #2a170b); }
html[data-theme="light"] .np-card p { color: #3d2a1c; }
html[data-theme="light"] .np-node { background: #fff8ee; color: #7a4a2a; }
