/* ============================================================
   "Open in your browser" nudge for LINE / Facebook / Instagram's
   in-app WebView.

   Those apps run an isolated cookie jar/storage from Safari or
   Chrome, so score.sportz.jp login state doesn't carry over when
   a link is opened inside one of them. Docked at the TOP (not the
   bottom, where pwa-install.css's card lives) so the two never
   overlap.

   Injected + controlled by in-app-browser.js.
   ============================================================ */

.iab-banner {
  position: fixed;
  left: 50%;
  top: 0;
  transform: translateX(-50%) translateY(-140%);
  width: calc(100% - 28px);
  max-width: 440px;
  margin-top: max(10px, env(safe-area-inset-top));
  z-index: 9100;
  box-sizing: border-box;
  background: linear-gradient(135deg, #1b2c78 0%, #17256c 55%, #101746 100%);
  color: #fff;
  border-radius: 16px;
  padding: 16px 16px 16px 18px;
  box-shadow: 0 14px 38px rgba(8, 13, 45, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  opacity: 0;
  transition: transform 0.42s cubic-bezier(0.2, 0.9, 0.3, 1),
              opacity 0.42s ease;
}
.iab-banner.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.iab-banner.is-leaving {
  transform: translateX(-50%) translateY(-140%);
  opacity: 0;
}

.iab-banner-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.iab-banner-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.10);
  color: #fff;
}
.iab-banner-icon svg { width: 20px; height: 20px; display: block; }
.iab-banner-text { flex: 1; min-width: 0; }
.iab-banner-title {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.01em;
}
.iab-banner-desc {
  margin: 3px 0 0;
  font-size: 12px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.74);
}
.iab-banner-close {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.6);
  font-size: 17px;
  line-height: 1;
  background: rgba(255, 255, 255, 0.07);
  transition: background 0.15s, color 0.15s;
}
.iab-banner-close:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.iab-banner-actions {
  display: flex;
  gap: 10px;
  margin-top: 13px;
}
.iab-banner-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.12s, background 0.12s;
}
.iab-banner-btn-primary {
  background: linear-gradient(135deg, #ffce4a, #ffb400);
  color: #17256c;
  box-shadow: 0 6px 16px rgba(255, 180, 0, 0.34);
}
.iab-banner-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 9px 20px rgba(255, 180, 0, 0.44);
}
.iab-banner-btn-ghost {
  flex: 0 0 auto;
  background: rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.85);
  padding: 10px 16px;
}
.iab-banner-btn-ghost:hover { background: rgba(255, 255, 255, 0.18); }

@media (prefers-reduced-motion: reduce) {
  .iab-banner { transition: opacity 0.3s ease; }
  .iab-banner,
  .iab-banner.is-visible,
  .iab-banner.is-leaving { transform: translateX(-50%); }
}
