/*
 * The signed-in welcome prompt for a temporary campaign. The markup lives in
 * index.html so the Vietnamese copy stays in the page; this file only shapes it.
 * Direction B: white card, jade accent, two reward tiles.
 */
.zf-temporary-campaign {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(2, 16, 15, 0.62);
}

.zf-temporary-campaign[hidden] {
  display: none;
}

.zf-temporary-campaign-card {
  position: relative;
  width: min(372px, 100%);
  max-height: calc(100svh - 36px);
  overflow-y: auto;
  padding: 26px 20px 20px;
  border: 1px solid rgba(5, 47, 41, 0.12);
  border-top: 5px solid #24caae;
  border-radius: 20px;
  background: #fbfcfa;
  box-shadow: 0 26px 64px rgba(2, 16, 15, 0.42);
  color: #111714;
  text-align: center;
  animation: zf-temporary-campaign-rise 220ms ease-out;
}

@keyframes zf-temporary-campaign-rise {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.zf-temporary-campaign-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(5, 47, 41, 0.16);
  border-radius: 9px;
  background: #fff;
  color: #052f29;
  font: 600 17px/1 inherit;
  cursor: pointer;
}

.zf-temporary-campaign-icon {
  display: grid;
  width: 46px;
  height: 46px;
  margin: 0 auto 12px;
  place-items: center;
  border-radius: 50%;
  background: #e8f3f0;
  color: #0b4b40;
}

.zf-temporary-campaign-icon svg {
  width: 24px;
  height: 24px;
}

.zf-temporary-campaign-card h2 {
  margin: 0 0 8px;
  color: #0b2f2a;
  font-size: 23px;
  line-height: 1.18;
  font-weight: 850;
}

.zf-temporary-campaign-lead {
  margin: 0;
  color: #4d5f59;
  font-size: 13.5px;
  line-height: 1.55;
}

.zf-temporary-campaign-perk {
  margin: 14px 0 0;
  color: #4f6c64;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.zf-temporary-campaign-rewards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 8px 0 12px;
}

.zf-temporary-campaign-reward {
  display: grid;
  gap: 4px;
  padding: 12px 8px;
  border-radius: 12px;
  background: rgba(36, 202, 174, 0.1);
}

.zf-temporary-campaign-reward span {
  color: #4f6c64;
  font-size: 10.5px;
  font-weight: 700;
}

.zf-temporary-campaign-reward strong {
  color: #0b4b40;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}

.zf-temporary-campaign-note {
  margin: 0 0 18px;
  color: #73827c;
  font-size: 11.5px;
  line-height: 1.5;
}

.zf-temporary-campaign-ok {
  width: 100%;
  height: 46px;
  border: 0;
  border-radius: 12px;
  background: #0b2f2a;
  color: #eafff9;
  font: 750 15px/1 inherit;
  cursor: pointer;
}

.zf-temporary-campaign-close:focus-visible,
.zf-temporary-campaign-ok:focus-visible {
  outline: 3px solid #24caae;
  outline-offset: 3px;
}

body.zf-temporary-campaign-open {
  overflow: hidden;
}

.zf-temporary-campaign-toast {
  position: fixed;
  top: max(16px, env(safe-area-inset-top, 0px));
  left: 50%;
  z-index: 500;
  max-width: calc(100vw - 32px);
  margin: 0;
  padding: 10px 14px;
  border: 1px solid rgba(234, 255, 249, 0.2);
  border-radius: 999px;
  background: rgba(11, 47, 42, 0.96);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
  color: #eafff9;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  transform: translateX(-50%);
}

.zf-temporary-campaign-toast[hidden] {
  display: none;
}

@media (max-width: 359px) {
  .zf-temporary-campaign-card {
    padding: 24px 16px 16px;
  }

  .zf-temporary-campaign-card h2 {
    font-size: 21px;
  }

  .zf-temporary-campaign-reward strong {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .zf-temporary-campaign-card {
    animation: none;
  }
}
