.welcome-screen { display: none; }
html.welcome-pending, .welcome-pending body { overflow: hidden; }
.welcome-pending #site-content { visibility: hidden; }
.welcome-pending .welcome-screen:not([hidden]) { display: grid; }
.welcome-screen {
  --welcome-blue: #8bb9ff;
  position: fixed; inset: 0; z-index: 1000;
  min-height: 100svh; overflow: hidden; isolation: isolate;
  align-items: center; justify-items: center;
  color: #eff5ff; background: #040b1c;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  opacity: 1; transition: opacity .75s ease, transform .95s cubic-bezier(.2,.7,.2,1);
}
.welcome-screen::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse at 50% 38%, #142b5144, transparent 62%), linear-gradient(180deg, transparent 75%, #040b1c);
}
.welcome-screen::after {
  content: ""; position: absolute; inset: 20px; pointer-events: none;
  border: 1px solid #a6c9ff12; border-radius: 3px;
}
.welcome-stars { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; pointer-events: none; }
.welcome-aura {
  position: absolute; z-index: -1; width: min(90vw, 1060px); aspect-ratio: 1;
  top: 50%; left: 50%; transform: translate(-50%, -50%); pointer-events: none;
  background: radial-gradient(ellipse, #387be51c 0%, #2f6fed0a 40%, transparent 68%);
  animation: welcome-aura-drift 8s ease-in-out infinite alternate;
}
.welcome-meteors { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.welcome-meteors i {
  position: absolute; top: 5%; left: 0; width: 160px; height: 1px; opacity: 0;
  background: linear-gradient(90deg, transparent, #afd7ffcc);
  box-shadow: 0 0 9px #7ebaff55; animation: welcome-meteor 10s linear infinite;
}
.welcome-meteors i:last-child { top: 19%; width: 110px; animation-duration: 13s; animation-delay: -6s; }
.welcome-orbits {
  position: absolute; z-index: -1; top: 46%; left: 50%;
  width: min(72vw, 850px); aspect-ratio: 1; pointer-events: none;
  transform: translate(calc(-50% + var(--orbit-x, 0px)), calc(-50% + var(--orbit-y, 0px)));
  transition: transform 1.6s ease-out;
}
.welcome-orbit { position: absolute; inset: 4%; border-radius: 50%; }
.welcome-orbit-one {
  border: 1px solid #84b6ff45;
  box-shadow: inset 0 0 32px #518fff0d, 0 0 22px #518fff14;
  transform: rotate(-32deg) scaleY(.55);
  animation: welcome-orbit-one 16s linear infinite;
}
.welcome-orbit-one::after {
  content: ""; position: absolute; width: 7px; height: 7px; left: 14%; top: 14%;
  border-radius: 50%; background: #d9eeff; box-shadow: 0 0 16px 4px #71b6ff99;
}
.welcome-orbit-two {
  inset: 8%; border: 1px solid #72b1ff30; transform: rotate(38deg) scaleY(.72);
  animation: welcome-orbit-two 23s linear infinite;
}
.welcome-orbit-three {
  inset: -4%; border: 1px solid #80b3ff15; transform: rotate(-14deg) scaleY(.82);
  animation: welcome-orbit-three 28s linear infinite;
}
.welcome-orbit-four {
  inset: 13%; border: 1px dashed #a4cfff1b; transform: rotate(64deg) scaleY(.65);
  animation: welcome-orbit-four 36s linear infinite;
}
.welcome-orbit-core {
  position: absolute; inset: 18%; border-radius: 50%;
  background: radial-gradient(ellipse at 50% 0%, #9fcaff16, transparent 60%);
  border-top: 1px solid #b9dcff55; box-shadow: 0 -18px 80px -38px #82b7ff;
  animation: welcome-core-breathe 5s ease-in-out infinite alternate;
}
.welcome-topline, .welcome-bottomline {
  position: absolute; left: clamp(28px, 5vw, 80px); right: clamp(28px, 5vw, 80px);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.welcome-topline { top: max(42px, env(safe-area-inset-top)); }
.welcome-wordmark { display: flex; align-items: center; gap: 11px; font-size: 14px; font-weight: 600; letter-spacing: 2px; }
.welcome-mark {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px;
  border: 1px solid #8db9ff66; background: linear-gradient(135deg, #a4caff20, #376ddb15);
  font-size: 16px; letter-spacing: 0; color: #bfdbff;
}
.welcome-edition { color: #8dabc5; font-size: 9px; letter-spacing: 3px; }
.welcome-content { position: relative; text-align: center; width: calc(100% - 40px); padding: 108px 0 115px; }
.welcome-eyebrow {
  display: flex; align-items: center; justify-content: center; gap: 15px;
  color: #a5c4e3; font-size: 11px; letter-spacing: 5px; margin: 0 0 32px;
  animation: welcome-rise 1.2s .08s both;
}
.welcome-eyebrow span { width: 25px; height: 1px; background: linear-gradient(90deg, transparent, #97baff88); }
.welcome-eyebrow span:last-child { transform: rotate(180deg); }
.welcome-content :is(h1,h2) { margin: 0; font-weight: 500; line-height: 1.15; }
.welcome-greeting { display: block; margin-bottom: 16px; font-size: clamp(18px, 2.4vw, 28px); letter-spacing: 10px; padding-left: 10px; color: #d6e4f4; animation: welcome-rise 1.2s .18s both; }
.welcome-name {
  display: block; font-size: clamp(48px, 7.7vw, 108px); font-weight: 650; letter-spacing: .1em; padding-left: .1em;
  background: linear-gradient(170deg, #fff 12%, #e1eeff 48%, #8baede 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 32px #5e9eff20); animation: welcome-rise 1.4s .28s both;
}
.welcome-description { margin: 27px 0 43px; color: #a6b8ce; font-size: 14px; letter-spacing: 7px; padding-left: 7px; animation: welcome-rise 1.4s .4s both; }
.welcome-enter {
  position: relative; display: inline-flex; align-items: center; justify-content: space-between; gap: 44px;
  min-height: 60px; min-width: 210px; padding: 8px 10px 8px 30px;
  border: 1px solid #9fc7ff9c; border-radius: 999px; background: linear-gradient(115deg, #2e5a9a70, #1c34555e);
  box-shadow: inset 0 1px 0 #d8eaff22, 0 0 36px #458aff1c;
  color: #eaf3ff; font: inherit; font-size: 14px; letter-spacing: 3px; cursor: pointer;
  transition: background .25s, box-shadow .25s, transform .25s; animation: welcome-rise 1.3s .55s both;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.welcome-arrow { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: #b5d4ff; color: #132c50; font-size: 24px; letter-spacing: 0; transition: transform .25s; }
.welcome-enter:hover { background: #345c928c; box-shadow: 0 0 50px #458aff3b; }
.welcome-enter:hover .welcome-arrow { transform: rotate(45deg); }
.welcome-enter:active { transform: scale(.97); }
.welcome-enter:focus-visible { outline: 2px solid #e6f3ff; outline-offset: 6px; }
.welcome-bottomline { bottom: max(44px, env(safe-area-inset-bottom)); color: #8b9fb8; font-size: 10px; letter-spacing: 3px; }
.welcome-bottomline i { font-style: normal; margin: 0 10px; color: #7aa1ce; }
.welcome-bottomline span:last-child { font-size: 9px; letter-spacing: 3px; }
.welcome-pending.welcome-leaving #site-content { visibility: visible; }
.welcome-leaving .welcome-screen { opacity: 0; transform: scale(1.045); pointer-events: none; }
@keyframes welcome-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes welcome-orbit-one { to { transform: rotate(328deg) scaleY(.55); } }
@keyframes welcome-orbit-two { to { transform: rotate(-322deg) scaleY(.72); } }
@keyframes welcome-orbit-three { to { transform: rotate(346deg) scaleY(.82); } }
@keyframes welcome-orbit-four { to { transform: rotate(-296deg) scaleY(.65); } }
@keyframes welcome-core-breathe { from { opacity: .55; transform: scale(.96); } to { opacity: 1; transform: scale(1.05); } }
@keyframes welcome-aura-drift {
  from { transform: translate(-54%, -48%) scale(.92); opacity: .65; }
  to { transform: translate(-46%, -52%) scale(1.15); opacity: 1; }
}
@keyframes welcome-meteor {
  0%, 8% { opacity: 0; transform: translate3d(-20vw, -10vh, 0) rotate(28deg); }
  12% { opacity: .8; }
  32% { opacity: 0; transform: translate3d(115vw, 60vh, 0) rotate(28deg); }
  100% { opacity: 0; transform: translate3d(115vw, 60vh, 0) rotate(28deg); }
}
@media (max-width: 680px) {
  .welcome-screen::after { inset: 12px; }
  .welcome-topline { top: max(32px, env(safe-area-inset-top)); }
  .welcome-wordmark { font-size: 12px; letter-spacing: 1px; }
  .welcome-edition { font-size: 7px; letter-spacing: 1.5px; }
  .welcome-orbits { width: 125vw; top: 44%; }
  .welcome-content { padding: 110px 0 120px; }
  .welcome-eyebrow { font-size: 9px; letter-spacing: 3px; gap: 10px; margin-bottom: 30px; }
  .welcome-greeting { font-size: 20px; letter-spacing: 7px; padding-left: 7px; margin-bottom: 20px; }
  .welcome-name { font-size: clamp(40px, 10.5vw, 68px); letter-spacing: .045em; padding-left: .045em; }
  .welcome-description { font-size: 12px; letter-spacing: 4px; padding-left: 4px; margin: 25px 0 38px; }
  .welcome-enter { min-width: 196px; min-height: 56px; font-size: 13px; }
  .welcome-arrow { width: 34px; height: 34px; }
  .welcome-bottomline { flex-direction: column; gap: 12px; bottom: max(32px, env(safe-area-inset-bottom)); font-size: 10px; }
  .welcome-bottomline span:last-child { font-size: 8px; letter-spacing: 2px; }
}
@media (max-height: 540px) {
  .welcome-topline { top: 24px; }
  .welcome-content { padding: 72px 0; }
  .welcome-eyebrow { margin-bottom: 12px; }
  .welcome-greeting { font-size: 16px; margin-bottom: 10px; }
  .welcome-name { font-size: clamp(36px, 9vh, 60px); }
  .welcome-description { margin: 12px 0 18px; }
  .welcome-enter { min-height: 48px; }
  .welcome-bottomline { bottom: 20px; flex-direction: row; }
}
@media (prefers-reduced-motion: reduce) {
  .welcome-screen *, .welcome-screen { animation: none !important; transition: none !important; }
}
