:root {
  color-scheme: dark;
  --background: #02040a;
  --focus: #32ff7e;
  --text: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--background);
}

body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 20% 20%, rgba(149, 0, 255, 0.08), transparent 34rem),
    radial-gradient(circle at 80% 20%, rgba(0, 153, 255, 0.08), transparent 34rem),
    var(--background);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}

.landing-page {
  min-height: 100svh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 12px;
}

.campaign-card {
  position: relative;
  display: block;
  width: fit-content;
  max-width: 100%;
  text-decoration: none;
  border-radius: 4px;
  outline: none;
  isolation: isolate;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 360ms ease,
    transform 360ms ease,
    filter 220ms ease;
}

.campaign-card.is-loaded {
  opacity: 1;
  transform: translateY(0);
}

.campaign-card:hover {
  filter: brightness(1.035);
}

.campaign-card:focus-visible {
  box-shadow:
    0 0 0 3px var(--background),
    0 0 0 6px var(--focus);
}

.campaign-image {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(100dvh - 24px);
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

.click-hint {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  max-width: calc(100% - 28px);
  padding: 9px 14px;
  border: 1px solid rgba(115, 255, 113, 0.72);
  border-radius: 999px;
  background: rgba(0, 12, 4, 0.78);
  box-shadow: 0 0 22px rgba(54, 255, 106, 0.25);
  color: #dffff0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
  backdrop-filter: blur(8px);
}

.campaign-card:hover .click-hint,
.campaign-card:focus-visible .click-hint {
  opacity: 1;
  transform: translateY(0);
}

.campaign-card.is-opening::after {
  content: "Abrindo o WhatsApp…";
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.52);
  color: #ffffff;
  font-size: clamp(1rem, 2.4vw, 1.35rem);
  font-weight: 700;
  text-align: center;
  backdrop-filter: blur(3px);
}

.noscript-message {
  position: fixed;
  inset: auto 16px 16px;
  margin: 0;
  text-align: center;
}

.noscript-message a {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 999px;
  background: #25d366;
  color: #07150c;
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 700px) {
  .landing-page {
    min-height: auto;
    display: block;
    padding: 0;
  }

  .campaign-card {
    width: 100%;
  }

  .campaign-image {
    width: 100%;
    max-height: none;
  }

  .click-hint {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .campaign-card,
  .click-hint {
    transition: none;
  }
}
