/* TEMPORARY — the "still in build" notice on the home page.
   Delete this file together with components/LaunchBanner.tsx. */

.launch-banner {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  z-index: 90; /* under the header (100) and the auth modal, over the page */

  display: flex;
  align-items: center;
  gap: 0.85rem;
  max-width: min(46rem, calc(100vw - 2rem));
  padding: 0.7rem 0.8rem 0.7rem 1rem;

  background: var(--bg);
  border: 1.5px solid var(--text);
  box-shadow: 5px 5px 0 var(--accent);

  animation: launch-banner-in 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes launch-banner-in {
  from { opacity: 0; transform: translate(-50%, 1.25rem); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

@keyframes launch-banner-in-sm {
  from { opacity: 0; transform: translateY(1rem); }
  to   { opacity: 1; transform: translateY(0); }
}

.launch-banner-tag {
  flex-shrink: 0;
  padding: 0.25rem 0.5rem;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.launch-banner-text {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--text);
}

.launch-banner-close {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  background: none;
  border: 1.5px solid transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.launch-banner-close:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.launch-banner-close:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Narrow screens: the tag costs more room than it earns, and the banner needs
   the full width to keep the sentence to two lines. */
@media (max-width: 560px) {
  .launch-banner {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    max-width: none;
    transform: none;
    gap: 0.6rem;
    padding: 0.65rem 0.65rem 0.65rem 0.85rem;
    /* Its own keyframes, because the shared ones carry the centring
       translateX(-50%) that this layout does not use. */
    animation-name: launch-banner-in-sm;
  }

  .launch-banner-tag { display: none; }
  .launch-banner-text { font-size: 0.82rem; }
}

@media (prefers-reduced-motion: reduce) {
  .launch-banner { animation: none; }
}
