/* ==========================================================================
   Hero: advent calendar
   All tile internals are laid out with grid stacking (every child sits in
   cell 1/1) and percentage margins taken straight from the Figma geometry,
   so the calendar scales as one piece without absolute positioning.
   ========================================================================== */

/* Its own stacking context, so the snow can sit behind the content */
.hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  background:
    url("../img/snow.svg") calc(50% - 4.5px) 19px / 1417px auto no-repeat,
    var(--c-purple);
}

/* Out of the flow, the snow never sizes the hero: the width and height attributes
   the script sets would otherwise feed back into its height in some browsers. */
.hero__snow {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  contain: strict;
  pointer-events: none;
}

.hero__inner {
  container-type: inline-size;
  padding-block: 78px 43px;
}

.hero__dates {
  margin-bottom: 48px;
  color: var(--c-lavender);
  font-size: 18px;
  font-weight: 500;
  line-height: normal;
}

/* ---------- Calendar grid ---------- */

.calendar {
  /* 1 design pixel at the 1160px desktop layout */
  --u: calc(100cqw / 1160);
  /* 1 design pixel of a 131px tile (same as --u on desktop) */
  --k: var(--u);

  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  grid-auto-rows: calc(120 * var(--u));
  column-gap: calc(16 * var(--u));
  row-gap: calc(17 * var(--u));
}

/* The list only groups the days; its items join the calendar grid */
.calendar__days {
  display: contents;
}

.calendar__intro {
  grid-area: 1 / 1 / 3 / 4;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}

.calendar__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.calendar__title {
  width: calc(303 / 425 * 100%);
  margin-top: calc(7.7 * var(--u));
}

.calendar__title img {
  width: 100%;
  height: auto;
}

.calendar__tree {
  width: calc(118.26 / 425 * 100%);
  height: auto;
  margin: calc(-1 * var(--u)) calc(-2.26 * var(--u)) 0 0;
  transform-origin: 50% 100%;
  animation: sway 6s ease-in-out infinite;
}

.calendar__more {
  width: 100%;
  min-height: max(44px, calc(60 * var(--u)));
  padding: 8px 24px;
  border-radius: 34px;
  font-family: var(--f-head);
  font-size: max(15px, calc(19 * var(--u)));
  font-weight: 600;
  line-height: 17px;
}

/* Decorations that sit on top of several tiles */
.calendar__bell {
  z-index: 2;
  grid-area: 1 / 6 / 2 / 8;
  width: calc(110.68 / 278 * 100%);
  height: auto;
  /* Hangs 38px above the first row, as in the design */
  margin: calc(-38 / 278 * 100%) 0 0 calc(54 / 278 * 100%);
  pointer-events: none;
  transform-origin: 62% 8%;
  animation: bell-swing 5s ease-in-out infinite;
}

.calendar__star {
  z-index: 2;
  grid-area: 4 / 5 / 6 / 7;
  width: calc(157.48 / 277.95 * 100%);
  height: auto;
  margin: calc(37.92 / 277.95 * 100%) 0 0 calc(58.34 / 277.95 * 100%);
  pointer-events: none;
  animation: wobble 7s ease-in-out infinite;
}

/* ---------- Day tile ---------- */

.day {
  --tile-bg: var(--c-lilac);

  display: grid;
  min-width: 0;
}

.day[data-tone="white"] {
  --tile-bg: var(--c-white);
}

.day[data-tone="pink"] {
  --tile-bg: var(--c-pink);
}

.day[data-tone="plum"] {
  --tile-bg: var(--c-plum);
}

.day__door {
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: calc(24 * var(--k));
  background: var(--tile-bg);
  transform-origin: 0 50%;
  transition:
    transform 0.35s var(--ease-spring),
    box-shadow 0.35s var(--ease-out),
    opacity 0.3s;
  -webkit-tap-highlight-color: transparent;
}

.day__door > *,
.day__door::after {
  grid-area: 1 / 1;
}

/* Converts design pixels of this tile (--w wide) into a share of its width */
.day__num {
  width: calc(var(--num-w) / var(--w) * 100%);
  height: auto;
  justify-self: var(--num-x, end);
  align-self: var(--num-y, end);
  margin:
    calc(var(--num-mt, 0) / var(--w) * 100%)
    calc(var(--num-mr, 0) / var(--w) * 100%)
    calc(var(--num-mb, 0) / var(--w) * 100%)
    calc(var(--num-ml, 0) / var(--w) * 100%);
}

.day__art {
  width: calc(var(--art-w) / var(--w) * 100%);
  height: auto;
  justify-self: start;
  align-self: start;
  margin-top: calc(var(--art-y) / var(--w) * 100%);
  margin-left: calc(var(--art-x) / var(--w) * 100%);
  rotate: var(--art-rot, 0deg);
  pointer-events: none;
}

/* The phone layout has its own bell inside tile 02 */
.day__art--phone {
  display: none;
}

.day__badge {
  z-index: 1;
  width: calc(var(--badge, 36) / var(--w) * 100%);
  aspect-ratio: 1;
  align-self: start;
  margin: calc(var(--badge-m, 4) / var(--w) * 100%);
  border-radius: 50%;
  background: center / 60% no-repeat;
}

.day__badge--status {
  display: none;
  justify-self: var(--badge-x, start);
}

.day__badge--bonus {
  justify-self: var(--bonus-x, end);
  background-color: var(--c-pink);
  background-image: url("../img/icons/gift.svg");
  background-size: 58%;
  box-shadow: 0 0 0 calc(2 * var(--k)) rgba(255, 255, 255, 0.85);
}

/* Glow behind an opening door */
.day__door::after {
  content: "";
  z-index: 2;
  border-radius: inherit;
  background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.95), rgba(255, 240, 250, 0) 70%);
  opacity: 0;
  pointer-events: none;
}

/* ---------- Day states ---------- */

.day[data-state="today"] .day__door {
  outline: 3px solid var(--c-white);
  outline-offset: 3px;
  animation: today-glow 2.4s ease-in-out infinite;
}

.day[data-state="done"] .day__badge--status {
  display: block;
  background-color: var(--c-white);
  background-image: url("../img/icons/tick-circle.svg");
  box-shadow: 0 0 0 1px var(--c-line);
}

/* A missed day and a wrong answer look the same: the day is closed */
.day[data-state="missed"] .day__badge--status,
.day[data-state="failed"] .day__badge--status {
  display: block;
  background-color: rgba(255, 255, 255, 0.55);
  background-image: url("../img/icons/close-circle.svg");
}

.day[data-state="later"] .day__door {
  opacity: 0.5;
}

/* Tomorrow's window: only the tile fades, the picture stays bright */
.day[data-state="today"] + .day[data-state="later"] .day__door {
  opacity: 1;
  background: color-mix(in srgb, var(--tile-bg) 50%, transparent);
}

.day[data-state="later"] .day__badge--status {
  display: block;
  border-radius: 0;
  background-image: url("../img/icons/lock-pink.svg");
  background-size: 122%;
}

.day[data-state="later"][data-tone="pink"] .day__badge--status,
.day[data-state="later"][data-tone="plum"] .day__badge--status {
  background-image: url("../img/icons/lock-white.svg");
}

.day[data-bonus="open"] .day__badge--bonus {
  animation: gift-bounce 2.2s var(--ease-spring) infinite;
}

.day[data-bonus="done"] .day__badge--bonus,
.day[data-bonus="failed"] .day__badge--bonus,
.day[data-bonus="expired"] .day__badge--bonus {
  opacity: 0.55;
}

/* Interaction */
.day:not([data-state="later"]) .day__door:hover {
  box-shadow: 0 calc(18 * var(--k)) calc(30 * var(--k)) calc(-16 * var(--k)) rgba(30, 8, 90, 0.75);
  transform: translateY(calc(-4 * var(--k)));
}

.day__door.is-opening {
  animation: door-open 0.6s var(--ease-out);
}

.day__door.is-opening::after {
  animation: door-glow 0.6s ease-out;
}

/* Tiles pop in on first paint (only when JS will bring them to life) */
.js .day {
  animation: tile-in 0.6s var(--ease-spring) both;
  animation-delay: calc(var(--i, 0) * 28ms);
}

/* Day art that hangs from a ring swings gently */
.day--10 .day__art,
.day--15 .day__art {
  transform-origin: 50% 4%;
  animation: sway 5s ease-in-out infinite;
}

.day--15 .day__art {
  animation-delay: -2.5s;
}

/* ---------- Layout per day (geometry from Figma, in design px) ---------- */

.day--01 { --i: 1; grid-area: 1 / 4 / 2 / 6; --w: 278; --num-w: 61; --num-mr: 18.36; --num-mb: 17.76; --art-x: 3; --art-y: 0; --art-w: 117.56; --badge-x: end; }
.day--02 { --i: 2; grid-area: 1 / 6; --w: 130.94; --num-w: 74; --num-x: start; --num-ml: 10.6; --num-mb: 13.37; }
.day--03 { --i: 3; grid-area: 1 / 7; --w: 130.94; --num-w: 76; --num-mr: 1.35; --num-mb: 17.43; --badge-x: end; }
.day--04 { --i: 4; grid-area: 1 / 8; --w: 130.94; --num-w: 72; --num-mr: 4.36; --num-mb: 17.76; --art-x: 6.94; --art-y: 6.48; --art-w: 77; --badge-x: end; --bonus-x: start; }
.day--05 { --i: 5; grid-area: 2 / 4; --w: 130.94; --num-w: 74; --num-mr: 14.33; --num-mb: 17.37; }
.day--06 { --i: 6; grid-area: 2 / 5; --w: 130.94; --num-w: 76; --num-mr: 3.33; --num-mb: 17.43; }
.day--07 { --i: 7; grid-area: 2 / 6; --w: 130.94; --num-w: 71; --num-mr: 7.34; --num-mb: 17.37; }
.day--08 { --i: 8; grid-area: 2 / 7; --w: 130.94; --num-w: 74; --num-mr: 3.35; --num-mb: 17.95; }
.day--09 { --i: 9; grid-area: 3 / 1; --w: 130.94; --num-w: 76; --num-mr: 18.3; --num-mb: 14.76; }
.day--10 { --i: 10; grid-area: 3 / 2 / 5 / 3; --w: 131; --num-w: 61; --num-mr: 17.36; --num-mb: 17.76; --art-x: 10; --art-y: 18; --art-w: 112.91; }
.day--11 { --i: 11; grid-area: 3 / 3; --w: 130.94; --num-w: 46; --num-mr: 15.32; --num-mb: 18.8; --art-x: 3.69; --art-y: 8.75; --art-w: 85.08; --art-rot: -1.11deg; }
.day--12 { --i: 12; grid-area: 3 / 4; --w: 130.94; --num-w: 60; --num-mr: 14.33; --num-mb: 13.37; }
.day--13 { --i: 13; grid-area: 3 / 5 / 4 / 7; --w: 277.19; --num-w: 61; --num-mr: 17.09; --num-mb: 17.43; --art-x: 15.46; --art-y: 16.95; --art-w: 158.28; }
.day--14 { --i: 14; grid-area: 3 / 7; --w: 130.94; --num-w: 58; --num-mr: 14.35; --num-mb: 18.8; --art-x: 11.95; --art-y: 4.95; --art-w: 72.02; }
.day--15 { --i: 15; grid-area: 2 / 8 / 4 / 9; --w: 130.56; --num-w: 60; --num-mr: 16.36; --num-mb: 18.37; --art-x: 8.1; --art-y: 9.97; --art-w: 113.46; }
.day--16 { --i: 16; grid-area: 4 / 1; --w: 130.94; --num-w: 61; --num-mr: 8.3; --num-mb: 18.43; --art-x: 13; --art-y: 9.92; --art-w: 52.05; }
.day--17 { --i: 17; grid-area: 4 / 3; --w: 130.94; --num-w: 57; --num-mr: 9.32; --num-mb: 18.37; }
.day--18 { --i: 18; grid-area: 4 / 4; --w: 130.94; --num-w: 60; --num-mr: 13.33; --num-mb: 17.95; --art-x: -15.41; --art-y: -13.29; --art-w: 98.62; --art-rot: 139.49deg; }
.day--19 { --i: 19; grid-area: 4 / 5; --w: 130.94; --num-w: 61; --num-x: start; --num-ml: 16.61; --num-y: start; --num-mt: 14.16; }
.day--20 { --i: 20; grid-area: 4 / 6; --w: 130.94; --num-w: 75; --num-mr: 9.34; --num-y: start; --num-mt: 9.55; }
.day--21 { --i: 21; grid-area: 5 / 1; --w: 130.94; --num-w: 61; --num-mr: 20.3; --num-mb: 13.37; }
.day--22 { --i: 22; grid-area: 5 / 2; --w: 130.94; --num-w: 74; --num-mr: 18.31; --num-mb: 13.37; }
.day--23 { --i: 23; grid-area: 5 / 3; --w: 130.94; --num-w: 76; --num-mr: 12.32; --num-mb: 13.43; --art-x: 41.98; --art-y: -14.1; --art-w: 75.38; }
.day--24 { --i: 24; grid-area: 5 / 4; --w: 130.94; --num-w: 72; --num-mr: 17.33; --num-mb: 13.37; }
.day--25 { --i: 25; grid-area: 5 / 5; --w: 130.94; --num-w: 75; --num-x: start; --num-ml: 16.61; --num-mb: 13.37; }
.day--26 { --i: 26; grid-area: 5 / 6; --w: 130.94; --num-w: 76; --num-mr: 16.34; --num-mb: 13.43; --badge-x: end; }
.day--27 { --i: 27; grid-area: 4 / 7 / 6 / 9; --w: 278.2; --num-w: 72; --num-mr: 22.36; --num-mb: 13.37; --art-x: -14.8; --art-y: -39.08; --art-w: 279; }

/* ---------- Legend ---------- */

/* Right-aligned row, spread over the 765px the design gives it */
.legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  max-width: 765px;
  margin: 15px 0 0 auto;
}

.legend__item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
}

.legend__icon {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--c-white);
}

.legend__icon img {
  width: 24px;
  height: 24px;
}

.legend__icon--missed {
  opacity: 0.55;
}

.legend__icon--bonus {
  background: var(--c-pink);
}

.legend__icon--today {
  width: 32px;
  height: 32px;
  border: 3px solid var(--c-white);
  border-radius: 8px;
  background: none;
}

.legend__icon--lock {
  background: none;
}

.legend__icon--lock img {
  width: 40px;
  height: 40px;
}

/* ---------- Tablet & mobile ---------- */

@media (max-width: 1023px) {
  .legend {
    justify-content: flex-start;
    max-width: none;
    margin: 24px 0 0;
  }
}

/* ---------- Phones: the 320px design ----------
   The calendar keeps the 288px design grid and scales with the screen:
   --u is one design pixel of it. */

@media (max-width: 639px) {
  .hero {
    background:
      url("../img/snow.svg") -40px 0 / 637px auto no-repeat,
      url("../img/snow.svg") -260px 380px / 637px auto no-repeat,
      url("../img/snow.svg") -40px 760px / 637px auto no-repeat,
      var(--c-purple);
  }

  .hero__inner {
    padding-block: 24px 32px;
  }

  .hero__dates {
    margin-bottom: 20px;
    font-size: 14px;
  }

  .calendar {
    --u: calc(100cqw / 288);
    /* 24 tile px on desktop = 12 on the phone */
    --k: calc(var(--u) / 2);

    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: auto;
    grid-auto-rows: calc(60 * var(--u));
    gap: calc(8 * var(--u));
  }

  .calendar__intro {
    grid-area: 1 / 1 / 2 / -1;
    gap: 20px;
    /* 20px from the button to the first row of tiles */
    margin-bottom: calc(20px - 8 * var(--u));
  }

  .calendar__title {
    width: 188.2px;
    margin: 6px 0 0 1px;
  }

  .calendar__tree {
    width: 68.36px;
    margin: 0;
  }

  .calendar__more {
    min-height: 60px;
    padding: 14px 48px;
    font-size: 16px;
  }

  /* Each tile is its own layer, so the next tile covers art that hangs out
     of the previous one (the bell of 02 goes under 03) */
  .day {
    --badge: 22;
    --badge-m: 0;

    isolation: isolate;
  }

  .day--01 { grid-area: 2 / 1 / span 1 / span 2; --w: 140; --num-w: 30.5; --num-mr: 9.18; --num-mb: 8.88; --art-x: 1.5; --art-y: 0; --art-w: 58.78; }
  .day--02 { grid-area: 2 / 3 / span 1 / span 1; --w: 66; --num-w: 37; --num-ml: 5.3; --num-mb: 6.69; }
  .day--03 { grid-area: 2 / 4 / span 1 / span 1; --w: 66; --num-w: 38; --num-mr: 0.21; --num-mb: 8.72; }
  .day--04 { grid-area: 3 / 1 / span 1 / span 1; --w: 66; --num-w: 36; --num-mr: 1.71; --num-mb: 8.88; --art-x: 3.47; --art-y: 3.24; --art-w: 38.5; }
  .day--05 { grid-area: 3 / 2 / span 1 / span 1; --w: 66; --num-w: 37; --num-mr: 6.69; --num-mb: 8.68; }
  .day--06 { grid-area: 3 / 3 / span 1 / span 1; --w: 66; --num-w: 38; --num-mr: 1.2; --num-mb: 8.71; }
  .day--07 { grid-area: 3 / 4 / span 1 / span 1; --w: 66; --num-w: 35.5; --num-mr: 3.2; --num-mb: 8.68; }
  .day--08 { grid-area: 4 / 1 / span 1 / span 1; --w: 66; --num-w: 37; --num-mr: 1.21; --num-mb: 8.97; }
  .day--09 { grid-area: 4 / 2 / span 1 / span 1; --w: 66; --num-w: 38; --num-mr: 9.68; --num-mb: 7.39; }
  .day--10 { grid-area: 4 / 3 / span 2 / span 1; --w: 66; --num-w: 30.5; --num-mr: 9.18; --num-mb: 9.38; --art-x: 5; --art-y: 9; --art-w: 56.45; }
  .day--11 { grid-area: 5 / 1 / span 1 / span 1; --w: 66; --num-w: 23; --num-mr: 7.19; --num-mb: 9.41; --art-x: 1.84; --art-y: 4.38; --art-w: 42.54; }
  .day--12 { grid-area: 5 / 2 / span 1 / span 1; --w: 66; --num-w: 30; --num-mr: 6.69; --num-mb: 6.69; }
  .day--13 { grid-area: 6 / 1 / span 1 / span 2; --w: 140; --num-w: 30.5; --num-mr: 8.95; --num-mb: 8.72; --art-x: 7.73; --art-y: 8.47; --art-w: 79.14; }
  .day--14 { grid-area: 6 / 3 / span 1 / span 1; --w: 66; --num-w: 29; --num-mr: 6.71; --num-mb: 9.41; --art-x: 5.97; --art-y: 2.48; --art-w: 36.01; }
  .day--15 { grid-area: 4 / 4 / span 2 / span 1; --w: 66; --num-w: 30; --num-mr: 7.9; --num-mb: 8.68; --art-x: 4.05; --art-y: 4.99; --art-w: 56.73; }
  .day--16 { grid-area: 6 / 4 / span 1 / span 1; --w: 66; --num-w: 30.5; --num-mr: 3.68; --num-mb: 9.22; --art-x: 6.5; --art-y: 4.96; --art-w: 26.02; }
  .day--17 { grid-area: 7 / 1 / span 1 / span 1; --w: 66; --num-w: 28.5; --num-mr: 4.19; --num-mb: 9.19; }
  .day--18 { grid-area: 7 / 2 / span 1 / span 1; --w: 66; --num-w: 30; --num-mr: 6.19; --num-mb: 8.98; --art-x: -7.71; --art-y: -6.64; --art-w: 49.31; }
  .day--19 { grid-area: 7 / 3 / span 1 / span 1; --w: 66; --num-w: 30.5; --num-ml: 8.3; --num-mt: 7.08; }
  .day--20 { grid-area: 7 / 4 / span 1 / span 1; --w: 66; --num-w: 37.5; --num-mr: 4.2; --num-mt: 4.78; }
  .day--21 { grid-area: 8 / 1 / span 1 / span 1; --w: 66; --num-w: 30.5; --num-mr: 9.68; --num-mb: 6.69; }
  .day--22 { grid-area: 8 / 2 / span 1 / span 2; --w: 140; --num-w: 37; --num-mr: 46.68; --num-mb: 6.69; }
  .day--23 { grid-area: 8 / 4 / span 1 / span 1; --w: 66; --num-w: 38; --num-mr: 5.69; --num-mb: 6.72; --art-x: 21.99; --art-y: -7.05; --art-w: 37.69; }
  .day--24 { grid-area: 9 / 1 / span 1 / span 1; --w: 66; --num-w: 36; --num-mr: 9.19; --num-mb: 6.69; }
  .day--25 { grid-area: 9 / 2 / span 1 / span 1; --w: 66; --num-w: 37.5; --num-ml: 8.3; --num-mb: 6.69; }
  .day--26 { grid-area: 10 / 1 / span 1 / span 2; --w: 140; --num-w: 38; --num-mr: 45.7; --num-mb: 6.72; }
  .day--27 { grid-area: 9 / 3 / span 2 / span 2; --w: 140; --num-w: 36; --num-mr: 11.08; --num-mb: 6.19; --art-x: -7.4; --art-y: -19.54; --art-w: 139.5; }

  /* The bell hangs inside tile 02 and is cut by its edges, as in the design */
  .calendar__bell {
    display: none;
  }

  .day__art--phone {
    display: block;
  }

  /* Tilted bell over the corner of tile 02, cut along the top of the calendar
     (the polygon is that edge in the bell's own, unrotated box) */
  .day--02 {
    --art-x: 40.64;
    --art-y: -18.5;
    --art-w: 38.02;
    --art-rot: -30deg;
  }

  .day__art--phone {
    clip-path: polygon(-308.5% -135.6%, 374.8% 199.0%, 111.8% 585.3%, -571.5% 250.7%);
  }

  /* Lies over tiles 14 and 16 */
  .calendar__star {
    grid-area: 6 / 3 / 7 / 5;
    width: calc(78.74 / 140 * 100%);
    margin: calc(24.16 / 140 * 100%) 0 0 calc(31 / 140 * 100%);
  }

  .day[data-state="today"] .day__door {
    outline-width: 2px;
    outline-offset: 2px;
  }

  .legend {
    align-items: center;
    gap: 8px 12px;
    margin-top: 20px;
  }

  .legend__item {
    gap: 6.4px;
    font-size: 12px;
    line-height: normal;
  }

  .legend__icon {
    width: 32px;
    height: 32px;
  }

  .legend__icon img {
    width: 19.2px;
    height: 19.2px;
  }

  .legend__icon--today {
    width: 25.6px;
    height: 25.6px;
    border-width: 2.4px;
    border-radius: 6.4px;
  }

  .legend__icon--lock img {
    width: 32px;
    height: 32px;
  }
}

/* ---------- Keyframes ---------- */

@keyframes tile-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.92);
  }
}

@keyframes today-glow {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.5);
  }

  50% {
    box-shadow: 0 0 0 calc(14 * var(--k)) rgba(255, 255, 255, 0);
  }
}

@keyframes door-open {
  40% {
    transform: perspective(700px) rotateY(-32deg);
  }
}

@keyframes door-glow {
  40% {
    opacity: 1;
  }
}

@keyframes gift-bounce {
  0%,
  60%,
  100% {
    transform: none;
  }

  20% {
    transform: translateY(-14%) rotate(-8deg);
  }

  40% {
    transform: translateY(0) rotate(6deg);
  }
}

@keyframes bell-swing {
  0%,
  100% {
    rotate: 0deg;
  }

  20% {
    rotate: 8deg;
  }

  40% {
    rotate: -6deg;
  }

  55% {
    rotate: 3deg;
  }

  70% {
    rotate: 0deg;
  }
}

@keyframes sway {
  0%,
  100% {
    rotate: -2deg;
  }

  50% {
    rotate: 2deg;
  }
}

@keyframes wobble {
  0%,
  100% {
    rotate: 0deg;
    scale: 1;
  }

  50% {
    rotate: 6deg;
    scale: 1.04;
  }
}
