@keyframes gm-page-out {
  to {
    opacity: 0;
    transform: scale(0.992);
    filter: blur(2px);
  }
}
@keyframes gm-page-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}
@media (prefers-reduced-motion: no-preference) {
  html.gm-transitions::view-transition-old(root) {
    animation: gm-page-out 0.26s ease-in both;
  }
  html.gm-transitions::view-transition-new(root) {
    animation: gm-page-in 0.42s cubic-bezier(0.2, 0.8, 0.3, 1) 0.06s both;
  }
  html.gm-transitions::view-transition-group(gm-banner) {
    animation-duration: 0.3s;
  }
}
.gm-spores {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  overflow: hidden;
}
.gm-spores i {
  position: absolute;
  bottom: -12px;
  width: var(--s, 5px);
  height: var(--s, 5px);
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, #cef591 45%, rgba(206, 245, 145, 0) 72%);
  opacity: 0;
  animation: gm-spore-rise var(--d, 1.1s) cubic-bezier(0.25, 0.6, 0.35, 1) var(--w, 0s) forwards;
}

@keyframes gm-spore-rise {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0.6);
  }
  20% {
    opacity: 0.9;
  }
  100% {
    opacity: 0;
    transform: translate(var(--x, 0px), var(--y, -60vh)) scale(1.1);
  }
}
.gm-cameo {
  --size: clamp(128px, 16vw, 190px);
  position: fixed;
  bottom: 0;
  z-index: 9997;
  width: var(--size);
  height: calc(var(--size) * 0.96);
  pointer-events: none;
}
.gm-cameo--left {
  left: clamp(10px, 4vw, 48px);
}
.gm-cameo--right {
  right: clamp(86px, 9vw, 124px);
}

.gm-cameo__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  pointer-events: auto;
  transform: translateY(105%);
  transform-origin: 50% 100%;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.35));
  -webkit-tap-highlight-color: transparent;
}
.gm-cameo__body img {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}
.gm-cameo__body:focus-visible {
  outline: 3px solid #cef591;
  outline-offset: 4px;
  border-radius: 12px;
}
.gm-cameo--right .gm-cameo__body img {
  transform: scaleX(-1);
}

.gm-cameo__grass {
  position: absolute;
  left: -18%;
  right: -18%;
  bottom: -4px;
  height: 24%;
  pointer-events: none;
  overflow: visible;
}
.gm-cameo__grass path {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: gm-blade-sway 3.2s ease-in-out infinite;
}
.gm-cameo__grass path:nth-child(2n) {
  animation-duration: 2.6s;
  animation-delay: -0.8s;
}
.gm-cameo__grass path:nth-child(3n) {
  animation-duration: 3.8s;
  animation-delay: -1.6s;
}

.gm-cameo.is-rustle .gm-cameo__grass path {
  animation: gm-blade-rustle 0.42s ease-in-out 2;
}

@keyframes gm-blade-sway {
  0%, 100% {
    transform: rotate(-3deg);
  }
  50% {
    transform: rotate(4deg);
  }
}
@keyframes gm-blade-rustle {
  0%, 100% {
    transform: rotate(0);
  }
  25% {
    transform: rotate(-12deg);
  }
  75% {
    transform: rotate(10deg);
  }
}
.gm-cameo.is-up .gm-cameo__body {
  animation: gm-cameo-rise 0.9s cubic-bezier(0.2, 1.5, 0.35, 1) forwards;
}

.gm-cameo.is-up.is-settled .gm-cameo__body {
  transform: translateY(12%);
  animation: gm-cameo-idle 3.4s ease-in-out infinite;
}

.gm-cameo.is-up.is-settled.is-hop .gm-cameo__body {
  animation: gm-cameo-hop 0.5s cubic-bezier(0.3, 1.6, 0.4, 1);
}

.gm-cameo.is-down .gm-cameo__body {
  animation: gm-cameo-duck 0.36s cubic-bezier(0.6, -0.4, 0.8, 0.4) forwards;
}

@keyframes gm-cameo-rise {
  0% {
    transform: translateY(105%) scale(0.96, 1.04);
  }
  55% {
    transform: translateY(6%) scale(1.04, 0.95);
  }
  75% {
    transform: translateY(14%) scale(0.98, 1.02) rotate(-2deg);
  }
  100% {
    transform: translateY(12%) rotate(0);
  }
}
@keyframes gm-cameo-idle {
  0%, 100% {
    transform: translateY(12%) rotate(0);
  }
  30% {
    transform: translateY(10%) rotate(-4deg);
  }
  60% {
    transform: translateY(12%) rotate(2deg);
  }
}
@keyframes gm-cameo-hop {
  0%, 100% {
    transform: translateY(12%) scale(1);
  }
  30% {
    transform: translateY(15%) scale(1.06, 0.92);
  }
  60% {
    transform: translateY(-2%) scale(0.96, 1.05);
  }
}
@keyframes gm-cameo-duck {
  0% {
    transform: translateY(12%);
  }
  30% {
    transform: translateY(6%) scale(1.03, 0.97);
  }
  100% {
    transform: translateY(110%) scale(0.95, 1.05);
  }
}
.gm-cameo__bubble {
  position: absolute;
  bottom: calc(100% - var(--size) * 0.3);
  width: max-content;
  max-width: min(240px, 62vw);
  margin: 0;
  padding: 9px 13px 10px;
  background: #f3eac3;
  color: #1b2218 !important;
  -webkit-text-fill-color: #1b2218;
  text-align: left;
  text-shadow: none;
  letter-spacing: normal;
  text-transform: none;
  border: 2px solid #1b2218;
  border-radius: 16px 16px 16px 4px;
  box-shadow: 2px 3px 0 rgba(10, 16, 12, 0.55);
  font-family: "scribble", "Amatic SC", cursive;
  font-size: clamp(1.15rem, 1.6vw, 1.35rem) !important;
  line-height: 1.3 !important;
  pointer-events: none;
  opacity: 0;
  transform: translateY(8px) scale(0.85);
  transform-origin: 0% 100%;
  transition: opacity 0.22s ease, transform 0.32s cubic-bezier(0.2, 1.5, 0.35, 1);
}
.gm-cameo--left .gm-cameo__bubble {
  left: 58%;
}
.gm-cameo--right .gm-cameo__bubble {
  right: 58%;
  border-radius: 16px 16px 4px 16px;
  transform-origin: 100% 100%;
}
.gm-cameo__bubble.is-on {
  opacity: 1;
  transform: none;
}

.gm-cameo__puff {
  position: absolute;
  left: 50%;
  bottom: 22%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(243, 234, 195, 0.85);
  pointer-events: none;
  animation: gm-puff 0.7s ease-out forwards;
}

@keyframes gm-puff {
  0% {
    opacity: 0.9;
    transform: translate(-50%, 0) scale(0.4);
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--px, 0px)), var(--py, -40px)) scale(1.6);
  }
}
@media (prefers-reduced-motion: reduce) {
  .gm-cameo__grass path,
  .gm-cameo.is-rustle .gm-cameo__grass path {
    animation: none;
  }
  .gm-cameo__body {
    transform: translateY(12%);
    opacity: 0;
    transition: opacity 0.4s ease;
  }
  .gm-cameo.is-up .gm-cameo__body,
  .gm-cameo.is-up.is-settled .gm-cameo__body,
  .gm-cameo.is-up.is-settled.is-hop .gm-cameo__body {
    animation: none;
    opacity: 1;
  }
  .gm-cameo.is-down .gm-cameo__body {
    animation: none;
    opacity: 0;
  }
  .gm-cameo__puff,
  .gm-spores {
    display: none;
  }
}
@media print {
  .gm-cameo,
  .gm-spores {
    display: none !important;
  }
}
