
.np-mascot {
  --np-mascot-primary: var(--np-primary, #635bff);
  --np-mascot-accent: var(--np-accent, #ff7a59);
  --np-mascot-ink: #080810;
  --np-mascot-eye: #fff;
  --np-mascot-cape: #9b1d36;
  --np-mascot-cape-edge: #2a0d16;
  --np-mascot-ease-out: var(--np-ease-out, cubic-bezier(0.23, 1, 0.32, 1));
  --np-mascot-ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  position: relative;
  display: inline-block;
  width: 64px;
  vertical-align: top;
}

.np-mascot--lg {
  width: clamp(160px, 40vw, 240px);
}

.np-mascot-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.np-mascot-scr { fill: var(--np-mascot-screen, var(--np-mascot-primary)); }
.np-mascot-std { fill: var(--np-mascot-primary); stroke: var(--np-mascot-accent); stroke-width: 2; stroke-linejoin: round; }
.np-mascot-out { fill: none; stroke: var(--np-mascot-accent); stroke-width: 3; stroke-linejoin: round; }
.np-mascot-ink { fill: var(--np-mascot-ink); }
.np-mascot-white { fill: var(--np-mascot-eye); }
.np-mascot-lid-line,
.np-mascot-arc { fill: none; stroke: var(--np-mascot-ink); stroke-linecap: round; }
.np-mascot-lid-line { stroke-width: 3; }
.np-mascot-arc { stroke-width: 4.5; }
.np-mascot-code { fill: none; stroke: var(--np-mascot-accent); stroke-width: 4; stroke-linecap: round; }
.np-mascot-code--alt { stroke: var(--np-mascot-eye); stroke-opacity: 0.9; }
.np-mascot-cursor { fill: var(--np-mascot-eye); }

.np-mascot-face,
.np-mascot-bob,
.np-mascot-pupil {
  transition: transform 160ms var(--np-mascot-ease-out);
}

.np-mascot-face { transition: transform 160ms var(--np-mascot-ease-out), opacity 150ms ease-out; }

.np-mascot-brow {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 200ms var(--np-mascot-ease-out);
}

.np-mascot-eyeball {
  transform-box: fill-box;
  transform-origin: center;
  transition: opacity 150ms ease-out;
}

.np-mascot-lids,
.np-mascot-arcs {
  opacity: 0;
  transition: opacity 150ms ease-out;
}

.np-mascot-code-lines { display: none; }

.np-mascot[data-look="left"]  .np-mascot-face { transform: translate(-4px, 0); }
.np-mascot[data-look="right"] .np-mascot-face { transform: translate(4px, 0); }
.np-mascot[data-look="down"]  .np-mascot-face { transform: translate(0, 4px); }

.np-mascot[data-look="left"]  .np-mascot-eye--l .np-mascot-pupil { transform: translate(-8.5px, 0); }
.np-mascot[data-look="left"]  .np-mascot-eye--r .np-mascot-pupil { transform: translate(-1.5px, 0); }
.np-mascot[data-look="right"] .np-mascot-eye--l .np-mascot-pupil { transform: translate(1.5px, 0); }
.np-mascot[data-look="right"] .np-mascot-eye--r .np-mascot-pupil { transform: translate(8.5px, 0); }
.np-mascot[data-look="down"]  .np-mascot-eye--l .np-mascot-pupil { transform: translate(-2.5px, 5px); }
.np-mascot[data-look="down"]  .np-mascot-eye--r .np-mascot-pupil { transform: translate(2.5px, 5px); }


.np-mascot[data-state="idle"] .np-mascot-eyeball {
  animation: np-mascot-blink 11s linear infinite;
  animation-delay: var(--np-mascot-blink-delay, 0s);
}

@keyframes np-mascot-blink {
  0%, 26.4%, 27.6%, 62.9%, 64.1%, 94.9%, 96.1%, 100% { transform: scaleY(1); }
  27%, 63.5%, 95.5% { transform: scaleY(0.1); }
}

.np-mascot[data-state="thinking"] .np-mascot-face { opacity: 0; }
.np-mascot[data-state="thinking"] .np-mascot-code-lines { display: inline; }

.np-mascot[data-state="thinking"] .np-mascot-code {
  stroke-dasharray: 1;
  animation: np-mascot-type 3.6s linear infinite both;
  animation-delay: calc(var(--i) * 0.14s);
}

.np-mascot[data-state="thinking"] .np-mascot-cursor {
  animation: np-mascot-caret 1s steps(1) infinite;
}

@keyframes np-mascot-type {
  0% { stroke-dashoffset: 1; opacity: 0; }
  1% { opacity: 1; }
  12%, 70% { stroke-dashoffset: 0; opacity: 1; }
  80%, 100% { stroke-dashoffset: 0; opacity: 0; }
}

@keyframes np-mascot-caret {
  50% { opacity: 0; }
}

.np-mascot[data-state="talking"] .np-mascot-lids--talking { opacity: 1; }
.np-mascot[data-state="talking"] .np-mascot-brow { transform: translateY(-2px); }
.np-mascot[data-state="talking"] .np-mascot-eye--l .np-mascot-pupil { transform: translate(-3.5px, -1.5px); }
.np-mascot[data-state="talking"] .np-mascot-eye--r .np-mascot-pupil { transform: translate(3.5px, -1.5px); }
.np-mascot[data-state="talking"] .np-mascot-bob {
  animation: np-mascot-bob 1.2s var(--np-mascot-ease-in-out) infinite;
}

@keyframes np-mascot-bob {
  50% { transform: translateY(-1.5px); }
}

.np-mascot[data-state="happy"] .np-mascot-eyeball { opacity: 0; }
.np-mascot[data-state="happy"] .np-mascot-arcs { opacity: 1; }
.np-mascot[data-state="happy"] .np-mascot-brow { transform: translateY(-3px); }

.np-mascot[data-state="sad"] .np-mascot-lids--sad { opacity: 1; }
.np-mascot[data-state="sad"] .np-mascot-brow--l { transform: translateY(1.5px) rotate(-10deg); }
.np-mascot[data-state="sad"] .np-mascot-brow--r { transform: translateY(1.5px) rotate(10deg); }
.np-mascot[data-state="sad"] .np-mascot-eye--l .np-mascot-pupil { transform: translate(-2px, 3px); }
.np-mascot[data-state="sad"] .np-mascot-eye--r .np-mascot-pupil { transform: translate(2px, 3px); }

.np-mascot-bubble {
  position: absolute;
  top: 0;
  left: calc(100% + 10px);
  z-index: 5;
  width: max-content;
  max-width: min(16rem, calc(100vw - 9rem));
  padding: 10px 40px 10px 14px;
  border: 1px solid var(--np-border, #2e3347);
  border-radius: var(--np-radius-md, 12px);
  background: var(--np-surface-2, #232738);
  color: var(--np-text, #eceef6);
  font-size: 0.875rem;
  line-height: 1.45;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  display: none;
  opacity: 0;
  transform: translateX(-4px) scale(0.97);
  transform-origin: left top;
  transition: opacity 120ms ease-out, transform 120ms var(--np-mascot-ease-out), display 120ms allow-discrete;
}

.np-mascot-bubble::before {
  content: "";
  position: absolute;
  top: 14px;
  left: -6px;
  width: 10px;
  height: 10px;
  border-left: 1px solid var(--np-border, #2e3347);
  border-bottom: 1px solid var(--np-border, #2e3347);
  background: inherit;
  transform: rotate(45deg);
}

.np-mascot-bubble[data-open] {
  display: block;
  opacity: 1;
  transform: none;
  transition: opacity 180ms ease-out, transform 180ms var(--np-mascot-ease-out), display 180ms allow-discrete;
}

@starting-style {
  .np-mascot-bubble[data-open] { opacity: 0; transform: translateX(-4px) scale(0.97); }
  .np-mascot--bubble-start .np-mascot-bubble[data-open] { transform: translateX(4px) scale(0.97); }
}

.np-mascot-bubble-text {
  margin: 0;
}

.np-mascot-bubble-close {
  position: absolute;
  top: 4px;
  right: 4px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: var(--np-radius-sm, 8px);
  background: transparent;
  color: var(--np-muted, #9aa0b5);
  cursor: pointer;
  transition: color 160ms ease, background-color 160ms ease;
}

.np-mascot-bubble-close[hidden] { display: none; }

.np-mascot-bubble-close svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
}

.np-mascot-bubble-close:focus-visible {
  outline: 2px solid var(--np-accent, #ff7a59);
  outline-offset: 1px;
}

@media (hover: hover) and (pointer: fine) {
  .np-mascot-bubble-close:hover {
    color: var(--np-text, #eceef6);
    background: var(--np-surface-3, #2a2f45);
  }
}

@media (max-width: 599px) {
  .np-mascot--lg .np-mascot-bubble,
  .np-mascot--lg.np-mascot--bubble-start .np-mascot-bubble {
    top: calc(100% + 10px);
    left: 0;
    right: auto;
    width: max(100%, 12rem);
    max-width: none;
    transform: translateY(-4px) scale(0.97);
    transform-origin: left top;
  }

  .np-mascot--lg .np-mascot-bubble[data-open] { transform: none; }

  @starting-style {
    .np-mascot--lg .np-mascot-bubble[data-open] { transform: translateY(-4px) scale(0.97); }
  }

  .np-mascot--lg .np-mascot-bubble::before,
  .np-mascot--lg.np-mascot--bubble-start .np-mascot-bubble::before {
    top: -6px;
    left: 24px;
    right: auto;
    transform: rotate(135deg);
  }
}

.np-mascot--bubble-start .np-mascot-bubble {
  left: auto;
  right: calc(100% + 10px);
  transform: translateX(4px) scale(0.97);
  transform-origin: right top;
}

.np-mascot--bubble-start .np-mascot-bubble[data-open] { transform: none; }

.np-mascot--bubble-start .np-mascot-bubble::before {
  left: auto;
  right: -6px;
  transform: rotate(-135deg);
}

.np-mascot-hit {
  position: absolute;
  inset: 0;
  z-index: 1;
  padding: 0;
  border: 0;
  border-radius: var(--np-radius-sm, 8px);
  background: transparent;
  cursor: pointer;
}

.np-mascot-hit:focus-visible {
  outline: 2px solid var(--np-mascot-accent);
  outline-offset: 3px;
}

.np-mascot--interactive .np-mascot-svg {
  transition: transform 160ms var(--np-mascot-ease-out);
}

.np-mascot--interactive:has(.np-mascot-hit:active) .np-mascot-svg {
  transform: scale(0.97);
}

.np-mascot-mute {
  position: absolute;
  top: -8px;
  right: -8px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 1px solid var(--np-border, #2e3347);
  border-radius: 50%;
  background: var(--np-surface-2, #232738);
  color: var(--np-muted, #9aa0b5);
  cursor: pointer;
  transition: color 160ms ease, background-color 160ms ease;
}

.np-mascot-mute svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.np-mascot-mute-slash { display: none; }
.np-mascot-mute[aria-pressed="true"] .np-mascot-mute-slash { display: inline; }
.np-mascot-mute[aria-pressed="true"] { color: var(--np-mascot-accent); }

.np-mascot-mute:focus-visible {
  outline: 2px solid var(--np-mascot-accent);
  outline-offset: 2px;
}

@media (hover: hover) and (pointer: fine) {
  .np-mascot-mute:hover {
    color: var(--np-text, #eceef6);
    background: var(--np-surface-3, #2a2f45);
  }
}

.np-mascot[data-muted] * { animation: none !important; }
.np-mascot[data-muted] .np-mascot-bubble { display: none !important; }

.np-mascot-dock {
  position: fixed;
  left: max(12px, env(safe-area-inset-left));
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 40;
}

.np-mascot-dock .np-mascot { width: 56px; }

.np-mascot-dock .np-mascot-bubble {
  top: auto;
  bottom: 0;
  transform-origin: left bottom;
}

.np-mascot-dock .np-mascot-bubble::before {
  top: auto;
  bottom: 14px;
}

@media (max-width: 1279px) {
  body:has(.np-mascot-dock) .page--lesson {
    padding-bottom: calc(var(--np-space-8, 64px) + 64px);
  }

  body:has(#cookieBanner) .np-mascot-dock {
    bottom: 196px;
  }
}

@media (max-width: 640px) {
  body:has(#cookieBanner) .np-mascot-dock { bottom: 100px; }

  body:has(#cookieBanner.cookie-banner--collapsed) .np-mascot-dock {
    bottom: calc(max(8px, env(safe-area-inset-bottom)) + 64px);
  }
}

@media (min-width: 1280px) {
  .np-mascot-dock {
    top: 120px;
    bottom: auto;
    left: calc((100vw - 1040px) / 4 - 32px);
  }

  .np-mascot-dock .np-mascot { width: 64px; }

  .np-mascot-dock .np-mascot-bubble {
    top: calc(100% + 10px);
    bottom: auto;
    left: 0;
    right: auto;
    width: clamp(10rem, calc((100vw - 1040px) / 4 + 44px), 13rem);
    max-width: none;
    transform: translateY(-4px) scale(0.97);
    transform-origin: left top;
  }

  .np-mascot-dock .np-mascot-bubble[data-open] { transform: none; }

  @starting-style {
    .np-mascot-dock .np-mascot-bubble[data-open] { transform: translateY(-4px) scale(0.97); }
  }

  .np-mascot-dock .np-mascot-bubble::before {
    top: -6px;
    bottom: auto;
    left: 22px;
    right: auto;
    transform: rotate(135deg);
  }
}

.np-mascot-toast {
  position: fixed;
  left: max(16px, env(safe-area-inset-left));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 40;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.96);
  transform-origin: left bottom;
  transition: opacity 160ms ease-out, transform 160ms var(--np-ease-out, cubic-bezier(0.23, 1, 0.32, 1)),
    visibility 0s linear 160ms;
}

.np-mascot-toast[data-open] {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 220ms ease-out, transform 220ms var(--np-ease-out, cubic-bezier(0.23, 1, 0.32, 1)),
    visibility 0s;
}

.np-mascot-toast .np-mascot { width: 88px; }

.np-mascot-toast .np-mascot-bubble {
  top: auto;
  bottom: 0;
  padding-right: 14px;
  transform-origin: left bottom;
}

.np-mascot-toast .np-mascot-bubble::before {
  top: auto;
  bottom: 28px;
}

.np-mascot-toast .np-mascot-bubble-close { display: none; }

body:has(#cookieBanner) .np-mascot-toast { bottom: 196px; }

@media (max-width: 599px) {
  .np-mascot-toast { left: max(12px, env(safe-area-inset-left)); bottom: max(12px, env(safe-area-inset-bottom)); }
  .np-mascot-toast .np-mascot { width: 48px; }
  .np-mascot-toast .np-mascot-bubble { display: none !important; }
}

@media (max-width: 640px) {
  body:has(#cookieBanner) .np-mascot-toast { bottom: 100px; }
  body:has(#cookieBanner.cookie-banner--collapsed) .np-mascot-toast {
    bottom: calc(max(8px, env(safe-area-inset-bottom)) + 64px);
  }
}

.np-helper {
  position: fixed;
  left: max(16px, env(safe-area-inset-left));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 45;
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-end;
  gap: 12px;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.97);
  transform-origin: left bottom;
  transition: opacity 160ms ease-out, transform 160ms var(--np-ease-out, cubic-bezier(0.23, 1, 0.32, 1)),
    visibility 0s linear 160ms;
}

.np-helper[data-open] {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 220ms ease-out, transform 220ms var(--np-ease-out, cubic-bezier(0.23, 1, 0.32, 1)),
    visibility 0s;
}

.np-helper .np-mascot { width: 56px; flex: none; }

.np-helper__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(22rem, calc(100vw - 104px));
  max-height: min(72vh, 34rem);
  padding: 14px 16px 16px;
  border: 1px solid var(--np-border, #2e3347);
  border-radius: var(--np-radius-md, 12px);
  background: var(--np-surface-2, #232738);
  color: var(--np-text, #eceef6);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.np-helper__panel:focus { outline: none; }

.np-helper__panel::after {
  content: "";
  position: absolute;
  left: -6px;
  bottom: 18px;
  width: 10px;
  height: 10px;
  border-left: 1px solid var(--np-border, #2e3347);
  border-bottom: 1px solid var(--np-border, #2e3347);
  background: inherit;
  transform: rotate(45deg);
}

.np-helper__close {
  position: absolute;
  top: 6px;
  right: 6px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: var(--np-radius-sm, 8px);
  background: transparent;
  color: var(--np-muted, #9aa0b5);
  cursor: pointer;
  transition: color 160ms ease, background-color 160ms ease;
}

.np-helper__close svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
}

.np-helper__msg {
  margin: 0 36px 12px 0;
  font-size: 0.9375rem;
  line-height: 1.45;
}

.np-helper__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  overflow-y: auto;
  margin: -4px;
  padding: 4px;
}

.np-helper__body:empty { display: none; }

.np-helper__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.np-helper__actions .btn { min-height: 40px; }

.np-helper__actions--choices .btn { flex: 1 1 auto; }

.np-helper__back {
  align-self: flex-start;
  min-height: 32px;
  padding: 4px 0;
  border: 0;
  background: none;
  color: var(--np-muted, #9aa0b5);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: color 160ms ease;
}

.np-helper__scroll {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.np-helper__next {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--np-primary, #635bff);
  border-radius: var(--np-radius-md, 12px);
  background: var(--np-primary-soft-weak, rgba(99, 91, 255, 0.08));
  font-size: 0.875rem;
}

.np-helper__next-title { font-weight: 600; font-size: 0.9375rem; }

.np-helper__next .np-helper__actions { margin-top: 8px; align-items: center; }

.np-helper__next .chip { margin-left: 0; }

.np-helper__route-title {
  margin: 4px 0 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--np-muted, #9aa0b5);
}

.np-helper__route {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.np-helper__step {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 36px;
  padding: 6px 10px;
  border: 1px solid transparent;
  border-radius: var(--np-radius-sm, 8px);
  background: var(--np-surface, #1b1e2b);
  font-size: 0.875rem;
}

.np-helper__step-title { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 0.8125rem; }

.np-helper__step--next { border-color: var(--np-primary, #635bff); }
.np-helper__step--done .np-helper__step-title { color: var(--np-muted, #9aa0b5); }

.np-helper__tag {
  flex: none;
  padding: 2px 8px;
  border-radius: 99px;
  background: var(--np-surface-3, #2a2f45);
  color: var(--np-text-soft, #cbd0df);
  font-size: 11px;
  font-weight: 600;
}

.np-helper__step--next .np-helper__tag { background: var(--np-primary, #635bff); color: #fff; }
.np-helper__step--done .np-helper__tag { background: var(--np-ok-soft, rgba(62, 207, 142, 0.14)); color: var(--np-ok, #3ecf8e); }

.np-helper__close:focus-visible,
.np-helper__back:focus-visible {
  outline: 2px solid var(--np-accent, #ff7a59);
  outline-offset: 1px;
}

@media (hover: hover) and (pointer: fine) {
  .np-helper__close:hover { color: var(--np-text, #eceef6); background: var(--np-surface-3, #2a2f45); }
  .np-helper__back:hover { color: var(--np-text, #eceef6); }
}

.np-helper-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 4px 12px 4px 8px;
  border: 1px solid var(--np-border, #2e3347);
  border-radius: 99px;
  background: transparent;
  color: var(--np-text-soft, #cbd0df);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease;
}

.np-helper-trigger[hidden] { display: none; }

.np-helper-trigger .np-icon {
  --np-icon-size: 20px;
  margin: 0;
}

.np-helper-trigger:focus-visible {
  outline: 2px solid var(--np-accent, #ff7a59);
  outline-offset: 2px;
}

@media (hover: hover) and (pointer: fine) {
  .np-helper-trigger:hover { border-color: var(--np-primary, #635bff); color: var(--np-text, #eceef6); }
}

body:has(#cookieBanner) .np-helper { bottom: 196px; }

body:has(.np-helper[data-open]) .page { padding-bottom: calc(var(--np-space-8, 64px) + min(40vh, 22rem)); }

@media (max-width: 599px) {
  .np-helper {
    left: 8px;
    right: 8px;
    bottom: max(8px, env(safe-area-inset-bottom));
    display: block;
    transform-origin: center bottom;
  }

  .np-helper .np-mascot {
    position: absolute;
    top: -32px;
    left: 14px;
    z-index: 1;
    width: 48px;
  }

  .np-helper__panel {
    width: auto;
    max-height: 62vh;
    padding-top: 18px;
  }

  .np-helper__panel::after { display: none; }
}

@media (max-width: 640px) {
  body:has(#cookieBanner) .np-helper { bottom: 100px; }
  body:has(#cookieBanner.cookie-banner--collapsed) .np-helper {
    bottom: calc(max(8px, env(safe-area-inset-bottom)) + 60px);
  }
}

.np-mascot-acc { display: none; }

.np-mascot[data-accessory="sunglasses"] .np-mascot-acc--sunglasses,
.np-mascot[data-accessory="vampire"] .np-mascot-acc--cape,
.np-mascot[data-accessory="vampire"] .np-mascot-acc--fangs { display: inline; }

.np-mascot-shades-lens { fill: var(--np-mascot-ink); stroke: var(--np-mascot-ink); stroke-width: 2; stroke-linejoin: round; }
.np-mascot-shades-line { fill: none; stroke: var(--np-mascot-ink); stroke-width: 3; stroke-linecap: round; }
.np-mascot-shades-glint { fill: none; stroke: var(--np-mascot-eye); stroke-width: 2.4; stroke-linecap: round; opacity: 0.35; }
.np-mascot-cape-body { fill: var(--np-mascot-cape); stroke: var(--np-mascot-cape-edge); stroke-width: 2; stroke-linejoin: round; }
.np-mascot-cape-collar { fill: var(--np-mascot-cape-edge); stroke: var(--np-mascot-cape); stroke-width: 2; stroke-linejoin: round; }
.np-mascot-mouth { fill: none; stroke: var(--np-mascot-ink); stroke-width: 2.5; stroke-linecap: round; }
.np-mascot-fang { fill: var(--np-mascot-eye); stroke: var(--np-mascot-ink); stroke-width: 1.2; stroke-linejoin: round; }

.np-mascot[data-accessory="sunglasses"] .np-mascot-acc--sunglasses {
  animation: np-mascot-shades-drop 560ms var(--np-mascot-ease-out) both;
}

@keyframes np-mascot-shades-drop {
  0% { transform: translateY(-34px); opacity: 0; }
  35% { opacity: 1; }
  70% { transform: translateY(2px); }
  100% { transform: none; opacity: 1; }
}

.np-mascot[data-accessory="sunglasses"] .np-mascot-shades-glint {
  animation: np-mascot-shades-glint 480ms ease-out 540ms both;
}

@keyframes np-mascot-shades-glint {
  0% { opacity: 0.35; transform: translate(-2px, 2px); }
  40% { opacity: 1; }
  100% { opacity: 0.35; transform: none; }
}

.np-mascot-cape {
  transform-box: fill-box;
  transform-origin: 50% 0;
}

.np-mascot[data-accessory="vampire"] .np-mascot-cape {
  animation: np-mascot-cape-unfurl 900ms var(--np-mascot-ease-out) both;
}

@keyframes np-mascot-cape-unfurl {
  0% { transform: scale(0.55, 0.2); opacity: 0; }
  25% { opacity: 1; }
  45% { transform: scale(1.03, 1.02) skewX(-4deg); }
  65% { transform: skewX(3deg); }
  82% { transform: skewX(-1.5deg); }
  100% { transform: none; opacity: 1; }
}

.np-mascot-fang {
  transform-box: fill-box;
  transform-origin: 50% 0;
}

.np-mascot[data-accessory="vampire"] .np-mascot-mouth {
  animation: np-mascot-acc-fade 200ms ease-out 300ms both;
}

.np-mascot[data-accessory="vampire"] .np-mascot-fang {
  animation: np-mascot-fang 260ms var(--np-mascot-ease-out) 420ms both;
}

.np-mascot[data-accessory="vampire"] .np-mascot-fang + .np-mascot-fang { animation-delay: 480ms; }

@keyframes np-mascot-fang {
  0% { transform: scaleY(0.2); opacity: 0; }
  100% { transform: none; opacity: 1; }
}

@keyframes np-mascot-acc-fade {
  0% { opacity: 0; }
}

:root[data-theme="light"] .np-mascot {
  --np-mascot-primary: #635bff;
  --np-mascot-accent: #ff7a59;
}

:root[data-theme="light"] .np-mascot-bubble { box-shadow: 0 8px 24px rgba(26, 28, 39, 0.12); }
:root[data-theme="light"] .np-helper__panel { box-shadow: 0 12px 32px rgba(26, 28, 39, 0.16); }

@media (prefers-reduced-motion: reduce) {
  .np-mascot *,
  .np-mascot *::before {
    animation: none !important;
    transition: none !important;
  }

  .np-mascot-bubble,
  .np-mascot--bubble-start .np-mascot-bubble {
    transition: none;
    transform: none;
  }

  .np-helper,
  .np-helper[data-open],
  .np-mascot-toast,
  .np-mascot-toast[data-open] {
    transform: none;
  }
}
