#verlosung-code {
  font-family: monospace;
  font-size: 1.75rem;
  text-align: center;
  text-transform: uppercase;
}

#verlosung-code::placeholder {
  font: inherit;
  letter-spacing: inherit;
  color: #838381;
  opacity: 1;
}

.verlosung-code-slot {
  display: none;
}

.verlosung-code-entry-label {
  font-size: 1.3rem;
}

@supports (width: 1cqi) and (overflow: clip) {
  .verlosung-code-field {
    container-type: inline-size;
  }

  .verlosung-code-entry {
    --slot-gap: min(0.375rem, calc(10cqi / var(--code-length)));
    --slot-width: min(3rem, calc((100cqi + var(--slot-gap)) / var(--code-length) - var(--slot-gap)));
    position: relative;
    display: inline-grid;
    grid-auto-flow: column;
    grid-auto-columns: var(--slot-width);
    gap: var(--slot-gap);
    overflow: clip;
    border-radius: 8px;
    vertical-align: top;
  }

  .verlosung-code-entry:focus-within {
    outline: 2px solid #fafafa;
    outline-offset: 3px;
  }

  .verlosung-code-slot {
    display: block;
    height: 3.5rem;
    background: #5e5e5c;
    border: 1px solid #838381;
    border-radius: 8px;
  }

  #verlosung-code {
    --text-inset: calc((var(--slot-width) - 1ch) / 2);
    position: absolute;
    top: 0;
    left: 0;
    /* Keep the final character's letter spacing from scrolling the input. */
    width: calc(100% + var(--slot-gap) + var(--text-inset) + 1px);
    height: 100%;
    padding: 0 0 0 var(--text-inset);
    border-radius: 0;
    background: transparent;
    font-size: min(1.75rem, var(--slot-width));
    font-variant-ligatures: none;
    letter-spacing: calc(var(--slot-width) + var(--slot-gap) - 1ch);
    text-align: left;
    cursor: text;
  }
}

#verlosung-form[aria-busy="true"] .sendButton {
  cursor: wait;
}

#verlosung-form[aria-busy="true"] .sendButton::before {
  content: "";
  display: inline-block;
  width: 0.85em;
  height: 0.85em;
  margin-right: 0.5em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: lds-ring 0.7s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  #verlosung-form[aria-busy="true"] .sendButton::before {
    animation: none;
  }
}

#verlosung-feedback.failFormError {
  color: #fff;
  background: rgba(235, 0, 23, 0.431);
}
