/* Welcome window, first visit only. */
.welcome{width:min(960px,calc(100vw - 48px));max-width:none;max-height:calc(100svh - 48px);margin:auto;padding:0;border:0;border-radius:24px;background:#0b0f16;color:#fff;overflow:hidden;outline:0}
.welcome::backdrop{background:rgba(5,8,13,.74)}
html:has(.welcome[open]){overflow:hidden}
.welcome-in{position:relative;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);max-height:inherit}
.welcome-img{position:relative;overflow:hidden;min-height:0}
.welcome-img img{width:100%;height:100%;aspect-ratio:4/5;max-height:calc(100svh - 48px);object-fit:cover;object-position:54% 60%}
.welcome-text{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;padding:clamp(28px,4vw,56px);background:radial-gradient(ellipse 90% 60% at 0 30%,#12306a,transparent 75%)}
.welcome p.welcome-eyebrow{margin:0;font:600 14px/1.3 var(--brand);color:#d4deeb}
.welcome h2{margin:14px 0 0;font:400 clamp(96px,11vw,156px)/.82 var(--display);text-transform:uppercase;letter-spacing:-.01em;color:#fff}
.welcome p.welcome-note{max-width:30ch;margin:20px 0 0;font:500 17px/1.5 var(--text);color:#e7edf5;text-wrap:balance}
.welcome-code{display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;min-height:58px;margin:26px 0 0;padding:0 20px;border:1.5px dashed rgba(255,255,255,.55);border-radius:16px;background:rgba(255,255,255,.07);color:#fff;font:600 14px/1 var(--brand);cursor:pointer;transition:background-color .3s}
.welcome-code:hover{background:rgba(255,255,255,.14)}
.welcome-code b{font:800 22px/1 var(--brand);letter-spacing:.06em}
.welcome .welcome-go{width:100%;min-height:58px;margin-top:12px;background:#fff;color:#0E0E10;font-size:17px}
.welcome-close{position:absolute;top:12px;right:12px;display:grid;place-items:center;width:44px;height:44px;padding:0;border:0;border-radius:50%;background:rgba(8,12,18,.55);color:#fff;cursor:pointer}
.welcome-close:hover{background:rgba(8,12,18,.85)}
@media (prefers-reduced-motion:no-preference){
  .welcome[open]{animation:welcome-in .6s var(--ease) both}
  .welcome[open]::backdrop{animation:welcome-fade .4s both}
  .welcome[open] .welcome-img img{animation:welcome-push 7s cubic-bezier(.2,.6,.3,1) both}
  .welcome.is-leaving{opacity:0;transform:translateY(14px);transition:opacity .22s,transform .22s;animation:none}
}
@keyframes welcome-in{from{opacity:0;transform:translateY(26px) scale(.98)}}
@keyframes welcome-fade{from{opacity:0}}
@keyframes welcome-push{from{transform:scale(1.08)}}
.welcome.is-preview{position:static;display:block}
@media (max-width:819px){
  .welcome{width:calc(100vw - 32px);max-height:calc(100svh - 40px)}
  .welcome-in{display:flex;flex-direction:column;overflow:auto;overscroll-behavior:contain}
  .welcome-img{flex:0 1 auto;height:calc(100svh - 40px - 296px);min-height:200px;max-height:125vw}
  .welcome-img::after{content:"";position:absolute;inset:45% 0 0;background:linear-gradient(transparent,#0b0f16)}
  .welcome-img img{aspect-ratio:auto;max-height:none;object-position:56% 60%}
  .welcome-text{flex:none;position:relative;margin-top:-92px;padding:0 20px 20px;background:none;align-items:center;text-align:center}
  .welcome p.welcome-eyebrow{font-size:13px}
  .welcome h2{margin-top:8px;font-size:clamp(84px,27vw,120px)}
  .welcome p.welcome-note{margin-top:12px;font-size:16px;line-height:1.4}
  .welcome-code{margin-top:16px;min-height:54px}
  .welcome .welcome-go{margin-top:10px;min-height:54px}
}
@media (max-width:819px) and (max-height:520px){.welcome-img{display:none}.welcome-text{margin:0;padding-top:56px}}
@media (min-width:820px) and (max-height:560px),(min-width:600px) and (max-height:520px){
  .welcome{max-height:calc(100svh - 24px)}
  .welcome-text{padding:20px 28px}
  .welcome h2{margin-top:6px;font-size:clamp(64px,24vh,120px)}
  .welcome p.welcome-note{margin-top:10px;font-size:15px;line-height:1.4}
  .welcome-code{min-height:48px;margin-top:14px}.welcome .welcome-go{min-height:48px;margin-top:8px}
  .welcome-img img{max-height:calc(100svh - 24px)}
}
@media (max-width:819px) and (max-height:700px){
  .welcome-img{height:calc(100svh - 40px - 236px)}
  .welcome-img img{object-position:56% 74%}
  .welcome-text{margin-top:-64px;padding-bottom:16px}
  .welcome p.welcome-eyebrow{display:none}
  .welcome h2{margin-top:0;font-size:76px}
  .welcome p.welcome-note{margin-top:8px;font-size:15px}
  .welcome-code,.welcome .welcome-go{min-height:48px}
  .welcome-code{margin-top:12px}
}
