/* Network composition: existing chrome, identity, navigation and Exchange tiles. */
html[data-tcgn-v1] {
  --brand: var(--text);
  --surface-2: var(--surface-secondary);
  --text-muted: var(--muted);
  --hover: var(--surface-secondary);
  --control-border: #46504e;
  --font: 'DM Sans', Arial, sans-serif;
  --on-mint: #0c0e0e;
  --tcgn-control-font: 'DM Sans', Arial, sans-serif;
}
.profile-preview [hidden] {
  display: none !important;
}
.profile-main {
  max-width: 1440px;
  margin: auto;
  padding: 28px var(--gutter) 64px;
}
.profile-main * {
  box-sizing: border-box;
}
.profile-main h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.025em;
}
.profile-main h3 {
  margin: 0;
  font-weight: 600;
}
.profile-main :is(a, button):focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 4px;
}
.profile-main button {
  font-family: inherit;
  cursor: pointer;
  color: inherit;
}
.profile-masthead {
  padding: 32px;
  border-radius: 20px;
  background: var(--surface);
  margin-bottom: 16px;
}
.profile-heading-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}
.profile-heading-row .tcgn-public-profile {
  flex: 1;
  min-width: 0;
}
.profile-masthead .tcgn-public-profile header {
  gap: 20px;
}
.profile-masthead .tcgn-profile-avatar,
.profile-masthead .network-profile-avatar {
  width: 96px;
  height: 96px;
  flex: 0 0 96px;
  border-radius: 50%;
  object-fit: cover;
  font-size: 30px;
  color: var(--text);
  background: var(--surface-secondary);
}
.profile-masthead .tcgn-public-profile header > div {
  min-width: 0;
}
.profile-main .tcgn-public-profile h1 {
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -0.035em;
  flex-wrap: wrap;
  gap: 10px;
}
.profile-main .tcgn-public-profile h1 a {
  text-decoration: none;
  overflow-wrap: anywhere;
}
.profile-masthead .tcgn-public-profile header p {
  font-size: 14px;
  margin-top: 8px;
}
.profile-vip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
}
.profile-vip svg {
  width: 17px;
  height: 17px;
}
.profile-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 14px;
  padding-left: 116px;
  font-size: 11px;
  color: var(--muted);
}
.profile-discord {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.profile-discord:hover {
  color: var(--text);
}
.profile-share {
  gap: 7px;
  flex: none;
  min-height: 34px;
  font-size: 11px;
}
html[data-tcgn-v1] #main.profile-main .profile-tabs {
  display: flex;
  position: static;
  top: auto;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 12px;
  padding: 0;
  background: none;
  border: 0;
}
.profile-main .profile-tabs a {
  justify-content: center;
  text-decoration: none;
}
.profile-share-status p:empty {
  display: none;
}
.profile-share-status p {
  margin: -12px 0 20px;
  font-size: 12px;
  color: var(--muted);
}
.profile-share-status input {
  width: min(100%, 410px);
  padding: 10px;
  margin-bottom: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  color: var(--text);
}
.profile-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.profile-section-heading > span,
.profile-link {
  color: var(--muted);
  font-size: 11px;
}
.profile-collection-back {
  margin: 0 0 8px;
  font-size: 13px;
}
.profile-main .shared-collection {
  margin-top: 0;
}
.profile-link {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}
.profile-empty {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  padding: 24px 0;
}
.profile-sample-note {
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 20px;
}
.profile-panels > section {
  min-width: 0;
}
.profile-panels > section + section {
  margin-top: 40px;
}
.profile-panels[data-tabbed] > section {
  margin-top: 0;
}
.profile-collection-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.profile-collection-tile {
  min-width: 0;
  border-radius: 20px;
  overflow: hidden;
  background: var(--surface);
  transition: background 0.15s;
}
.profile-collection-tile:hover {
  background: var(--surface-secondary);
}
.profile-collection-cover {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 204px;
  padding: 24px;
  background: var(--surface-secondary);
  overflow: hidden;
}
.profile-collection-cover > img {
  width: 100px;
  height: 140px;
  object-fit: contain;
  border-radius: 5px;
  filter: drop-shadow(0 8px 10px #0005);
}
.profile-collection-cover > img + img {
  margin-left: -22px;
}
.profile-collection-cover > img:first-child:not(:only-child) {
  transform: rotate(-12deg) translateY(7px);
}
.profile-collection-cover > img:nth-child(2) {
  position: relative;
  z-index: 1;
}
.profile-collection-cover > img:nth-child(3) {
  transform: rotate(12deg) translateY(7px);
}
.profile-collection-cover > span {
  display: grid;
  justify-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 11px;
}
.profile-collection-copy {
  padding: 20px 24px;
}
.profile-collection-copy > p {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 8px;
}
.profile-collection-copy h3 {
  font-size: 16px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.profile-collection-copy > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
  font-size: 11px;
  color: var(--muted);
}
.profile-main .v1-listing-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.profile-main .v1-listing:not(.profile-badge-tile) {
  border-radius: 20px;
}
.profile-main .v1-listing-art {
  position: relative;
}
.profile-listing-type {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  font-size: 10px;
}
.profile-main .v1-listing-copy h3 {
  font-size: 16px;
  line-height: 1.4;
}
.profile-main .v1-listing-copy > p {
  font-size: 11px;
  line-height: 1.6;
}
.profile-main .v1-listing-foot {
  font-size: 14px;
}
.profile-main .profile-activity {
  margin: 0;
  padding: 0;
}
.profile-main .profile-activity > li.profile-activity-date {
  display: block;
  border: 0;
  padding: 0 0 12px;
  margin-top: 24px;
}
.profile-main .profile-activity > li.profile-activity-date:first-child {
  margin-top: 0;
}
.profile-activity-date h3 {
  font-size: 12px;
  color: var(--muted);
}
.profile-main .profile-activity > li.profile-activity-item {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.profile-activity-art {
  width: 56px;
  height: 64px;
  flex: none;
  display: grid;
  place-items: center;
}
.profile-activity-art .reward-art {
  width: 56px;
  height: 56px;
}
.profile-activity-art img {
  max-width: 46px;
  height: 64px;
  object-fit: contain;
  border-radius: 4px;
}
.profile-activity-item > div {
  flex: 1;
  min-width: 0;
}
.profile-activity-item strong {
  display: block;
  font-size: 13px;
  line-height: 1.5;
}
.profile-activity-item p {
  font-size: 12px;
  line-height: 1.6;
  margin-top: 4px;
  color: var(--muted);
}
.profile-activity-item time {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 6px;
}
.profile-activity-link {
  flex: none;
  color: var(--muted);
}
@media (max-width: 768px) {
  .profile-main {
    padding-top: 24px;
  }
}
@media (max-width: 700px) {
  .profile-main {
    padding-bottom: 40px;
  }
  .profile-masthead {
    padding: 24px;
  }
  .profile-heading-row {
    flex-wrap: wrap;
    gap: 18px;
  }
  .profile-heading-row .tcgn-public-profile {
    flex-basis: 100%;
  }
  .profile-masthead .tcgn-profile-avatar,
  .profile-masthead .network-profile-avatar {
    width: 72px;
    height: 72px;
    flex-basis: 72px;
    font-size: 24px;
  }
  .profile-masthead .tcgn-public-profile header {
    gap: 16px;
  }
  .profile-main .tcgn-public-profile h1 {
    font-size: 26px;
    gap: 8px;
  }
  .profile-meta {
    padding-left: 0;
    gap: 8px 12px;
    margin-top: 18px;
    font-size: 10px;
  }
  .profile-share {
    min-height: 32px;
    padding: 0 12px;
  }
  html[data-tcgn-v1] #main.profile-main .profile-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }
  .profile-main .profile-tabs a {
    font-size: 12px;
    padding: 0 6px;
  }
  .profile-section-heading h2 {
    font-size: 18px;
  }
  .profile-section-heading > span {
    font-size: 10px;
  }
  .profile-collection-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  .profile-collection-cover {
    height: 184px;
  }
  .profile-collection-copy {
    padding: 18px 20px;
  }
  .profile-main .v1-listing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .profile-main .v1-listing-copy {
    padding: 14px;
  }
  .profile-main .v1-listing-copy h3 {
    font-size: 14px;
  }
  .profile-listing-type {
    top: 8px;
    left: 8px;
    font-size: 9px;
  }
}
@media (max-width: 360px) {
  .profile-masthead {
    padding: 20px;
  }
  .profile-main .tcgn-public-profile h1 {
    font-size: 23px;
  }
  .profile-main .profile-tabs a {
    font-size: 11px;
    padding-inline: 4px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .profile-collection-tile {
    transition: none;
  }
}
.profile-main .v1-listing-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.profile-content {
  max-width: 900px;
  margin-inline: auto;
}



/* Long public metric labels may break within a word on the narrowest screens. */
.profile-main > .value-metrics > div > span {
  overflow-wrap: anywhere;
}

.profile-score {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: var(--tcgn-radius-pill, 999px);
  background: var(--surface-secondary);
  color: var(--text);
  font-size: 13px;
  line-height: 1.2;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  white-space: nowrap;
}
.profile-score svg {
  width: 16px;
  height: 16px;
  color: #debd6e;
}
.achievement-leaderboard-heading {
  margin: 0 0 var(--tcgn-page-stack-gap);
}
.achievement-leaderboard-heading h1 {
  margin: 0 0 8px;
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -0.035em;
}
.achievement-leaderboard-heading p {
  color: var(--muted);
  font-size: 13px;
}
.achievement-leaderboard-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.achievement-leaderboard-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 100px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--tcgn-radius-surface, 24px);
  overflow: hidden;
}
.achievement-leaderboard-rank {
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
}
.achievement-leaderboard-rank[data-rank='1'] {
  color: #debd6e;
}
.achievement-leaderboard-rank[data-rank='2'] {
  color: #c6ced5;
}
.achievement-leaderboard-rank[data-rank='3'] {
  color: #c2906d;
}
.achievement-leaderboard-total {
  display: grid;
  gap: 4px;
  padding-right: 20px;
  text-align: right;
}
.achievement-leaderboard-total strong {
  font-size: 20px;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.achievement-leaderboard-total > span {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}
.achievement-leaderboard-row .tcgn-profile-avatar {
  object-fit: cover;
}
@media (max-width: 700px) {
  .achievement-leaderboard-heading h1 {
    font-size: 26px;
  }
  .achievement-leaderboard-row {
    grid-template-columns: 32px minmax(0, 1fr) 64px;
  }
  .achievement-leaderboard-total {
    padding-right: 12px;
  }
  .achievement-leaderboard-row .tcgn-public-profile-compact {
    padding: 16px 8px;
  }
  .achievement-leaderboard-row .tcgn-public-profile header {
    gap: 10px;
  }
  .achievement-leaderboard-row .tcgn-public-profile h3 {
    font-size: 14px;
  }
  .achievement-leaderboard-row .tcgn-public-profile header p {
    font-size: 11px;
    overflow-wrap: anywhere;
  }
}
.profile-badges-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-size: 11px;
  color: var(--muted);
}
/* The requested score pill owns the score; the three content metrics stay equal. */
html[data-tcgn-v1] #main.profile-main > .value-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 16px;
}

