/* Daily Outbreak: the page before the game (w2-web-landing; designs 161, 161b, 161c and 162, notes/web-landing.md).
   #landing covers the window while the game downloads: a friend's challenge card (161) or another friend's link, the
   game's own opening on the site's root (162), and what to do when a browser can't start the game (161b, 161c).
   Every class is prefixed wl-. Headings are the owner's face, Fira Sans Condensed (answer 27); text is Inter, as in
   the game. The fonts never hold the card back (font-display: swap). */

@font-face { font-family: "Fira Sans Condensed"; font-weight: 700; font-display: swap; src: url("/landing/fonts/FiraSansCondensed-Bold.woff2") format("woff2"); }
@font-face { font-family: "Fira Sans Condensed"; font-weight: 800; font-display: swap; src: url("/landing/fonts/FiraSansCondensed-ExtraBold.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("/landing/fonts/Inter-Regular.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("/landing/fonts/Inter-SemiBold.woff2") format("woff2"); }

/* The root waits (at most 300 ms) to learn whether this browser has played before it shows the opening or the plain
   loader, so neither flashes under the other: the navy page alone until then. */
html.wl-checking #loading { visibility: hidden; }

#landing {
  --wl-navy: #0b1030;
  --wl-sky: rgb(150, 205, 255);
  --wl-text: rgb(248, 247, 252);
  --wl-gold: #ffd678;
  --wl-coral: rgb(255, 200, 190);
  --wl-head: "Fira Sans Condensed", "Arial Narrow", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --wl-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  /* The game's panel scale: CSS pixels per point of the game's 390-point-wide screen (landing.js, from the canvas). The
     friend's card is drawn in the game's own points, so it is the game's challenge card at the hand-off. */
  --s: 1;
  position: fixed; inset: 0; z-index: 5; display: none; overflow: hidden;
  background: var(--wl-navy); color: var(--wl-text); font-family: var(--wl-body);
  -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  transition: opacity 300ms ease;
}
#landing.wl-on { display: block; }
#landing.wl-leaving { opacity: 0; pointer-events: none; }
#landing *, #landing *::before, #landing *::after { box-sizing: border-box; }
#landing h1, #landing h2, #landing p, #landing ul { margin: 0; padding: 0; }

/* The painted islands: a band at the top on a tall window, the whole backdrop on a short or wide one. */
.wl-art { position: absolute; left: 0; right: 0; top: 0; height: 62%; overflow: hidden; }
.wl-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; display: block; }
.wl-art::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11, 16, 48, 0) 0%, rgba(11, 16, 48, 0) 38%, rgba(14, 26, 84, 0.58) 62%, rgba(19, 36, 106, 0.92) 84%, var(--wl-sea) 100%); }
#landing { --wl-sea: #13246a; }
.wl-sea { position: absolute; left: 0; right: 0; top: 62%; bottom: 0; background: linear-gradient(180deg, #13246a 0%, #0d1a52 55%, #0b1030 100%); }

.wl-scroll { position: absolute; inset: 0; overflow-x: hidden; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.wl-page { position: relative; min-height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding: calc(env(safe-area-inset-top, 0px) + 14px) 14px calc(env(safe-area-inset-bottom, 0px) + 10px); }
.wl-head { display: flex; justify-content: center; width: 100%; transition: opacity 150ms ease; }
.wl-logo { display: block; width: min(60vw, 236px); height: auto; filter: drop-shadow(0 4px 10px rgba(8, 10, 40, 0.45)); }
.wl-body { width: 100%; max-width: 440px; display: flex; flex-direction: column; align-items: stretch; margin-top: 16px; }
/* A phone: the card takes the game's column (the screen less 14 points a side), as wide as the game's own card will be. */
#landing.wl-phone .wl-page { padding-left: calc(14px * var(--s)); padding-right: calc(14px * var(--s)); }
#landing.wl-phone .wl-body { width: calc(362px * var(--s)); max-width: 100%; }

/* ---------------------------------------------------------------- the friend's card (161): ChallengeScreen, field for field
   Every size is the game's own card, measured in its points with the web build's faces (UI Toolkit's default theme gives
   each label 4 points of padding above and below, and 4 above and 2 below as margins where Board.uss sets none; a line
   of Inter is 1.21 em, rounded up as the game draws it; the game's letter-spacing is in hundredths of an em). Headings
   are Fira Sans Condensed drawn 1.049 times their size in a line as tall as Inter's (w2-look's Fonts.HeadingScale and
   HeadingLineEm), as the game draws them once w2-look is in. --u is one of the game's points in CSS pixels.
   w3-fixes: the numbers below are the game's at 3 of its pixels a point. On a phone its canvas has 1.9 to 2.2 a point,
   and the game rounds each margin, padding and border to its pixels and each label's lines up to them: landing.js sets
   --gN (N points on that grid) and the labels' line heights, and these lengths fall back to exact points without them. */
#landing { --u: calc(1px * var(--s)); }
.wl-card { display: none; flex-direction: column; align-items: center; text-align: center;
  padding: var(--g16, calc(16 * var(--u))) var(--g18, calc(18 * var(--u))); border-radius: calc(30 * var(--u));
  background: rgba(34, 46, 104, 0.62); -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, 0.18); border-top-color: rgba(255, 255, 255, 0.46); border-bottom-color: rgba(255, 255, 255, 0.12);
  border-width: var(--g1, 1px); box-shadow: 0 18px 50px rgba(4, 8, 30, 0.35); transform-origin: 50% 0; }
#landing[data-kind="challenge"] .wl-card, #landing[data-kind="link"] .wl-card { display: flex; }
/* The kicker: 42 points (a 1-point border, 5 of padding, its label 4 + 16 + 4 with margins 4 and 2). */
.wl-kicker { display: inline-flex; align-items: center; max-width: 100%; min-height: calc(32 * var(--u));
  padding: var(--g5, calc(5 * var(--u))) var(--g16, calc(16 * var(--u))) var(--g5, calc(5 * var(--u))) var(--g14, calc(14 * var(--u)));
  border-radius: calc(16 * var(--u)); background: rgba(120, 180, 255, 0.16); border: 1px solid rgba(150, 200, 255, 0.45);
  border-width: var(--g1, 1px); color: rgb(178, 218, 255); }
.wl-kicker[hidden] { display: none; }
.wl-kicker svg { flex: none; width: calc(16 * var(--u)); height: calc(16 * var(--u)); }
.wl-kicker span { margin: var(--g4, calc(4 * var(--u))) 0 var(--g2, calc(2 * var(--u))) var(--g8, calc(8 * var(--u)));
  padding: var(--g4, calc(4 * var(--u))) 0; font-weight: 600; font-size: calc(13 * var(--u)); letter-spacing: 0.015em; line-height: calc(16 * var(--u)); }
/* The title: 10 above, 4 + 34 a line + 4, 2 below. */
#landing .wl-title { margin: var(--g10, calc(10 * var(--u))) 0 var(--g2, calc(2 * var(--u))); padding: var(--g4, calc(4 * var(--u))) 0;
  font-family: var(--wl-head); font-weight: 700; font-size: calc(29.37 * var(--u)); line-height: calc(34 * var(--u)); letter-spacing: -0.003em;
  overflow-wrap: anywhere; }
/* The case's line: 4 above, 4 + 19.67 + 4, 2 below. */
#landing .wl-meta { margin: var(--g4, calc(4 * var(--u))) 0 var(--g2, calc(2 * var(--u))); padding: var(--g4, calc(4 * var(--u))) 0; font-weight: 400;
  font-size: calc(16 * var(--u)); line-height: calc(19.67 * var(--u)); color: var(--wl-sky); }
.wl-meta:empty { display: none; }
/* Each part of the case's line stays whole ("Cinder-80" never breaks at its hyphen), as on the game's card. */
.wl-meta span { white-space: nowrap; }
/* The result: 14 above, a 1-point border and 8 above and 14 below inside. */
.wl-result { align-self: stretch; display: flex; flex-direction: column; align-items: center; margin-top: var(--g14, calc(14 * var(--u)));
  padding: var(--g8, calc(8 * var(--u))) var(--g14, calc(14 * var(--u))) var(--g14, calc(14 * var(--u))); border-radius: calc(20 * var(--u));
  background: rgba(255, 255, 255, 0.075); border: 1px solid rgba(255, 255, 255, 0.10); border-top-color: rgba(255, 255, 255, 0.26);
  border-width: var(--g1, 1px); }
#landing[data-kind="link"] .wl-result { display: none; }
.wl-stars { display: flex; align-items: flex-end; justify-content: center; height: var(--g40, calc(40 * var(--u))); }
.wl-stars[hidden] { display: none; }
.wl-stars svg { display: block; margin: 0 calc(4 * var(--u)); }
/* The outcome: 2 above, 4 + 41.33 + 4, 2 below (an open one 4 + 34 + 4). */
.wl-outcome { margin: var(--g2, calc(2 * var(--u))) 0; padding: var(--g4, calc(4 * var(--u))) 0; font-family: var(--wl-head); font-weight: 800;
  font-size: calc(35.67 * var(--u)); line-height: calc(41.33 * var(--u)); letter-spacing: 0.01em; }
.wl-outcome.wl-open { font-size: calc(29.37 * var(--u)); line-height: calc(34 * var(--u)); color: var(--wl-coral); }
/* The pill: 6 above, 5 of padding around its label (4 + 19.67 + 4, margins 4 and 2): 43.67 points. */
.wl-pill { margin-top: var(--g6, calc(6 * var(--u)));
  padding: calc(var(--g5, calc(5 * var(--u))) + 2 * var(--g4, calc(4 * var(--u)))) var(--g16, calc(16 * var(--u)))
    calc(var(--g5, calc(5 * var(--u))) + var(--g4, calc(4 * var(--u))) + var(--g2, calc(2 * var(--u))));
  border-radius: calc(14 * var(--u)); background: #faf9f6; color: rgb(24, 24, 44); font-weight: 600; font-size: calc(16 * var(--u));
  line-height: calc(19.67 * var(--u)); }
/* The pitch: 12 above, 4 + 19.5 a line + 4, 2 below. */
#landing .wl-pitch { margin: var(--g12, calc(12 * var(--u))) 0 var(--g2, calc(2 * var(--u))); padding: var(--g4, calc(4 * var(--u))) 0;
  font-size: calc(16 * var(--u)); line-height: calc(19.5 * var(--u)); color: var(--wl-sky); white-space: pre-line; }
.wl-pitch:empty { display: none; }

/* ---------------------------------------------------------------- the opening on the site's root (162): IntroScreen, word for word */
.wl-opening { display: none; flex-direction: column; align-items: center; text-align: center; }
#landing[data-kind="root"] .wl-opening { display: flex; }
.wl-question { font-family: var(--wl-head); font-weight: 700; font-size: clamp(31px, 8.9vw, 38px); line-height: 1.06; letter-spacing: -0.2px;
  text-wrap: balance; text-shadow: 0 2px 14px rgba(6, 10, 40, 0.7); }
.wl-sub { margin-top: 10px !important; font-size: 16px; line-height: 1.4; color: var(--wl-sky); max-width: 360px; text-wrap: balance;
  text-shadow: 0 1px 10px rgba(6, 10, 40, 0.85); }
.wl-rows { list-style: none; width: 100%; display: flex; flex-direction: column; gap: 9px; margin-top: 16px !important; }
.wl-row { display: flex; align-items: center; min-height: 54px; padding: 9px 18px 9px 16px; border-radius: 27px; text-align: left;
  background: rgba(40, 56, 124, 0.55); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.16); border-top-color: rgba(255, 255, 255, 0.36); }
.wl-row svg { flex: none; }
.wl-row i { flex: none; width: 1px; align-self: stretch; margin: 2px 14px; background: rgba(255, 255, 255, 0.22); }
.wl-row span { font-size: 16px; line-height: 1.3; }
/* A narrow phone: a slimmer gutter and a point smaller, so each English row stays on one line, as drawn (notes 162 item 8
   lets only Russian wrap). */
@media (max-width: 380px) {
  .wl-row { padding-left: 12px; padding-right: 10px; }
  .wl-row svg { width: 22px; height: 22px; }
  .wl-row i { margin: 2px 10px; }
  .wl-row span { font-size: 15px; letter-spacing: -0.1px; }
}

/* ---------------------------------------------------------------- w3-lang: the language pill and its picker (design 193)
   The game's own, on the root's opening only: a glass pill (the game's small pills: 34 tall, a full pill) with the globe and
   the language's own name, top right; under it a glass card of the four by their own names, the current one white with a
   check (the game's Settings mark). Every target is 48 px tall where a tap lands (D418). */
.wl-lang { display: none; position: absolute; z-index: 4; top: calc(env(safe-area-inset-top, 0px) + 10px); right: 10px; }
#landing[data-kind="root"] .wl-lang { display: block; }
.wl-lang-scrim { position: fixed; inset: 0; background: rgba(6, 8, 26, 0.32); }
.wl-lang-scrim[hidden], .wl-lang-menu[hidden] { display: none; }
.wl-lang-pill { position: relative; z-index: 1; display: flex; align-items: center; height: 34px; padding: 0 13px 0 10px; border-radius: 17px;
  background: rgba(28, 30, 66, 0.55); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, 0.16); border-top-color: rgba(255, 255, 255, 0.5); border-left-color: rgba(255, 255, 255, 0.26);
  border-bottom-color: rgba(255, 255, 255, 0.1); color: #fff; font: 400 14px/1 var(--wl-body); white-space: nowrap; cursor: pointer;
  -webkit-tap-highlight-color: transparent; }
.wl-lang-pill svg { flex: none; margin-right: 6px; }
/* Its touch area: 48 px tall, the pill's own width (wider than 48 in every language). */
.wl-lang-pill::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 48px; margin-top: -24px; }
.wl-lang-pill:active { transform: scale(0.97); }
.wl-lang-menu { position: absolute; z-index: 1; right: 0; top: calc(100% + 8px); display: flex; flex-direction: column; gap: 2px; min-width: 200px; padding: 6px;
  border-radius: 26px; background: rgba(22, 26, 64, 0.82); -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, 0.16); border-top-color: rgba(255, 255, 255, 0.5); border-bottom-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 50px rgba(4, 8, 30, 0.35); animation: wl-drop 180ms ease-out; }
@keyframes wl-drop { from { opacity: 0; transform: translateY(-8px); } }
.wl-lang-opt { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 0 14px 0 18px; border: 0; border-radius: 24px;
  background: none; color: #fff; font: 400 16px/1.2 var(--wl-body); text-align: left; white-space: nowrap; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.wl-lang-opt[aria-selected="true"] { background: #faf9f6; color: rgb(20, 20, 40); font-weight: 600; }
.wl-lang-opt svg { flex: none; margin-left: 12px; }
.wl-lang-pill:focus-visible, .wl-lang-opt:focus-visible { outline: 2px solid rgba(255, 214, 120, 0.9); outline-offset: 2px; }
/* The root's opening on a phone: the full-size logo steps down until the pill is beside its top tenth only, which is the
   clock tower alone (the cut-out's letters reach 0.64 of its width there, 0.82 below), so a long name never meets its
   letters. A smaller logo (a tight window) leaves the pill room beside it; a short window hides the logo; a desktop's is
   far from the corner. */
#landing[data-kind="root"] .wl-head { padding-top: 20px; }
#landing.wl-tight[data-kind="root"] .wl-head, #landing.wl-wide[data-kind="root"] .wl-head { padding-top: 0; }

/* ---------------------------------------------------------------- loading: the bar, what's left, the pitch */
.wl-status { display: flex; flex-direction: column; align-items: center; text-align: center; margin-top: 14px; min-height: 110px;
  transition: opacity 150ms ease; }
#landing[data-kind="root"] .wl-status { min-height: 0; }
.wl-bar { position: relative; width: 74%; max-width: 300px; height: 10px; border-radius: 5px; overflow: hidden;
  background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.24); transition: opacity 400ms ease; }
.wl-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 5px; background: linear-gradient(90deg, #ffe2a0, #ffc65a);
  box-shadow: 0 0 10px rgba(255, 210, 120, 0.55); transition: width 250ms ease-out; }
#landing.wl-preparing .wl-fill { width: 100% !important; animation: wl-pulse 1.6s ease-in-out infinite; }
#landing.wl-done .wl-bar { opacity: 0; }
@keyframes wl-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }
.wl-left { margin-top: 8px !important; font-weight: 600; font-size: 15px; line-height: 1.3; color: rgba(255, 255, 255, 0.94); min-height: 20px; }
#landing[data-kind="root"] .wl-left { font-size: 13px; font-weight: 600; color: rgba(232, 238, 255, 0.86); }
.wl-line { margin-top: 8px !important; max-width: 340px; font-size: 15px; line-height: 1.38; color: rgba(255, 255, 255, 0.86); }
.wl-free { margin-top: 6px !important; font-weight: 600; font-size: 13px; color: rgb(130, 190, 255); }
#landing[data-kind="root"] .wl-line, #landing[data-kind="root"] .wl-free { display: none; }
#landing.wl-done[data-kind="root"] .wl-left { visibility: hidden; }
/* Nothing has moved for 20 seconds: the line says so (on the root too, where it is otherwise hidden), with a quiet Try
   again, as WS13's loader did; never once the game is up. */
.wl-retry { display: none !important; }
#landing.wl-stalled:not(.wl-done) .wl-retry { display: flex !important; }
#landing.wl-stalled[data-kind="root"]:not(.wl-done) .wl-line { display: block; }

/* ---------------------------------------------------------------- the root's two choices (162) */
.wl-actions { display: none; flex-direction: column; align-items: center; margin-top: 12px; }
#landing[data-kind="root"] .wl-actions { display: flex; }
.wl-primary { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; max-width: 340px; min-height: 54px; padding: 12px 52px;
  border: 0; border-radius: 27px; background: #faf9f6; color: rgb(20, 20, 40); font: 600 18px/1.25 var(--wl-body); cursor: pointer;
  -webkit-tap-highlight-color: transparent; }
.wl-primary:active { transform: scale(0.98); }
.wl-primary svg { position: absolute; right: 22px; top: 50%; margin-top: -10px; }
.wl-primary .wl-spin { display: none; position: absolute; right: 22px; top: 50%; width: 20px; height: 20px; margin-top: -10px; border-radius: 50%;
  border: 2px solid rgba(20, 20, 40, 0.18); border-top-color: rgba(20, 20, 40, 0.75); animation: wl-turn 0.8s linear infinite; }
.wl-primary.wl-waiting svg { display: none; }
.wl-primary.wl-waiting .wl-spin { display: block; }
.wl-quiet { display: flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; margin-top: 4px; padding: 0 16px; border: 0; background: none;
  color: rgba(232, 238, 255, 0.74); font: 500 15px/1.3 var(--wl-body); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.wl-quiet.wl-waiting::after { content: ""; width: 14px; height: 14px; margin-left: 8px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: rgba(255, 255, 255, 0.8); animation: wl-turn 0.8s linear infinite; }
@keyframes wl-turn { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------- when the game can't start (161b, 161c) */
.wl-trouble { display: none; flex-direction: column; align-items: center; text-align: center; margin-top: 14px; }
#landing.wl-failed .wl-trouble { display: flex; }
#landing.wl-failed .wl-status, #landing.wl-failed .wl-actions { display: none; }
.wl-mark { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; flex: none; }
.wl-mark.wl-warn { background: #f5b73b; color: #1d1a10; font: 800 22px/1 var(--wl-head); }
.wl-mark.wl-out { background: rgba(80, 160, 255, 0.95); }
.wl-trouble h2 { margin: 10px 0 0; font-family: var(--wl-head); font-weight: 700; font-size: 21px; line-height: 1.15; letter-spacing: -0.1px; }
.wl-trouble p { margin-top: 6px !important; max-width: 340px; font-size: 14.5px; line-height: 1.4; color: rgb(170, 210, 255); }
.wl-trouble .wl-primary { margin-top: 14px; font-size: 16px; padding: 12px 24px; }
.wl-trouble .wl-primary svg { position: static; margin: 0 8px 0 0; }
.wl-hold { display: none; width: 100%; max-width: 340px; margin-top: 10px; }
.wl-hold.wl-on { display: block; }
.wl-hold input { width: 100%; min-height: 44px; padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.3); background: rgba(8, 12, 40, 0.6);
  color: #fff; font: 400 14px/1.3 var(--wl-body); -webkit-user-select: text; user-select: text; }
.wl-hold span { display: block; margin-top: 6px; font-size: 13px; color: rgba(232, 238, 255, 0.8); }
/* A window too short for everything (a social app's browser leaves 550 to 640 px of a phone): landing.js steps through
   these until both actions are in view, the card giving its room first and never a word cut. 1: the pitch goes; 2: the
   logo; 3: the stars, and a tighter result; 4: the result panel and the case's line; 5: what to do moves above the card. */
#landing.wl-failed.wl-fit1 .wl-pitch { display: none; }
#landing.wl-failed.wl-fit2 .wl-head { display: none; }
#landing.wl-failed.wl-fit2 .wl-body { margin-top: 0; }
#landing.wl-failed.wl-fit3 .wl-stars { display: none; }
#landing.wl-failed.wl-fit3 .wl-result { margin-top: 8px; padding: 4px 12px 8px; }
#landing.wl-failed.wl-fit3 .wl-trouble { margin-top: 10px; }
#landing.wl-failed.wl-fit3 .wl-mark { width: 32px; height: 32px; }
#landing.wl-failed.wl-fit3 .wl-trouble h2 { margin-top: 6px; }
#landing.wl-failed.wl-fit3 .wl-trouble .wl-primary { margin-top: 10px; }
#landing.wl-failed.wl-fit4 .wl-result, #landing.wl-failed.wl-fit4 .wl-meta { display: none; }
#landing.wl-failed.wl-fit5 .wl-trouble { order: -1; margin-top: 0; margin-bottom: 12px; }

.wl-toast { position: absolute; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 24px); transform: translate(-50%, 12px); opacity: 0;
  padding: 10px 18px; border-radius: 20px; background: rgba(250, 249, 246, 0.96); color: rgb(20, 20, 40); font-weight: 600; font-size: 15px;
  pointer-events: none; transition: opacity 200ms ease, transform 200ms ease; white-space: nowrap; }
.wl-toast.wl-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------------------------------------------------------------- short windows (notes rule 4): under 600 px of visible height */
#landing.wl-short .wl-art { position: fixed; height: 100%; }
#landing.wl-short .wl-art::after { background: linear-gradient(180deg, rgba(11, 16, 48, 0.18) 0%, rgba(11, 16, 48, 0.55) 45%, rgba(11, 16, 48, 0.9) 100%); }
#landing.wl-short .wl-sea { display: none; }
#landing.wl-short .wl-head { display: none; }
#landing.wl-short .wl-body { margin-top: 0; }
#landing.wl-short .wl-page { justify-content: flex-end; }
#landing.wl-short .wl-status { min-height: 0; margin-top: 10px; }
#landing.wl-short .wl-question { font-size: clamp(29px, 8.4vw, 32px); }
#landing.wl-short .wl-rows { margin-top: 10px !important; gap: 7px; }
#landing.wl-short .wl-row { min-height: 46px; padding-top: 6px; padding-bottom: 6px; }

/* A phone with a friend's card: the card ends where the game's card will, the status block filling the band the game's
   Accept button and links take below it (landing.js measures it: --wl-band), its lines a little closer. */
#landing.wl-anchored .wl-status { margin-top: var(--g14, calc(14px * var(--s))); min-height: var(--wl-band, 110px); }
#landing.wl-anchored .wl-bar { height: 8px; }
#landing.wl-anchored .wl-left { margin-top: 5px !important; }
#landing.wl-anchored .wl-line { margin-top: 5px !important; font-size: 14.5px; line-height: 1.3; }
#landing.wl-anchored .wl-free { margin-top: 3px !important; line-height: 1.3; }

/* Tall enough to keep the band of art, but not for everything: a smaller logo first, then no room reserved under the card. */
#landing.wl-tight .wl-logo { width: min(40vw, 150px); }
#landing.wl-tight .wl-body { margin-top: 8px; }
#landing.wl-tighter .wl-status { min-height: 0; }

/* Desktop (notes rule 5): the card centres at up to 440 px over the whole painting. */
#landing.wl-wide .wl-art { position: fixed; height: 100%; }
#landing.wl-wide .wl-art::after { background: linear-gradient(180deg, rgba(11, 16, 48, 0) 0%, rgba(11, 16, 48, 0.35) 55%, rgba(11, 16, 48, 0.82) 100%); }
#landing.wl-wide .wl-sea { display: none; }
#landing.wl-wide .wl-page { justify-content: center; gap: 18px; }
#landing.wl-wide .wl-body { margin-top: 0; }

/* The app offer (D187) is up over the page: the card and its lines wait unseen under it, so nothing reads through. */
html.wl-offer #landing .wl-page { visibility: hidden; }

/* The hand-off (161): what is under the card goes first, so only the card meets the game's own (notes 161 item 7). */
#landing.wl-handing .wl-status, #landing.wl-handing .wl-head { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  #landing, .wl-fill, .wl-toast, .wl-status, .wl-head { transition: none; }
  #landing.wl-preparing .wl-fill, .wl-primary .wl-spin, .wl-quiet.wl-waiting::after, .wl-lang-menu { animation: none; }
}
