/* perfiles page only. Shared shell: ../style.css */
.page {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0;
}

.columns {
  display: flex;
  gap: 28px;
  min-height: 500px;
  align-items: flex-start;
  margin-top: 26px;
}

.col-left,
.col-right {
  min-height: 500px;
  border-radius: 24px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--card-shadow);
  transition:
    background var(--transition-medium),
    border-color var(--transition-medium),
    box-shadow var(--transition-medium);
}

.col-left {
  flex: 0 0 320px;
  width: 320px;
  min-width: 320px;
  max-width: 320px;
  padding: 26px 24px 28px;
  background: var(--bg-surface);
  align-self: flex-start;
}

.col-left > * {
  min-width: 0;
}

.col-right {
  flex: 1 1 0;
  min-width: 0;
  padding: 26px 24px 28px;
  background: var(--bg-surface);
}

.profile-photo-wrapper {
  width: 100%;
  max-width: 280px;
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg-surface-soft-2);
  aspect-ratio: 1 / 1;
  margin: 0 auto 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-photo {
  width: 100%;
  max-width: 280px;
  height: 100%;
  object-fit: cover;
  display: block;
  margin: 0 auto;
}

.profile-username {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.username {
  margin: 0;
  font-family: "MontserratLocal", sans-serif;
  font-weight: 750;
  font-size: 2rem;

  letter-spacing: -0.03em;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
}

.username-check {
  width: 20px;
  height: 20px;
  display: inline-block;
  flex: 0 0 20px;
  background-color: var(--accent-main);
  -webkit-mask-image: url("../../assets/svg/verify.svg");
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  mask-image: url("../../assets/svg/verify.svg");
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  transition: background-color var(--transition-medium);
}

.profile-description {
  margin: 0 0 22px;
  font-style: italic;
  font-weight: 300;
  font-size: 0.98rem;
  line-height: 1.45;
  color: var(--text-subtle);
}

.profile-meta {
  margin: 0 0 8px;
  font-size: 0.98rem;
  line-height: 1.45;
  color: var(--text-main);
}

.meta-label {
  font-weight: 500;
  margin-right: 4px;
}

.meta-value {
  color: var(--text-subtle);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
  display: inline-block;
  max-width: 100%;
  vertical-align: middle;
}

.meta-flag {
  display: inline-block;
  margin-left: 8px;
  vertical-align: middle;
}

.meta-flag img {
  height: 20px;
  width: 30px;
  object-fit: cover;
  border-radius: 3px;
}

.section-title {
  margin: 0 0 14px;
  font-family: "MontserratLocal", sans-serif;
  font-weight: 650;
  font-size: 2rem;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 34px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--accent-soft);
  color: var(--accent-main);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1;
  transition:
    transform 150ms ease,
    background-color 150ms ease,
    box-shadow 150ms ease,
    color 150ms ease,
    border-color 150ms ease;
}

.tag:hover {
  transform: translateY(-1px);
  box-shadow: var(--tag-shadow-hover);
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.creator-games-section {
  margin-top: 14px;
}

.creator-games-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.game-card {
  display: flex;
  flex-direction: column;
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
  min-width: 0;
}

.game-card--more {
  appearance: none;
  width: 100%;
  padding: 0;
  cursor: pointer;
  color: var(--text-main);
  background: transparent;
  border: 0;
  transition: transform var(--transition-fast);
}

.game-card--more:hover {
  transform: translateY(-2px);
}

.game-cover-wrapper {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 16px;
  background: var(--game-cover-bg);
  transition:
    background var(--transition-medium),
    border-color var(--transition-medium),
    box-shadow var(--transition-medium);
}

.game-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 16px;
}

.game-cover-wrapper--toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--game-cover-toggle-bg);
  border: 1px solid var(--game-cover-toggle-border);
}

.game-cover-toggle-icon {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18%;
}

.game-cover-toggle-svg {
  width: 100%;
  height: 100%;
}

.game-cover-toggle-svg rect {
  fill: var(--game-cover-toggle-rect-fill);
  stroke: var(--game-cover-toggle-rect-stroke);
  stroke-width: 1.5;
}

.game-cover-toggle-svg path {
  stroke: var(--game-cover-toggle-icon-stroke);
  stroke-width: 4;
  stroke-linecap: round;
}

.game-title {
  margin: 0;
  padding: 8px 4px 0;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.3;
  text-align: center;
  color: var(--text-main);
}

.loading-games,
.error-games,
.games-empty-state {
  font-size: 0.85rem;
  color: var(--text-subtle);
}

.games-empty-state {
  margin: 0;
}

.creator-games-extra {
  margin-top: 10px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-4px);
  transition:
    max-height var(--transition-medium),
    opacity var(--transition-medium),
    transform var(--transition-medium);
}

.creator-games-extra.is-open {
  max-height: 320px;
  opacity: 1;
  transform: translateY(0);
}

.creator-games-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 8px;
}

.game-pill {
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.8rem;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface-elevated);
  color: var(--text-subtle);
}

.bottom-section {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 260px;
}

.bottom-top,
.bottom-bottom {
  border-radius: 24px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--card-shadow);
  background: var(--bg-surface);
}

.bottom-top {
  min-height: 80px;
  padding: 18px 20px;
  margin-bottom: 25px;
}

.bottom-bottom {
  min-height: 170px;
}

.featured-mini-creators {
  width: 100%;
}

.featured-mini-creators__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.featured-mini-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text-main);
  min-width: 0;
}

.featured-mini-card:hover .featured-mini-card__avatar-wrap {
  transform: translateY(-2px);
  box-shadow: var(--sh-shadow-md);
}

.featured-mini-card__avatar-wrap {
  width: 70%;
  aspect-ratio: 1 / 1;
  border-radius: 90px;
  overflow: hidden;
  background: var(--bg-surface-soft-2);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--card-shadow);
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.featured-mini-card__avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.featured-mini-card__username {
  width: 100%;
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.2;
  font-weight: 500;
  text-align: center;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-socials {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.social-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition:
    transform var(--transition-fast),
    color var(--transition-fast),
    background var(--transition-fast),
    border-color var(--transition-fast);
}

.social-pill:hover {
  transform: translateY(-1px);
  color: var(--accent-main);
  border-color: var(--accent-main);
}

.social-pill__icon {
  width: 18px;
  height: 18px;
  display: block;
  flex: 0 0 18px;
}

html[data-theme="night"] .social-pill__icon {
  filter: invert(1) brightness(1.1);
}

.social-pill--twitch {
  background: color-mix(in srgb, #9146ff 10%, var(--bg-surface));
}

.social-pill--kick {
  background: color-mix(in srgb, #00e701 10%, var(--bg-surface));
}

.social-pill--youtube {
  background: color-mix(in srgb, #ff0000 10%, var(--bg-surface));
}

.social-pill--tiktok {
  background: color-mix(in srgb, #111111 6%, var(--bg-surface));
}

.social-pill--ig {
  background: color-mix(in srgb, #e1306c 10%, var(--bg-surface));
}

.social-pill--x {
  background: color-mix(in srgb, #111111 8%, var(--bg-surface));
}

.social-pill--email {
  background: var(--bg-surface);
  color: var(--text-main);
}

.page,
.col-left,
.col-right,
.bottom-top,
.bottom-bottom,
.tag,
.featured-mini-card__avatar-wrap,
.game-cover-wrapper,
.game-cover-wrapper--toggle,
.game-pill,
.social-pill {
  transition:
    background 220ms cubic-bezier(0.25, 0.1, 0.25, 1),
    color 220ms cubic-bezier(0.25, 0.1, 0.25, 1),
    border-color 220ms cubic-bezier(0.25, 0.1, 0.25, 1),
    box-shadow 220ms cubic-bezier(0.25, 0.1, 0.25, 1);
}

@media (max-width: 1100px) {
.featured-mini-creators__grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.creator-games-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.games-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
}

@media (max-width: 980px) {
.page {
  width: min(100% - 24px, 1200px);
}
.columns {
  flex-direction: column;
    gap: 18px;
    min-height: auto;
}
.col-left,
.col-right {
  flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    max-width: none;
}
.col-left {
  display: flex;
    flex-direction: column;
    align-items: center;
    padding: 22px 20px 24px;
    text-align: center;
}
.profile-photo-wrapper {
  width: min(320px, 100%);
    max-width: 320px;
    margin: 0 0 18px;
    align-self: center;
}
.profile-username {
  justify-content: center;
    margin-bottom: 10px;
}
.profile-description {
  max-width: 56ch;
    margin: 0 0 18px;
    text-align: center;
}
.profile-meta {
  text-align: center;
}
.profile-socials {
  justify-content: center;
    margin-top: 18px;
}
.bottom-section {
  min-height: auto;
    margin-top: 28px;
}
.bottom-top {
  margin-bottom: 18px;
}
}

@media (max-width: 900px) {
.username {
  font-size: 1.75rem;
}
.section-title {
  font-size: 1.75rem;
}
.creator-games-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}
.games-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.featured-mini-creators__grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
}

@media (max-width: 767px) {
.columns {
  gap: 16px;
}
.col-left,
.col-right {
  padding: 20px 18px 22px;
    border-radius: 22px;
}
.profile-photo-wrapper {
  width: min(300px, 100%);
    max-width: 300px;
    margin: 0 0 18px;
    border-radius: 18px;
}
.profile-username {
  justify-content: center;
    text-align: center;
    margin-bottom: 8px;
}
.username {
  font-size: 2.25rem;
}
.section-title {
  font-size: 1.5rem;
}
.profile-description,
.profile-meta {
  text-align: center;
}
.profile-socials {
  justify-content: center;
    gap: 8px;
}
.profile-socials .social-pill {
  min-height: 40px;
    padding: 0 14px;
    font-size: 0.92rem;
}
.profile-socials .social-pill__icon {
  width: 19px;
    height: 19px;
    flex: 0 0 19px;
}
.tags-container {
  gap: 10px;
    margin-bottom: 24px;
}
.tag {
  min-height: 38px;
    padding: 10px 14px;
    font-size: 0.96rem;
    font-weight: 650;
}
.games-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.creator-games-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}
.creator-games-grid:not(.is-expanded) > .game-card:nth-child(n + 9) {
  display: none;
}
.creator-games-grid .game-card--more {
  display: flex;
}
.game-title {
  font-size: 0.9rem;
    font-weight: 600;
}
.bottom-section {
  margin-top: 24px;
    gap: 8px;
}
.bottom-top,
.bottom-bottom {
  border-radius: 22px;
}
.bottom-top {
  padding: 18px 16px;
    margin-bottom: 14px;
}
.bottom-top .featured-mini-creators__grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}
.bottom-top .featured-mini-card__username {
  font-size: 0.86rem;
}
}

@media (max-width: 640px) {
.page {
  width: min(100% - 24px, 1200px);
}
.profile-photo-wrapper {
  width: min(300px, 100%);
    max-width: 300px;
}
.creator-games-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}
.creator-games-grid:not(.is-expanded) > .game-card:nth-child(n + 9) {
  display: none;
}
.featured-mini-creators__grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
}

@media (max-width: 520px) {
.page {
  width: min(100% - 20px, 1200px);
}
.col-left,
.col-right {
  padding: 18px 16px 20px;
}
.profile-photo-wrapper {
  width: min(280px, 100%);
    max-width: 280px;
}
.username {
  font-size: 1.8rem;
}
.section-title {
  font-size: 1.32rem;
}
.profile-description,
.profile-meta {
  font-size: 0.94rem;
}
.tag {
  min-height: 38px;
    padding: 10px 13px;
    font-size: 0.92rem;
}
.creator-games-pills {
  gap: 6px;
    padding-top: 6px;
}
.featured-mini-card__username {
  font-size: 0.78rem;
}
}

@media (max-width: 420px) {
.profile-photo-wrapper {
  width: min(240px, 100%);
    max-width: 240px;
}
.username {
  font-size: 1.55rem;
}
.section-title {
  font-size: 1.22rem;
}
.creator-games-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}
.featured-mini-creators__grid {
  gap: 8px;
}
.featured-mini-card__username {
  font-size: 0.74rem;
}
.game-title {
  font-size: 0.76rem;
}
}

@media (prefers-reduced-motion: reduce) {
.featured-mini-card:hover .featured-mini-card__avatar-wrap,
.game-card--more:hover,
.tag:hover,
.social-pill:hover {
  transform: none !important;
}
.creator-games-extra,
.featured-mini-card__avatar-wrap,
.tag,
.social-pill,
.game-card--more {
  transition: none !important;
}
}

@media (max-width: 767px) {
.page {
  width: min(100% - 20px, 1200px);
}
.columns {
  gap: 14px;
}
.col-left,
.col-right,
.bottom-top,
.bottom-bottom {
  border-radius: 20px;
}
.col-left,
.col-right {
  padding: 18px 16px 20px;
    min-height: auto;
}
.col-left {
  align-items: center;
    text-align: center;
}
.profile-photo-wrapper {
  width: min(280px, 100%);
    max-width: 280px;
    margin: 0 0 16px;
    border-radius: 18px;
}
.profile-username {
  justify-content: center;
    margin-bottom: 8px;
}
.username {
  font-size: 2rem;
    line-height: 0.95;
}
.username-check {
  width: 18px;
    height: 18px;
    flex: 0 0 18px;
}
.profile-description {
  margin-bottom: 16px;
    font-size: 0.96rem;
    line-height: 1.5;
    text-align: center;
}
.profile-meta {
  font-size: 0.96rem;
    line-height: 1.4;
    text-align: center;
    white-space: nowrap;
}
.meta-flag img {
  width: 26px;
    height: 16px;
}
.profile-socials {
  justify-content: center;
    gap: 8px;
}
.profile-socials .social-pill {
  min-height: 40px;
    padding: 0 14px;
    font-size: 0.92rem;
    gap: 8px;
}
.profile-socials .social-pill__icon {
  width: 18px;
    height: 18px;
    flex: 0 0 18px;
}
.section-title {
  font-size: 1.45rem;
    margin-bottom: 12px;
}
.tags-container {
  gap: 10px;
    margin-bottom: 24px;
}
.tags-container .tag {
  min-height: 38px;
    padding: 9px 8px;
    font-size: 0.85rem;
    font-weight: 650;
}
.games-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.creator-games-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}
.creator-games-grid .game-title,
.games-grid .game-title {
  font-size: 0.76rem;
    line-height: 1.25;
}
.bottom-section {
  margin-top: 24px;
    gap: 8px;
    min-height: auto;
}
.bottom-top {
  padding: 16px;
    margin-bottom: 12px;
}
.bottom-bottom {
  min-height: auto;
}
.bottom-top .featured-mini-creators__grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}
.bottom-top .featured-mini-card__avatar-wrap {
  width: 100%;
}
.bottom-top .featured-mini-card__username {
  font-size: 0.78rem;
}
}

@media (max-width: 420px) {
.page {
  width: min(100% - 16px, 1200px);
}
.col-left,
.col-right {
  padding: 16px 14px 18px;
}
.profile-photo-wrapper {
  width: min(240px, 100%);
    max-width: 240px;
}
.username {
  font-size: 1.72rem;
}
.section-title {
  font-size: 1.28rem;
}
.profile-socials .social-pill {
  min-height: 38px;
    padding: 0 12px;
    font-size: 0.88rem;
}
.profile-socials .social-pill__icon {
  width: 17px;
    height: 17px;
    flex: 0 0 17px;
}
.tags-container .tag {
  font-size: 0.86rem;
    padding: 8px 12px;
}
.creator-games-grid .game-title,
.games-grid .game-title {
  font-size: 0.75rem;
}
.bottom-top .featured-mini-creators__grid {
  gap: 8px;
}
.bottom-top .featured-mini-card__username {
  font-size: 0.72rem;
}
}

.profile-photo-wrapper.profile-photo-wrapper--live {
  position: relative;
  overflow: visible;
  margin-bottom: 40px;
}

.profile-photo-wrapper.profile-photo-wrapper--live .profile-photo {
  border-radius: inherit;
}

.profile-live-badge {
  position: absolute;
  left: 0px;
  right: 0px;
  bottom: -26px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0 0 18px 18px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #ffffff;
  font-family: "MontserratLocal", sans-serif;
  font-size: 1.3rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  box-shadow: 0 10px 22px rgba(239, 68, 68, 0.22);
  z-index: 3;
  pointer-events: none;
}

.col-left.profile-live-active .profile-username {
  margin-top: 4px;
}

@media (max-width: 767px) {
.profile-photo-wrapper.profile-photo-wrapper--live {
  margin-bottom: 36px;
}
.profile-live-badge {
  left: 0px;
    right: 0px;
    bottom: -21px;
    min-height: 40px;
    border-radius: 0 0 16px 16px;
    font-size: 1.5rem;
}
}

@media (max-width: 420px) {
.profile-live-badge {
  min-height: 36px;
    font-size: 0.84rem;
}
}

.live-bottom {
  margin-top: 28px;
  padding: 26px 24px 28px;
  border-radius: 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--card-shadow);
}

.live-bottom[hidden] {
  display: none !important;
}

.live-bottom-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.live-bottom-heading {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.live-bottom-subtitle {
  margin: 0;
  color: var(--text-subtle);
  font-size: 0.95rem;
  line-height: 1.45;
}

.live-bottom-body {
  display: grid;
  grid-template-columns: minmax(0, 1.95fr) minmax(340px, 0.85fr);
  gap: 18px;
  align-items: stretch;
}

.live-bottom-slot {
  min-width: 0;
  min-height: 0;
  border-radius: 22px;
  overflow: hidden;
  background: var(--bg-surface-soft);
  border: 1px solid var(--border-subtle);
}

.live-bottom-slot--stream {
  min-height: 640px;
}

.live-bottom-slot--chat {
  min-height: 640px;
}

/* Third-party video/chat stays disabled until the visitor explicitly loads it. */
.live-bottom-external-gate {
  grid-column: 1 / -1;
  min-height: 260px;
  padding: clamp(28px, 4vw, 52px);
  border: 1px solid var(--border-subtle);
  border-radius: 22px;
  background: var(--bg-surface-soft);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 14px;
}
.live-bottom-external-gate strong { color: var(--text-main); font-size: 1.2rem; }
.live-bottom-external-gate p { color: var(--text-subtle); max-width: 54ch; margin: 0; line-height: 1.5; }
.live-bottom-external-gate a { color: var(--accent-main); font-size: .82rem; }
.live-bottom-external-gate__button {
  cursor: pointer;
  border: 0;
  background: var(--accent-main);
  color: #fff;
  font: 700 .85rem MontserratLocal, system-ui, sans-serif;
  border-radius: 10px;
  padding: 13px 18px;
}
.live-bottom-external-gate__button:focus-visible { outline: 3px solid var(--accent-main); outline-offset: 4px; }

.live-bottom-frame {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 640px;
  border: 0;
  background: #0e0e10;
}

@media (max-width: 1279px) {
.live-bottom-body {
  grid-template-columns: minmax(0, 1.65fr) minmax(320px, 0.95fr);
}
.live-bottom-slot--stream,
.live-bottom-slot--chat,
.live-bottom-frame {
  min-height: 560px;
}
}

@media (max-width: 1023px) {
.live-bottom {
  display: none !important;
}
}

.top-section {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.top-section__grid {
  display: grid;
  gap: 10px;

  
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.top-section__item {
  position: relative;
  width: 100%;
  min-height: 220px;
  border-radius: 18px;
  overflow: hidden;
  background: #1c1c1c;

  
  grid-column: span 2;
}

.top-section__item:only-child {
  grid-column: 3 / span 2;
}

.top-section__item:first-child:nth-last-child(2) {
  grid-column: 2 / span 2;
}

.top-section__item:first-child:nth-last-child(2) + .top-section__item {
  grid-column: 4 / span 2;
}

.top-section__item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #111;
}

@media (max-width: 980px) {
.top-section {
  min-height: auto;
    margin-top: 28px;
}
.top-section__grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.top-section__item {
  min-height: 200px;
    grid-column: span 1;
}
.top-section__item:only-child {
  grid-column: 1 / -1;
}
.top-section__item:first-child:nth-last-child(2),
.top-section__item:first-child:nth-last-child(2) + .top-section__item {
  grid-column: auto;
}
}

@media (max-width: 767px) {
.top-section {
  margin-top: 24px;
    gap: 8px;
    min-height: auto;
}
.top-section__grid {
  grid-template-columns: 1fr;
    gap: 8px;
}
.top-section__item {
  min-height: 180px;
    grid-column: auto;
}
.top-section__item:only-child {
  grid-column: auto;
}
}

/* V12 public profiles: trusted identity and Premium are separate badges. */
.profile-username { min-width: 0; max-width: 100%; }
.profile-username > .username,
.profile-username > .sh-name-effect-wrap { min-width: 0; flex: 1 1 auto; max-width: 100%; }
.profile-username .username { min-width: 0; max-width: 100%; }
.sh-creator-marks { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 5px; }
.sh-creator-mark { position: relative; display: inline-grid; flex: 0 0 auto; place-items: center; width: 24px; height: 24px; cursor: help; }
.sh-creator-mark--verified { color: var(--sh-verified); }
.sh-creator-mark--unverified { color: var(--sh-unverified); }
.sh-creator-mark--premium { color: var(--status-premium); }
.sh-creator-mark__icon { width: 23px; height: 23px; display: block; background: currentColor; -webkit-mask: var(--sh-creator-icon) center / contain no-repeat; mask: var(--sh-creator-icon) center / contain no-repeat; }
.sh-creator-mark::after { content: attr(data-tooltip); position: absolute; bottom: calc(100% + 7px); left: 50%; padding: 6px 9px; transform: translate(-50%, 4px); background: var(--bg-surface); color: var(--text-main); border: 1px solid var(--border-subtle); border-radius: 8px; box-shadow: var(--sh-shadow-sm); font-size: .67rem; font-weight: 650; white-space: nowrap; opacity: 0; visibility: hidden; pointer-events: none; z-index: 60; transition: opacity .15s ease, transform .15s ease; }
.sh-creator-mark:is(:hover, :focus-visible)::after { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.profile-description { white-space: pre-line; overflow-wrap: anywhere; }
/* Categorías continúan inmediatamente debajo de Mis juegos y heredan
   los chips de Etiquetas de contenido, sin una línea divisoria adicional. */
.profile-game-categories { margin-top: 16px; padding-top: 0; border-top: 0; }
.profile-game-categories h3 { margin: 0 0 12px; font-size: .91rem; font-weight: 750; color: var(--text-main); }
.profile-game-categories__chips.tags-container { margin-bottom: 0; }
.profile-meta--birthday .meta-value { white-space: normal; overflow: visible; text-overflow: clip; vertical-align: baseline; }
@media(max-width:767px) {
  .sh-creator-marks { gap: 3px; }
  .sh-creator-mark, .sh-creator-mark__icon { width: 21px; height: 21px; }
}

/* V21 | Footer visible only in the full profile; shared links/spacing with Home. */
#fullProfileView .sh-profile-site-footer {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    margin: clamp(36px, 5vw, 62px) auto 0;
    padding: 25px 0 28px;
    border-top: 1px solid var(--border-subtle);
    background: transparent;
    color: var(--text-subtle);
}
#fullProfileView .sh-profile-site-footer .footer-inner {
    box-sizing: border-box; width: min(1190px, calc(100% - 40px));
    margin-inline: auto; padding: 0; display: flex; align-items: center;
    justify-content: space-between; flex-wrap: wrap; gap: 14px 22px;
    color: var(--text-subtle);
}
#fullProfileView .sh-profile-site-footer .footer-inner p {
    margin: 0; white-space: nowrap;
}
#fullProfileView .sh-profile-site-footer .footer-nav {
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px;
    white-space: normal;
}
#fullProfileView .sh-profile-site-footer .footer-nav a {
    color: var(--text-subtle); text-decoration: none;
    font-size: .83rem; transition: color .18s ease;
}
#fullProfileView .sh-profile-site-footer .footer-nav a:is(:hover, :focus-visible) {
    color: var(--text-main);
}
@media(max-width: 640px) {
    #fullProfileView .sh-profile-site-footer .footer-inner {
        flex-direction: column; align-items: flex-start; gap: 14px;
    }
}

/* Keep the footer navigation centered on phones, exclusively in full profiles. */
@media (max-width: 767px) {
  #fullProfileView .sh-profile-site-footer .footer-inner { align-items: center; text-align: center; }
  #fullProfileView .sh-profile-site-footer .footer-nav { justify-content: center; }
}
