.community-page main {
  background: transparent;
}

.profile-ticker {
  width: 100%;
  margin: -25px 0 16px;
  overflow: hidden;
  border-block: 1px solid #1ed76038;
  background: linear-gradient(90deg, #0b0f0c, #121914, #0b0f0c);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.profile-ticker-track {
  display: flex;
  width: max-content;
  animation: profile-ticker-scroll 38s linear infinite;
  will-change: transform;
}

.profile-ticker-group {
  display: flex;
  flex: none;
  align-items: center;
}

.profile-ticker-group span {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 30px;
  color: #8d9890;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.profile-ticker-group span::after {
  content: "◆";
  margin-left: 30px;
  color: #1ed760;
  font-size: 7px;
  text-shadow: 0 0 8px #1ed760;
}

.profile-ticker-group b {
  color: #1ed760;
  font-weight: 800;
}

.profile-ticker:hover .profile-ticker-track {
  animation-play-state: paused;
}

@keyframes profile-ticker-scroll {
  to { transform: translateX(-50%); }
}

.profile-shell-page .profile-about {
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 24px;
}

.profile-shell-page .profile-about > aside {
  padding: 14px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.profile-shell-page .profile-about aside > div {
  grid-template-columns: repeat(2, 1fr);
  gap: 7px;
}

.profile-shell-page .profile-badge {
  min-height: 54px;
  padding: 0;
  align-items: center;
  justify-content: center;
  border: 1px solid #ffffff0d;
  border-radius: 6px;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, opacity .2s ease;
}

.profile-shell-page .profile-badge > i {
  font-size: 18px;
}

.profile-shell-page .profile-badge > span {
  display: none;
}

.profile-shell-page .profile-badge > i {
  font-size: 0;
}

.profile-shell-page .profile-badge > i::before {
  font-family: "Material Symbols Rounded";
  font-size: 23px;
  font-weight: 400;
  font-style: normal;
  line-height: 1;
}

.profile-shell-page .profile-badge:nth-child(1) > i::before { content: "fingerprint"; }
.profile-shell-page .profile-badge:nth-child(2) > i::before { content: "link"; }
.profile-shell-page .profile-badge:nth-child(3) > i::before { content: "hub"; }
.profile-shell-page .profile-badge:nth-child(4) > i::before { content: "landscape"; }
.profile-shell-page .profile-badge:nth-child(5) > i::before { content: "sports_hockey"; }
.profile-shell-page .profile-badge:nth-child(6) > i::before { content: "workspace_premium"; }

.profile-shell-page .profile-badge:hover,
.profile-shell-page .profile-badge:focus-visible {
  border-color: color-mix(in srgb, var(--profile-accent) 55%, transparent);
  background: color-mix(in srgb, var(--profile-accent) 8%, #161817);
  outline: none;
}

.profile-shell-page .profile-badge.is-open {
  grid-column: 1 / -1;
  justify-content: flex-start;
  min-height: 72px;
  padding: 12px;
  border-color: color-mix(in srgb, var(--profile-accent) 45%, transparent);
  opacity: 1;
}

.profile-shell-page .profile-badge.is-open > span {
  display: block;
}

@media(max-width: 750px) {
  .profile-shell-page .profile-about { grid-template-columns: 1fr; }
  .profile-shell-page .profile-about aside > div { grid-template-columns: repeat(6, 1fr); }
  .profile-shell-page .profile-badge.is-open { grid-column: 1 / -1; }
}

@media(max-width: 480px) {
  .profile-shell-page .profile-about aside > div { grid-template-columns: repeat(3, 1fr); }
}

.profile-shell-page .profile-about > article.player-file-card {
  position: relative;
  padding: 0;
  overflow: hidden;
  border: 1px solid #ffffff12;
  border-radius: 14px;
  background: linear-gradient(145deg, #181c19, #111311);
  box-shadow: 0 18px 45px #0004;
}

.player-file-cover {
  height: 78px;
  padding: 17px 22px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  background: radial-gradient(circle at 20% 0, color-mix(in srgb, var(--profile-accent) 24%, transparent), transparent 42%), repeating-linear-gradient(120deg, #111a14 0 28px, #121f16 29px 30px);
  color: color-mix(in srgb, var(--profile-accent) 75%, #fff);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.player-file-cover b {
  color: #ffffff24;
  font-size: 10px;
}

.player-file-head {
  position: relative;
  display: grid;
  grid-template-columns: 92px 1fr auto;
  align-items: end;
  gap: 18px;
  padding: 0 26px 22px;
}

.player-file-avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  margin-top: -34px;
  border: 4px solid #141714;
  border-radius: 28px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--profile-accent) 24%, #111), #101311);
  color: var(--profile-accent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--profile-accent) 55%, transparent), 0 12px 30px #0008;
  font-size: 40px;
  font-weight: 900;
  transform: rotate(-3deg);
}

.player-file-avatar i {
  position: absolute;
  right: 3px;
  bottom: 5px;
  width: 13px;
  height: 13px;
  border: 3px solid #141714;
  border-radius: 50%;
  background: var(--profile-accent);
  box-shadow: 0 0 9px var(--profile-accent);
}

.player-file-identity small,
.player-file-story small,
.player-file-stats small {
  color: #78827b;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.player-file-identity h2 {
  margin: 2px 0 3px;
  color: #f5f7f5;
  font-size: 28px;
  line-height: 1;
  letter-spacing: -.04em;
}

.player-file-identity p {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: #99a39c;
  font-size: 10px;
}

.player-file-identity p i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--profile-accent);
}

.player-file-edit {
  align-self: center;
  padding: 8px 11px;
  border: 1px solid color-mix(in srgb, var(--profile-accent) 40%, transparent);
  border-radius: 5px;
  color: var(--profile-accent);
  text-decoration: none;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.player-file-edit:hover {
  background: var(--profile-accent);
  color: #08100a;
}

.player-file-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0 26px;
  border-block: 1px solid #ffffff0d;
}

.player-file-stats > span {
  padding: 16px 14px;
  border-right: 1px solid #ffffff0d;
}

.player-file-stats > span:last-child { border-right: 0; }
.player-file-stats small,.player-file-stats b { display: block; }
.player-file-stats b { margin-top: 4px; color: #e8ece9; font-size: 15px; }
.player-file-stats > span:first-child b { color: var(--profile-accent); }

.player-file-story {
  padding: 22px 26px 14px;
}

.player-file-story p {
  margin: 7px 0 0;
  color: #a9b2ac;
  font-size: 12px;
  line-height: 1.65;
}

.profile-shell-page .player-file-facts {
  display: flex;
  gap: 7px;
  margin: 0;
  padding: 0 26px 24px;
  background: transparent;
}

.profile-shell-page .player-file-facts span {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  padding: 10px 11px;
  border-radius: 5px;
  background: #0e110f;
  color: #68716b;
  font-size: 7px;
  text-transform: uppercase;
}

.profile-shell-page .player-file-facts b {
  color: #d7ddd9;
  font-size: 9px;
}

@media(max-width: 680px) {
  .player-file-head { grid-template-columns: 78px 1fr; padding-inline: 18px; }
  .player-file-avatar { width: 78px; height: 78px; }
  .player-file-edit { grid-column: 1 / -1; justify-self: start; }
  .player-file-stats { grid-template-columns: repeat(2, 1fr); margin-inline: 18px; }
  .profile-shell-page .player-file-facts { flex-direction: column; padding-inline: 18px; }
}

/* Profile UI refinement */
.profile-shell-page .profile-about {
  grid-template-columns: minmax(0, 1fr) 176px;
  align-items: start;
  gap: 18px;
  margin-top: 22px;
}

.profile-shell-page .profile-about > article.player-file-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-color: #ffffff10;
  border-radius: 11px;
  background: linear-gradient(145deg, #171a18, #111311);
}

.player-file-cover {
  display: none;
}

.player-file-head {
  order: 1;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  align-items: center;
  gap: 17px;
  padding: 24px 25px 17px;
  border-bottom: 1px solid #ffffff0c;
}

.player-file-avatar {
  width: 76px;
  height: 76px;
  margin: 0;
  border-width: 3px;
  border-radius: 22px;
  font-size: 33px;
}

.player-file-identity {
  min-width: 0;
}

.player-file-identity small {
  color: var(--profile-accent);
  font-size: 9px;
}

.player-file-identity h2 {
  overflow: hidden;
  margin: 4px 0 5px;
  font-size: clamp(25px, 3vw, 36px);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-file-identity p {
  color: #a8b1ab;
  font-size: 11px;
}

.player-file-edit {
  padding: 9px 12px;
  font-size: 9px;
}

.player-file-story {
  order: 2;
  padding: 17px 25px 15px;
  border-bottom: 1px solid #ffffff0c;
}

.player-file-story small {
  font-size: 9px;
}

.player-file-story p {
  margin-top: 5px;
  font-size: 12px;
}

.player-file-stats {
  order: 3;
  margin: 0 25px;
  border-top: 0;
  border-bottom: 1px solid #ffffff0c;
}

.player-file-stats > span {
  padding: 14px 12px;
}

.player-file-stats small {
  font-size: 8px;
}

.player-file-stats b {
  margin-top: 3px;
  font-size: 14px;
}

.profile-shell-page .player-file-facts {
  order: 4;
  gap: 0;
  padding: 13px 25px 17px;
}

.profile-shell-page .player-file-facts span {
  padding: 7px 11px;
  border-right: 1px solid #ffffff0c;
  border-radius: 0;
  background: transparent;
  font-size: 8px;
}

.profile-shell-page .player-file-facts span:last-child {
  border-right: 0;
}

.profile-shell-page .player-file-facts b {
  font-size: 9px;
}

.profile-shell-page .profile-about > aside {
  position: relative;
  padding: 2px 0 28px;
}

.profile-shell-page .profile-about > aside > small {
  display: block;
  margin-bottom: 5px;
  font-size: 8px;
  letter-spacing: .13em;
}

.profile-shell-page .profile-about > aside::after {
  content: "6 / 6 unlocked";
  position: absolute;
  left: 0;
  bottom: 5px;
  color: #677169;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.profile-shell-page .profile-about aside > div {
  position: relative;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin-top: 10px;
}

.profile-shell-page .profile-badge {
  position: relative;
  min-height: 62px;
  border-color: #ffffff0b;
  background: #151916;
}

.profile-shell-page .profile-badge:hover,
.profile-shell-page .profile-badge:focus-visible,
.profile-shell-page .profile-badge.is-open {
  border-color: color-mix(in srgb, var(--profile-accent) 45%, transparent);
  background: color-mix(in srgb, var(--profile-accent) 7%, #151916);
}

.profile-shell-page .profile-badge.locked {
  opacity: .32;
}

.profile-shell-page .profile-badge.locked::after {
  content: "lock";
  position: absolute;
  right: 5px;
  bottom: 5px;
  color: #7d877f;
  font-family: "Material Symbols Rounded";
  font-size: 11px;
}

.profile-shell-page .profile-badge.is-open {
  grid-column: auto;
  min-height: 62px;
  padding: 0;
}

.profile-shell-page .profile-badge.is-open > span {
  position: absolute;
  z-index: 12;
  top: calc(100% + 8px);
  right: 0;
  display: block;
  width: 250px;
  padding: 13px 14px;
  border: 1px solid color-mix(in srgb, var(--profile-accent) 35%, #ffffff12);
  border-radius: 7px;
  background: #111512;
  box-shadow: 0 16px 35px #000b;
}

.profile-shell-page .profile-badge:nth-child(odd).is-open > span {
  right: auto;
  left: 0;
}

.profile-shell-page .profile-badge.is-open > span b {
  color: #eef2ef;
  font-size: 10px;
}

.profile-shell-page .profile-badge.is-open > span small {
  margin-top: 5px;
  color: #8e9991;
  font-size: 9px;
  line-height: 1.45;
}

.profile-shell-page .profile-games {
  margin-top: 30px;
}

.profile-shell-page .profile-games header {
  margin-bottom: 11px;
}

.profile-shell-page .profile-games header span {
  font-size: 8px;
  letter-spacing: .16em;
}

.profile-shell-page .profile-games h2 {
  margin-top: 4px;
  font-size: 23px;
}

.profile-shell-page .profile-game-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.profile-shell-page .profile-game-grid article {
  min-height: 162px;
  padding: 20px 22px;
  border-radius: 8px;
}

.profile-shell-page .profile-game-grid small {
  font-size: 8px;
  letter-spacing: .07em;
}

.profile-shell-page .profile-game-grid strong {
  margin-top: 14px;
  font-size: 36px;
}

.profile-shell-page .profile-game-grid span {
  font-size: 8px;
}

.profile-shell-page .profile-game-grid em {
  margin-top: 8px;
}

.profile-shell-page .profile-game-grid a {
  margin-top: 15px;
  font-size: 8px;
}

@media(max-width: 750px) {
  .profile-shell-page .profile-about { grid-template-columns: 1fr; }
  .profile-shell-page .profile-about > aside { padding-top: 4px; }
  .profile-shell-page .profile-about aside > div { grid-template-columns: repeat(3, 1fr); }
  .profile-shell-page .profile-badge.is-open > span,
  .profile-shell-page .profile-badge:nth-child(odd).is-open > span { left: 0; right: auto; }
}

@media(max-width: 560px) {
  .player-file-head { grid-template-columns: 68px minmax(0, 1fr); padding: 19px; }
  .player-file-avatar { width: 68px; height: 68px; }
  .player-file-edit { grid-column: 1 / -1; justify-self: start; }
  .player-file-stats { grid-template-columns: repeat(2, 1fr); margin-inline: 19px; }
  .player-file-story { padding-inline: 19px; }
  .profile-shell-page .player-file-facts { flex-direction: column; padding-inline: 19px; }
  .profile-shell-page .player-file-facts span { border-right: 0; border-bottom: 1px solid #ffffff0c; }
  .profile-shell-page .profile-game-grid { grid-template-columns: 1fr; }
}
