:root {
  --ink: #161216;
  --paper: #fff4e4;
  --violet: #4c1ec0;
  --yellow: #ffe14a;
  --lime: #c8ff3a;
  --pink: #ff3d8a;
  --sky: #7af0ff;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
}

body {
  background: var(--violet);
  color: var(--ink);
  font-family: "Source Serif 4", Georgia, serif;
  overflow: hidden;
  user-select: none;
}

button,
img {
  -webkit-user-drag: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

button:focus-visible,
.pippa-stack:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.stage {
  position: relative;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.slab {
  position: absolute;
  border: 4px solid var(--ink);
  z-index: 0;
}

.slab-yellow {
  width: 74vw;
  height: 82vh;
  left: 14vw;
  top: 7vh;
  background: var(--yellow);
  transform: rotate(-6.5deg);
}

.slab-lime {
  width: 28vw;
  height: 22vh;
  right: -3vw;
  top: 16vh;
  background: var(--lime);
  transform: rotate(5deg);
}

.slab-pink {
  width: 42vw;
  height: 16vh;
  left: -4vw;
  bottom: 5vh;
  background: var(--pink);
  transform: rotate(-2.5deg);
}

.mood-card {
  position: absolute;
  z-index: 3;
  right: 5vw;
  top: 23vh;
  width: 16rem;
  transform: rotate(4deg);
  pointer-events: none;
}

.mood-kicker {
  margin: 0;
  font-family: "Lilita One", Impact, sans-serif;
  font-size: 1.15rem;
  line-height: 1;
  color: #161216;
}

.mood-name {
  margin: 0.15rem 0 0;
  font-family: "Lilita One", Impact, sans-serif;
  font-size: clamp(2rem, 3.6vw, 3.1rem);
  font-weight: 400;
  line-height: 0.85;
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: #161216;
  -webkit-text-stroke: 5px var(--yellow);
  paint-order: stroke fill;
}

.feedback {
  position: absolute;
  z-index: 3;
  left: -4vw;
  bottom: 5vh;
  width: 42vw;
  height: 16vh;
  margin: 0;
  padding: 0 12px 0 calc(36px + 4vw);
  display: flex;
  align-items: center;
  box-sizing: border-box;
  font-family: "Lilita One", Impact, sans-serif;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  line-height: 1.05;
  color: #161216;
  transform: rotate(-2deg);
  pointer-events: none;
}

.corner {
  position: absolute;
  z-index: 3;
}

.tl {
  top: 18px;
  left: 20px;
  max-width: 280px;
}

h1 {
  margin: 0 0 8px;
  font-family: "Lilita One", Impact, sans-serif;
  font-size: clamp(4rem, 8vw, 6.4rem);
  font-weight: 400;
  line-height: 0.78;
  letter-spacing: 0.01em;
  color: var(--yellow);
  -webkit-text-stroke: 5px var(--ink);
  paint-order: stroke fill;
  transform: rotate(-3deg);
  transform-origin: left center;
}

.blurb {
  margin: 0 0 8px;
  max-width: 15.5rem;
  padding: 0.4rem 0.55rem 0.45rem;
  background: var(--paper);
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  font-size: 1.02rem;
  line-height: 1.2;
  transform: rotate(-1.2deg);
}

.blurb-2 {
  transform: translateX(22px) rotate(1.4deg);
  background: var(--lime);
  max-width: 14.2rem;
  margin-left: 18px;
}

.meters {
  top: 18px;
  right: 18px;
  width: 214px;
  padding: 0.55rem 0.65rem 0.7rem;
  background: var(--ink);
  color: var(--yellow);
  border: 3px solid var(--yellow);
  box-shadow: 5px 5px 0 #2a0d6e;
  transform: rotate(2deg);
  font-family: "Lilita One", Impact, sans-serif;
}

.meter + .meter {
  margin-top: 0.45rem;
}

.meter span {
  display: block;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  margin-bottom: 0.12rem;
}

.track {
  height: 16px;
  background: #2a241c;
  border: 2px solid var(--yellow);
}

.fill {
  height: 100%;
  width: 0%;
  transition: width 0.28s linear;
}

#bar-sleep {
  background: #7aa2ff;
}

#bar-distrust {
  background: #ff4f78;
}

#bar-joy {
  background: var(--lime);
}

.actions {
  position: absolute;
  z-index: 4;
  left: 18px;
  top: 292px;
  display: grid;
  grid-template-columns: minmax(11.5rem, max-content) max-content;
  align-items: start;
  justify-items: start;
  column-gap: 14px;
  row-gap: 2rem;
}

.action {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 6px;
}

#treat {
  position: relative;
  width: 124px;
  height: 86px;
  overflow: hidden;
  display: block;
  touch-action: none;
}

#treat.open-jar {
  overflow: visible;
}

#treat .jar {
  position: absolute;
  width: 200px;
  max-width: none;
  left: -39px;
  top: -58px;
  pointer-events: none;
  filter: drop-shadow(3px 3px 0 var(--ink));
}

#treat .jar-open {
  display: none;
}

#treat.open-jar .jar-closed {
  display: none;
}

#treat.open-jar .jar-open {
  display: block;
}

#treat-action,
#touch-action,
#say-action {
  margin-bottom: 1.35rem;
}

#touch,
#say,
#walk {
  display: grid;
  place-items: center;
}

#touch {
  width: 78px;
  height: 78px;
}

#touch img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  filter: drop-shadow(3px 3px 0 var(--ink));
}

#say {
  width: 96px;
  height: 78px;
}

#say img {
  width: 96px;
  height: auto;
  filter: drop-shadow(3px 3px 0 var(--ink));
}

#walk {
  width: 78px;
  height: 78px;
}

#walk img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  filter: drop-shadow(3px 3px 0 var(--ink));
}

.action-btn {
  transition: transform 0.12s ease;
  transform-origin: center center;
}

.action-btn:active {
  transform: scale(0.96) rotate(-2deg);
}

.caret {
  width: 28px;
  height: 28px;
  margin-bottom: 6px;
  background: var(--yellow);
  border: 3px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  position: relative;
}

.caret::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 9px;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid var(--ink);
}

.caret[aria-expanded="true"] {
  background: var(--lime);
}

.say-label {
  position: absolute;
  left: 0;
  top: calc(100% + 2px);
  margin: 0;
  padding: 0.12rem 0.4rem;
  background: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  font-family: "Lilita One", Impact, sans-serif;
  font-size: 0.82rem;
  line-height: 1.1;
  white-space: nowrap;
  transform: rotate(-2deg);
}

.menu {
  position: absolute;
  left: calc(100% + 8px);
  top: 0;
  z-index: 6;
  margin: 0;
  padding: 0;
  list-style: none;
  min-width: 210px;
  max-height: min(22rem, calc(100dvh - 24px));
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--paper);
  border: 3px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
}

.menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.38rem 0.6rem;
  font-family: "Lilita One", Impact, sans-serif;
  font-size: 1rem;
  line-height: 1.15;
}

.menu button.tone-positive {
  background: #c6f5a0;
}

.menu button.tone-negative {
  background: #ffb7c8;
}

.menu button.tone-special {
  background: #ffe08a;
}

.menu button.tone-neutral {
  background: #e6e1da;
}

.menu button[aria-pressed="true"] {
  box-shadow: inset 4px 0 0 var(--ink);
}

.menu button:active {
  filter: saturate(1.15) brightness(1.03);
}

.pippa-stage {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.pippa-stack {
  position: relative;
  width: min(58vh, 540px);
  aspect-ratio: 1;
  pointer-events: auto;
  touch-action: none;
}

.pippa-stack.swap {
  animation: pop 0.46s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.pippa-fit {
  position: absolute;
  inset: 0;
  transform: scale(var(--zoom, 1));
  transform-origin: center 58%;
}

.pippa-fit.boop {
  animation: boop 0.32s ease;
}

.pippa-fit.jiggle {
  animation: jiggle 0.42s linear;
}

.echo,
#pippa-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

#pippa-img {
  object-fit: contain;
}

.sleep-zzz {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  overflow: visible;
}

.sleep-zzz .zzz {
  position: absolute;
  width: clamp(52px, 9vh, 84px);
  height: auto;
  pointer-events: none;
  opacity: 0;
  animation: zzz-rise 2.2s linear forwards;
  animation-delay: calc(var(--i) * 0.32s);
}

.echo {
  background: var(--lime);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.echo-lime {
  background: var(--lime);
  transform: translate(-16px, 12px);
}

.echo-pink {
  background: var(--pink);
  transform: translate(14px, -8px);
}

#bursts {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  overflow: visible;
}

.burst {
  position: absolute;
  transform: translate(-50%, -50%) rotate(var(--rot, -4deg));
  padding: 0.15rem 0;
  font-family: "Bangers", Impact, sans-serif;
  font-size: 2.15rem;
  line-height: 0.9;
  letter-spacing: 0.03em;
  text-align: center;
  color: var(--ink);
  background: none;
  white-space: nowrap;
  animation: burst-pop 1.45s ease forwards;
  filter: drop-shadow(4px 4px 0 var(--ink));
}

.burst::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -1.35rem;
  background: var(--burst-bg, var(--yellow));
  clip-path: var(--burst-clip);
}

.burst.tone-positive {
  --burst-bg: #d6ff4a;
  color: #173000;
}

.burst.tone-negative {
  --burst-bg: #ff3b62;
  color: #fff6d8;
}

.burst.tone-neutral {
  --burst-bg: #efe6da;
  color: #221c18;
}

.burst.tone-special {
  --burst-bg: var(--sky);
  color: #102028;
}

.burst.tone-bark {
  --burst-bg: #ff8a1e;
  color: #1c0c00;
}

.corner-tools {
  position: absolute;
  z-index: 8;
  right: 16px;
  bottom: 12px;
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.corner-tools button {
  width: 34px;
  height: 34px;
  padding: 0;
  background: transparent;
}

.corner-tools img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  filter: drop-shadow(3px 3px 0 var(--ink));
}

.modal {
  position: absolute;
  z-index: 12;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(22, 8, 58, 0.55);
}

.modal[hidden] {
  display: none;
}

.modal-card {
  position: relative;
  width: min(440px, 100%);
  padding: 1.3rem 1.4rem 1.45rem;
  background: var(--paper);
  border: 4px solid var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
  transform: rotate(-1.2deg);
}

.modal-card h2 {
  margin: 0 2rem 0.7rem 0;
  font-family: "Lilita One", Impact, sans-serif;
  font-size: 2.4rem;
  font-weight: 400;
  line-height: 0.85;
  color: var(--yellow);
  -webkit-text-stroke: 4px var(--ink);
  paint-order: stroke fill;
}

.modal-card p {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  line-height: 1.3;
}

.modal-card p:last-child {
  margin-bottom: 0;
}

.modal-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 36px;
  height: 36px;
  font-family: "Lilita One", Impact, sans-serif;
  font-size: 1.6rem;
  line-height: 1;
  background: var(--yellow);
  border: 3px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}

#debug {
  position: absolute;
  z-index: 7;
  right: 14px;
  bottom: 56px;
  width: min(320px, calc(100vw - 28px));
  padding: 8px 8px 10px;
  background: var(--paper);
  border: 3px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  transform: rotate(-1deg);
}

#pie {
  display: block;
  width: 100%;
  height: auto;
}

#pie path {
  cursor: pointer;
}

.pie-hover {
  margin: 0 0 6px;
  text-align: center;
  font-family: "Lilita One", Impact, sans-serif;
  font-size: 1.15rem;
  line-height: 1;
}

.debug-metrics {
  display: grid;
  grid-template-columns: max-content auto;
  column-gap: 18px;
  row-gap: 2px;
  margin: 0;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 12px;
  line-height: 1.35;
}

.debug-metrics div {
  display: contents;
}

.debug-metrics dt {
  font-weight: 700;
}

.debug-metrics dd {
  margin: 0;
}

#tool-cursor {
  position: fixed;
  z-index: 9;
  width: 96px;
  height: 96px;
  pointer-events: none;
  transform: scale(1);
  transition: transform 0.08s ease;
}

#tool-cursor.down {
  transform: scale(1.18);
}

#cookie-drag {
  position: fixed;
  z-index: 11;
  width: 72px;
  height: 72px;
  margin: 0;
  pointer-events: none;
  filter: drop-shadow(3px 3px 0 var(--ink));
  transform: translate(-50%, -50%) rotate(-12deg);
}

#cookie-drag[hidden] {
  display: none;
}

body.dragging-cookie,
body.dragging-cookie * {
  cursor: url("icon/cursor-cookie.png") 48 48, grab !important;
}

@media (hover: hover) and (pointer: fine) {
  #treat:hover {
    overflow: visible;
  }

  #treat:hover .jar-closed {
    display: none;
  }

  #treat:hover .jar-open {
    display: block;
  }

  .action-btn:hover {
    transform: scale(1.08) rotate(-6deg);
  }

  .menu button:hover {
    filter: saturate(1.15) brightness(1.03);
  }
}

.pippa-stack {
  cursor: none;
}

@keyframes pop {
  0% {
    transform: scale(0.94);
  }
  42% {
    transform: scale(1.07);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes boop {
  0% {
    transform: scale(var(--zoom, 1));
  }
  40% {
    transform: scale(calc(var(--zoom, 1) * 1.06));
  }
  100% {
    transform: scale(var(--zoom, 1));
  }
}

@keyframes jiggle {
  0% {
    transform: scale(var(--zoom, 1)) rotate(0deg);
  }
  20% {
    transform: scale(calc(var(--zoom, 1) * 1.03)) rotate(-2.4deg);
  }
  45% {
    transform: scale(calc(var(--zoom, 1) * 0.98)) rotate(2.6deg);
  }
  70% {
    transform: scale(calc(var(--zoom, 1) * 1.02)) rotate(-1.5deg);
  }
  100% {
    transform: scale(var(--zoom, 1)) rotate(0deg);
  }
}

@keyframes zzz-rise {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%);
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, calc(-50% - 32px));
  }
}

@keyframes burst-pop {
  0% {
    transform: translate(-50%, -50%) rotate(var(--rot, -4deg)) scale(0.35);
    opacity: 0;
  }
  16% {
    transform: translate(-50%, -50%) rotate(var(--rot, -4deg)) scale(1.08);
    opacity: 1;
  }
  72% {
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) rotate(var(--rot, -4deg)) scale(0.96);
    opacity: 0;
  }
}

@media (max-width: 860px) {
  :root {
    --mobile-pad: 8px;
    --mobile-gap: 6px;
    --mobile-feedback-h: 2.6rem;
    --mobile-actions-h: 52px;
    --mobile-mood-h: 2.55rem;
    --mobile-strip: calc(
      var(--mobile-pad) + var(--mobile-actions-h) + var(--mobile-gap) + var(--mobile-mood-h) +
        var(--mobile-gap) + var(--mobile-feedback-h) + var(--mobile-pad)
    );
  }

  h1 {
    font-size: 2.6rem;
    -webkit-text-stroke: 3px var(--ink);
    margin: 0 0 6px;
  }

  .tl {
    top: 10px;
    left: 12px;
    max-width: calc(100vw - 132px);
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0 6px;
  }

  .tl h1 {
    width: 100%;
  }

  .blurb {
    flex: 0 0 auto;
    width: fit-content;
    max-width: 100%;
    margin: 0;
    padding: 0.28rem 0.4rem 0.3rem;
    font-size: 0.72rem;
    line-height: 1.15;
    border-width: 2px;
    box-shadow: 3px 3px 0 var(--ink);
    transform: rotate(-1.2deg);
  }

  .blurb-2 {
    display: none;
  }

  .meters {
    width: 112px;
    right: 8px;
    top: 8px;
    transform: none;
    padding: 0.3rem 0.35rem 0.35rem;
    border-width: 2px;
    box-shadow: 3px 3px 0 #2a0d6e;
  }

  .meter + .meter {
    margin-top: 0.28rem;
  }

  .meter span {
    font-size: 0.68rem;
    margin-bottom: 0.05rem;
  }

  .track {
    height: 9px;
    border-width: 1.5px;
  }

  .pippa-stage {
    inset: 0 0 var(--mobile-strip) 0;
    z-index: 1;
  }

  .pippa-stack {
    width: min(58vh, 88vw);
    margin-top: 2vh;
    cursor: auto;
  }

  .slab-yellow {
    width: 92vw;
    left: 4vw;
    height: 70vh;
    top: 4vh;
  }

  /* Bottom strip top→bottom: feedback, mood, controls */
  .slab-pink {
    width: calc(100% - 16px);
    left: 8px;
    right: 8px;
    height: var(--mobile-feedback-h);
    top: auto;
    bottom: calc(
      var(--mobile-pad) + var(--mobile-actions-h) + var(--mobile-gap) + var(--mobile-mood-h) +
        var(--mobile-gap)
    );
    transform: none;
    border-width: 3px;
  }

  .slab-lime {
    width: calc(100% - 16px);
    left: 8px;
    right: 8px;
    height: var(--mobile-mood-h);
    top: auto;
    bottom: calc(var(--mobile-pad) + var(--mobile-actions-h) + var(--mobile-gap));
    transform: none;
    border-width: 3px;
  }

  .corner-tools {
    top: 108px;
    right: 8px;
    left: auto;
    bottom: auto;
    gap: 0;
    z-index: 5;
  }

  .corner-tools button {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
  }

  .corner-tools img {
    width: 20px;
    height: 20px;
  }

  #dbg {
    display: none;
  }

  .feedback {
    left: 10px;
    right: 10px;
    bottom: calc(
      var(--mobile-pad) + var(--mobile-actions-h) + var(--mobile-gap) + var(--mobile-mood-h) +
        var(--mobile-gap)
    );
    width: auto;
    height: var(--mobile-feedback-h);
    min-height: 0;
    padding: 0 8px;
    font-size: 0.9rem;
    line-height: 1.05;
    transform: none;
    align-items: center;
    z-index: 3;
  }

  .mood-card {
    left: 10px;
    right: 10px;
    top: auto;
    bottom: calc(var(--mobile-pad) + var(--mobile-actions-h) + var(--mobile-gap));
    width: auto;
    height: var(--mobile-mood-h);
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0 0.65rem;
    transform: none;
    z-index: 4;
  }

  .mood-kicker {
    font-size: 0.85rem;
    flex-shrink: 0;
  }

  .mood-name {
    margin: 0;
    font-size: 1.35rem;
    -webkit-text-stroke: 3px var(--yellow);
    line-height: 1;
  }

  .actions {
    left: 8px;
    right: 8px;
    top: auto;
    bottom: var(--mobile-pad);
    width: auto;
    height: var(--mobile-actions-h);
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-around;
    gap: 4px;
    transform: none;
    z-index: 4;
  }

  .action {
    flex: 1 1 0;
    justify-content: center;
    min-width: 0;
    margin: 0;
  }

  #treat-action,
  #touch-action,
  #say-action {
    margin-bottom: 0;
  }

  .say-label {
    display: none;
  }

  #treat {
    width: 56px;
    height: 44px;
  }

  #treat .jar {
    width: 96px;
    left: -20px;
    top: -28px;
  }

  #touch,
  #walk {
    width: 48px;
    height: 48px;
    min-width: 44px;
    min-height: 44px;
  }

  #touch img,
  #walk img {
    width: 42px;
    height: 42px;
  }

  #say {
    width: 52px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
  }

  #say img {
    width: 48px;
    height: auto;
  }

  .caret {
    width: 22px;
    height: 22px;
    margin-bottom: 4px;
    border-width: 2px;
    box-shadow: 2px 2px 0 var(--ink);
  }

  .caret::after {
    left: 4px;
    top: 7px;
    border-left-width: 5px;
    border-right-width: 5px;
    border-top-width: 6px;
  }

  .menu {
    left: 0;
    right: auto;
    top: auto;
    bottom: calc(100% + 8px);
    transform: none;
    min-width: min(210px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
    max-height: min(38vh, calc(100dvh - var(--mobile-strip) - 16px));
  }

  #say-action .menu,
  #walk-action .menu {
    left: auto;
    right: 0;
  }

  .menu button {
    padding: 0.55rem 0.7rem;
    font-size: 0.95rem;
  }

  #debug {
    display: none;
  }

  #cookie-drag {
    width: 64px;
    height: 64px;
  }
}

@media (max-width: 860px) and (max-height: 700px) {
  :root {
    --mobile-pad: 6px;
    --mobile-gap: 4px;
    --mobile-feedback-h: 2.1rem;
    --mobile-actions-h: 44px;
    --mobile-mood-h: 2.15rem;
  }

  h1 {
    font-size: 2.15rem;
    margin: 0 0 4px;
  }

  .blurb {
    font-size: 0.64rem;
    padding: 0.2rem 0.32rem;
  }

  .pippa-stack {
    width: min(44vh, 70vw);
  }

  .meters {
    width: 96px;
    padding: 0.22rem 0.28rem 0.28rem;
  }

  .meter span {
    font-size: 0.6rem;
  }

  .track {
    height: 7px;
  }

  .corner-tools {
    top: 92px;
  }

  .corner-tools button {
    width: 28px;
    height: 28px;
  }

  .corner-tools img {
    width: 18px;
    height: 18px;
  }

  .mood-name {
    font-size: 1.15rem;
  }

  #touch,
  #walk {
    width: 42px;
    height: 42px;
  }

  #touch img,
  #walk img {
    width: 36px;
    height: 36px;
  }

  #treat {
    width: 48px;
    height: 40px;
  }

  #say {
    width: 46px;
    height: 40px;
  }

  #say img {
    width: 42px;
  }
}

@media (max-height: 760px) and (min-width: 861px) {
  .actions {
    top: 240px;
    transform: scale(0.78);
    transform-origin: left top;
  }

  .pippa-stack {
    width: min(50vh, 440px);
  }
}
