/* Part 115: the welcome, five short steps over the live mountain the first time the game opens (welcome50.js). */
.welcome{position:fixed;inset:0;z-index:55;display:flex;align-items:center;justify-content:flex-start;padding:28px clamp(16px,4vw,64px);background:linear-gradient(90deg,rgba(4,9,18,.86) 0%,rgba(4,9,18,.62) 42%,rgba(4,9,18,.08) 78%)}
.welcome.hidden{display:none}
body.welcome-on .masthead,body.welcome-on #menu,body.welcome-on .home-live-panel{opacity:0;pointer-events:none;transition:opacity .35s}
.welcome-sheet{display:flex;flex-direction:column;gap:18px;width:min(500px,100%);max-height:calc(100dvh - 56px);overflow:auto;color:#eef6ff;animation:welcomeIn .45s cubic-bezier(.2,.75,.25,1)}
@keyframes welcomeIn{from{opacity:0;transform:translateX(-18px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){.welcome-sheet{animation:none}}
.welcome-top{display:flex;align-items:center;justify-content:space-between;gap:12px}
.welcome-dots{display:flex;gap:6px;margin:0;padding:0;list-style:none}
.welcome-dots li{width:26px;height:4px;border-radius:2px;background:rgba(255,255,255,.2)}
.welcome-dots li.done{background:rgba(103,227,224,.6)}
.welcome-dots li.now{width:44px;background:#67e3e0}
.welcome-skip{padding:8px 12px;border:0;border-radius:8px;font:800 12px/1 Barlow,system-ui,sans-serif;letter-spacing:.14em;color:#b9c9dc;background:rgba(255,255,255,.06);cursor:pointer}
.welcome-skip:hover,.welcome-skip:focus-visible{color:#fff;background:rgba(255,255,255,.14)}
.welcome-body{display:flex;flex-direction:column;gap:14px}
.welcome-eyebrow{font:800 12px/1.3 Barlow,system-ui,sans-serif;letter-spacing:.18em;color:#67e3e0}
.welcome-body h2{margin:0;font:900 italic clamp(48px,8vw,84px)/.88 "Barlow Condensed",Barlow,system-ui,sans-serif;letter-spacing:-.015em;text-shadow:0 6px 30px rgba(0,0,0,.35)}
.welcome-body p{margin:0;max-width:46ch;font:500 16px/1.5 Barlow,system-ui,sans-serif;color:#d3e1f0}
.welcome-body p.welcome-small{font-size:13px;color:#9fb3c9}
.welcome-sports{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.welcome-sport{display:flex;flex-direction:column;align-items:flex-start;gap:4px;padding:10px 14px 14px;border-radius:18px;text-align:left;color:#eef6ff;background:rgba(255,255,255,.06);border:2px solid rgba(255,255,255,.12);cursor:pointer;transition:border-color .2s,background .2s,transform .2s}
.welcome-sport img{align-self:center;width:100%;max-width:190px;height:170px;object-fit:contain}
.welcome-sport b{font:900 italic 28px/1 "Barlow Condensed",Barlow,system-ui,sans-serif}
.welcome-sport small{font:500 13px/1.35 Barlow,system-ui,sans-serif;color:#b9c9dc}
.welcome-sport[aria-pressed=true]{border-color:#67e3e0;background:rgba(103,227,224,.12)}
.welcome-sport:hover{transform:translateY(-2px)}
.welcome-name{display:flex;flex-direction:column;gap:6px}
.welcome-name span{font:800 12px/1.3 Barlow,system-ui,sans-serif;letter-spacing:.14em;color:#cfe0f2}
.welcome-name input{max-width:360px;font:900 italic 30px/1.1 "Barlow Condensed",Barlow,system-ui,sans-serif;text-transform:uppercase;letter-spacing:.02em}
.welcome-account{display:flex;flex-wrap:wrap;gap:10px}
.welcome-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:4px}
.welcome-next{min-width:200px;justify-content:space-between}
@media(max-width:700px){
  .welcome{align-items:flex-end;padding:16px;background:linear-gradient(0deg,rgba(4,9,18,.94) 0%,rgba(4,9,18,.82) 62%,rgba(4,9,18,.25) 100%)}
  .welcome-sheet{max-height:calc(100dvh - 32px)}
  .welcome-body h2{font-size:46px}
  .welcome-body p{font-size:15px}
  .welcome-sport img{height:110px}
  .welcome-next{min-width:0;flex:1}
}
@media(max-height:520px){
  .welcome{align-items:stretch;padding:12px 16px}
  .welcome-sheet{max-height:calc(100dvh - 24px)}
  .welcome-body h2{font-size:40px}
  .welcome-sport img{height:90px}
}

/* Part 143: the rebuilt welcome. The logo screen is centred on a darker sky; every other screen keeps the column on the
   left over the live mountain. */
.welcome[data-step=hello]{justify-content:center;background:radial-gradient(ellipse 70% 60% at 50% 42%,rgba(14,38,66,.9),rgba(4,9,18,.98) 72%)}
/* SKIP sits in the corner of the screen on every step, out of the way of what the step is about. */
.welcome-skip{position:fixed;top:max(14px,env(safe-area-inset-top));right:max(14px,env(safe-area-inset-right));z-index:2}
.welcome[data-step=hello] .welcome-sheet{align-items:center;width:min(680px,100%);text-align:center;animation:none}
.welcome[data-step=hello] .welcome-body{align-items:center;gap:10px}
.welcome[data-step=hello] .welcome-top{align-self:stretch}
.welcome-foot.hello{justify-content:center;flex-wrap:wrap}
.welcome-foot.hello .welcome-next{min-width:240px}
/* Part 168: JUST RIDE, the way straight onto the snow, beside START. Under START on a phone. */
.welcome-ride{min-height:48px;min-width:150px}
@media(max-width:700px){.welcome-foot.hello>*{flex:1 1 100%}}
.wb-line-text{text-align:center}
.welcome-name-row{display:flex;flex-wrap:wrap;align-items:stretch;gap:10px}
.welcome-name{flex:1 1 220px}
.welcome-name input{width:100%;max-width:none}
.welcome-roll{display:inline-flex;align-items:center;gap:8px;padding:0 16px;min-height:52px;border-radius:12px;border:1px solid rgba(255,255,255,.16);font:800 13px/1 Barlow,system-ui,sans-serif;letter-spacing:.12em;color:#eef6ff;background:rgba(255,255,255,.08);cursor:pointer}
.welcome-roll:hover,.welcome-roll:focus-visible{background:rgba(103,227,224,.16);border-color:#67e3e0}
.welcome-roll s-icon{width:18px;height:18px}
.welcome .sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
/* YOUR LOOK: the maker without its own skis-or-board switch, which was the screen before. */
.welcome[data-step=look] .welcome-sheet{width:min(760px,100%)}
.welcome[data-step=look] .first-sport{display:none}
.welcome[data-step=look] .look-top{justify-content:flex-end}
.welcome[data-step=look] .first-look{background:rgba(4,9,18,.42);border-radius:18px;padding:12px}
/* SAVE YOUR RIDER */
.welcome-account-form{display:grid;gap:10px;max-width:440px}
.welcome-account-form label{display:flex;flex-direction:column;gap:4px}
.welcome-account-form label>span{font:800 11px/1.3 Barlow,system-ui,sans-serif;letter-spacing:.14em;color:#cfe0f2}
.welcome-account-form small{font:500 12px/1.35 Barlow,system-ui,sans-serif;color:#8ea3ba}
.welcome-account-form .text-field{width:100%}
.welcome-handle{display:flex;align-items:center;gap:6px}
.welcome-handle i{font:800 18px/1 Barlow,system-ui,sans-serif;font-style:normal;color:#67e3e0}
.welcome-error{margin:0;font:700 13px/1.4 Barlow,system-ui,sans-serif!important;color:#ffb3b3!important}
.welcome-error.hidden{display:none}
[aria-invalid=true].text-field{border-color:#ff8f8f!important;box-shadow:0 0 0 2px rgba(255,143,143,.25)}
/* READY: two ways in, and the controls on one line. */
.welcome-go{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.welcome-choice{display:flex;flex-direction:column;align-items:flex-start;gap:6px;padding:16px 16px 18px;border-radius:18px;text-align:left;color:#eef6ff;background:rgba(255,255,255,.07);border:2px solid rgba(255,255,255,.14);cursor:pointer;transition:transform .2s,border-color .2s,background .2s}
.welcome-choice b{font:900 italic 30px/1 "Barlow Condensed",Barlow,system-ui,sans-serif;letter-spacing:.01em}
.welcome-choice small{font:500 13px/1.4 Barlow,system-ui,sans-serif;color:#c3d3e4}
.welcome-choice-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;color:#06101c;background:#67e3e0}
.welcome-choice-icon s-icon{width:22px;height:22px}
.welcome-choice.drop .welcome-choice-icon{background:#ffcf63}
.welcome-choice:hover,.welcome-choice:focus-visible{transform:translateY(-2px);border-color:#67e3e0;background:rgba(103,227,224,.12)}
.welcome-choice.drop:hover,.welcome-choice.drop:focus-visible{border-color:#ffcf63;background:rgba(255,207,99,.1)}
.welcome-keys{display:flex;flex-wrap:wrap;gap:6px 14px;margin:0;padding:0;list-style:none}
.welcome-keys li{display:flex;align-items:center;gap:6px;font:500 12px/1.3 Barlow,system-ui,sans-serif;color:#b9c9dc}
.welcome-keys b{font:800 11px/1 Barlow,system-ui,sans-serif;letter-spacing:.12em;color:#eef6ff}
.welcome-keys kbd{display:inline-block;min-width:20px;margin:0 1px;padding:1px 5px;border-radius:5px;font:800 11px/1.4 Barlow,system-ui,sans-serif;text-align:center;color:#06101c;background:#eef6ff}
@media(max-width:700px){
  .welcome[data-step=hello]{align-items:center;background:radial-gradient(ellipse 90% 60% at 50% 40%,rgba(14,38,66,.92),rgba(4,9,18,.98) 75%)}
  .welcome-go{grid-template-columns:1fr}
  .welcome-choice{flex-direction:row;flex-wrap:wrap;align-items:center;column-gap:12px}
  .welcome-choice small{flex-basis:100%}
  .welcome-choice b{font-size:26px}
  .welcome[data-step=look] .first-look{padding:8px}
}
/* The way forward stays in reach when a step is taller than the screen (YOUR LOOK on a phone). */
.welcome-foot{position:sticky;bottom:-1px;z-index:1;padding-bottom:2px}
@media(max-width:700px){.welcome-foot:not(.hello){margin-top:-8px;padding-top:16px;background:linear-gradient(rgba(4,9,18,0),rgba(4,9,18,.96) 40%)}}

/* Part 154: the mountain behind the steps goes soft and a little darker, so nothing written on it (the start arch's
   banner, NORTHLIGHT SHORT COURSE) reads through behind a title. On a wide screen only the steps' side goes soft:
   the rider and the arch step to the right of the steps (home50.js HOME_ASIDE) and stay sharp. */
.welcome::before{content:"";position:absolute;inset:0;z-index:0;pointer-events:none;-webkit-backdrop-filter:blur(10px) saturate(112%);backdrop-filter:blur(10px) saturate(112%);-webkit-mask-image:linear-gradient(90deg,#000 0,#000 calc(clamp(16px,4vw,64px) + 520px),transparent calc(clamp(16px,4vw,64px) + 680px));mask-image:linear-gradient(90deg,#000 0,#000 calc(clamp(16px,4vw,64px) + 520px),transparent calc(clamp(16px,4vw,64px) + 680px))}
.welcome[data-step=hello]::before{-webkit-mask-image:none;mask-image:none}
.welcome-sheet{position:relative;z-index:1}
.welcome:not([data-step=hello]){background:linear-gradient(90deg,rgba(4,9,18,.9) 0%,rgba(4,9,18,.74) calc(clamp(16px,4vw,64px) + 420px),rgba(4,9,18,.12) calc(clamp(16px,4vw,64px) + 700px))}
/* YOUR LOOK is wider than the other steps: its panel is solid enough that the mountain does not show through it. */
.welcome[data-step=look] .first-look{background:rgba(6,14,26,.86)}
/* SKIP reads over a bright sky. */
.welcome-skip{color:#e4edf7;background:rgba(4,9,18,.55);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.welcome-skip:hover,.welcome-skip:focus-visible{background:rgba(4,9,18,.75)}
@media(max-width:700px){
  .welcome::before{-webkit-mask-image:none;mask-image:none}
  .welcome:not([data-step=hello]){background:linear-gradient(0deg,rgba(4,9,18,.95) 0%,rgba(4,9,18,.84) 58%,rgba(4,9,18,.62) 100%)}
}
/* A phone on its side (or any screen under 520 px tall): every step fits without the way forward sitting on its
   words. The logo screen sizes by the height; the others are a little tighter. */
@media(max-height:520px){
  .welcome::before{-webkit-mask-image:linear-gradient(90deg,#000 0,#000 530px,transparent 610px);mask-image:linear-gradient(90deg,#000 0,#000 530px,transparent 610px)}
  .welcome[data-step=hello]::before{-webkit-mask-image:none;mask-image:none}
  .welcome-sheet{gap:10px}
  .welcome-body{gap:8px}
  .welcome-body h2{font-size:34px}
  .welcome-sport{padding:6px 12px 10px}
  .welcome-sport img{height:64px}
  .welcome-sport b{font-size:24px}
  .welcome-choice{padding:10px 14px 12px;gap:4px}
  .welcome-choice b{font-size:24px}
  .welcome-choice-icon{width:32px;height:32px}
  .welcome-go{grid-template-columns:1fr 1fr}
  .welcome[data-step=hello] .welcome-sheet{justify-content:center}
  .welcome .wb{width:min(22vw,20vh)}
  .welcome .wb-word{width:min(52vw,84vh)}
  .welcome[data-step=hello] .welcome-body{gap:6px}
  /* A step taller than the screen (SAVE YOUR RIDER) scrolls under the way forward, which sits on its own bar. */
  .welcome-foot:not(.hello){margin-inline:-8px;padding:8px;border-radius:16px;background:rgba(6,14,26,.94);box-shadow:0 -10px 26px rgba(0,0,0,.4)}
}
