/* Update 13 (L1, L4–L7): the static first screen. html[data-first] shows it with the first paint, before the app exists;
   html[data-ad] swaps art and headline; html[data-env] the device screens. Loaded with style, ink, screens and welcome:
   the only stylesheets that block the first paint. */
html[data-first] #screen-welcome[hidden]{display:block!important}
html[data-first] .boot{display:none}

/* L4: one headline, one first how-line, one meta line per ad */
.s-welcome :is(.v-c,.v-d){display:none}
html[data-ad="C"] .s-welcome .v-0,html[data-ad="D"] .s-welcome :is(.v-0,.v-nd){display:none}
html[data-ad="C"] .s-welcome .v-c,html[data-ad="D"] .s-welcome .v-d{display:inline}
html[data-ad="C"] .s-welcome .brand-tag{visibility:hidden} /* the h1 says it */
.s-welcome .meta :is(.v-nd,.v-d,.v-ao,.v-io){white-space:normal} /* their inner parts keep welcome.css's no-wrap */
.s-welcome .bagart{display:none}
html[data-ad="D"] .s-welcome .bagart{display:block;position:absolute;inset:0 -6% 0 -2%;background:url(../img/landing/bag.webp) 50% 45%/contain no-repeat;mix-blend-mode:multiply} /* white paper: the grain shows through */
html[data-ad="D"] .s-welcome .hero :is(.enso,.fig){display:none}

/* Update 15c (F231): »Training planen« is whole from the first paint; the ink fills it, with »Coach lädt … N %« under it,
   only after a tap before the app is there (ui/welcome.js wait() sets .is-loading). Until the brush mask has arrived
   (landing.js: html.ink-in) the button wears the plain brush shape every other button has — never white on paper. The
   »Hör rein« dab comes with the painting, not 900 ms later. */
html[data-first]:not(.ink-in) .s-welcome .go::before{inset:0;-webkit-mask:none;mask:none;clip-path:var(--shape,var(--brush))}
html[data-first] .s-welcome .hear{animation-delay:0s}
/* The ink fills »Training planen« while the app loads — after a tap (15c) */
.s-welcome .go .ink{display:none}
.s-welcome .go.is-loading::before{background:#6f675c}
.s-welcome .go.is-loading .ink{display:block;position:absolute;z-index:-1;inset:-5px calc(-1 * var(--gut)) -5px -6px;background:var(--verm);
  -webkit-mask:url(../img/ink/swash.webp) 0 50%/150% 100% no-repeat;mask:url(../img/ink/swash.webp) 0 50%/150% 100% no-repeat;
  clip-path:inset(0 calc(100% - var(--ink-p,0%)) 0 0);transition:clip-path 250ms linear}
.s-welcome .go:not(.is-loading) .ink{display:none}
.s-welcome .load-note{margin:7px 0 0;text-align:center;font:700 12.5px/1 var(--sans);color:var(--ink-2)}
.s-welcome .load-note b{font:800 13.5px/1 var(--num);color:var(--verm)}
.s-welcome .go:not(.is-loading)~.load-note{visibility:hidden}
@media (max-height:820px){.s-welcome .foot{padding-top:6px}.s-welcome .how{gap:9px;margin-top:12px}}

/* L5: desktop, the QR code instead of the how-lines and the button */
.s-welcome .dk{display:none}
html[data-env="desktop"] .s-welcome :is(.how,.meta,.foot,.kick,h1){display:none}
html[data-env="desktop"] .s-welcome .pre{max-width:980px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:56px;align-content:center;align-items:center;
  grid-template-areas:"top top" "art dk"}
html[data-env="desktop"] .s-welcome .topbar{grid-area:top;align-self:start}
html[data-env="desktop"] .s-welcome .hero{grid-area:art;margin:0 auto;--hd:min(420px,38vw,60vh)}
html[data-env="desktop"] .s-welcome .cap{grid-area:dk;align-self:end;margin:0 0 -8px}
html[data-env="desktop"] .s-welcome .dk{grid-area:dk;display:block}
.s-welcome .dk-h{font:800 clamp(32px,4vw,46px)/1.05 var(--serif);letter-spacing:-.018em}
.s-welcome .dk-h em{font-style:normal;color:var(--verm)}
.s-welcome .dk-p{margin-top:14px;font:600 18px/1.4 var(--sans);color:var(--ink-2)}
.s-welcome .dk-qr{display:grid;grid-template-columns:132px 1fr;gap:18px;align-items:center;margin-top:24px}
.s-welcome .dk-qr img{display:block;width:132px;height:132px;background:#fff;padding:8px;border-radius:8px}
.s-welcome .dk-qr b{font:800 19px/1.2 var(--sans)}
.s-welcome .dk-qr small{display:block;margin-top:4px;font:600 15px/1.3 var(--sans);color:var(--ink-2)}
.s-welcome .dk-here{margin-top:22px;padding:6px 0;border:0;background:none;cursor:pointer;font:700 15px/1.2 var(--sans);color:var(--ink-2);text-decoration:underline;text-underline-offset:3px}
.s-welcome .dk-here:focus-visible{outline:3px solid var(--ink);outline-offset:4px}

/* L6 / L7 (update 13b, F190): other Android browsers and iPhone read one line above the button instead of a sheet over the page;
   nobody of the first 13 in Reddit's browser answered the sheet. The link's tap area reaches past the line, the line stays put. */
.s-welcome .meta :is(.v-ao,.v-io){display:none}
html[data-env="android-other"] .s-welcome .meta :is(.v-nd,.v-d),html[data-env="ios"] .s-welcome .meta :is(.v-nd,.v-d){display:none}
html[data-env="android-other"] .s-welcome .meta .v-ao,html[data-env="ios"] .s-welcome .meta .v-io{display:inline}
.s-welcome .ls-open{display:inline-block;padding:12px 6px;margin:-12px -6px;font-weight:800;color:var(--verm);text-decoration:underline;text-underline-offset:3px;white-space:nowrap}
.s-welcome .ls-open:focus-visible{outline:3px solid var(--ink);outline-offset:-6px;border-radius:6px}
