/* KernelInk 1.0.9 — local WebGL 3D desktop mascot with SVG fallback */

.nb-pixel-coder-mascot {
  --pixel-coder-accent: #49e5d4;
  --pixel-coder-accent-rgb: 73, 229, 212;
  --pixel-coder-ink: #081114;
  --pixel-coder-panel: rgba(8, 17, 20, 0.92);
  --pixel-coder-line: rgba(109, 241, 226, 0.42);
  --pixel-coder-safe-top: env(safe-area-inset-top, 0px);
  --pixel-coder-safe-right: env(safe-area-inset-right, 0px);
  --pixel-coder-safe-bottom: env(safe-area-inset-bottom, 0px);
  --pixel-coder-safe-left: env(safe-area-inset-left, 0px);
  position: fixed;
  z-index: 230;
  top: 0;
  left: 0;
  width: 228px;
  height: 306px;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  isolation: isolate;
  user-select: none;
  -webkit-user-select: none;
  transform: translate3d(calc(100vw - 250px), calc(100vh - 328px), 0);
  transition: opacity 220ms var(--ease-ui, ease), visibility 220ms var(--ease-ui, ease);
}

.nb-pixel-coder-mascot.is-ready {
  opacity: 1;
  visibility: visible;
}

.nb-pixel-coder-mascot.is-walking,
.nb-pixel-coder-mascot.is-dragging {
  will-change: transform;
}

.nb-pixel-coder-mascot__shell {
  position: absolute;
  inset: 0;
  pointer-events: none;
  filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.2));
}

.nb-pixel-coder-mascot__chrome {
  position: absolute;
  z-index: 4;
  top: 4px;
  left: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
  height: 20px;
  padding: 0 8px 0 6px;
  border: 1px solid var(--pixel-coder-line);
  border-radius: 3px;
  background:
    linear-gradient(90deg, rgba(var(--pixel-coder-accent-rgb), 0.1), transparent 64%),
    var(--pixel-coder-panel);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.04), 0 5px 13px rgba(0, 0, 0, 0.15);
  color: rgba(216, 246, 241, 0.72);
  font: 600 7px/1 var(--font-mono, monospace);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  cursor: grab;
  pointer-events: auto;
  touch-action: none;
}

.nb-pixel-coder-mascot__chrome::before,
.nb-pixel-coder-mascot__chrome::after {
  content: "";
  position: absolute;
  top: 5px;
  width: 3px;
  height: 8px;
  border-block: 1px solid rgba(var(--pixel-coder-accent-rgb), 0.5);
}

.nb-pixel-coder-mascot__chrome::before { left: -5px; }
.nb-pixel-coder-mascot__chrome::after { right: -5px; }

.nb-pixel-coder-mascot__chrome b {
  color: #f36b83;
  font-size: 9px;
  letter-spacing: 0;
}

.nb-pixel-coder-mascot__signal {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--pixel-coder-accent);
  box-shadow: 0 0 7px rgba(var(--pixel-coder-accent-rgb), 0.82);
  animation: nb-pixel-coder-signal 1.9s ease-in-out infinite;
}

.nb-pixel-coder-mascot__collapse {
  position: absolute;
  z-index: 20;
  top: -8px;
  right: 0;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--pixel-coder-accent);
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
  transition: transform 150ms ease;
}

.nb-pixel-coder-mascot__collapse::before {
  content: "";
  position: absolute;
  width: 25px;
  height: 20px;
  border: 1px solid rgba(var(--pixel-coder-accent-rgb), 0.3);
  border-radius: 3px;
  background: rgba(8, 17, 20, 0.86);
  transition: border-color 150ms ease, background-color 150ms ease;
}

.nb-pixel-coder-mascot__collapse span {
  position: absolute;
  z-index: 1;
  width: 9px;
  height: 1px;
  background: currentColor;
}

.nb-pixel-coder-mascot__collapse span:first-child { transform: translateY(2px); }
.nb-pixel-coder-mascot__collapse span:last-child {
  width: 5px;
  opacity: 0.42;
  transform: translateY(-2px);
}

.nb-pixel-coder-mascot__collapse:hover {
  transform: translateY(-1px);
}

.nb-pixel-coder-mascot__collapse:hover::before {
  border-color: rgba(var(--pixel-coder-accent-rgb), 0.75);
  background: rgba(var(--pixel-coder-accent-rgb), 0.12);
}

.nb-pixel-coder-mascot__collapse:focus-visible,
.nb-pixel-coder-mascot__restore:focus-visible,
.nb-pixel-coder-mascot__hit:focus-visible {
  outline: 2px solid var(--pixel-coder-accent);
  outline-offset: 2px;
}

.nb-pixel-coder-mascot__stage {
  position: absolute;
  z-index: 2;
  inset: 17px 4px 14px;
  pointer-events: none;
  touch-action: none;
}

.nb-pixel-coder-mascot__stage::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 14% 11% 8%;
  border: 1px solid rgba(var(--pixel-coder-accent-rgb), 0.1);
  background:
    linear-gradient(rgba(var(--pixel-coder-accent-rgb), 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--pixel-coder-accent-rgb), 0.035) 1px, transparent 1px);
  background-size: 13px 13px;
  clip-path: polygon(14% 0, 86% 0, 100% 11%, 100% 89%, 86% 100%, 14% 100%, 0 89%, 0 11%);
  opacity: 0.72;
  mask-image: linear-gradient(to bottom, transparent, #000 16%, #000 86%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 16%, #000 86%, transparent);
}

.nb-pixel-coder-mascot__rail {
  position: absolute;
  z-index: 4;
  top: 18px;
  right: 0;
  display: grid;
  gap: 5px;
  width: 8px;
}

.nb-pixel-coder-mascot__rail::before {
  content: "";
  position: absolute;
  top: 2px;
  right: 0;
  width: 1px;
  height: 55px;
  background: linear-gradient(var(--pixel-coder-accent), transparent);
  opacity: 0.42;
}

.nb-pixel-coder-mascot__rail i {
  display: block;
  width: 6px;
  height: 1px;
  background: var(--pixel-coder-accent);
  opacity: 0.48;
}

.nb-pixel-coder-mascot__rail i:nth-child(2) { width: 3px; }
.nb-pixel-coder-mascot__rail i:nth-child(3) { width: 5px; }

.nb-pixel-coder-mascot__art {
  position: absolute;
  inset: 0;
  overflow: visible;
  transform-origin: center 82%;
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1), filter 220ms ease, opacity 220ms ease;
}

.nb-pixel-coder-mascot__canvas {
  position: absolute;
  z-index: 2;
  inset: -2% -4% -1%;
  display: block;
  width: 108%;
  height: 103%;
  opacity: 0;
  pointer-events: none;
  touch-action: none;
  transition: opacity 220ms ease;
}

.nb-pixel-coder-mascot__svg {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  opacity: 1;
  transition: opacity 180ms ease;
}

.nb-pixel-coder-mascot.has-3d-mascot .nb-pixel-coder-mascot__canvas { opacity: 1; }
.nb-pixel-coder-mascot.has-3d-mascot .nb-pixel-coder-mascot__svg {
  opacity: 0;
  visibility: hidden;
}

.nb-pixel-coder-mascot__scanlines {
  fill: none;
  stroke: #8ff9ec;
  stroke-width: 0.55;
  stroke-opacity: 0.09;
  stroke-dasharray: 8 23;
  animation: nb-pixel-coder-scan 5.4s linear infinite;
}

.nb-pixel-coder-holo {
  transform-box: fill-box;
  transform-origin: center;
  animation: nb-pixel-coder-holo-pulse 2.6s ease-in-out infinite;
}

.nb-pixel-coder-character {
  transform-box: fill-box;
  transform-origin: center bottom;
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.nb-pixel-coder-arm,
.nb-pixel-coder-leg,
.nb-pixel-coder-eyes,
.nb-pixel-coder-pupils {
  transform-box: fill-box;
}

.nb-pixel-coder-arm--left,
.nb-pixel-coder-arm--right { transform-origin: 50% 8%; }
.nb-pixel-coder-leg--left,
.nb-pixel-coder-leg--right { transform-origin: 50% 8%; }
.nb-pixel-coder-eyes { transform-origin: center; }

.nb-pixel-coder-mascot[data-direction="left"] .nb-pixel-coder-character { transform: perspective(300px) rotateY(-7deg); }
.nb-pixel-coder-mascot[data-direction="right"] .nb-pixel-coder-character { transform: perspective(300px) rotateY(7deg); }
.nb-pixel-coder-mascot[data-direction="left"] .nb-pixel-coder-pupils { transform: translateX(-1.5px); }
.nb-pixel-coder-mascot[data-direction="right"] .nb-pixel-coder-pupils { transform: translateX(1.5px); }

.nb-pixel-coder-mascot__hit {
  position: absolute;
  z-index: 10;
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: transparent;
  cursor: grab;
  pointer-events: auto;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
}

.nb-pixel-coder-mascot__hit:active { cursor: grabbing; }

.nb-pixel-coder-mascot__hit--head {
  top: 5%;
  left: 29%;
  width: 42%;
  height: 35%;
}

.nb-pixel-coder-mascot__hit--left-shoulder {
  top: 39%;
  left: 13%;
  width: 24%;
  height: 18%;
  border-radius: 18%;
}

.nb-pixel-coder-mascot__hit--right-shoulder {
  top: 39%;
  right: 13%;
  width: 24%;
  height: 18%;
  border-radius: 18%;
}

.nb-pixel-coder-mascot__hit--left-hand {
  top: 51%;
  left: 14%;
  width: 20%;
  height: 22%;
}

.nb-pixel-coder-mascot__hit--right-hand {
  top: 51%;
  right: 14%;
  width: 20%;
  height: 22%;
}

.nb-pixel-coder-mascot__hit--body {
  top: 39%;
  left: 35%;
  width: 30%;
  height: 31%;
  border-radius: 28%;
}

.nb-pixel-coder-mascot__hit--shoes {
  right: 25%;
  bottom: 2%;
  left: 25%;
  height: 29%;
  border-radius: 22%;
}

@media (hover: hover) and (pointer: fine) {
  .nb-pixel-coder-mascot__hit:hover::after {
    content: "";
    position: absolute;
    inset: 16%;
    border: 1px dashed rgba(var(--pixel-coder-accent-rgb), 0.5);
    border-radius: inherit;
    box-shadow: 0 0 11px rgba(var(--pixel-coder-accent-rgb), 0.12);
    animation: nb-pixel-coder-target 800ms ease-out both;
  }
}

.nb-pixel-coder-mascot__status {
  position: absolute;
  z-index: 5;
  right: 9px;
  bottom: 3px;
  left: 11px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 6px;
  height: 17px;
  color: rgba(210, 242, 238, 0.58);
  font: 600 6px/1 var(--font-mono, monospace);
  letter-spacing: 0.09em;
}

.nb-pixel-coder-mascot__status span { color: var(--pixel-coder-accent); }

.nb-pixel-coder-mascot__status i {
  display: block;
  height: 1px;
  background: linear-gradient(90deg, rgba(var(--pixel-coder-accent-rgb), 0.7), rgba(var(--pixel-coder-accent-rgb), 0.05));
}

.nb-pixel-coder-mascot__status code {
  color: inherit;
  font: inherit;
}

.nb-pixel-coder-mascot__bubble {
  position: absolute;
  z-index: 30;
  bottom: calc(100% - 27px);
  left: 50%;
  display: grid;
  width: max-content;
  min-width: 172px;
  max-width: 238px;
  gap: 5px;
  padding: 10px 12px 11px;
  border: 1px solid rgba(var(--pixel-coder-accent-rgb), 0.38);
  border-radius: 5px 5px 5px 1px;
  background:
    linear-gradient(135deg, rgba(var(--pixel-coder-accent-rgb), 0.09), transparent 45%),
    rgba(8, 17, 20, 0.96);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.28), inset 0 1px rgba(255, 255, 255, 0.04);
  color: #e1f2ef;
  opacity: 0;
  transform: translate(-50%, 8px) scale(0.97);
  transform-origin: 16% 100%;
  pointer-events: none;
  transition: opacity 180ms ease, transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.nb-pixel-coder-mascot__bubble::before {
  content: "";
  position: absolute;
  bottom: -7px;
  left: 25px;
  width: 12px;
  height: 12px;
  border-right: 1px solid rgba(var(--pixel-coder-accent-rgb), 0.38);
  border-bottom: 1px solid rgba(var(--pixel-coder-accent-rgb), 0.38);
  background: #091418;
  transform: rotate(45deg);
}

.nb-pixel-coder-mascot__bubble::after {
  content: "";
  position: absolute;
  top: -1px;
  right: 13px;
  width: 28px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--pixel-coder-accent));
  box-shadow: 0 0 8px rgba(var(--pixel-coder-accent-rgb), 0.55);
}

.nb-pixel-coder-mascot.has-dialogue .nb-pixel-coder-mascot__bubble {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.nb-pixel-coder-mascot__bubble[hidden] { display: none; }

.nb-pixel-coder-mascot__bubble-tag {
  color: var(--pixel-coder-accent);
  font: 700 8px/1.1 var(--font-mono, monospace);
  letter-spacing: 0.09em;
}

.nb-pixel-coder-mascot__bubble-tag::before {
  content: "// ";
  color: #f36b83;
}

.nb-pixel-coder-mascot__bubble-text {
  color: #dbe9e7;
  font: 500 12px/1.55 var(--font-ui, sans-serif);
  letter-spacing: 0.015em;
  overflow-wrap: anywhere;
}

.nb-pixel-coder-mascot.is-edge-left .nb-pixel-coder-mascot__bubble {
  left: 3px;
  transform: translate(0, 8px) scale(0.97);
  transform-origin: 20px 100%;
}

.nb-pixel-coder-mascot.is-edge-left.has-dialogue .nb-pixel-coder-mascot__bubble { transform: translate(0, 0) scale(1); }

.nb-pixel-coder-mascot.is-edge-right .nb-pixel-coder-mascot__bubble {
  right: 3px;
  left: auto;
  transform: translate(0, 8px) scale(0.97);
  transform-origin: calc(100% - 20px) 100%;
}

.nb-pixel-coder-mascot.is-edge-right.has-dialogue .nb-pixel-coder-mascot__bubble { transform: translate(0, 0) scale(1); }
.nb-pixel-coder-mascot.is-edge-right .nb-pixel-coder-mascot__bubble::before { right: 25px; left: auto; }

.nb-pixel-coder-mascot.is-edge-top .nb-pixel-coder-mascot__bubble {
  top: calc(100% - 24px);
  bottom: auto;
  transform-origin: 20% 0;
}

.nb-pixel-coder-mascot.is-edge-top .nb-pixel-coder-mascot__bubble::before {
  top: -7px;
  bottom: auto;
  border: 0;
  border-top: 1px solid rgba(var(--pixel-coder-accent-rgb), 0.38);
  border-left: 1px solid rgba(var(--pixel-coder-accent-rgb), 0.38);
}

.nb-pixel-coder-mascot__restore {
  position: absolute;
  inset: 0;
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(var(--pixel-coder-accent-rgb), 0.52);
  background:
    linear-gradient(135deg, rgba(var(--pixel-coder-accent-rgb), 0.2), transparent 48%),
    rgba(7, 17, 20, 0.94);
  box-shadow: 0 9px 25px rgba(0, 0, 0, 0.24), inset 0 0 0 3px rgba(var(--pixel-coder-accent-rgb), 0.04);
  color: var(--pixel-coder-accent);
  cursor: pointer;
  pointer-events: auto;
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
  touch-action: manipulation;
}

.nb-pixel-coder-mascot__restore b {
  position: relative;
  z-index: 2;
  color: #f36b83;
  font: 800 11px/1 var(--font-mono, monospace);
  letter-spacing: -0.04em;
}

.nb-pixel-coder-mascot__restore i {
  position: absolute;
  right: 6px;
  bottom: 5px;
  width: 8px;
  height: 1px;
  background: var(--pixel-coder-accent);
  box-shadow: 0 0 6px rgba(var(--pixel-coder-accent-rgb), 0.7);
}

.nb-pixel-coder-mascot__restore-pulse {
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(var(--pixel-coder-accent-rgb), 0.25);
  border-radius: 50%;
  animation: nb-pixel-coder-restore-pulse 1.8s ease-out infinite;
}

.nb-pixel-coder-mascot.is-collapsed {
  width: 44px;
  height: 44px;
}

.nb-pixel-coder-mascot.is-collapsed .nb-pixel-coder-mascot__shell { display: none; }
.nb-pixel-coder-mascot.is-collapsed .nb-pixel-coder-mascot__restore { display: grid; }

.nb-pixel-coder-mascot.is-pointer-down .nb-pixel-coder-mascot__art { filter: brightness(1.08); }
.nb-pixel-coder-mascot.is-dragging .nb-pixel-coder-mascot__art { transform: rotate(-2deg) translateY(-3px); }
.nb-pixel-coder-mascot.is-dragging .nb-pixel-coder-mascot__chrome { cursor: grabbing; }

.nb-pixel-coder-mascot.is-turning .nb-pixel-coder-character { animation: nb-pixel-coder-turn 520ms cubic-bezier(0.22, 1, 0.36, 1) both; }
.nb-pixel-coder-mascot.is-walking .nb-pixel-coder-character { animation: nb-pixel-coder-walk-bob 520ms ease-in-out infinite; }
.nb-pixel-coder-mascot.is-walking .nb-pixel-coder-leg--left { animation: nb-pixel-coder-leg-left 520ms ease-in-out infinite; }
.nb-pixel-coder-mascot.is-walking .nb-pixel-coder-leg--right { animation: nb-pixel-coder-leg-right 520ms ease-in-out infinite; }
.nb-pixel-coder-mascot.is-walking .nb-pixel-coder-arm--left { animation: nb-pixel-coder-arm-left 520ms ease-in-out infinite; }
.nb-pixel-coder-mascot.is-walking .nb-pixel-coder-arm--right { animation: nb-pixel-coder-arm-right 520ms ease-in-out infinite; }
.nb-pixel-coder-mascot.is-blinking .nb-pixel-coder-eyes { animation: nb-pixel-coder-blink 620ms ease-in-out both; }
.nb-pixel-coder-mascot.is-wave-left .nb-pixel-coder-arm--left { animation: nb-pixel-coder-wave-left 920ms cubic-bezier(0.2, 0, 0, 1) both; }
.nb-pixel-coder-mascot.is-wave-right .nb-pixel-coder-arm--right { animation: nb-pixel-coder-wave-right 920ms cubic-bezier(0.2, 0, 0, 1) both; }
.nb-pixel-coder-mascot.is-hopping .nb-pixel-coder-character { animation: nb-pixel-coder-hop 820ms cubic-bezier(0.2, 0, 0, 1) both; }
.nb-pixel-coder-mascot.is-hopping .nb-pixel-coder-holo { animation: nb-pixel-coder-hop-shadow 820ms cubic-bezier(0.2, 0, 0, 1) both; }
.nb-pixel-coder-mascot.is-saluting .nb-pixel-coder-arm--right { animation: nb-pixel-coder-salute 880ms cubic-bezier(0.2, 0, 0, 1) both; }
.nb-pixel-coder-mascot.is-saluting .nb-pixel-coder-mouth { animation: nb-pixel-coder-speak 620ms ease-in-out 2; }

html[data-theme="light"] .nb-pixel-coder-mascot {
  --pixel-coder-accent: #087b80;
  --pixel-coder-accent-rgb: 8, 123, 128;
  --pixel-coder-panel: rgba(239, 247, 246, 0.95);
  --pixel-coder-line: rgba(7, 118, 115, 0.42);
}

html[data-theme="light"] .nb-pixel-coder-mascot__chrome,
html[data-theme="light"] .nb-pixel-coder-mascot__status {
  color: rgba(26, 65, 65, 0.68);
}

html[data-theme="light"] .nb-pixel-coder-mascot__bubble {
  border-color: rgba(7, 118, 115, 0.35);
  background:
    linear-gradient(135deg, rgba(var(--pixel-coder-accent-rgb), 0.13), transparent 45%),
    rgba(244, 250, 249, 0.98);
  box-shadow: 0 14px 32px rgba(42, 68, 70, 0.17), inset 0 1px #fff;
}

html[data-theme="light"] .nb-pixel-coder-mascot__bubble::before { background: #f0f8f7; }
html[data-theme="light"] .nb-pixel-coder-mascot__bubble-text { color: #253f40; }
html[data-theme="light"] .nb-pixel-coder-mascot__collapse::before,
html[data-theme="light"] .nb-pixel-coder-mascot__restore { background-color: rgba(239, 247, 246, 0.96); }

.nb-pixel-coder-mascot.is-paused .nb-pixel-coder-mascot__art {
  opacity: 0.58;
  filter: saturate(0.65);
}

.nb-pixel-coder-mascot.is-paused *,
.nb-pixel-coder-mascot.is-static * {
  animation-play-state: paused !important;
}

@keyframes nb-pixel-coder-signal {
  0%, 100% { opacity: 0.45; transform: scale(0.82); }
  50% { opacity: 1; transform: scale(1); }
}

@keyframes nb-pixel-coder-scan {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -62; }
}

@keyframes nb-pixel-coder-holo-pulse {
  0%, 100% { opacity: 0.68; transform: scaleX(0.94); }
  50% { opacity: 1; transform: scaleX(1.04); }
}

@keyframes nb-pixel-coder-target {
  from { opacity: 0; transform: scale(1.25); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes nb-pixel-coder-restore-pulse {
  0% { opacity: 0.7; transform: scale(0.7); }
  80%, 100% { opacity: 0; transform: scale(1.25); }
}

@keyframes nb-pixel-coder-turn {
  0% { transform: perspective(300px) rotateY(0); }
  48% { transform: perspective(300px) rotateY(28deg) scaleX(0.9); }
  100% { transform: perspective(300px) rotateY(0); }
}

@keyframes nb-pixel-coder-walk-bob {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-2.5px) rotate(0.5deg); }
}

@keyframes nb-pixel-coder-leg-left {
  0%, 100% { transform: rotate(4deg); }
  50% { transform: rotate(-5deg); }
}

@keyframes nb-pixel-coder-leg-right {
  0%, 100% { transform: rotate(-5deg); }
  50% { transform: rotate(4deg); }
}

@keyframes nb-pixel-coder-arm-left {
  0%, 100% { transform: rotate(-5deg); }
  50% { transform: rotate(5deg); }
}

@keyframes nb-pixel-coder-arm-right {
  0%, 100% { transform: rotate(5deg); }
  50% { transform: rotate(-5deg); }
}

@keyframes nb-pixel-coder-blink {
  0%, 32%, 68%, 100% { transform: scaleY(1); }
  43%, 56% { transform: scaleY(0.08); }
}

@keyframes nb-pixel-coder-wave-left {
  0%, 100% { transform: rotate(0); }
  22% { transform: rotate(112deg) translate(4px, -2px); }
  45% { transform: rotate(96deg) translate(4px, -2px); }
  67% { transform: rotate(112deg) translate(4px, -2px); }
  82% { transform: rotate(98deg) translate(4px, -2px); }
}

@keyframes nb-pixel-coder-wave-right {
  0%, 100% { transform: rotate(0); }
  22% { transform: rotate(-112deg) translate(-4px, -2px); }
  45% { transform: rotate(-96deg) translate(-4px, -2px); }
  67% { transform: rotate(-112deg) translate(-4px, -2px); }
  82% { transform: rotate(-98deg) translate(-4px, -2px); }
}

@keyframes nb-pixel-coder-hop {
  0%, 100% { transform: translateY(0) scaleY(1); }
  12% { transform: translateY(2px) scaleY(0.97); }
  42% { transform: translateY(-18px) scaleY(1.02); }
  68% { transform: translateY(-4px); }
  84% { transform: translateY(1px) scaleY(0.98); }
}

@keyframes nb-pixel-coder-hop-shadow {
  0%, 100% { opacity: 1; transform: scaleX(1); }
  42% { opacity: 0.35; transform: scaleX(0.7); }
}

@keyframes nb-pixel-coder-salute {
  0%, 100% { transform: rotate(0); }
  28%, 74% { transform: rotate(-118deg) translate(-3px, -3px); }
}

@keyframes nb-pixel-coder-speak {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(1.8); }
}

@media (max-width: 640px) {
  .nb-pixel-coder-mascot {
    width: 158px;
    height: 216px;
    filter: none;
  }

  .nb-pixel-coder-mascot__shell { filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.16)); }
  .nb-pixel-coder-mascot__stage { inset: 16px 3px 12px; }
  .nb-pixel-coder-mascot__chrome { left: 7px; padding-inline: 5px; font-size: 6px; }
  .nb-pixel-coder-mascot__collapse { right: -2px; width: 44px; height: 44px; }
  .nb-pixel-coder-mascot__status { right: 5px; left: 7px; }
  .nb-pixel-coder-mascot__status code { display: none; }
  .nb-pixel-coder-mascot__bubble { min-width: 160px; max-width: min(210px, calc(100vw - 12px)); }
  .nb-pixel-coder-mascot__bubble-text { font-size: 11px; }
  .nb-pixel-coder-mascot__rail { display: none; }
}

@media (max-height: 520px) and (orientation: landscape) {
  .nb-pixel-coder-mascot {
    width: 134px;
    height: 183px;
  }

  .nb-pixel-coder-mascot__status { display: none; }
  .nb-pixel-coder-mascot__stage { bottom: 2px; }
}

@media (hover: none) and (pointer: coarse) {
  .nb-pixel-coder-mascot__stage,
  .nb-pixel-coder-mascot__hit { touch-action: pan-y; }
}

@media (prefers-reduced-motion: reduce), (update: slow) {
  .nb-pixel-coder-mascot,
  .nb-pixel-coder-mascot *,
  .nb-pixel-coder-mascot *::before,
  .nb-pixel-coder-mascot *::after {
    animation: none !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .nb-pixel-coder-mascot__art { transform: none !important; }
}

@media (forced-colors: active) {
  .nb-pixel-coder-mascot__collapse::before,
  .nb-pixel-coder-mascot__restore,
  .nb-pixel-coder-mascot__bubble { forced-color-adjust: auto; border: 1px solid ButtonText; }
  .nb-pixel-coder-mascot__hit:focus-visible { outline: 3px solid Highlight; }
}
