.profile {
  position: relative;
  overflow: hidden;
  font-family: 'Acme';
  width: 100%;
  min-height: 180px;
  flex-shrink: 0;

  .profile_actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-top: 1px solid #e3eaf0;
    background: #f8fafc;
  }

  .profile_action {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 9px 14px;
    border: 1px solid #aebdca;
    border-radius: 8px;
    background: #fff;
    color: #34475a;
    font-size: 16px;
    line-height: 1.2;
    text-decoration: none;

    &:hover {
      border-color: #7891a3;
      background: #eef5f8;
      color: #176b96;
    }

    &:focus-visible {
      outline: 2px solid #176b96;
      outline-offset: 3px;
    }
  }

  .profile_action_remove {
    margin-left: auto;
    border-color: #e5bfc4;
    color: #a63748;

    &:hover {
      border-color: #ca8792;
      background: #fff1f3;
      color: #8b2637;
    }
  }

  .page_title {
    z-index: 1;
  }

  .stuck {
    position: fixed;
  }

  .stuck_to_bottom {
    position: absolute;
  }

  .move_over {
    padding-left: 200px;
  }

  .sticky_wrapper {
    width: 200px;
    height: 130px;
    float: left;
  }

  .head_with_avatar {
    display: flex;
    width: 100%;
    flex: none;
    background: var(--surface-background);
  }

  .profile_avatar {
    height: 180px;

    .avatar {
      text-align: center;
      height: 180px !important;
    }

    img {
      float: left;
    }
  }

  .head {
    position: relative;
    padding: 10px 0 0 20px;
    flex-grow: 1;

    h1 {
      margin: -3px 0 0 -5px;
    }

    .value {
      font-weight: 700;
      min-width: 70px;
      text-align: center;
      display: inline-block;
    }

    .rank {
      font-size: 1.1em;
    }

    .tokens {
      .ach_value {
        font-size: 1.1em;
        font-weight: 700;
        color: green;
      }
    }

    .level {
      .ach_value {
        font-size: 1.1em;
        font-weight: 700;
        color: dodgerblue;
      }
    }

    .basic_stats {
      font-size: 16px;
      line-height: 120%;
      float: left;
      margin: 6px 0;
      width: 100%;
      display: flex;
      flex-direction: column;
      gap: 2px;
    }
  }
}

#content_wrapper {
  overflow: auto;
  position: relative;
  border-top: 1px solid #ddd;
  flex-grow: 1;

  .tail {
    position: relative;

    h2.page_subtitle {
      color: #333;
      font-size: 1.8em;
      clear: both;
    }
  }
}

@media (max-width: 600px) {
  .profile .profile_actions {
    padding: 12px;
  }

  .profile .profile_action_remove {
    margin-left: 0;
  }
}
