* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(16px, 5vw, 44px);
  background-color: #72251f;
  background-image: radial-gradient(ellipse at center, transparent 32%, rgb(46 13 18 / 22%)), url("/ceramic/drive.webp");
  background-position: center;
  background-size: 100% 100%, clamp(17rem, 38vw, 34rem) auto;
  background-repeat: no-repeat, repeat;
  color: #472930;
  font: 1rem/1.5 system-ui, sans-serif;
}

main {
  width: min(100%, 24rem);
  padding: 26px clamp(20px, 5vw, 34px) 18px;
  background: #fbf1da;
  border: 5px double #ad9171;
  box-shadow: 0 12px 36px rgb(41 13 15 / 38%);
}

header {
  display: grid;
  justify-items: center;
  gap: 18px;
  margin-bottom: 22px;
  text-align: center;
}

.brand {
  width: 72px;
  height: 24px;
  background: currentColor;
  mask: url("/brand-v5/misa-wordmark.webp") center / contain no-repeat;
}

.cabinet {
  width: min(100%, 150px);
  aspect-ratio: 3 / 2;
  perspective: 200px;
}

.key-aura {
  position: absolute;
  inset: 0;
  clip-path: inset(0 40% 0 35%);
  background: url("/launch/locked-lineup.webp") center / contain no-repeat;
  filter: blur(1px);
}

.carton {
  position: absolute;
  top: 17%;
  width: 24%;
  height: 72%;
  background: center / contain no-repeat;
}

.red {
  left: 12.5%;
  background-image: url("/launch/blood-orange.webp");
}

.forest {
  right: 18%;
  background-image: url("/launch/elderflower-mint.webp");
  filter: blur(2px);
}

.door { transform-origin: left; }
.opened .door { transform: rotateY(-90deg); }

@media (prefers-reduced-motion: no-preference) {
  .opened .door { animation: open .85s .12s ease-in-out both; }
  @keyframes open {
    from { transform: rotateY(0); }
    to { transform: rotateY(-90deg); }
  }
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1.06;
  letter-spacing: -.055em;
}

label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

input, button, .enter {
  width: 100%;
  min-height: 48px;
  padding: 12px;
  border-radius: 4px;
  font: inherit;
}

input {
  background: #fffaf0;
  border: 1px solid #785e53;
  color: #351b24;
}

button, .enter {
  margin-top: 15px;
  border: 0;
  background: #542c35;
  color: #fff5e2;
  cursor: pointer;
  font-weight: 650;
}

a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: inherit;
  text-underline-offset: 4px;
}

.enter { justify-content: center; text-decoration: none; }
:focus-visible { outline: 3px solid #745025; outline-offset: 3px; }
[role="alert"] { color: #8b271e; }
