:root {
  color: #3f2d2a;
  background: #f6e9d7;
  font-family: Inter, ui-rounded, "SF Pro Rounded", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(154, 122, 91, 0.24), transparent 34rem),
    radial-gradient(circle at bottom right, rgba(111, 95, 158, 0.18), transparent 26rem),
    linear-gradient(180deg, #f6e9d7 0%, #ead8bd 100%);
}

button {
  font: inherit;
}

.nest-screen {
  display: grid;
  min-height: 100vh;
  padding: max(1rem, env(safe-area-inset-top)) 1rem max(1rem, env(safe-area-inset-bottom));
  place-items: center;
}

.nest-card {
  width: min(100%, 28rem);
  padding: 1.25rem;
  border: 1px solid rgba(107, 79, 58, 0.12);
  border-radius: 1.75rem;
  background: rgba(255, 248, 236, 0.94);
  box-shadow: 0 1.5rem 3rem rgba(107, 79, 58, 0.16);
}

.nest-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.eyebrow {
  margin: 0 0 0.5rem;
  color: #738352;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
}

h1 {
  font-size: clamp(2.75rem, 16vw, 4.5rem);
  line-height: 0.9;
}

h2 {
  font-size: 1rem;
}

.habitat {
  display: grid;
  gap: 0.8rem;
  margin: 1.1rem 0;
  padding: 1rem;
  border-radius: 1.5rem;
  background:
    radial-gradient(ellipse at center 75%, rgba(122, 96, 62, 0.22), transparent 38%),
    linear-gradient(180deg, #d7ead4 0%, #f1ddbf 100%);
}

.nest-bowl {
  position: relative;
  display: grid;
  min-height: 11rem;
  place-items: center;
}

.nest-bowl::after {
  position: absolute;
  right: 15%;
  bottom: 0.9rem;
  left: 15%;
  height: 2.6rem;
  border-radius: 50%;
  background: #a87f54;
  box-shadow: inset 0 -0.35rem 0 rgba(77, 51, 35, 0.14);
  content: "";
}

.mythling {
  position: relative;
  z-index: 1;
  width: 8.25rem;
  height: 7.25rem;
  border-radius: 48% 52% 44% 56% / 56% 52% 48% 44%;
  background: linear-gradient(145deg, #9f8bd5, #7465b0);
  box-shadow: inset -0.8rem -0.9rem 0 rgba(52, 43, 91, 0.13), 0 1rem 1.6rem rgba(77, 51, 35, 0.2);
  transform-origin: bottom center;
  animation: breathe 2.8s ease-in-out infinite;
}

.mythling.radiant {
  background: linear-gradient(145deg, #f3b968, #d98273);
}

.mythling.needy {
  background: linear-gradient(145deg, #9fb8d5, #6d84ad);
}

.mythling.ruffled {
  background: linear-gradient(145deg, #b8a99b, #83766d);
}

.horn,
.eye,
.blush {
  position: absolute;
  display: block;
}

.horn {
  top: -0.75rem;
  width: 1.8rem;
  height: 2.4rem;
  border-radius: 80% 20% 70% 30%;
  background: #fff0c7;
}

.horn-left {
  left: 1.2rem;
  transform: rotate(-22deg);
}

.horn-right {
  right: 1.2rem;
  transform: scaleX(-1) rotate(-22deg);
}

.eye {
  top: 3rem;
  width: 0.75rem;
  height: 0.95rem;
  border-radius: 50%;
  background: #2e2630;
}

.eye-left {
  left: 2.6rem;
}

.eye-right {
  right: 2.6rem;
}

.blush {
  top: 4.2rem;
  width: 1rem;
  height: 0.45rem;
  border-radius: 999px;
  background: rgba(255, 190, 178, 0.85);
}

.blush-left {
  left: 1.55rem;
}

.blush-right {
  right: 1.55rem;
}

.mood-chip,
.feedback {
  border-radius: 999px;
  background: rgba(255, 248, 236, 0.8);
  text-align: center;
}

.mood-chip {
  justify-self: center;
  padding: 0.5rem 0.85rem;
  font-size: 0.95rem;
}

.feedback {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  color: #5d4841;
  line-height: 1.35;
}

.needs-panel,
.rituals-panel {
  display: grid;
  gap: 0.75rem;
}

.needs-list {
  display: grid;
  gap: 0.6rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.need {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.3rem 0.75rem;
  align-items: center;
}

.need-label,
.need-value {
  font-size: 0.92rem;
  font-weight: 750;
}

.need-value {
  color: #6f5f9e;
}

.need-bar {
  grid-column: 1 / -1;
  overflow: hidden;
  height: 0.55rem;
  border-radius: 999px;
  background: rgba(107, 79, 58, 0.13);
}

.need-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #738352, #cab35f);
  transition: width 180ms ease;
}

.ritual-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}

.ritual-action {
  display: grid;
  min-height: 4.8rem;
  place-items: center;
  border: 0;
  border-radius: 1.1rem;
  color: #fff8ec;
  background: #6f5f9e;
  font-weight: 850;
  box-shadow: 0 0.65rem 1.2rem rgba(111, 95, 158, 0.22);
}

.ritual-action span {
  font-size: 1.35rem;
}

.ritual-action.is-active {
  outline: 0.2rem solid rgba(115, 131, 82, 0.45);
  background: #738352;
}

.ritual-action:active {
  transform: translateY(1px) scale(0.99);
}

@keyframes breathe {
  0%,
  100% {
    transform: scaleY(1) translateY(0);
  }

  50% {
    transform: scaleY(1.035) translateY(-0.16rem);
  }
}

.ritual-action small {
  display: block;
  color: rgba(255, 248, 236, 0.78);
  font-size: 0.7rem;
  font-weight: 750;
}

.behavior-note {
  margin: 0;
  color: #5d4841;
  font-size: 0.9rem;
  line-height: 1.35;
  text-align: center;
}

.memory-panel,
.traits-panel,
.lived-panel,
.becoming-panel {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.becoming-panel {
  padding: 0.85rem;
  border: 1px solid rgba(111, 95, 158, 0.18);
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(226, 219, 245, 0.6), rgba(255, 248, 236, 0.85));
}

.becoming-line {
  margin: 0;
  color: #514373;
  font-size: 0.9rem;
  line-height: 1.45;
}

.diary-subtitle {
  margin: 0;
  color: #786059;
  font-size: 0.85rem;
  font-weight: 800;
}

.diary-archive summary {
  cursor: pointer;
  padding: 0.45rem 0;
  color: #786059;
  font-size: 0.82rem;
  font-weight: 800;
}

.diary-archive .memory-list {
  margin-top: 0.55rem;
}

.memory-entry.is-pinned {
  border-color: rgba(111, 95, 158, 0.34);
  background: linear-gradient(135deg, rgba(226, 219, 245, 0.75), rgba(255, 248, 236, 0.9));
}

.memory-recall {
  display: block;
  color: #6f5f9e;
  font-size: 0.74rem;
  font-style: italic;
}

.behavior-list {
  display: grid;
  gap: 0.3rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #5d4841;
  font-size: 0.9rem;
  line-height: 1.35;
  text-align: center;
}

.lived-signs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.lived-chip {
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  background: rgba(115, 131, 82, 0.14);
  color: #4f5b3a;
  font-size: 0.78rem;
  font-weight: 800;
}

.trait-hint {
  padding: 0.45rem 0.75rem;
  color: #786059;
  font-size: 0.78rem;
  font-style: italic;
  list-style: none;
}

.needs-details {
  margin-top: 1rem;
}

.needs-details summary {
  cursor: pointer;
  color: #786059;
  font-size: 0.85rem;
  font-weight: 800;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* Segni corporei biografici: sottili, persistenti, guadagnati vivendo.
   Sul figure layered sono overlay indipendenti dalle parti del corpo. */
.myth-marks {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
}

.myth-mark {
  position: absolute;
  inset: 0;
}

/* piuma della sera: una lieve luce liscia sul capo */
.myth-mark.mark-evening::after {
  content: '';
  position: absolute;
  top: 14%;
  left: 30%;
  width: 40%;
  height: 10%;
  border-radius: 50%;
  background: rgba(255, 248, 236, 0.5);
  filter: blur(1px);
}

/* polvere di sentiero: chiara, sui piedi */
.myth-mark.mark-wayfarer::after {
  content: '';
  position: absolute;
  bottom: 2%;
  left: 22%;
  width: 56%;
  height: 7%;
  border-radius: 50%;
  background: rgba(107, 79, 58, 0.2);
  filter: blur(1px);
}

/* ombra gentile sotto gli occhi */
.myth-mark.mark-shadowed::after {
  content: '';
  position: absolute;
  top: 46%;
  left: 28%;
  width: 44%;
  height: 8%;
  border-radius: 50%;
  background: rgba(111, 95, 158, 0.22);
  filter: blur(1.5px);
}

/* scintille trattenute */
.myth-mark.mark-sparkle {
  background:
    radial-gradient(circle at 30% 30%, rgba(245, 207, 102, 0.55) 0 3%, transparent 5%),
    radial-gradient(circle at 72% 60%, rgba(245, 207, 102, 0.45) 0 2.4%, transparent 4%),
    radial-gradient(circle at 55% 22%, rgba(245, 207, 102, 0.4) 0 2%, transparent 3.5%);
}

/* Fallback blob: i segni restano legati alle sotto-parti CSS. */
.mythling:not(.mythling--layered).mark-evening .eye-left,
.mythling:not(.mythling--layered).mark-evening .eye-right {
  transform: scaleY(0.82);
}

.mythling:not(.mythling--layered).mark-shadowed .blush-left,
.mythling:not(.mythling--layered).mark-shadowed .blush-right {
  background: rgba(111, 95, 158, 0.28);
}

.memory-counters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.memory-counter {
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  background: rgba(111, 95, 158, 0.12);
  color: #514373;
  font-size: 0.78rem;
  font-weight: 800;
}

.memory-list,
.traits-list {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.memory-entry,
.trait-card,
.empty-state {
  border: 1px solid rgba(107, 79, 58, 0.1);
  border-radius: 1rem;
  background: rgba(255, 248, 236, 0.72);
}

.memory-entry {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  padding: 0.75rem;
}

.memory-icon {
  display: grid;
  width: 2.15rem;
  height: 2.15rem;
  place-items: center;
  border-radius: 50%;
  background: rgba(115, 131, 82, 0.16);
}

.memory-entry p,
.trait-card p,
.empty-state {
  margin: 0.2rem 0;
  color: #5d4841;
  font-size: 0.86rem;
  line-height: 1.35;
}

.memory-entry small,
.trait-card small {
  color: #786059;
  font-size: 0.75rem;
  font-weight: 750;
}

.trait-card {
  padding: 0.75rem;
  opacity: 0.74;
}

.trait-card.is-unlocked {
  border-color: rgba(115, 131, 82, 0.38);
  background: linear-gradient(135deg, rgba(215, 234, 212, 0.86), rgba(255, 248, 236, 0.9));
  opacity: 1;
}

.empty-state {
  padding: 0.75rem;
}

.aura,
.stardust-trail {
  position: absolute;
  pointer-events: none;
}

.aura {
  inset: -0.8rem;
  z-index: -1;
  border-radius: 50%;
  opacity: 0;
}

.trait-lullaby .aura {
  opacity: 1;
  background: radial-gradient(circle, rgba(204, 196, 255, 0.42), transparent 68%);
  animation: lullaby-pulse 3.8s ease-in-out infinite;
}

.trait-guardian {
  box-shadow:
    inset -0.8rem -0.9rem 0 rgba(52, 43, 91, 0.13),
    0 1rem 1.6rem rgba(77, 51, 35, 0.2),
    0 0 0 0.35rem rgba(255, 240, 199, 0.46);
}

.trait-guardian::after {
  position: absolute;
  top: 1rem;
  right: 1.6rem;
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  background: rgba(255, 240, 199, 0.88);
  box-shadow: -3.4rem 2.8rem 0 rgba(255, 240, 199, 0.72);
  content: "";
}

.stardust-trail {
  right: -1rem;
  bottom: 0.85rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  opacity: 0;
}

.trait-stardust .stardust-trail {
  opacity: 1;
  background: #f5cf66;
  box-shadow: -1.1rem -0.35rem 0 #f7df91, -2rem 0.2rem 0 #f5cf66, -2.8rem -0.2rem 0 rgba(245, 207, 102, 0.72);
  animation: sparkle-drift 1.8s ease-in-out infinite;
}

/* Trasformazioni contestuali con aspetto proprio: agiscono su aura e
   scia, presenti sia sul figure layered sia sul fallback blob. */
.trait-thunderheart .aura {
  opacity: 1;
  background: radial-gradient(circle, rgba(150, 200, 255, 0.42), transparent 66%);
  animation: thunder-flicker 4.6s steps(1) infinite;
}

.trait-broken-guardian .aura {
  opacity: 1;
  background: radial-gradient(circle, rgba(224, 178, 120, 0.34), transparent 70%);
}

.trait-broken-guardian {
  box-shadow: inset -0.7rem -0.8rem 0 rgba(107, 79, 58, 0.12);
}

.trait-social-sparks .stardust-trail {
  opacity: 1;
  background: #ff8fab;
  box-shadow: -1rem -0.3rem 0 #8fd3ff, -1.9rem 0.2rem 0 #ffd36e, -2.7rem -0.2rem 0 #b1ff9f;
  animation: sparkle-drift 1.6s ease-in-out infinite;
}

.trait-dark-embrace .aura {
  opacity: 1;
  background: radial-gradient(circle, rgba(52, 43, 91, 0.42), transparent 72%);
  animation: lullaby-pulse 5s ease-in-out infinite;
}

.trait-lightning-listener .aura {
  opacity: 1;
  background: radial-gradient(circle, rgba(190, 215, 255, 0.32), transparent 64%);
}

@keyframes thunder-flicker {
  0%, 88%, 100% { opacity: 0.85; }
  90%, 92% { opacity: 0.3; }
  91% { opacity: 1; }
}

@keyframes lullaby-pulse {
  0%,
  100% {
    transform: scale(0.94);
  }

  50% {
    transform: scale(1.04);
  }
}

@keyframes sparkle-drift {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-0.35rem);
  }
}

.expedition-panel {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.expedition-panel h3 {
  margin: 0.25rem 0 0;
  color: #5d4841;
  font-size: 0.88rem;
}

.expedition-list,
.strategy-grid {
  display: grid;
  gap: 0.55rem;
}

.expedition-card,
.strategy-action,
.depart-action {
  border: 0;
  border-radius: 1rem;
  text-align: left;
}

.expedition-card {
  display: grid;
  gap: 0.25rem;
  padding: 0.8rem;
  color: #3f2d2a;
  background: rgba(215, 234, 212, 0.62);
  box-shadow: inset 0 0 0 1px rgba(115, 131, 82, 0.14);
}

.expedition-card.is-selected {
  background: linear-gradient(135deg, rgba(215, 234, 212, 0.96), rgba(245, 207, 102, 0.32));
  box-shadow: inset 0 0 0 2px rgba(115, 131, 82, 0.42);
}

.expedition-card span,
.expedition-card small,
.strategy-action small {
  color: #68524b;
  font-size: 0.76rem;
  line-height: 1.3;
}

.strategy-grid {
  grid-template-columns: repeat(2, 1fr);
}

.strategy-action {
  display: grid;
  gap: 0.18rem;
  min-height: 5.4rem;
  padding: 0.7rem;
  color: #fff8ec;
  background: #8f765e;
  font-weight: 850;
  text-align: center;
}

.strategy-action span {
  font-size: 1.3rem;
}

.strategy-action small {
  color: rgba(255, 248, 236, 0.78);
  font-weight: 700;
}

.strategy-action.is-active,
.depart-action {
  background: #738352;
}

.depart-action {
  padding: 0.9rem 1rem;
  color: #fff8ec;
  font-weight: 900;
  text-align: center;
  box-shadow: 0 0.65rem 1.2rem rgba(115, 131, 82, 0.22);
}

.expedition-result {
  display: grid;
  gap: 0.35rem;
  padding: 0.8rem;
  border: 1px solid rgba(111, 95, 158, 0.18);
  border-radius: 1rem;
  background: rgba(111, 95, 158, 0.1);
}

.expedition-result p {
  margin: 0;
  color: #5d4841;
  font-size: 0.86rem;
  line-height: 1.35;
}

.reward-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.reward-list li {
  padding: 0.4rem 0.58rem;
  border-radius: 999px;
  background: rgba(245, 207, 102, 0.28);
  color: #5d4841;
  font-size: 0.78rem;
  font-weight: 800;
}

.onboarding-screen {
  display: grid;
  min-height: 100vh;
  padding: max(1rem, env(safe-area-inset-top)) 1rem max(1rem, env(safe-area-inset-bottom));
  place-items: center;
}

.onboarding-card {
  display: grid;
  gap: 1rem;
  width: min(100%, 28rem);
  padding: 1.25rem;
  border: 1px solid rgba(107, 79, 58, 0.12);
  border-radius: 1.75rem;
  background: rgba(255, 248, 236, 0.96);
  box-shadow: 0 1.5rem 3rem rgba(107, 79, 58, 0.16);
}

.onboarding-copy,
.name-field {
  color: #5d4841;
  line-height: 1.4;
}

.name-field {
  display: grid;
  gap: 0.4rem;
  font-weight: 850;
}

.name-field input {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(107, 79, 58, 0.18);
  border-radius: 1rem;
  color: #3f2d2a;
  background: rgba(255, 255, 255, 0.62);
  font: inherit;
}

.onboarding-group {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  border: 0;
}

.onboarding-group legend {
  margin-bottom: 0.55rem;
  color: #5d4841;
  font-weight: 900;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.55rem;
}

.choice-pill {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.72rem;
  border-radius: 1rem;
  background: rgba(215, 234, 212, 0.62);
  color: #3f2d2a;
  font-weight: 800;
}

.identity-panel {
  display: grid;
  gap: 0.35rem;
  padding: 0.8rem;
  border-radius: 1rem;
  background: rgba(255, 248, 236, 0.78);
}

.identity-panel p {
  margin: 0;
  color: #5d4841;
  font-size: 0.86rem;
}

.generated-traits {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.generated-traits span,
.debug-reset {
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 850;
}

.generated-traits span {
  padding: 0.32rem 0.5rem;
  background: rgba(111, 95, 158, 0.12);
  color: #514373;
}

.debug-reset {
  margin-top: 1rem;
  padding: 0.55rem 0.8rem;
  border: 1px dashed rgba(107, 79, 58, 0.35);
  color: #6d554d;
  background: transparent;
}

.hatching-card {
  overflow: hidden;
  text-align: center;
}

.hatching-stage {
  position: relative;
  display: grid;
  min-height: 13rem;
  place-items: center;
  border-radius: 1.5rem;
  background:
    radial-gradient(circle at 50% 72%, rgba(245, 207, 102, 0.3), transparent 36%),
    linear-gradient(180deg, rgba(215, 234, 212, 0.72), rgba(241, 221, 191, 0.84));
}

.mythling-egg {
  position: relative;
  width: 7rem;
  height: 8.6rem;
  border-radius: 52% 48% 46% 54% / 62% 62% 38% 38%;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 248, 236, 0.78), transparent 22%),
    linear-gradient(145deg, #f0d9a9, #bfa56f);
  box-shadow: inset -0.7rem -0.9rem 0 rgba(107, 79, 58, 0.12), 0 1rem 1.7rem rgba(77, 51, 35, 0.18);
  animation: eggPulse 1.8s ease-in-out infinite;
}

.mythling-egg span {
  position: absolute;
  right: 1.15rem;
  bottom: 2.2rem;
  left: 1.15rem;
  height: 0.45rem;
  border-radius: 999px;
  background: rgba(111, 95, 158, 0.24);
  box-shadow: 0 -1.6rem 0 rgba(115, 131, 82, 0.2), 0 1.45rem 0 rgba(255, 248, 236, 0.42);
}

.egg-shell {
  position: absolute;
  bottom: 2rem;
  width: 4.2rem;
  height: 3.3rem;
  border-radius: 46% 54% 62% 38%;
  background: linear-gradient(145deg, #f0d9a9, #c9ae78);
  box-shadow: inset -0.35rem -0.45rem 0 rgba(107, 79, 58, 0.1);
}

.egg-shell-left {
  left: calc(50% - 5.1rem);
  transform: rotate(-24deg);
}

.egg-shell-right {
  right: calc(50% - 5.1rem);
  transform: scaleX(-1) rotate(-24deg);
}

.mythling.is-newborn {
  animation: newbornRise 700ms ease-out both, breathe 2.8s ease-in-out 700ms infinite;
}

@keyframes eggPulse {
  0%, 100% { transform: translateY(0) rotate(-1deg) scale(1); }
  50% { transform: translateY(-0.16rem) rotate(1deg) scale(1.025); }
}

@keyframes newbornRise {
  from { opacity: 0; transform: translateY(1.1rem) scale(0.82); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* --- Layered part-art figure (AI-generated part library spike) ------------ */
/* The container holds a stack of part layers, each authored in the same
   100x100 creature frame; per-layer tint + idle animation do the rest. */
.mythling--layered {
  width: 8.25rem;
  height: 8.25rem;
  background: none;
  box-shadow: none;
  animation: none;
  overflow: visible;
}

.myth-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* mask/background + tint are set inline per layer (see render.js::renderLayer)
   so the url() resolves against the document base, not this stylesheet.
   `--image` (raw art) and `--tint` (grayscale art multiplied by the palette and
   clipped by its own alpha) carry everything inline; the classes are hooks. */
.myth-layer--mask {
  background-color: var(--tint, #7465b0);
}

.layer-body { transform-origin: 50% 88%; }
.layer-eyes { transform-origin: 50% 44%; }
.layer-appendages { transform-origin: 50% 26%; }
.layer-tail { transform-origin: 72% 78%; }

.layer-glow {
  border-radius: 50%;
  background: radial-gradient(circle at 50% 58%, var(--tint, #f5cf66), transparent 60%);
  mix-blend-mode: screen;
}

.anim-breathe { animation: breathe 2.8s ease-in-out infinite; }
.anim-blink { animation: blink 4.6s ease-in-out infinite; }
.anim-tail-sway { animation: tailSway 3.4s ease-in-out infinite; }
.anim-ear-wiggle { animation: earWiggle 4s ease-in-out infinite; }
.anim-glow-pulse { animation: glowPulse 3.2s ease-in-out infinite; }

@keyframes blink {
  0%, 92%, 100% { transform: scaleY(1); }
  95%, 97% { transform: scaleY(0.12); }
}

@keyframes tailSway {
  0%, 100% { transform: rotate(-7deg); }
  50% { transform: rotate(7deg); }
}

@keyframes earWiggle {
  0%, 100% { transform: rotate(-3deg); }
  50% { transform: rotate(3deg); }
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.5; transform: scale(0.96); }
  50% { opacity: 0.85; transform: scale(1.05); }
}
