/* /download/ -- the download page.
   Hero with the big button and the cover art, an at-a-glance strip that sits on
   the hero's edge, then a sticky "On this page" list beside the sections. */

/* ---------------------------------------------------------------- hero */

.dl-hero { padding-bottom: clamp(84px, 10vw, 120px); }
.dl-hero__grid { display: grid; gap: clamp(36px, 5vw, 64px); align-items: center; }
@media (min-width: 900px) {
  .dl-hero__grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
}
.dl-hero__main { min-width: 0; }
.dl-hero__cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 30px; }
.dl-hero__cta .dl-btn { box-shadow: 0 14px 40px -12px rgba(64, 181, 227, .75), inset 0 1px 0 rgba(255, 255, 255, .5); }
@media (max-width: 560px) {
  .dl-hero__cta .btn { flex: 1 1 100%; }
}
.dl-hero__meta { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; }
.dl-hero__auto { display: inline-flex; align-items: flex-start; gap: .5em; color: var(--ink-soft); font-size: .95rem; }
.dl-hero__auto .icon { color: var(--green); margin-top: .22em; }
.dl-hero__where { margin: 12px 0 0; color: var(--muted); font-size: .92rem; }

.dl-os-note {
  display: flex; gap: 12px; max-width: 580px; margin-top: 22px; padding: 14px 16px;
  border-radius: var(--radius); background: rgba(64, 181, 227, .07); border: 1px solid rgba(64, 181, 227, .3);
  color: var(--ink-soft); font-size: .95rem;
}
.dl-os-note[hidden] { display: none; }
.dl-os-note > .icon { width: 20px; height: 20px; margin-top: 2px; color: var(--gold); }
.dl-os-note p { margin: 0; }

.dl-hero__art { position: relative; max-width: 470px; width: 100%; margin-inline: auto; }
.dl-hero__art::before { /* floodlight glow behind the cover */
  content: ""; position: absolute; inset: 6% -10% -6% -10%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(64, 181, 227, .32), rgba(64, 181, 227, .08) 60%, transparent 75%);
}
.dl-hero__frame {
  border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-deep);
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: var(--shadow-lg), 0 0 0 8px rgba(255, 255, 255, .025);
  transform: rotate(1.6deg);
}
.dl-hero__frame img { width: 100%; height: auto; }
@media (max-width: 899px) {
  .dl-hero__art { max-width: 300px; }
  .dl-hero__frame { transform: none; }
}

/* ---------------------------------------------------------------- at a glance (sits on the hero's edge) */

.dl-glance { position: relative; z-index: 1; margin-top: -48px; }
.dl-stats { box-shadow: var(--shadow-lg); }
.dl-stats .stat { background: linear-gradient(180deg, var(--surface-2), var(--surface)); padding: 20px 16px; }
.dl-stats .stat__num { font-size: clamp(1.6rem, 3vw, 2.25rem); }

/* ---------------------------------------------------------------- layout + table of contents */

.dl-layout { display: grid; gap: 36px; padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(40px, 6vw, 72px); }
@media (min-width: 1060px) {
  .dl-layout { grid-template-columns: 200px minmax(0, 1fr); gap: 64px; align-items: start; }
}
.dl-body { min-width: 0; }

.dl-toc__title { margin: 0 0 12px; font: 700 .74rem/1 var(--label); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.dl-toc__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.dl-toc__list a {
  display: inline-block; padding: .5em .9em; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink-soft); text-decoration: none;
  font: 700 .86rem/1.1 var(--label); letter-spacing: .02em;
}
.dl-toc__list a:hover { color: var(--ink); border-color: #4A525E; }
.dl-toc__dl { display: none; }

@media (min-width: 1060px) {
  .dl-toc { position: sticky; top: calc(var(--header-h) + 28px); }
  .dl-toc__list { flex-direction: column; flex-wrap: nowrap; gap: 0; border-left: 2px solid var(--line-soft); }
  .dl-toc__list a {
    display: block; margin-left: -2px; padding: 8px 0 8px 16px; border: 0; border-left: 2px solid transparent;
    border-radius: 0; background: none; font-size: .95rem;
  }
  .dl-toc__list a:hover { border-left-color: var(--line); }
  .dl-toc__list a[aria-current="true"] { color: var(--sky); border-left-color: var(--sky); }
  .dl-toc__dl { display: block; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line-soft); }
  .dl-toc__dl p { margin: 10px 0 0; font-size: .82rem; color: var(--muted); text-align: center; }
}

/* ---------------------------------------------------------------- sections */

.dl-section { padding-block: clamp(36px, 4vw, 48px); border-top: 1px solid var(--line-soft); }
.dl-section:first-child { padding-top: 0; border-top: 0; }
.dl-section:last-child { padding-bottom: 0; }
.dl-section__head { max-width: 700px; margin-bottom: clamp(22px, 3vw, 32px); }
.dl-section__head h2 { margin-bottom: .3em; }
.dl-section__head h2 + p { margin: 0; color: var(--ink-soft); font-size: 1.07rem; }

.dl-after, .dl-note { margin: 22px 0 0; color: var(--muted); font-size: .97rem; max-width: 72ch; }
.dl-after a, .dl-note a { font-weight: 600; }

/* a word on a button or label in the game or in Windows */
.ui {
  display: inline-block; padding: .02em .45em; border-radius: 6px;
  background: var(--surface-3); border: 1px solid #3C434E; color: var(--ink);
  font: 700 .86em/1.45 var(--label); letter-spacing: .02em;
}

/* install steps */
.dl-steps > li { background: linear-gradient(180deg, var(--surface-2), var(--surface)); }
.dl-steps code { white-space: nowrap; }
.dl-steps p.dl-steps__aside { font-size: .92rem; color: var(--muted); }
@media (max-width: 560px) {
  .dl-steps > li { padding: 16px 16px 16px 62px; }
  .dl-steps > li::before { left: 14px; top: 15px; width: 34px; height: 34px; font-size: 1.1rem; }
  .dl-steps h3 { margin-top: 3px; }
}
.nowrap { white-space: nowrap; }

/* ---------------------------------------------------------------- warnings */

.dl-cards { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .dl-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.dl-card { padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.dl-card h3 { font-size: 1.15rem; margin: 14px 0 .45em; }
.dl-card p { margin: 0; color: var(--ink-soft); font-size: .97rem; }
.dl-card__icon {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  color: var(--sky); background: rgba(64, 181, 227, .1); border: 1px solid rgba(64, 181, 227, .25);
}
.dl-card__icon .icon { width: 22px; height: 22px; }
.dl-card__icon--gold { color: var(--gold); background: rgba(64, 181, 227, .1); border-color: rgba(64, 181, 227, .28); }
.dl-card__icon--green { color: var(--green); background: rgba(64, 181, 227, .1); border-color: rgba(64, 181, 227, .28); }

.dl-trust {
  margin-top: 18px; padding: clamp(20px, 3vw, 28px);
  border-radius: var(--radius-lg); border: 1px solid rgba(64, 181, 227, .3);
  background:
    radial-gradient(70% 120% at 0% 0%, rgba(64, 181, 227, .1), transparent 60%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
}
.dl-trust__head { display: flex; align-items: center; gap: 12px; }
.dl-trust__head h3 { margin: 0; font-size: 1.3rem; }
.dl-trust__icon { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none; color: var(--bg); background: var(--green); }
.dl-trust__icon .icon { width: 20px; height: 20px; }
.dl-trust__list { margin-top: 18px; }
@media (min-width: 760px) { .dl-trust__list { grid-template-columns: 1fr 1fr; gap: 14px 28px; } }
.dl-trust__note { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--line-soft); color: var(--muted); font-size: .92rem; }

/* ---------------------------------------------------------------- file facts */

.dl-facts { background: var(--surface); }
.dl-facts dt { display: flex; align-items: center; }
.dl-facts dd code { font-size: .88em; }

/* ---------------------------------------------------------------- requirements */

.dl-reqs { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.dl-req {
  display: grid; grid-template-columns: 44px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 14px; row-gap: 3px;
  padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.dl-req__icon {
  grid-row: 1 / span 2; align-self: center; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  color: var(--sky); background: rgba(64, 181, 227, .1); border: 1px solid rgba(64, 181, 227, .22);
}
.dl-req__icon .icon { width: 22px; height: 22px; }
.dl-req__label { align-self: end; font: 700 .72rem/1.2 var(--label); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.dl-req__value { align-self: start; color: var(--ink); font-weight: 600; line-height: 1.35; }
.dl-req__value small { display: block; margin-top: 2px; font-size: .86rem; font-weight: 400; color: var(--muted); }
@media (max-width: 600px) {
  .dl-reqs { grid-template-columns: 1fr 1fr; gap: 10px; }
  .dl-req { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 14px; }
  .dl-req > * { align-self: flex-start; }
  .dl-req__icon { width: 36px; height: 36px; border-radius: 10px; margin-bottom: 8px; }
  .dl-req__icon .icon { width: 19px; height: 19px; }
  .dl-req__value { font-size: .95rem; }
}

.dl-vc { margin: 0; }
.dl-vc p + p { margin-top: 12px; }
.dl-vc__btn { white-space: normal; text-align: left; }

/* ---------------------------------------------------------------- updates */

.dl-flow { list-style: none; margin: 0 0 30px; padding: 0; display: grid; gap: 10px; }
.dl-flow__step {
  position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 17px 18px 19px;
  border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(180deg, #171C14, var(--bg-deep));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}
.dl-flow__n {
  width: 28px; height: 28px; flex: none; border-radius: 50%; display: grid; place-items: center;
  font: 400 .95rem/1 var(--display); color: var(--sky-ink); background: var(--sky);
}
.dl-flow__text { font: 400 1.08rem/1.25 var(--round); color: var(--ink); }
.dl-flow__bar { position: absolute; left: 18px; right: 18px; bottom: 9px; height: 4px; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.dl-flow__bar span { display: block; width: 62%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--sky-deep), var(--sky)); }
@media (min-width: 760px) {
  .dl-flow { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
  .dl-flow__step + .dl-flow__step::before { /* arrow between the stages */
    content: ""; position: absolute; left: -21px; top: 50%; width: 10px; height: 10px; margin-top: -5px;
    border-top: 2.5px solid var(--faint); border-right: 2.5px solid var(--faint); transform: rotate(45deg);
  }
}

.dl-split { display: grid; gap: 22px; align-items: start; }
@media (min-width: 820px) { .dl-split { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 36px; } }
.dl-split .checks { margin: 0; }
.dl-update-box { padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.dl-update-box h3 { font-size: 1.2rem; margin: 0 0 .4em; }
.dl-update-box p { color: var(--ink-soft); font-size: .97rem; margin-bottom: 16px; }

/* ---------------------------------------------------------------- uninstall */

.dl-folders { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.dl-folder { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.dl-folder > div { min-width: 0; }
.dl-folder__n {
  width: 34px; height: 34px; flex: none; border-radius: 10px; display: grid; place-items: center; margin-top: 1px;
  font: 400 1.05rem/1 var(--display); color: var(--ink); background: var(--surface-3); border: 1px solid #3C434E;
}
.dl-folder h3 { font: 700 1rem/1.4 var(--body); margin: 0 0 .25em; color: var(--ink); }
.dl-folder h3 code { font-size: .95em; color: var(--ink); }
.dl-folder p { margin: 0; color: var(--ink-soft); font-size: .96rem; }

/* ---------------------------------------------------------------- other platforms */

.dl-platforms { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.dl-platform { display: flex; flex-direction: column; gap: 14px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.dl-platform h3 { font-size: 1.2rem; margin: 0 0 .5em; }
.dl-platform p { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.dl-platform p + p { margin-top: 10px; }
.dl-platform .btn { white-space: normal; text-align: left; max-width: 100%; }
.dl-platform--live { border-color: rgba(64, 181, 227, .4); background: linear-gradient(180deg, rgba(64, 181, 227, .08), var(--surface) 70%); }
.dl-platform__icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  color: var(--ink-soft); background: var(--surface-2); border: 1px solid var(--line);
}
.dl-platform__icon .icon { width: 22px; height: 22px; }
.dl-platform--live .dl-platform__icon { color: var(--green); border-color: rgba(64, 181, 227, .35); }
.dl-platform__icon--text { font: 700 .6rem/1.15 var(--label); letter-spacing: .04em; text-transform: uppercase; text-align: center; }
@media (max-width: 600px) {
  .dl-platform { flex-direction: row; align-items: flex-start; gap: 16px; padding: 18px; }
  .dl-platform__icon { flex: none; }
  .dl-platform h3 { margin-bottom: .4em; }
}

/* ---------------------------------------------------------------- troubleshooting */

.dl-faq summary { font-size: 1.05rem; }

/* ---------------------------------------------------------------- help band */

.dl-help__inner { text-align: center; padding-block: clamp(52px, 7vw, 84px); }
.dl-help__text { max-width: 600px; margin: 0 auto 26px; }
.dl-help__ctas { justify-content: center; }
.dl-help__text h2 { margin-bottom: .3em; text-shadow: 0 4px 24px rgba(0, 0, 0, .55); }
.dl-help__text p { margin: 0; color: var(--ink); text-shadow: 0 2px 12px rgba(0, 0, 0, .8); }
@media (max-width: 560px) {
  .dl-help__ctas { width: 100%; }
  .dl-help__ctas .btn { flex: 1 1 100%; }
}
