.tgkomik-pwa-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 999999;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 560px;
  margin: 0 auto;
  padding: 10px 12px;
  border: 1px solid rgba(168, 85, 247, 0.45);
  border-radius: 16px;
  background: #12101a;
  color: #f5f2ff;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55), 0 0 24px rgba(168, 85, 247, 0.22);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 13px;
  line-height: 1.35;
  transform: translateY(140%);
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
  pointer-events: none;
  box-sizing: border-box;
}

.tgkomik-pwa-banner.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.tgkomik-pwa-banner * {
  box-sizing: border-box;
}

.tgkomik-pwa-banner__icon {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 11px;
  background: #0b0910;
  object-fit: cover;
}

.tgkomik-pwa-banner__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1 1 auto;
  gap: 2px;
}

.tgkomik-pwa-banner__text strong {
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

.tgkomik-pwa-banner__text span {
  color: #c9bfe3;
  font-size: 12px;
  line-height: 1.3;
}

.tgkomik-pwa-banner__install {
  flex: 0 0 auto;
  padding: 9px 14px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, #a855f7, #7c3aed);
  color: #ffffff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.4);
}

.tgkomik-pwa-banner__install:hover,
.tgkomik-pwa-banner__install:focus-visible {
  background: linear-gradient(135deg, #b56cf9, #8b5cf6);
  outline: 2px solid rgba(196, 154, 255, 0.7);
  outline-offset: 2px;
}

.tgkomik-pwa-banner__close {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: rgba(245, 242, 255, 0.6);
  font-family: inherit;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.tgkomik-pwa-banner__close:hover,
.tgkomik-pwa-banner__close:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  outline: none;
}

@media (min-width: 720px) {
  .tgkomik-pwa-banner {
    left: auto;
    right: 20px;
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    width: 380px;
    margin: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tgkomik-pwa-banner {
    transition: none;
  }
}
