/* Smart-link / app page for BOUNCX. Loaded after /assets/site-v3.css. */
.app-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  background:
    radial-gradient(60rem 40rem at 50% -10%, rgba(91, 75, 214, .28), transparent 70%),
    var(--bg);
}
.app-main { max-width: 420px; width: 100%; }
.app-icon {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  margin: 0 auto 20px;
  display: block;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .12);
}
.app-title {
  font: 400 1.55rem/1.2 var(--display);
  letter-spacing: .03em;
  margin-bottom: 8px;
}
.app-lead {
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.5;
  margin: 0 0 28px;
}
.redirecting { margin-bottom: 28px; }
.redirecting p { margin: 0; color: var(--muted); font-size: .95rem; }
.spinner {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(255, 255, 255, .18);
  border-top-color: var(--gold);
  border-radius: 50%;
  margin: 0 auto 16px;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.app-badges {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}
.app-badges img { height: 3.5rem; width: auto; display: block; }
.app-badges a { display: inline-block; transition: transform .15s ease; }
.app-badges a:active { transform: scale(.97); }
.app-note {
  font-size: .85rem;
  color: var(--muted);
  margin: 16px 0 0;
}
.app-note:empty { display: none; }
.app-home {
  display: inline-block;
  margin-top: 30px;
  font-size: .9rem;
  color: var(--muted);
  text-underline-offset: 3px;
}
.app-home:hover { color: #fff; }

/* In-app browser escape hint (Instagram, TikTok, Facebook, …) */
.escape-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 3, 20, .72);
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
}
.escape-overlay.visible { opacity: 1; pointer-events: auto; }
.escape-overlay svg {
  position: absolute;
  top: 8px;
  right: 14px;
  width: 76px;
  max-width: 76px;
  height: auto;
  overflow: visible;
}
.escape-overlay path {
  fill: none;
  stroke: var(--gold);
  stroke-width: 12;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 10px rgba(255, 201, 60, .85)) drop-shadow(0 2px 6px rgba(0, 0, 0, .5));
  animation: arrow-bounce 1.1s ease-in-out infinite;
}
.escape-overlay polygon {
  fill: var(--gold);
  filter: drop-shadow(0 0 10px rgba(255, 201, 60, .85));
  animation: arrow-bounce 1.1s ease-in-out infinite;
}
@keyframes arrow-bounce {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(6px, -8px); }
}
.escape-overlay .escape-label {
  position: absolute;
  top: 92px;
  right: 14px;
  white-space: nowrap;
  text-align: left;
  font: 800 1.05rem/1.35 var(--sans);
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .5);
}
.escape-overlay .escape-hl {
  color: var(--gold);
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 3px;
}
.escape-overlay .escape-sub {
  position: absolute;
  top: 190px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: rgba(255, 255, 255, .75);
  font-size: .8rem;
  background: rgba(0, 0, 0, .35);
  padding: 5px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  .spinner,
  .escape-overlay path,
  .escape-overlay polygon { animation: none; }
}
