#publicUserProfilePage .public-profile-head {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  column-gap: 1rem;
  row-gap: .7rem;
  align-items: start;
}

#publicUserProfilePage .public-profile-avatar-wrap {
  grid-column: 1;
  width: 80px;
  height: 80px;
  flex: 0 0 80px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  overflow: hidden;
  isolation: isolate;
  border: 2px solid #dbe7ff;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.10);
  background: radial-gradient(circle at 30% 20%, #ffffff 0%, #edf4ff 100%);
}

#publicUserProfilePage .public-profile-avatar-wrap.is-previewable {
  cursor: zoom-in;
}

#publicUserProfilePage #publicProfileAvatar {
  width: 80px;
  height: 80px;
  display: block;
  object-fit: cover;
  object-position: center;
  image-rendering: auto;
  backface-visibility: hidden;
  transform: translateZ(0) scale(1.01);
  -webkit-font-smoothing: antialiased;
}

#publicUserProfilePage .public-profile-copy {
  grid-column: 2;
  min-width: 0;
  flex: 1 1 auto;
}

#publicUserProfilePage .public-profile-name {
  grid-column: 1 / -1;
  font-size: 1.35rem;
  font-weight: 800;
  color: #101828;
  line-height: 1.15;
  text-align: left;
  margin: 0;
}

#publicUserProfilePage .public-profile-meta {
  color: #667085;
  font-size: .92rem;
  margin-top: .2rem;
}

#publicUserProfilePage .public-profile-division {
  display: none;
  align-items: center;
  gap: .45rem;
  width: fit-content;
  max-width: 100%;
  margin-top: .7rem;
  padding: .48rem .8rem;
  border-radius: 999px;
  border: 1px solid rgba(47, 124, 246, 0.22);
  background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
  color: #175cd3;
  font-size: .9rem;
  font-weight: 700;
}

#publicUserProfilePage .public-profile-division ion-icon {
  font-size: 1rem;
  flex: 0 0 auto;
}

#publicUserProfilePage .public-profile-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-top: .75rem;
}

#publicUserProfilePage .public-profile-admin-actions {
  margin-top: .9rem;
}

#publicUserProfilePage .public-profile-admin-card {
  border: 1px solid rgba(16, 24, 40, 0.08);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.05);
  padding: 1rem;
}

#publicUserProfilePage .public-profile-admin-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .9rem;
}

#publicUserProfilePage .public-profile-admin-title {
  color: #101828;
  font-size: .95rem;
  font-weight: 800;
  line-height: 1.2;
}

#publicUserProfilePage .public-profile-admin-note {
  margin-top: .3rem;
  color: #667085;
  font-size: .82rem;
  line-height: 1.45;
}

#publicUserProfilePage .public-profile-admin-list {
  display: grid;
  gap: .75rem;
}

#publicUserProfilePage .public-profile-admin-item {
  border: 1px solid rgba(23, 92, 211, 0.12);
  border-radius: 16px;
  background: #fff;
  padding: .85rem;
}

#publicUserProfilePage .public-profile-admin-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .8rem;
}

#publicUserProfilePage .public-profile-admin-class {
  color: #101828;
  font-size: .92rem;
  font-weight: 800;
  line-height: 1.25;
}

#publicUserProfilePage .public-profile-admin-subtitle {
  margin-top: .22rem;
  color: #667085;
  font-size: .78rem;
}

#publicUserProfilePage .public-profile-admin-controls {
  margin-top: .75rem;
}

#publicUserProfilePage .public-profile-admin-controls .form-label {
  color: #667085;
  font-size: .78rem;
  font-weight: 700;
}

#publicUserProfilePage .public-profile-admin-controls .form-select {
  min-height: 40px;
}

#publicUserProfilePage .public-profile-admin-reason {
  margin-top: .55rem;
  color: #b42318;
  font-size: .78rem;
  line-height: 1.45;
}

#publicUserProfilePage .public-profile-admin-saving {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-top: .45rem;
  color: #667085;
  font-size: .78rem;
}

#publicUserProfilePage .public-profile-admin-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: 42px;
  padding: .7rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(23, 92, 211, 0.18);
  background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
  color: #175cd3;
  font-size: .92rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(23, 92, 211, 0.08);
}

#publicUserProfilePage .public-profile-admin-link ion-icon {
  font-size: 1rem;
  flex: 0 0 auto;
}

@media (max-width: 575.98px) {
  #publicUserProfilePage .public-profile-admin-row {
    flex-direction: column;
    align-items: flex-start;
  }

  #publicUserProfilePage .public-profile-admin-link {
    width: 100%;
  }
}

#publicUserProfilePage .public-profile-private {
  border: 1px dashed rgba(47, 124, 246, 0.35);
  background: #f7faff;
  border-radius: 14px;
  padding: 1rem;
}

#publicUserProfilePage .public-user-data-card {
  border: 1px solid rgba(16, 24, 40, 0.08);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.05);
  padding: 1rem;
}

#publicUserProfilePage .public-user-data-title {
  color: #101828;
  font-size: .95rem;
  font-weight: 800;
  margin-bottom: .85rem;
}

#publicUserProfilePage .public-user-data-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

#publicUserProfilePage .public-user-data-label {
  color: #667085;
  font-size: .88rem;
}

#publicUserProfilePage .public-user-data-value {
  color: #175cd3;
  font-size: .96rem;
  font-weight: 700;
  text-decoration: none;
  word-break: break-word;
}

#publicUserProfilePage .public-user-data-value.is-empty {
  color: #98a2b3;
  pointer-events: none;
}

#publicUserProfilePage .public-stats-title {
  margin-bottom: .9rem;
  color: #101828;
  font-size: .95rem;
  font-weight: 800;
}

#publicUserProfilePage .public-stats-list {
  display: grid;
  gap: 12px;
}

#publicUserProfilePage .public-stats-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

#publicUserProfilePage .public-stats-head .public-stats-title {
  margin-bottom: 0;
}

#publicUserProfilePage .public-stats-division-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: #eef4ff;
  color: #1d4ed8;
  font-size: .8rem;
  font-weight: 800;
}

#publicUserProfilePage .public-stats-shell {
  border: 1px solid rgba(16, 24, 40, 0.08);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.05);
  padding: 1rem;
}

#publicUserProfilePage .public-stat-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
}

#publicUserProfilePage .public-stat-detail-card {
  border: 1px solid rgba(47, 124, 246, 0.12);
  border-radius: 16px;
  background: #fff;
  padding: .85rem .75rem;
  text-align: center;
  min-width: 0;
}

#publicUserProfilePage .public-stat-detail-label {
  display: block;
  color: #475467;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

#publicUserProfilePage .public-stat-detail-value {
  display: block;
  margin-top: .3rem;
  color: #101828;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.1;
}

#publicUserProfilePage .season-performance-card {
  width: 100%;
  background:
    radial-gradient(circle at top right, rgba(30, 116, 253, 0.07) 0, rgba(30, 116, 253, 0) 34%),
    linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
}

#publicUserProfilePage #publicProfilePremiumStats {
  width: 100%;
}

#publicUserProfilePage .public-premium-stats-note {
  margin-top: .35rem;
  color: #6c7c94;
  font-size: .84rem;
  line-height: 1.45;
}

#publicUserProfilePage .performance-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

#publicUserProfilePage .performance-summary {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid rgba(30, 116, 253, 0.1);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f5f9ff 100%);
}

#publicUserProfilePage .summary-main {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#publicUserProfilePage .summary-label {
  color: #6c7c94;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

#publicUserProfilePage .summary-value {
  color: #101828;
  font-size: 2.25rem;
  font-weight: 800;
  line-height: .95;
}

#publicUserProfilePage .summary-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 800;
}

#publicUserProfilePage .summary-status.is-success {
  background: rgba(52, 199, 89, 0.14);
  color: #1c8b43;
}

#publicUserProfilePage .summary-status.is-primary {
  background: rgba(30, 116, 253, 0.12);
  color: #1e74fd;
}

#publicUserProfilePage .summary-status.is-warning {
  background: rgba(236, 68, 51, 0.12);
  color: #d63a2d;
}

#publicUserProfilePage .summary-status.is-muted {
  background: rgba(108, 124, 148, 0.14);
  color: #6c7c94;
}

#publicUserProfilePage .summary-progress {
  position: relative;
  overflow: hidden;
  height: 10px;
  margin-top: .95rem;
  border-radius: 999px;
  background: #e9eef6;
}

#publicUserProfilePage .summary-progress-bar {
  display: block;
  height: 100%;
  min-width: 0;
  border-radius: inherit;
  transition: width .25s ease;
}

#publicUserProfilePage .summary-progress-bar.is-success {
  background: linear-gradient(90deg, #34c759 0%, #2dd36f 100%);
}

#publicUserProfilePage .summary-progress-bar.is-primary {
  background: linear-gradient(90deg, #1e74fd 0%, #56a3ff 100%);
}

#publicUserProfilePage .summary-progress-bar.is-warning {
  background: linear-gradient(90deg, #fe9500 0%, #ec4433 100%);
}

#publicUserProfilePage .summary-progress-bar.is-muted {
  background: linear-gradient(90deg, #98a2b3 0%, #c3cbd8 100%);
}

#publicUserProfilePage .performance-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
  margin-top: 1rem;
}

#publicUserProfilePage .kpi-item {
  min-width: 0;
  padding: .95rem .75rem;
  border: 1px solid #e1e7f0;
  border-radius: 16px;
  background: #fff;
  text-align: center;
  box-shadow: 0 8px 18px rgba(16, 24, 40, 0.04);
}

#publicUserProfilePage .kpi-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1rem;
}

#publicUserProfilePage .kpi-icon.is-success {
  background: rgba(52, 199, 89, 0.14);
  color: #1c8b43;
}

#publicUserProfilePage .kpi-icon.is-danger {
  background: rgba(236, 68, 51, 0.12);
  color: #d63a2d;
}

#publicUserProfilePage .kpi-icon.is-primary {
  background: rgba(30, 116, 253, 0.12);
  color: #1e74fd;
}

#publicUserProfilePage .kpi-icon.is-warning {
  background: rgba(254, 149, 0, 0.14);
  color: #fe9500;
}

#publicUserProfilePage .kpi-item strong {
  display: block;
  margin-top: .55rem;
  color: #101828;
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1;
}

#publicUserProfilePage .kpi-item small {
  display: block;
  margin-top: .3rem;
  color: #6c7c94;
  font-size: .8rem;
  font-weight: 700;
  line-height: 1.35;
}

#publicUserProfilePage .performance-distribution {
  display: grid;
  grid-template-columns: 1fr;
  gap: .85rem;
  margin-top: 1rem;
}

#publicUserProfilePage .distribution-box {
  min-width: 0;
  padding: .95rem;
  border: 1px solid #e1e7f0;
  border-radius: 16px;
  background: #fff;
}

#publicUserProfilePage .distribution-box.wins {
  background: linear-gradient(180deg, #ffffff 0%, #f5fff8 100%);
}

#publicUserProfilePage .distribution-box.losses {
  background: linear-gradient(180deg, #ffffff 0%, #fff8f7 100%);
}

#publicUserProfilePage .distribution-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #101828;
  font-size: .9rem;
  font-weight: 800;
}

#publicUserProfilePage .performance-dist-row + .performance-dist-row {
  margin-top: .75rem;
}

#publicUserProfilePage .performance-dist-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: .32rem;
}

#publicUserProfilePage .performance-dist-label {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
  color: #475467;
  font-size: .84rem;
  font-weight: 700;
}

#publicUserProfilePage .performance-dist-tag {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .03em;
  /*text-transform: uppercase;*/
}

#publicUserProfilePage .performance-dist-tag.is-muted {
  background: #eef2f7;
  color: #6c7c94;
}

#publicUserProfilePage .performance-dist-label span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#publicUserProfilePage .performance-dist-value {
  flex: 0 0 auto;
  color: #101828;
  font-size: .92rem;
  font-weight: 800;
}

#publicUserProfilePage .performance-dist-track {
  overflow: hidden;
  height: 8px;
  border-radius: 999px;
  background: #edf1f6;
}

#publicUserProfilePage .performance-dist-fill {
  display: block;
  height: 100%;
  min-width: 0;
  border-radius: inherit;
}

#publicUserProfilePage .performance-dist-fill.is-success {
  background: linear-gradient(90deg, #34c759 0%, #2dd36f 100%);
}

#publicUserProfilePage .performance-dist-fill.is-danger {
  background: linear-gradient(90deg, #fe9500 0%, #ec4433 100%);
}

#publicUserProfilePage .performance-insight {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  margin-top: 1rem;
  padding: .95rem 1rem;
  border: 1px solid rgba(30, 116, 253, 0.1);
  border-radius: 16px;
  background: #f7faff;
  color: #30435f;
  font-size: .88rem;
  font-weight: 600;
  line-height: 1.5;
  box-sizing: border-box;
}

#publicUserProfilePage .insight-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(30, 116, 253, 0.12);
  color: #1e74fd;
  flex: 0 0 auto;
}

#publicUserProfilePage .public-match-card {
  border: 1px solid rgba(16, 24, 40, 0.08);
  border-radius: 16px;
  padding: 1rem;
  background: #fff;
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.04);
}

#publicUserProfilePage .match-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(16, 24, 40, 0.08);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
}

#publicUserProfilePage .match-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, #2f6df6 0%, #4f8dff 100%);
}

#publicUserProfilePage .match-card.is-history::before {
  background: linear-gradient(90deg, #0da866 0%, #36d488 100%);
}

#publicUserProfilePage .match-card.is-pending::before {
  background: linear-gradient(90deg, #ffc94d 0%, #ff8a00 100%);
}

#publicUserProfilePage .match-card.is-contested::before {
  background: linear-gradient(90deg, #ff7a18 0%, #ef4444 100%);
}

#publicUserProfilePage .match-card-shell {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#publicUserProfilePage .match-card-players {
  margin-bottom: 0;
}

#publicUserProfilePage .season-round-player-avatar-wrap {
  width: 64px;
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  overflow: hidden;
  isolation: isolate;
  border: 2px solid #dbe7ff;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.10);
  background: radial-gradient(circle at 30% 20%, #ffffff 0%, #edf4ff 100%);
}

#publicUserProfilePage .season-round-player-avatar {
  width: 64px;
  height: 64px;
  display: block;
  object-fit: cover;
  object-position: center;
  image-rendering: auto;
  backface-visibility: hidden;
  transform: translateZ(0) scale(1.01);
  -webkit-font-smoothing: antialiased;
}

#publicUserProfilePage .match-card-player-name {
  margin-top: 8px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  color: #1f2937;
  text-align: center;
  word-break: break-word;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

#publicUserProfilePage .match-card-player-link {
  color: inherit;
  text-decoration: none;
}

#publicUserProfilePage .match-card-player-avatar-link,
#publicUserProfilePage .match-card-player-avatar-link.is-static {
  display: inline-flex;
}

#publicUserProfilePage .match-card-player-name-link,
#publicUserProfilePage .match-card-player-name-link.is-static {
  color: inherit;
  text-decoration: none;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

#publicUserProfilePage .match-card-versus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 10px;
  border-radius: 999px;
  background: #f3f6fb;
  color: #6b7280;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

#publicUserProfilePage .match-card-heading {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#publicUserProfilePage .match-card-league {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #18419d;
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.35;
}

#publicUserProfilePage .match-card-meta {
  color: #4b5563;
  font-size: .88rem;
  line-height: 1.45;
}

#publicUserProfilePage .match-status-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

#publicUserProfilePage .match-status-badge.text-primary,
#publicUserProfilePage .match-result-badge.text-primary {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(47, 109, 246, 0.10);
  color: #1d4ed8 !important;
  font-size: .82rem;
  font-weight: 700;
  line-height: 1;
}

#publicUserProfilePage .match-status-badge.badge-light,
#publicUserProfilePage .match-result-badge.badge-light {
  background: #f3f4f6;
}

#publicUserProfilePage .match-division-highlight {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  padding: .42rem .78rem;
  border-radius: 999px;
  border: 1px solid rgba(18, 183, 106, 0.3);
  background: #eefdf3;
  color: #027a48;
  font-size: .9rem;
  font-weight: 700;
}

#publicUserProfilePage .match-card-result-highlight {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #f6f8fc;
  border: 1px solid rgba(15, 23, 42, 0.06);
  text-align: center;
}

#publicUserProfilePage .match-card-result-score {
  width: 100%;
  font-size: 1rem;
  font-weight: 800;
  color: #172033;
  line-height: 1.1;
  text-align: center;
}

#publicUserProfilePage .match-card-primary {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#publicUserProfilePage .match-card-primary .btn {
  min-height: 44px;
  font-weight: 700;
}

#publicUserProfilePage .match-card-primary .btn-share-result {
  background: linear-gradient(135deg, #0f9b6b 0%, #13c27d 100%);
  border-color: #0f9b6b;
  color: #fff;
  box-shadow: 0 14px 28px rgba(15, 155, 107, 0.18);
}

#publicUserProfilePage .match-card-primary .btn-share-result:hover,
#publicUserProfilePage .match-card-primary .btn-share-result:focus {
  background: linear-gradient(135deg, #0d885d 0%, #11ad71 100%);
  border-color: #0d885d;
  color: #fff;
}

#publicUserProfilePage .match-card-primary .btn-share-result:disabled {
  opacity: 0.88;
  cursor: wait;
  box-shadow: none;
}

#publicUserProfilePage .match-card-primary .btn-share-result .spinner-border {
  width: 1rem;
  height: 1rem;
  border-width: 0.12em;
}

#publicUserProfilePage .match-card-secondary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 2px;
}

#publicUserProfilePage .match-secondary-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #2f6df6;
  font-size: .89rem;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
}

#publicUserProfilePage .match-secondary-action::after {
  content: "·";
  margin: 0 10px;
  color: #9ca3af;
  font-weight: 400;
}

#publicUserProfilePage .match-secondary-action:last-child::after {
  content: none;
  margin: 0;
}

#publicUserProfilePage .match-secondary-action:hover,
#publicUserProfilePage .match-secondary-action:focus {
  color: #1d4ed8;
  text-decoration: none;
  outline: none;
}

#publicUserProfilePage .match-details-panel {
  display: none;
}

#publicUserProfilePage .match-details-panel.is-open {
  display: block;
}

#publicUserProfilePage .match-details-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .86rem;
  font-weight: 700;
  color: #2f6df6;
  background: transparent;
  border: 0;
  padding: 0;
}

#publicUserProfilePage .match-details-toggle ion-icon {
  transition: transform 0.18s ease;
}

#publicUserProfilePage .match-details-toggle.is-open ion-icon {
  transform: rotate(180deg);
}

#publicUserProfilePage .match-meta-note {
  color: #6b7280;
  font-size: .84rem;
  line-height: 1.45;
}

#publicUserProfilePage .public-match-context {
  color: #667085;
  font-size: .88rem;
}

#publicUserProfilePage .public-match-division {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-top: .75rem;
  padding: .42rem .78rem;
  border-radius: 999px;
  border: 1px solid rgba(18, 183, 106, 0.3);
  background: #eefdf3;
  color: #027a48;
  font-size: .9rem;
  font-weight: 700;
}

#publicUserProfilePage .public-match-division ion-icon {
  font-size: 1rem;
  flex: 0 0 auto;
}

#publicUserProfilePage .public-match-player-badges {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .35rem;
  width: 100%;
  flex-wrap: wrap;
}

#publicUserProfilePage .public-match-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-top: .75rem;
}

#publicUserProfilePage .public-match-score {
  font-weight: 700;
  color: #0f172a;
  margin-top: .7rem;
}

#publicUserProfilePage .public-match-score-table .table {
  margin-bottom: 0;
}

#publicUserProfilePage .public-match-result-meta {
  color: #667085;
  font-size: .84rem;
  margin-top: .7rem;
}

#publicUserProfilePage #publicAvatarPreviewModal .modal-content {
  background: rgba(15, 23, 42, 0.96);
  border: 0;
}

#publicUserProfilePage #publicAvatarPreviewImage {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
}

#publicUserProfilePage .my-games-share-host {
  position: fixed;
  left: -10000px;
  top: -10000px;
  width: 1080px;
  height: 1080px;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
  opacity: 0;
}

#publicUserProfilePage .my-games-share-card {
  width: 1080px;
  height: 1080px;
  position: relative;
  overflow: hidden;
  padding: 56px;
  background: linear-gradient(180deg, #f8fafc 0%, #eef4fb 100%);
  color: #172033;
  font-family: "SF Pro Display", "Segoe UI", Arial, sans-serif;
}

#publicUserProfilePage .my-games-share-card::before {
  content: "";
  position: absolute;
  inset: 28px;
  border-radius: 44px;
  background: linear-gradient(180deg, rgba(255,255,255,0.85) 0%, rgba(255,255,255,0.56) 100%);
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 22px 56px rgba(15, 23, 42, 0.12);
}

#publicUserProfilePage .my-games-share-panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 32px;
  border-radius: 34px;
  background: #ffffff;
  overflow: hidden;
}

#publicUserProfilePage .my-games-share-panel::before {
  content: "";
  display: block;
  height: 10px;
  margin: -32px -32px 22px;
  background: linear-gradient(90deg, #2f6df6 0%, #4f8dff 100%);
}

#publicUserProfilePage .my-games-share-panel.is-pending::before,
#publicUserProfilePage .my-games-share-panel.is-scheduled::before {
  background: linear-gradient(90deg, #ffc94d 0%, #ff8a00 100%);
}

#publicUserProfilePage .my-games-share-panel.is-played::before {
  background: linear-gradient(90deg, #0da866 0%, #36d488 100%);
}

#publicUserProfilePage .my-games-share-panel.is-wo,
#publicUserProfilePage .my-games-share-panel.is-dispute {
  background: linear-gradient(180deg, #fffdfd 0%, #fff7f5 100%);
}

#publicUserProfilePage .my-games-share-panel.is-wo::before,
#publicUserProfilePage .my-games-share-panel.is-dispute::before {
  background: linear-gradient(90deg, #ff7a18 0%, #ef4444 100%);
}

#publicUserProfilePage .my-games-share-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

#publicUserProfilePage .my-games-share-top-badges {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  flex: 0 0 auto;
  margin-left: auto;
}

#publicUserProfilePage .my-games-share-brand {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

#publicUserProfilePage .my-games-share-brand img {
  width: 220px;
  max-width: 38%;
  height: auto;
  flex: 0 0 auto;
}

#publicUserProfilePage .my-games-share-brand-title {
  margin: 0;
  font-size: 54px;
  line-height: 1;
  font-weight: 800;
  color: #172033;
}

#publicUserProfilePage .my-games-share-brand-subtitle {
  margin: 10px 0 0;
  font-size: 24px;
  line-height: 1.4;
  color: #64748b;
}

#publicUserProfilePage .my-games-share-badge,
#publicUserProfilePage .my-games-share-result-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 24px;
  line-height: 1;
  font-weight: 800;
  white-space: nowrap;
}

#publicUserProfilePage .my-games-share-badge {
  background: #e8fbf1;
  color: #0d8f59;
}

#publicUserProfilePage .my-games-share-badge ion-icon {
  font-size: 24px;
}

#publicUserProfilePage .my-games-share-result-badge {
  background: #f3f4f6;
  color: #475467;
}

#publicUserProfilePage .my-games-share-result-badge.is-confirmed,
#publicUserProfilePage .my-games-share-result-badge.is-auto {
  background: #eef4ff;
  color: #1d4ed8;
}

#publicUserProfilePage .my-games-share-result-badge.is-pending {
  background: #f59e0b;
  color: #fff;
}

#publicUserProfilePage .my-games-share-result-badge.is-contested {
  background: #ef4444;
  color: #fff;
}

#publicUserProfilePage .my-games-share-meta {
  margin-bottom: 18px;
}

#publicUserProfilePage .my-games-share-league {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #1d4ed8;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.25;
}

#publicUserProfilePage .my-games-share-meta-line {
  margin-top: 10px;
  font-size: 24px;
  line-height: 1.4;
  color: #475467;
}

#publicUserProfilePage .my-games-share-status-row {
  margin-bottom: 20px;
}

#publicUserProfilePage .my-games-share-division {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 18px;
  background: #eefaf4;
  border: 1px solid #bcebd0;
  color: #0a8f59;
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 22px;
}

#publicUserProfilePage .my-games-share-match-card {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 28px 28px 24px;
  border-radius: 28px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

#publicUserProfilePage .my-games-share-matchup {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

#publicUserProfilePage .my-games-share-player {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  text-align: center;
}

#publicUserProfilePage .my-games-share-avatar-wrap {
  width: 148px;
  height: 148px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  overflow: hidden;
  isolation: isolate;
  border: 2px solid #dbe7ff;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.10);
  background: radial-gradient(circle at 30% 20%, #ffffff 0%, #edf4ff 100%);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  margin-bottom: 14px;
}

#publicUserProfilePage .my-games-share-avatar {
  width: 148px;
  height: 148px;
  display: block;
  object-fit: cover;
  object-position: center;
  image-rendering: auto;
  backface-visibility: hidden;
  transform: translateZ(0) scale(1.01);
  -webkit-font-smoothing: antialiased;
}

#publicUserProfilePage .my-games-share-avatar.is-hidden-fallback {
  opacity: 0;
}

#publicUserProfilePage .my-games-share-player-name {
  margin: 0;
  font-size: 34px;
  font-weight: 800;
  line-height: 1.15;
  color: #172033;
  word-break: break-word;
}

#publicUserProfilePage .my-games-share-player-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  min-height: 36px;
  min-width: 126px;
  padding: 0 14px;
  border-radius: 999px;
  background: #e8fbf1;
  color: #0d8f59;
  font-size: 16px;
  font-weight: 700;
}

#publicUserProfilePage .my-games-share-player-badge.is-empty {
  visibility: hidden;
}

#publicUserProfilePage .my-games-share-player-badge.is-coringa {
  background: #eef4ff;
  color: #1d4ed8;
}

#publicUserProfilePage .my-games-share-versus {
  flex: 0 0 110px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#publicUserProfilePage .my-games-share-versus-mark {
  width: 84px;
  height: 84px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f3f6fb;
  color: #6b7280;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

#publicUserProfilePage .my-games-share-score {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  border-radius: 20px;
  background: #f6f8fc;
  border: 1px solid rgba(15, 23, 42, 0.06);
}

#publicUserProfilePage .my-games-share-score-label {
  font-size: 18px;
  color: #64748b;
  font-weight: 700;
}

#publicUserProfilePage .my-games-share-score-value {
  font-size: 34px;
  font-weight: 800;
  color: #172033;
  text-align: right;
  line-height: 1.15;
}

#publicUserProfilePage .my-games-share-score-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 4px;
}

#publicUserProfilePage .my-games-share-score-table th,
#publicUserProfilePage .my-games-share-score-table td {
  padding: 14px 10px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.10);
  font-size: 20px;
  color: #172033;
}

#publicUserProfilePage .my-games-share-score-table th {
  font-size: 17px;
  font-weight: 700;
  color: #64748b;
}

#publicUserProfilePage .my-games-share-score-table td.is-center,
#publicUserProfilePage .my-games-share-score-table th.is-center {
  text-align: center;
}

#publicUserProfilePage .my-games-share-score-table td.is-winner {
  font-weight: 800;
  color: #0d8f59;
}

#publicUserProfilePage .my-games-share-row-badge {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
}

#publicUserProfilePage .my-games-share-row-badge.is-v {
  background: #22c55e;
  color: #fff;
}

#publicUserProfilePage .my-games-share-row-badge.is-d {
  background: #64748b;
  color: #fff;
}

#publicUserProfilePage .my-games-share-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}

#publicUserProfilePage .my-games-share-date {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

#publicUserProfilePage .my-games-share-date-label {
  font-size: 18px;
  font-weight: 700;
  color: #64748b;
}

#publicUserProfilePage .my-games-share-date-value {
  font-size: 24px;
  font-weight: 800;
  color: #172033;
}

#publicUserProfilePage .my-games-share-card.is-compact .my-games-share-top {
  margin-bottom: 14px;
}

#publicUserProfilePage .my-games-share-card.is-compact .my-games-share-meta {
  margin-bottom: 12px;
}

#publicUserProfilePage .my-games-share-card.is-compact .my-games-share-division {
  margin-bottom: 14px;
}

#publicUserProfilePage .my-games-share-card.is-compact .my-games-share-match-card {
  gap: 16px;
  padding: 24px 24px 20px;
}

#publicUserProfilePage .my-games-share-card.is-compact .my-games-share-avatar-wrap,
#publicUserProfilePage .my-games-share-card.is-compact .my-games-share-avatar {
  width: 128px;
  height: 128px;
}

#publicUserProfilePage .my-games-share-card.is-compact .my-games-share-player-name {
  font-size: 30px;
  line-height: 1.08;
}

#publicUserProfilePage .my-games-share-card.is-compact .my-games-share-player-badge {
  margin-top: 8px;
}

#publicUserProfilePage .my-games-share-card.is-compact .my-games-share-versus {
  flex-basis: 92px;
}

#publicUserProfilePage .my-games-share-card.is-compact .my-games-share-versus-mark {
  width: 74px;
  height: 74px;
  font-size: 22px;
}

#publicUserProfilePage .my-games-share-card.is-compact .my-games-share-score {
  padding: 14px 16px;
}

#publicUserProfilePage .my-games-share-card.is-compact .my-games-share-score-value {
  font-size: 30px;
}

#publicUserProfilePage .my-games-share-card.is-compact .my-games-share-score-table th,
#publicUserProfilePage .my-games-share-card.is-compact .my-games-share-score-table td {
  padding: 11px 8px;
  font-size: 18px;
}

#publicUserProfilePage .my-games-share-card.is-compact .my-games-share-score-table th {
  font-size: 16px;
}

#publicUserProfilePage .my-games-share-card.is-tight .my-games-share-top {
  margin-bottom: 10px;
}

#publicUserProfilePage .my-games-share-card.is-tight .my-games-share-meta {
  margin-bottom: 10px;
}

#publicUserProfilePage .my-games-share-card.is-tight .my-games-share-status-row {
  margin-bottom: 12px;
}

#publicUserProfilePage .my-games-share-card.is-tight .my-games-share-division {
  margin-bottom: 10px;
  font-size: 20px;
}

#publicUserProfilePage .my-games-share-card.is-tight .my-games-share-match-card {
  gap: 12px;
  padding: 20px 20px 18px;
}

#publicUserProfilePage .my-games-share-card.is-tight .my-games-share-avatar-wrap,
#publicUserProfilePage .my-games-share-card.is-tight .my-games-share-avatar {
  width: 112px;
  height: 112px;
  margin-bottom: 10px;
}

#publicUserProfilePage .my-games-share-card.is-tight .my-games-share-player-name {
  font-size: 26px;
  line-height: 1.05;
}

#publicUserProfilePage .my-games-share-card.is-tight .my-games-share-player-badge {
  min-height: 32px;
  font-size: 15px;
}

#publicUserProfilePage .my-games-share-card.is-tight .my-games-share-versus {
  flex-basis: 80px;
}

#publicUserProfilePage .my-games-share-card.is-tight .my-games-share-versus-mark {
  width: 66px;
  height: 66px;
  font-size: 20px;
}

#publicUserProfilePage .my-games-share-card.is-tight .my-games-share-score {
  padding: 12px 14px;
}

#publicUserProfilePage .my-games-share-card.is-tight .my-games-share-score-label {
  font-size: 17px;
}

#publicUserProfilePage .my-games-share-card.is-tight .my-games-share-score-value {
  font-size: 28px;
}

#publicUserProfilePage .my-games-share-card.is-tight .my-games-share-score-table th,
#publicUserProfilePage .my-games-share-card.is-tight .my-games-share-score-table td {
  padding: 9px 7px;
  font-size: 17px;
}

#publicUserProfilePage .my-games-share-card.is-tight .my-games-share-score-table th {
  font-size: 15px;
}

#publicUserProfilePage .public-profile-header-notifications {
  position: relative;
  min-width: 40px;
}

#publicUserProfilePage #publicProfileHeaderNotificationsBadge {
  min-width: 18px;
  height: 18px;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0 5px !important;
  line-height: 18px !important;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  right: -2px;
  top: 8px;
  z-index: 3;
  box-sizing: border-box;
  text-align: center;
}

@media (min-width: 768px) {
  #publicUserProfilePage .section {
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
  }

  #publicUserProfilePage .performance-summary {
    padding: 1.1rem 1.15rem;
  }

  #publicUserProfilePage .performance-kpis {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  #publicUserProfilePage .performance-distribution {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  #publicUserProfilePage .public-stat-detail-grid {
    grid-template-columns: 1fr;
  }

  #publicUserProfilePage .performance-kpis {
    gap: .55rem;
  }

  #publicUserProfilePage .kpi-item {
    padding: .8rem .55rem;
  }

  #publicUserProfilePage .kpi-item strong {
    font-size: 1.2rem;
  }

  #publicUserProfilePage .kpi-item small {
    font-size: .75rem;
  }

  #publicUserProfilePage .summary-value {
    font-size: 1.95rem;
  }
}
