.desbloqueio {
  --marca: #ffcf71;
  --marca-contorno: #987020;
  --tinta: #16333d;
  --secundaria: #435c6d;
  --borda: #c8d3dd;
  --pronto: #1c6b43;
  position: fixed;
  width: min(420px, calc(100% - 28px));
  max-width: none;
  max-height: calc(100dvh - 28px);
  inset: auto;
  margin: 0;
  box-sizing: border-box;
  padding: 24px;
  border: 0;
  border-radius: 20px;
  overflow: auto;
  overscroll-behavior: contain;
  background: white;
  color: var(--tinta);
}
.desbloqueio.studio { --marca: #ffda52; --marca-contorno: #927512; }
.desbloqueio::backdrop { background: #12344977; backdrop-filter: blur(3px); }
.desbloqueio .unlock-close {
  position: absolute;
  top: 14px;
  inset-inline-end: 14px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--secundaria);
  font: 400 25px/1 Arial, sans-serif;
}
.desbloqueio .unlock-form { display: grid; gap: 12px; }
.desbloqueio :is(.unlock-title, .unlock-result-title) {
  margin: 0;
  padding-inline: 36px;
  text-align: center;
  font: 700 clamp(25px, 7vw, 32px)/1.15 Inter, Arial, sans-serif;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
}
.desbloqueio :is(.unlock-title, .unlock-result-title, .unlock-wait):focus { outline: none; }
.desbloqueio .unlock-title { display: grid; align-items: center; min-height: 53px; }
.desbloqueio .unlock-progress-copy { display: flex; align-items: center; gap: 5px; color: #75400f; font-size: 11px; font-weight: 600; }
.desbloqueio .unlock-progress-copy svg { flex: none; width: 15px; height: 15px; overflow: visible; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.desbloqueio .unlock-count { margin-inline-start: auto; white-space: nowrap; font-variant-numeric: tabular-nums; }
.desbloqueio .unlock-shackle { transform-origin: 8px 11px; transition: transform 260ms cubic-bezier(.2, .65, .3, 1); }
.desbloqueio [data-pronto] .unlock-progress-copy { color: var(--pronto); }
.desbloqueio [data-pronto] .unlock-shackle { transform: rotate(-28deg); }
.desbloqueio .unlock-meter { height: 4px; margin-top: 5px; overflow: hidden; border-radius: 4px; background: #e8eef6; }
.desbloqueio .unlock-meter span { display: block; height: 100%; background: var(--marca); transform: scaleX(var(--progresso)); transform-origin: left; transition: transform 160ms ease-out; }
.desbloqueio .unlock-fields { display: grid; gap: 16px; padding-bottom: 4px; }
.desbloqueio .field input:focus { border-color: #1764d6; outline: 3px solid #1764d624; outline-offset: 1px; }
.desbloqueio .field input[aria-invalid="true"] { border-color: #ad3e33; }
.desbloqueio .unlock-field-error,
.desbloqueio .unlock-error { margin: 4px 0 0; color: #9a2e27; font: 500 11px/1.4 Inter, Arial, sans-serif; }
.desbloqueio .unlock-field-error:not([hidden]) { display: block; }
.desbloqueio .unlock-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 0 16px; margin-top: -6px; }
.desbloqueio .unlock-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--secundaria); font-size: 11px; text-underline-offset: 3px; }
.desbloqueio .unlock-cookie-choice {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin-top: -12px;
  color: var(--secundaria);
  font-size: 11px;
}
.desbloqueio .unlock-cookie-choice :is(label, a) { display: inline-flex; align-items: center; min-height: 44px; padding-bottom: 17px; }
.desbloqueio .unlock-cookie-label { gap: 6px; cursor: pointer; }
.desbloqueio .unlock-cookie-label input { width: 13px; height: 13px; margin: 0; accent-color: #193944; }
.desbloqueio .unlock-cookie-choice a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.desbloqueio .unlock-cookie-choice:not([hidden]) + .unlock-links { margin-top: -12px; }
.desbloqueio .unlock-result { display: grid; gap: 10px; text-align: center; }
.desbloqueio .unlock-result-detail { margin: 0; color: var(--secundaria); font-size: 12px; }
.desbloqueio .unlock-result-actions { display: grid; gap: 10px; margin-top: 12px; }
.desbloqueio :is(.unlock-download, .unlock-return) { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.desbloqueio .unlock-return { min-height: 53px; padding: 12px; border: 1px solid var(--borda); border-radius: 11px; background: white; font-weight: 700; }
.desbloqueio .unlock-correct { justify-self: center; }
.desbloqueio[data-espera] { overflow: hidden; }
.desbloqueio .unlock-wait {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  background: rgb(239 245 249 / 88%);
  backdrop-filter: blur(6px);
  color: var(--tinta);
  font-size: 15px;
  font-weight: 700;
  opacity: 0;
  visibility: hidden;
  transition: opacity 160ms ease-out, visibility 0s linear 160ms;
}
.desbloqueio[data-espera] .unlock-wait { opacity: 1; visibility: visible; transition: opacity 140ms ease-out; }
.desbloqueio .unlock-wait::before {
  content: '';
  width: 34px;
  height: 34px;
  box-sizing: border-box;
  border: 3px solid var(--marca);
  border-top-color: var(--marca-contorno);
  border-radius: 50%;
}
.desbloqueio[data-espera] .unlock-wait::before { animation: unlock-girar 720ms linear infinite; }
@keyframes unlock-girar { to { transform: rotate(360deg); } }
@media (max-width: 767px) {
  .desbloqueio { width: min(420px, calc(100% - 16px)); max-height: calc(100dvh - 16px); }
}
@media (max-width: 380px) {
  .desbloqueio { padding: 21px 19px; border-radius: 17px; }
  .desbloqueio .unlock-close { top: 9px; inset-inline-end: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .desbloqueio :is(.unlock-shackle, .unlock-meter span, .unlock-wait) { transition: none; }
  .desbloqueio[data-espera] .unlock-wait::before { animation: none; }
}
.desbloqueio [hidden] { display: none; }
