.da-app-card,
.da-feature-card,
.da-collection-card,
.da-article-card,
.da-pick-card {
  min-width: 0;
}

.da-app-card__link,
.da-feature-card__link,
.da-collection-card__link,
.da-article-card__link,
.da-pick-card__link {
  color: inherit;
}

.da-app-card__link:hover,
.da-feature-card__link:hover,
.da-collection-card__link:hover,
.da-article-card__link:hover,
.da-pick-card__link:hover {
  color: inherit;
}

/* ---------------------------------------------------------
 * Compact app/game card — homepage/reference geometry
 * 144 × 252 at compact/large, fluid 8-column at 1024–1279.
 * The text block is deliberately fixed at 108px so the row
 * height follows the measured reference contract exactly.
 * --------------------------------------------------------- */
.da-app-card__link {
  display: block;
}

.da-app-card__media {
  position: relative;
}

.da-app-card__icon,
.da-app-card__placeholder {
  display: grid;
  width: 100%;
  aspect-ratio: 1;
  place-items: center;
  border-radius: var(--da-icon-radius);
  object-fit: cover;
  background: var(--da-surface-tone);
}

.da-app-card__placeholder {
  color: var(--da-primary);
  font-size: 38px;
  font-weight: 700;
}

.da-app-card--tile {
  width: 100%;
}

.da-app-card--tile .da-app-card__content {
  height: 108px;
  padding-block-start: 8px;
}

.da-app-card__eyebrow {
  min-height: 16px;
  overflow: hidden;
  color: var(--da-text-muted);
  font-size: 10px;
  line-height: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.da-app-card__badge {
  color: var(--da-primary);
  font-size: inherit;
  font-weight: 400;
}

.da-app-card__title {
  display: -webkit-box;
  overflow: hidden;
  margin: 2px 0 0;
  color: var(--da-text);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.da-app-card__meta,
.da-app-card__submeta {
  display: flex;
  overflow: hidden;
  align-items: center;
  margin-block-start: 4px;
  color: var(--da-text-muted);
  font-size: 11px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Archive/sidebar variant keeps its own denser surface. */
.da-app-card--archive .da-app-card__link {
  height: 100%;
  padding: 10px;
  border-radius: var(--da-radius-lg);
  background: var(--da-surface);
}

.da-app-card--archive .da-app-card__icon,
.da-app-card--archive .da-app-card__placeholder {
  box-shadow: var(--da-shadow-card);
}

.da-app-card--archive .da-app-card__title {
  min-height: 42px;
  margin-block-start: 10px;
  font-size: 15px;
  font-weight: 500;
}

/* ---------------------------------------------------------
 * Featured card — measured reference: 272px total,
 * 200px media + 72px information strip.
 * --------------------------------------------------------- */
.da-feature-card {
  width: 100%;
  height: 272px;
}

.da-feature-card__link {
  display: block;
  height: 272px;
  overflow: hidden;
  border-radius: var(--da-radius-lg);
  background: var(--da-surface);
  box-shadow: var(--da-shadow-card);
  transition: transform var(--da-motion-fast) ease, box-shadow var(--da-motion-fast) ease;
}

.da-feature-card__link:hover {
  transform: translateY(-2px);
  box-shadow: var(--da-shadow-card-hover);
}

.da-feature-card__media,
.da-feature-card__cover,
.da-feature-card__placeholder {
  width: 100%;
  height: 200px;
}

.da-feature-card__cover {
  object-fit: cover;
}

.da-feature-card__placeholder {
  display: grid;
  place-items: center;
  background: var(--da-surface-tone);
  color: var(--da-primary);
  font-size: 58px;
  font-weight: 700;
}

.da-feature-card__body {
  display: flex;
  height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-inline: 14px 12px;
}

.da-feature-card__text {
  min-width: 0;
}

.da-feature-card__text h3 {
  overflow: hidden;
  margin: 0;
  color: var(--da-text);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.da-feature-card__meta {
  display: flex;
  min-width: 0;
  gap: 6px;
  margin-block-start: 2px;
  overflow: hidden;
  color: var(--da-text-muted);
  font-size: 10px;
  line-height: 1.45;
  white-space: nowrap;
}

.da-feature-card__mod {
  color: var(--da-primary);
}

.da-feature-card__download {
  display: inline-flex;
  min-width: 72px;
  min-height: 36px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding-inline: 12px;
  border-radius: 12px;
  background: var(--da-primary);
  color: var(--da-white);
  font-size: 12px;
  line-height: 1;
}

/* ---------------------------------------------------------
 * Best picks — open/frameless cards. The row itself carries
 * the measured vertical rhythm; cards intentionally have no
 * white panel, border or shadow.
 * --------------------------------------------------------- */
.da-picks-row {
  display: grid;
  height: 173px;
  grid-auto-flow: column;
  grid-auto-columns: 304px;
  gap: var(--da-grid-gap);
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  scrollbar-width: none;
}

.da-picks-row::-webkit-scrollbar {
  display: none;
}

.da-pick-card {
  height: 100%;
  scroll-snap-align: start;
}

.da-pick-card__link {
  position: relative;
  display: grid;
  height: 100%;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding-block-start: 16px;
  padding-inline: 28px 14px;
  overflow: hidden;
}

.da-pick-card__rank {
  position: absolute;
  z-index: 0;
  inset-block-start: 35px;
  inset-inline-start: 0;
  color: color-mix(in srgb, var(--da-primary) 72%, transparent);
  font-size: 62px;
  font-weight: 400;
  line-height: 1;
  pointer-events: none;
}

.da-pick-card__media,
.da-pick-card__content {
  position: relative;
  z-index: 1;
}

.da-pick-card__icon,
.da-pick-card__placeholder {
  display: grid;
  width: 108px;
  height: 108px;
  place-items: center;
  border-radius: var(--da-icon-radius);
  object-fit: cover;
  background: var(--da-surface-tone);
}

.da-pick-card__placeholder {
  color: var(--da-primary);
  font-size: 34px;
  font-weight: 700;
}

.da-pick-card__content {
  min-width: 0;
  padding-block-start: 9px;
}

.da-pick-card__eyebrow {
  min-height: 16px;
  overflow: hidden;
  color: var(--da-primary);
  font-size: 10px;
  line-height: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.da-pick-card__content h3 {
  display: -webkit-box;
  overflow: hidden;
  margin: 2px 0 0;
  color: var(--da-text);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.da-pick-card__meta {
  margin-block-start: 4px;
  overflow: hidden;
  color: var(--da-text-muted);
  font-size: 10px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------------------------------------------------------
 * Collection cards — 280px total, 200px media + 80px body.
 * --------------------------------------------------------- */
.da-category-set,
.da-collection-card {
  width: 100%;
  height: 280px;
}

.da-category-set__link,
.da-collection-card__link {
  display: block;
  height: 280px;
  overflow: hidden;
  border-radius: var(--da-radius-lg);
  background: var(--da-surface);
  box-shadow: var(--da-shadow-card);
  transition: transform var(--da-motion-fast) ease, box-shadow var(--da-motion-fast) ease;
}

.da-category-set__link:hover,
.da-collection-card__link:hover {
  transform: translateY(-2px);
  box-shadow: var(--da-shadow-card-hover);
}

.da-category-set__cover,
.da-collection-card__image,
.da-collection-card__placeholder {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.da-category-set__cover--placeholder,
.da-collection-card__placeholder {
  display: grid;
  place-items: center;
  background: var(--da-surface-tone);
  color: var(--da-primary);
}

.da-category-set__cover--placeholder .da-svg-icon,
.da-collection-card__placeholder .da-svg-icon {
  width: 52px;
  height: 52px;
}

.da-category-set__content,
.da-collection-card__content {
  display: flex;
  height: 80px;
  flex-direction: column;
  justify-content: center;
  padding-inline: 16px;
}

.da-category-set__label,
.da-collection-card__content h3 {
  display: block;
  margin: 0;
  overflow: hidden;
  color: var(--da-text);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.da-category-set__count,
.da-collection-card__content p {
  display: block;
  margin: 3px 0 0;
  overflow: hidden;
  color: var(--da-text-muted);
  font-size: 11px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------------------------------------------------------
 * Article cards — measured 304 × 268 at large widths.
 * Unlike collections these are deliberately frameless.
 * --------------------------------------------------------- */
.da-article-card {
  width: 100%;
  height: 268px;
}

.da-article-card__link {
  display: block;
  height: 268px;
}

.da-article-card__image,
.da-article-card__placeholder {
  display: block;
  width: 100%;
  height: 186px;
  border-radius: var(--da-radius-lg);
  object-fit: cover;
}

.da-article-card__placeholder {
  display: grid;
  place-items: center;
  background: var(--da-surface-tone);
  color: var(--da-primary);
}

.da-article-card__placeholder .da-svg-icon {
  width: 46px;
  height: 46px;
}

.da-article-card__content {
  height: 82px;
  padding-block-start: 10px;
}

.da-article-card__content h3 {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--da-text);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.da-article-card__content time {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-block-start: 4px;
  color: var(--da-text-muted);
  font-size: 11px;
}

.da-article-card__content time .da-svg-icon {
  width: 13px;
  height: 13px;
}

@media (min-width: 64rem) and (max-width: 79.999rem) {
  .da-picks-row {
    height: 189px;
    grid-auto-columns: calc((100% - (3 * var(--da-grid-gap))) / 4);
  }

  .da-pick-card__link {
    grid-template-columns: 80px minmax(0, 1fr);
  }

  .da-pick-card__icon,
  .da-pick-card__placeholder {
    width: 80px;
    height: 80px;
  }

  .da-pick-card__rank {
    inset-block-start: 34px;
    font-size: 54px;
  }

  .da-pick-card__content {
    padding-block-start: 4px;
  }
}

@media (min-width: 80rem) {
  .da-picks-row {
    height: 189px;
    grid-auto-columns: calc((100% - (3 * var(--da-grid-gap))) / 4);
  }
}
