.card-arrow {
  position: absolute;
  right: 24px;
  bottom: 22px;
  width: 30px;
  height: 18px;
  z-index: 3;
}

.card-arrow::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 0;
  width: 22px;
  height: 3px;
  background: currentColor;
  border-radius: 999px;
}

.card-arrow::after {
  content: '';
  position: absolute;
  top: 2px;
  right: 1px;
  width: 11px;
  height: 11px;
  border-top: 3px solid currentColor;
  border-right: 3px solid currentColor;
  transform: rotate(45deg);
}

/* Shared thumbnail treatment for all homepage cards: fill the card cleanly without distortion. */
.directory-card .card-thumbnail {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 0;
}

.card-vehicles {
  background:
    linear-gradient(180deg, rgba(23, 17, 27, 0.06) 12%, rgba(23, 17, 27, 0.84) 100%),
    url('vehicles-thumbnail.png') center / cover no-repeat;
}

.card-vehicles .card-thumbnail {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.card-vehicles::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(23, 17, 27, 0.04) 12%, rgba(23, 17, 27, 0.84) 100%);
  z-index: 1;
  pointer-events: none;
}

.card-vehicles > span {
  position: relative;
  z-index: 2;
}

.card-missions {
  background: #17111b url('missions-thumbnail.png') center / cover no-repeat;
}

.card-missions .card-thumbnail {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.card-missions::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(23, 17, 27, 0) 35%, rgba(23, 17, 27, 0.82) 100%);
  z-index: 1;
  pointer-events: none;
}

.card-missions > span {
  position: relative;
  z-index: 2;
}

.card-guides {
  background: #17111b url('guides-thumbnail.png') center / cover no-repeat;
}

.card-guides .card-thumbnail {
  object-position: center;
}

.card-guides::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(23, 17, 27, 0.02) 30%, rgba(23, 17, 27, 0.84) 100%);
  z-index: 1;
  pointer-events: none;
}

.card-guides > span {
  position: relative;
  z-index: 2;
}

.card-database {
  background: #17111b url('cheatcodes-thumbnail-v2.png') center / cover no-repeat;
}

.card-database::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(23, 17, 27, 0.04) 28%, rgba(23, 17, 27, 0.86) 100%);
  z-index: 1;
  pointer-events: none;
}

.card-database > span {
  position: relative;
  z-index: 2;
}

@media (max-width: 760px) {
  body {
    background-color: #f7f0e7 !important;
    background-image: linear-gradient(145deg, rgba(247, 240, 231, .76), rgba(247, 232, 237, .72)), url('vicecity-background.png') !important;
    background-position: center top !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
  }

  .site-header {
    min-height: 72px;
    height: auto;
    gap: 10px;
  }

  .header-note {
    display: block;
    max-width: 132px;
    color: #bdb2c0;
    font-size: 8px;
    line-height: 1.2;
    letter-spacing: .05em;
    text-align: right;
  }
}
