.creative-spark {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px;
  margin: 18px 0 4px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.creative-spark span {
  color: var(--coral);
  font: 700 9px/1.35 Consolas, monospace;
}

.creative-spark strong {
  color: var(--paper);
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.rank-row a {
  display: contents;
  color: inherit;
  text-decoration: none;
}

.rank-row:has(a:hover) .rank-name strong,
.rank-row:has(a:focus-visible) .rank-name strong {
  color: var(--acid);
}

.creator-profile {
  padding: 48px max(20px, calc((100vw - var(--max)) / 2)) 56px;
  border-bottom: 1px solid var(--line);
  background: #111614;
}

.profile-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}

.profile-header h2 {
  margin: 7px 0 6px;
  font-size: 36px;
  line-height: 1;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.profile-header p,
.profile-back {
  color: var(--muted);
  font: 700 10px/1.5 Consolas, monospace;
}

.profile-back {
  padding: 9px 11px;
  border: 1px solid var(--line);
  text-decoration: none;
}

.profile-back:hover,
.profile-back:focus-visible {
  border-color: var(--acid);
  color: var(--acid);
}

.profile-body {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 42px;
  padding-top: 32px;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.profile-stat {
  min-width: 0;
  padding: 16px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.profile-stat strong,
.profile-stat span {
  display: block;
}

.profile-stat strong {
  color: var(--acid);
  font-size: 24px;
}

.profile-stat span {
  margin-top: 6px;
  color: var(--muted);
  font: 700 8px/1.3 Consolas, monospace;
}

.profile-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 20px;
}

.profile-badges span {
  padding: 6px 8px;
  border: 1px solid #48524d;
  color: var(--ice);
  font: 700 8px/1 Consolas, monospace;
}

.profile-fingerprint {
  margin-top: 24px;
  color: var(--muted);
  font: 10px/1.65 Consolas, monospace;
  overflow-wrap: anywhere;
}

.profile-works h3 {
  margin: 0 0 18px;
  font-size: 20px;
  letter-spacing: 0;
}

.profile-work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.profile-work {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  min-height: 112px;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  background: var(--panel);
}

.profile-work img {
  width: 110px;
  height: 100%;
  object-fit: cover;
  background: #171c1a;
}

.profile-work div {
  min-width: 0;
  padding: 14px;
}

.profile-work strong,
.profile-work span {
  display: block;
}

.profile-work strong {
  font-size: 13px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.profile-work span {
  margin-top: 9px;
  color: var(--muted);
  font: 8px/1.35 Consolas, monospace;
}

.profile-work:hover strong,
.profile-work:focus-visible strong {
  color: var(--acid);
}

.machine-strip {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

@media (max-width: 960px) {
  .profile-body {
    grid-template-columns: 1fr;
  }

  .profile-summary {
    max-width: 520px;
  }

  .machine-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 650px) {
  .creator-profile {
    padding: 38px 14px 46px;
  }

  .profile-header {
    grid-template-columns: 1fr;
  }

  .profile-header h2 {
    font-size: 28px;
  }

  .profile-back {
    justify-self: start;
  }

  .profile-work-grid {
    grid-template-columns: 1fr;
  }

  .creative-spark {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .machine-strip {
    grid-template-columns: 1fr;
  }
}
