.vote-popup {
  z-index: 100;
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
}

.vote-popup[hidden] { display: none; }

.vote-popup__backdrop {
  position: absolute;
  inset: 0;
  background: #050608b8;
  backdrop-filter: blur(8px);
  animation: vote-fade .25s ease both;
}

.vote-popup__card {
  position: relative;
  width: min(540px, 100%);
  color: var(--ink);
  background: var(--paper);
  border: 4px solid var(--ink);
  padding: clamp(32px, 6vw, 58px);
  box-shadow: 14px 14px 0 var(--yellow);
  animation: vote-pop .35s cubic-bezier(.2, .8, .2, 1) both;
}

.vote-popup__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  color: #fff;
  background: var(--ink);
  border: 0;
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
}

.vote-popup__tag {
  display: flex;
  align-items: center;
  gap: 9px;
  letter-spacing: .16em;
  font: 900 11px ui-monospace, SFMono-Regular, Menlo, monospace;
}

.vote-popup__tag span {
  width: 9px;
  height: 9px;
  background: var(--pink);
  border-radius: 50%;
  box-shadow: 0 0 0 6px #ff4fa31f;
}

.vote-popup__card h2 {
  max-width: 9ch;
  margin: 22px 0 20px;
  letter-spacing: -.06em;
  text-transform: uppercase;
  font: clamp(42px, 7vw, 68px)/.88 "Arial Black", Impact, sans-serif;
}

.vote-popup__card h2 span { color: var(--orange); }
.vote-popup__card > p { font-size: 16px; line-height: 1.55; }

.vote-popup__action {
  width: 100%;
  min-height: 56px;
  margin-top: 12px;
  color: var(--ink);
  background: var(--yellow);
  border: 3px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 900;
  transition: transform .2s, box-shadow .2s;
}

.vote-popup__action:hover {
  transform: translate(3px, 3px);
  box-shadow: 2px 2px 0 var(--ink);
}

.vote-popup__note {
  margin: 22px 0 0 !important;
  color: #68645d;
  text-align: center;
  font: 700 11px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace !important;
}

.vote-popup.is-closing {
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s ease;
}

@keyframes vote-fade { from { opacity: 0; } }
@keyframes vote-pop {
  from { opacity: 0; transform: translateY(20px) rotate(-1deg) scale(.96); }
  to { opacity: 1; transform: translateY(0) rotate(-1deg) scale(1); }
}

@media (max-width: 640px) {
  .vote-popup { padding: 16px; }
  .vote-popup__card { padding: 34px 24px 28px; box-shadow: 8px 8px 0 var(--yellow); }
  .vote-popup__close { top: 10px; right: 10px; width: 38px; height: 38px; }
  .vote-popup__card h2 { margin-top: 18px; font-size: clamp(38px, 13vw, 54px); }
  .vote-popup__card > p { font-size: 15px; }
  .vote-popup__note { font-size: 10px !important; }
}
