/* Reutiliza os cards, ícones e cores de styles.css. */
.downloads-showcase { padding: 152px 0 100px; }
.mt-dl [hidden] { display: none !important; }
.downloads-page .section-heading { margin-bottom: 36px; }
.downloads-page .section-heading h1 { margin: 0; font-size: clamp(3rem, 5.8vw, 4.6rem); line-height: 1.03; letter-spacing: -.055em; }
.downloads-page .section-heading h1 em { color: var(--cyan); font-style: normal; }
.mt-dl-tools { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding: 16px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); }
.mt-dl-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.mt-dl-filter { min-height: 44px; padding: 9px 16px; border: 1px solid transparent; border-radius: 13px; color: var(--muted); background: transparent; font-size: .85rem; font-weight: 700; cursor: pointer; transition: background .2s, color .2s; }
.mt-dl-filter:hover { color: var(--text); background: var(--surface-hover); }
.mt-dl-filter[aria-pressed="true"] { color: #fff; background: linear-gradient(135deg, #324cdd, #784ce6); }
.mt-dl-search { display: flex; align-items: center; position: relative; flex: 0 1 330px; min-width: 0; }
.mt-dl-search svg { position: absolute; left: 15px; width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 1.8; pointer-events: none; }
.mt-dl-search input { width: 100%; min-height: 46px; padding: 11px 14px 11px 43px; border: 1px solid var(--line); border-radius: 13px; font: inherit; font-size: .84rem; background: var(--bg); color: var(--text); }
.mt-dl-search input::placeholder { color: var(--muted); }
.mt-dl-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.mt-dl-results { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 16px 2px 24px; }
.mt-dl-count { margin: 0; color: var(--muted); font-size: .8rem; }
.mt-dl-only { display: inline-flex; align-items: center; gap: 9px; min-height: 32px; font-size: .8rem; color: var(--muted); cursor: pointer; }
.mt-dl-only input { width: 16px; height: 16px; accent-color: #7650ed; }
.downloads-page .app-project-card { min-height: 730px; }
.mt-dl-panel { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 18px; }
.mt-dl-platform { margin: 0 0 6px !important; font-size: .74rem !important; color: var(--muted); }
.mt-dl-state { display: flex; align-items: center; gap: 7px; margin: 0 0 13px !important; color: var(--muted); font-size: .73rem !important; font-weight: 600; line-height: 1.5 !important; }
.mt-dl-state::before { content: ""; width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: currentColor; }
[data-download-id][data-package-ready="true"] .mt-dl-state { color: #70e9b2; }
html[data-theme="light"] [data-download-id][data-package-ready="true"] .mt-dl-state { color: #147344; }
.mt-dl-actions { display: grid; gap: 10px; }
.mt-dl-action { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 47px; padding: 11px 15px; border: 1px solid var(--line); border-radius: 13px; font: inherit; font-size: .82rem; font-weight: 750; line-height: 1.35; color: var(--text); background: var(--surface-hover); text-align: left; }
a.mt-dl-action { transition: border-color .2s, background .2s; }
a.mt-dl-action:hover { border-color: var(--cyan); background: var(--surface); }
.mt-dl-action.mt-dl-primary { background: linear-gradient(135deg,#3150e9,#7752ed); border-color: transparent; color: #fff; }
.mt-dl-action.mt-dl-primary:hover { background: linear-gradient(135deg,#3d5bf5,#895bf6); border-color: transparent; }
.mt-dl-action:disabled { cursor: not-allowed; color: var(--muted); background: var(--bg-soft); border-style: dashed; }
.mt-dl-action svg { width: 18px; height: 18px; flex: 0 0 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mt-dl-package { display: grid; gap: 8px; }
.mt-dl-package-info { margin: 0 !important; color: var(--muted); font-size: .72rem !important; line-height: 1.7 !important; overflow-wrap: anywhere; }
.mt-dl-instructions { display: inline-flex; align-items: center; min-height: 32px; color: var(--muted); font-size: .73rem; text-decoration: underline; text-underline-offset: 4px; }
.mt-dl-instructions:hover { color: var(--cyan); }
.mt-dl-instructions { margin-top: 5px; }
.mt-dl-empty { padding: 42px 24px; border: 1px dashed var(--line); border-radius: 24px; text-align: center; color: var(--muted); }
.mt-dl-empty h3 { margin-top: 0; color: var(--text); }
.mt-dl-empty button { min-height: 44px; padding: 10px 18px; border: 1px solid var(--line); border-radius: 12px; color: var(--text); background: var(--surface); cursor: pointer; }
.mt-dl-note { color: var(--muted); font-size: .8rem; margin: 22px 0 0; }
.mt-dl-help { margin-top: 50px; scroll-margin-top: 100px; border-top: 1px solid var(--line); padding-top: 35px; }
.mt-dl-help-head { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 20px; }
.mt-dl-help h2 { margin: 0; font-size: 1.45rem; letter-spacing: -.03em; }
.mt-dl-help-head > a { font-size: .8rem; color: var(--cyan); text-decoration: underline; text-underline-offset: 4px; padding: 8px 0; }
.mt-dl-help-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mt-dl-help details { padding: 20px; background: var(--surface-solid); border: 1px solid var(--line); border-radius: 20px; }
.mt-dl-help summary { cursor: pointer; font-size: .87rem; font-weight: 700; padding: 5px 0; }
.mt-dl-help summary::marker { color: var(--cyan); }
.mt-dl-help details p, .mt-dl-help details li { font-size: .82rem; color: var(--muted); line-height: 1.8; }
.mt-dl-help ol { padding-left: 22px; }
.mt-dl-help li + li { margin-top: 7px; }
.mt-dl-help details a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.downloads-page .desktop-nav a[aria-current="page"] { color: var(--cyan); }
@media (max-width: 760px) {
  .downloads-showcase { padding-top: 124px; }
  .mt-dl-search { flex-basis: 100%; }
  .mt-dl-tools { padding: 14px; }
  .mt-dl-filter { padding-inline: 11px; }
  .mt-dl-help-grid { grid-template-columns: 1fr; }
  .downloads-page .app-project-card { min-height: 670px; }
}


/* Official store artwork supplied by Master Tech */
.official-store-badges-downloads {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 10px;
  margin-top: 14px;
}
.official-store-badges-downloads .official-store-badge {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(164px, 100%);
  height: 46px;
  border-radius: 10px;
  overflow: hidden;
  line-height: 0;
  transition: transform .2s ease, filter .2s ease;
}
.official-store-badges-downloads .official-store-badge img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  flex: 0 0 auto;
  object-fit: contain;
}
.official-store-badges-downloads a.official-store-badge:hover,
.official-store-badges-downloads a.official-store-badge:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.08);
  outline: none;
}
.official-store-badges-downloads .store-badge-disabled {
  opacity: 1;
  cursor: default;
}

/* Store badges for the Dogfighter desktop game. Links can be enabled when official store URLs are available. */
.dogfighter-store-badges {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  justify-items: stretch;
  margin-top: 14px;
}
.dogfighter-store-badges .dogfighter-store-badge {
  box-sizing: border-box;
  justify-content: flex-start;
  gap: 9px;
  padding: 6px 12px;
  width: 100%;
  min-width: 0;
  background: #080a14;
}
.dogfighter-store-badges .dogfighter-store-badge img {
  width: 27px;
  height: 27px;
  max-width: 27px;
  object-fit: contain;
}
.dogfighter-store-badges .dogfighter-store-badge span {
  display: grid;
  gap: 2px;
  line-height: 1;
  text-align: left;
}
.dogfighter-store-badges .dogfighter-store-badge small {
  color: #b8bbcc;
  font-size: .51rem;
  font-weight: 650;
  line-height: 1.05;
}
.dogfighter-store-badges .dogfighter-store-badge strong {
  color: #fff;
  font-size: .86rem;
  font-weight: 780;
  line-height: 1.05;
}
html[data-theme="light"] .dogfighter-store-badges .dogfighter-store-badge {
  background: #101226;
}
