@media (max-width: 1023px) {
  #profile-content {
    display: contents;
  }

  #profile-summary {
    order: 1;
  }

  #skin-panel {
    order: 2;
    height: clamp(16rem, 60vh, 23rem);
    height: clamp(16rem, 60svh, 23rem);
    min-height: 16rem;
  }

  #activity {
    order: 3;
  }

  #moderation-panel {
    order: 4;
  }

  #stats-panel {
    order: 5;
  }

  #advancement-gui {
    order: 6;
  }
}

@media (max-width: 640px) {
  html,
  body {
    overflow-x: clip;
  }

  .hero-content > div:first-child {
    gap: 0.5rem;
  }

  .hero-content > div:first-child > div:first-child {
    gap: 0.5rem;
  }

  .hero-content > div:first-child > div:first-child > span:first-child {
    width: 2rem;
    height: 2rem;
    border-radius: 0.75rem;
  }

  #discord-top {
    white-space: nowrap;
  }

  #copy-ip {
    width: min(100%, 24rem);
  }

  #cat-tabs button {
    width: 2.5rem;
    height: 2.5rem;
  }

  #podium {
    gap: 0.5rem;
  }

  #podium .skin-box {
    height: clamp(8rem, 40vw, 12rem);
  }

  #podium .skin-box[data-rank="1"] {
    height: clamp(10rem, 50vw, 15rem);
  }

  #podium .pv {
    overflow-wrap: anywhere;
    font-size: 0.875rem;
  }

  #profile-layout,
  #profile-layout > * {
    min-width: 0;
  }

  #player-sub span {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  #stats-grid > div {
    min-width: 0;
  }

  #advancement-gui,
  .mc-adv-window {
    min-width: 0;
  }
}

@media (max-width: 380px) {
  .hero-content h1 {
    font-size: clamp(1.75rem, 9vw, 2.25rem);
  }

  #discord-top {
    gap: 0.375rem;
    padding: 0.5rem 0.625rem;
    font-size: 0.7rem;
  }

  #discord-top svg {
    width: 0.875rem;
    height: 0.875rem;
  }
}

@media (min-width: 640px) and (max-width: 1023px) {
  #podium .skin-box {
    height: 16rem;
  }

  #podium .skin-box[data-rank="1"] {
    height: 19rem;
  }
}
