header.nav #navlinks > :is(.gm-disc-nav, .gm-fav-nav) > button {
  display: flex !important;
  align-items: center;
  gap: 8px;
}
#navlinks .gm-links-caret {
  width: 7px;
  height: 7px;
  flex: none;
  border: solid currentColor;
  border-width: 0 1px 1px 0;
  transform: translateY(-2px) rotate(45deg);
}
#navlinks .open > button > .gm-links-caret { transform: translateY(2px) rotate(225deg); }
header.nav #navlinks .gm-links-nav .gm-links-sub button {
  white-space: normal;
  text-align: start;
}
#navlinks .gm-links-sub button > svg {
  width: 16px;
  height: 16px;
  color: #fff;
  justify-self: center;
}
.gm-links-install-copy { display: block; min-width: 0; }
.gm-links-install-title,
.gm-links-install-name { display: block; white-space: nowrap; }
.gm-links-install-title > span {
  display: inline-block;
  transform: scaleX(var(--gm-title-scale, 1));
  transform-origin: left center;
}
[dir="rtl"] .gm-links-sub .gm-links-install-title > span { transform-origin: right center; }

#navlinks .gm-links-sub [data-gm-install-trigger] > .gm-links-install-copy {
  margin-inline-end: 1.8em;
  transform-origin: left center;
  animation: gm-menu-install-pulse 2.6s ease-in-out infinite;
}
[dir="rtl"] #navlinks .gm-links-sub [data-gm-install-trigger] > .gm-links-install-copy {
  transform-origin: right center;
}
@supports (background-clip: text) {
  #navlinks .gm-links-sub [data-gm-install-trigger] > .gm-links-install-copy {
    --gm-menu-install-gold: var(--gm-request-light-gold, #f0ddb0);
    background: linear-gradient(105deg, var(--gm-menu-install-gold) 40%, #a87d52 47%, #644331 50%, #a87d52 53%, var(--gm-menu-install-gold) 60%) no-repeat;
    background-size: 250% 100%;
    background-clip: text;
    color: transparent;
    animation: gm-menu-install-pulse 2.6s ease-in-out infinite, gm-links-text-shine 3.4s ease-in-out infinite;
  }
}
@keyframes gm-menu-install-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.09); }
}

@media (max-width: 900px) {
  header.nav #navlinks.open {
    --gm-menu-compact-width: calc(clamp(264px, calc(62vw + 38px), 358px) - 1cm);
    width: var(--gm-menu-compact-width) !important;
  }
  header.nav #navlinks.open:has(.gm-links-nav.open) {
    width: max-content !important;
    min-width: min(calc(100vw - 24px), var(--gm-menu-compact-width)) !important;
  }
  #navlinks .gm-links-sub > button { width: 100%; }
}
@media (max-width: 900px) and (prefers-reduced-motion: no-preference) {
  @supports (interpolate-size: allow-keywords) {
    header.nav #navlinks.open {
      interpolate-size: allow-keywords;
      transition: width .2s ease-in-out;
    }
    /* Retain the intrinsic width during collapse while hiding the submenu. */
    header.nav #navlinks.open .gm-links-nav:not(.open) > .gm-links-sub {
      display: flex !important;
      flex-direction: column;
      block-size: 0;
      overflow: hidden;
      visibility: hidden;
    }
  }
}
@media (min-width: 901px) {
  header.nav #navlinks > .gm-fav-nav > button { width: auto !important; }
  header.nav #navlinks .gm-links-sub {
    inset-inline: auto 0;
    width: max-content;
    max-width: min(350px, calc(100vw - 48px));
  }
}

#links .gm-links-install-row {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 24px auto 0;
  max-width: 100%;
  direction: ltr;
}
#links .gm-links-install {
  appearance: none;
  background: none;
  border: 0;
  padding-inline: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  min-width: 0;
  padding-block: 8px;
  max-width: 86%;
  --gm-install-red: #e96d69;
  color: var(--gm-install-red);
  font: 500 clamp(12px, 3.4vw, 14px)/1.45 Inter, Arial, sans-serif;
  text-decoration: none;
  text-align: center;
}
#links .gm-links-install:hover,
#links .gm-links-install:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
#links .gm-links-install-motion {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  transform-origin: center;
  animation: gm-links-install-pulse 2.6s ease-in-out infinite;
}
#links .gm-links-install-motion > svg { width: clamp(20px, 6vw, 25px); height: auto; flex: none; }
#links .gm-links-install-title {
  display: flex;
  justify-content: center;
}
#links .gm-links-install-title > span { transform-origin: center; flex: none; }
#links .gm-links-install-name { font-weight: 600; }
#links .gm-links-install-icon-shine {
  opacity: 0;
}
@media (prefers-reduced-motion: no-preference) {
  #links .gm-links-install-icon-shine {
    stroke: #ffd881;
    animation: gm-links-icon-shine 3.4s ease-in-out infinite;
  }
  @supports (background-clip: text) {
    #links .gm-links-install-copy {
      background: linear-gradient(105deg, var(--gm-install-red) 34%, #ef9170 44%, #ffda83 49%, #fff0b8 51%, #ffda83 54%, var(--gm-install-red) 65%) no-repeat;
      background-size: 250% 100%;
      background-clip: text;
      color: transparent;
      animation: gm-links-text-shine 3.4s ease-in-out infinite;
    }
  }
}
@keyframes gm-links-install-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.16); }
}
@keyframes gm-links-icon-shine {
  0%, 9%, 37%, 100% { opacity: 0; }
  22% { opacity: 1; filter: drop-shadow(0 0 2px #ffc568); }
}
@keyframes gm-links-text-shine {
  0%, 16% { background-position: 100% 50%; }
  70%, 100% { background-position: 0 50%; }
}
