/* "Get the CLIP app" bar (app-banner.js). Phones only; sits above the page
   content along the bottom, clear of the home indicator. */
.app-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: var(--z-fixed, 1030);
  display: flex;
  align-items: center;
  gap: var(--space-sm, 0.6rem);
  padding: 0.6rem 1rem;
  padding-bottom: calc(0.6rem + env(safe-area-inset-bottom, 0px));
  background: var(--bg-surface, #16213e);
  border-top: 1px solid var(--border-color, rgba(201, 168, 76, 0.2));
  box-shadow: var(--shadow-lg, 0 10px 15px rgba(0, 0, 0, 0.3));
  color: var(--text-primary, #f5f0e8);
  font-family: var(--font-family-body, 'Roboto', 'Arial', sans-serif);
}

.app-banner[hidden] {
  display: none;
}

.app-banner__close {
  flex: none;
  width: 32px;
  height: 32px;
  margin-left: -0.4rem;
  border: 0;
  background: none;
  color: var(--text-muted, #a8a195);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.app-banner__icon {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md, 8px);
}

.app-banner__text {
  flex: 1;
  min-width: 0;
}

.app-banner__title {
  font-weight: 700;
  font-size: var(--font-size-sm, 0.95rem);
}

.app-banner__sub {
  font-size: var(--font-size-xs, 0.8rem);
  color: var(--text-secondary, #d4cdbe);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-banner__action {
  flex: none;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-full, 9999px);
  background: var(--accent-gold, #b8965a);
  color: var(--on-accent, #1a1a2e);
  font-weight: 700;
  font-size: var(--font-size-sm, 0.95rem);
  text-decoration: none;
  white-space: nowrap;
}

.app-banner__action:hover,
.app-banner__action:focus-visible {
  background: var(--accent-gold-hover, #cba76a);
  color: var(--on-accent, #1a1a2e);
}

/* Room at the bottom of the page so the bar doesn't cover the last of it. */
html.has-app-banner body {
  padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px));
}
