/* Ілюстрації відкритих карт у результаті розкладу. */
.mini-card {
  display: block;
  width: 155px;
  min-width: 155px;
  aspect-ratio: auto;
  padding: 4px;
  background: #f3e5cb;
  box-shadow: 0 10px 24px #22223c20;
}

.mini-card:before { content: none; }

.mini-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 2px;
}

.result-card-top { align-items: center; }

.result-grid:not(.single) .result-card-top { display: block; }
.result-grid:not(.single) .mini-card {
  width: min(100%, 140px);
  min-width: 0;
  margin: 0 auto 16px;
}
.result-grid:not(.single) .result-card-top > div:last-child { text-align: center; }

footer .art-credit { line-height: 1.5; }
footer .art-credit a { color: #d2d0e4; }

@media (max-width: 700px) {
  .mini-card { width: 120px; min-width: 120px; }
  .result-grid:not(.single) .result-card-top { display: flex; }
  .result-grid:not(.single) .mini-card {
    width: 120px;
    min-width: 120px;
    margin: 0;
  }
  .result-grid:not(.single) .result-card-top > div:last-child { text-align: left; }
}

@media (max-width: 400px) {
  .mini-card, .result-grid:not(.single) .mini-card {
    width: 95px;
    min-width: 95px;
  }
}

/* Посилання з результату розкладу на детальну сторінку значення карти. */
.result-card .reflection { margin-bottom: 12px; }
.meaning-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .8rem;
  font-weight: 700;
  color: #765328;
  text-decoration: none;
  border-bottom: 1px solid #d9bc88;
  padding-bottom: 1px;
}
.meaning-link:hover { color: var(--night); border-color: var(--night); }
