/* 문 화면: 문 그림과 안내, 상담사 로그인과 문 열기 */
.door-screen {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 48px 20px;
  text-align: center;
}

.door-pic {
  position: relative;
  width: min(248px, 68vw);
  aspect-ratio: 1;
  margin: -16px 0 -4px;
  /* 그림 가장자리가 밤 바탕에 스며들게 한다 */
  -webkit-mask-image: radial-gradient(closest-side, #000 70%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 70%, transparent 100%);
}

.door-pic img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 문이 열려 있으면 불 켜진 그림이 천천히 떠오른다 */
.door-pic .on {
  opacity: 0;
  transition: opacity 1.4s ease;
}

.door-pic.lit .on {
  opacity: 1;
}

.door-screen button {
  margin-top: 12px;
}

.help {
  margin: 36px 0 0;
  padding-top: 20px;
  max-width: 34ch;
  border-top: 1px solid var(--line);
  font-size: var(--text-small);
  color: var(--dim);
  word-break: keep-all;
}

.help strong {
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}

/* 상담사 화면 */
.login {
  width: min(320px, 100%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
  text-align: left;
}

.login label {
  font-size: var(--text-small);
  color: var(--dim);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.invite {
  width: min(460px, 100%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
  text-align: left;
}

.invite label {
  font-size: var(--text-small);
  color: var(--dim);
}

.invite input {
  font-size: 14px;
}

.invite button {
  align-self: center;
}

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

/* 이용 약속: 자리에 앉기 전에 읽는 화면 */
.promise-screen {
  justify-content: flex-start;
  padding-top: 40px;
}

.promise {
  width: min(400px, 100%);
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: promise;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}

.promise li {
  counter-increment: promise;
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 8px;
  word-break: keep-all;
}

.promise li::before {
  content: counter(promise);
  font-family: var(--display);
  color: var(--flame);
}

.agree {
  width: min(400px, 100%);
  min-height: var(--tap);
  margin-top: 12px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  text-align: left;
  cursor: pointer;
  word-break: keep-all;
}

.agree input {
  flex: none;
  width: 22px;
  height: 22px;
  min-height: 0;
  padding: 0;
  accent-color: var(--flame);
}

.promise-screen .help {
  margin-top: 24px;
}

/* 안내 화면: 초대 링크 없이 온 사람이 문 아래에서 읽는 글 */
.door-screen.has-landing {
  justify-content: flex-start;
  padding-top: 56px;
}

.landing {
  width: min(400px, 100%);
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  text-align: left;
}

.landing section {
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.landing h2 {
  margin: 0 0 10px;
  font: 700 17px var(--display);
  letter-spacing: 0.04em;
  color: var(--flame);
}

.landing ul,
.landing ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  word-break: keep-all;
}

.landing ol {
  counter-reset: step;
}

.landing ol li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 8px;
}

.landing ol li::before {
  content: counter(step);
  font-family: var(--display);
  color: var(--flame);
}

.landing .reserve p {
  margin: 0;
  color: var(--dim);
  word-break: keep-all;
}

.reserve-link {
  min-height: var(--tap);
  padding: 10px 22px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--flame);
  border-radius: 999px;
  color: var(--ink);
  font-size: 15px;
  text-decoration: none;
  box-shadow: 0 0 26px rgba(243, 178, 90, 0.2);
}
