.welcome-screen {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  align-items: center;
  overflow: hidden;
  padding: 44px clamp(28px, 8.2vw, 138px);
  background: #f9f9f6;
  color: var(--ink);
}

.welcome-screen[hidden],
#site-content[hidden] {
  display: none;
}

.welcome-drawing {
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
}

.welcome-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.welcome-drawing::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #f9f9f6b3 0%, #f9f9f6ae 27%, #f9f9f65c 45%, transparent 64%),
    linear-gradient(0deg, #f9f9f6d5 0%, transparent 9%);
  content: "";
}

.welcome-layout {
  width: min(100%, 1300px);
  margin-inline: auto;
  padding-block: 38px 50px;
}

.welcome-layout h1 {
  margin: 0;
  color: var(--ink);
  font: 500 clamp(3.75rem, 6.7vw, 6.25rem)/1.08 "Songti SC", "STSong", "SimSun", serif;
  letter-spacing: .055em;
}

.welcome-layout h1::after {
  content: none;
}

.welcome-signature {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: clamp(16px, 2.2vw, 30px);
}

.welcome-avatar {
  display: block;
  width: 52px;
  height: 52px;
  flex: none;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid #d9dbd4;
  background: #f3f2e9;
}

.welcome-role {
  font-size: 1.05rem;
  letter-spacing: .065em;
  line-height: 1.42;
}

.welcome-role span {
  margin-inline: 3px;
  color: #857044;
}

.welcome-region {
  margin-top: 4px;
  color: var(--secondary);
  font-size: .875rem;
  line-height: 1.5;
}

.welcome-practice {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 15px;
  width: fit-content;
  max-width: min(100%, 32rem);
  margin: 26px 0 0;
  padding: 15px 0 0;
  border-top: 1px solid #b9a06b;
  color: var(--secondary);
  list-style: none;
  font-size: .9375rem;
  line-height: 1.65;
}

.welcome-practice li {
  white-space: nowrap;
}

.welcome-enter {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  margin-top: 26px;
  padding-inline: 26px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  font-size: 1rem;
  font-weight: 550;
  letter-spacing: .05em;
  transition: background-color .2s, color .2s;
}

.welcome-enter:hover {
  background: #eaddb5;
  color: var(--ink);
}

@media screen and (max-width: 760px) {
  .welcome-screen {
    align-items: start;
    padding: max(22px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right))
      max(22px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
  }

  .welcome-layout {
    width: min(100%, 418px);
    padding-block: clamp(44px, 13svh, 104px) 40px;
  }

  .welcome-layout h1 {
    font-size: clamp(2.8rem, 10.8vw, 3.75rem);
  }

  .welcome-avatar {
    width: 44px;
    height: 44px;
  }

  .welcome-practice {
    font-size: .875rem;
  }

  .welcome-practice {
    margin-top: 20px;
    column-gap: 12px;
  }

  .welcome-enter {
    min-height: 44px;
    margin-top: 21px;
  }

  .welcome-drawing::after {
    background:
      linear-gradient(180deg, #f9f9f6 22%, #f9f9f67a 56%, transparent 74%),
      linear-gradient(0deg, #f9f9f6e8 0%, transparent 9%);
  }
}

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

@media print {
  .welcome-screen {
    display: none;
  }

  #site-content[hidden] {
    display: block;
  }
}
