:root {
  font-family: Tahoma, Arial, sans-serif;
  color: #26374c;
  background: #f7f4ec;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.gate {
  width: min(100%, 380px);
  padding: 38px 28px;
  background: #fffdf7;
  border: 1px solid #deded1;
  border-radius: 20px;
  box-shadow: 0 12px 45px #203b3710;
  text-align: center;
}
.lock {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin: 0 auto 22px;
  background: #e9ede2;
  border-radius: 50%;
  color: #386e60;
}
.lock svg {
  width: 28px;
  height: 28px;
}
h1 {
  font-size: 22px;
  margin: 0 0 12px;
}
p {
  font-size: 13px;
  line-height: 1.9;
  color: #637164;
  margin: 0 0 28px;
}
label {
  display: block;
  text-align: right;
  font-size: 13px;
  margin-bottom: 10px;
}
.field {
  position: relative;
}
input {
  font:
    20px Tahoma,
    sans-serif;
  width: 100%;
  height: 56px;
  padding: 0 55px;
  border: 1px solid #bccbbb;
  border-radius: 10px;
  background: #fafbf5;
  text-align: center;
  letter-spacing: 5px;
  direction: ltr;
  color: #23364b;
}
input:focus {
  outline: 3px solid #87b6a477;
  outline-offset: 2px;
  border-color: #386e60;
}
.toggle {
  position: absolute;
  left: 5px;
  top: 6px;
  border: 0;
  background: transparent;
  width: 44px;
  height: 44px;
  cursor: pointer;
  color: #55705d;
  font-size: 11px;
}
.submit {
  font:
    600 14px Tahoma,
    sans-serif;
  background: #386e60;
  color: #fffaf0;
  border: 0;
  min-height: 50px;
  width: 100%;
  border-radius: 10px;
  padding: 12px;
  margin-top: 18px;
  cursor: pointer;
}
.submit:hover {
  background: #2d5c50;
}
button:focus-visible {
  outline: 3px solid #337c9d;
  outline-offset: 3px;
}
.error {
  color: #994a40;
  font-size: 13px;
  line-height: 1.9;
  padding: 12px;
  background: #faeee7;
  border-radius: 8px;
  margin: 18px 0 0;
}
.error:empty {
  display: none;
}
.hint {
  font-size: 11px;
  color: #73806d;
  margin: 18px 0 0;
}
button,
input {
  touch-action: manipulation;
}

/* A single accessible input drives eight visual cells, including native
   selection, keyboard navigation, password managers and form validation. */
.gate {
  width: min(100%, 480px);
  padding-inline: 24px;
}
.field {
  direction: ltr;
  height: 56px;
}
.code-slots {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 6px;
  height: 100%;
}
.code-slot {
  display: grid;
  place-items: center;
  border: 1px solid #bccbbb;
  border-radius: 8px;
  background: #fafbf5;
  font:
    24px Tahoma,
    sans-serif;
  color: #23364b;
}
.code-slot.filled {
  border-color: #789b88;
}
.code-slot.active {
  border-color: #386e60;
  outline: 3px solid #87b6a455;
  outline-offset: 1px;
}
.field input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: transparent;
  -webkit-text-fill-color: transparent;
  caret-color: transparent;
  letter-spacing: normal;
  opacity: 0.01;
}
.field input:focus {
  outline: none;
}
.toggle {
  position: static;
  width: auto;
  min-width: 88px;
  height: 44px;
  margin-top: 8px;
  font:
    12px Tahoma,
    sans-serif;
}
.submit {
  margin-top: 8px;
}
@media (max-width: 420px) {
  body {
    padding: 16px;
  }
  .gate {
    padding: 30px 16px;
  }
  .code-slots {
    gap: 4px;
  }
  .code-slot {
    font-size: 21px;
    border-radius: 7px;
  }
}
@media (forced-colors: active) {
  .code-slot.active {
    outline: 3px solid Highlight;
  }
}
.countdown-bunny {
  width: 76px;
  height: 76px;
  object-fit: contain;
  margin-bottom: 20px;
}
.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 26px 0;
}
.countdown > div {
  background: #edf1e8;
  border: 1px solid #d9e2d3;
  border-radius: 12px;
  padding: 16px 2px 12px;
}
.countdown strong {
  display: block;
  font-size: clamp(24px, 7vw, 36px);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  color: #386e60;
}
.countdown span {
  display: block;
  margin-top: 8px;
  font-size: 11px;
  color: #637164;
}
.release-date {
  margin: 0;
  color: #26374c;
  line-height: 2.1;
}
