.app-footer {
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 20px;
  padding-bottom: max(0px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  backdrop-filter: blur(16px);
  font-size: 12px;
  color: var(--text-muted);
}

.app-footer-copy,
.app-footer-links {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.app-footer-copy {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.app-footer-sep {
  opacity: 0.5;
}

.app-footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s, opacity 0.2s;
}

.app-footer-links a:hover {
  color: var(--accent);
}

.visitor-badge-wrap {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.visitor-badge {
  display: block;
  max-width: 100%;
  height: 20px;
  border-radius: 999px;
}

@media (min-width: 1440px) {
  .app-footer {
    width: min(1600px, calc(100vw - 32px));
    margin-inline: auto;
    margin-bottom: 16px;
    padding-inline: 24px;
    border: 1px solid color-mix(in srgb, var(--border) 88%, transparent);
    border-radius: 20px;
  }
}

@media (min-width: 1680px) {
  .app-footer {
    width: min(1720px, calc(100vw - 40px));
    padding-inline: 28px;
  }
}

@media (max-width: 640px) {
  .app-footer {
    height: auto;
    min-height: 52px;
    padding-block: 8px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .app-footer-copy,
  .app-footer-links {
    justify-content: center;
    flex-wrap: wrap;
  }
}
