/* Shared part "buddy" (Round 3; js/sections/_shared/buddy.js). A little paper character that trails a fine pointer:
   the sun (home, diary, pricing, questions), Nila the moon (/nila/) or a very small Kuru (/kuru/). Decoration only:
   pointer-events none, aria-hidden, never on touch screens, never under reduced motion, and only built by the script
   on a desktop with a fine pointer (so phones never download its art). Layers: .buddy is placed by the script (a
   transform) and fades; .buddy__in pops in and out (scale, so the position is never scaled); .buddy__body leans,
   squashes and turns (script). Transform and opacity only. */

.buddy { position: fixed; left: 0; top: 0; z-index: 61; width: 46px; translate: -50% -50%; pointer-events: none; opacity: 0;
  transition: opacity 200ms var(--m-settle, ease); will-change: transform, opacity; }
.buddy:empty { display: none; }
.buddy.is-on { opacity: 1; }
.buddy.is-doze { transition-duration: 700ms; }
.buddy__in { position: relative; display: block; scale: .45; transition: scale 420ms var(--m-spring, cubic-bezier(.34, 1.56, .64, 1)); }
.buddy.is-on .buddy__in { scale: 1; }
.buddy.is-doze .buddy__in { scale: .8; transition-duration: 700ms; }
.buddy__body { position: relative; display: block; transform-origin: 50% 58%; }
.buddy__art { position: relative; display: block; width: 100%; height: auto; max-width: none; }
/* a soft shadow on the page under it: it floats a little above the paper */
.buddy__shadow { position: absolute; left: 16%; right: 16%; bottom: -22%; height: 18%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(90, 42, 0, .22), rgba(90, 42, 0, 0)); }

/* the sun: its pupils are drawn here, so they can look the way it is going and blink (buddy.js) */
.buddy__pupil { position: absolute; top: 40.9%; width: 8.67%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 36% 30%, #FFFFFF 0 19%, #1E2A5A 23%); }
.buddy__pupil--l { left: 34.67%; }
.buddy__pupil--r { left: 56%; }

.buddy--moon { width: 44px; }
.buddy--moon .buddy__shadow { left: 22%; right: 10%; }

/* Kuru: the head and cap (cut from the portrait) between two small paper wings that flap on twos */
.buddy--kuru { width: 34px; }
.buddy__wing { position: absolute; top: 40%; width: 60%; height: auto; max-width: none; transform-origin: 13.2% 43.6%; }
.buddy__wing--r { left: calc(80% - 60% * .132); }
.buddy__wing--l { left: calc(20% - 60% * .132); scale: -1 1; }
.buddy--kuru .buddy__shadow { bottom: -30%; }

@media (prefers-reduced-motion: reduce) { .buddy { display: none; } }
@media (hover: none), (pointer: coarse), (max-width: 899.98px) { .buddy { display: none; } }
@media (forced-colors: active) { .buddy { display: none; } }

/* 9 Nov 2026, owner: the little sun that follows the pointer reads as a stray mark; it stays hidden. Remove this line to bring it back. */
.buddy { display: none !important; }
