.lf-welcome {
  width: min(780px, calc(100% - 32px)); max-width: none;
  max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: 22px;
  background: #fffdf8; color: #30352b; margin: auto;
  box-shadow: 0 20px 85px #191c1952;
}
.lf-welcome::backdrop { background: #22271bbb; }
.lf-welcome-panel { display: grid; grid-template-columns: 42% 1fr; position: relative; min-height: 460px; }
.lf-welcome-photo { min-width: 0; min-height: 0; overflow: hidden; position: relative; background: #e3d6c5; }
.lf-welcome-photo img { position: absolute; width: 100%; height: 100%; -o-object-fit: cover; object-fit: cover; -o-object-position: 53% center; object-position: 53% center; }
.lf-welcome-body { padding: 42px 34px 32px; letter-spacing: normal; }
.lf-welcome-close {
  display: grid; place-items: center; position: absolute; z-index: 1; top: 12px; right: 12px;
  border: 0; border-radius: 50%; width: 44px; height: 44px; font: 26px/1 system-ui;
  background: #fffdf8; color: #30352b; cursor: pointer;
}
.lf-welcome-kicker { font: 600 11px/1.2 var(--lf-sans, system-ui); letter-spacing: .13em; text-transform: uppercase; }
.lf-welcome h2 {
  margin: 8px 0 6px; font: 600 clamp(66px, 9vw, 100px)/.9 var(--lf-serif, Georgia, serif);
  color: #30352b; letter-spacing: -.07em;
}
.lf-welcome h2 em { font-size: .54em; font-weight: 400; letter-spacing: -.06em; }
.lf-welcome-body > p:not(.lf-welcome-kicker) { font-size: 15px; line-height: 1.45; margin: 14px 0; }
.lf-welcome [data-join] { display: grid; gap: 8px; margin-top: 20px; font-size: 14px; }
.lf-welcome [data-join] > label:first-child { font-weight: 600; }
.lf-welcome input[type=email] {
  width: 100%; min-height: 46px; border: 1px solid #aea99b; border-radius: 9px;
  padding: 10px 11px; background: #fff; color: #2a3023; font-size: 16px; box-sizing: border-box;
}
.lf-welcome-consent { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 7px; font-size: 12px; line-height: 1.45; margin: 3px 0 5px; }
.lf-welcome-consent input { margin-top: 3px; accent-color: #46513d; }
.lf-welcome a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.lf-welcome-action {
  display: block; min-height: 46px; width: 100%; border: 0; border-radius: 9px; padding: 10px 15px;
  background: #46513d; color: #fffdf8; font: 600 15px/1.25 var(--lf-sans, system-ui); cursor: pointer;
}
.lf-welcome-action:disabled { opacity: .65; cursor: wait; }
.lf-welcome button:focus-visible, .lf-welcome a:focus-visible, .lf-welcome input:focus-visible { outline: 2px solid #675933; outline-offset: 3px; }
.lf-welcome-result { margin-top: 16px; }
.lf-welcome-cards { display: flex; gap: 8px; }
.lf-welcome-cards div {
  flex: 1 1 0; min-width: 0; aspect-ratio: 4/5; display: grid; place-items: center; overflow: hidden;
  border: 1px solid #d6caba; border-radius: 10px; background: #ede3d4; transform-origin: center;
}
.lf-welcome-cards img { width: 100%; height: auto; max-height: 100%; -o-object-fit: contain; object-fit: contain; display: block; }
.lf-welcome-cards.is-turning div { animation: lf-welcome-turn .42s both; }
.lf-welcome-cards.is-turning div:nth-child(2) { animation-delay: 55ms; }
.lf-welcome-cards.is-turning div:nth-child(3) { animation-delay: 110ms; }
.lf-welcome-cards.is-turning div:nth-child(4) { animation-delay: 165ms; }
.lf-welcome-cards.is-match div { border-color: #ba9653; }
.lf-welcome-cards.is-match.is-turning { animation: lf-welcome-light .95s .25s both; }
.lf-welcome-clock { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; color: #4f5a46; font-size: 13px; font-variant-numeric: tabular-nums; }
.lf-welcome-clock time { font-weight: 700; }
.lf-welcome-shop { display: inline-block; padding: 9px 0 4px; font-size: 14px; }
.lf-welcome-feedback { color: #864033; }
.lf-welcome [hidden] { display: none !important; }
@keyframes lf-welcome-turn { from { opacity: .15; transform: perspective(400px) rotateY(-85deg); } to { opacity: 1; transform: perspective(400px) rotateY(0); } }
@keyframes lf-welcome-light { 0%, 100% { filter: none; } 42% { filter: drop-shadow(0 0 16px #d6a34fa6); } }
@media (max-width: 600px) {
  .lf-welcome { width: calc(100% - 24px); max-height: calc(100dvh - 24px); border-radius: 17px; }
  .lf-welcome-panel { grid-template-columns: 1fr; min-height: auto; }
  .lf-welcome-photo { height: clamp(100px, 25dvh, 172px); }
  .lf-welcome-photo img { -o-object-position: center 39%; object-position: center 39%; }
  .lf-welcome-body { padding: 21px 22px 24px; }
  .lf-welcome h2 { font-size: 68px; }
  .lf-welcome-body > p:not(.lf-welcome-kicker) { font-size: 14px; }
  .lf-welcome-result { margin-top: 12px; }
}
@media (prefers-reduced-motion: reduce) { .lf-welcome-cards, .lf-welcome-cards div { animation: none !important; } }
body.lf-welcome-open { overflow: hidden; }
