/* Clash Esports: the "Get the app" entry points (all plain links to /download/).
   Each block below belongs to one placement and can be removed alone, with its markup.
   Words: both languages sit in the page (.al-en / .al-ar) and this file shows the one that matches <html lang>,
   so nothing here needs a script, and with scripts off the Arabic (the default language of the markup) shows. */
html[lang="en"] .al-ar, html:not([lang="en"]) .al-en { display: none; }

/* ---------- 1. home page: the pill in the top bar, before the language switch ---------- */
.app-pill {
  position: relative; margin-inline: auto 6px; flex: none;
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px;
  background: rgba(8, 8, 10, 0.72); color: var(--ink, #f3f3f1);
  border: 1px solid rgba(243, 243, 241, 0.34); border-radius: 99px;
  font-weight: 600; font-size: 0.875rem; line-height: 1; white-space: nowrap; text-decoration: none;
  transition: border-color 0.6s ease, background-color 0.6s ease;
}
.app-pill::before { content: ""; position: absolute; inset: -5px -2px; } /* a 44px-high place to tap */
.app-pill:focus-visible { outline: 3px solid var(--ink, #f3f3f1); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .app-pill:hover { border-color: var(--ink, #f3f3f1); background: rgba(8, 8, 10, 0.9); } }
@media (max-width: 380px) { .app-pill { padding: 0 10px; font-size: 0.8125rem; } }

/* ---------- 2. member portal home: the card under the balance cards ---------- */
.app-card {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 8px 16px;
  background: var(--bg); border: 1px solid var(--surface-2); border-inline-start: 4px solid var(--muted);
  padding: 14px 8px 14px 20px;
  transition: opacity 0.6s ease;
}
[dir="rtl"] .app-card { padding: 14px 20px 14px 8px; }
.app-card[hidden] { display: none; }
/* with scripts on, js/app-links.js shows it (unless the member closed it before); with scripts off it is simply there */
html.js .app-card:not(.is-on) { display: none; }
.app-card.is-on { animation: app-card-in 0.6s ease both; }
.app-card.is-leaving { opacity: 0; }
@keyframes app-card-in { from { opacity: 0; } to { opacity: 1; } }
.app-card-title { font-weight: 800; font-size: var(--step-body); line-height: 1.3; }
.app-card-line { margin-top: 2px; color: var(--muted); font-size: var(--step-small); line-height: 1.6; }
.app-card-go {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px;
  background: var(--ink); color: var(--bg); font-weight: 800; font-size: var(--step-small); white-space: nowrap; text-decoration: none;
  transition: background-color 0.6s ease;
}
@media (hover: hover) and (pointer: fine) { .app-card-go:hover { background: #ffffff; } }
.app-card-x {
  width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 0; cursor: pointer;
  color: var(--muted); font-size: 1.5rem; line-height: 1; transition: color 0.6s ease;
}
@media (hover: hover) and (pointer: fine) { .app-card-x:hover { color: var(--ink); } }
@media (max-width: 720px) {
  .app-card { grid-template-columns: minmax(0, 1fr) auto; align-items: start; padding-block: 12px 16px; }
  .app-card-x { grid-column: 2; grid-row: 1; margin-top: -6px; }
  .app-card-go { grid-column: 1 / -1; grid-row: 2; justify-self: start; margin-top: 4px; }
}

/* ---------- 3. login and signup: one quiet line under the form ---------- */
.app-line { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--surface-2); color: var(--muted); font-size: var(--step-small); line-height: 1.6; }
.app-line .link { color: var(--ink); }
.sg-links + .app-line { text-align: center; } /* the signup page centres its links */

/* 4 (footer link) and 5 (menu item) use the footer's and the menu's own styles: nothing to add here. */
