/* MINT banner contract v1.
   This file owns the banner's internal layout, responsive wrapping, image
   sizing, and motion. The host page owns placement (fixed/sticky/static),
   background, border, and any offset created by its sidebar. */
.top-banner {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 12px 0;
}

.top-banner-inner {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 0 18px;
  gap: 12px;
}

.top-banner-home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
}

.top-banner-logo {
  display: block;
  flex-shrink: 0;
  width: auto;
  height: min(75px, 9vh);
  max-width: 100%;
  object-fit: contain;
  image-rendering: auto;
}

.top-banner-minties {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 1 auto;
  flex-wrap: wrap;
  min-width: 0;
  max-width: 100%;
  gap: 6px;
}

.top-banner-minty {
  display: block;
  flex: 0 0 auto;
  width: min(45px, 5.4vh);
  height: min(45px, 5.4vh);
  object-fit: contain;
  image-rendering: pixelated;
  opacity: 0;
  animation: mintBannerFadeIn 0.4s ease forwards;
  transition: transform 0.2s;
}

.top-banner-minty:hover {
  transform: scale(1.3) translateY(-4px);
}

@keyframes mintBannerFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .top-banner {
    min-height: 60px;
  }

  .top-banner-inner {
    flex-direction: column;
    gap: 6px;
    padding: 9px 12px;
  }

  .top-banner-logo {
    height: 36px;
  }

  .top-banner-minties {
    flex-wrap: wrap;
    gap: 4.5px;
  }

  .top-banner-minty {
    width: 21.6px;
    height: 21.6px;
  }
}

@media (max-width: 900px) and (orientation: landscape) {
  .top-banner {
    min-height: 37.5px;
    padding-left: env(safe-area-inset-left, 0px);
    padding-right: env(safe-area-inset-right, 0px);
  }

  .top-banner-inner {
    flex-direction: row;
    gap: 7.5px;
    padding: 4.5px 12px;
  }

  .top-banner-logo {
    height: 24px;
  }

  .top-banner-minties {
    flex-wrap: nowrap;
    gap: 2.25px;
  }

  .top-banner-minty {
    width: 14.4px;
    height: 14.4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .top-banner-minty {
    opacity: 1;
    animation: none;
    transition: none;
  }

  .top-banner-minty:hover {
    transform: none;
  }
}
