@property --mx {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}

@property --my {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}

.shade {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--surface);
}

.shade .watch {
  inset: 0;
  z-index: 2;
  height: auto;
}

.shade:has(.z--x1:hover) {
  --mx: -1;
}

.shade:has(.z--x2:hover) {
  --mx: -.66;
}

.shade:has(.z--x3:hover) {
  --mx: -.33;
}

.shade:has(.z--x4:hover) {
  --mx: 0;
}

.shade:has(.z--x5:hover) {
  --mx: .33;
}

.shade:has(.z--x6:hover) {
  --mx: .66;
}

.shade:has(.z--x7:hover) {
  --mx: 1;
}

.shade:has(.z--y1:hover) {
  --my: -1;
}

.shade:has(.z--y2:hover) {
  --my: -.33;
}

.shade:has(.z--y3:hover) {
  --my: .33;
}

.shade:has(.z--y4:hover) {
  --my: 1;
}

.blob {
  position: absolute;
  z-index: 1;
  border-radius: 50%;
  filter: blur(56px);
  transition: translate 900ms cubic-bezier(.22, 1, .36, 1);
}

.blob--1 {
  left: -16%;
  top: -26%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(closest-side, rgba(251, 67, 0, .5), rgba(251, 67, 0, .2) 46%, rgba(251, 67, 0, 0) 74%);
  translate: calc(var(--mx) * 70px) calc(var(--my) * 52px);
  animation: drift-1 26s ease-in-out infinite;
}

.blob--2 {
  right: -14%;
  top: -6%;
  width: 54vw;
  height: 54vw;
  background: radial-gradient(closest-side, rgba(255, 138, 61, .54), rgba(255, 171, 110, .21) 48%, rgba(255, 171, 110, 0) 74%);
  translate: calc(var(--mx) * -92px) calc(var(--my) * -64px);
  animation: drift-2 31s ease-in-out infinite;
}

.blob--3 {
  left: 26%;
  bottom: -38%;
  width: 66vw;
  height: 66vw;
  background: radial-gradient(closest-side, rgba(255, 186, 140, .5), rgba(255, 205, 175, .18) 48%, rgba(255, 205, 175, 0) 74%);
  translate: calc(var(--mx) * 54px) calc(var(--my) * -78px);
  animation: drift-3 23s ease-in-out infinite;
}

.blob--4 {
  left: -2%;
  bottom: -24%;
  width: 48vw;
  height: 48vw;
  background: radial-gradient(closest-side, rgba(150, 160, 188, .36), rgba(170, 178, 200, .12) 48%, rgba(170, 178, 200, 0) 74%);
  translate: calc(var(--mx) * -46px) calc(var(--my) * 40px);
  animation: drift-4 35s ease-in-out infinite;
}

.blob--5 {
  right: 2%;
  bottom: -30%;
  width: 42vw;
  height: 42vw;
  background: radial-gradient(closest-side, rgba(251, 67, 0, .34), rgba(251, 67, 0, .12) 46%, rgba(251, 67, 0, 0) 74%);
  translate: calc(var(--mx) * 110px) calc(var(--my) * -50px);
  animation: drift-5 29s ease-in-out infinite;
}

@keyframes drift-1 {
  50% {
    transform: translate(9vw, 7vh) scale(1.14);
  }
}

@keyframes drift-2 {
  50% {
    transform: translate(-7vw, 10vh) scale(.88);
  }
}

@keyframes drift-3 {
  50% {
    transform: translate(-11vw, -6vh) scale(1.1);
  }
}

@keyframes drift-4 {
  50% {
    transform: translate(8vw, -9vh) scale(1.2);
  }
}

@keyframes drift-5 {
  50% {
    transform: translate(-10vw, -8vh) scale(.92);
  }
}

.enter {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--s-5);
  min-height: 100dvh;
  padding: var(--s-9) var(--s-4);
  pointer-events: none;
}

.enter > * {
  pointer-events: auto;
}

.card {
  width: 100%;
  max-width: 420px;
  padding: var(--s-7);
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(22px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: var(--r-2xl);
  box-shadow: 0 2px 6px rgba(16, 17, 20, .04), 0 24px 60px rgba(96, 40, 16, .14);
  text-align: center;
}

.card__brand {
  display: block;
  width: max-content;
  margin: 0 auto var(--s-5);
}

.card__brand img {
  width: 172px;
  height: auto;
  transform: translateY(-11.5%);
}

.card h1 {
  font-size: var(--t-7);
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: 1.2;
}

.card__lead {
  margin-top: 8px;
  color: var(--ink-2);
  font-size: var(--t-3);
  line-height: 1.6;
}

.card__lead b {
  font-weight: 500;
  color: var(--ink);
}

.form {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  margin-top: var(--s-6);
  text-align: left;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field label {
  color: var(--ink-2);
  font-size: var(--t-3);
  font-weight: 500;
}

.field input {
  width: 100%;
  padding: 13px 15px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  color: var(--ink);
  font: inherit;
  font-size: var(--t-4);
  transition: border-color var(--fast) ease, box-shadow var(--fast) ease;
}

.field input::placeholder {
  color: var(--ink-3);
}

.field input:hover {
  border-color: var(--ink-3);
}

.field input:focus {
  outline: 0;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-tint-2);
}

.field--code input {
  padding: 14px;
  font-size: var(--t-7);
  font-weight: 500;
  letter-spacing: .36em;
  text-indent: .36em;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.check {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-2);
  font-size: var(--t-3);
  cursor: pointer;
}

.check input {
  width: 18px;
  height: 18px;
  flex: none;
  margin: 0;
  cursor: pointer;
}

.form .btn {
  width: 100%;
  justify-content: center;
  padding: 13px 16px;
  font-size: var(--t-4);
}

.card__alt {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 12px;
  margin-top: var(--s-5);
  font-size: var(--t-3);
}

.card__alt a {
  color: var(--brand-text);
  font-weight: 500;
}

.card__alt a:hover {
  text-decoration: underline;
}

.card__alt span {
  color: var(--line-2);
}

.sent {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 11px;
  margin-top: var(--s-5);
  padding: var(--s-3) var(--s-4);
  background: var(--rise-tint);
  border: 1px solid #cfe6da;
  border-radius: var(--r-md);
  color: var(--ink);
  font-size: var(--t-3);
  line-height: 1.5;
  text-align: left;
}

.sent img {
  width: 20px;
  height: 20px;
  margin-top: 1px;
}

.sent b {
  display: block;
  font-weight: 500;
}

.oops {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 11px;
  margin-top: var(--s-5);
  padding: var(--s-3) var(--s-4);
  background: var(--fall-tint);
  border: 1px solid #efd3dc;
  border-radius: var(--r-md);
  color: var(--ink);
  font-size: var(--t-3);
  line-height: 1.5;
  text-align: left;
}

.oops img {
  width: 20px;
  height: 20px;
  margin-top: 1px;
}

.oops b {
  display: block;
  font-weight: 500;
}

.entryfoot {
  position: fixed;
  z-index: 2;
  left: 50%;
  bottom: var(--s-5);
  transform: translateX(-50%);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--s-5);
}

.entrylinks {
  display: flex;
  gap: var(--s-5);
  font-size: var(--t-2);
}

.entrylinks a {
  color: var(--ink-3);
  border-bottom: 1px solid transparent;
  transition: color var(--fast) ease, border-color var(--fast) ease;
}

.entrylinks a:hover {
  color: var(--ink);
  border-bottom-color: var(--line-2);
}

.corner {
  background: rgba(255, 255, 255, .78);
  backdrop-filter: blur(12px);
  border-color: var(--line);
}

@media (max-width: 760px) {
  .blob {
    filter: blur(44px);
  }

  .blob--1 {
    width: 110vw;
    height: 110vw;
    top: -34%;
  }

  .blob--2 {
    width: 96vw;
    height: 96vw;
    top: -12%;
  }

  .blob--3 {
    width: 118vw;
    height: 118vw;
    left: 8%;
    bottom: -30%;
  }

  .blob--4 {
    width: 88vw;
    height: 88vw;
  }

  .blob--5 {
    width: 80vw;
    height: 80vw;
  }

  .enter {
    min-height: auto;
    padding: var(--s-8) var(--s-4) var(--s-5);
  }

  .entryfoot {
    position: relative;
    bottom: auto;
    left: auto;
    flex-direction: column;
    gap: var(--s-3);
    width: auto;
    margin: var(--s-5) var(--s-4) 0;
    transform: none;
  }

}

@media (max-width: 480px) {
  .enter {
    padding: var(--s-6) var(--s-4);
  }

  .card {
    padding: var(--s-6) var(--s-5);
  }

  .card__brand img {
    width: 150px;
  }

  .field--code input {
    letter-spacing: .28em;
    text-indent: .28em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .blob {
    transition: none;
  }
}
