/* «حمّل تطبيق وش؟» download card (Nasser 2026-11-26; wesh-app docs/brand/download-card/README.md).
   One card for every «وش…» platform. Neutral surface, icon C's tile colours as accents, no inline styles.
   Dark mode: add `wesh-dl--dark` to the card, or let it follow `prefers-color-scheme` (see README). */
.wesh-dl {
  --dl-surface: #ffffff;
  --dl-line: #e3e6f0;
  --dl-ink: #13183a;
  --dl-muted: #5d6385;
  --dl-chip: #f4f6fb;
  --dl-cta: #0b1d51;
  --dl-on-cta: #ffffff;
  --dl-qr-ground: #ffffff;
  --t-quiz: #0891b2; --t-bus: #ff3b30; --t-jeo: #2d1b7f; --t-feud: #3b5bdb; --t-hex: #e5177a; --t-gold: #ffb800;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  max-width: 880px;
  margin-inline: auto;
  padding: 28px;
  border: 1px solid var(--dl-line);
  border-radius: 24px;
  background: var(--dl-surface);
  color: var(--dl-ink);
  font: inherit;
  position: relative;
  overflow: hidden;
}
.wesh-dl *, .wesh-dl *::before, .wesh-dl *::after { box-sizing: border-box; }
.wesh-dl--dark {
  --dl-surface: #151a33;
  --dl-line: #262c4f;
  --dl-ink: #eef0ff;
  --dl-muted: #a4aacd;
  --dl-chip: #1d2342;
  --dl-cta: #ffb800;
  --dl-on-cta: #0b1d51;
}
@media (prefers-color-scheme: dark) {
  .wesh-dl--auto {
    --dl-surface: #151a33; --dl-line: #262c4f; --dl-ink: #eef0ff; --dl-muted: #a4aacd; --dl-chip: #1d2342; --dl-cta: #ffb800; --dl-on-cta: #0b1d51;
  }
}
/* The tile strip along the top edge: the five games and the gold, icon C's language. */
.wesh-dl__strip { position: absolute; inset-inline: 0; top: 0; height: 6px; display: flex; }
.wesh-dl__strip i { flex: 1; }
.wesh-dl__strip i:nth-child(1) { background: var(--t-quiz); }
.wesh-dl__strip i:nth-child(2) { background: var(--t-bus); }
.wesh-dl__strip i:nth-child(3) { background: var(--t-gold); }
.wesh-dl__strip i:nth-child(4) { background: var(--t-feud); }
.wesh-dl__strip i:nth-child(5) { background: var(--t-hex); }
.wesh-dl__strip i:nth-child(6) { background: var(--t-jeo); }

.wesh-dl__head { display: flex; align-items: center; gap: 16px; }
.wesh-dl__icon { width: 64px; height: 64px; flex: none; border-radius: 16px; box-shadow: 0 0 0 1px var(--dl-line), 0 6px 16px rgba(11, 29, 81, .12); }
.wesh-dl__title { margin: 0; font-size: 24px; font-weight: 800; line-height: 1.25; }
.wesh-dl__lead { margin: 4px 0 0; color: var(--dl-muted); font-size: 15px; line-height: 1.5; }

.wesh-dl__ways { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.wesh-dl__way { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 16px; background: var(--dl-chip); }
.wesh-dl__way-ico { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: #fff; }
.wesh-dl__way-ico svg { width: 26px; height: 26px; }
/* Deeper tile tones under the white glyphs: contrast >= 4.5:1 in both themes
   (#0e7490 5.4, #c8156b 5.6, #3b5bdb 5.7 against #fff). */
.wesh-dl__way--player .wesh-dl__way-ico { background: #0e7490; }
.wesh-dl__way--host .wesh-dl__way-ico { background: #c8156b; }
.wesh-dl__way--screen .wesh-dl__way-ico { background: var(--t-feud); }
.wesh-dl__way > div { display: flex; flex-direction: column; gap: 2px; }
.wesh-dl__way b { font-size: 16px; font-weight: 800; }
.wesh-dl__way > div > span { color: var(--dl-muted); font-size: 14px; line-height: 1.45; }

.wesh-dl__actions { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.wesh-dl__cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 16px;
  background: var(--dl-cta); color: var(--dl-on-cta);
  font-size: 17px; font-weight: 800; text-decoration: none;
  box-shadow: 0 4px 0 rgba(11, 29, 81, .22);
}
.wesh-dl__cta svg { width: 20px; height: 20px; }
.wesh-dl__cta:focus-visible { outline: 3px solid var(--t-gold); outline-offset: 3px; }
.wesh-dl__note { display: inline-flex; align-items: center; gap: 6px; color: var(--dl-muted); font-size: 13px; }
.wesh-dl__note svg { width: 16px; height: 16px; }
.wesh-dl__notes { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
/* Secondary on purpose (Nasser 2026-11-26): smaller and fainter than the Android line, not a link. */
.wesh-dl__soon { color: var(--dl-muted); opacity: .8; font-size: 12px; padding-inline-start: 22px; }

.wesh-dl__qr { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px; border-radius: 20px; background: var(--dl-chip); }
.wesh-dl__qr img { width: 168px; height: 168px; border-radius: 12px; background: var(--dl-qr-ground); padding: 6px; }
.wesh-dl__qr small { color: var(--dl-muted); font-size: 13px; text-align: center; max-width: 168px; }

/* Phones: stacked, no QR (you can't scan your own screen), the button full width. */
@media (max-width: 640px) {
  .wesh-dl { grid-template-columns: 1fr; padding: 22px 18px; gap: 0; }
  .wesh-dl__ways { grid-template-columns: 1fr; }
  .wesh-dl__way { flex-direction: row; align-items: center; gap: 12px; }
  .wesh-dl__way > div { display: flex; flex-direction: column; gap: 2px; }
  .wesh-dl__qr { display: none; }
  .wesh-dl__cta { width: 100%; }
  .wesh-dl__actions { justify-content: center; }
  .wesh-dl__notes { align-items: center; }
  .wesh-dl__soon { padding-inline-start: 0; }
  .wesh-dl__title { font-size: 21px; }
}
