/* The cat poses are drawn to read clearly even when motion is paused. */
.tips-page .breadcrumbs {
  padding-top: 16px;
  padding-bottom: 0;
}

.tips-page .breadcrumbs a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-block: -10px;
  padding-block: 0;
}

.tips-hero {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  padding-block: 28px 30px;
}

.tips-hero h1 {
  color: var(--ink);
  font-size: clamp(52px, 7vw, 100px);
  letter-spacing: -.055em;
  line-height: .96;
  margin-bottom: 12px;
}

.tips-hero p {
  margin: 0;
  color: var(--soft);
  font-size: clamp(17px, 1.65vw, 22px);
  line-height: 1.35;
}

.tips-hero-actions {
  flex: none;
  min-height: 44px;
}

.tips-button,
.tips-switch button {
  background: var(--profile-paper);
  border: 1px solid var(--control-edge);
  border-radius: 12px;
  color: var(--ink);
  font: 800 15px/1.1 Gabarito, system-ui, sans-serif;
  padding: 8px 13px;
}

.tips-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.tips-button:hover,
.tips-switch button:hover {
  background: var(--quiz-surface);
}

.tips-button:active,
.tips-switch button:active {
  transform: translateY(2px);
  box-shadow: inset 0 2px 4px #1c1a2636;
}

.motion-button {
  /* Maintain its width when the label changes. */
  inline-size: 169px;
}

.motion-icon {
  position: relative;
  width: 10px;
  height: 12px;
  flex: none;
}

.motion-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  border-inline: 3px solid currentColor;
}

.tips:not([data-motion-state="playing"]) .motion-icon::before {
  width: 0;
  height: 0;
  border: solid transparent;
  border-width: 6px 0 6px 10px;
  border-left-color: currentColor;
}

.motion-button:active {
  transform: none;
}

.tips-card {
  min-width: 0;
  padding: 19px;
  border: 1px solid var(--profile-line);
  border-radius: var(--card-radius);
  background: var(--profile-paper);
  box-shadow: var(--shadow-sheet);
}

.tips-feature {
  border-top: 4px solid var(--watcher);
  padding: clamp(15px, 2.25vw, 29px);
}

.feature-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 12px 24px;
}

.tips-feature h2,
.tips-collection h2,
.tips-faq h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 49px);
  text-align: left;
  text-wrap: initial;
  letter-spacing: -.035em;
}

.feature-intro {
  margin: 9px 0 16px;
  color: var(--soft);
  font-size: 17px;
  line-height: 1.35;
}

.tips-switch {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 4px;
}

.tips-switch button[aria-pressed="true"] {
  background: #39284e;
  color: #fff;
  border-color: #39284e;
  box-shadow: inset 0 -3px 0 #dcc8f0;
}

.compare-scenes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.compare-scenes figure {
  margin: 0;
  border: 1px solid var(--profile-line);
  border-radius: 15px;
  overflow: hidden;
  background: var(--card);
  position: relative;
}

.compare-scenes[data-scene="cough"] [data-compare="cough"]::after,
.compare-scenes[data-scene="heave"] [data-compare="heave"]::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid #39284e;
  border-radius: inherit;
  pointer-events: none;
}

.tips-stage {
  --fur: #cf8658;
  --fur-shade: #ab633f;
  --fur-light: #f2cfa0;
  --mark: #a65a34;
  --cat-ink: #39262e;
  overflow: hidden;
  background: var(--scene);
}

.tips-stage svg {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 440 / 172;
}

.compare-scenes svg { aspect-ratio: 480 / 206; }
.airway-stage { --scene: #e4f2eb; --diagram: #204e45; }
.hairball-stage { --scene: #eee7f8; --diagram: #4a3363; }
.blink-stage { --scene: #f9e3da; --fur: #d79369; --fur-shade: #be704e; }
.tail-stage { --scene: #eee7f8; --fur: #e0ac72; --fur-shade: #c18a54; --fur-light: #f9e7cd; --mark: #ad713f; }
.knead-stage { --scene: #faedce; --fur: #d88e50; --fur-shade: #b8683a; }
.mood-stage { --scene: #e4f1e7; --fur: #b7865c; --fur-shade: #93663f; --fur-light: #f3e2c8; --mark: #6c452e; }
.zoom-stage { --scene: #29233d; }
.chirp-stage { --scene: #faedce; --diagram: #4a3363; }
.bunt-stage { --scene: #f9e3da; --diagram: #4a3363; --fur: #d79369; --fur-shade: #be704e; }
.belly-stage { --scene: #e4f2eb; --diagram: #204e45; --fur: #d88e50; --fur-shade: #b8683a; }

.compare-caption {
  padding: 12px 15px 14px;
}

.compare-caption h3,
.tips-guide h3 {
  font-size: clamp(22px, 2.5vw, 29px);
  text-align: left;
}

.compare-caption p,
.tips-guide p {
  margin: 5px 0 0;
  color: var(--soft);
  font-size: 16px;
  line-height: 1.35;
}

.tips-callout {
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(0, 1fr);
  gap: 8px 20px;
  margin-top: 16px;
  padding: 11px 15px;
  border-inline-start: 4px solid var(--watcher);
  border-radius: 8px;
  background: var(--care-surface);
  color: var(--care-accent);
  font-size: 16px;
  line-height: 1.35;
}

.tips-callout p { margin: 0; }

.tips-collection {
  margin-block: clamp(32px, 5vw, 64px);
}

.tips-collection h2 { margin-bottom: 16px; }

.tips-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.tips-guide {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  border-top: 4px solid var(--cue, var(--watcher));
}

.tips-guide .tips-stage {
  border-radius: 12px;
}

.tips-guide:not(.zoom-guide, .wide-guide) .tips-stage svg {
  max-height: 198px;
}

.tips-guide .tips-switch button {
  flex: 1;
}

.tips-guide h3 + p,
.tips-guide p[data-pose-copy] {
  margin-top: 0;
}

.tips-guide p[data-pose-copy] {
  min-block-size: 2.7em;
}

.tips-guide .blink-button {
  align-self: start;
  margin-top: auto;
}

.tips-guide[data-guide="slow-blink"] { --cue: var(--sprinter); }
.tips-guide[data-guide="tail-dictionary"] { --cue: var(--stalker); }
.tips-guide[data-guide="kneading"] { --cue: var(--allrounder); }
.tips-guide[data-guide="mood-meter"] { --cue: var(--ambusher); }
.tips-guide[data-guide="zoomies"] { --cue: var(--sprinter); }
.tips-guide[data-guide="belly-up"] { --cue: var(--ambusher); }
.tips-guide[data-guide="chattering"] { --cue: var(--stalker); }
.tips-guide[data-guide="head-butts"] { --cue: var(--allrounder); }

.tips-guide p.tips-source {
  margin-top: auto;
  font-size: 13px;
  line-height: 1.4;
}

.tips-guide p.tips-source a { color: inherit; }

.wide-guide p.tips-source { margin-top: 8px; }

.zoom-guide,
.wide-guide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(0, 1fr);
  gap: 18px 24px;
  align-items: center;
}

.zoom-guide ol {
  margin: 7px 0 0;
  padding-inline-start: 22px;
  font-size: 16px;
}

.zoom-guide a {
  font-weight: 800;
}

.tips-faq {
  padding-bottom: 54px;
}

.tips-stage .fur { fill: var(--fur); }
.tips-stage .fur-shade { fill: var(--fur-shade); }
.tips-stage .fur-light { fill: var(--fur-light); }
.tips-stage .ear-inner { fill: #eaa19c; }
.tips-stage .nose { fill: #cf6b72; }
.tips-stage .mouth { fill: var(--cat-ink); }
.tips-stage .outline,
.tips-stage .cat-detail,
.tips-stage .scene-line,
.tips-stage .diagram-line {
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tips-stage .outline { stroke: var(--cat-ink); stroke-width: 2.6px; }
.tips-stage .cat-detail { fill: none; stroke: var(--cat-ink); stroke-width: 2.1px; }
.tips-stage .scene-line { fill: none; stroke: var(--diagram, var(--cat-ink)); stroke-width: 1.4px; opacity: .27; }
.tips-stage .diagram-line { fill: none; stroke: var(--diagram); stroke-width: 1.6px; }
.tips-stage .diagram-label {
  fill: var(--diagram);
  font: 850 14px Gabarito, system-ui, sans-serif;
  letter-spacing: .085em;
}

@media (max-width: 720px) {
  .tips-hero {
    display: block;
    padding-block: 16px 15px;
  }

  .tips-hero-actions { margin-top: 11px; }
  .tips-grid,
  .compare-scenes,
  .tips-callout,
  .zoom-guide,
  .wide-guide { grid-template-columns: minmax(0, 1fr); }

  .feature-header {
    display: grid;
    gap: 10px;
  }

  .feature-header .tips-switch {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .feature-header .tips-switch button {
    padding-inline: 5px;
  }

  .feature-intro { margin-block: 9px 11px; }
  .compare-scenes { gap: 10px; }
  .compare-caption { padding: 8px 11px 10px; }
  .tips-stage .diagram-label { font-size: 17px; letter-spacing: .045em; }
  .tips-guide p[data-pose-copy] { min-block-size: 4.05em; }
}

@media (forced-colors: active) {
  .tips-switch button[aria-pressed="true"] {
    border: 2px solid Highlight;
    color: Highlight;
  }
}

@media (min-width: 360px) and (max-width: 720px) {
  .tips { position: relative; }
  .tips-hero-actions {
    position: absolute;
    top: -32px;
    inset-inline-end: 20px;
    margin: 0;
  }
}

/* Warm tabby art: flat fills, one brown outline, filled tabby marks. */
.tips-stage .stripe { fill: var(--mark); }
.tips-stage .ol { fill: none; stroke: var(--cat-ink); stroke-width: 2.6px; stroke-linejoin: round; stroke-linecap: round; }
.tips-stage .eye { fill: #f3c24e; stroke: var(--cat-ink); stroke-width: 1.6px; }
.tips-stage .pupil { fill: #2b1d24; }
.tips-stage .hl { fill: #fffdf8; }
.tips-stage .tongue { fill: #e67f86; }
.tips-stage .whisker { fill: none; stroke: var(--cat-ink); stroke-width: 1.2px; stroke-linecap: round; opacity: .5; }
.tips-stage :is(.tl-o, .tl-f, .tl-s) { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.tips-stage .tl-o { stroke: var(--cat-ink); stroke-width: 17px; }
.tips-stage .tl-f { stroke: var(--fur); stroke-width: 12px; }
.tips-stage .tl-s { stroke: var(--mark); stroke-width: 12px; stroke-linecap: butt; stroke-dasharray: 6 10; }
.tips-stage :is(.lg-o, .lg-f, .lg-f-shade) { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.tips-stage .lg-o { stroke: var(--cat-ink); stroke-width: 21px; }
.tips-stage .lg-f { stroke: var(--fur); stroke-width: 15.8px; }
.tips-stage .lg-f-shade { stroke: var(--fur-shade); stroke-width: 15.8px; }
.tips-stage .sweat { fill: #bfe3f2; stroke: #5b8fa8; stroke-width: 1.4px; }
.tips-stage .squint { fill: none; stroke: var(--cat-ink); stroke-width: 2.6px; stroke-linecap: round; stroke-linejoin: round; }
.tips-stage :is(.burst, .puff) { fill: none; stroke: var(--diagram); stroke-width: 2.4px; stroke-linecap: round; }

/* Asthma cough: neck stays low and flat, the chest fires three quick bursts. */
.cwA-chest { transform-origin: 250px 148px; --signal-animation: cough-chest 2.6s ease-out infinite; }
.cwA-head { transform-origin: 367px 118px; --signal-animation: cough-head 2.6s ease-out infinite; }
:is(.cwA-burst, .cwA-puffs, .cwAh-mouth) { --signal-animation: cough-flash 2.6s linear infinite; }
.cwA-puffs { transform-origin: 450px 124px; --signal-animation: cough-puffs 2.6s ease-out infinite; }
@keyframes cough-chest {
  0%, 5%, 15%, 25%, 36%, 100% { transform: none; }
  9%, 19%, 29% { transform: scale(1.015, 1.08); }
}
@keyframes cough-head {
  0%, 5%, 15%, 25%, 36%, 100% { transform: none; }
  9%, 19%, 29% { transform: translate(5px, 1px); }
}
@keyframes cough-flash {
  0%, 6%, 13%, 16%, 23%, 26%, 34%, 100% { opacity: 0; }
  8%, 11%, 18%, 21%, 28%, 31% { opacity: 1; }
}
@keyframes cough-puffs {
  0%, 7%, 16%, 26%, 40%, 100% { opacity: 0; transform: translateX(-4px); }
  10%, 20%, 30% { opacity: 1; transform: none; }
  14%, 24%, 36% { opacity: .2; transform: translateX(8px); }
}

/* Hairball heave: the belly pulls up and in while the back rises, in slow waves. */
.cwB-belly { transform-origin: 221px 116px; --signal-animation: heave-belly 4.2s ease-in-out infinite; }
.cwB-back { transform-origin: 205px 140px; --signal-animation: heave-back 4.2s ease-in-out infinite; }
.cwB-head { transform-origin: 322px 112px; --signal-animation: heave-head 4.2s ease-in-out infinite; }
.cwBh-mouth { opacity: 0; --signal-animation: heave-mouth 4.2s ease-in-out infinite; }
@keyframes heave-belly {
  0%, 66%, 100% { opacity: 1; transform: none; }
  18% { opacity: .35; transform: scaleY(.7); }
  30% { opacity: .9; transform: scaleY(.94); }
  44%, 54% { opacity: 0; transform: scaleY(.5); }
}
@keyframes heave-back {
  0%, 66%, 100% { transform: none; }
  18% { transform: scale(1, 1.04); }
  30% { transform: scale(1, 1.01); }
  50% { transform: scale(1, 1.08); }
}
@keyframes heave-head {
  0%, 66%, 100% { transform: none; }
  18% { transform: translate(2px, 1px) rotate(1deg); }
  50% { transform: translate(6px, 3px) rotate(3deg); }
}
@keyframes heave-mouth {
  0%, 40%, 62%, 100% { opacity: 0; }
  47%, 56% { opacity: 1; }
}
.compare-scenes[data-scene="cough"] [data-compare="heave"] .signal-motion,
.compare-scenes[data-scene="heave"] [data-compare="cough"] .signal-motion { --signal-animation: none; }

.tips-stage .lash { fill: none; stroke: var(--cat-ink); stroke-width: 3px; stroke-linecap: round; }

/* Slow blink: lids lower slowly, hold shut, then reopen. */
.cwC-lid { transform: translateY(-38px); --signal-animation: slow-blink 4.8s ease-in-out infinite; }
.blink-love { opacity: 0; transform-origin: 220px 55px; }
.blink-ear-left { transform-box: fill-box; transform-origin: 70% 100%; --ear-wiggle: -9deg; }
.blink-ear-right { transform-box: fill-box; transform-origin: 30% 100%; --ear-wiggle: 9deg; }
:is(.blink-ear-left, .blink-ear-right) { --signal-animation: soft-ears 4.8s ease-in-out infinite; }
@keyframes slow-blink {
  0%, 34%, 96%, 100% { transform: translateY(-38px); }
  50% { transform: translateY(-17px); }
  62%, 80% { transform: translateY(-5px); }
}
@keyframes soft-ears {
  0%, 40%, 92%, 100% { transform: none; }
  62%, 80% { transform: rotate(var(--ear-wiggle)); }
}
.blink-stage[data-response] .cwC-lid { transform: translateY(-5px); --signal-animation: reply-blink 2.6s ease-in-out both; }
.blink-stage[data-response] .blink-love { opacity: 1; --signal-animation: blink-love 2.6s ease-in-out both; }
.blink-stage[data-response] :is(.blink-ear-left, .blink-ear-right) { transform: rotate(var(--ear-wiggle)); --signal-animation: happy-ears 2.6s ease-in-out both; }
@keyframes reply-blink {
  0%, 100% { transform: translateY(-38px); }
  18% { transform: translateY(-17px); }
  30%, 70% { transform: translateY(-5px); }
}
@keyframes blink-love {
  0%, 100% { opacity: 0; transform: translateY(4px) scale(.8); }
  26%, 74% { opacity: 1; transform: translateY(-3px); }
}
@keyframes happy-ears {
  0%, 30%, 64%, 100% { transform: none; }
  42%, 76% { transform: rotate(var(--ear-wiggle)); }
}

/* Kneading: one paw presses while the other lifts; the cushion gives under each press. */
.tips-stage :is(.dent, .purr, .brow) { fill: none; stroke: var(--cat-ink); stroke-width: 2.2px; stroke-linecap: round; }
.tips-stage .dent { stroke: #8f4f45; opacity: 0; }
.tips-stage .purr { stroke: #a2733a; }
.knead-left { --signal-animation: knead-paw 1.6s ease-in-out infinite; }
.knead-right { --signal-animation: knead-paw 1.6s -.8s ease-in-out infinite; }
.dent-l { --signal-animation: dent 1.6s ease-in-out infinite; }
.dent-r { --signal-animation: dent 1.6s -.8s ease-in-out infinite; }
.cwD-cushion { transform-origin: 220px 164px; --signal-animation: sink-cushion .8s ease-in-out infinite; }
.cwD-head { transform-origin: 220px 110px; --signal-animation: sleepy-bob 3.2s ease-in-out infinite; }
.cwD-lid { transform: translateY(-4px); --signal-animation: sleepy-lids 4.8s ease-in-out infinite; }
.tips-stage .blush { fill: #ee9a8c; opacity: .55; }
.purr-ripples { transform-origin: 220px 76px; opacity: .85; --signal-animation: purr-ripples 1.6s ease-in-out infinite; }
@keyframes knead-paw {
  0%, 100% { transform: translateY(-7px); }
  50% { transform: translateY(3px) scale(1.04, .94); }
}
@keyframes dent { 0%, 30%, 70%, 100% { opacity: 0; } 50% { opacity: .9; } }
@keyframes sink-cushion { 50% { transform: scaleY(.965); } }
@keyframes sleepy-bob { 50% { transform: translateY(2px) rotate(-2deg); } }
@keyframes sleepy-lids {
  0%, 52%, 92%, 100% { transform: translateY(-4px); }
  66%, 78% { transform: translateY(-12px); }
}
@keyframes purr-ripples {
  0%, 100% { opacity: .3; transform: scale(.96); }
  48% { opacity: .9; transform: scale(1.05); }
}

/* Mood meter: ears, lids, pupils, whiskers and brows switch per mood. */
.mood-ear-left { transform-box: fill-box; transform-origin: 80% 95%; --side: -1; }
.mood-ear-right { transform-box: fill-box; transform-origin: 20% 95%; --side: 1; }
.mood-pupil { transform-box: fill-box; transform-origin: center; }
.mood-whisker-left { transform-box: fill-box; transform-origin: 100% 20%; --side: -1; }
.mood-whisker-right { transform-box: fill-box; transform-origin: 0% 20%; --side: 1; }
.mood-brow-left { transform-box: fill-box; transform-origin: center; --side: -1; }
.mood-brow-right { transform-box: fill-box; transform-origin: center; --side: 1; }
.cwE-lid { transform: translateY(-40px); }
.cwE-head { transform-origin: 220px 140px; }
.mood-stage[data-scene="curious"] .cwE-head { --signal-animation: curious-tilt 3.6s ease-in-out infinite; }
.mood-stage[data-scene="curious"] :is(.mood-whisker-left, .mood-whisker-right) { transform: rotate(calc(var(--side) * -12deg)); }
.mood-stage[data-scene="curious"] :is(.mood-brow-left, .mood-brow-right) { transform: translateY(-4px); }
.mood-stage[data-scene="relaxed"] :is(.mood-ear-left, .mood-ear-right) { transform: rotate(calc(var(--side) * 16deg)); }
.mood-stage[data-scene="relaxed"] .cwE-lid { transform: translateY(-5px); }
.tips-stage .mood-blush { opacity: 0; }
.tips-stage.mood-stage[data-scene="relaxed"] .mood-blush { opacity: .55; }
.mood-stage[data-scene="relaxed"] .mood-pupil { transform: scaleX(.6); }
.mood-stage[data-scene="relaxed"] :is(.mood-whisker-left, .mood-whisker-right) { transform: rotate(calc(var(--side) * 8deg)); }
.mood-stage[data-scene="relaxed"] :is(.mood-brow-left, .mood-brow-right) { opacity: 0; }
.mood-stage[data-scene="relaxed"] .cwE-head { --signal-animation: relaxed-breathe 4s ease-in-out infinite; }
.mood-stage[data-scene="airplane"] :is(.mood-ear-left, .mood-ear-right) { transform: rotate(calc(var(--side) * 64deg)); }
.mood-stage[data-scene="airplane"] .mood-pupil { transform: scale(1.5, 1.12); }
.mood-stage[data-scene="airplane"] :is(.mood-whisker-left, .mood-whisker-right) { transform: rotate(calc(var(--side) * 22deg)) scaleX(.8); }
.mood-stage[data-scene="airplane"] :is(.mood-brow-left, .mood-brow-right) { transform: translateY(2px) rotate(calc(var(--side) * -16deg)); }
.mood-stage[data-scene="airplane"] .cwE-head { --signal-animation: airplane-twitch 2.4s ease-in-out infinite; }
@keyframes curious-tilt { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
@keyframes relaxed-breathe { 50% { transform: translateY(1.5px) scale(1.01); } }
@keyframes airplane-twitch { 0%, 70%, 100% { transform: none; } 76% { transform: translateX(-2px); } 82% { transform: translateX(2px); } 88% { transform: none; } }
.tips[data-motion-state="playing"] .mood-stage :is(.mood-ear-left, .mood-ear-right, .cwE-lid, .mood-blush, .mood-pupil, .mood-whisker-left, .mood-whisker-right, .mood-brow-left, .mood-brow-right) {
  transition: transform .3s ease-out, opacity .2s ease-out;
}

/* Tail dictionary: three tails, one shown per pose, each with its own motion. */
.tail-hook { transform-origin: 158px 84px; }
.tail-puff { transform-origin: 160px 86px; }
.tail-tip { transform-origin: 98px 124px; }
.tail-head { transform-origin: 300px 90px; }
:is(.tail-puff, .tail-flick, .tail-arch) { opacity: 0; }
.tail-stage[data-scene="hook"] .tail-hook { --signal-animation: greet-hook 3.2s ease-in-out infinite; }
.tail-stage:not([data-scene="hook"]) .tail-hook { opacity: 0; }
.tail-stage[data-scene="puff"] :is(.tail-puff, .tail-arch) { opacity: 1; }
.tail-stage[data-scene="puff"] .tail-body { opacity: 0; }
.tail-stage[data-scene="puff"] .tail-puff { --signal-animation: puff-bristle 1.4s ease-in-out infinite; }
.tail-stage[data-scene="puff"] .tail-head { transform: translate(-2px, -4px) rotate(-6deg); }
.tail-stage[data-scene="flick"] .tail-flick { opacity: 1; }
.tail-stage[data-scene="flick"] .tail-tip { --signal-animation: tip-flick .7s ease-in-out infinite; }
.tail-stage[data-scene="flick"] .tail-head { transform: translateY(7px) rotate(7deg); }
@keyframes greet-hook {
  0%, 100% { transform: rotate(-5deg); }
  50% { transform: rotate(6deg); }
}
@keyframes puff-bristle { 50% { transform: scale(1.05, 1.02) rotate(-1.5deg); } }
@keyframes tip-flick {
  0%, 100% { transform: rotate(-22deg); }
  50% { transform: rotate(26deg); }
}
.tips[data-motion-state="playing"] .tail-stage :is(.tail-hook, .tail-puff, .tail-flick, .tail-body, .tail-arch, .tail-head) {
  transition: opacity .25s ease-out, transform .25s ease-out;
}

/* Zoomies: a full gallop cycle while the hallway floor streams past. */
.tips-stage .zoom-floor { fill: none; stroke: #4d406a; stroke-width: 2.4px; stroke-linecap: round; stroke-dasharray: 34 46; --signal-animation: floor-run .5s linear infinite; }
.cwG-cat { --signal-animation: gallop-bob .5s ease-in-out infinite; }
:is(.run-front, .run-front-far, .run-hind, .run-hind-far) { transform-box: fill-box; transform-origin: 50% 4%; }
:is(.run-front, .run-front-far) { transform: rotate(-48deg); --signal-animation: run-front .5s ease-in-out infinite; }
:is(.run-hind, .run-hind-far) { transform: rotate(50deg); --signal-animation: run-hind .5s ease-in-out infinite; }
.run-front-far { animation-delay: -.07s; transform: rotate(-30deg); }
.run-hind-far { animation-delay: -.07s; transform: rotate(36deg); }
.zoom-tail { transform-origin: 168px 92px; --signal-animation: tail-stream .5s ease-in-out infinite; }
.cwG-dust { --signal-animation: dust .5s linear infinite; }
@keyframes floor-run { to { stroke-dashoffset: 80; } }
@keyframes gallop-bob {
  0%, 100% { transform: translateY(-4px) rotate(-2deg); }
  50% { transform: translateY(2px) rotate(2deg); }
}
@keyframes run-front {
  0%, 100% { transform: rotate(-55deg); }
  50% { transform: rotate(38deg); }
}
@keyframes run-hind {
  0%, 100% { transform: rotate(56deg); }
  50% { transform: rotate(-42deg); }
}
@keyframes tail-stream { 50% { transform: rotate(7deg); } }
@keyframes dust {
  0% { opacity: .9; transform: none; }
  100% { opacity: 0; transform: translateX(-14px); }
}

/* Chattering: the jaw quivers in fast bursts while the bird hops outside. */
.cwHh-mouth { transform-box: fill-box; transform-origin: 50% 0; transform: scaleY(.75); --signal-animation: chatter-jaw 2.4s linear infinite; }
.cwH-ek { --signal-animation: chatter-ek 2.4s linear infinite; }
.cwH-head { transform-origin: 298px 66px; --signal-animation: chatter-head 2.4s linear infinite; }
.cwH-bird { transform-origin: 392px 80px; --signal-animation: bird-hop 2.4s ease-in-out infinite; }
@keyframes chatter-jaw {
  0%, 12%, 24%, 36%, 48% { opacity: 1; transform: scaleY(.2); }
  6%, 18%, 30%, 42% { opacity: 1; transform: scaleY(1); }
  52%, 100% { opacity: 0; transform: scaleY(.2); }
}
@keyframes chatter-ek {
  0%, 4%, 10%, 16%, 22%, 28%, 34%, 40%, 50%, 100% { opacity: 0; }
  6%, 8%, 18%, 20%, 30%, 32%, 42%, 44% { opacity: 1; }
}
@keyframes chatter-head {
  0%, 12%, 24%, 36%, 48%, 100% { transform: none; }
  6%, 18%, 30%, 42% { transform: translateY(1px); }
  74% { transform: rotate(-3deg); }
}
@keyframes bird-hop {
  0%, 56%, 76%, 100% { transform: none; }
  64% { transform: translate(-3px, -6px); }
  70% { transform: translate(-4px, 0) rotate(-4deg); }
}

/* Bunting: the head swings in, presses and rubs; the glands light and leave scent. */
.tips-stage .gland { fill: #ffe68e; stroke: #d48d2c; stroke-width: 1.8px; }
.tips-stage .gland-ring { fill: none; stroke: #e39a33; stroke-width: 2.2px; transform-box: fill-box; transform-origin: center; opacity: .7; --signal-animation: gland-pulse 2.6s ease-out infinite; }
.tips-stage .scent { fill: none; stroke: #b9739a; stroke-width: 2.4px; stroke-linecap: round; stroke-dasharray: 3 5; }
.cwI-head { transform-origin: 300px 96px; --signal-animation: bunt-head 2.6s ease-in-out infinite; }
.cwI-body { transform-origin: 230px 140px; --signal-animation: bunt-body 2.6s ease-in-out infinite; }
.cwI-hand { --signal-animation: bunt-hand 2.6s ease-in-out infinite; }
.cwI-scent { --signal-animation: bunt-scent 2.6s ease-out infinite; }
.cwI-tail { transform-origin: 158px 84px; --signal-animation: greet-hook 2.6s ease-in-out infinite; }
@keyframes bunt-head {
  0%, 16%, 86%, 100% { transform: translate(-16px, -5px) rotate(-8deg); }
  36%, 52% { transform: none; }
  64% { transform: translate(1px, 2px) rotate(4deg); }
}
@keyframes bunt-body {
  0%, 16%, 86%, 100% { transform: translateX(-4px); }
  36%, 64% { transform: none; }
}
@keyframes bunt-hand {
  0%, 34%, 72%, 100% { transform: none; }
  40% { transform: translateX(5px); }
  56% { transform: translateX(3px); }
}
@keyframes gland-pulse {
  0%, 34% { opacity: 0; transform: scale(.5); }
  40% { opacity: .9; transform: scale(.8); }
  70%, 100% { opacity: 0; transform: scale(1.5); }
}
@keyframes bunt-scent {
  0%, 42% { opacity: 0; transform: translateX(-6px); }
  56% { opacity: 1; }
  86%, 100% { opacity: 0; transform: translateX(8px); }
}

/* Belly up: a relaxed roll; a rub brings the grab and the kicks. */
.belly-alarm, .cwJ-burst, .belly-label { opacity: 0; }
.cwJ-hand { transform: translateY(-120px); }
.cwJ-cat { transform-origin: 230px 150px; --signal-animation: belly-rock 3.6s ease-in-out infinite; }
.cwJ-front { transform-origin: 280px 114px; --signal-animation: paw-paddle 3.6s ease-in-out infinite; }
.cwJ-hind { transform-origin: 196px 114px; --signal-animation: paw-paddle 3.6s -1.2s ease-in-out infinite; }
.cwJ-tail { transform-origin: 140px 140px; --signal-animation: belly-tail 3.6s ease-in-out infinite; }
.belly-stage[data-scene="touch"] .cwJ-hand { transform: none; }
.belly-stage[data-scene="touch"] :is(.belly-alarm, .cwJ-burst, .belly-label) { opacity: 1; }
.belly-stage[data-scene="touch"] .belly-calm { opacity: 0; }
.belly-stage[data-scene="touch"] .cwJ-front { transform: rotate(-30deg); --signal-animation: paw-clamp .7s ease-in-out infinite; }
.belly-stage[data-scene="touch"] .cwJ-hind { transform: rotate(16deg); --signal-animation: bunny-kick .35s ease-in-out infinite; }
.belly-stage[data-scene="touch"] .cwJ-cat { --signal-animation: none; }
.belly-stage[data-scene="touch"] .cwJ-tail { --signal-animation: tip-flick .7s ease-in-out infinite; }
.belly-stage[data-scene="touch"] .cwJ-burst { --signal-animation: cough-flash 1.4s linear infinite; }
@keyframes belly-rock { 0%, 100% { transform: rotate(-1.6deg); } 50% { transform: rotate(1.6deg); } }
@keyframes paw-paddle { 0%, 100% { transform: none; } 50% { transform: rotate(-7deg); } }
@keyframes belly-tail { 0%, 100% { transform: none; } 50% { transform: rotate(5deg); } }
@keyframes paw-clamp { 0%, 100% { transform: rotate(-30deg); } 50% { transform: rotate(-36deg); } }
@keyframes bunny-kick { 0%, 100% { transform: rotate(4deg); } 50% { transform: rotate(24deg); } }
.tips[data-motion-state="playing"] .belly-stage :is(.cwJ-hand, .belly-calm, .belly-alarm, .cwJ-front, .cwJ-hind, .belly-label) {
  transition: transform .35s ease-out, opacity .2s ease-out;
}

/* Paused or reduced motion: hold the teaching pose of each lesson. */
.tips[data-motion-state="paused"] .cwB-belly { opacity: 0; }
.tips[data-motion-state="paused"] .cwB-back { transform: scale(1, 1.06); }
.tips[data-motion-state="paused"] .cwB-head { transform: translate(5px, 3px) rotate(3deg); }
.tips[data-motion-state="paused"] .cwBh-mouth { opacity: 1; }

.tips[data-motion-state="playing"] .tips-stage .signal-motion {
  animation: var(--signal-animation, none);
}

@media (prefers-reduced-motion: reduce) {
  /* The shared stylesheet stops motion. Honor an explicit Play on this page. */
  .tips[data-motion-state="playing"] .tips-stage .signal-motion {
    animation: var(--signal-animation, none) !important;
  }
}

.tips-urgent { margin-top: 18px; }
.tips-hero { padding-block: 22px; }
.tips-hero h1 { font-size: clamp(42px, 6vw, 72px); }
.tips-feature { background: var(--care-surface); border: 2px solid var(--sticker-edge); }
