/* The welcome screen (welcome.js): Sign in / Create account / Play as guest, and the cloud save's pieces.
   Phone and app: the game's look (the online pack's stadium, the Home logo, Landon, Coach James and Talon, the pack's gold
   plate and navy button, Barlow Condensed with its dark rim), laid out to the phone's height between the safe areas.
   Computer (desktop.js's html.dt-on): the landing pack's hero (website/landing_pack, hero-1920x1080) in its own 1920 x 1080
   pixels, scaled whole to the window, the stadium filling the rest. Every class is wl-*. */

/* ---- the layer: over the game and the desktop shell, under the account screens (8500) and the game's dialogs (9000) */
.wl { position: fixed; inset: 0; z-index: 8400; overflow: hidden; color: #fff; background: #071630; font-family: var(--font-ui);
  -webkit-tap-highlight-color: transparent; -webkit-user-select: none; user-select: none; touch-action: manipulation; }
.wl.in { animation: wlIn 0.24s ease-out both; }
.wl.out { animation: wlOut 0.22s ease-in both; pointer-events: none; }
/* (the game's button look off, with no weight: each button's own class wins) */
:where(.wl, .wl-cmp) button { margin: 0; padding: 0; border: 0; background: none; box-shadow: none; min-height: 0; color: inherit; font: inherit; letter-spacing: 0; text-align: inherit; cursor: pointer; touch-action: manipulation; -webkit-appearance: none; appearance: none; }
:where(.wl, .wl-cmp) button:active { transform: none; box-shadow: none; }
.wl button:focus-visible { outline: 3px solid #ffd23a; outline-offset: 3px; }
/* its words and buttons wait for its pictures (welcome.js: 2.5 s at most), then come in */
.wl:not(.ready) .wl-logo, .wl:not(.ready) .wl-art, .wl:not(.ready) .wl-panel { animation-play-state: paused; }
.wl .wl-guest, .wl-ds { transition: opacity 0.3s 0.25s; }
.wl:not(.ready) .wl-guest, .wl:not(.ready) .wl-ds { opacity: 0; transition: none; }
/* an account screen over it: the welcome dims behind (on a computer the form is a card in the middle of the window) */
.wl::after { content: ''; position: absolute; inset: 0; z-index: 5; background: rgba(2, 9, 25, 0.66); opacity: 0; pointer-events: none; transition: opacity 0.2s; }
html.wl-sub .wl::after { opacity: 1; }

/* ============================================================ phone and app */
.wl-ph { position: absolute; inset: 0; display: flex; flex-direction: column; }
.wl-bg { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(5, 14, 32, 0.15) 0%, rgba(5, 14, 32, 0) 26%, rgba(5, 14, 32, 0.55) 58%, rgba(5, 14, 32, 0.9) 100%),
    linear-gradient(90deg, rgba(255, 40, 40, 0.26), rgba(255, 40, 40, 0) 42%, rgba(30, 110, 255, 0) 58%, rgba(30, 110, 255, 0.28)),
    url("assets/dr_bg.webp") center top / cover no-repeat, #071630; }
.wl-col { position: relative; flex: 1 1 auto; min-height: 0; width: 100%; max-width: 480px; margin: 0 auto; display: flex; flex-direction: column; align-items: center;
  padding: calc(var(--safe-t, 0px) + 8px) 16px calc(var(--safe-b, 0px) + 10px); }
.wl-logo { flex: none; position: relative; z-index: 2; width: min(70vw, 300px); aspect-ratio: 520 / 293; margin: 0; background: url("assets/home_logo.webp") center / contain no-repeat;
  filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.5)); animation: wlDrop 0.5s cubic-bezier(0.2, 1.3, 0.4, 1) both; }
/* the three of them, as big as the space between the logo and the panel allows (they tuck behind both) */
.wl-art { flex: 1 1 auto; position: relative; z-index: 1; width: calc(100% + 32px); min-height: 110px; max-height: 330px; margin: -14px -16px -34px;
  background: url("assets/welcome/rivals.webp") center 60% / contain no-repeat; filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.55)); animation: wlRise 0.6s 0.08s cubic-bezier(0.2, 1.2, 0.4, 1) both; }
/* the online pack's navy panel with the glowing cyan rim */
.wl-panel { flex: none; position: relative; z-index: 2; width: 100%; display: flex; flex-direction: column; align-items: stretch; gap: 10px; padding: 16px 14px 14px; border-radius: 18px;
  background: linear-gradient(180deg, rgba(13, 37, 76, 0.97), rgba(8, 26, 56, 0.98)); border: 2.5px solid #19d6f0;
  box-shadow: 0 0 0 1.5px #051226, 0 0 12px rgba(25, 214, 240, 0.5), inset 0 0 10px rgba(25, 214, 240, 0.18), 0 12px 26px rgba(0, 0, 0, 0.45); animation: wlRise 0.5s 0.14s ease-out both; }
/* the pack's lettering: white to ice blue, a dark rim round each letter */
.wl-h { margin: 0; text-align: center; font: 800 italic 30px/1.05 var(--font-display); text-transform: uppercase; padding: 0 4px;
  background: linear-gradient(180deg, #ffffff 0%, #ffffff 45%, #c7dcf7 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(1.5px 0 0 #06162e) drop-shadow(-1.5px 0 0 #06162e) drop-shadow(0 1.5px 0 #06162e) drop-shadow(0 -1.5px 0 #06162e) drop-shadow(0 2.5px 0 #1d56a6); }
.wl-p { margin: -2px 4px 2px; text-align: center; font: 600 14.5px/1.4 var(--font-ui); color: #d8eaff; }
/* the gold plate (its ends kept, its middle stretched), as account.js's */
.wl .wl-gold { --h: 60px; position: relative; display: grid; place-items: center; width: 100%; height: var(--h); border-style: solid; border-color: transparent;
  border-width: 0 calc(var(--h) * 1.04) 0 calc(var(--h) * 1.09); border-image: url("assets/pro/plate_gold.webp") 0 190 0 200 fill / 0 calc(var(--h) * 1.04) 0 calc(var(--h) * 1.09) stretch; }
.wl-gold b { white-space: nowrap; font: 800 28px/1 var(--font-display); text-transform: uppercase; color: #0b1a33; }
.wl .wl-navy { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 54px; padding: 8px 16px; border-radius: 14px; color: #fff;
  background: linear-gradient(180deg, #123468, #0a2147); border: 2.5px solid #2fb8ff; box-shadow: 0 0 0 1.5px #04101f, 0 0 8px rgba(25, 180, 255, 0.4), inset 0 1.5px 0 rgba(255, 255, 255, 0.16); }
.wl-navy span { font: 600 14px/1.2 var(--font-ui); color: #b8d4f5; }
.wl-navy b { font: 800 22px/1 var(--font-display); text-transform: uppercase; letter-spacing: 0.04em; color: #fff; }
/* Play as guest: smaller, under the panel */
.wl .wl-guest { flex: none; position: relative; z-index: 2; min-height: 52px; margin-top: 8px; padding: 6px 22px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border-radius: 14px; text-align: center; }
.wl-guest b { font: 800 19px/1 var(--font-display); text-transform: uppercase; letter-spacing: 0.06em; color: #fff; text-shadow: 0 2px 0 #06162e, 0 0 10px rgba(0, 0, 0, 0.6); }
.wl-guest b i { font-style: normal; color: #ffd23a; margin-left: 2px; }
.wl-guest small { font: 600 12.5px/1.2 var(--font-ui); color: #a9c4e8; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8); }
.wl .wl-gold:active, .wl .wl-navy:active, .wl .wl-guest:active { transform: scale(0.97); filter: brightness(1.1); }
@media (hover: hover) { .wl .wl-gold:hover, .wl .wl-navy:hover { filter: brightness(1.08); } .wl .wl-guest:hover b { color: #ffe08a; } }
/* short phones: a smaller logo, the panel's words go first */
@media (max-height: 700px) {
  .wl-logo { width: min(56vw, 230px); }
  .wl-art { min-height: 90px; margin-bottom: -26px; }
  .wl-panel { gap: 8px; padding: 12px 12px 12px; }
  .wl-h { font-size: 26px; }
  .wl-p { font-size: 13.5px; }
}
@media (max-height: 600px) { .wl-p { display: none; } .wl-art { min-height: 60px; } }

/* ============================================================ computer: the landing pack's hero */
.wl-dt { display: none; }
html.dt-on .wl-ph { display: none; }
html.dt-on .wl-dt { display: block; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(6, 20, 38, 0.9) 4%, rgba(7, 23, 45, 0.33) 62%, rgba(9, 32, 74, 0.4)), url("assets/dt/stadium.webp") center / cover no-repeat, #07172d; }
html.dt-on .wl-dt::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(2, 11, 25, 0) 70%, rgba(2, 11, 25, 0.55)); }
.wl-ds { position: absolute; left: 0; top: 0; z-index: 1; width: 1920px; height: 1080px; transform-origin: 0 0; color: #edfaff; font: 24px var(--dt-body, "Barlow Condensed", sans-serif); }
.wl-dlogo { position: absolute; left: 95px; top: 101px; width: 320px; height: 216px; background: url("assets/dt/logo.webp") left center / contain no-repeat; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.45)); }
.wl-deye { position: absolute; left: 95px; top: 322px; font: 700 18px/22px var(--dt-body, sans-serif); letter-spacing: 2px; color: #76e6f6; white-space: nowrap; }
.wl-dh { position: absolute; left: 95px; top: 358px; margin: 0; font: 400 108px/1.03 var(--dt-sport, sans-serif); color: #edfaff; text-shadow: 0 3px #020c1b; white-space: nowrap; }
.wl-dh em { font-style: inherit; color: #f7c948; }
.wl-dp { position: absolute; left: 95px; top: 708px; width: 760px; margin: 0; font: 26px/1.45 var(--dt-body, sans-serif); color: #c3d6e8; }
.wl-dacts { position: absolute; left: 95px; top: 809px; display: flex; gap: 24px; }
/* the landing's gold and cyan buttons */
.wl .wl-db { height: 87px; display: inline-flex; align-items: center; justify-content: center; gap: 18px; padding: 0 38px; border-radius: 14px; border: 2px solid #ffecab; white-space: nowrap;
  font: 43px/1 var(--dt-sport, sans-serif); color: #07172d; background: linear-gradient(#fff1a5, #f7c948 55%, #df9a17); box-shadow: 0 6px #8c5e10, inset 0 2px #fffbd5;
  transition: transform 0.15s, box-shadow 0.15s, filter 0.15s; }
.wl .wl-db.cyan { min-width: 230px; background: linear-gradient(#86f6ff, #19cbe4 55%, #079bc2); border-color: #c0faff; box-shadow: 0 6px #005474, inset 0 2px #e5ffff; }
.wl-db svg { width: 28px; height: 28px; flex: none; }
.wl .wl-db:hover { transform: translateY(-3px); filter: brightness(1.08); box-shadow: 0 8px #8c5e10, 0 0 30px rgba(247, 201, 72, 0.33), inset 0 2px #fffbd5; }
.wl .wl-db.cyan:hover { box-shadow: 0 8px #005474, 0 0 30px rgba(25, 214, 240, 0.33), inset 0 2px #e5ffff; }
.wl .wl-db:active { transform: translateY(3px); box-shadow: 0 2px #8c5e10, inset 0 2px #fffbd5; }
.wl .wl-db.cyan:active { box-shadow: 0 2px #005474, inset 0 2px #e5ffff; }
/* Play as guest: the landing's store badge */
.wl .wl-dguest { position: absolute; left: 95px; top: 925px; height: 69px; display: flex; align-items: center; gap: 14px; padding: 10px 22px 10px 16px; border-radius: 10px;
  border: 1px solid #718a9f; background: rgba(7, 21, 38, 0.87); color: #c5d2dd; font: 24px/1 var(--dt-body, sans-serif); transition: transform 0.15s, border-color 0.15s, color 0.15s; }
.wl-dguest svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wl-dguest span { display: flex; flex-direction: column; gap: 6px; line-height: 1.05; }
.wl-dguest small { font: 13px/1 var(--dt-body, sans-serif); letter-spacing: 2px; color: #8aa6bd; }
.wl .wl-dguest:hover { transform: translateY(-2px); border-color: #b9d3e6; color: #fff; }
.wl-dart { position: absolute; left: 855px; top: 150px; width: 1020px; height: 840px; background: url("assets/welcome/rivals.webp") center / contain no-repeat;
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.45)); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%); mask-image: linear-gradient(90deg, transparent, #000 8%); }
.wl-dcue { position: absolute; left: 0; right: 0; top: 1012px; text-align: center; font: 19px/1 var(--dt-sport, sans-serif); letter-spacing: 3px; color: #a9c6db; }
/* the account's form over it: a card in the middle of the window (desktop.css puts it in the game's column) */
html.dt-on.wl-open .pra { left: calc(50vw - var(--dt-cw) / 2); top: calc(var(--dt-oy) + var(--dt-s) * 90); height: calc(var(--dt-s) * 900); box-shadow: 0 0 0 2px rgba(25, 214, 240, 0.47), 0 20px 50px rgba(0, 0, 0, 0.6); }

/* ============================================================ the busy card (getting / loading a save) */
.wl-busy { position: fixed; inset: 0; z-index: 8990; display: grid; place-items: center; padding: 20px; background: rgba(3, 8, 20, 0.6); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); animation: wlIn 0.18s ease-out both; }
.wl-busy.out { animation: wlOut 0.18s ease-in both; }
.wl-busyc { display: flex; align-items: center; gap: 14px; max-width: min(420px, 100%); padding: 16px 22px 16px 16px; border-radius: 18px; color: #fff;
  background: linear-gradient(180deg, rgba(16, 44, 90, 0.98), rgba(8, 26, 56, 0.98)); border: 2.5px solid #19d6f0; box-shadow: 0 0 0 1.5px #051226, 0 0 16px rgba(25, 214, 240, 0.55), 0 14px 30px rgba(0, 0, 0, 0.55); }
.wl-busyc img { width: 44px; height: 44px; flex: none; animation: wlSpin 1.4s linear infinite; }
.wl-busyc b { font: 800 italic 22px/1.15 var(--font-display); text-transform: uppercase; letter-spacing: 0.02em; }

/* ============================================================ which club? (inside the game's FSUI.ask card) */
.fs-ask .fa-card.wl-pickc { width: min(420px, 100%); padding: 24px 14px 16px; }
.fa-card.wl-pickc .fa-btns { display: none; }
.fa-card.wl-pickc p { margin-bottom: 12px; }
.wl-cmp { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wl-cmp .wl-side { min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 8px 10px; border-radius: 16px; text-align: center; color: #fff;
  background: linear-gradient(180deg, #16325f, #0a1d3e); border: 2px solid rgba(143, 195, 255, 0.5); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 4px 0 #05080f; transition: transform 0.12s, border-color 0.12s; }
.wl-cmp .wl-side.cloud { border-color: rgba(25, 214, 240, 0.8); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 4px 0 #05080f, 0 0 10px rgba(25, 214, 240, 0.35); }
.wl-cmp .wl-side:active { transform: translateY(3px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 1px 0 #05080f; }
@media (hover: hover) { .wl-cmp .wl-side:hover { border-color: #ffd23a; } }
.wl-sk { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 800 11px/1.1 var(--font-display); letter-spacing: 0.14em; text-transform: uppercase; color: #8fc3ff; }
.wl-side.cloud .wl-sk { color: #5ee6ff; }
.wl-cr { width: 60px; height: 60px; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 50% 40%, #1d4fa8, #0b2552 75%); box-shadow: 0 0 0 2px #2a9fe0, 0 0 0 3.5px #04101f; }
.wl-cr svg { width: 80%; height: 80%; }
.wl-club { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 800 italic 19px/1.1 var(--font-display); text-transform: uppercase; padding: 0 2px; }
.wl-nums { display: flex; gap: 10px; font: 800 17px/1 var(--font-display); color: #ffe08a; }
.wl-nums > span { display: inline-flex; align-items: center; gap: 4px; }
.wl-nums svg { width: 17px; height: 17px; }
.wl-div { font: 700 13px/1.2 var(--font-ui); color: #d8eaff; }
.wl-when { min-height: 2.6em; font: 600 11.5px/1.3 var(--font-ui); color: #9fbbe0; }
.wl-pickb { width: 100%; margin-top: 2px; padding: 11px 4px; border-radius: 12px; font: 800 15px/1 var(--font-display); letter-spacing: 0.04em; text-transform: uppercase; color: #2a1700;
  background: linear-gradient(180deg, #fff0a0 0%, #ffd84a 40%, #f5b316 100%); box-shadow: inset 0 0 0 1.5px #fff6c4, 0 0 0 2px #3a2400, 0 3px 0 2px #7a4a00; }

/* ============================================================ the account screen's save panel (account.js, signed in) */
.wl-sync { gap: 0; padding: 4px 14px; }
.wl-syrow { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 8px 0; }
.wl-syrow + .wl-syrow { border-top: 1.5px solid rgba(60, 120, 190, 0.4); }
.wl-syic { flex: none; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; color: #4dff8f; background: rgba(57, 217, 138, 0.12); border: 1.5px solid rgba(57, 217, 138, 0.45); }
.wl-syrow.wait .wl-syic { color: #ffd23a; background: rgba(255, 210, 58, 0.1); border-color: rgba(255, 210, 58, 0.45); }
.wl-syrow.busy .wl-syic, .wl-syrow.spare .wl-syic { color: #5ee6ff; background: rgba(25, 214, 240, 0.1); border-color: rgba(25, 214, 240, 0.35); }
.wl-syic svg { width: 26px; height: 26px; }
.wl-syspin { width: 30px; height: 30px; animation: wlSpin 1.4s linear infinite; }
.wl-syrow > span { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.wl-syrow b { font: 800 18px/1.1 var(--font-display); text-transform: uppercase; letter-spacing: 0.03em; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wl-syrow small { font: 600 13px/1.3 var(--font-ui); color: #b8d4f5; }
.wl-syrow.ok b { color: #e9fff1; }
.pra .wl-syrow .pra-sm { min-width: 0; padding: 0 12px; font-size: 15px; }
.pra .wl-syrow .pra-sm:not(.gold) { color: #d8eaff; background: linear-gradient(180deg, #123468, #0a2147); box-shadow: 0 0 0 1.5px #2fb8ff, 0 0 0 3px #04101f; }

@keyframes wlIn { from { opacity: 0; } }
@keyframes wlOut { to { opacity: 0; } }
@keyframes wlDrop { from { transform: translateY(-26px) scale(0.92); opacity: 0; } }
@keyframes wlRise { from { transform: translateY(22px); opacity: 0; } }
@keyframes wlSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .wl, .wl *, .wl-busy, .wl-busyc img, .wl-syspin { animation: none !important; transition: none !important; } }
