.pwa-launcher {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 95;
  width: min(355px, calc(100vw - 32px));
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 10px 18px 10px 12px;
  overflow: hidden;
  border: 2px solid #ffe094;
  border-radius: 18px;
  background: linear-gradient(145deg, #ffcf67, #e59416 68%, #b96b08);
  color: #211304;
  text-decoration: none;
  box-shadow:
    0 12px 32px rgba(0, 0, 0, .62),
    0 0 25px rgba(239, 169, 28, .38),
    inset 0 1px 0 rgba(255, 255, 255, .72);
  animation: app-button-float 2.2s ease-in-out infinite;
}

.pwa-launcher::before {
  content: "";
  position: absolute;
  top: -80%;
  left: -35%;
  width: 25%;
  height: 270%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.62), transparent);
  transform: rotate(18deg);
  animation: app-button-shine 3.8s ease-in-out infinite;
}

.pwa-launcher-icon {
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #17120a;
  color: #f4b536;
  font-size: 27px;
  box-shadow: inset 0 0 0 1px #66410c, 0 5px 12px rgba(0,0,0,.3);
}

.pwa-launcher small,
.pwa-launcher strong {
  display: block;
}

.pwa-launcher small {
  margin-bottom: 3px;
  font: 700 12px "Barlow Condensed", Arial, sans-serif;
  letter-spacing: 1.2px;
}

.pwa-launcher strong {
  font: 800 19px/1.05 "Barlow Condensed", Arial, sans-serif;
}

.pwa-launcher:hover,
.pwa-launcher:focus-visible {
  color: #120b03;
  filter: brightness(1.08);
  transform: translateY(-3px) scale(1.02);
  outline: 3px solid rgba(255, 210, 100, .4);
  outline-offset: 3px;
}

@keyframes app-button-float {
  50% {
    transform: translateY(-4px);
    box-shadow:
      0 17px 36px rgba(0, 0, 0, .66),
      0 0 34px rgba(239, 169, 28, .52),
      inset 0 1px 0 rgba(255, 255, 255, .72);
  }
}

@keyframes app-button-shine {
  0%, 45% { left: -35%; opacity: 0; }
  55% { opacity: 1; }
  78%, 100% { left: 120%; opacity: 0; }
}

@media (max-width: 620px) {
  .pwa-launcher {
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    width: calc(100vw - 24px);
    min-height: 64px;
    padding: 8px 13px 8px 9px;
    border-radius: 15px;
  }

  .pwa-launcher-icon {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
    font-size: 24px;
  }

  .pwa-launcher strong {
    font-size: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pwa-launcher,
  .pwa-launcher::before {
    animation: none;
  }
}
