.compat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.wiki-page .compat-card {
  display: flex;
  flex-direction: column;
  padding: 20px 22px;
  background: #fff;
  border: 1px solid #e6dcc6;
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(60, 45, 20, 0.06);
  color: #212529;
  text-decoration: none;
}
.wiki-page .compat-card:is(a) {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.wiki-page .compat-card:is(a):hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(60, 45, 20, 0.12);
}
.wiki-page .compat-card:is(a):hover {
  color: #212529;
  border-color: #3d7a3f;
}
.wiki-page .compat-card:is(a):hover .compat-link {
  color: #3d7a3f;
}
.wiki-page .compat-card h4 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.3;
}
.wiki-page .compat-card p {
  flex: 1;
  margin: 10px 0 14px;
  font-size: 15px;
  line-height: 1.5;
  color: #6b6458;
}

.compat-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.compat-link {
  margin-top: 4px;
  font-size: 13px;
  color: #c9bea6;
  transition: color 0.2s ease;
}

.compat-creator {
  margin-top: 2px;
  font-size: 14px;
  color: #6b6458;
}

.compat-partial {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 6px;
  background: #f6ead0;
  color: #8a5a0a;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  vertical-align: middle;
}

.compat-tags {
  display: flex;
  gap: 6px;
}

.compat-tag {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.compat-tag i {
  margin-right: 3px;
  font-size: 11px;
}

.compat-tag-trees {
  background: #dcefd3;
  color: #2d5a32;
}

.compat-tag-axes {
  background: #f0e0cc;
  color: #7a4a1a;
}

.compat-tag-ores {
  background: #d3ecf2;
  color: #135566;
}

.compat-tag-pickaxes {
  background: #e4e7eb;
  color: #3f4852;
}