:root {
  color-scheme: dark;
  font-family: Georgia, "Times New Roman", serif;
  color: #e9e2d7;
  background: #251c19;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 320px;
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
button:disabled {
  cursor: wait;
}
button:focus-visible,
input:focus-visible {
  outline: 2px solid #e0d8cb;
  outline-offset: 6px;
}
.lock-scene {
  min-height: 100svh;
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  justify-items: center;
  padding: 48px 28px 30px;
  overflow: clip;
  isolation: isolate;
  background:
    radial-gradient(ellipse at 50% 38%, #46332a55, transparent 63%),
    linear-gradient(135deg, #35271e, #251c19 55%, #211916);
}
.lock-scene::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 20%, #160f0c70);
  z-index: -1;
  pointer-events: none;
}
.frame {
  position: absolute;
  inset: 21px;
  border: 1px solid #c9ba9e22;
  pointer-events: none;
}
.frame::before,
.frame::after {
  content: "✧";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  padding: 0 10px;
  color: #b9b2a5;
  background: #251c19;
  font-size: 18px;
  line-height: 18px;
}
.frame::before {
  top: -10px;
}
.frame::after {
  bottom: -9px;
}
.private-mark,
.eyebrow,
.bottom-note,
label,
#date-hint {
  font-family: Arial, sans-serif;
}
.private-mark {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 9px;
  letter-spacing: 0.24em;
  color: #b7aa9c;
  text-align: center;
}
.private-mark span {
  width: 28px;
  height: 1px;
  background: #a1938250;
}
.lock-content {
  width: min(100%, 356px);
  align-self: center;
  text-align: center;
  padding: 26px 0 10px;
}
.lock-illustration {
  width: 242px;
  height: 193px;
  position: relative;
  margin: 0 auto 24px;
}
.lock-halo {
  position: absolute;
  inset: 10px 32px;
  border: 1px solid #d4c8b21a;
  border-radius: 50%;
}
.lock-halo::after {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid #d4c8b210;
  border-radius: 50%;
}
.silver-lock {
  position: absolute;
  width: 98px;
  left: 72px;
  top: 20px;
  filter: drop-shadow(0 14px 14px #0005);
}
.shackle {
  transform-origin: 84px 59px;
  transition: transform 0.65s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.sprig {
  position: absolute;
  width: 75px;
  height: 164px;
  bottom: 0;
  stroke: #a9ab915c;
  stroke-width: 1.1;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.sprig-left {
  left: 8px;
  transform: rotate(-10deg);
}
.sprig-right {
  right: 8px;
  transform: scaleX(-1) rotate(-10deg);
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 0.25em;
  color: #b5aa9e;
  margin: 0 0 15px;
}
h1 {
  font-size: clamp(46px, 7vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: normal;
  margin: 0 0 18px;
}
.intro {
  color: #baad9f;
  font-size: 16px;
  line-height: 1.7;
  margin: 0 0 32px;
}
form {
  text-align: left;
}
label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
  color: #d5c9bb;
}
.date-field {
  position: relative;
}
input {
  width: 100%;
  border: 1px solid #c6baa344;
  border-radius: 3px;
  background: #19131055;
  color: #eee6db;
  height: 60px;
  padding: 0 54px 0 22px;
  font-size: 21px;
  letter-spacing: 0.16em;
  transition: border-color 0.2s;
}
input::placeholder {
  font-family: Arial, sans-serif;
  color: #a99b8d;
  opacity: 1;
  font-size: 13px;
  letter-spacing: 0.22em;
}
input:focus {
  border-color: #c9c0ae;
}
#reveal {
  position: absolute;
  right: 7px;
  top: 8px;
  height: 44px;
  width: 44px;
  display: grid;
  place-items: center;
  background: none;
  border: 0;
  color: #b9ad9d;
  border-radius: 2px;
}
#reveal svg {
  width: 19px;
  stroke: currentColor;
  stroke-width: 1.2;
}
#date-hint {
  margin: 10px 0 23px;
  color: #b1a291;
  font-size: 10px;
  letter-spacing: 0.08em;
}
.unlock {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  padding: 0 22px;
  height: 56px;
  border: 1px solid #d1c8bb;
  border-radius: 3px;
  color: #332720;
  background: #d6cfc3;
  box-shadow:
    inset 0 1px #ffffff88,
    0 5px 20px #110b0825;
  font-size: 16px;
  transition:
    background 0.2s,
    transform 0.2s;
}
.unlock:hover {
  background: #ebe4d8;
}
.unlock:active {
  transform: translateY(1px);
}
.unlock svg {
  width: 21px;
  stroke: currentColor;
  stroke-width: 1.2;
  transition: transform 0.2s;
}
.unlock:hover svg {
  transform: translateX(3px);
}
#date-status {
  min-height: 36px;
  margin: 12px 0 0;
  font-family: Arial, sans-serif;
  color: #d1b7a5;
  font-size: 12px;
  line-height: 1.5;
}
.bottom-note {
  font-size: 8px;
  letter-spacing: 0.25em;
  color: #a99a89;
  margin: 22px 0 0;
}
.is-unlocked .shackle {
  transform: translateY(-12px) rotate(-18deg);
}
.is-unlocked .lock-content {
  opacity: 0;
  transform: translateY(-8px);
  transition:
    opacity 0.55s 0.35s,
    transform 0.55s 0.35s;
}
.has-error .date-field {
  animation: nudge 0.26s ease-out;
}
@keyframes nudge {
  25% {
    transform: translateX(-4px);
  }
  75% {
    transform: translateX(4px);
  }
}
@media (max-width: 480px) {
  .lock-scene {
    padding: 43px 37px 26px;
  }
  .frame {
    inset: 14px;
  }
  .private-mark {
    font-size: 7px;
    gap: 10px;
  }
  .private-mark span {
    width: 15px;
  }
  .lock-content {
    padding-top: 20px;
  }
  .lock-illustration {
    transform: scale(0.9);
    height: 175px;
    margin-bottom: 16px;
  }
  .intro {
    font-size: 15px;
    margin-bottom: 27px;
  }
}
@media (max-height: 700px) {
  .lock-scene {
    padding-top: 30px;
    padding-bottom: 22px;
  }
  .lock-content {
    padding-top: 15px;
  }
  .lock-illustration {
    height: 122px;
    width: 200px;
    margin-bottom: 16px;
  }
  .silver-lock {
    width: 72px;
    left: 64px;
    top: 0;
  }
  .sprig {
    height: 122px;
    width: 54px;
  }
  .lock-halo {
    inset: 0 35px;
  }
  .intro {
    margin-bottom: 20px;
  }
  h1 {
    font-size: 44px;
    margin-bottom: 12px;
  }
  .bottom-note {
    margin-top: 8px;
  }
}
@media (max-height: 480px) and (min-width: 640px) {
  .lock-scene {
    padding: 27px 42px 22px;
  }
  .lock-content {
    width: min(100%, 680px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 62px;
    padding: 15px 0;
  }
  .lock-illustration,
  .eyebrow,
  h1,
  .intro {
    grid-column: 1;
  }
  .lock-illustration {
    height: 100px;
    margin-bottom: 12px;
  }
  .lock-halo {
    inset: 0 49px;
  }
  .sprig {
    height: 102px;
  }
  .silver-lock {
    width: 68px;
    left: 66px;
  }
  .eyebrow {
    font-size: 8px;
    margin-bottom: 10px;
  }
  h1 {
    font-size: 40px;
    margin-bottom: 10px;
  }
  .intro {
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
  }
  form {
    grid-column: 2;
    grid-row: 1 / 5;
    align-self: center;
  }
  #date-hint {
    margin-bottom: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
